ERP-node/frontend/lib/registry/components/rack-structure/index.ts

75 lines
2.3 KiB
TypeScript
Raw Normal View History

2025-12-08 15:15:44 +09:00
"use client";
import React from "react";
import { createComponentDefinition } from "../../utils/createComponentDefinition";
import { ComponentCategory } from "@/types/component";
import { RackStructureWrapper } from "./RackStructureComponent";
import { RackStructureConfigPanel } from "./RackStructureConfigPanel";
import { defaultConfig } from "./config";
/**
*
*
*/
export const RackStructureDefinition = createComponentDefinition({
id: "rack-structure",
name: "렉 구조 설정",
nameEng: "Rack Structure Config",
description: "창고 렉 위치를 열 범위와 단 수로 일괄 생성하는 컴포넌트",
category: ComponentCategory.INPUT,
webType: "component",
component: RackStructureWrapper,
defaultConfig: defaultConfig,
defaultSize: {
width: 1200,
height: 800,
gridColumnSpan: "12",
},
configPanel: RackStructureConfigPanel,
icon: "LayoutGrid",
tags: ["창고", "렉", "위치", "구조", "일괄생성", "WMS"],
version: "1.0.0",
author: "개발팀",
documentation: `
.
##
-
- /
-
- 릿 /
##
1. , ,
2.
3.
4.
5.
##
formData에서 :
- warehouse_id / warehouseId: 창고 ID
- warehouse_code / warehouseCode: 창고
- floor:
- zone: 구역
- location_type / locationType: 위치
- status: 사용
`,
});
// 타입 내보내기
export type {
RackStructureComponentConfig,
RackStructureContext,
RackLineCondition,
RackStructureTemplate,
GeneratedLocation,
} from "./types";
// 컴포넌트 내보내기
export { RackStructureComponent, RackStructureWrapper } from "./RackStructureComponent";
export { RackStructureRenderer } from "./RackStructureRenderer";
export { RackStructureConfigPanel } from "./RackStructureConfigPanel";