@opsnow-mcp/opsnow-mcp-common-ui-server 1.0.43 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,7 @@ import { createStepperComponent } from "./opsnow-common-stepper.js";
20
20
  import { createToastPopupComponent } from "./opsnow-common-toast-popup.js";
21
21
  import { createFileUploaderComponent } from "./opsnow-common-file-upload.js";
22
22
  import { createDropdownComponent } from "./opsnow-common-dropdown.js";
23
+ import { createSelectionGroupComponent } from "./opsnow-common-selection-group.js";
23
24
  const componentFactories = [
24
25
  createCalendarComponent,
25
26
  createChartComponent,
@@ -41,6 +42,7 @@ const componentFactories = [
41
42
  createToastPopupComponent,
42
43
  createFileUploaderComponent,
43
44
  createDropdownComponent,
45
+ createSelectionGroupComponent,
44
46
  ];
45
47
  export function collectComponentTools() {
46
48
  return componentFactories.flatMap(factory => factory());
@@ -0,0 +1,541 @@
1
+ // uidemo 데모 사이트(레포 cm-uidemo-web) 링크 → MCP 컴포넌트·예제 매핑
2
+ // 갱신 기준: cm-uidemo-web 의 src/route/routes.jsx(path), 각 페이지의 TAB_IDS(#tab=<id>)
3
+ // components 는 getComponentSpec 이름, examples 는 getUIExamples 의 uiType(+keyword) — 틀리면 build:skill 실패
4
+ export const UIDEMO_BASE_URL = "https://uidemo.finplex.bespinglobal.com/v2/uidemo";
5
+ export const UIDEMO_ROUTES = [
6
+ { path: "/", title: "Typography (첫 화면)", components: ["Typography"], examples: [{ uiType: "Typography" }] },
7
+ { path: "/typography", title: "Typography", components: ["Typography"], examples: [{ uiType: "Typography" }] },
8
+ { path: "/colors", title: "Colors (색상 팔레트)", components: [], examples: [], note: "컴포넌트가 아니라 색상 토큰 데모입니다. 색상은 theme.palette.commonPalette 토큰을 사용하세요 (서버 instructions·SKILL.md 의 색상 규칙 참고)." },
9
+ { path: "/tab", title: "Tab", components: ["Tab"], examples: [{ uiType: "Tab" }] },
10
+ { path: "/calendar", title: "Calendar (DatePicker)", components: ["Calendar"], examples: [{ uiType: "Calendar" }] },
11
+ { path: "/chart/line-chart", title: "Line Chart", components: ["LineChart"], examples: [{ uiType: "LineChart" }] },
12
+ { path: "/chart/bar-chart", title: "Bar Chart", components: ["BarChart"], examples: [{ uiType: "BarChart" }] },
13
+ { path: "/chart/stack-chart", title: "Stack Chart", components: ["StackChart"], examples: [{ uiType: "StackChart" }] },
14
+ { path: "/chart/xy-multi-chart", title: "XY Multi Chart", components: ["XyMultiChart"], examples: [{ uiType: "XyMultiChart" }] },
15
+ { path: "/chart/pie-chart", title: "Pie Chart", components: ["PieChart"], examples: [{ uiType: "PieChart" }] },
16
+ { path: "/chart/bubble-chart", title: "Bubble Chart", components: ["BubbleChart"], examples: [{ uiType: "BubbleChart" }] },
17
+ { path: "/chart/heatmap-chart", title: "Heatmap Chart", components: ["HeatmapChart"], examples: [{ uiType: "HeatmapChart" }] },
18
+ { path: "/chart/zoom-scroll", title: "Chart Zoom / Scroll", components: ["XyMultiChart"], examples: [{ uiType: "XyMultiChart", keyword: "Zoom / Scroll" }] },
19
+ { path: "/chart/download", title: "Chart Download (downloadFile)", components: ["BarChart", "LineChart", "StackChart", "PieChart"], examples: [{ uiType: "BarChart", keyword: "다운로드" }, { uiType: "LineChart", keyword: "다운로드" }, { uiType: "StackChart", keyword: "다운로드" }, { uiType: "PieChart", keyword: "다운로드" }], note: "차트 ref 의 downloadFile(fileName, fileType, fileOption?) 데모입니다." },
20
+ { path: "/data-status", title: "Data Status", components: ["DataStatus"], examples: [{ uiType: "DataStatus" }] },
21
+ { path: "/file-upload", title: "File Upload", components: ["FileUploader"], examples: [{ uiType: "FileUploader" }] },
22
+ { path: "/select", title: "Select", components: ["Select", "AutocompleteSelect", "SelectMenu", "CompanySelect", "CurrencySwitcher"], examples: [{ uiType: "Select" }, { uiType: "Autocomplete" }, { uiType: "SelectMenu" }, { uiType: "CompanySelect" }, { uiType: "CurrencySwitcher" }], note: "탭이 있는 페이지입니다. #tab=<id> 가 붙은 링크면 해당 탭의 컴포넌트만 봅니다." },
23
+ { path: "/select", tab: "select", title: "Select › 기본 Select (단일 선택)", components: ["Select"], examples: [{ uiType: "Select" }] },
24
+ { path: "/select", tab: "multi-select", title: "Select › Multi Select (다중 선택)", components: ["Select"], examples: [{ uiType: "Select" }] },
25
+ { path: "/select", tab: "autocomplete", title: "Select › Autocomplete (검색·체크박스·그룹 선택)", components: ["AutocompleteSelect"], examples: [{ uiType: "Autocomplete" }] },
26
+ { path: "/select", tab: "select-menu", title: "Select › Select Menu (메뉴 선택)", components: ["SelectMenu"], examples: [{ uiType: "SelectMenu" }] },
27
+ { path: "/select", tab: "company-select", title: "Select › Company Select (회사 선택)", components: ["CompanySelect"], examples: [{ uiType: "CompanySelect" }] },
28
+ { path: "/select", tab: "currency-switcher", title: "Select › Currency Switcher (통화 전환)", components: ["CurrencySwitcher"], examples: [{ uiType: "CurrencySwitcher" }] },
29
+ { path: "/forms", title: "Forms", components: ["Button", "Badge", "TextField", "Textarea", "Switch", "ToggleButton", "Chip", "ChipGroup", "Checkbox", "RadioGroup", "CheckboxGroup", "Card", "CardGroup", "Collapse", "Slider", "Link", "Avatar", "TreeView", "InsightCard", "InsightContent"], examples: [{ uiType: "Button" }, { uiType: "Badge" }, { uiType: "TextField" }, { uiType: "Textarea" }, { uiType: "Switch" }, { uiType: "ToggleButtonGroup" }, { uiType: "Chip" }, { uiType: "ChipGroup" }, { uiType: "Checkbox" }, { uiType: "RadioGroup" }, { uiType: "CheckboxGroup" }, { uiType: "Card" }, { uiType: "CardGroup" }, { uiType: "Collapse" }, { uiType: "Slider" }, { uiType: "Link" }, { uiType: "Avatar" }, { uiType: "TreeView" }, { uiType: "InsightCard" }, { uiType: "InsightContent" }], note: "탭이 있는 페이지입니다. #tab=<id> 가 붙은 링크면 해당 탭의 컴포넌트만 봅니다." },
30
+ { path: "/forms", tab: "button", title: "Forms › Button", components: ["Button"], examples: [{ uiType: "Button" }] },
31
+ { path: "/forms", tab: "badge", title: "Forms › Badge", components: ["Badge"], examples: [{ uiType: "Badge" }] },
32
+ { path: "/forms", tab: "text-field", title: "Forms › TextField", components: ["TextField", "Input"], examples: [{ uiType: "TextField" }] },
33
+ { path: "/forms", tab: "textarea", title: "Forms › Textarea", components: ["Textarea"], examples: [{ uiType: "Textarea" }] },
34
+ { path: "/forms", tab: "switch", title: "Forms › Switch", components: ["Switch"], examples: [{ uiType: "Switch" }] },
35
+ { path: "/forms", tab: "toggle-button", title: "Forms › ToggleButton", components: ["ToggleButton"], examples: [{ uiType: "ToggleButtonGroup" }] },
36
+ { path: "/forms", tab: "chip", title: "Forms › Chip & ChipGroup", components: ["Chip", "ChipGroup"], examples: [{ uiType: "Chip" }, { uiType: "ChipGroup" }] },
37
+ { path: "/forms", tab: "checkbox-radio", title: "Forms › Checkbox & RadioGroup & CheckboxGroup", components: ["Checkbox", "RadioGroup", "CheckboxGroup"], examples: [{ uiType: "Checkbox" }, { uiType: "RadioGroup" }, { uiType: "CheckboxGroup" }] },
38
+ { path: "/forms", tab: "collapse", title: "Forms › Collapse", components: ["Collapse"], examples: [{ uiType: "Collapse" }] },
39
+ { path: "/forms", tab: "slider", title: "Forms › Slider", components: ["Slider"], examples: [{ uiType: "Slider" }] },
40
+ { path: "/forms", tab: "link", title: "Forms › Link", components: ["Link"], examples: [{ uiType: "Link" }] },
41
+ { path: "/forms", tab: "avatar", title: "Forms › Avatar", components: ["Avatar"], examples: [{ uiType: "Avatar" }] },
42
+ { path: "/forms", tab: "tree-view", title: "Forms › TreeView", components: ["TreeView"], examples: [{ uiType: "TreeView" }] },
43
+ { path: "/forms", tab: "insight-card", title: "Forms › InsightCard", components: ["InsightCard"], examples: [{ uiType: "InsightCard" }] },
44
+ { path: "/forms", tab: "insight-content", title: "Forms › InsightContent", components: ["InsightContent"], examples: [{ uiType: "InsightContent" }] },
45
+ { path: "/forms", tab: "card", title: "Forms › Card & CardGroup", components: ["Card", "CardGroup"], examples: [{ uiType: "Card" }, { uiType: "CardGroup" }] },
46
+ { path: "/grid/ex1", title: "Grid › 기본 그리드", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "기본 데이터 그리드" }] },
47
+ { path: "/grid/interaction", title: "Grid › 그리드 인터랙션", components: ["DataGrid"], examples: [{ uiType: "DataGrid" }] },
48
+ { path: "/grid/scroll-layout", title: "Grid › 그리드 스크롤 레이아웃 (최대 높이)", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "그리드 최대 높이" }] },
49
+ { path: "/grid/ex2", title: "Grid › Header Filter · Tooltip · Sort", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Header Filter" }] },
50
+ { path: "/grid/ex3", title: "Grid › No Data", components: ["DataGrid", "DataStatus"], examples: [{ uiType: "DataGrid", keyword: "No Data" }] },
51
+ { path: "/grid/ex4", title: "Grid › Custom Header", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Custom Header" }] },
52
+ { path: "/grid/ex5", title: "Grid › Header Menu (three-dots)", components: ["DataGrid", "HeaderFilter"], examples: [{ uiType: "DataGrid", keyword: "three-dots" }] },
53
+ { path: "/grid/ex6", title: "Grid › Master / Detail Cell", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Master / Detail" }] },
54
+ { path: "/grid/ex7", title: "Grid › Pivot · Sidebar", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Pivot" }] },
55
+ { path: "/grid/ex8", title: "Grid › Ratio Bar · Data Bar", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Bar" }] },
56
+ { path: "/grid/ex9", title: "Grid › Search Left Slot", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "slot to the left" }] },
57
+ { path: "/grid/ex10", title: "Grid › Tree Data Drag", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Tree data drag" }] },
58
+ { path: "/grid/ex11", title: "Grid › Two Grid Drag and Drop", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Grid row drag" }] },
59
+ { path: "/grid/ex12", title: "Grid › Server Side Row Model", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Server side" }] },
60
+ { path: "/grid/ex13", title: "Grid › Column Group", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Column Group" }] },
61
+ { path: "/grid/ex14", title: "Grid › Grid Tooltip (긴 텍스트 말줄임)", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "긴 텍스트" }] },
62
+ { path: "/grid/ex15", title: "Grid › Cell Loading (Partial Loading)", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "Partial Loading" }] },
63
+ { path: "/grid/ex16", title: "Grid › 표기 표준 (숫자·날짜·2줄 헤더)", components: ["DataGrid"], examples: [{ uiType: "DataGrid", keyword: "표기 표준" }] },
64
+ { path: "/icons", title: "Icons", components: ["Icon", "MuiIcon", "Markers"], examples: [{ uiType: "Icon" }, { uiType: "MuiIcon" }, { uiType: "Markers" }] },
65
+ { path: "/layout", title: "Layout › Tile", components: ["Tile", "GridLayout"], examples: [{ uiType: "GridLayout" }] },
66
+ { path: "/layout/shell", title: "Layout Shell", components: [], examples: [], note: "앱 셸(OpsnowCommonLayout) 데모입니다. 이 MCP/스킬은 Layout 셸 스펙을 제공하지 않습니다." },
67
+ { path: "/mega-filter", title: "Mega Filter", components: ["MegaFilter"], examples: [{ uiType: "MegaFilter" }] },
68
+ { path: "/notification", title: "Notification", components: ["Notification"], examples: [{ uiType: "Notification" }] },
69
+ { path: "/pagination", title: "Pagination", components: ["Pagination"], examples: [{ uiType: "Pagination" }] },
70
+ { path: "/popup", title: "Popup · Toast Popup", components: ["Popup", "ToastPopup"], examples: [{ uiType: "Popup" }, { uiType: "ToastPopup" }] },
71
+ { path: "/progress", title: "Progress · Loading", components: ["ProgressLine", "ProgressCircle"], examples: [{ uiType: "Progress" }, { uiType: "Loading" }] },
72
+ { path: "/stepper", title: "Stepper", components: ["Stepper", "StepButton"], examples: [{ uiType: "Stepper" }] },
73
+ { path: "/storage", title: "Storage (commonUILocalStorage)", components: [], examples: [{ uiType: "Storage" }], note: "컴포넌트가 아니라 공통 스토리지 유틸 데모입니다." },
74
+ { path: "/tooltip", title: "Tooltip", components: ["Tooltip", "IconTooltip", "CoachMark"], examples: [{ uiType: "Tooltip" }, { uiType: "IconTooltip" }, { uiType: "CoachMark" }], note: "탭이 있는 페이지입니다. #tab=<id> 가 붙은 링크면 해당 탭의 컴포넌트만 봅니다." },
75
+ { path: "/tooltip", tab: "icon-tooltip", title: "Tooltip › Icon Tooltip", components: ["IconTooltip"], examples: [{ uiType: "IconTooltip" }] },
76
+ { path: "/tooltip", tab: "tooltip", title: "Tooltip › Tooltip", components: ["Tooltip"], examples: [{ uiType: "Tooltip" }] },
77
+ { path: "/tooltip", tab: "coach-mark", title: "Tooltip › Coach Mark", components: ["CoachMark"], examples: [{ uiType: "CoachMark" }] },
78
+ { path: "/utils", title: "Utils (finOpsDateUtils 날짜 표기 표준)", components: [], examples: [], note: "컴포넌트가 아니라 날짜 표기 유틸 데모입니다. 서버 instructions·SKILL.md 의 \"날짜 표기 표준 — finOpsDateUtils\" 절을 따르세요." },
79
+ { path: "/api-example/api-test", title: "API Example (getAxios)", components: ["Input", "ProgressCircle"], examples: [{ uiType: "Loading" }], note: "API 호출은 getAxios() 를 사용합니다 (axios 직접 import 금지). 서버 instructions·SKILL.md 의 API 호출 규칙 참고." },
80
+ { path: "/api-example/error-test", title: "API Error Example (공통 오류 팝업)", components: ["Button", "ProgressCircle"], examples: [{ uiType: "Button" }, { uiType: "Loading" }], note: "공통 오류 팝업 데모입니다. 서버 instructions·SKILL.md 의 API 호출 규칙(공통 오류 팝업) 참고." },
81
+ { path: "/copilot", title: "Copilot", components: [], examples: [], note: "코파일럿 패널 데모입니다. 이 MCP/스킬 범위가 아닙니다." },
82
+ { path: "/finops-plus/button-tab-ui", title: "FinOps Plus › Button Tab UI", components: ["Button", "Tab"], examples: [{ uiType: "Button" }, { uiType: "Tab" }] },
83
+ { path: "/finops-plus/tile-with-checkbox", title: "FinOps Plus › Tile with Checkbox", components: ["Tile", "Checkbox", "Typography"], examples: [{ uiType: "Checkbox" }, { uiType: "Typography" }] },
84
+ { path: "/settings/language", title: "Settings › Language", components: ["Select"], examples: [{ uiType: "Select" }] },
85
+ { path: "/pattern/01/template", title: "페이지 패턴 01 › Template (뼈대)", components: ["Icon", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
86
+ { path: "/pattern/01/ex1", title: "페이지 패턴 01 › Example (적용 예)", components: ["BarChart", "Button", "DataGrid", "Icon", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
87
+ { path: "/pattern/02/template", title: "페이지 패턴 02 › Template (뼈대)", components: ["Button", "Calendar", "DataGrid", "Icon", "Select", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
88
+ { path: "/pattern/02/ex1", title: "페이지 패턴 02 › Example (적용 예)", components: ["BarChart", "Button", "Calendar", "DataGrid", "Icon", "Select", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
89
+ { path: "/pattern/03/template", title: "페이지 패턴 03 › Template (뼈대)", components: ["Icon", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
90
+ { path: "/pattern/03/ex1", title: "페이지 패턴 03 › Example (적용 예)", components: ["BarChart", "Icon", "LineChart", "Notification", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
91
+ { path: "/pattern/04/template", title: "페이지 패턴 04 › Template (뼈대)", components: ["AutocompleteSelect", "Button", "DataGrid", "Icon", "Select", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
92
+ { path: "/pattern/04/ex1", title: "페이지 패턴 04 › Example (적용 예)", components: ["AutocompleteSelect", "BarChart", "Button", "DataGrid", "Icon", "Markers", "Select", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
93
+ { path: "/pattern/05/template", title: "페이지 패턴 05 › Template (뼈대)", components: ["Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
94
+ { path: "/pattern/05/ex1", title: "페이지 패턴 05 › Example (적용 예)", components: ["Button", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
95
+ { path: "/pattern/06/template", title: "페이지 패턴 06 › Template (뼈대)", components: ["AutocompleteSelect", "DataGrid", "Icon", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
96
+ { path: "/pattern/06/ex1", title: "페이지 패턴 06 › Example (적용 예)", components: ["AutocompleteSelect", "DataGrid", "Icon", "PieChart", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
97
+ { path: "/pattern/07/template", title: "페이지 패턴 07 › Template (뼈대)", components: ["Button", "Icon", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
98
+ { path: "/pattern/07/ex1", title: "페이지 패턴 07 › Example (적용 예)", components: ["Button", "Checkbox", "Icon", "Select", "Switch", "Tab", "TextField", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
99
+ { path: "/pattern/08/template", title: "페이지 패턴 08 › Template (뼈대)", components: ["Icon", "Select", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
100
+ { path: "/pattern/08/ex1", title: "페이지 패턴 08 › Example (적용 예)", components: ["Button", "DataGrid", "Icon", "Select", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
101
+ { path: "/pattern/09/template", title: "페이지 패턴 09 › Template (뼈대)", components: ["Icon", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
102
+ { path: "/pattern/09/ex1", title: "페이지 패턴 09 › Example (적용 예)", components: ["AutocompleteSelect", "Button", "DataGrid", "Icon", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
103
+ { path: "/settings/01/template", title: "설정 페이지 패턴 01 › Template (뼈대)", components: ["Avatar", "Button", "Icon", "Input", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
104
+ { path: "/settings/01/ex1", title: "설정 페이지 패턴 01 › Example (적용 예)", components: ["Avatar", "Button", "Chip", "Icon", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
105
+ { path: "/settings/02/template", title: "설정 페이지 패턴 02 › Template (뼈대)", components: ["Avatar", "DataGrid", "Icon", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
106
+ { path: "/settings/02/ex1", title: "설정 페이지 패턴 02 › Example (적용 예)", components: ["Avatar", "Button", "Chip", "DataGrid", "Icon", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
107
+ { path: "/settings/03/template", title: "설정 페이지 패턴 03 › Template (뼈대)", components: ["Button", "DataGrid", "Input", "Tab", "Tile"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
108
+ { path: "/settings/03/ex1", title: "설정 페이지 패턴 03 › Example (적용 예)", components: ["Button", "DataGrid", "Tab", "Tile"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
109
+ { path: "/settings/04/template", title: "설정 페이지 패턴 04 › Template (뼈대)", components: ["Button", "Icon", "Input", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
110
+ { path: "/settings/04/ex1", title: "설정 페이지 패턴 04 › Example (적용 예)", components: ["Button", "Icon", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
111
+ { path: "/settings/05/template", title: "설정 페이지 패턴 05 › Template (뼈대)", components: ["Button", "Icon", "Select", "SelectMenu", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
112
+ { path: "/settings/05/ex1", title: "설정 페이지 패턴 05 › Example (적용 예)", components: ["Button", "Chip", "Icon", "Link", "Select", "SelectMenu", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
113
+ { path: "/settings/06/template", title: "설정 페이지 패턴 06 › Template (뼈대)", components: ["Button", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
114
+ { path: "/settings/06/ex1", title: "설정 페이지 패턴 06 › Example (적용 예)", components: ["Button", "Tab", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
115
+ { path: "/settings/07/template", title: "설정 페이지 패턴 07 › Template (뼈대)", components: ["Icon", "Switch", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
116
+ { path: "/settings/07/ex1", title: "설정 페이지 패턴 07 › Example (적용 예)", components: ["Button", "Icon", "Input", "RadioGroup", "Switch", "Tile", "Typography"], examples: [], note: "여러 컴포넌트를 조합한 화면 패턴 데모입니다. 아래 컴포넌트 스펙을 각각 확인해 조합하세요." },
117
+ ];
118
+ // 데모 화면의 예제(위에서 아래 순서) → MCP 예제. 키는 경로 또는 "<path>#tab=<id>"
119
+ export const UIDEMO_DEMOS = {
120
+ "/chart/xy-multi-chart": [
121
+ { label: "Basic XyMulti Chart + Multilingual", uiType: "XyMultiChart", title: "XY 멀티 차트 - 기본 + 다국어" },
122
+ { label: "Stack + Stack Line + Multilingual", uiType: "XyMultiChart", title: "XY 멀티 차트 - Stack + Stack Line + 다국어" },
123
+ { label: "Line + Stack + Connect False", uiType: "XyMultiChart", title: "XY 멀티 차트 - Line + Stack + Connect False" },
124
+ { label: "Multi Line", uiType: "XyMultiChart", title: "XY 멀티 차트 - Multi Line + UDF" },
125
+ { label: "Multi Line + Custom Category + Bullet Custom Field", uiType: "XyMultiChart", title: "XY 멀티 차트 - Multi Line + Custom Category + Bullet Custom Field" },
126
+ { label: "Multi Line + Custom Category + Bullet Custom Field + None Alarm", uiType: "XyMultiChart", title: "XY 멀티 차트 - Multi Line + Custom Category + Bullet Custom Field + None Alarm" },
127
+ { label: "Multi Line + Udf", uiType: "XyMultiChart", title: "XY 멀티 차트 - Multi Line + UDF 2" },
128
+ { label: "Multi Line + Udf 2", uiType: "XyMultiChart", title: "XY 멀티 차트 - Multi Line + UDF 3" },
129
+ { label: "Compare Item + Pointerover Event", uiType: "XyMultiChart", title: "XY 멀티 차트 - 기간 비교 툴팁 (tooltip type CG-Compare, 증감률·증감 화살표 색상) + Compare Item + Pointerover Event" },
130
+ { label: "Compare Item With Line Series", uiType: "XyMultiChart", title: "XY 멀티 차트 - 기간 비교 툴팁 (tooltip type CG-Compare, 증감률·증감 화살표 색상) + Compare Item + Line Series" },
131
+ { label: "Base Interval Month", uiType: "XyMultiChart", title: "XY 멀티 차트 - Base Interval Month" },
132
+ { label: "Base Interval Week", uiType: "XyMultiChart", title: "XY 멀티 차트 - Base Interval Week" },
133
+ { label: "Two Y-Axes", uiType: "XyMultiChart", title: "XY 멀티 차트 - Two Y-Axes" },
134
+ { label: "Multi Y-Axes", uiType: "XyMultiChart", title: "XY 멀티 차트 - Multi Y-Axes" },
135
+ { label: "Y axis notation (Numberformatter)", uiType: "XyMultiChart", title: "XY 멀티 차트 - Y Axis Numberformatter" },
136
+ { label: "Group List", uiType: "XyMultiChart", title: "XY 멀티 차트 - Group List" },
137
+ { label: "Multi Chart (Stack + Step + Gap + Interval)", uiType: "XyMultiChart", title: "XY 멀티 차트 - Stack + Step + Gap + Interval" },
138
+ { label: "Grouped Bar Chart with Label Bullet", uiType: "XyMultiChart", title: "XY 멀티 차트 - Bullet Label (Grouped Bar)" },
139
+ { label: "Line + Stack with Label Bullet", uiType: "XyMultiChart", title: "XY 멀티 차트 - Bullet Label (Line + Stack)" },
140
+ { label: "Dual Axis (Bar + Line) with Label Bullet", uiType: "XyMultiChart", title: "XY 멀티 차트 - Bullet Label (Dual Axis: Bar + Line)" },
141
+ { label: "bullet.hitRadius (왼쪽: 기본)", uiType: "XyMultiChart", title: "XY 멀티 차트 - bullet.hitRadius (작은 bullet 의 클릭 영역만 넓히기)" },
142
+ { label: "bullet.hitRadius (오른쪽: hitRadius 적용)", uiType: "XyMultiChart", title: "XY 멀티 차트 - bullet.hitRadius (작은 bullet 의 클릭 영역만 넓히기)" },
143
+ ],
144
+ "/chart/stack-chart": [
145
+ { label: "Basic Stack Chart + Multilingual", uiType: "StackChart", title: "스택 차트 - 기본 + 다국어" },
146
+ { label: "Tooltip Header + Chart Click + Hover Event", uiType: "StackChart", title: "스택 차트 - Tooltip Header + Chart Click + Hover Event" },
147
+ { label: "Group Tooltip", uiType: "StackChart", title: "스택 차트 - Group Tooltip" },
148
+ { label: "Y-Axis Numberformatter", uiType: "StackChart", title: "스택 차트 - Y-Axis Numberformatter" },
149
+ { label: "Template Field + Custom Label Field", uiType: "StackChart", title: "스택 차트 - Template Field + Custom Label Field" },
150
+ { label: "Tooltip Top Fixed With Minus Value (1)", uiType: "StackChart", title: "스택 차트 - Tooltip Top Fixed + WithinArea False + Minus Value" },
151
+ { label: "Tooltip Top Fixed With Minus Value (2)", uiType: "StackChart", title: "스택 차트 - Tooltip Top Fixed + WithinArea False + Minus Value" },
152
+ { label: "WithinArea False + Criteria (1)", uiType: "StackChart", title: "스택 차트 - Tooltip Top Fixed + WithinArea False + Minus Value" },
153
+ { label: "WithinArea False + Criteria (2)", uiType: "StackChart", title: "스택 차트 - Tooltip Top Fixed + WithinArea False + Minus Value" },
154
+ { label: "WithinArea False + Criteria (3)", uiType: "StackChart", title: "스택 차트 - Tooltip Top Fixed + WithinArea False + Minus Value" },
155
+ { label: "Stack Bar", uiType: "StackChart", title: "스택 차트 - Stack Bar(축변경)" },
156
+ { label: "Stack Bar (y-axis tooltip, …, numberformat)", uiType: "StackChart", title: "스택 차트 - Stack Bar (y-axis tooltip, withinArea = false, column hover, templateField, numberformat)" },
157
+ { label: "Stack Bar (y-axis tooltip, …, udf)", uiType: "StackChart", title: "스택 차트 - Stack Bar (y-axis tooltip, withinArea = false, column hover, templateField, udf)" },
158
+ { label: "Tooltip Body Name Truncated (1)", uiType: "StackChart", title: "스택 차트 - Stack Bar Label Truncated" },
159
+ { label: "Tooltip Body Name Truncated (2)", uiType: "StackChart", title: "스택 차트 - Stack Bar Label Truncated" },
160
+ { label: "Base Interval Month", uiType: "StackChart", title: "스택 차트 - Base Interval Month" },
161
+ { label: "Base Interval Week", uiType: "StackChart", title: "스택 차트 - Base Interval Week" },
162
+ { label: "Top N + Others", uiType: "StackChart", title: "스택 차트 - Top N + Others" },
163
+ { label: "Label Bullet - Vertical", uiType: "StackChart", title: "스택 차트 - Bullet Label (Vertical)" },
164
+ { label: "Label Bullet - Horizontal", uiType: "StackChart", title: "스택 차트 - Bullet Label (Horizontal)" },
165
+ ],
166
+ "/chart/bar-chart": [
167
+ { label: "Basic Bar Chart + Multilingual", uiType: "BarChart", title: "바 차트 - 기본 + 다국어" },
168
+ { label: "Click Column BarChart", uiType: "BarChart", title: "바 차트 - 클릭한 막대 색상 강조 (columns.click: clickColor / unClickColor / defaultPosition)" },
169
+ { label: "Tooltip Header + Chart Click Event", uiType: "BarChart", title: "바 차트 - Tooltip Header + Chart Click Event" },
170
+ { label: "Group Tooltip", uiType: "BarChart", title: "바 차트 - Group Tooltip" },
171
+ { label: "Axis Range Line", uiType: "BarChart", title: "바 차트 - Axis Range Line" },
172
+ { label: "Axis Change (colorByIndex = true + tooltip)", uiType: "BarChart", title: "바 차트 - Axis Change (colorByIndex = true + tooltip)" },
173
+ { label: "Axis Change (colorByIndex = true + bullet type label + …)", uiType: "BarChart", title: "바 차트 - Axis Change (colorByIndex = true + bullet type label + y axis label oversize truncate)" },
174
+ { label: "Udf", uiType: "BarChart", title: "바 차트 - User Defined Func" },
175
+ { label: "Top N + Others + Numberformatter", uiType: "BarChart", title: "바 차트 - Top N + Others + Numberformatter" },
176
+ ],
177
+ "/chart/line-chart": [
178
+ { label: "Basic Line Chart + Multilingual", uiType: "LineChart", title: "라인 차트 - 다국어" },
179
+ { label: "Line Only", uiType: "LineChart", title: "라인 차트 - Line Only (불릿 없이 선만 표시, bullet.lineOnly)" },
180
+ { label: "Line Only + Custom Category", uiType: "LineChart", title: "라인 차트 - 커스텀 카테고리" },
181
+ { label: "Group Tooltip", uiType: "LineChart", title: "라인 차트 - 그룹 툴팁 + Y축 NumberFormatter" },
182
+ { label: "Y-Axis Numberformatter", uiType: "LineChart", title: "라인 차트 - 그룹 툴팁 + Y축 NumberFormatter" },
183
+ { label: "Connect False", uiType: "LineChart", title: "라인 차트 - Connect False (값이 없는 구간은 선을 끊어서 표시)" },
184
+ { label: "Range", uiType: "LineChart", title: "라인 차트 - Range Area" },
185
+ { label: "Base Interval Month", uiType: "LineChart", title: "라인 차트 - Base Interval Month (월 단위 X축)" },
186
+ { label: "Base Interval Week + Click Event", uiType: "LineChart", title: "라인 차트 - Interval Week + Click Event" },
187
+ { label: "Udf + Multilingual", uiType: "LineChart", title: "라인 차트 - User Defined Function" },
188
+ { label: "Top N + Others", uiType: "LineChart", title: "라인 차트 - Top N + Others" },
189
+ { label: "Label Bullet", uiType: "LineChart", title: "라인 차트 - Bullet Label (데이터 포인트에 값 표시)" },
190
+ ],
191
+ "/chart/pie-chart": [
192
+ { label: "Basic Pie Chart + Multilingual", uiType: "PieChart", title: "파이 차트 - 기본 + 다국어" },
193
+ { label: "Click Series + Click Legend", uiType: "PieChart", title: "파이 차트 - Click Series + Click Legend" },
194
+ { label: "Legend Scroll", uiType: "PieChart", title: "파이 차트 - Legend Scroll" },
195
+ { label: "Udf + Custom Category", uiType: "PieChart", title: "파이 차트 - Udf + Custom Category" },
196
+ { label: "Label Image", uiType: "PieChart", title: "파이 차트 - Label Image" },
197
+ { label: "Custom Category (다양한 커스텀 색상 적용)", uiType: "PieChart", title: "파이 차트 - Custom Category (조각별 커스텀 색상 지정)" },
198
+ { label: "useSafeResolution", uiType: "PieChart", title: "파이 차트 - useSafeResolution (iOS 캔버스 메모리 제한 회피)" },
199
+ ],
200
+ "/chart/heatmap-chart": [
201
+ { label: "Default Legend Heatmap", uiType: "HeatmapChart", title: "히트맵 차트 - 기본" },
202
+ { label: "Custom Legend Heatmap", uiType: "HeatmapChart", title: "히트맵 차트 - 레전드 라벨 및 스타일" },
203
+ { label: "Custom Color Heatmap", uiType: "HeatmapChart", title: "히트맵 차트 - 커스텀 색상 및 클릭 이벤트" },
204
+ { label: "onClick Event Heatmap", uiType: "HeatmapChart", title: "히트맵 차트 - 커스텀 색상 및 클릭 이벤트" },
205
+ ],
206
+ "/chart/bubble-chart": [
207
+ { label: "1. 국가별 GDP — 다국어 적용", uiType: "BubbleChart", title: "버블 차트 - 국가별 GDP (sizeField + colorField + 다국어)" },
208
+ { label: "2. 클러스터 분포 — 클릭 이벤트", uiType: "BubbleChart", title: "버블 차트 - 클러스터 분포 (클릭 이벤트)" },
209
+ { label: "3. 자동 색상 할당", uiType: "BubbleChart", title: "버블 차트 - 자동 색상 할당 (colorField/sizeField 미지정)" },
210
+ { label: "4. 축 Padding (extraMin/extraMax)", uiType: "BubbleChart", title: "버블 차트 - 축 Padding (extraMin/extraMax 로 가장자리 잘림 방지)" },
211
+ ],
212
+ "/chart/zoom-scroll": [
213
+ { label: "Scrollbar X", uiType: "XyMultiChart", title: "XY 멀티 차트 - Zoom / Scroll: Scrollbar X (X축 스크롤바로 구간 이동·확대)" },
214
+ { label: "Scrollbar Y", uiType: "XyMultiChart", title: "XY 멀티 차트 - Zoom / Scroll: Scrollbar Y (Y축 스크롤바로 값 범위 확대)" },
215
+ { label: "ZoomXY + Scrollbars", uiType: "XyMultiChart", title: "XY 멀티 차트 - Zoom / Scroll: Scrollbar X + Y + 드래그 확대 (cursor.behavior zoomXY)" },
216
+ { label: "Zoom XY + Scrollbars With Series", uiType: "XyMultiChart", title: "XY 멀티 차트 - Zoom / Scroll: Scrollbar X 시리즈 미리보기 (scrollbarX.showSeries + height)" },
217
+ ],
218
+ "/chart/download": [
219
+ { label: "Bar Chart", uiType: "BarChart", title: "바 차트 - 다운로드 (기본)" },
220
+ { label: "Stack Chart", uiType: "StackChart", title: "스택 차트 - 다운로드" },
221
+ { label: "Line Chart", uiType: "LineChart", title: "라인 차트 - 다운로드" },
222
+ { label: "Pie Chart", uiType: "PieChart", title: "파이 차트 - 다운로드" },
223
+ ],
224
+ "/grid/ex1": [
225
+ { label: "Base Example Section", uiType: "DataGrid", title: "기본 데이터 그리드" },
226
+ { label: "다중 선택 (Multi-row Selection with Checkboxes)", uiType: "DataGrid", title: "다중 선택 (체크박스 Multi-row Selection)" },
227
+ { label: "에러 상태 (GRID_STATUS.ERROR)", uiType: "DataGrid", title: "Error Status (다시 시도 onRetry)" },
228
+ { label: "클릭 가능한 행 (Pointer Cursor)", uiType: "DataGrid", title: "행 클릭 이벤트 + 클릭 가능한 행 (onCellClick, Pointer Cursor)" },
229
+ { label: "No Results 상태", uiType: "DataGrid", title: "No Data" },
230
+ ],
231
+ "/grid/interaction": [
232
+ { label: "Input and Pagination (Custom Pagination)", uiType: "DataGrid", title: "Search + Pagination 추가" },
233
+ { label: "Insert Button Inside the Common Grid Search Section", uiType: "DataGrid", title: "Insert Button Inside the Common Grid Search Section" },
234
+ { label: "행 클릭 이벤트", uiType: "DataGrid", title: "행 클릭 이벤트 + 클릭 가능한 행 (onCellClick, Pointer Cursor)" },
235
+ { label: "컬럼 이동 (헤더 드래그 · 순서 저장/복원)", uiType: "DataGrid", title: "컬럼 이동 (헤더 드래그 · 순서 저장/복원)" },
236
+ ],
237
+ "/grid/scroll-layout": [
238
+ { label: "세로 스크롤 (Fixed Height with Vertical Scroll)", uiType: "DataGrid", title: "고정 높이 + 세로 스크롤 (gridHeight)" },
239
+ { label: "최대 10행 표시 + 내부 스크롤 (maxDisplayRows)", uiType: "DataGrid", title: "그리드 최대 높이 + 스크롤 (domLayout autoHeight)" },
240
+ { label: "Long Text with autoHeight", uiType: "DataGrid", title: "긴 텍스트 컬럼 (한 줄 + 말줄임 툴팁 / 줄바꿈 선택)" },
241
+ ],
242
+ "/grid/ex3": [
243
+ { label: "No data Section", uiType: "DataGrid", title: "No Data" },
244
+ { label: "Search No data Section", uiType: "DataGrid", title: "Search No Data (검색 결과 없음 — usedSearch)" },
245
+ { label: "custom no data section", uiType: "DataGrid", title: "Custom No Data" },
246
+ ],
247
+ "/grid/ex8": [
248
+ { label: "RatioBar Section", uiType: "DataGrid", title: "Ratio Bar" },
249
+ { label: "DataBar Section (Excel-style)", uiType: "DataGrid", title: "Data Bar" },
250
+ ],
251
+ "/grid/ex13": [
252
+ { label: "Column Group - Basic Example", uiType: "DataGrid", title: "Column Group - Basic" },
253
+ { label: "Column Group - Nested Example", uiType: "DataGrid", title: "Column Group - Nested" },
254
+ ],
255
+ "/grid/ex15": [
256
+ { label: "1. 셀 단위 로딩 (Cell-level Loading)", uiType: "DataGrid", title: "셀 단위 로딩 (Partial Loading — refreshCells) + 컬럼 전체 / 실패·재시도" },
257
+ { label: "2. 행 단위 로딩 (Row-level Loading)", uiType: "DataGrid", title: "행 단위 로딩 (Partial Loading — rowClassRules + redrawRows) + 선택 행 일괄 로딩" },
258
+ { label: "3. 선택 행 일괄 로딩 (Bulk Row Loading)", uiType: "DataGrid", title: "행 단위 로딩 (Partial Loading — rowClassRules + redrawRows) + 선택 행 일괄 로딩" },
259
+ { label: "4. 컬럼 단위 로딩 + 실패/재시도", uiType: "DataGrid", title: "셀 단위 로딩 (Partial Loading — refreshCells) + 컬럼 전체 / 실패·재시도" },
260
+ ],
261
+ "/forms#tab=button": [
262
+ { label: "Button - Contained", uiType: "Button", keyword: "contained" },
263
+ { label: "Button - Outlined", uiType: "Button", keyword: "outlined" },
264
+ { label: "Button - Text", uiType: "Button", keyword: "-text-" },
265
+ { label: "Button - Loading State", uiType: "Button", keyword: "loading" },
266
+ ],
267
+ "/forms#tab=badge": [
268
+ { label: "Badge - Standard", uiType: "Badge", keyword: "badge-standard" },
269
+ { label: "Badge - Dot", uiType: "Badge", keyword: "badge-dot" },
270
+ ],
271
+ "/forms#tab=text-field": [
272
+ { label: "Basic TextFields", uiType: "TextField", keyword: "basic-" },
273
+ { label: "Error States", uiType: "TextField", keyword: "error-" },
274
+ { label: "Disabled States", uiType: "TextField", keyword: "disabled-" },
275
+ { label: "Additional Variants", uiType: "TextField", keyword: "variant-" },
276
+ { label: "Show Input Values", uiType: "TextField" },
277
+ ],
278
+ "/forms#tab=textarea": [
279
+ { label: "TextArea Variations", uiType: "Textarea" },
280
+ ],
281
+ "/forms#tab=switch": [
282
+ { label: "Switch Variants", uiType: "Switch" },
283
+ { label: "Copilot 연결 (copilotId)", uiType: "Switch" },
284
+ ],
285
+ "/forms#tab=toggle-button": [
286
+ { label: "Large Size Buttons", uiType: "ToggleButtonGroup", title: "large-toggle-group" },
287
+ { label: "Medium Size Buttons", uiType: "ToggleButtonGroup", title: "medium-toggle-group" },
288
+ { label: "Small Size Buttons", uiType: "ToggleButtonGroup", title: "small-toggle-group-icon" },
289
+ { label: "Theme(New) Medium Size Icon + Text Buttons", uiType: "ToggleButtonGroup", title: "medium-icon-text-theme-new" },
290
+ { label: "Medium Size Icon Only Buttons", uiType: "ToggleButtonGroup", title: "medium-icon-only" },
291
+ { label: "Disabled State Buttons", uiType: "ToggleButtonGroup", title: "medium-disabled-toggle-group" },
292
+ ],
293
+ "/forms#tab=chip": [
294
+ { label: "Default Chips", uiType: "Chip", keyword: "default-chip" },
295
+ { label: "Color Chips", uiType: "Chip" },
296
+ { label: "ChipGroup — 카테고리 필터 (단일 선택 + 개수)", uiType: "ChipGroup", title: "ChipGroup - 단일 선택 카테고리 필터 (renderLabel로 개수 표시)" },
297
+ { label: "ChipGroup — 템플릿 선택 (selectedVariant)", uiType: "ChipGroup", title: "ChipGroup - 고른 칩만 filled (variant=\"outlined\" + selectedVariant=\"filled\")" },
298
+ { label: "ChipGroup — 클라우드 필터 (다중 선택 + renderItem)", uiType: "ChipGroup", title: "ChipGroup - 칩 모양 직접 그리기 (renderItem + itemProps)" },
299
+ ],
300
+ "/forms#tab=checkbox-radio": [
301
+ { label: "Bespin Common Checkbox", uiType: "Checkbox" },
302
+ { label: "Parent / Child Checkboxes", uiType: "Checkbox", keyword: "parent" },
303
+ { label: "Bespin Common Radio Group", uiType: "RadioGroup" },
304
+ { label: "CheckboxGroup — 계정 선택 (검색 + 전체 선택 + 목록 스크롤)", uiType: "CheckboxGroup", title: "CheckboxGroup - 검색 + 전체 선택 + 목록 스크롤 (selectAll · listMaxHeight · emptyContent)" },
305
+ { label: "CheckboxGroup — 요일 (가로 · small)", uiType: "CheckboxGroup", title: "CheckboxGroup - 가로 배치 · small (요일 선택)" },
306
+ ],
307
+ "/forms#tab=collapse": [
308
+ { label: "Collapse Examples", uiType: "Collapse" },
309
+ ],
310
+ "/forms#tab=slider": [
311
+ { label: "Continuous Slider", uiType: "Slider", keyword: "continuous-slider" },
312
+ { label: "Discrete Slider", uiType: "Slider", keyword: "discrete-slider" },
313
+ { label: "Range Slider", uiType: "Slider", keyword: "range-slider" },
314
+ { label: "Disabled Continuous Slider", uiType: "Slider", title: "disabled-continuous-slider" },
315
+ { label: "Range Slider with Value Labels", uiType: "Slider", title: "range-slider-with-marks" },
316
+ { label: "Custom Marks Slider", uiType: "Slider", title: "custom-marks-slider" },
317
+ { label: "Vertical Sliders", uiType: "Slider", keyword: "vertical-slider" },
318
+ ],
319
+ "/forms#tab=link": [
320
+ { label: "Link Examples", uiType: "Link" },
321
+ ],
322
+ "/forms#tab=avatar": [
323
+ { label: "Basic Avatars", uiType: "Avatar", keyword: "basic-avatar" },
324
+ { label: "Text Avatars", uiType: "Avatar", keyword: "text-avatar" },
325
+ { label: "Avatars with OpsnowCommonIcon", uiType: "Avatar", keyword: "icon-avatar" },
326
+ { label: "Different Variant & Colors", uiType: "Avatar", keyword: "variant-avatar" },
327
+ { label: "Avatar with Image", uiType: "Avatar", keyword: "image-avatar" },
328
+ { label: "Various Sizes", uiType: "Avatar", keyword: "text-avatar" },
329
+ { label: "Clickable Avatar", uiType: "Avatar", title: "clickable-avatar" },
330
+ { label: "alt Property", uiType: "Avatar", title: "avatar-no-exist-image-alt" },
331
+ ],
332
+ "/forms#tab=tree-view": [
333
+ { label: "Basic TreeView (Default: Searchable = true, showTotal = true)", uiType: "TreeView" },
334
+ { label: "TreeView with Default Expanded", uiType: "TreeView", title: "treeview-expanded-by-default" },
335
+ { label: "TreeView with Custom Icons (MUI Icons)", uiType: "TreeView", title: "basic-treeview-with-mui-icons" },
336
+ { label: "TreeView with Action Buttons", uiType: "TreeView" },
337
+ { label: "TreeView with Checkbox (Single Selection)", uiType: "TreeView", keyword: "checkbox" },
338
+ { label: "TreeView with Checkbox (Multi Selection)", uiType: "TreeView", title: "treeview-with-checkbox-multiselect" },
339
+ ],
340
+ "/forms#tab=card": [
341
+ { label: "Card — 표시만 (기본)", uiType: "Card", title: "Card - 표시만 (기본 outlined · padding · variant=\"plain\")" },
342
+ { label: "Card — 클릭 · 선택 표시 (onClick · selected · disabled)", uiType: "Card", title: "Card - 클릭 · 선택 표시 (onClick · selected · disabled)" },
343
+ { label: "CardGroup — 표시만 (기본 selectionMode='none')", uiType: "CardGroup", title: "CardGroup - 표시만 (요약 카드 줄, columns 반응형)" },
344
+ { label: "CardGroup — 클릭 카드 (onCardClick, 이동 · 팝업)", uiType: "CardGroup", title: "CardGroup - 클릭 카드 (onCardClick, 이동 · 팝업)" },
345
+ { label: "CardGroup — 비용 카드 (단일 선택 · 1 / 2 / 4열)", uiType: "CardGroup", title: "CardGroup - 단일 선택 (selectionMode=\"single\", value · onChange · cardSx)" },
346
+ { label: "CardGroup — 기준월 타일 (고정 크기)", uiType: "CardGroup", title: "CardGroup - 고정 크기 타일 (sx gridTemplateColumns · cardSx height · state.selected)" },
347
+ { label: "CardGroup — 만료 구간 카드 (minCardWidth)", uiType: "CardGroup", title: "CardGroup - 단일 선택 (selectionMode=\"single\", value · onChange · cardSx)" },
348
+ { label: "CardGroup — 상태 카드 (1 / 2 / 4열)", uiType: "CardGroup", title: "CardGroup - 단일 선택 (selectionMode=\"single\", value · onChange · cardSx)" },
349
+ { label: "CardGroup — 추천 필터 카드 (다중 선택 + 비활성)", uiType: "CardGroup", title: "CardGroup - 다중 선택 + 비활성 카드 (selectionMode=\"multiple\", minCardWidth)" },
350
+ ],
351
+ "/select#tab=select": [
352
+ { label: "label + placeholder (outlined, small)", uiType: "Select", title: "outlined, size=small, label + placeholder (단일 선택)" },
353
+ { label: "copilotLabel (코파일럿 전용 선택지 이름)", uiType: "Select", title: "copilotLabel (코파일럿 전용 옵션 이름)" },
354
+ { label: "variant=standard, size=small", uiType: "Select", title: "standard, size=small" },
355
+ { label: "variant=noLine, size=small", uiType: "Select", title: "noLine, size=small" },
356
+ { label: "variant=filled, size=small", uiType: "Select", title: "filled, size=small, label JSX" },
357
+ { label: "variant=outlined, size=small", uiType: "Select", title: "outlined, size=small" },
358
+ { label: "variant=outlined, size=medium", uiType: "Select", title: "outlined, size=medium, error" },
359
+ { label: "variant=filled, size=medium", uiType: "Select", title: "filled, size=medium, disabled" },
360
+ { label: "variant=standard, size=medium, error=true", uiType: "Select", title: "outlined, size=medium, error" },
361
+ { label: "variant=outlined, size=medium, disabled=true", uiType: "Select", title: "filled, size=medium, disabled" },
362
+ { label: "variant=filled, size=medium, disabled=true", uiType: "Select", title: "filled, size=medium, disabled" },
363
+ { label: "variant=standard, size=medium, disabled=true", uiType: "Select", title: "filled, size=medium, disabled" },
364
+ ],
365
+ "/select#tab=multi-select": [
366
+ { label: "label + placeholder (outlined, small)", uiType: "Select", title: "outlined, size=small, label + placeholder, multiple (다중 선택)" },
367
+ { label: "variant=standard, size=small", uiType: "Select", keyword: "multiple" },
368
+ { label: "variant=noLine, size=small", uiType: "Select", title: "noLine, size=small, multiple" },
369
+ { label: "variant=filled, size=small", uiType: "Select", keyword: "multiple" },
370
+ { label: "variant=outlined, size=small", uiType: "Select", title: "outlined, size=small, multiple" },
371
+ { label: "variant=outlined, size=medium", uiType: "Select", keyword: "multiple" },
372
+ { label: "variant=filled, size=medium", uiType: "Select", keyword: "multiple" },
373
+ { label: "variant=standard, size=medium, error=true", uiType: "Select", keyword: "multiple" },
374
+ { label: "variant=outlined, size=medium, disabled=true", uiType: "Select", keyword: "multiple" },
375
+ { label: "variant=filled, size=medium, disabled=true", uiType: "Select", keyword: "multiple" },
376
+ { label: "variant=standard, size=medium, disabled=true", uiType: "Select", keyword: "multiple" },
377
+ ],
378
+ "/select#tab=autocomplete": [
379
+ { label: "긴 라벨 — 기본 동작 (드롭다운이 옵션 폭에 맞게 확장)", uiType: "Autocomplete", title: "Autocomplete - 긴 라벨 기본 동작 (드롭다운 자동 확장)" },
380
+ { label: "긴 라벨 — fitDropdownWidth", uiType: "Autocomplete", title: "Autocomplete - fitDropdownWidth (드롭다운을 입력 필드 폭에 고정)" },
381
+ { label: "긴 라벨 — dropdownMaxWidth (360px)", uiType: "Autocomplete", title: "Autocomplete - dropdownMaxWidth (확장 최대 너비 제한)" },
382
+ { label: "Single Select", uiType: "Autocomplete", title: "Autocomplete - 단일 선택" },
383
+ { label: "Single Select - do not close on select", uiType: "Autocomplete", title: "Autocomplete - 단일 선택 (disableCloseOnSelect)" },
384
+ { label: "Multiple Select", uiType: "Autocomplete", title: "Autocomplete - 다중 선택" },
385
+ { label: "Async Options", uiType: "Autocomplete", title: "Autocomplete - 비동기 로딩" },
386
+ { label: "Grouped Single Select", uiType: "Autocomplete", title: "Autocomplete - 그룹 옵션" },
387
+ { label: "Grouped Multiple Select", uiType: "Autocomplete", title: "Autocomplete - 그룹 옵션 (다중 선택)" },
388
+ { label: "Checkbox Options", uiType: "Autocomplete", title: "Autocomplete - 체크박스/전체선택" },
389
+ { label: "Label & Placeholder", uiType: "Autocomplete", title: "Autocomplete - Label + Placeholder (단일)" },
390
+ { label: "Label & Placeholder (Multiple)", uiType: "Autocomplete", title: "Autocomplete - Label + Placeholder (다중)" },
391
+ { label: "Placeholder only (no label)", uiType: "Autocomplete", title: "Autocomplete - Placeholder only (no label)" },
392
+ { label: "OpsnowCommonIcons Example", uiType: "Autocomplete", title: "Autocomplete - 아이콘 옵션" },
393
+ { label: "Partially disabled options", uiType: "Autocomplete", title: "Autocomplete - 일부 옵션 disabled" },
394
+ { label: "All disabled", uiType: "Autocomplete", title: "Autocomplete - 전체 disabled" },
395
+ ],
396
+ "/select#tab=select-menu": [
397
+ { label: "Open menu with an icon button", uiType: "SelectMenu", title: "SelectMenu - 아이콘 버튼으로 여는 기본 메뉴 (buttonIconName + menuItems)" },
398
+ { label: "Long text example", uiType: "SelectMenu", title: "SelectMenu - 아이콘 버튼으로 여는 기본 메뉴 (buttonIconName + menuItems)" },
399
+ { label: "Open menu with an avatar (e.g. profile menu) - including listHeader and listFooter", uiType: "SelectMenu", title: "SelectMenu - 커스텀 트리거 + 헤더/푸터 (button · listHeader · listFooter, 프로필 메뉴)" },
400
+ { label: "Open menu with text", uiType: "SelectMenu", title: "SelectMenu - 커스텀 트리거 + 헤더/푸터 (button · listHeader · listFooter, 프로필 메뉴)" },
401
+ { label: "List with divider", uiType: "SelectMenu", title: "SelectMenu - 구분선이 있는 메뉴 (hasDivider)" },
402
+ { label: "List items containing custom components", uiType: "SelectMenu", title: "SelectMenu - 항목에 칩 · 액션 버튼 붙이기 (labelPreComponent · actionComponent)" },
403
+ { label: "Menu anchor/transform origin example", uiType: "SelectMenu", title: "SelectMenu - 메뉴 위치 맞추기 (anchorOrigin · transformOrigin)" },
404
+ ],
405
+ "/tooltip#tab=icon-tooltip": [
406
+ { label: "icon tooltip image, tooltipFullWidth = true", uiType: "IconTooltip", title: "IconTooltip - 이미지 미리보기 툴팁 (title에 JSX + tooltipPreview)" },
407
+ { label: "icon tooltip image", uiType: "IconTooltip", title: "IconTooltip - 이미지 미리보기 툴팁 (title에 JSX + tooltipPreview)" },
408
+ { label: "icon tooltip, tooltipFullWidth = true, justifyContent='flex-start'", uiType: "IconTooltip", title: "IconTooltip - 아이콘 색 · 크기 · 넓은 툴팁 (commonColor · size · tooltipFullWidth · placement)" },
409
+ ],
410
+ "/tooltip#tab=coach-mark": [
411
+ { label: "가이드 말풍선 — X로 닫으면 새로고침해도 다시 뜨지 않음 (localStorage)", uiType: "CoachMark", title: "storageKey-title-content-placement" },
412
+ { label: "제목 없이 본문만", uiType: "CoachMark", title: "content-only" },
413
+ { label: "placement = top", uiType: "CoachMark", title: "placement-top" },
414
+ { label: "placement = left", uiType: "CoachMark", title: "placement-left" },
415
+ { label: "onClose 콜백 + 커스텀 content(JSX)", uiType: "CoachMark", title: "jsx-content-onClose" },
416
+ { label: "하단 우측 액션 버튼 (actions)", uiType: "CoachMark", title: "actions-button" },
417
+ ],
418
+ };
419
+ function normalizePath(p) {
420
+ // 뒤에 번호가 붙을 수 있어 첫 토큰만 경로로 본다
421
+ let s = p.trim().split(/\s+/)[0] ?? "";
422
+ try {
423
+ if (/^https?:\/\//i.test(s))
424
+ s = new URL(s).pathname;
425
+ }
426
+ catch {
427
+ /* URL 파싱 실패 시 문자열 그대로 처리 */
428
+ }
429
+ s = s.split(/[?#]/)[0];
430
+ s = s.replace(/^\/?v2\/uidemo/i, "").replace(/^\/?uidemo(?=\/|$)/i, "");
431
+ if (!s.startsWith("/"))
432
+ s = "/" + s;
433
+ s = s.replace(/\/+$/, "");
434
+ return (s || "/").toLowerCase();
435
+ }
436
+ export function looksLikeDemoUrl(input) {
437
+ return /uidemo/i.test(input) || /^https?:\/\//i.test(input.trim());
438
+ }
439
+ /** 못 찾으면 route 가 undefined */
440
+ export function resolveDemoUrl(input) {
441
+ const path = normalizePath(input);
442
+ const tab = /[#&?]tab=([\w-]+)/i.exec(input)?.[1]?.toLowerCase();
443
+ const samePath = UIDEMO_ROUTES.filter(r => r.path === path);
444
+ const tabs = samePath.filter(r => r.tab);
445
+ const route = (tab && tabs.find(r => r.tab === tab)) || samePath.find(r => !r.tab);
446
+ // "N번째": 링크 뒤의 "5" · "5번째" 또는 #demo=5 / ?n=5
447
+ const afterUrl = input.trim().replace(/^\S+/, "");
448
+ const idx = /[#&?](?:demo|example|ex|n)=(\d+)/i.exec(input)?.[1] ??
449
+ /(\d+)\s*(?:번째|번|th|st|nd|rd)?/i.exec(afterUrl)?.[1];
450
+ return { path, tab, route, tabs, demos: (route?.tab ? UIDEMO_DEMOS[`${path}#tab=${route.tab}`] : undefined) ?? UIDEMO_DEMOS[path] ?? [], index: idx ? Number(idx) : undefined };
451
+ }
452
+ export function demoCall(d) {
453
+ const kw = d.title ?? d.keyword;
454
+ return kw ? `getUIExamples({ uiType: "${d.uiType}", keyword: "${kw}" })` : `getUIExamples({ uiType: "${d.uiType}" })`;
455
+ }
456
+ // 제목 비교용: 소문자 + 글자·숫자만 (— / - / 공백 / 괄호 차이 무시)
457
+ function normLabel(s) {
458
+ return s.toLowerCase().replace(/&amp;/g, "&").replace(/[^0-9a-z가-힣]/g, "");
459
+ }
460
+ /** 데모 화면의 예제 제목으로 검색 — 완전 일치가 있으면 그것만, 없으면 부분 일치(3글자 이상) */
461
+ export function searchDemosByLabel(query, uiType) {
462
+ const q = normLabel(query);
463
+ if (!q)
464
+ return [];
465
+ const hits = [];
466
+ for (const [page, demos] of Object.entries(UIDEMO_DEMOS)) {
467
+ demos.forEach((demo, i) => {
468
+ if (uiType && demo.uiType !== uiType)
469
+ return;
470
+ const l = normLabel(demo.label);
471
+ if (l === q)
472
+ hits.push({ page, index: i + 1, demo, exact: true });
473
+ else if (q.length >= 3 && l.includes(q))
474
+ hits.push({ page, index: i + 1, demo, exact: false });
475
+ });
476
+ }
477
+ const exact = hits.filter(h => h.exact);
478
+ return exact.length > 0 ? exact : hits;
479
+ }
480
+ export function renderLabelHits(query, hits) {
481
+ const seen = new Set();
482
+ const lines = [];
483
+ for (const h of hits) {
484
+ const call = demoCall(h.demo);
485
+ const key = `${h.demo.label}|${call}`;
486
+ if (seen.has(key))
487
+ continue;
488
+ seen.add(key);
489
+ lines.push(`- ${h.demo.label} (${UIDEMO_BASE_URL}${h.page}, ${h.index}번째) → ${call}`);
490
+ }
491
+ return `uidemo 데모 화면의 예제 제목 '${query}' 검색 결과 ${lines.length}건 — 맞는 호출문을 그대로 실행하세요:\n${lines.slice(0, 20).join("\n")}`;
492
+ }
493
+ export function demoUrlOf(r) {
494
+ return UIDEMO_BASE_URL + (r.path === "/" ? "" : r.path) + (r.tab ? `#tab=${r.tab}` : "");
495
+ }
496
+ /** 데모 링크 → 스펙·예제 호출문 안내 (마크다운) */
497
+ export function renderDemoMatch(input) {
498
+ const m = resolveDemoUrl(input);
499
+ if (!m.route) {
500
+ const pages = UIDEMO_ROUTES.filter(r => !r.tab).map(r => `- ${demoUrlOf(r)} — ${r.title}`);
501
+ return `'${input}' 에 해당하는 uidemo 데모 페이지를 찾지 못했습니다 (경로: ${m.path}). 매핑된 데모 페이지 목록:\n${pages.join("\n")}`;
502
+ }
503
+ const r = m.route;
504
+ let md = `# uidemo 데모: ${r.title}\n\n링크: ${demoUrlOf(r)}\n\n`;
505
+ if (r.note)
506
+ md += `> ${r.note}\n\n`;
507
+ if (r.components.length > 0) {
508
+ md += `## 이 화면의 컴포넌트 — 스펙 조회\n`;
509
+ md += r.components.map(c => `getComponentSpec({ component: "${c}" })`).join("\n") + "\n\n";
510
+ }
511
+ if (r.examples.length > 0) {
512
+ md += `## 예제 조회\n`;
513
+ md += r.examples
514
+ .map(e => (e.keyword ? `getUIExamples({ uiType: "${e.uiType}", keyword: "${e.keyword}" })` : `getUIExamples({ uiType: "${e.uiType}" })`))
515
+ .join("\n") + "\n\n";
516
+ }
517
+ if (m.demos.length > 0) {
518
+ const call = demoCall;
519
+ const picked = m.index ? m.demos[m.index - 1] : undefined;
520
+ if (m.index && picked) {
521
+ md += `## 데모 화면의 ${m.index}번째 예제 — ${picked.label}\n${call(picked)}\n\n`;
522
+ }
523
+ else if (m.index) {
524
+ md += `> 이 화면의 예제는 ${m.demos.length}개입니다 (${m.index}번째 없음). 아래 순서 목록에서 고르세요.\n\n`;
525
+ }
526
+ md += `## 데모 화면 예제 순서 (위에서 아래) → 해당 예제\n`;
527
+ md += m.demos.map((d, i) => `${i + 1}. ${d.label} → ${call(d)}`).join("\n") + "\n\n";
528
+ md += `"N번째 예제"를 바로 집으려면 링크 뒤에 번호를 붙이세요: getUIExamples({ uiType: "${demoUrlOf(r)} 3" })\n\n`;
529
+ }
530
+ if (r.components.length === 0 && r.examples.length === 0) {
531
+ md += `이 화면에 대응하는 컴포넌트 스펙·예제는 없습니다.\n\n`;
532
+ }
533
+ if (!r.tab && m.tabs.length > 0) {
534
+ md += `## 탭별 링크 (#tab=<id>)\n`;
535
+ md += m.tabs.map(t => `- #tab=${t.tab} — ${t.title}: ${t.components.join(", ") || "(스펙 없음)"}`).join("\n") + "\n\n";
536
+ }
537
+ if (r.components.length > 0 || r.examples.length > 0) {
538
+ md += `위 호출문을 그대로 실행해 스펙·예제를 확인한 뒤 코드를 작성하세요.`;
539
+ }
540
+ return md.trimEnd();
541
+ }