@reopt-ai/opt-ui 1.12.4 → 1.13.0

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +236 -0
  2. package/COMPONENT_CATALOG.md +290 -111
  3. package/dist/core/index.cjs +13 -13
  4. package/dist/core/index.d.cts +2 -2
  5. package/dist/core/index.d.ts +2 -2
  6. package/dist/core/index.js +2 -2
  7. package/dist/docs/02-components/01-core.md +49 -49
  8. package/dist/docs/02-components/02-visuals.md +1 -1
  9. package/dist/docs/02-components/03-shells.md +260 -63
  10. package/dist/docs/02-components/04-surfaces.md +1 -1
  11. package/dist/docs/02-components/index.md +4 -4
  12. package/dist/{field-sidebar-C8bDzGPs.js → field-sidebar-CRdToHRO.js} +3975 -235
  13. package/dist/{field-sidebar-DX5wP0qn.cjs → field-sidebar-CxxSK4JO.cjs} +4338 -244
  14. package/dist/{field-sidebar-Ct8c9L4V.d.cts → field-sidebar-D-rwuN_w.d.cts} +824 -2
  15. package/dist/{field-sidebar-YaWHfLLW.d.ts → field-sidebar-Dz7J4ett.d.ts} +824 -2
  16. package/dist/id-registry.cjs +72 -0
  17. package/dist/id-registry.js +72 -0
  18. package/dist/id-registry.json +153 -0
  19. package/dist/index.cjs +334 -1419
  20. package/dist/index.d.cts +51 -86
  21. package/dist/index.d.ts +51 -86
  22. package/dist/index.js +248 -1356
  23. package/dist/{key-pad-menu-1YN221Oi.cjs → key-pad-menu-0KWOnELe.cjs} +53 -483
  24. package/dist/{key-pad-menu-CwcY_Vps.d.cts → key-pad-menu-BOVu97bj.d.cts} +4 -55
  25. package/dist/{key-pad-menu-CUiQ-vKw.js → key-pad-menu-DMmbQ1jF.js} +54 -418
  26. package/dist/{key-pad-menu-WBJShCJn.d.ts → key-pad-menu-NlZ9zNF8.d.ts} +4 -55
  27. package/dist/meta.cjs +896 -7
  28. package/dist/meta.js +896 -7
  29. package/dist/shells/index.cjs +20 -1
  30. package/dist/shells/index.d.cts +2 -2
  31. package/dist/shells/index.d.ts +2 -2
  32. package/dist/shells/index.js +2 -2
  33. package/dist/{text-truncate-BFWd2cE_.js → text-truncate-Bd-0WkSP.js} +463 -99
  34. package/dist/{text-truncate-DsG5UAOY.cjs → text-truncate-BeYW6XZu.cjs} +525 -101
  35. package/dist/{text-truncate-CQyfUZvq.d.cts → text-truncate-eMzvU_7k.d.cts} +52 -1
  36. package/dist/{text-truncate-CQyfUZvq.d.ts → text-truncate-eMzvU_7k.d.ts} +52 -1
  37. package/dist/theme/server.cjs +2 -2
  38. package/dist/theme/server.js +2 -2
  39. package/package.json +6 -2
package/dist/meta.js CHANGED
@@ -1220,6 +1220,10 @@ const coreMetas = [
1220
1220
  },
1221
1221
  {
1222
1222
  name: "setOpen",
1223
+ deprecated: {
1224
+ since: "1.12.5",
1225
+ replacement: "onOpenChange"
1226
+ },
1223
1227
  type: "(open: boolean) => void",
1224
1228
  description: "제어 모드: 상태 변경 핸들러"
1225
1229
  },
@@ -1297,6 +1301,10 @@ const coreMetas = [
1297
1301
  },
1298
1302
  {
1299
1303
  name: "setSelectedId",
1304
+ deprecated: {
1305
+ since: "1.12.5",
1306
+ replacement: "onSelectedIdChange"
1307
+ },
1300
1308
  type: "(id: string | null) => void",
1301
1309
  description: "제어 모드: 탭 변경 핸들러"
1302
1310
  }
@@ -1465,6 +1473,10 @@ const coreMetas = [
1465
1473
  },
1466
1474
  {
1467
1475
  name: "gutter",
1476
+ deprecated: {
1477
+ since: "1.12.5",
1478
+ replacement: "sideOffset"
1479
+ },
1468
1480
  type: "number",
1469
1481
  default: "4",
1470
1482
  description: "트리거와의 간격 (px)"
@@ -1543,6 +1555,10 @@ const coreMetas = [
1543
1555
  description: "제어 모드: 열림 상태"
1544
1556
  }, {
1545
1557
  name: "setOpen",
1558
+ deprecated: {
1559
+ since: "1.12.5",
1560
+ replacement: "onOpenChange"
1561
+ },
1546
1562
  type: "(open: boolean) => void",
1547
1563
  description: "제어 모드: 상태 변경 핸들러"
1548
1564
  }],
