제어관리 개선판

This commit is contained in:
kjs
2025-10-24 14:11:12 +09:00
parent 96252270d7
commit 8d1f0e7098
30 changed files with 2285 additions and 655 deletions

View File

@@ -6,7 +6,7 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@
import { Switch } from "@/components/ui/switch";
import { Button } from "@/components/ui/button";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
import { Check, ChevronsUpDown, Search, Info, Settings, FileText, Table, Layers } from "lucide-react";
import { Check, ChevronsUpDown, Search, Info, Settings, FileText, Table, Layers, Workflow } from "lucide-react";
import { cn } from "@/lib/utils";
import { ComponentData, ButtonDataflowConfig } from "@/types/screen";
import { apiClient } from "@/lib/api/client";
@@ -254,13 +254,31 @@ export const ButtonDataflowConfigPanel: React.FC<ButtonDataflowConfigPanelProps>
<SelectItem value="form">
<div className="flex items-center space-x-2">
<FileText className="h-4 w-4" />
<span> </span>
<span> </span>
</div>
</SelectItem>
<SelectItem value="table-selection">
<div className="flex items-center space-x-2">
<Table className="h-4 w-4" />
<span> </span>
<span> </span>
</div>
</SelectItem>
<SelectItem value="table-all">
<div className="flex items-center space-x-2">
<Table className="h-4 w-4" />
<span> 🆕</span>
</div>
</SelectItem>
<SelectItem value="flow-selection">
<div className="flex items-center space-x-2">
<Workflow className="h-4 w-4" />
<span> </span>
</div>
</SelectItem>
<SelectItem value="flow-step-all">
<div className="flex items-center space-x-2">
<Workflow className="h-4 w-4" />
<span> 🆕</span>
</div>
</SelectItem>
<SelectItem value="both">
@@ -269,13 +287,22 @@ export const ButtonDataflowConfigPanel: React.FC<ButtonDataflowConfigPanelProps>
<span> + </span>
</div>
</SelectItem>
<SelectItem value="all-sources">
<div className="flex items-center space-x-2">
<Layers className="h-4 w-4" />
<span> 🆕</span>
</div>
</SelectItem>
</SelectContent>
</Select>
<p className="text-xs text-gray-500">
{dataflowConfig.controlDataSource === "form" && "현재 폼의 입력값으로 조건을 체크합니다"}
{dataflowConfig.controlDataSource === "table-selection" &&
"테이블에서 선택된 항목의 데이터로 조건을 체크합니다"}
{dataflowConfig.controlDataSource === "table-selection" && "테이블에서 선택된 항목의 데이터로 조건을 체크합니다"}
{dataflowConfig.controlDataSource === "table-all" && "테이블의 모든 데이터(페이징 무관)로 조건을 체크합니다"}
{dataflowConfig.controlDataSource === "flow-selection" && "플로우에서 선택된 항목의 데이터로 조건을 체크합니다"}
{dataflowConfig.controlDataSource === "flow-step-all" && "현재 선택된 플로우 스텝의 모든 데이터로 조건을 체크합니다"}
{dataflowConfig.controlDataSource === "both" && "폼 데이터와 선택된 항목 데이터를 모두 사용합니다"}
{dataflowConfig.controlDataSource === "all-sources" && "폼, 테이블 전체, 플로우 등 모든 소스의 데이터를 결합하여 사용합니다"}
{!dataflowConfig.controlDataSource && "폼 데이터를 기본으로 사용합니다"}
</p>
</div>