[agent-pipeline] pipe-20260311151253-nyk7 round-6

This commit is contained in:
DDD1542 2026-03-12 00:34:36 +09:00
parent 2feab9cde8
commit b4aec05512
2 changed files with 55 additions and 2 deletions

View File

@ -0,0 +1,53 @@
"use client";
/**
* V2TableList
* TableListConfigPanel의 ( , DnD, ,
* , , , , , )
* componentConfigChanged
*/
import React from "react";
import { TableListConfigPanel } from "@/lib/registry/components/v2-table-list/TableListConfigPanel";
import type { TableListConfig } from "@/lib/registry/components/v2-table-list/types";
interface V2TableListConfigPanelProps {
config: TableListConfig;
onChange: (config: Partial<TableListConfig>) => void;
screenTableName?: string;
tableColumns?: any[];
menuObjid?: number;
}
export const V2TableListConfigPanel: React.FC<V2TableListConfigPanelProps> = ({
config,
onChange,
screenTableName,
tableColumns,
menuObjid,
}) => {
const handleChange = (newConfig: Partial<TableListConfig>) => {
onChange(newConfig);
if (typeof window !== "undefined") {
window.dispatchEvent(
new CustomEvent("componentConfigChanged", {
detail: { config: { ...config, ...newConfig } },
})
);
}
};
return (
<TableListConfigPanel
config={config}
onChange={handleChange}
screenTableName={screenTableName}
tableColumns={tableColumns}
/>
);
};
V2TableListConfigPanel.displayName = "V2TableListConfigPanel";
export default V2TableListConfigPanel;

View File

@ -5,7 +5,7 @@ import { createComponentDefinition } from "../../utils/createComponentDefinition
import { ComponentCategory } from "@/types/component"; import { ComponentCategory } from "@/types/component";
import type { WebType } from "@/types/screen"; import type { WebType } from "@/types/screen";
import { TableListWrapper } from "./TableListComponent"; import { TableListWrapper } from "./TableListComponent";
import { TableListConfigPanel } from "./TableListConfigPanel"; import { V2TableListConfigPanel } from "@/components/v2/config-panels/V2TableListConfigPanel";
import { TableListConfig } from "./types"; import { TableListConfig } from "./types";
/** /**
@ -109,7 +109,7 @@ export const V2TableListDefinition = createComponentDefinition({
autoLoad: true, autoLoad: true,
}, },
defaultSize: { width: 1000, height: 600 }, // 테이블 리스트 기본 크기 (너비 1000px, 높이 600px) defaultSize: { width: 1000, height: 600 }, // 테이블 리스트 기본 크기 (너비 1000px, 높이 600px)
configPanel: TableListConfigPanel, configPanel: V2TableListConfigPanel,
icon: "Table", icon: "Table",
tags: ["테이블", "데이터", "목록", "그리드"], tags: ["테이블", "데이터", "목록", "그리드"],
version: "1.0.0", version: "1.0.0",