@@ -1666,6 +1682,10 @@ const coreMetas = [
1666
1682
  props: {
1667
1683
  ComboboxRoot: [{
1668
1684
  name: "setValue",
1685
+ deprecated: {
1686
+ since: "1.12.5",
1687
+ replacement: "onValueChange"
1688
+ },
1669
1689
  type: "(value: string) => void",
1670
1690
  description: "입력값 변경 핸들러"
1671
1691
  }, {
@@ -1707,6 +1727,10 @@ const coreMetas = [
1707
1727
  },
1708
1728
  {
1709
1729
  name: "gutter",
1730
+ deprecated: {
1731
+ since: "1.12.5",
1732
+ replacement: "sideOffset"
1733
+ },
1710
1734
  type: "number",
1711
1735
  default: "4",
1712
1736
  description: "입력과의 간격 (px)"
@@ -1838,6 +1862,10 @@ const coreMetas = [
1838
1862
  },
1839
1863
  {
1840
1864
  name: "gutter",
1865
+ deprecated: {
1866
+ since: "1.12.5",
1867
+ replacement: "sideOffset"
1868
+ },
1841
1869
  type: "number",
1842
1870
  default: "8",
1843
1871
  description: "트리거와의 간격 (px)"
@@ -2191,6 +2219,10 @@ const coreMetas = [
2191
2219
  },
2192
2220
  {
2193
2221
  name: "gutter",
2222
+ deprecated: {
2223
+ since: "1.12.5",
2224
+ replacement: "sideOffset"
2225
+ },
2194
2226
  type: "number",
2195
2227
  default: "4",
2196
2228
  description: "트리거와의 간격 (px)"
@@ -3948,6 +3980,10 @@ const store = useFormStore({ defaultValues: { name: "" } });
3948
3980
  }],
3949
3981
  props: { PopoverContent: [{
3950
3982
  name: "gutter",
3983
+ deprecated: {
3984
+ since: "1.12.5",
3985
+ replacement: "sideOffset"
3986
+ },
3951
3987
  type: "number",
3952
3988
  default: "8",
3953
3989
  description: "트리거와의 간격 (px)"
@@ -3988,6 +4024,10 @@ const store = useFormStore({ defaultValues: { name: "" } });
3988
4024
  props: {
3989
4025
  DropdownContent: [{
3990
4026
  name: "gutter",
4027
+ deprecated: {
4028
+ since: "1.12.5",
4029
+ replacement: "sideOffset"
4030
+ },
3991
4031
  type: "number",
3992
4032
  default: "4",
3993
4033
  description: "트리거와의 간격 (px)"
@@ -4998,6 +5038,7 @@ const MyDashboard = createBlock<MyDashboardProps>(
4998
5038
  description: "페이지에 머무는 인페이지 고지. Alert와 달리 dismiss가 없고, 조건이 참인 동안 레이아웃의 일부로 남습니다.",
4999
5039
  slug: "callout",
5000
5040
  exports: ["Callout"],
5041
+ ariaRole: "status",
5001
5042
  props: { Callout: [
5002
5043
  {
5003
5044
  name: "tone",
@@ -6939,15 +6980,26 @@ const filters = [
6939
6980
  {
6940
6981
  name: "QueryResultsTable",
6941
6982
  category: "shell",
6942
- description: "쿼리 결과 테이블. SQL 결과와 스크린 리더에 안내되는 로딩, 에러, 빈 상태를 지원합니다.",
6983
+ functionalCategory: "data-display",
6984
+ maturity: "stable",
6985
+ keywords: [
6986
+ "sql",
6987
+ "query",
6988
+ "results",
6989
+ "grid",
6990
+ "table",
6991
+ "virtualized"
6992
+ ],
6993
+ description: "쿼리 결과 테이블. 타입이 표시되는 헤더, 로컬 정렬, 컬럼 리사이즈, 행 상세 패널을 갖추고 행을 윈도잉해 만 행도 스크롤로 다룹니다. NULL·불리언·객체를 빈칸 대신 글자로 씁니다.",
6943
6994
  slug: "query-results-table",
6944
6995
  exports: ["QueryResultsTable"],
6996
+ domlessExports: ["formatQueryCell"],
6945
6997
  props: { QueryResultsTable: [
6946
6998
  {
6947
6999
  name: "columns",
6948
- type: "string[]",
7000
+ type: "Array<string | QueryResultColumn>",
6949
7001
  required: true,
6950
- description: "컬럼 이름"
7002
+ description: "컬럼 이름, 또는 타입을 포함한 컬럼 정의"
6951
7003
  },
6952
7004
  {
6953
7005
  name: "rows",
@@ -6955,6 +7007,12 @@ const filters = [
6955
7007
  required: true,
6956
7008
  description: "결과 행"
6957
7009
  },
7010
+ {
7011
+ name: "maxHeight",
7012
+ type: "number | \"fill\"",
7013
+ default: "400",
7014
+ description: "스크롤 높이(px). fill이면 부모 높이를 채움"
7015
+ },
6958
7016
  {
6959
7017
  name: "loading",
6960
7018
  type: "boolean",
@@ -6965,12 +7023,59 @@ const filters = [
6965
7023
  type: "string",
6966
7024
  description: "assertive 오류 상태"
6967
7025
  },
7026
+ {
7027
+ name: "sortable",
7028
+ type: "boolean",
7029
+ default: "true",
7030
+ description: "헤더 클릭 정렬"
7031
+ },
7032
+ {
7033
+ name: "sort",
7034
+ type: "QueryResultSort | null",
7035
+ description: "제어형 정렬 상태"
7036
+ },
7037
+ {
7038
+ name: "onSortChange",
7039
+ type: "(sort: QueryResultSort | null) => void",
7040
+ description: "정렬 변경"
7041
+ },
7042
+ {
7043
+ name: "rowHeight",
7044
+ type: "number",
7045
+ default: "32",
7046
+ description: "행 높이(px). 윈도잉의 기준"
7047
+ },
7048
+ {
7049
+ name: "rowDetails",
7050
+ type: "boolean",
7051
+ default: "true",
7052
+ description: "행을 상세 패널로 열기"
7053
+ },
7054
+ {
7055
+ name: "footer",
7056
+ type: "ReactNode",
7057
+ description: "행 수 뒤에 붙는 푸터 내용 — 경과 시간, 읽은 바이트"
7058
+ },
6968
7059
  {
6969
7060
  name: "labels",
6970
7061
  type: "QueryResultsTableLabels",
6971
- description: "로딩/빈 상태/행 문구"
7062
+ description: "로딩/빈 상태/행 수/정렬/상세 문구"
6972
7063
  }
6973
7064
  ] },
7065
+ dependencies: [
7066
+ {
7067
+ slug: "field-token",
7068
+ category: "core"
7069
+ },
7070
+ {
7071
+ slug: "flyout",
7072
+ category: "shell"
7073
+ },
7074
+ {
7075
+ slug: "description-list",
7076
+ category: "core"
7077
+ }
7078
+ ],
6974
7079
  testDescribe: "QueryResultsTable"
6975
7080
  },
6976
7081
  {
@@ -7010,12 +7115,12 @@ const filters = [
7010
7115
  },
7011
7116
  {
7012
7117
  name: "onRun",
7013
- type: "(sql: string) => void",
7014
- description: "Mod+Enter 실행 핸들러"
7118
+ type: "(sql: string, context: SqlEditorRunContext) => void",
7119
+ description: "Mod+Enter 실행 핸들러. 두 번째 인자로 선택 영역과 커서 위치"
7015
7120
  },
7016
7121
  {
7017
7122
  name: "onRunAndAdvance",
7018
- type: "(sql: string) => void",
7123
+ type: "(sql: string, context: SqlEditorRunContext) => void",
7019
7124
  description: "Shift+Enter — 실행 후 다음 셀/탭으로 이동"
7020
7125
  },
7021
7126
  {
@@ -7068,6 +7173,18 @@ const filters = [
7068
7173
  type: "boolean",
7069
7174
  description: "실행 힌트/버튼 표시. 기본값은 onRun이 있을 때 표시"
7070
7175
  },
7176
+ {
7177
+ name: "lineNumbers",
7178
+ type: "boolean",
7179
+ default: "true",
7180
+ description: "줄 번호 거터"
7181
+ },
7182
+ {
7183
+ name: "theme",
7184
+ type: "SqlEditorTheme",
7185
+ default: "\"auto\"",
7186
+ description: "편집기 색상. auto는 OptThemeProvider의 resolved mode를 따름"
7187
+ },
7071
7188
  {
7072
7189
  name: "labels",
7073
7190
  type: "SqlEditorLabels",
@@ -9880,6 +9997,778 @@ const messages = [
9880
9997
  avoid: ["선택 초기화를 호출자에게 맡기지 않습니다 — 보이지 않는 행에 일괄 작업이 적용됩니다."]
9881
9998
  },
9882
9999
  testDescribe: "CatalogFrame"
10000
+ },
10001
+ {
10002
+ name: "SchemaTree",
10003
+ category: "shell",
10004
+ functionalCategory: "navigation",
10005
+ maturity: "stable",
10006
+ keywords: [
10007
+ "sql",
10008
+ "schema",
10009
+ "tables",
10010
+ "columns",
10011
+ "tree",
10012
+ "autocomplete"
10013
+ ],
10014
+ description: "쿼리할 수 있는 테이블과 컬럼을 타입 글리프와 함께 보여주는 트리. 테이블·컬럼을 함께 검색하고, 이름을 커서에 삽입하거나 테이블을 미리보기합니다.",
10015
+ slug: "schema-tree",
10016
+ exports: ["SchemaTree"],
10017
+ props: { SchemaTree: [
10018
+ {
10019
+ name: "tables",
10020
+ type: "SchemaTreeTable[]",
10021
+ required: true,
10022
+ description: "테이블과 컬럼"
10023
+ },
10024
+ {
10025
+ name: "loading",
10026
+ type: "boolean",
10027
+ description: "스키마 조회 중"
10028
+ },
10029
+ {
10030
+ name: "defaultExpanded",
10031
+ type: "string[]",
10032
+ description: "처음에 펼칠 테이블. 생략 시 첫 테이블"
10033
+ },
10034
+ {
10035
+ name: "onInsert",
10036
+ type: "(name: string, kind: \"table\" | \"column\", table: string) => void",
10037
+ description: "이름을 편집기 커서에 삽입"
10038
+ },
10039
+ {
10040
+ name: "onPreview",
10041
+ type: "(table: string) => void",
10042
+ description: "테이블 미리보기 실행. SQL은 호출자가 작성"
10043
+ },
10044
+ {
10045
+ name: "header",
10046
+ type: "ReactNode",
10047
+ description: "검색창 위 내용"
10048
+ },
10049
+ {
10050
+ name: "labels",
10051
+ type: "SchemaTreeLabels",
10052
+ description: "문구 오버라이드"
10053
+ }
10054
+ ] },
10055
+ dependencies: [{
10056
+ slug: "field-token",
10057
+ category: "core"
10058
+ }, {
10059
+ slug: "highlight",
10060
+ category: "core"
10061
+ }],
10062
+ ariaRole: "complementary",
10063
+ testDescribe: "SchemaTree"
10064
+ },
10065
+ {
10066
+ name: "QueryToolbar",
10067
+ category: "shell",
10068
+ functionalCategory: "action",
10069
+ maturity: "stable",
10070
+ keywords: [
10071
+ "sql",
10072
+ "run",
10073
+ "cancel",
10074
+ "toolbar",
10075
+ "shortcut"
10076
+ ],
10077
+ description: "실행 버튼 하나가 상태를 말하는 쿼리 툴바. 변경됨/현재/실행 중을 색과 문구로 구분하고, 실행 중이면 취소로 바뀌며, 선택 영역·전체 실행은 분할 버튼 뒤에 둡니다.",
10078
+ slug: "query-toolbar",
10079
+ exports: ["QueryToolbar"],
10080
+ props: { QueryToolbar: [
10081
+ {
10082
+ name: "onRun",
10083
+ type: "() => void",
10084
+ required: true,
10085
+ description: "커서 위치의 문장 실행"
10086
+ },
10087
+ {
10088
+ name: "onCancel",
10089
+ type: "() => void",
10090
+ description: "실행 중 취소. 있으면 버튼이 Cancel로 전환"
10091
+ },
10092
+ {
10093
+ name: "running",
10094
+ type: "boolean",
10095
+ description: "실행 중"
10096
+ },
10097
+ {
10098
+ name: "runState",
10099
+ type: "QueryRunState",
10100
+ default: "\"idle\"",
10101
+ description: "마지막 실행 대비 변경 여부"
10102
+ },
10103
+ {
10104
+ name: "runDisabledReason",
10105
+ type: "string",
10106
+ description: "실행 불가 사유. 툴팁으로 표시"
10107
+ },
10108
+ {
10109
+ name: "onRunSelection",
10110
+ type: "() => void",
10111
+ description: "선택 영역만 실행"
10112
+ },
10113
+ {
10114
+ name: "hasSelection",
10115
+ type: "boolean",
10116
+ description: "선택 영역이 있는지. 없으면 항목 비활성"
10117
+ },
10118
+ {
10119
+ name: "onRunAll",
10120
+ type: "() => void",
10121
+ description: "전체 문장 실행"
10122
+ },
10123
+ {
10124
+ name: "multiStatement",
10125
+ type: "boolean",
10126
+ description: "문장이 둘 이상인지. 아니면 전체 실행을 숨김"
10127
+ },
10128
+ {
10129
+ name: "onSave",
10130
+ type: "() => void",
10131
+ description: "저장 다이얼로그 열기"
10132
+ },
10133
+ {
10134
+ name: "saveDisabled",
10135
+ type: "boolean",
10136
+ description: "저장 비활성"
10137
+ },
10138
+ {
10139
+ name: "children",
10140
+ type: "ReactNode",
10141
+ description: "실행 그룹 뒤의 컨트롤 — 필터, 변수"
10142
+ },
10143
+ {
10144
+ name: "trailing",
10145
+ type: "ReactNode",
10146
+ description: "끝쪽 컨트롤"
10147
+ },
10148
+ {
10149
+ name: "modifierKey",
10150
+ type: "string",
10151
+ description: "단축키 힌트의 수정자 글리프. 기본은 플랫폼 감지"
10152
+ },
10153
+ {
10154
+ name: "labels",
10155
+ type: "QueryToolbarLabels",
10156
+ description: "문구 오버라이드"
10157
+ }
10158
+ ] },
10159
+ dependencies: [
10160
+ {
10161
+ slug: "button",
10162
+ category: "core"
10163
+ },
10164
+ {
10165
+ slug: "kbd",
10166
+ category: "core"
10167
+ },
10168
+ {
10169
+ slug: "dropdown-menu",
10170
+ category: "core"
10171
+ }
10172
+ ],
10173
+ ariaRole: "toolbar",
10174
+ testDescribe: "QueryToolbar"
10175
+ },
10176
+ {
10177
+ name: "QueryOutputPane",
10178
+ category: "shell",
10179
+ functionalCategory: "data-display",
10180
+ maturity: "stable",
10181
+ keywords: [
10182
+ "sql",
10183
+ "results",
10184
+ "chart",
10185
+ "split",
10186
+ "status bar"
10187
+ ],
10188
+ description: "쿼리 결과가 놓이는 출력 패널. 대기·실행 중·오류·취소·완료 상태를 그리고, 완료는 표·차트·좌우 분할로 전환하며, 상태바에 행 수·경과·읽은 바이트·절단 여부를 남깁니다.",
10189
+ slug: "query-output-pane",
10190
+ exports: ["QueryOutputPane"],
10191
+ props: { QueryOutputPane: [
10192
+ {
10193
+ name: "view",
10194
+ type: "QueryOutputView",
10195
+ required: true,
10196
+ description: "표 / 차트 / 분할"
10197
+ },
10198
+ {
10199
+ name: "onViewChange",
10200
+ type: "(view: QueryOutputView) => void",
10201
+ required: true,
10202
+ description: "뷰 전환"
10203
+ },
10204
+ {
10205
+ name: "results",
10206
+ type: "ReactNode",
10207
+ required: true,
10208
+ description: "결과 테이블"
10209
+ },
10210
+ {
10211
+ name: "chart",
10212
+ type: "ReactNode",
10213
+ description: "차트 빌더. 없으면 차트 뷰를 숨김"
10214
+ },
10215
+ {
10216
+ name: "status",
10217
+ type: "\"idle\" | \"running\" | \"success\" | \"error\" | \"cancelled\"",
10218
+ required: true,
10219
+ description: "실행 수명주기"
10220
+ },
10221
+ {
10222
+ name: "error",
10223
+ type: "string",
10224
+ description: "백엔드 오류 원문"
10225
+ },
10226
+ {
10227
+ name: "runningSeconds",
10228
+ type: "number",
10229
+ description: "실행 경과 초. 로딩 상태에 표시"
10230
+ },
10231
+ {
10232
+ name: "onCancel",
10233
+ type: "() => void",
10234
+ description: "실행 취소"
10235
+ },
10236
+ {
10237
+ name: "stats",
10238
+ type: "QueryRunStats",
10239
+ description: "행 수, 경과, 읽은 바이트, 절단 여부"
10240
+ },
10241
+ {
10242
+ name: "actions",
10243
+ type: "ReactNode",
10244
+ description: "뷰 전환 오른쪽 컨트롤"
10245
+ },
10246
+ {
10247
+ name: "statusExtra",
10248
+ type: "ReactNode",
10249
+ description: "상태바 추가 내용"
10250
+ },
10251
+ {
10252
+ name: "banner",
10253
+ type: "ReactNode",
10254
+ description: "출력 위 알림"
10255
+ },
10256
+ {
10257
+ name: "onRetry",
10258
+ type: "() => void",
10259
+ description: "오류 상태 닫기"
10260
+ },
10261
+ {
10262
+ name: "labels",
10263
+ type: "QueryOutputPaneLabels",
10264
+ description: "문구 오버라이드"
10265
+ }
10266
+ ] },
10267
+ dependencies: [
10268
+ {
10269
+ slug: "segmented-control",
10270
+ category: "core"
10271
+ },
10272
+ {
10273
+ slug: "empty-state",
10274
+ category: "core"
10275
+ },
10276
+ {
10277
+ slug: "resizable",
10278
+ category: "core"
10279
+ }
10280
+ ],
10281
+ ariaRole: "region",
10282
+ testDescribe: "QueryOutputPane"
10283
+ },
10284
+ {
10285
+ name: "QueryResultChart",
10286
+ category: "shell",
10287
+ functionalCategory: "data-display",
10288
+ maturity: "stable",
10289
+ keywords: [
10290
+ "sql",
10291
+ "chart",
10292
+ "visualization",
10293
+ "line",
10294
+ "bar",
10295
+ "pie",
10296
+ "number"
10297
+ ],
10298
+ description: "결과 행을 차트로 그리는 빌더. 첫 문자·날짜 컬럼을 축으로, 숫자 컬럼을 값으로 고르고, 한 행 한 숫자면 큰 숫자로 보여줍니다. 설정은 호출자가 들고 있어 저장 쿼리와 함께 보관됩니다.",
10299
+ slug: "query-result-chart",
10300
+ exports: ["QueryResultChart"],
10301
+ domlessExports: ["defaultQueryChartConfig", "numericResultColumns"],
10302
+ props: { QueryResultChart: [
10303
+ {
10304
+ name: "columns",
10305
+ type: "QueryResultColumn[]",
10306
+ required: true,
10307
+ description: "결과 컬럼"
10308
+ },
10309
+ {
10310
+ name: "rows",
10311
+ type: "Array<Record<string, unknown>>",
10312
+ required: true,
10313
+ description: "결과 행"
10314
+ },
10315
+ {
10316
+ name: "config",
10317
+ type: "QueryChartConfig",
10318
+ required: true,
10319
+ description: "차트 종류, 축, 값 컬럼"
10320
+ },
10321
+ {
10322
+ name: "onConfigChange",
10323
+ type: "(config: QueryChartConfig) => void",
10324
+ required: true,
10325
+ description: "설정 변경"
10326
+ },
10327
+ {
10328
+ name: "showControls",
10329
+ type: "boolean",
10330
+ default: "true",
10331
+ description: "컨트롤 표시. 임베드 카드에서는 끔"
10332
+ },
10333
+ {
10334
+ name: "height",
10335
+ type: "number",
10336
+ description: "차트 높이(px). 기본은 부모 채움"
10337
+ },
10338
+ {
10339
+ name: "maxPoints",
10340
+ type: "number",
10341
+ default: "1000",
10342
+ description: "차트에 그릴 최대 행 수"
10343
+ },
10344
+ {
10345
+ name: "labels",
10346
+ type: "QueryResultChartLabels",
10347
+ description: "문구 오버라이드"
10348
+ }
10349
+ ] },
10350
+ dependencies: [
10351
+ {
10352
+ slug: "line-chart",
10353
+ category: "visuals"
10354
+ },
10355
+ {
10356
+ slug: "bar-chart",
10357
+ category: "visuals"
10358
+ },
10359
+ {
10360
+ slug: "area-chart",
10361
+ category: "visuals"
10362
+ },
10363
+ {
10364
+ slug: "pie-chart",
10365
+ category: "visuals"
10366
+ },
10367
+ {
10368
+ slug: "segmented-control",
10369
+ category: "core"
10370
+ },
10371
+ {
10372
+ slug: "select",
10373
+ category: "core"
10374
+ }
10375
+ ],
10376
+ testDescribe: "QueryResultChart"
10377
+ },
10378
+ {
10379
+ name: "QueryFiltersMenu",
10380
+ category: "shell",
10381
+ functionalCategory: "input",
10382
+ maturity: "stable",
10383
+ keywords: [
10384
+ "sql",
10385
+ "filters",
10386
+ "date range",
10387
+ "placeholder",
10388
+ "where"
10389
+ ],
10390
+ description: "기간과 속성 조건을 데이터로 들고 {filters} 플레이스홀더로 SQL에 전달하는 메뉴. 플레이스홀더가 없으면 조건이 적용되지 않는다고 경고하고 삽입 버튼을 제공합니다.",
10391
+ slug: "query-filters-menu",
10392
+ exports: ["QueryFiltersMenu"],
10393
+ domlessExports: [
10394
+ "EMPTY_QUERY_FILTERS",
10395
+ "VALUELESS_OPERATORS",
10396
+ "hasActiveQueryFilters",
10397
+ "countActiveQueryFilters"
10398
+ ],
10399
+ props: { QueryFiltersMenu: [
10400
+ {
10401
+ name: "value",
10402
+ type: "QueryFilters",
10403
+ required: true,
10404
+ description: "기간과 속성 필터"
10405
+ },
10406
+ {
10407
+ name: "onChange",
10408
+ type: "(filters: QueryFilters) => void",
10409
+ required: true,
10410
+ description: "필터 변경"
10411
+ },
10412
+ {
10413
+ name: "fields",
10414
+ type: "QueryFilterField[]",
10415
+ required: true,
10416
+ description: "필드 선택지"
10417
+ },
10418
+ {
10419
+ name: "placeholderPresent",
10420
+ type: "boolean",
10421
+ description: "SQL에 {filters}가 있는지"
10422
+ },
10423
+ {
10424
+ name: "onInsertPlaceholder",
10425
+ type: "() => void",
10426
+ description: "{filters}를 커서에 삽입"
10427
+ },
10428
+ {
10429
+ name: "onLoadValues",
10430
+ type: "(field: string) => Promise<string[]>",
10431
+ description: "필드의 알려진 값. 값 입력란의 제안으로 쓰이며 자유 입력도 허용"
10432
+ },
10433
+ {
10434
+ name: "presets",
10435
+ type: "DateRangePreset[]",
10436
+ description: "기간 프리셋"
10437
+ },
10438
+ {
10439
+ name: "disabled",
10440
+ type: "boolean",
10441
+ description: "비활성"
10442
+ },
10443
+ {
10444
+ name: "labels",
10445
+ type: "QueryFiltersMenuLabels",
10446
+ description: "문구 오버라이드"
10447
+ }
10448
+ ] },
10449
+ dependencies: [
10450
+ {
10451
+ slug: "popover",
10452
+ category: "core"
10453
+ },
10454
+ {
10455
+ slug: "date-range-picker",
10456
+ category: "core"
10457
+ },
10458
+ {
10459
+ slug: "select",
10460
+ category: "core"
10461
+ },
10462
+ {
10463
+ slug: "combobox",
10464
+ category: "core"
10465
+ },
10466
+ {
10467
+ slug: "callout",
10468
+ category: "core"
10469
+ }
10470
+ ],
10471
+ testDescribe: "QueryFiltersMenu"
10472
+ },
10473
+ {
10474
+ name: "QueryVariablesMenu",
10475
+ category: "shell",
10476
+ functionalCategory: "input",
10477
+ maturity: "stable",
10478
+ keywords: [
10479
+ "sql",
10480
+ "variables",
10481
+ "parameters",
10482
+ "placeholder"
10483
+ ],
10484
+ description: "실행마다 바뀌는 값을 이름 붙여 두는 변수 메뉴. SQL은 {variables.name}으로 참조하고 치환은 호출자가 합니다.",
10485
+ slug: "query-variables-menu",
10486
+ exports: ["QueryVariablesMenu"],
10487
+ domlessExports: ["isValidQueryVariableName"],
10488
+ props: { QueryVariablesMenu: [
10489
+ {
10490
+ name: "value",
10491
+ type: "QueryVariable[]",
10492
+ required: true,
10493
+ description: "변수 목록"
10494
+ },
10495
+ {
10496
+ name: "onChange",
10497
+ type: "(variables: QueryVariable[]) => void",
10498
+ required: true,
10499
+ description: "변수 변경"
10500
+ },
10501
+ {
10502
+ name: "onInsert",
10503
+ type: "(name: string) => void",
10504
+ description: "{variables.name}을 커서에 삽입"
10505
+ },
10506
+ {
10507
+ name: "disabled",
10508
+ type: "boolean",
10509
+ description: "비활성"
10510
+ },
10511
+ {
10512
+ name: "disabledReason",
10513
+ type: "string",
10514
+ description: "비활성 사유. 툴팁으로 표시"
10515
+ },
10516
+ {
10517
+ name: "labels",
10518
+ type: "QueryVariablesMenuLabels",
10519
+ description: "문구 오버라이드"
10520
+ }
10521
+ ] },
10522
+ dependencies: [{
10523
+ slug: "popover",
10524
+ category: "core"
10525
+ }, {
10526
+ slug: "input",
10527
+ category: "core"
10528
+ }],
10529
+ testDescribe: "QueryVariablesMenu"
10530
+ },
10531
+ {
10532
+ name: "QueryHistoryList",
10533
+ category: "shell",
10534
+ functionalCategory: "data-display",
10535
+ maturity: "stable",
10536
+ keywords: [
10537
+ "sql",
10538
+ "history",
10539
+ "recent",
10540
+ "rerun"
10541
+ ],
10542
+ description: "실행 이력 목록. 각 실행의 성공/실패, 시각, 행 수, 경과를 보여주고 편집기로 되돌리거나 다시 실행합니다.",
10543
+ slug: "query-history-list",
10544
+ exports: ["QueryHistoryList"],
10545
+ props: { QueryHistoryList: [
10546
+ {
10547
+ name: "items",
10548
+ type: "QueryHistoryItem[]",
10549
+ required: true,
10550
+ description: "최근 실행부터"
10551
+ },
10552
+ {
10553
+ name: "loading",
10554
+ type: "boolean",
10555
+ description: "이력 조회 중"
10556
+ },
10557
+ {
10558
+ name: "onLoad",
10559
+ type: "(item: QueryHistoryItem) => void",
10560
+ description: "쿼리를 편집기로"
10561
+ },
10562
+ {
10563
+ name: "onRerun",
10564
+ type: "(item: QueryHistoryItem) => void",
10565
+ description: "그대로 다시 실행"
10566
+ },
10567
+ {
10568
+ name: "onClear",
10569
+ type: "() => void",
10570
+ description: "이력 비우기"
10571
+ },
10572
+ {
10573
+ name: "header",
10574
+ type: "ReactNode",
10575
+ description: "목록 위 내용"
10576
+ },
10577
+ {
10578
+ name: "labels",
10579
+ type: "QueryHistoryListLabels",
10580
+ description: "문구 오버라이드"
10581
+ }
10582
+ ] },
10583
+ dependencies: [{
10584
+ slug: "button",
10585
+ category: "core"
10586
+ }],
10587
+ ariaRole: "region",
10588
+ testDescribe: "QueryHistoryList"
10589
+ },
10590
+ {
10591
+ name: "SaveQueryDialog",
10592
+ category: "shell",
10593
+ functionalCategory: "overlay",
10594
+ maturity: "stable",
10595
+ keywords: [
10596
+ "sql",
10597
+ "save",
10598
+ "dialog",
10599
+ "saved query"
10600
+ ],
10601
+ description: "쿼리에 이름·설명·공개 여부를 붙여 저장하는 다이얼로그. 편집기에 문장이 여럿이면 어느 문장을 저장할지 넘겨 보며 고릅니다.",
10602
+ slug: "save-query-dialog",
10603
+ exports: ["SaveQueryDialog"],
10604
+ props: { SaveQueryDialog: [
10605
+ {
10606
+ name: "open",
10607
+ type: "boolean",
10608
+ required: true,
10609
+ description: "열림"
10610
+ },
10611
+ {
10612
+ name: "onOpenChange",
10613
+ type: "(open: boolean) => void",
10614
+ required: true,
10615
+ description: "열림 상태 변경"
10616
+ },
10617
+ {
10618
+ name: "onSubmit",
10619
+ type: "(values: SaveQueryValues) => void | Promise<void>",
10620
+ required: true,
10621
+ description: "저장"
10622
+ },
10623
+ {
10624
+ name: "candidates",
10625
+ type: "string[]",
10626
+ required: true,
10627
+ description: "저장할 SQL 후보. 문장이 여럿이면 여러 개"
10628
+ },
10629
+ {
10630
+ name: "initialCandidate",
10631
+ type: "number",
10632
+ default: "0",
10633
+ description: "처음 보여줄 후보"
10634
+ },
10635
+ {
10636
+ name: "candidateIsSelection",
10637
+ type: "boolean",
10638
+ description: "후보가 선택 영역인지"
10639
+ },
10640
+ {
10641
+ name: "initialValues",
10642
+ type: "Partial<Omit<SaveQueryValues, \"sql\">>",
10643
+ description: "기존 저장 쿼리를 수정할 때의 초기값"
10644
+ },
10645
+ {
10646
+ name: "mode",
10647
+ type: "\"create\" | \"update\"",
10648
+ default: "\"create\"",
10649
+ description: "새로 저장 / 수정"
10650
+ },
10651
+ {
10652
+ name: "saving",
10653
+ type: "boolean",
10654
+ description: "저장 중"
10655
+ },
10656
+ {
10657
+ name: "error",
10658
+ type: "string",
10659
+ description: "저장 실패 메시지"
10660
+ },
10661
+ {
10662
+ name: "labels",
10663
+ type: "SaveQueryDialogLabels",
10664
+ description: "문구 오버라이드"
10665
+ }
10666
+ ] },
10667
+ dependencies: [
10668
+ {
10669
+ slug: "dialog",
10670
+ category: "core"
10671
+ },
10672
+ {
10673
+ slug: "input",
10674
+ category: "core"
10675
+ },
10676
+ {
10677
+ slug: "textarea",
10678
+ category: "core"
10679
+ },
10680
+ {
10681
+ slug: "switch",
10682
+ category: "core"
10683
+ }
10684
+ ],
10685
+ ariaRole: "dialog",
10686
+ testDescribe: "SaveQueryDialog"
10687
+ },
10688
+ {
10689
+ name: "QueryWorkspace",
10690
+ category: "shell",
10691
+ functionalCategory: "layout",
10692
+ maturity: "stable",
10693
+ keywords: [
10694
+ "sql",
10695
+ "workspace",
10696
+ "layout",
10697
+ "resizable",
10698
+ "sidebar"
10699
+ ],
10700
+ description: "스키마·편집기·출력의 3-pane 쿼리 워크스페이스. 패널은 리사이즈되고 사이드바는 접히며, storageKey로 레이아웃을 기억합니다. 툴바·편집기·출력은 슬롯입니다.",
10701
+ slug: "query-workspace",
10702
+ exports: ["QueryWorkspace"],
10703
+ props: { QueryWorkspace: [
10704
+ {
10705
+ name: "sidebar",
10706
+ type: "ReactNode",
10707
+ description: "왼쪽 패널 내용"
10708
+ },
10709
+ {
10710
+ name: "sidebarOpen",
10711
+ type: "boolean",
10712
+ description: "제어형 사이드바 열림"
10713
+ },
10714
+ {
10715
+ name: "onSidebarOpenChange",
10716
+ type: "(open: boolean) => void",
10717
+ description: "사이드바 열림 변경"
10718
+ },
10719
+ {
10720
+ name: "header",
10721
+ type: "ReactNode",
10722
+ description: "툴바 위 — 탭이나 페이지 헤더"
10723
+ },
10724
+ {
10725
+ name: "toolbar",
10726
+ type: "ReactNode",
10727
+ description: "툴바"
10728
+ },
10729
+ {
10730
+ name: "editor",
10731
+ type: "ReactNode",
10732
+ required: true,
10733
+ description: "편집기"
10734
+ },
10735
+ {
10736
+ name: "output",
10737
+ type: "ReactNode",
10738
+ required: true,
10739
+ description: "출력"
10740
+ },
10741
+ {
10742
+ name: "storageKey",
10743
+ type: "string",
10744
+ description: "패널 크기를 localStorage에 기억할 키"
10745
+ },
10746
+ {
10747
+ name: "defaultSidebarSize",
10748
+ type: "number",
10749
+ default: "22",
10750
+ description: "사이드바 폭(%)"
10751
+ },
10752
+ {
10753
+ name: "defaultEditorSize",
10754
+ type: "number",
10755
+ default: "40",
10756
+ description: "편집기 높이(%)"
10757
+ },
10758
+ {
10759
+ name: "labels",
10760
+ type: "QueryWorkspaceLabels",
10761
+ description: "문구 오버라이드"
10762
+ }
10763
+ ] },
10764
+ dependencies: [{
10765
+ slug: "resizable",
10766
+ category: "core"
10767
+ }, {
10768
+ slug: "button",
10769
+ category: "core"
10770
+ }],
10771
+ testDescribe: "QueryWorkspace"
9883
10772
  }
9884
10773
  ];
9885
10774
  //#endregion