Files
vexplor/frontend/lib/registry/components/v2-bom-item-editor/index.ts
DDD1542 27853a9447 feat: Add BOM tree view and BOM item editor components
- Introduced new components for BOM tree view and BOM item editor, enhancing the data management capabilities within the application.
- Updated the ComponentsPanel to include these new components with appropriate descriptions and default sizes.
- Integrated the BOM item editor into the V2PropertiesPanel for seamless editing of BOM items.
- Adjusted the SplitLineComponent to improve the handling of canvas split positions, ensuring better user experience during component interactions.
2026-02-24 10:49:23 +09:00

31 lines
1.0 KiB
TypeScript

import { ComponentCategory } from "@/types/component";
import { createComponentDefinition } from "../../utils/createComponentDefinition";
import { BomItemEditorComponent } from "./BomItemEditorComponent";
export const V2BomItemEditorDefinition = createComponentDefinition({
id: "v2-bom-item-editor",
name: "BOM 하위품목 편집기",
nameEng: "BOM Item Editor",
description: "BOM 하위 품목을 트리 구조로 추가/편집/삭제하는 컴포넌트",
category: ComponentCategory.V2,
webType: "text",
component: BomItemEditorComponent,
defaultConfig: {
detailTable: "bom_detail",
sourceTable: "item_info",
foreignKey: "bom_id",
parentKey: "parent_detail_id",
itemCodeField: "item_number",
itemNameField: "item_name",
itemTypeField: "type",
itemUnitField: "unit",
},
defaultSize: { width: 900, height: 400 },
icon: "ListTree",
tags: ["BOM", "트리", "편집", "하위품목", "제조"],
version: "1.0.0",
author: "개발팀",
});
export default V2BomItemEditorDefinition;