@reopt-ai/opt-ui 1.11.0 → 1.12.1
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.
- package/COMPONENT_CATALOG.md +495 -230
- package/README.md +43 -5
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/docs/02-components/01-core.md +154 -85
- package/dist/docs/02-components/02-visuals.md +1 -1
- package/dist/docs/02-components/03-shells.md +349 -149
- package/dist/docs/02-components/04-surfaces.md +1 -1
- package/dist/docs/02-components/index.md +5 -5
- package/dist/docs/03-recipes/02-dashboards.md +126 -10
- package/dist/{field-sidebar-B5SQC35J.d.cts → field-sidebar-CrYlRZew.d.ts} +164 -154
- package/dist/{field-sidebar-DAuN4jPV.cjs → field-sidebar-oa6zOmcd.cjs} +1540 -1537
- package/dist/{field-sidebar-CBeWE8xX.d.ts → field-sidebar-uXmoyvd7.d.cts} +164 -154
- package/dist/{field-sidebar-BXl5RJ3q.js → field-sidebar-zkkqC7__.js} +1541 -1540
- package/dist/id-registry.cjs +78 -6
- package/dist/id-registry.d.cts +1 -2
- package/dist/id-registry.d.ts +1 -2
- package/dist/id-registry.js +78 -8
- package/dist/id-registry.json +168 -19
- package/dist/index.cjs +1127 -224
- package/dist/index.d.cts +567 -58
- package/dist/index.d.ts +567 -58
- package/dist/index.js +1118 -227
- package/dist/{key-pad-menu-BxTy_u0Q.d.cts → key-pad-menu-CwcY_Vps.d.cts} +2 -3
- package/dist/{key-pad-menu-wXkWn1I1.js → key-pad-menu-Di2aRGbM.js} +4 -6
- package/dist/{key-pad-menu-Cg6rZBie.cjs → key-pad-menu-SItoHPLu.cjs} +1 -1
- package/dist/{key-pad-menu-u5GTJl9B.d.ts → key-pad-menu-WBJShCJn.d.ts} +3 -4
- package/dist/meta.cjs +894 -28
- package/dist/meta.d.cts +12 -36
- package/dist/meta.d.ts +12 -36
- package/dist/meta.js +894 -30
- package/dist/query.d.cts +1 -2
- package/dist/query.d.ts +1 -2
- package/dist/query.js +0 -2
- package/dist/shells/index.cjs +1 -1
- package/dist/shells/index.d.cts +1 -1
- package/dist/shells/index.d.ts +1 -1
- package/dist/shells/index.js +1 -1
- package/dist/tailwind.css +7 -0
- package/dist/{text-truncate-DW78lg4S.d.cts → text-truncate-CQyfUZvq.d.cts} +31 -3
- package/dist/{text-truncate-DW78lg4S.d.ts → text-truncate-CQyfUZvq.d.ts} +31 -3
- package/dist/{text-truncate-C17HHCR-.js → text-truncate-DSuZECy0.js} +43 -10
- package/dist/{text-truncate-BZdL1k5Z.cjs → text-truncate-I1XLWmRa.cjs} +48 -7
- package/dist/theme/server.d.cts +1 -2
- package/dist/theme/server.d.ts +1 -2
- package/dist/theme/server.js +0 -2
- package/dist/visuals/index.js +0 -1
- package/package.json +4 -3
- package/dist/field-sidebar-B5SQC35J.d.cts.map +0 -1
- package/dist/field-sidebar-BXl5RJ3q.js.map +0 -1
- package/dist/field-sidebar-CBeWE8xX.d.ts.map +0 -1
- package/dist/id-registry.d.cts.map +0 -1
- package/dist/id-registry.d.ts.map +0 -1
- package/dist/id-registry.js.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/key-pad-menu-BxTy_u0Q.d.cts.map +0 -1
- package/dist/key-pad-menu-u5GTJl9B.d.ts.map +0 -1
- package/dist/key-pad-menu-wXkWn1I1.js.map +0 -1
- package/dist/meta.d.cts.map +0 -1
- package/dist/meta.d.ts.map +0 -1
- package/dist/meta.js.map +0 -1
- package/dist/query.d.cts.map +0 -1
- package/dist/query.d.ts.map +0 -1
- package/dist/query.js.map +0 -1
- package/dist/text-truncate-C17HHCR-.js.map +0 -1
- package/dist/text-truncate-DW78lg4S.d.cts.map +0 -1
- package/dist/text-truncate-DW78lg4S.d.ts.map +0 -1
- package/dist/theme/server.d.cts.map +0 -1
- package/dist/theme/server.d.ts.map +0 -1
- package/dist/theme/server.js.map +0 -1
package/dist/meta.cjs
CHANGED
|
@@ -3,7 +3,7 @@ const coreMetas = [
|
|
|
3
3
|
{
|
|
4
4
|
name: "FieldToken",
|
|
5
5
|
category: "core",
|
|
6
|
-
description: "필드 타입을
|
|
6
|
+
description: "필드 타입을 일관된 글리프와 선택적 텍스트 레이블로 표현합니다. 문자열·숫자·날짜·IP·지오 등 분석 스키마 타입마다 같은 아이콘과 팔레트 슬롯을 씁니다.",
|
|
7
7
|
slug: "field-token",
|
|
8
8
|
exports: [
|
|
9
9
|
"FieldToken",
|
|
@@ -46,6 +46,17 @@ const coreMetas = [
|
|
|
46
46
|
default: "false",
|
|
47
47
|
description: "인접 텍스트가 타입을 이미 말할 때 접근성 트리에서 제외"
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
name: "withLabel",
|
|
51
|
+
type: "boolean",
|
|
52
|
+
default: "false",
|
|
53
|
+
description: "글리프 옆에 타입 이름을 함께 표시"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "label",
|
|
57
|
+
type: "string",
|
|
58
|
+
description: "withLabel이 표시할 문구. 기본값은 타입 이름"
|
|
59
|
+
},
|
|
49
60
|
{
|
|
50
61
|
name: "className",
|
|
51
62
|
type: "string",
|
|
@@ -721,7 +732,7 @@ const coreMetas = [
|
|
|
721
732
|
},
|
|
722
733
|
{
|
|
723
734
|
name: "variant",
|
|
724
|
-
type: "\"heading-1\"
|
|
735
|
+
type: "\"heading-1\" | \"heading-2\" | \"heading-3\" | \"heading-4\" | \"heading-5\" | \"heading-6\" | \"display-1\" | \"display-2\" | \"display-3\"",
|
|
725
736
|
description: "시각적 제목 역할"
|
|
726
737
|
},
|
|
727
738
|
{
|
|
@@ -2726,10 +2737,19 @@ const store = useFormStore({ defaultValues: { name: "" } });
|
|
|
2726
2737
|
type: "string",
|
|
2727
2738
|
description: "스위치 레이블"
|
|
2728
2739
|
},
|
|
2740
|
+
{
|
|
2741
|
+
name: "hint",
|
|
2742
|
+
type: "string",
|
|
2743
|
+
description: "레이블 아래 보조 설명 텍스트"
|
|
2744
|
+
},
|
|
2729
2745
|
{
|
|
2730
2746
|
name: "description",
|
|
2731
2747
|
type: "string",
|
|
2732
|
-
description: "레이블 아래 설명 텍스트"
|
|
2748
|
+
description: "레이블 아래 설명 텍스트",
|
|
2749
|
+
deprecated: {
|
|
2750
|
+
since: "1.9.0",
|
|
2751
|
+
replacement: "hint"
|
|
2752
|
+
}
|
|
2733
2753
|
},
|
|
2734
2754
|
{
|
|
2735
2755
|
name: "checked",
|
|
@@ -3403,10 +3423,19 @@ const store = useFormStore({ defaultValues: { name: "" } });
|
|
|
3403
3423
|
type: "string",
|
|
3404
3424
|
description: "체크박스 레이블"
|
|
3405
3425
|
},
|
|
3426
|
+
{
|
|
3427
|
+
name: "hint",
|
|
3428
|
+
type: "string",
|
|
3429
|
+
description: "레이블 아래 보조 설명 텍스트"
|
|
3430
|
+
},
|
|
3406
3431
|
{
|
|
3407
3432
|
name: "description",
|
|
3408
3433
|
type: "string",
|
|
3409
|
-
description: "레이블 아래 설명 텍스트"
|
|
3434
|
+
description: "레이블 아래 설명 텍스트",
|
|
3435
|
+
deprecated: {
|
|
3436
|
+
since: "1.9.0",
|
|
3437
|
+
replacement: "hint"
|
|
3438
|
+
}
|
|
3410
3439
|
},
|
|
3411
3440
|
{
|
|
3412
3441
|
name: "checked",
|
|
@@ -3540,10 +3569,19 @@ const store = useFormStore({ defaultValues: { name: "" } });
|
|
|
3540
3569
|
type: "string",
|
|
3541
3570
|
description: "라디오 레이블"
|
|
3542
3571
|
},
|
|
3572
|
+
{
|
|
3573
|
+
name: "hint",
|
|
3574
|
+
type: "string",
|
|
3575
|
+
description: "레이블 아래 보조 설명 텍스트"
|
|
3576
|
+
},
|
|
3543
3577
|
{
|
|
3544
3578
|
name: "description",
|
|
3545
3579
|
type: "string",
|
|
3546
|
-
description: "레이블 아래 설명 텍스트"
|
|
3580
|
+
description: "레이블 아래 설명 텍스트",
|
|
3581
|
+
deprecated: {
|
|
3582
|
+
since: "1.9.0",
|
|
3583
|
+
replacement: "hint"
|
|
3584
|
+
}
|
|
3547
3585
|
},
|
|
3548
3586
|
{
|
|
3549
3587
|
name: "size",
|
|
@@ -3614,7 +3652,7 @@ const store = useFormStore({ defaultValues: { name: "" } });
|
|
|
3614
3652
|
},
|
|
3615
3653
|
{
|
|
3616
3654
|
name: "onComparisonChange",
|
|
3617
|
-
type: "(
|
|
3655
|
+
type: "(mode: ComparisonMode | null) => void",
|
|
3618
3656
|
description: "비교 모드 변경 콜백"
|
|
3619
3657
|
},
|
|
3620
3658
|
{
|
|
@@ -4302,7 +4340,12 @@ const store = useFormStore({ defaultValues: { name: "" } });
|
|
|
4302
4340
|
{
|
|
4303
4341
|
name: "autoSaveId",
|
|
4304
4342
|
type: "string",
|
|
4305
|
-
description: "id의 deprecated 별칭"
|
|
4343
|
+
description: "id의 deprecated 별칭",
|
|
4344
|
+
deprecated: {
|
|
4345
|
+
since: "1.6.0",
|
|
4346
|
+
replacement: "id",
|
|
4347
|
+
reason: "id + defaultLayout + onLayoutChanged 조합으로 대체되었습니다."
|
|
4348
|
+
}
|
|
4306
4349
|
},
|
|
4307
4350
|
{
|
|
4308
4351
|
name: "className",
|
|
@@ -4949,6 +4992,194 @@ const MyDashboard = createBlock<MyDashboardProps>(
|
|
|
4949
4992
|
}
|
|
4950
4993
|
] },
|
|
4951
4994
|
testDescribe: "ShaderSurface"
|
|
4995
|
+
},
|
|
4996
|
+
{
|
|
4997
|
+
name: "Callout",
|
|
4998
|
+
category: "core",
|
|
4999
|
+
description: "페이지에 머무는 인페이지 고지. Alert와 달리 dismiss가 없고, 조건이 참인 동안 레이아웃의 일부로 남습니다.",
|
|
5000
|
+
slug: "callout",
|
|
5001
|
+
exports: ["Callout"],
|
|
5002
|
+
props: { Callout: [
|
|
5003
|
+
{
|
|
5004
|
+
name: "tone",
|
|
5005
|
+
type: "\"info\" | \"success\" | \"warning\" | \"danger\" | \"neutral\"",
|
|
5006
|
+
default: "\"info\"",
|
|
5007
|
+
description: "고지의 성격"
|
|
5008
|
+
},
|
|
5009
|
+
{
|
|
5010
|
+
name: "title",
|
|
5011
|
+
type: "ReactNode",
|
|
5012
|
+
description: "한 줄 제목"
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
name: "icon",
|
|
5016
|
+
type: "ReactNode",
|
|
5017
|
+
description: "tone 기본 글리프 대체. null이면 글리프 없음"
|
|
5018
|
+
},
|
|
5019
|
+
{
|
|
5020
|
+
name: "action",
|
|
5021
|
+
type: "ReactNode",
|
|
5022
|
+
description: "다음 한 걸음. 둘 이상이면 고지가 아니라 폼"
|
|
5023
|
+
},
|
|
5024
|
+
{
|
|
5025
|
+
name: "size",
|
|
5026
|
+
type: "\"sm\" | \"md\"",
|
|
5027
|
+
default: "\"md\"",
|
|
5028
|
+
description: "밀도"
|
|
5029
|
+
},
|
|
5030
|
+
{
|
|
5031
|
+
name: "children",
|
|
5032
|
+
type: "ReactNode",
|
|
5033
|
+
description: "본문"
|
|
5034
|
+
}
|
|
5035
|
+
] },
|
|
5036
|
+
usage: {
|
|
5037
|
+
bestPractices: ["조건이 참인 동안 계속 보여야 하는 안내에 사용합니다 (정리할 신규 N개, 표본 기반 수치)."],
|
|
5038
|
+
avoid: ["방금 일어난 일을 알릴 때는 Alert를 씁니다. Callout에는 dismiss가 없습니다."]
|
|
5039
|
+
},
|
|
5040
|
+
testDescribe: "Callout"
|
|
5041
|
+
},
|
|
5042
|
+
{
|
|
5043
|
+
name: "StatusDot",
|
|
5044
|
+
category: "core",
|
|
5045
|
+
description: "점 + 텍스트로 상태를 표현합니다. 라벨이 필수라 색만으로 상태를 말할 수 없습니다.",
|
|
5046
|
+
slug: "status-dot",
|
|
5047
|
+
exports: ["StatusDot"],
|
|
5048
|
+
props: { StatusDot: [
|
|
5049
|
+
{
|
|
5050
|
+
name: "tone",
|
|
5051
|
+
type: "\"neutral\" | \"muted\" | \"info\" | \"success\" | \"warning\" | \"danger\"",
|
|
5052
|
+
default: "\"neutral\"",
|
|
5053
|
+
description: "점 색상"
|
|
5054
|
+
},
|
|
5055
|
+
{
|
|
5056
|
+
name: "size",
|
|
5057
|
+
type: "\"sm\" | \"md\"",
|
|
5058
|
+
default: "\"md\"",
|
|
5059
|
+
description: "점과 글자 크기"
|
|
5060
|
+
},
|
|
5061
|
+
{
|
|
5062
|
+
name: "children",
|
|
5063
|
+
type: "ReactNode",
|
|
5064
|
+
required: true,
|
|
5065
|
+
description: "상태 라벨. 필수 — 색은 상태가 아닙니다"
|
|
5066
|
+
},
|
|
5067
|
+
{
|
|
5068
|
+
name: "hint",
|
|
5069
|
+
type: "string",
|
|
5070
|
+
description: "판정 기준 툴팁"
|
|
5071
|
+
}
|
|
5072
|
+
] },
|
|
5073
|
+
usage: {
|
|
5074
|
+
bestPractices: ["표의 상태 컬럼처럼 행마다 반복되는 자리에 씁니다. 점은 장식이고 의미는 텍스트가 담습니다."],
|
|
5075
|
+
avoid: ["사람이 붙인 라벨(태그, 카테고리)에는 Badge를 씁니다. StatusDot은 관측된 상태용입니다."]
|
|
5076
|
+
},
|
|
5077
|
+
testDescribe: "StatusDot"
|
|
5078
|
+
},
|
|
5079
|
+
{
|
|
5080
|
+
name: "CopyButton",
|
|
5081
|
+
category: "core",
|
|
5082
|
+
description: "값을 클립보드에 올리고 성공 여부를 알립니다. 클립보드 거부를 삼키지 않습니다.",
|
|
5083
|
+
slug: "copy-button",
|
|
5084
|
+
exports: ["CopyButton"],
|
|
5085
|
+
props: { CopyButton: [
|
|
5086
|
+
{
|
|
5087
|
+
name: "value",
|
|
5088
|
+
type: "string",
|
|
5089
|
+
required: true,
|
|
5090
|
+
description: "복사할 텍스트"
|
|
5091
|
+
},
|
|
5092
|
+
{
|
|
5093
|
+
name: "variant",
|
|
5094
|
+
type: "\"icon\" | \"text\"",
|
|
5095
|
+
default: "\"icon\"",
|
|
5096
|
+
description: "글리프만 / 글리프 + 라벨"
|
|
5097
|
+
},
|
|
5098
|
+
{
|
|
5099
|
+
name: "size",
|
|
5100
|
+
type: "\"sm\" | \"md\"",
|
|
5101
|
+
default: "\"md\"",
|
|
5102
|
+
description: "버튼 크기"
|
|
5103
|
+
},
|
|
5104
|
+
{
|
|
5105
|
+
name: "feedbackDuration",
|
|
5106
|
+
type: "number",
|
|
5107
|
+
default: "1500",
|
|
5108
|
+
description: "확인 상태 유지 시간 (ms)"
|
|
5109
|
+
},
|
|
5110
|
+
{
|
|
5111
|
+
name: "onCopy",
|
|
5112
|
+
type: "(ok: boolean) => void",
|
|
5113
|
+
description: "실제로 복사됐는지 — 비보안 컨텍스트·권한 거부에서 false"
|
|
5114
|
+
},
|
|
5115
|
+
{
|
|
5116
|
+
name: "labels",
|
|
5117
|
+
type: "CopyButtonLabels",
|
|
5118
|
+
description: "copy / copied / failed 문구"
|
|
5119
|
+
}
|
|
5120
|
+
] },
|
|
5121
|
+
testDescribe: "CopyButton"
|
|
5122
|
+
},
|
|
5123
|
+
{
|
|
5124
|
+
name: "SegmentedControl",
|
|
5125
|
+
category: "core",
|
|
5126
|
+
description: "선택지를 모두 보여주는 단일 선택 컨트롤. radio-group 프리미티브 위에 올려 화살표 키가 동작합니다.",
|
|
5127
|
+
slug: "segmented-control",
|
|
5128
|
+
exports: ["SegmentedControl"],
|
|
5129
|
+
props: { SegmentedControl: [
|
|
5130
|
+
{
|
|
5131
|
+
name: "options",
|
|
5132
|
+
type: "SegmentedControlOption<T>[]",
|
|
5133
|
+
required: true,
|
|
5134
|
+
description: "세그먼트 목록 (value / label / icon / badge / disabled)"
|
|
5135
|
+
},
|
|
5136
|
+
{
|
|
5137
|
+
name: "value",
|
|
5138
|
+
type: "T",
|
|
5139
|
+
required: true,
|
|
5140
|
+
description: "선택된 값"
|
|
5141
|
+
},
|
|
5142
|
+
{
|
|
5143
|
+
name: "onChange",
|
|
5144
|
+
type: "(value: T) => void",
|
|
5145
|
+
required: true,
|
|
5146
|
+
description: "선택 변경"
|
|
5147
|
+
},
|
|
5148
|
+
{
|
|
5149
|
+
name: "size",
|
|
5150
|
+
type: "\"sm\" | \"md\"",
|
|
5151
|
+
default: "\"md\"",
|
|
5152
|
+
description: "컨트롤 크기"
|
|
5153
|
+
},
|
|
5154
|
+
{
|
|
5155
|
+
name: "fullWidth",
|
|
5156
|
+
type: "boolean",
|
|
5157
|
+
default: "false",
|
|
5158
|
+
description: "컨테이너를 균등 분할"
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
name: "disabled",
|
|
5162
|
+
type: "boolean",
|
|
5163
|
+
default: "false",
|
|
5164
|
+
description: "전체 비활성"
|
|
5165
|
+
},
|
|
5166
|
+
{
|
|
5167
|
+
name: "aria-label",
|
|
5168
|
+
type: "string",
|
|
5169
|
+
required: true,
|
|
5170
|
+
description: "radiogroup 이름. 필수"
|
|
5171
|
+
},
|
|
5172
|
+
{
|
|
5173
|
+
name: "className",
|
|
5174
|
+
type: "string",
|
|
5175
|
+
description: "추가 CSS 클래스"
|
|
5176
|
+
}
|
|
5177
|
+
] },
|
|
5178
|
+
usage: {
|
|
5179
|
+
bestPractices: ["정확히 하나가 참이고 선택지가 적을 때 씁니다 (이벤트 | 속성)."],
|
|
5180
|
+
avoid: ["여러 개를 동시에 켤 수 있으면 ToggleGroup을 씁니다.", "선택지가 많으면 Select를 씁니다."]
|
|
5181
|
+
},
|
|
5182
|
+
testDescribe: "SegmentedControl"
|
|
4952
5183
|
}
|
|
4953
5184
|
];
|
|
4954
5185
|
//#endregion
|
|
@@ -4968,6 +5199,14 @@ const shellMetas = [
|
|
|
4968
5199
|
required: true,
|
|
4969
5200
|
description: "FAQ 항목 배열. { id, question, answer }"
|
|
4970
5201
|
}] },
|
|
5202
|
+
ariaRole: "region",
|
|
5203
|
+
keyboardShortcuts: [{
|
|
5204
|
+
keys: "↑ ↓",
|
|
5205
|
+
action: "질문 사이 포커스 이동"
|
|
5206
|
+
}, {
|
|
5207
|
+
keys: "Enter / Space",
|
|
5208
|
+
action: "답변 펼치기 또는 접기"
|
|
5209
|
+
}],
|
|
4971
5210
|
dependencies: [{
|
|
4972
5211
|
slug: "disclosure",
|
|
4973
5212
|
category: "core"
|
|
@@ -5289,6 +5528,25 @@ const fields = [
|
|
|
5289
5528
|
slug: "kbd",
|
|
5290
5529
|
category: "core"
|
|
5291
5530
|
}],
|
|
5531
|
+
ariaRole: "menubar",
|
|
5532
|
+
keyboardShortcuts: [
|
|
5533
|
+
{
|
|
5534
|
+
keys: "← →",
|
|
5535
|
+
action: "상위 메뉴 사이 포커스 이동"
|
|
5536
|
+
},
|
|
5537
|
+
{
|
|
5538
|
+
keys: "Enter / Space / ↓",
|
|
5539
|
+
action: "메뉴 열기"
|
|
5540
|
+
},
|
|
5541
|
+
{
|
|
5542
|
+
keys: "↑ ↓",
|
|
5543
|
+
action: "열린 메뉴 항목 이동"
|
|
5544
|
+
},
|
|
5545
|
+
{
|
|
5546
|
+
keys: "Escape",
|
|
5547
|
+
action: "메뉴 닫고 트리거로 복귀"
|
|
5548
|
+
}
|
|
5549
|
+
],
|
|
5292
5550
|
testDescribe: "AppMenubar"
|
|
5293
5551
|
},
|
|
5294
5552
|
{
|
|
@@ -5300,7 +5558,7 @@ const fields = [
|
|
|
5300
5558
|
props: { CommandPalette: [
|
|
5301
5559
|
{
|
|
5302
5560
|
name: "commands",
|
|
5303
|
-
type: "Omit<
|
|
5561
|
+
type: "Omit<CommandDef, \"action\">[]",
|
|
5304
5562
|
required: true,
|
|
5305
5563
|
description: "커맨드 목록. { id, label, group, shortcut? }"
|
|
5306
5564
|
},
|
|
@@ -5318,7 +5576,7 @@ const fields = [
|
|
|
5318
5576
|
},
|
|
5319
5577
|
{
|
|
5320
5578
|
name: "onSelect",
|
|
5321
|
-
type: "(command: Omit<
|
|
5579
|
+
type: "(command: Omit<CommandDef, \"action\">) => void",
|
|
5322
5580
|
description: "커맨드 선택 핸들러"
|
|
5323
5581
|
},
|
|
5324
5582
|
{
|
|
@@ -5373,13 +5631,13 @@ const fields = [
|
|
|
5373
5631
|
props: { CommandPaletteTrigger: [
|
|
5374
5632
|
{
|
|
5375
5633
|
name: "commands",
|
|
5376
|
-
type: "Omit<
|
|
5634
|
+
type: "Omit<CommandDef, \"action\">[]",
|
|
5377
5635
|
required: true,
|
|
5378
5636
|
description: "커맨드 목록"
|
|
5379
5637
|
},
|
|
5380
5638
|
{
|
|
5381
5639
|
name: "onSelect",
|
|
5382
|
-
type: "(command: Omit<
|
|
5640
|
+
type: "(command: Omit<CommandDef, \"action\">) => void",
|
|
5383
5641
|
description: "커맨드 선택 핸들러"
|
|
5384
5642
|
},
|
|
5385
5643
|
{
|
|
@@ -5525,7 +5783,7 @@ const fields = [
|
|
|
5525
5783
|
{
|
|
5526
5784
|
name: "DataTable",
|
|
5527
5785
|
category: "shell",
|
|
5528
|
-
description: "제네릭 데이터 테이블.
|
|
5786
|
+
description: "제네릭 데이터 테이블. 제목은 opt-in이고 ariaLabel로 grid를 이름 붙이며, 동적 컬럼·안전 정렬·키보드 리사이즈·Composite 탐색을 지원합니다.",
|
|
5529
5787
|
slug: "data-table",
|
|
5530
5788
|
exports: ["DataTable"],
|
|
5531
5789
|
keyboardShortcuts: [
|
|
@@ -5593,8 +5851,12 @@ const fields = [
|
|
|
5593
5851
|
{
|
|
5594
5852
|
name: "title",
|
|
5595
5853
|
type: "string",
|
|
5596
|
-
|
|
5597
|
-
|
|
5854
|
+
description: "테이블 위에 표시할 제목. 생략하면 제목 영역을 렌더하지 않음"
|
|
5855
|
+
},
|
|
5856
|
+
{
|
|
5857
|
+
name: "ariaLabel",
|
|
5858
|
+
type: "string",
|
|
5859
|
+
description: "보이는 제목이 없을 때 grid에 제공할 접근 가능한 이름"
|
|
5598
5860
|
},
|
|
5599
5861
|
{
|
|
5600
5862
|
name: "onRowClick",
|
|
@@ -5604,7 +5866,7 @@ const fields = [
|
|
|
5604
5866
|
{
|
|
5605
5867
|
name: "emptyMessage",
|
|
5606
5868
|
type: "string",
|
|
5607
|
-
default: "\"
|
|
5869
|
+
default: "\"No data available\"",
|
|
5608
5870
|
description: "데이터 없을 때 표시할 메시지"
|
|
5609
5871
|
}
|
|
5610
5872
|
],
|
|
@@ -5854,7 +6116,7 @@ const data = [
|
|
|
5854
6116
|
},
|
|
5855
6117
|
{
|
|
5856
6118
|
name: "onFilterChange",
|
|
5857
|
-
type: "(filterId: string, value: string | string[]) => void",
|
|
6119
|
+
type: "(filterId: string, value: string | string[] | boolean) => void",
|
|
5858
6120
|
description: "필터 변경 핸들러"
|
|
5859
6121
|
},
|
|
5860
6122
|
{
|
|
@@ -6045,7 +6307,7 @@ const filters = [
|
|
|
6045
6307
|
},
|
|
6046
6308
|
{
|
|
6047
6309
|
name: "onSubmit",
|
|
6048
|
-
type: "(values: { email
|
|
6310
|
+
type: "(values: { email: string; password: string; confirmPassword?: string; rememberMe?: boolean; mode: \"login\" | \"signup\" }) => void",
|
|
6049
6311
|
description: "제출 핸들러"
|
|
6050
6312
|
},
|
|
6051
6313
|
{
|
|
@@ -6210,7 +6472,7 @@ const filters = [
|
|
|
6210
6472
|
},
|
|
6211
6473
|
{
|
|
6212
6474
|
name: "onSubmit",
|
|
6213
|
-
type: "(values: { title
|
|
6475
|
+
type: "(values: { title: string; description: string; file: File | null }) => void",
|
|
6214
6476
|
description: "제출 핸들러"
|
|
6215
6477
|
},
|
|
6216
6478
|
{
|
|
@@ -6578,10 +6840,78 @@ const filters = [
|
|
|
6578
6840
|
{
|
|
6579
6841
|
name: "PropertyExplorer",
|
|
6580
6842
|
category: "shell",
|
|
6581
|
-
description: "
|
|
6843
|
+
description: "검색 가능한 속성 목록을 그룹별로 표시하고, 숨김 상태와 호출자 소유의 명시적인 편집 액션을 함께 제공합니다.",
|
|
6582
6844
|
slug: "property-explorer",
|
|
6583
6845
|
exports: ["PropertyExplorer"],
|
|
6584
|
-
props: {
|
|
6846
|
+
props: {
|
|
6847
|
+
PropertyExplorer: [
|
|
6848
|
+
{
|
|
6849
|
+
name: "groups",
|
|
6850
|
+
type: "PropertyGroup[]",
|
|
6851
|
+
required: true,
|
|
6852
|
+
description: "그룹별 속성 목록. 각 속성은 dataType과 hidden 상태를 포함 가능"
|
|
6853
|
+
},
|
|
6854
|
+
{
|
|
6855
|
+
name: "onSelect",
|
|
6856
|
+
type: "(property: PropertyDef) => void",
|
|
6857
|
+
description: "속성 선택"
|
|
6858
|
+
},
|
|
6859
|
+
{
|
|
6860
|
+
name: "onEdit",
|
|
6861
|
+
type: "(property: PropertyDef) => void",
|
|
6862
|
+
description: "행에 명시적인 편집 버튼을 표시하고 선택한 속성을 전달"
|
|
6863
|
+
},
|
|
6864
|
+
{
|
|
6865
|
+
name: "className",
|
|
6866
|
+
type: "string",
|
|
6867
|
+
description: "추가 CSS 클래스"
|
|
6868
|
+
},
|
|
6869
|
+
{
|
|
6870
|
+
name: "labels",
|
|
6871
|
+
type: "PropertyExplorerLabels",
|
|
6872
|
+
description: "검색·빈 상태·편집·숨김 문구"
|
|
6873
|
+
}
|
|
6874
|
+
],
|
|
6875
|
+
PropertyDef: [
|
|
6876
|
+
{
|
|
6877
|
+
name: "name",
|
|
6878
|
+
type: "string",
|
|
6879
|
+
required: true,
|
|
6880
|
+
description: "속성 이름"
|
|
6881
|
+
},
|
|
6882
|
+
{
|
|
6883
|
+
name: "type",
|
|
6884
|
+
type: "string",
|
|
6885
|
+
required: true,
|
|
6886
|
+
description: "원본 스키마 타입"
|
|
6887
|
+
},
|
|
6888
|
+
{
|
|
6889
|
+
name: "dataType",
|
|
6890
|
+
type: "FieldDataType",
|
|
6891
|
+
description: "호출자가 이미 판정한 opt-ui 필드 타입"
|
|
6892
|
+
},
|
|
6893
|
+
{
|
|
6894
|
+
name: "description",
|
|
6895
|
+
type: "string",
|
|
6896
|
+
description: "속성 설명"
|
|
6897
|
+
},
|
|
6898
|
+
{
|
|
6899
|
+
name: "exampleValue",
|
|
6900
|
+
type: "string",
|
|
6901
|
+
description: "예시 값"
|
|
6902
|
+
},
|
|
6903
|
+
{
|
|
6904
|
+
name: "eventCount",
|
|
6905
|
+
type: "number",
|
|
6906
|
+
description: "관측 이벤트 수"
|
|
6907
|
+
},
|
|
6908
|
+
{
|
|
6909
|
+
name: "hidden",
|
|
6910
|
+
type: "boolean",
|
|
6911
|
+
description: "피커에서는 숨기되 탐색기에서는 흐리게 표시할 상태"
|
|
6912
|
+
}
|
|
6913
|
+
]
|
|
6914
|
+
},
|
|
6585
6915
|
dependencies: [{
|
|
6586
6916
|
slug: "input",
|
|
6587
6917
|
category: "core"
|
|
@@ -6740,10 +7070,74 @@ const filters = [
|
|
|
6740
7070
|
{
|
|
6741
7071
|
name: "EventMetaEditor",
|
|
6742
7072
|
category: "shell",
|
|
6743
|
-
description: "이벤트
|
|
7073
|
+
description: "기본 이벤트 메타와 호출자 소유 섹션을 한 폼에서 편집하고, footer의 한 액션으로 함께 저장할 수 있습니다.",
|
|
6744
7074
|
slug: "event-meta-editor",
|
|
6745
7075
|
exports: ["EventMetaEditor"],
|
|
6746
|
-
props: {
|
|
7076
|
+
props: {
|
|
7077
|
+
EventMetaEditor: [
|
|
7078
|
+
{
|
|
7079
|
+
name: "value",
|
|
7080
|
+
type: "EventMeta",
|
|
7081
|
+
required: true,
|
|
7082
|
+
description: "편집 중인 이벤트 메타데이터"
|
|
7083
|
+
},
|
|
7084
|
+
{
|
|
7085
|
+
name: "onChange",
|
|
7086
|
+
type: "(meta: EventMeta) => void",
|
|
7087
|
+
required: true,
|
|
7088
|
+
description: "메타데이터 변경"
|
|
7089
|
+
},
|
|
7090
|
+
{
|
|
7091
|
+
name: "icons",
|
|
7092
|
+
type: "IconDef[]",
|
|
7093
|
+
description: "선택 가능한 아이콘"
|
|
7094
|
+
},
|
|
7095
|
+
{
|
|
7096
|
+
name: "sections",
|
|
7097
|
+
type: "EventMetaEditorSection[]",
|
|
7098
|
+
description: "기본 여섯 필드 뒤에 렌더할 호출자 소유 섹션"
|
|
7099
|
+
},
|
|
7100
|
+
{
|
|
7101
|
+
name: "footer",
|
|
7102
|
+
type: "ReactNode",
|
|
7103
|
+
description: "내장 필드와 추가 섹션을 함께 저장하는 마지막 액션 영역"
|
|
7104
|
+
},
|
|
7105
|
+
{
|
|
7106
|
+
name: "className",
|
|
7107
|
+
type: "string",
|
|
7108
|
+
description: "추가 CSS 클래스"
|
|
7109
|
+
},
|
|
7110
|
+
{
|
|
7111
|
+
name: "labels",
|
|
7112
|
+
type: "EventMetaEditorLabels",
|
|
7113
|
+
description: "필드 레이블과 placeholder 문구"
|
|
7114
|
+
}
|
|
7115
|
+
],
|
|
7116
|
+
EventMetaEditorSection: [
|
|
7117
|
+
{
|
|
7118
|
+
name: "id",
|
|
7119
|
+
type: "string",
|
|
7120
|
+
required: true,
|
|
7121
|
+
description: "섹션 키"
|
|
7122
|
+
},
|
|
7123
|
+
{
|
|
7124
|
+
name: "title",
|
|
7125
|
+
type: "ReactNode",
|
|
7126
|
+
description: "섹션 제목"
|
|
7127
|
+
},
|
|
7128
|
+
{
|
|
7129
|
+
name: "description",
|
|
7130
|
+
type: "ReactNode",
|
|
7131
|
+
description: "섹션 변경이 미치는 영향 안내"
|
|
7132
|
+
},
|
|
7133
|
+
{
|
|
7134
|
+
name: "children",
|
|
7135
|
+
type: "ReactNode",
|
|
7136
|
+
required: true,
|
|
7137
|
+
description: "호출자가 소유하는 필드"
|
|
7138
|
+
}
|
|
7139
|
+
]
|
|
7140
|
+
},
|
|
6747
7141
|
dependencies: [
|
|
6748
7142
|
{
|
|
6749
7143
|
slug: "input",
|
|
@@ -6807,7 +7201,7 @@ const filters = [
|
|
|
6807
7201
|
},
|
|
6808
7202
|
{
|
|
6809
7203
|
name: "onSave",
|
|
6810
|
-
type: "(report: { name
|
|
7204
|
+
type: "(report: { name: string; description: string; chartType: ReportBuilderChartType; dataSourceId: string }) => void",
|
|
6811
7205
|
description: "저장 콜백"
|
|
6812
7206
|
},
|
|
6813
7207
|
{
|
|
@@ -7665,7 +8059,7 @@ const filters = [
|
|
|
7665
8059
|
props: { AsyncCombobox: [
|
|
7666
8060
|
{
|
|
7667
8061
|
name: "onSearch",
|
|
7668
|
-
type: "(
|
|
8062
|
+
type: "(query: string) => Promise<string[]>",
|
|
7669
8063
|
required: true,
|
|
7670
8064
|
description: "검색 콜백"
|
|
7671
8065
|
},
|
|
@@ -7685,7 +8079,11 @@ const filters = [
|
|
|
7685
8079
|
name: "placeholder",
|
|
7686
8080
|
type: "string",
|
|
7687
8081
|
default: "\"Search…\"",
|
|
7688
|
-
description: "플레이스홀더"
|
|
8082
|
+
description: "플레이스홀더",
|
|
8083
|
+
deprecated: {
|
|
8084
|
+
since: "1.9.0",
|
|
8085
|
+
replacement: "labels.placeholder"
|
|
8086
|
+
}
|
|
7689
8087
|
},
|
|
7690
8088
|
{
|
|
7691
8089
|
name: "onSelect",
|
|
@@ -7700,7 +8098,11 @@ const filters = [
|
|
|
7700
8098
|
{
|
|
7701
8099
|
name: "loadingText",
|
|
7702
8100
|
type: "string",
|
|
7703
|
-
description: "로딩
|
|
8101
|
+
description: "로딩 문구",
|
|
8102
|
+
deprecated: {
|
|
8103
|
+
since: "1.9.0",
|
|
8104
|
+
replacement: "labels.loading"
|
|
8105
|
+
}
|
|
7704
8106
|
}
|
|
7705
8107
|
] },
|
|
7706
8108
|
dependencies: [{
|
|
@@ -7736,6 +8138,14 @@ const filters = [
|
|
|
7736
8138
|
description: "커스텀 CSS 클래스"
|
|
7737
8139
|
}
|
|
7738
8140
|
] },
|
|
8141
|
+
ariaRole: "tablist",
|
|
8142
|
+
keyboardShortcuts: [{
|
|
8143
|
+
keys: "↑ ↓",
|
|
8144
|
+
action: "세로 탭 사이 이동 및 선택"
|
|
8145
|
+
}, {
|
|
8146
|
+
keys: "Home / End",
|
|
8147
|
+
action: "첫 번째 또는 마지막 탭으로 이동"
|
|
8148
|
+
}],
|
|
7739
8149
|
dependencies: [{
|
|
7740
8150
|
slug: "tabs",
|
|
7741
8151
|
category: "core"
|
|
@@ -7808,12 +8218,30 @@ const filters = [
|
|
|
7808
8218
|
default: "24",
|
|
7809
8219
|
description: "들여쓰기 크기 (px)"
|
|
7810
8220
|
},
|
|
8221
|
+
{
|
|
8222
|
+
name: "getRowLabel",
|
|
8223
|
+
type: "(node: TreeNode<T>) => string",
|
|
8224
|
+
description: "행별 펼침/접기 컨트롤의 접근 가능한 이름 생성기"
|
|
8225
|
+
},
|
|
8226
|
+
{
|
|
8227
|
+
name: "aria-label",
|
|
8228
|
+
type: "string",
|
|
8229
|
+
description: "표의 접근 가능한 이름"
|
|
8230
|
+
},
|
|
7811
8231
|
{
|
|
7812
8232
|
name: "className",
|
|
7813
8233
|
type: "string",
|
|
7814
8234
|
description: "커스텀 CSS 클래스"
|
|
7815
8235
|
}
|
|
7816
8236
|
] },
|
|
8237
|
+
ariaRole: "table",
|
|
8238
|
+
keyboardShortcuts: [{
|
|
8239
|
+
keys: "Tab",
|
|
8240
|
+
action: "펼침/접기 컨트롤 사이 이동"
|
|
8241
|
+
}, {
|
|
8242
|
+
keys: "Enter / Space",
|
|
8243
|
+
action: "하위 행 펼치기 또는 접기"
|
|
8244
|
+
}],
|
|
7817
8245
|
dependencies: [{
|
|
7818
8246
|
slug: "data-table",
|
|
7819
8247
|
category: "shells"
|
|
@@ -7877,7 +8305,7 @@ const filters = [
|
|
|
7877
8305
|
},
|
|
7878
8306
|
{
|
|
7879
8307
|
name: "onDragEnd",
|
|
7880
|
-
type: "(itemId,
|
|
8308
|
+
type: "(itemId: string, fromColumnId: string, toColumnId: string, toIndex: number) => void",
|
|
7881
8309
|
required: true,
|
|
7882
8310
|
description: "드래그 완료 콜백"
|
|
7883
8311
|
},
|
|
@@ -8113,7 +8541,7 @@ const filters = [
|
|
|
8113
8541
|
},
|
|
8114
8542
|
{
|
|
8115
8543
|
name: "onImport",
|
|
8116
|
-
type: "(mapping, data) => void",
|
|
8544
|
+
type: "(mapping: Record<string, string>, data: string[][]) => void",
|
|
8117
8545
|
required: true,
|
|
8118
8546
|
description: "임포트 확정 콜백"
|
|
8119
8547
|
},
|
|
@@ -8165,12 +8593,32 @@ const filters = [
|
|
|
8165
8593
|
default: "\"Menu\"",
|
|
8166
8594
|
description: "트리거 버튼 텍스트"
|
|
8167
8595
|
},
|
|
8596
|
+
{
|
|
8597
|
+
name: "aria-label",
|
|
8598
|
+
type: "string",
|
|
8599
|
+
description: "열린 메가 메뉴 탐색 영역의 접근 가능한 이름"
|
|
8600
|
+
},
|
|
8168
8601
|
{
|
|
8169
8602
|
name: "className",
|
|
8170
8603
|
type: "string",
|
|
8171
8604
|
description: "커스텀 CSS 클래스"
|
|
8172
8605
|
}
|
|
8173
8606
|
] },
|
|
8607
|
+
ariaRole: "navigation",
|
|
8608
|
+
keyboardShortcuts: [
|
|
8609
|
+
{
|
|
8610
|
+
keys: "Enter / Space",
|
|
8611
|
+
action: "메가 메뉴 열기"
|
|
8612
|
+
},
|
|
8613
|
+
{
|
|
8614
|
+
keys: "Tab",
|
|
8615
|
+
action: "메뉴 링크와 액션 사이 이동"
|
|
8616
|
+
},
|
|
8617
|
+
{
|
|
8618
|
+
keys: "Escape",
|
|
8619
|
+
action: "메가 메뉴 닫기"
|
|
8620
|
+
}
|
|
8621
|
+
],
|
|
8174
8622
|
dependencies: [{
|
|
8175
8623
|
slug: "popover",
|
|
8176
8624
|
category: "core"
|
|
@@ -8767,6 +9215,16 @@ const messages = [
|
|
|
8767
9215
|
slug: "time-series-panel",
|
|
8768
9216
|
exports: ["TimeSeriesPanel"],
|
|
8769
9217
|
props: { TimeSeriesPanel: [
|
|
9218
|
+
{
|
|
9219
|
+
name: "title",
|
|
9220
|
+
type: "ReactNode",
|
|
9221
|
+
description: "패널 제목. aria-label이 없으면 region 이름으로 연결됩니다"
|
|
9222
|
+
},
|
|
9223
|
+
{
|
|
9224
|
+
name: "description",
|
|
9225
|
+
type: "ReactNode",
|
|
9226
|
+
description: "패널 보조 설명"
|
|
9227
|
+
},
|
|
8770
9228
|
{
|
|
8771
9229
|
name: "data",
|
|
8772
9230
|
type: "TimeSeriesPoint[]",
|
|
@@ -8813,6 +9271,11 @@ const messages = [
|
|
|
8813
9271
|
type: "number",
|
|
8814
9272
|
default: "280",
|
|
8815
9273
|
description: "차트 높이"
|
|
9274
|
+
},
|
|
9275
|
+
{
|
|
9276
|
+
name: "aria-label",
|
|
9277
|
+
type: "string",
|
|
9278
|
+
description: "제목 대신 사용할 패널 region의 접근 가능한 이름"
|
|
8816
9279
|
}
|
|
8817
9280
|
] },
|
|
8818
9281
|
ariaRole: "region",
|
|
@@ -8996,6 +9459,409 @@ const messages = [
|
|
|
8996
9459
|
] },
|
|
8997
9460
|
ariaRole: "complementary",
|
|
8998
9461
|
testDescribe: "FieldSidebar"
|
|
9462
|
+
},
|
|
9463
|
+
{
|
|
9464
|
+
name: "InspectorLayout",
|
|
9465
|
+
category: "shells",
|
|
9466
|
+
description: "목록과 인스펙터의 2-pane 레이아웃. 넓으면 밀어내고(push) 좁으면 덮으며(overlay), 닫을 때 포커스를 열었던 자리로 되돌립니다.",
|
|
9467
|
+
slug: "inspector-layout",
|
|
9468
|
+
exports: ["InspectorLayout"],
|
|
9469
|
+
props: { InspectorLayout: [
|
|
9470
|
+
{
|
|
9471
|
+
name: "children",
|
|
9472
|
+
type: "ReactNode",
|
|
9473
|
+
required: true,
|
|
9474
|
+
description: "목록. 인스펙터가 열려도 마운트와 스크롤을 유지"
|
|
9475
|
+
},
|
|
9476
|
+
{
|
|
9477
|
+
name: "inspector",
|
|
9478
|
+
type: "ReactNode",
|
|
9479
|
+
description: "인스펙터 내용. 닫혀 있으면 렌더하지 않음"
|
|
9480
|
+
},
|
|
9481
|
+
{
|
|
9482
|
+
name: "open",
|
|
9483
|
+
type: "boolean",
|
|
9484
|
+
required: true,
|
|
9485
|
+
description: "열림"
|
|
9486
|
+
},
|
|
9487
|
+
{
|
|
9488
|
+
name: "onClose",
|
|
9489
|
+
type: "() => void",
|
|
9490
|
+
required: true,
|
|
9491
|
+
description: "닫기"
|
|
9492
|
+
},
|
|
9493
|
+
{
|
|
9494
|
+
name: "title",
|
|
9495
|
+
type: "ReactNode",
|
|
9496
|
+
description: "인스펙터 제목"
|
|
9497
|
+
},
|
|
9498
|
+
{
|
|
9499
|
+
name: "description",
|
|
9500
|
+
type: "ReactNode",
|
|
9501
|
+
description: "제목 아래 한 줄"
|
|
9502
|
+
},
|
|
9503
|
+
{
|
|
9504
|
+
name: "actions",
|
|
9505
|
+
type: "ReactNode",
|
|
9506
|
+
description: "닫기 버튼 옆 컨트롤"
|
|
9507
|
+
},
|
|
9508
|
+
{
|
|
9509
|
+
name: "footer",
|
|
9510
|
+
type: "ReactNode",
|
|
9511
|
+
description: "인스펙터 하단"
|
|
9512
|
+
},
|
|
9513
|
+
{
|
|
9514
|
+
name: "breakpoint",
|
|
9515
|
+
type: "\"lg\" | \"xl\" | \"2xl\"",
|
|
9516
|
+
default: "\"xl\"",
|
|
9517
|
+
description: "이 폭 이상이면 push"
|
|
9518
|
+
},
|
|
9519
|
+
{
|
|
9520
|
+
name: "width",
|
|
9521
|
+
type: "\"sm\" | \"md\" | \"lg\"",
|
|
9522
|
+
default: "\"md\"",
|
|
9523
|
+
description: "push 레이아웃에서의 인스펙터 폭"
|
|
9524
|
+
},
|
|
9525
|
+
{
|
|
9526
|
+
name: "labels",
|
|
9527
|
+
type: "InspectorLayoutLabels",
|
|
9528
|
+
description: "닫기 버튼 등 인스펙터 문구"
|
|
9529
|
+
},
|
|
9530
|
+
{
|
|
9531
|
+
name: "className",
|
|
9532
|
+
type: "string",
|
|
9533
|
+
description: "추가 CSS 클래스"
|
|
9534
|
+
}
|
|
9535
|
+
] },
|
|
9536
|
+
usage: {
|
|
9537
|
+
bestPractices: ["목록 → 상세 → 목록 왕복이 잦은 화면에 씁니다. 다이얼로그는 목록을 가져가 버립니다."],
|
|
9538
|
+
avoid: ["확인이 필요한 파괴적 작업에는 ConfirmDialog를 씁니다.", "포커스 복귀를 직접 다루지 않습니다. Flyout이 소유하며, 부모가 겹쳐 잡으면 패널을 열었던 요소로 오인합니다."]
|
|
9539
|
+
},
|
|
9540
|
+
testDescribe: "InspectorLayout"
|
|
9541
|
+
},
|
|
9542
|
+
{
|
|
9543
|
+
name: "QueryFilterBar",
|
|
9544
|
+
category: "shells",
|
|
9545
|
+
description: "QueryBar와 필터 버튼이 하나의 Query를 공유합니다. 버튼은 상태를 갖지 않고 Query를 읽어 활성 여부를 계산합니다.",
|
|
9546
|
+
slug: "query-filter-bar",
|
|
9547
|
+
exports: ["QueryFilterBar", "hasActiveQuery"],
|
|
9548
|
+
props: { QueryFilterBar: [
|
|
9549
|
+
{
|
|
9550
|
+
name: "value",
|
|
9551
|
+
type: "Query",
|
|
9552
|
+
required: true,
|
|
9553
|
+
description: "필터 상태 전부"
|
|
9554
|
+
},
|
|
9555
|
+
{
|
|
9556
|
+
name: "onChange",
|
|
9557
|
+
type: "(query: Query) => void",
|
|
9558
|
+
required: true,
|
|
9559
|
+
description: "Query 변경"
|
|
9560
|
+
},
|
|
9561
|
+
{
|
|
9562
|
+
name: "filters",
|
|
9563
|
+
type: "QueryFilterDef[]",
|
|
9564
|
+
required: true,
|
|
9565
|
+
description: "필터 컨트롤 정의 (is / field_value_selection / field_value_toggle)"
|
|
9566
|
+
},
|
|
9567
|
+
{
|
|
9568
|
+
name: "fields",
|
|
9569
|
+
type: "QueryField[]",
|
|
9570
|
+
description: "텍스트 입력 자동완성"
|
|
9571
|
+
},
|
|
9572
|
+
{
|
|
9573
|
+
name: "actions",
|
|
9574
|
+
type: "ReactNode",
|
|
9575
|
+
description: "필터 행 끝 슬롯"
|
|
9576
|
+
},
|
|
9577
|
+
{
|
|
9578
|
+
name: "showClauses",
|
|
9579
|
+
type: "boolean",
|
|
9580
|
+
default: "true",
|
|
9581
|
+
description: "절을 제거 가능한 칩으로 표시"
|
|
9582
|
+
},
|
|
9583
|
+
{
|
|
9584
|
+
name: "live",
|
|
9585
|
+
type: "boolean",
|
|
9586
|
+
default: "false",
|
|
9587
|
+
description: "매 입력마다 커밋"
|
|
9588
|
+
},
|
|
9589
|
+
{
|
|
9590
|
+
name: "disabled",
|
|
9591
|
+
type: "boolean",
|
|
9592
|
+
default: "false",
|
|
9593
|
+
description: "전체 비활성"
|
|
9594
|
+
},
|
|
9595
|
+
{
|
|
9596
|
+
name: "queryBarLabels",
|
|
9597
|
+
type: "QueryBarLabels",
|
|
9598
|
+
description: "QueryBar로 통과되는 나머지 문구. placeholder/ariaLabel은 labels가 이깁니다"
|
|
9599
|
+
},
|
|
9600
|
+
{
|
|
9601
|
+
name: "labels",
|
|
9602
|
+
type: "QueryFilterBarLabels",
|
|
9603
|
+
description: "검색·필터·초기화 문구"
|
|
9604
|
+
},
|
|
9605
|
+
{
|
|
9606
|
+
name: "className",
|
|
9607
|
+
type: "string",
|
|
9608
|
+
description: "추가 CSS 클래스"
|
|
9609
|
+
}
|
|
9610
|
+
] },
|
|
9611
|
+
usage: {
|
|
9612
|
+
bestPractices: ["URL에 Query 한 줄만 실어 필터 상태 전체를 공유 가능하게 만듭니다."],
|
|
9613
|
+
avoid: ["필터 버튼이 자체 상태를 갖게 하지 않습니다. 진실 원천이 둘로 갈라집니다."]
|
|
9614
|
+
},
|
|
9615
|
+
testDescribe: "QueryFilterBar"
|
|
9616
|
+
},
|
|
9617
|
+
{
|
|
9618
|
+
name: "CatalogFrame",
|
|
9619
|
+
category: "shells",
|
|
9620
|
+
description: "카탈로그 목록의 공통 뼈대. 헤더·통계·고지·필터·인스펙터·페이지네이션·일괄 작업과 빈/에러 상태를 담고, 필터나 페이지가 바뀌면 선택을 비웁니다.",
|
|
9621
|
+
slug: "catalog-frame",
|
|
9622
|
+
exports: [
|
|
9623
|
+
"CatalogFrame",
|
|
9624
|
+
"CatalogRowActions",
|
|
9625
|
+
"CatalogCellControls"
|
|
9626
|
+
],
|
|
9627
|
+
props: {
|
|
9628
|
+
CatalogFrame: [
|
|
9629
|
+
{
|
|
9630
|
+
name: "children",
|
|
9631
|
+
type: "ReactNode",
|
|
9632
|
+
required: true,
|
|
9633
|
+
description: "테이블. 빈/에러 상태에서는 대체됨"
|
|
9634
|
+
},
|
|
9635
|
+
{
|
|
9636
|
+
name: "isEmpty",
|
|
9637
|
+
type: "boolean",
|
|
9638
|
+
required: true,
|
|
9639
|
+
description: "테이블이 0행인지"
|
|
9640
|
+
},
|
|
9641
|
+
{
|
|
9642
|
+
name: "query",
|
|
9643
|
+
type: "Query",
|
|
9644
|
+
required: true,
|
|
9645
|
+
description: "필터 상태"
|
|
9646
|
+
},
|
|
9647
|
+
{
|
|
9648
|
+
name: "onQueryChange",
|
|
9649
|
+
type: "(query: Query) => void",
|
|
9650
|
+
required: true,
|
|
9651
|
+
description: "Query 변경"
|
|
9652
|
+
},
|
|
9653
|
+
{
|
|
9654
|
+
name: "filters",
|
|
9655
|
+
type: "QueryFilterDef[]",
|
|
9656
|
+
description: "필터 정의"
|
|
9657
|
+
},
|
|
9658
|
+
{
|
|
9659
|
+
name: "stats",
|
|
9660
|
+
type: "StatCardType[]",
|
|
9661
|
+
description: "통계 카드"
|
|
9662
|
+
},
|
|
9663
|
+
{
|
|
9664
|
+
name: "onStatClick",
|
|
9665
|
+
type: "(stat: StatCardType) => void",
|
|
9666
|
+
description: "카드 클릭 = 필터"
|
|
9667
|
+
},
|
|
9668
|
+
{
|
|
9669
|
+
name: "notice",
|
|
9670
|
+
type: "ReactNode",
|
|
9671
|
+
description: "목록 위 고지"
|
|
9672
|
+
},
|
|
9673
|
+
{
|
|
9674
|
+
name: "emptyActions",
|
|
9675
|
+
type: "ReactNode",
|
|
9676
|
+
description: "필터 없는 빈 상태의 다음 행동 (필터된 빈 상태는 필터 지우기 유지)"
|
|
9677
|
+
},
|
|
9678
|
+
{
|
|
9679
|
+
name: "header",
|
|
9680
|
+
type: "ReactNode",
|
|
9681
|
+
description: "헤더 슬롯"
|
|
9682
|
+
},
|
|
9683
|
+
{
|
|
9684
|
+
name: "actions",
|
|
9685
|
+
type: "ReactNode",
|
|
9686
|
+
description: "액션 슬롯"
|
|
9687
|
+
},
|
|
9688
|
+
{
|
|
9689
|
+
name: "toolbar",
|
|
9690
|
+
type: "ReactNode",
|
|
9691
|
+
description: "통계와 필터 사이 컨트롤 (스코프 세그먼트 등)"
|
|
9692
|
+
},
|
|
9693
|
+
{
|
|
9694
|
+
name: "inspector",
|
|
9695
|
+
type: "ReactNode",
|
|
9696
|
+
description: "인스펙터 내용"
|
|
9697
|
+
},
|
|
9698
|
+
{
|
|
9699
|
+
name: "inspectorOpen",
|
|
9700
|
+
type: "boolean",
|
|
9701
|
+
required: true,
|
|
9702
|
+
description: "인스펙터 열림"
|
|
9703
|
+
},
|
|
9704
|
+
{
|
|
9705
|
+
name: "onInspectorClose",
|
|
9706
|
+
type: "() => void",
|
|
9707
|
+
required: true,
|
|
9708
|
+
description: "인스펙터 닫기"
|
|
9709
|
+
},
|
|
9710
|
+
{
|
|
9711
|
+
name: "inspectorTitle",
|
|
9712
|
+
type: "ReactNode",
|
|
9713
|
+
description: "인스펙터 제목"
|
|
9714
|
+
},
|
|
9715
|
+
{
|
|
9716
|
+
name: "inspectorDescription",
|
|
9717
|
+
type: "ReactNode",
|
|
9718
|
+
description: "인스펙터 설명"
|
|
9719
|
+
},
|
|
9720
|
+
{
|
|
9721
|
+
name: "inspectorActions",
|
|
9722
|
+
type: "ReactNode",
|
|
9723
|
+
description: "인스펙터 헤더 컨트롤"
|
|
9724
|
+
},
|
|
9725
|
+
{
|
|
9726
|
+
name: "inspectorFooter",
|
|
9727
|
+
type: "ReactNode",
|
|
9728
|
+
description: "인스펙터 하단"
|
|
9729
|
+
},
|
|
9730
|
+
{
|
|
9731
|
+
name: "inspectorWidth",
|
|
9732
|
+
type: "\"sm\" | \"md\" | \"lg\"",
|
|
9733
|
+
description: "push 레이아웃 폭"
|
|
9734
|
+
},
|
|
9735
|
+
{
|
|
9736
|
+
name: "page",
|
|
9737
|
+
type: "number",
|
|
9738
|
+
default: "1",
|
|
9739
|
+
description: "현재 페이지"
|
|
9740
|
+
},
|
|
9741
|
+
{
|
|
9742
|
+
name: "pageSize",
|
|
9743
|
+
type: "number",
|
|
9744
|
+
default: "50",
|
|
9745
|
+
description: "페이지 크기"
|
|
9746
|
+
},
|
|
9747
|
+
{
|
|
9748
|
+
name: "totalCount",
|
|
9749
|
+
type: "number",
|
|
9750
|
+
description: "필터 반영 총 개수"
|
|
9751
|
+
},
|
|
9752
|
+
{
|
|
9753
|
+
name: "onPageChange",
|
|
9754
|
+
type: "(page: number) => void",
|
|
9755
|
+
description: "페이지 변경"
|
|
9756
|
+
},
|
|
9757
|
+
{
|
|
9758
|
+
name: "selectedKeys",
|
|
9759
|
+
type: "string[]",
|
|
9760
|
+
description: "선택된 행"
|
|
9761
|
+
},
|
|
9762
|
+
{
|
|
9763
|
+
name: "onSelectionChange",
|
|
9764
|
+
type: "(keys: string[]) => void",
|
|
9765
|
+
description: "선택 변경. 필터·페이지가 바뀌면 프레임이 비웁니다"
|
|
9766
|
+
},
|
|
9767
|
+
{
|
|
9768
|
+
name: "bulkActions",
|
|
9769
|
+
type: "FloatingAction[]",
|
|
9770
|
+
description: "일괄 작업"
|
|
9771
|
+
},
|
|
9772
|
+
{
|
|
9773
|
+
name: "onBulkAction",
|
|
9774
|
+
type: "(actionId: string) => void",
|
|
9775
|
+
description: "일괄 작업 실행"
|
|
9776
|
+
},
|
|
9777
|
+
{
|
|
9778
|
+
name: "error",
|
|
9779
|
+
type: "ReactNode",
|
|
9780
|
+
description: "읽기 실패. 빈 목록과 다른 답"
|
|
9781
|
+
},
|
|
9782
|
+
{
|
|
9783
|
+
name: "onRetry",
|
|
9784
|
+
type: "() => void",
|
|
9785
|
+
description: "재시도"
|
|
9786
|
+
},
|
|
9787
|
+
{
|
|
9788
|
+
name: "labels",
|
|
9789
|
+
type: "CatalogFrameLabels",
|
|
9790
|
+
description: "빈/필터된 빈/에러 문구"
|
|
9791
|
+
},
|
|
9792
|
+
{
|
|
9793
|
+
name: "className",
|
|
9794
|
+
type: "string",
|
|
9795
|
+
description: "추가 CSS 클래스"
|
|
9796
|
+
}
|
|
9797
|
+
],
|
|
9798
|
+
CatalogRowActions: [
|
|
9799
|
+
{
|
|
9800
|
+
name: "item",
|
|
9801
|
+
type: "T",
|
|
9802
|
+
required: true,
|
|
9803
|
+
description: "이 행의 항목"
|
|
9804
|
+
},
|
|
9805
|
+
{
|
|
9806
|
+
name: "actions",
|
|
9807
|
+
type: "CatalogRowAction<T>[]",
|
|
9808
|
+
required: true,
|
|
9809
|
+
description: "행 액션"
|
|
9810
|
+
},
|
|
9811
|
+
{
|
|
9812
|
+
name: "visibleCount",
|
|
9813
|
+
type: "number",
|
|
9814
|
+
default: "2",
|
|
9815
|
+
description: "오버플로 전에 노출할 개수. available 필터링 후에 적용됨"
|
|
9816
|
+
},
|
|
9817
|
+
{
|
|
9818
|
+
name: "labels",
|
|
9819
|
+
type: "CatalogRowActionsLabels",
|
|
9820
|
+
description: "그룹·오버플로 라벨"
|
|
9821
|
+
}
|
|
9822
|
+
],
|
|
9823
|
+
CatalogRowAction: [
|
|
9824
|
+
{
|
|
9825
|
+
name: "id",
|
|
9826
|
+
type: "string",
|
|
9827
|
+
required: true,
|
|
9828
|
+
description: "액션 키"
|
|
9829
|
+
},
|
|
9830
|
+
{
|
|
9831
|
+
name: "label",
|
|
9832
|
+
type: "string",
|
|
9833
|
+
required: true,
|
|
9834
|
+
description: "액션 문구"
|
|
9835
|
+
},
|
|
9836
|
+
{
|
|
9837
|
+
name: "icon",
|
|
9838
|
+
type: "ReactNode",
|
|
9839
|
+
description: "선택적 액션 아이콘"
|
|
9840
|
+
},
|
|
9841
|
+
{
|
|
9842
|
+
name: "onSelect",
|
|
9843
|
+
type: "(item: T) => void",
|
|
9844
|
+
required: true,
|
|
9845
|
+
description: "행과 함께 호출되는 액션"
|
|
9846
|
+
},
|
|
9847
|
+
{
|
|
9848
|
+
name: "available",
|
|
9849
|
+
type: "(item: T) => boolean",
|
|
9850
|
+
description: "이 행에 적용되지 않는 액션을 비활성화 대신 제거"
|
|
9851
|
+
}
|
|
9852
|
+
],
|
|
9853
|
+
CatalogCellControls: [{
|
|
9854
|
+
name: "children",
|
|
9855
|
+
type: "ReactNode",
|
|
9856
|
+
required: true,
|
|
9857
|
+
description: "행 클릭으로 새면 안 되는 셀 컨트롤"
|
|
9858
|
+
}]
|
|
9859
|
+
},
|
|
9860
|
+
usage: {
|
|
9861
|
+
bestPractices: ["카탈로그 성격의 목록 화면은 이 프레임 위에 컬럼 정의와 labels만 얹습니다."],
|
|
9862
|
+
avoid: ["선택 초기화를 호출자에게 맡기지 않습니다 — 보이지 않는 행에 일괄 작업이 적용됩니다."]
|
|
9863
|
+
},
|
|
9864
|
+
testDescribe: "CatalogFrame"
|
|
8999
9865
|
}
|
|
9000
9866
|
];
|
|
9001
9867
|
//#endregion
|