ERP-node/frontend/lib/registry/components/flow-widget/index.ts

39 lines
1.2 KiB
TypeScript
Raw Normal View History

2025-10-20 10:55:33 +09:00
"use client";
import { ComponentCategory } from "@/types/component";
import { FlowWidgetConfigPanel } from "@/components/screen/config-panels/FlowWidgetConfigPanel";
/**
* FlowWidget ( FlowWidgetRenderer에서 )
2025-10-20 10:55:33 +09:00
*
*/
export const FlowWidgetDefinition = {
2025-10-20 10:55:33 +09:00
id: "flow-widget",
name: "플로우 위젯",
nameEng: "Flow Widget",
description: "플로우 관리 시스템의 플로우를 화면에 표시합니다",
category: ComponentCategory.DISPLAY,
webType: "text" as const, // 기본 웹타입 (필수)
component: null as any, // FlowWidgetRenderer에서 설정됩니다
2025-10-20 10:55:33 +09:00
defaultConfig: {
flowId: undefined,
flowName: undefined,
showStepCount: true,
allowDataMove: false,
displayMode: "horizontal",
},
defaultSize: {
width: 1200,
height: 120,
gridColumnSpan: "full", // 전체 너비 사용
},
configPanel: FlowWidgetConfigPanel,
icon: "Workflow" as const,
2025-10-20 10:55:33 +09:00
tags: ["플로우", "워크플로우", "프로세스", "상태"],
version: "1.0.0",
author: "개발팀",
documentation: "",
} as const;
2025-10-20 10:55:33 +09:00
// 컴포넌트는 FlowWidgetRenderer에서 자동 등록됩니다