@robot-admin/naive-ui-components 0.35.0 → 0.37.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.
- package/CHANGELOG.md +18 -0
- package/README.md +8 -5
- package/README_EN.md +21 -18
- package/THIRD_PARTY_NOTICES.md +10 -1
- package/dist/BPMN.cjs +1 -0
- package/dist/BPMN.js +1 -0
- package/dist/C_ActionBar.css +68 -55
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.cjs +1 -1
- package/dist/C_AntV.css +156 -153
- package/dist/C_AntV.js +1 -1
- package/dist/C_AntV2.cjs +1 -4
- package/dist/C_AntV2.js +1 -4
- package/dist/C_AudioPlayer.css +74 -61
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AutoComplete.css +3 -3
- package/dist/C_AutoComplete2.cjs +1 -1
- package/dist/C_AutoComplete2.js +1 -1
- package/dist/C_AvatarGroup.css +38 -38
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_Barcode.css +9 -9
- package/dist/C_Barcode2.cjs +1 -1
- package/dist/C_Barcode2.js +1 -1
- package/dist/C_Breadcrumb.css +73 -60
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.css +74 -40
- package/dist/C_Captcha.d.ts +2 -2
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +4 -4
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat.css +136 -115
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +57 -56
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.cjs +1 -1
- package/dist/C_Code.css +110 -45
- package/dist/C_Code.js +1 -1
- package/dist/C_Code2.cjs +2 -1
- package/dist/C_Code2.js +2 -1
- package/dist/C_CollapsePanel.css +67 -54
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +36 -23
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +144 -131
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_DataPicker.cjs +1 -1
- package/dist/C_DataPicker.css +95 -80
- package/dist/C_DataPicker.d.cts +3 -2
- package/dist/C_DataPicker.d.ts +5 -4
- package/dist/C_DataPicker.js +1 -1
- package/dist/C_DataPicker2.cjs +1 -0
- package/dist/C_DataPicker2.js +1 -0
- package/dist/C_Date.css +5 -5
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_Draggable.css +71 -71
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +51 -76
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +109 -109
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +64 -74
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +64 -74
- package/dist/C_Form.d.cts +1 -2
- package/dist/C_Form.d.ts +2 -3
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.css +69 -56
- package/dist/C_FormModal.d.ts +2 -2
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +99 -99
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_FormulaEditor.css +171 -150
- package/dist/C_FullCalendar.css +35 -11
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch.css +221 -200
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +37 -24
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Icon.css +13 -0
- package/dist/C_ImageCropper.css +41 -40
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_Language.css +15 -2
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Loading.css +18 -18
- package/dist/C_Loading2.cjs +1 -1
- package/dist/C_Loading2.js +1 -1
- package/dist/C_Login.css +88 -54
- package/dist/C_Login.d.ts +2 -2
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Map.css +13 -13
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_Markdown.css +69 -60
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_NotificationCenter.css +173 -199
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.css +16 -16
- package/dist/C_OrgChart2.cjs +1 -1
- package/dist/C_OrgChart2.js +1 -1
- package/dist/C_PageLoading.css +33 -33
- package/dist/C_QRCode.css +14 -14
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_Select.css +4 -4
- package/dist/C_Select.d.cts +1 -1
- package/dist/C_Select.d.ts +1 -1
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Signature.css +25 -25
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Skeleton.css +28 -16
- package/dist/C_Skeleton2.cjs +1 -1
- package/dist/C_Skeleton2.js +1 -1
- package/dist/C_SplitPane.css +82 -70
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Steps.css +48 -48
- package/dist/C_Steps2.cjs +1 -1
- package/dist/C_Steps2.js +1 -1
- package/dist/C_Table.base.css +302 -299
- package/dist/C_Table.css +238 -225
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +9 -5
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Tabs.css +11 -51
- package/dist/C_TagsView.css +91 -84
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.css +13 -0
- package/dist/C_Time.css +5 -5
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Timeline.css +112 -71
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +69 -60
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +30 -30
- package/dist/C_Tree.d.cts +2 -1
- package/dist/C_Tree.d.ts +8 -4
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +113 -116
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_UserPicker.cjs +1 -0
- package/dist/C_UserPicker.css +75 -0
- package/dist/C_UserPicker.d.cts +3 -0
- package/dist/C_UserPicker.d.ts +7 -0
- package/dist/C_UserPicker.js +1 -0
- package/dist/C_VideoPlayer.cjs +1 -1
- package/dist/C_VideoPlayer.css +138 -119
- package/dist/C_VideoPlayer.js +1 -1
- package/dist/C_VideoPlayer2.cjs +3 -3
- package/dist/C_VideoPlayer2.js +3 -3
- package/dist/C_VtableGantt.css +37 -40
- package/dist/C_WaterFall.css +55 -46
- package/dist/C_WaterFall2.cjs +1 -1
- package/dist/C_WaterFall2.js +1 -1
- package/dist/C_WorkFlow.css +757 -541
- package/dist/C_WorkFlow.d.cts +2 -2
- package/dist/C_WorkFlow.d.ts +7 -2
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/Dynamic.cjs +1 -1
- package/dist/Dynamic.js +1 -1
- package/dist/ER.cjs +1 -0
- package/dist/ER.js +1 -0
- package/dist/NodeConfigModal.cjs +1 -0
- package/dist/NodeConfigModal.js +1 -0
- package/dist/SearchFieldSettings.cjs +1 -1
- package/dist/SearchFieldSettings.js +1 -1
- package/dist/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/UML.cjs +4 -0
- package/dist/UML.js +4 -0
- package/dist/conditions.cjs +1 -0
- package/dist/conditions.js +1 -0
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -10
- package/dist/config.d.ts +3 -10
- package/dist/config.js +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants3.d.cts +5 -5
- package/dist/constants3.d.ts +5 -5
- package/dist/constants4.d.cts +3 -3
- package/dist/constants4.d.ts +3 -3
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.cjs +1 -0
- package/dist/{useFormConfig.d.cts → context.d.cts} +8 -2
- package/dist/{useFormConfig.d.ts → context.d.ts} +8 -2
- package/dist/context.js +1 -0
- package/dist/createPageLoading.cjs +1 -1
- package/dist/createPageLoading.js +1 -1
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/data3.cjs +1 -1
- package/dist/data3.js +1 -1
- package/dist/dateRange.d.ts +1 -1
- package/dist/editors.d.cts +10 -235
- package/dist/editors.d.ts +10 -235
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.js +1 -1
- package/dist/fieldRenderers.cjs +1 -1
- package/dist/fieldRenderers.js +1 -1
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +7 -1190
- package/dist/formField.d.ts +7 -1190
- package/dist/formField.js +1 -1
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -11
- package/dist/index.d.ts +17 -12
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +3 -0
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index13.vue.d.ts +4 -5
- package/dist/index14.vue.d.cts +4 -5
- package/dist/index15.vue.d.ts +1 -1
- package/dist/index16.vue.d.cts +1 -1
- package/dist/index16.vue.d.ts +6 -6
- package/dist/index17.vue.d.cts +6 -6
- package/dist/index17.vue.d.ts +7 -7
- package/dist/index18.vue.d.cts +7 -7
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +3 -3
- package/dist/index22.vue.d.cts +3 -3
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index26.vue.d.cts +1 -1
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index30.vue.d.cts +1 -1
- package/dist/index30.vue.d.ts +1 -1
- package/dist/index31.vue.d.cts +5 -5
- package/dist/index31.vue.d.ts +5 -5
- package/dist/index4.vue.d.cts +7 -7
- package/dist/index4.vue.d.ts +7 -7
- package/dist/index7.vue.d.ts +2 -0
- package/dist/index8.vue.d.cts +2 -0
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/index9.vue.d.ts +3 -0
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/readonlyGraph.cjs +1 -0
- package/dist/readonlyGraph.js +1 -0
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/shared-tokens.css +1 -1
- package/dist/source.cjs +1 -0
- package/dist/source.d.cts +37 -0
- package/dist/source.d.ts +37 -0
- package/dist/source.js +1 -0
- package/dist/style.css +3987 -3568
- package/dist/theme.cjs +1 -0
- package/dist/theme.d.cts +73 -0
- package/dist/theme.d.ts +73 -0
- package/dist/theme.js +1 -0
- package/dist/theme2.cjs +1 -0
- package/dist/theme2.js +1 -0
- package/dist/types3.d.ts +1223 -53
- package/dist/types4.d.cts +1223 -53
- package/dist/types4.d.ts +55 -45
- package/dist/types5.d.cts +55 -45
- package/dist/types5.d.ts +50 -0
- package/dist/types6.d.cts +50 -0
- package/dist/types6.d.ts +284 -0
- package/dist/types7.d.cts +284 -0
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +1 -1
- package/dist/useCollapsePanel.d.ts +1 -1
- package/dist/useComponentDensity.cjs +1 -0
- package/dist/useComponentDensity.js +1 -0
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useComponentTheme.cjs +1 -0
- package/dist/useComponentTheme.js +1 -0
- package/dist/useCropperCore.d.cts +7 -7
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useDynamicFormState.d.cts +4 -4
- package/dist/useDynamicFormState.d.ts +4 -4
- package/dist/useEdgeInteraction.cjs +1 -0
- package/dist/useEdgeInteraction.d.cts +21 -4
- package/dist/useEdgeInteraction.d.ts +21 -4
- package/dist/useEdgeInteraction.js +1 -0
- package/dist/useFormConfig.cjs +1 -1
- package/dist/useFormConfig.js +1 -1
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFormulaEvaluator.cjs +2 -2
- package/dist/useFormulaEvaluator.js +2 -2
- package/dist/useFullscreen.d.cts +3 -3
- package/dist/useFullscreen.d.ts +3 -3
- package/dist/useGraphExport.cjs +1 -0
- package/dist/useGraphExport.js +1 -0
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +4 -4
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSignatureHistory.d.cts +5 -5
- package/dist/useSignatureHistory.d.ts +5 -5
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useWorkflowValidation.d.cts +167 -45
- package/dist/useWorkflowValidation.d.ts +167 -45
- package/dist/verification.d.cts +2 -3
- package/dist/verification.d.ts +2 -3
- package/docs/components.en.md +8 -7
- package/docs/components.md +8 -7
- package/docs/guides/theme.md +79 -0
- package/docs/guides/user-picker.md +124 -0
- package/docs/guides/workflow-people.md +60 -0
- package/docs/guides/workflow.md +153 -0
- package/docs/people-workflow-review-20261114.md +75 -0
- package/licenses/VueFlow.txt +20 -0
- package/package.json +1 -1
- /package/dist/{config2.d.ts → component-config.d.ts} +0 -0
package/dist/C_DataPicker.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@import "./C_Table.base.css";
|
|
2
|
-
.c-tree[data-v-
|
|
2
|
+
.c-tree[data-v-3a2f095a] {
|
|
3
3
|
--c-tree-padding: 12px;
|
|
4
4
|
--c-tree-gap: 10px;
|
|
5
5
|
display: flex;
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
gap: var(--c-tree-gap);
|
|
11
11
|
}
|
|
12
|
-
.c-tree--compact[data-v-
|
|
12
|
+
.c-tree--compact[data-v-3a2f095a] {
|
|
13
13
|
--c-tree-padding: 8px;
|
|
14
14
|
--c-tree-gap: 8px;
|
|
15
15
|
}
|
|
16
|
-
.c-tree--comfortable[data-v-
|
|
16
|
+
.c-tree--comfortable[data-v-3a2f095a] {
|
|
17
17
|
--c-tree-padding: 16px;
|
|
18
18
|
--c-tree-gap: 14px;
|
|
19
19
|
}
|
|
20
|
-
.c-tree .c-tree-toolbar[data-v-
|
|
20
|
+
.c-tree .c-tree-toolbar[data-v-3a2f095a] {
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-wrap: wrap;
|
|
23
23
|
align-items: center;
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
border-radius: var(--c-tree-radius);
|
|
28
28
|
flex-shrink: 0;
|
|
29
29
|
}
|
|
30
|
-
.c-tree .toolbar-left[data-v-
|
|
30
|
+
.c-tree .toolbar-left[data-v-3a2f095a] {
|
|
31
31
|
flex: 1 1 140px;
|
|
32
32
|
min-width: 0;
|
|
33
33
|
}
|
|
34
|
-
.c-tree .toolbar-left .search-input[data-v-
|
|
34
|
+
.c-tree .toolbar-left .search-input[data-v-3a2f095a] {
|
|
35
35
|
width: 100%;
|
|
36
36
|
}
|
|
37
|
-
.c-tree .toolbar-right[data-v-
|
|
37
|
+
.c-tree .toolbar-right[data-v-3a2f095a] {
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-wrap: wrap;
|
|
40
40
|
align-items: center;
|
|
41
41
|
gap: 6px;
|
|
42
42
|
margin-left: auto;
|
|
43
43
|
}
|
|
44
|
-
.c-tree .c-tree-container[data-v-
|
|
44
|
+
.c-tree .c-tree-container[data-v-3a2f095a] {
|
|
45
45
|
flex: 1 1 auto;
|
|
46
46
|
min-width: 0;
|
|
47
47
|
min-height: 0;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
overflow: auto;
|
|
52
52
|
scrollbar-width: thin;
|
|
53
53
|
}
|
|
54
|
-
.c-tree .c-tree-search-status[data-v-
|
|
54
|
+
.c-tree .c-tree-search-status[data-v-3a2f095a] {
|
|
55
55
|
display: flex;
|
|
56
56
|
align-items: center;
|
|
57
57
|
justify-content: space-between;
|
|
@@ -62,38 +62,38 @@
|
|
|
62
62
|
color: var(--c-tree-text-secondary);
|
|
63
63
|
flex-shrink: 0;
|
|
64
64
|
}
|
|
65
|
-
.c-tree .c-tree-search-navigation[data-v-
|
|
65
|
+
.c-tree .c-tree-search-navigation[data-v-3a2f095a] {
|
|
66
66
|
display: inline-flex;
|
|
67
67
|
align-items: center;
|
|
68
68
|
gap: 12px;
|
|
69
69
|
}
|
|
70
|
-
.c-tree--virtual .c-tree-container[data-v-
|
|
70
|
+
.c-tree--virtual .c-tree-container[data-v-3a2f095a] {
|
|
71
71
|
overflow: hidden;
|
|
72
72
|
}
|
|
73
|
-
.c-tree--virtual .tree-instance[data-v-
|
|
73
|
+
.c-tree--virtual .tree-instance[data-v-3a2f095a] {
|
|
74
74
|
height: 100%;
|
|
75
75
|
}
|
|
76
|
-
.c-tree[data-v-
|
|
77
|
-
.c-tree[data-v-
|
|
76
|
+
.c-tree[data-v-3a2f095a] .n-tree-node-content,
|
|
77
|
+
.c-tree[data-v-3a2f095a] .n-tree-node-content__text {
|
|
78
78
|
min-width: 0;
|
|
79
79
|
}
|
|
80
|
-
.c-tree[data-v-
|
|
80
|
+
.c-tree[data-v-3a2f095a] .c-tree-node-label {
|
|
81
81
|
display: flex;
|
|
82
82
|
align-items: center;
|
|
83
83
|
min-width: 0;
|
|
84
84
|
width: 100%;
|
|
85
85
|
gap: 6px;
|
|
86
86
|
}
|
|
87
|
-
.c-tree[data-v-
|
|
87
|
+
.c-tree[data-v-3a2f095a] .c-tree-node-title {
|
|
88
88
|
overflow: hidden;
|
|
89
89
|
white-space: nowrap;
|
|
90
90
|
text-overflow: ellipsis;
|
|
91
91
|
}
|
|
92
|
-
.c-tree[data-v-
|
|
93
|
-
.c-tree[data-v-
|
|
92
|
+
.c-tree[data-v-3a2f095a] .c-tree-node-status,
|
|
93
|
+
.c-tree[data-v-3a2f095a] .c-tree-node-icon {
|
|
94
94
|
flex-shrink: 0;
|
|
95
95
|
}
|
|
96
|
-
.c-tree[data-v-
|
|
96
|
+
.c-tree[data-v-3a2f095a] .tree-actions {
|
|
97
97
|
display: inline-flex;
|
|
98
98
|
align-items: center;
|
|
99
99
|
gap: 2px;
|
|
@@ -101,140 +101,148 @@
|
|
|
101
101
|
opacity: 0;
|
|
102
102
|
transition: opacity 0.15s ease;
|
|
103
103
|
}
|
|
104
|
-
.c-tree[data-v-
|
|
104
|
+
.c-tree[data-v-3a2f095a] .c-tree-suffix {
|
|
105
105
|
display: inline-flex;
|
|
106
106
|
align-items: center;
|
|
107
107
|
gap: 6px;
|
|
108
108
|
}
|
|
109
|
-
.c-tree[data-v-
|
|
109
|
+
.c-tree[data-v-3a2f095a] .c-tree-node-loading {
|
|
110
110
|
width: 12px;
|
|
111
111
|
height: 12px;
|
|
112
112
|
border: 2px solid currentColor;
|
|
113
113
|
border-right-color: transparent;
|
|
114
114
|
border-radius: 50%;
|
|
115
|
-
animation: c-tree-spin-
|
|
115
|
+
animation: c-tree-spin-3a2f095a 0.8s linear infinite;
|
|
116
116
|
}
|
|
117
|
-
.c-tree[data-v-
|
|
118
|
-
.c-tree[data-v-
|
|
119
|
-
.c-tree[data-v-
|
|
117
|
+
.c-tree[data-v-3a2f095a] .n-tree-node:hover .tree-actions,
|
|
118
|
+
.c-tree[data-v-3a2f095a] .n-tree-node:focus-within .tree-actions,
|
|
119
|
+
.c-tree[data-v-3a2f095a] .tree-actions:focus-within {
|
|
120
120
|
opacity: 1;
|
|
121
121
|
}
|
|
122
122
|
@media (hover: none), (max-width: 640px) {
|
|
123
|
-
.c-tree[data-v-
|
|
123
|
+
.c-tree[data-v-3a2f095a] .tree-actions {
|
|
124
124
|
opacity: 1;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
@media (prefers-reduced-motion: reduce) {
|
|
128
|
-
.c-tree[data-v-
|
|
128
|
+
.c-tree[data-v-3a2f095a] .tree-actions {
|
|
129
129
|
transition: none;
|
|
130
130
|
}
|
|
131
|
-
.c-tree[data-v-
|
|
131
|
+
.c-tree[data-v-3a2f095a] .c-tree-node-loading {
|
|
132
132
|
animation: none;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
@keyframes c-tree-spin-
|
|
135
|
+
@keyframes c-tree-spin-3a2f095a {
|
|
136
136
|
to {
|
|
137
137
|
transform: rotate(360deg);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/* layer: default */
|
|
142
|
-
.filter[data-v-
|
|
142
|
+
.filter[data-v-3a2f095a]{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
|
|
143
143
|
|
|
144
|
-
.c-data-picker[data-v-
|
|
144
|
+
.c-data-picker[data-v-e5219897] {
|
|
145
145
|
width: 100%;
|
|
146
146
|
min-width: 0;
|
|
147
147
|
}
|
|
148
|
-
.c-data-picker__inline[data-v-
|
|
148
|
+
.c-data-picker__inline[data-v-e5219897] {
|
|
149
149
|
margin-top: 8px;
|
|
150
150
|
min-width: 0;
|
|
151
151
|
}
|
|
152
|
-
.c-data-picker__trigger[data-v-
|
|
152
|
+
.c-data-picker__trigger[data-v-e5219897] {
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
gap: 8px;
|
|
156
156
|
}
|
|
157
|
-
.c-data-picker[data-v-
|
|
157
|
+
.c-data-picker[data-v-e5219897] .c-data-picker__open {
|
|
158
158
|
flex: 1;
|
|
159
159
|
min-width: 0;
|
|
160
160
|
}
|
|
161
|
-
.c-data-picker[data-v-
|
|
161
|
+
.c-data-picker[data-v-e5219897] .c-data-picker__open .n-button__content {
|
|
162
162
|
display: flex;
|
|
163
163
|
gap: 12px;
|
|
164
164
|
width: 100%;
|
|
165
165
|
justify-content: space-between;
|
|
166
166
|
overflow: hidden;
|
|
167
167
|
}
|
|
168
|
-
.c-data-picker[data-v-
|
|
168
|
+
.c-data-picker[data-v-e5219897] .c-data-picker__open span:first-child {
|
|
169
169
|
overflow: hidden;
|
|
170
170
|
text-overflow: ellipsis;
|
|
171
171
|
white-space: nowrap;
|
|
172
172
|
}
|
|
173
|
-
.c-data-picker[data-v-
|
|
173
|
+
.c-data-picker[data-v-e5219897] .c-data-picker__placeholder {
|
|
174
174
|
opacity: 0.55;
|
|
175
175
|
}
|
|
176
|
-
.c-data-picker__label-error[data-v-
|
|
176
|
+
.c-data-picker__label-error[data-v-e5219897] {
|
|
177
177
|
font-size: 12px;
|
|
178
|
-
color: var(--
|
|
178
|
+
color: var(--c-text-2, var(--c-theme-text-2, #525252));
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/* layer: icons */
|
|
182
|
-
.i-mdi\:close[data-v-
|
|
183
|
-
.i-mdi\:magnify[data-v-
|
|
184
|
-
.i-mdi\:refresh[data-v-
|
|
182
|
+
.i-mdi\:close[data-v-e5219897]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
|
|
183
|
+
.i-mdi\:magnify[data-v-e5219897]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
|
|
184
|
+
.i-mdi\:refresh[data-v-e5219897]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.65 6.35A7.96 7.96 0 0 0 12 4a8 8 0 0 0-8 8a8 8 0 0 0 8 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18a6 6 0 0 1-6-6a6 6 0 0 1 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
|
|
185
185
|
/* layer: default */
|
|
186
|
-
.visible[data-v-
|
|
187
|
-
.\!inline[data-v-
|
|
188
|
-
.inline[data-v-
|
|
189
|
-
.h-4[data-v-
|
|
190
|
-
.w-4[data-v-
|
|
191
|
-
.shrink-0[data-v-
|
|
192
|
-
.table[data-v-
|
|
186
|
+
.visible[data-v-e5219897]{visibility:visible;}
|
|
187
|
+
.\!inline[data-v-e5219897]{display:inline !important;}
|
|
188
|
+
.inline[data-v-e5219897]{display:inline;}
|
|
189
|
+
.h-4[data-v-e5219897]{height:1rem;}
|
|
190
|
+
.w-4[data-v-e5219897]{width:1rem;}
|
|
191
|
+
.shrink-0[data-v-e5219897]{flex-shrink:0;}
|
|
192
|
+
.table[data-v-e5219897]{display:table;}
|
|
193
193
|
|
|
194
|
-
.c-data-picker__layout[data-v-
|
|
194
|
+
.c-data-picker__layout[data-v-9fd4f225] {
|
|
195
195
|
display: flex;
|
|
196
196
|
gap: 12px;
|
|
197
197
|
align-items: stretch;
|
|
198
198
|
}
|
|
199
|
-
.c-data-picker__navigation[data-v-
|
|
199
|
+
.c-data-picker__navigation[data-v-9fd4f225] {
|
|
200
200
|
flex: 0 0 180px;
|
|
201
201
|
max-height: 420px;
|
|
202
202
|
overflow: auto;
|
|
203
203
|
}
|
|
204
|
-
.c-data-
|
|
204
|
+
.c-data-picker__selected-panel[data-v-9fd4f225] {
|
|
205
|
+
flex: 0 0 224px;
|
|
206
|
+
min-width: 0;
|
|
207
|
+
max-height: 420px;
|
|
208
|
+
overflow: auto;
|
|
209
|
+
border-inline-start: 1px solid var(--c-border, var(--c-theme-border, #e0e0e6));
|
|
210
|
+
padding-inline-start: 12px;
|
|
211
|
+
}
|
|
212
|
+
.c-data-picker__navigation-title[data-v-9fd4f225] {
|
|
205
213
|
margin-block: 4px 8px;
|
|
206
214
|
font-weight: 600;
|
|
207
215
|
}
|
|
208
|
-
.c-data-picker__favorite[data-v-
|
|
216
|
+
.c-data-picker__favorite[data-v-9fd4f225] {
|
|
209
217
|
display: inline-flex;
|
|
210
218
|
gap: 2px;
|
|
211
219
|
}
|
|
212
|
-
.c-data-picker__main[data-v-
|
|
220
|
+
.c-data-picker__main[data-v-9fd4f225] {
|
|
213
221
|
min-width: 0;
|
|
214
222
|
flex: 1;
|
|
215
223
|
}
|
|
216
|
-
.c-data-picker__footer[data-v-
|
|
224
|
+
.c-data-picker__footer[data-v-9fd4f225] {
|
|
217
225
|
margin-top: 12px;
|
|
218
226
|
}
|
|
219
|
-
.c-data-picker__history > div[data-v-
|
|
227
|
+
.c-data-picker__history > div[data-v-9fd4f225] {
|
|
220
228
|
display: flex;
|
|
221
229
|
flex-wrap: wrap;
|
|
222
230
|
align-items: center;
|
|
223
231
|
gap: 6px;
|
|
224
232
|
margin-block: 8px;
|
|
225
233
|
}
|
|
226
|
-
.c-data-picker__content[data-v-
|
|
234
|
+
.c-data-picker__content[data-v-9fd4f225]:focus {
|
|
227
235
|
outline: none;
|
|
228
236
|
}
|
|
229
|
-
.c-data-picker__search[data-v-
|
|
237
|
+
.c-data-picker__search[data-v-9fd4f225], .c-data-picker__actions[data-v-9fd4f225], .c-data-picker__selection[data-v-9fd4f225] {
|
|
230
238
|
display: flex;
|
|
231
239
|
align-items: center;
|
|
232
240
|
gap: 8px;
|
|
233
241
|
}
|
|
234
|
-
.c-data-picker__search[data-v-
|
|
242
|
+
.c-data-picker__search[data-v-9fd4f225] {
|
|
235
243
|
margin-bottom: 12px;
|
|
236
244
|
}
|
|
237
|
-
.c-data-picker__result-bar[data-v-
|
|
245
|
+
.c-data-picker__result-bar[data-v-9fd4f225] {
|
|
238
246
|
display: flex;
|
|
239
247
|
align-items: center;
|
|
240
248
|
justify-content: space-between;
|
|
@@ -242,54 +250,61 @@ to {
|
|
|
242
250
|
gap: 6px 12px;
|
|
243
251
|
margin-block-start: 10px;
|
|
244
252
|
}
|
|
245
|
-
.c-data-picker__pagination[data-v-
|
|
253
|
+
.c-data-picker__pagination[data-v-9fd4f225] {
|
|
246
254
|
margin-inline-start: auto;
|
|
247
255
|
max-width: 100%;
|
|
248
256
|
}
|
|
249
|
-
.c-data-picker__pagination[data-v-
|
|
257
|
+
.c-data-picker__pagination[data-v-9fd4f225] .n-pagination {
|
|
250
258
|
flex-wrap: wrap;
|
|
251
259
|
justify-content: flex-end;
|
|
252
260
|
}
|
|
253
|
-
.c-data-picker__selection[data-v-
|
|
261
|
+
.c-data-picker__selection[data-v-9fd4f225] {
|
|
254
262
|
flex-wrap: wrap;
|
|
255
263
|
min-width: 0;
|
|
256
264
|
max-width: 100%;
|
|
257
265
|
font-size: 12px;
|
|
258
266
|
}
|
|
259
|
-
.c-data-picker__selection[data-v-
|
|
267
|
+
.c-data-picker__selection[data-v-9fd4f225] .n-tag {
|
|
260
268
|
max-width: 100%;
|
|
261
269
|
}
|
|
262
|
-
.c-data-picker__selection[data-v-
|
|
270
|
+
.c-data-picker__selection[data-v-9fd4f225] .n-tag__content {
|
|
263
271
|
overflow: hidden;
|
|
264
272
|
text-overflow: ellipsis;
|
|
265
273
|
white-space: nowrap;
|
|
266
274
|
}
|
|
267
|
-
.c-data-picker__actions[data-v-
|
|
275
|
+
.c-data-picker__actions[data-v-9fd4f225] {
|
|
268
276
|
justify-content: flex-end;
|
|
269
277
|
}
|
|
270
|
-
.c-data-picker__error[data-v-
|
|
278
|
+
.c-data-picker__error[data-v-9fd4f225] {
|
|
271
279
|
font-size: 12px;
|
|
272
|
-
color: var(--
|
|
280
|
+
color: var(--c-text-2, var(--c-theme-text-2, #525252));
|
|
273
281
|
}
|
|
274
282
|
@media (max-width: 640px) {
|
|
275
|
-
.c-data-picker__layout[data-v-
|
|
283
|
+
.c-data-picker__layout[data-v-9fd4f225] {
|
|
276
284
|
flex-direction: column;
|
|
277
285
|
}
|
|
278
|
-
.c-data-
|
|
286
|
+
.c-data-picker__selected-panel[data-v-9fd4f225] {
|
|
287
|
+
flex-basis: auto;
|
|
288
|
+
max-height: 240px;
|
|
289
|
+
border-inline-start: 0;
|
|
290
|
+
border-top: 1px solid var(--c-border, var(--c-theme-border, #e0e0e6));
|
|
291
|
+
padding: 12px 0 0;
|
|
292
|
+
}
|
|
293
|
+
.c-data-picker__navigation[data-v-9fd4f225] {
|
|
279
294
|
flex-basis: auto;
|
|
280
295
|
max-height: 160px;
|
|
281
296
|
}
|
|
282
297
|
}
|
|
283
298
|
|
|
284
299
|
/* layer: icons */
|
|
285
|
-
.i-mdi\:check[data-v-
|
|
286
|
-
.i-mdi\:close[data-v-
|
|
287
|
-
.i-mdi\:magnify[data-v-
|
|
288
|
-
.i-mdi\:refresh[data-v-
|
|
300
|
+
.i-mdi\:check[data-v-9fd4f225]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
|
|
301
|
+
.i-mdi\:close[data-v-9fd4f225]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
|
|
302
|
+
.i-mdi\:magnify[data-v-9fd4f225]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
|
|
303
|
+
.i-mdi\:refresh[data-v-9fd4f225]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.65 6.35A7.96 7.96 0 0 0 12 4a8 8 0 0 0-8 8a8 8 0 0 0 8 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18a6 6 0 0 1-6-6a6 6 0 0 1 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
|
|
289
304
|
/* layer: default */
|
|
290
|
-
.visible[data-v-
|
|
291
|
-
.inline[data-v-
|
|
292
|
-
.hidden[data-v-
|
|
293
|
-
.h-4[data-v-
|
|
294
|
-
.w-4[data-v-
|
|
295
|
-
.table[data-v-
|
|
305
|
+
.visible[data-v-9fd4f225]{visibility:visible;}
|
|
306
|
+
.inline[data-v-9fd4f225]{display:inline;}
|
|
307
|
+
.hidden[data-v-9fd4f225]{display:none;}
|
|
308
|
+
.h-4[data-v-9fd4f225]{height:1rem;}
|
|
309
|
+
.w-4[data-v-9fd4f225]{width:1rem;}
|
|
310
|
+
.table[data-v-9fd4f225]{display:table;}
|
package/dist/C_DataPicker.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as DataPickerNavigationContext, c as DataPickerRequest, d as DataPickerSource, f as DataPickerSourceInput, i as DataPickerNavigation, l as DataPickerSelectedItem, n as DataPickerExpose, o as DataPickerNavigationNode, p as DataPickerValue, r as DataPickerHistoryOptions, s as DataPickerProps, t as DataPickerEmits, u as DataPickerSelectionContext } from "./types4.cjs";
|
|
2
|
+
import { n as _default, t as createDataPickerField } from "./formField.cjs";
|
|
3
|
+
export { _default as C_DataPicker, type DataPickerEmits, type DataPickerExpose, type DataPickerHistoryOptions, type DataPickerNavigation, type DataPickerNavigationContext, type DataPickerNavigationNode, type DataPickerProps, type DataPickerRequest, type DataPickerSelectedItem, type DataPickerSelectionContext, type DataPickerSource, type DataPickerSourceInput, type DataPickerValue, createDataPickerField };
|
package/dist/C_DataPicker.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./types.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import { a as
|
|
2
|
+
import "./context.js";
|
|
3
|
+
import "./component-config.js";
|
|
4
|
+
import { a as DataPickerNavigationContext, c as DataPickerRequest, d as DataPickerSource, f as DataPickerSourceInput, i as DataPickerNavigation, l as DataPickerSelectedItem, n as DataPickerExpose, o as DataPickerNavigationNode, p as DataPickerValue, r as DataPickerHistoryOptions, s as DataPickerProps, t as DataPickerEmits, u as DataPickerSelectionContext } from "./types3.js";
|
|
5
|
+
import { n as _default, t as createDataPickerField } from "./formField.js";
|
|
5
6
|
import "./useFormRenderer.js";
|
|
6
|
-
export { _default as C_DataPicker, type DataPickerEmits, type DataPickerHistoryOptions, type DataPickerNavigation, type DataPickerNavigationNode, type DataPickerProps, type DataPickerRequest, type DataPickerSource, type DataPickerSourceInput, type DataPickerValue, createDataPickerField };
|
|
7
|
+
export { _default as C_DataPicker, type DataPickerEmits, type DataPickerExpose, type DataPickerHistoryOptions, type DataPickerNavigation, type DataPickerNavigationContext, type DataPickerNavigationNode, type DataPickerProps, type DataPickerRequest, type DataPickerSelectedItem, type DataPickerSelectionContext, type DataPickerSource, type DataPickerSourceInput, type DataPickerValue, createDataPickerField };
|
package/dist/C_DataPicker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"./C_DataPicker2.js";import{t}from"./formField.js";export{e as C_DataPicker,t as createDataPickerField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./useDataResource.cjs`),n=require(`./data2.cjs`),r=require(`./useComponentLocale.cjs`),i=require(`./useComponentTheme.cjs`),a=require(`./export-helper.cjs`),o=require(`./useComponentDensity.cjs`),s=require(`./useFormConfig.cjs`),c=require(`./storage.cjs`),l=require(`./helpers.cjs`);let u=require(`vue`),d=require(`naive-ui`);function f(e){return typeof e==`string`||typeof e==`number`&&Number.isFinite(e)}function p(e,t){let n=typeof e.rowKey==`function`?e.rowKey(t):t[e.rowKey];if(!f(n))throw TypeError(`[C_DataPicker] rowKey 必须为字符串或有限数值`);return n}function m(e,t){return e.value===void 0?p(e,t):e.value(t)}function h(e,t){if(e.value===void 0)return;let n=new Set;for(let r of t){let t=e.value(r);if(!f(t)||n.has(t))throw TypeError(`[C_DataPicker] 业务值必须为唯一的字符串或有限数值`);n.add(t)}}function g(e,t,n){if(!Array.isArray(t.rows)||!Number.isSafeInteger(t.total)||t.total<0)throw TypeError(`[C_DataPicker] request 必须返回 rows 数组和非负安全整数 total`);if(t.rows.length>n||t.rows.length>t.total)throw TypeError(`[C_DataPicker] rows 超过请求的分页或 total 范围`);if(l.l(t.rows,t=>p(e,t)).length)throw TypeError(`[C_DataPicker] rowKey 不得缺失或重复`);h(e,t.rows)}function _(e){let t=(0,u.shallowRef)([]),n=(0,u.shallowRef)([]),r=(0,u.computed)(()=>{let t=e.history?.maxItems;return t!==void 0&&Number.isFinite(t)?Math.max(1,Math.min(50,Math.trunc(t))):10}),i=(0,u.computed)(()=>{let t=e.history;if(!(!e.source.resolve||!t?.storageKey||!t.scope))try{return`c-data-picker:${JSON.stringify([t.storageKey,t.scope,e.fixedFilters??null,...e.scope===void 0?[]:[e.scope]])}`}catch{return}}),a=e=>{if(!Array.isArray(e))return[];let t=new Map;for(let n of e)if(n&&typeof n==`object`&&f(n.value)&&typeof n.label==`string`&&!t.has(n.value)&&t.set(n.value,{value:n.value,label:n.label.slice(0,200)}),t.size===r.value)break;return[...t.values()]};(0,u.watch)([i,r,()=>e.history?.favorites],()=>{let r=i.value?c.t(i.value):null,o=r&&typeof r==`object`?r:{};t.value=a(Reflect.get(o,`recent`)),n.value=e.history?.favorites?a(Reflect.get(o,`favorites`)):[]},{immediate:!0});let o=()=>{i.value&&c.i(i.value,{recent:t.value,favorites:n.value})};return{enabled:(0,u.computed)(()=>!!i.value),recent:t,favorites:n,remember:e=>{i.value&&(t.value=a([...e,...t.value]),o())},toggleFavorite:t=>{if(!i.value||!e.history?.favorites)return;let r=n.value.filter(e=>e.value!==t.value);n.value=r.length===n.value.length?a([t,...r]):r,o()},addFavorites:t=>{if(!i.value||!e.history?.favorites)return;let r=a([...n.value,...t]);r.length===n.value.length&&r.every((e,t)=>e.value===n.value[t].value&&e.label===n.value[t].label)||(n.value=r,o())},canAddFavorite:(0,u.computed)(()=>n.value.length<r.value)}}function v(e){let t=(0,u.shallowRef)(!1),n=(0,u.shallowRef)(null),r,i=()=>{r?.abort(),r=void 0,t.value=!1,n.value=null};return{pending:t,error:n,resolve:async a=>{i();let{source:o}=e;if(!o.resolve)return;let s=new AbortController;r=s,t.value=!0;let c=!1;try{let t=[...e.scope===void 0?await o.resolve(a,s.signal):await o.resolve(a,s.signal,{scope:e.scope})];if(s.signal.aborted||r!==s)return;c=!0,g(o,{rows:t,total:t.length},t.length);let n=new Map(t.map(e=>[m(o,e),e]));if(!a.every(t=>{let r=n.get(t);return r!==void 0&&e.rowCheckable?.(r)!==!1&&!e.disabledReason?.(r)}))throw Error(`Selection is missing or no longer eligible`);return n}catch(e){s.signal.aborted||(n.value={kind:c?`invalid`:`failed`,cause:e});return}finally{r===s&&(r=void 0,t.value=!1)}},abort:i}}function y(e){return e==null?[]:[...new Set(Array.isArray(e)?e:[e])]}function b(e,r,i,a,o=()=>!1){let s=(0,u.shallowRef)(!1),c=(0,u.shallowRef)({page:1,search:``,revision:0}),l=(0,u.computed)({get:()=>c.value.page,set:e=>{c.value={...c.value,page:e}}}),d=(0,u.shallowRef)(``),f=(0,u.computed)(()=>c.value.search),h=(0,u.computed)(()=>{let{debounce:t,minChars:n}=e.source;return{debounce:t!==void 0&&Number.isSafeInteger(t)&&t>=0?t:250,minChars:n!==void 0&&Number.isSafeInteger(n)&&n>=0?n:0}}),b=(0,u.shallowRef)(0),x=(0,u.shallowRef)(0),S=(0,u.shallowRef)(new Map),C=(0,u.shallowRef)(new Map),w=(0,u.computed)(()=>{let t=y(e.modelValue);return e.multiple?t:t.slice(0,1)}),T=(0,u.computed)(()=>Number.isFinite(e.pageSize)&&e.pageSize>0?Math.max(1,Math.trunc(e.pageSize)):20),E=(0,u.computed)(()=>e.disabled||e.readonly),D=(0,u.computed)(()=>{if(!e.multiple)return 1;let t=e.maxSelection;return t!==void 0&&Number.isFinite(t)&&t>=1?Math.trunc(t):1/0}),O=_(e),k=v(e),{pending:A,error:ee}=k,j=n.t(e.initialValues),M=n.t(e.fixedFilters),N=!1,P,F=t=>m(e.source,t),I=t=>e.rowCheckable?.(t)!==!1&&!e.disabledReason?.(t),L=t=>!e.multiple||S.value.has(t)||S.value.size<D.value,R=t=>e.fixedFilters===void 0?n.t(t):{...n.t(t),...n.t(e.fixedFilters)},z=()=>{Q(),C.value=new Map,b.value++};(0,u.watch)(()=>[e.source,e.source.request,e.source.resolve,e.source.rowKey,e.source.value],z,{flush:`sync`}),(0,u.watch)(()=>e.fixedFilters,e=>{n.a(M,e)||(M=n.t(e),z())},{deep:!0,flush:`sync`}),(0,u.watch)(()=>e.history?.scope,z,{flush:`sync`}),(0,u.watch)(()=>e.scope,z,{flush:`sync`}),(0,u.watch)(()=>e.initialValues,e=>{n.a(j,e)||(j=n.t(e),Q())},{deep:!0,flush:`sync`});let B=t.t({key:()=>s.value&&(!o()||d.value===f.value&&d.value.length>=h.value.minChars)?JSON.stringify([b.value,x.value,l.value,T.value,c.value.revision]):null,load:async({signal:t})=>{let{source:n}=e,{filters:r}=c.value,i=R(r),a={page:l.value,pageSize:T.value,search:f.value,signal:t,...e.scope===void 0?{}:{scope:e.scope},...i===void 0?{}:{filters:i}},o=await n.request(a);return g(n,o,a.pageSize),{rows:[...o.rows],total:o.total}},isEmpty:e=>e.rows.length===0}),V=t.t({key:()=>e.source.resolve&&w.value.length?JSON.stringify([b.value,w.value]):null,load:async({signal:t})=>{let{source:n}=e,r=[...w.value],i=e.scope===void 0?await n.resolve(r,t):await n.resolve(r,t,{scope:e.scope});if(!Array.isArray(i))throw TypeError(`[C_DataPicker] resolve 必须返回行数组`);let a=new Set(r),o=new Map;for(let e of i){let t=m(n,e);a.has(t)&&o.set(t,e)}return o},isEmpty:e=>e.size===0}),H=[],U=(0,u.computed)(()=>B.data.value?.rows??H),W=(0,u.shallowRef)(null);(0,u.watch)(B.data,e=>{if(!s.value||!e)return;W.value=e.total;let t=Math.max(1,Math.ceil(e.total/T.value));l.value>t&&(l.value=t)});function G(e){let t=C.value.get(e);return t?.fromPage?t.row:V.data.value?.get(e)??t?.row}let te=(0,u.computed)(()=>w.value.map(t=>{let n=G(t);return n?e.source.label(n):String(t)}).join(`、`)),K=(0,u.computed)(()=>S.value.size),q=(0,u.computed)(()=>!E.value&&!A.value&&K.value<=D.value&&(!e.requireSelection||K.value>0)&&(!(e.rowCheckable||e.disabledReason)||[...S.value.keys()].every(e=>{let t=$(e);return t!==void 0&&I(t)}))),J=(0,u.computed)(()=>{let t=[];for(let n of S.value.keys()){let r=$(n);t.push({value:n,label:r?e.source.label(r):String(n),row:r})}return t}),Y=(0,u.computed)(()=>J.value.slice(0,30)),X=(0,u.computed)(()=>[{type:`selection`,multiple:e.multiple},...e.columns.filter(e=>e.type!==`selection`)]),Z=(0,u.computed)(()=>({density:a(),locale:e.locale,toolbar:{show:!1},pagination:!1,selection:{enabled:!0,maxSelection:Number.isFinite(D.value)?D.value:void 0,rowCheckable:e=>!A.value&&I(e)&&L(F(e))},virtualScroll:{enabled:!0,maxHeight:360}}));function Q(){s.value=!1,W.value=null,S.value=new Map,P=void 0,k.abort()}(0,u.onDeactivated)(Q),(0,u.onScopeDispose)(Q);function ne(){E.value||s.value||(S.value=new Map(w.value.map(e=>[e,void 0])),c.value={page:1,search:``,filters:R(j),revision:0},d.value=``,x.value++,s.value=!0)}function $(e){return S.value.get(e)??G(e)}let re=(0,u.computed)(()=>!!(e.source.resolve&&(e.rowCheckable||e.disabledReason||e.revalidateOnConfirm||O.enabled.value||e.presentation===`popover`)));async function ie(){if(!q.value||!s.value)return!1;let e=[...S.value.keys()],t=x.value,n=re.value,r=n?await k.resolve(e):void 0;return n&&!r||!s.value||x.value!==t||!q.value?!1:(ae(e,r),!0)}function ae(t,n){let{source:i}=e,a=new Map,o=[];for(let e of t){let t=n?.get(e)??$(e);t&&(a.set(e,{row:t,fromPage:S.value.get(e)!==void 0||C.value.get(e)?.fromPage===!0}),o.push(t))}C.value=a,O.remember(o.map(e=>({value:F(e),label:i.label(e)}))),Q(),r(`update:modelValue`,e.multiple?t:t[0]??null),r(`select`,o)}function oe(){E.value||!e.clearable||(r(`update:modelValue`,e.multiple?[]:null),r(`select`,[]))}function se(){if(P?.rows===U.value&&P.table===i.value)return P.table}function ce(e,t){if(N||A.value||!s.value||!se())return;let n=le(t);S.value=n;let r=U.value.filter(e=>n.has(F(e)));(t.length!==r.length||t.some(e=>!n.has(F(e))))&&(0,u.nextTick)(fe)}function le(t){let n=new Set(U.value.map(F)),r=new Set(t.map(F)),i=new Map(e.multiple?[...S.value].filter(([e])=>!n.has(e)||r.has(e)):[]),a=new Map(U.value.map(t=>[p(e.source,t),t])),o=e.multiple?t:t.slice(-1);for(let t of o){let n=a.get(p(e.source,t));if(!n||!I(n))continue;let r=F(n);!i.has(r)&&i.size>=D.value||i.set(r,n)}return i}function ue(t){if(A.value)return;let n=new Map(S.value);if(!n.delete(t))return;S.value=n;let r=se();if(!r)return;let i=U.value.find(e=>F(e)===t);if(i){N=!0;try{r.unselectRow(p(e.source,i))}finally{N=!1}}}function de(e,t){if(!s.value||A.value||E.value||!Number.isInteger(t))return;let n=[...S.value],r=n.findIndex(([t])=>t===e),i=r+t;if(r<0||i<0||i>=n.length||r===i)return;let[a]=n.splice(r,1);n.splice(i,0,a),S.value=new Map(n)}function fe(){let t=i.value;if(!(!s.value||!t)){N=!0;try{P={table:t,rows:U.value};let n;t.clearSelection();for(let r of U.value){let i=F(r);S.value.has(i)&&(S.value.get(i)!==r&&(n??=new Map(S.value)).set(i,r),I(r)&&t.selectRow(e.source.value===void 0?i:p(e.source,r)))}n&&(S.value=n)}finally{N=!1}}}function pe(){ye(d.value,c.value.filters)}function me(e){ye(``,R(e))}function he(t){let{navigation:n}=e;if(!n)return;let r={...c.value.filters};t===void 0?Reflect.deleteProperty(r,n.field):Reflect.set(r,n.field,t),ye(d.value,R(r))}async function ge(t){if(E.value||!s.value||!e.source.resolve||A.value)return;let n=(await k.resolve([t]))?.get(t);!n||!s.value||L(t)&&(S.value=e.multiple?new Map(S.value).set(t,n):new Map([[t,n]]),fe())}function _e(){if(E.value||!q.value)return;let t=[];for(let n of S.value.keys()){let r=$(n);r&&I(r)&&t.push({value:n,label:e.source.label(r)})}O.addFavorites(t)}function ve(e){if(E.value||A.value)return;let t=O.favorites.value.find(t=>t.value===e);t&&O.toggleFavorite(t)}function ye(e,t){if(!s.value||E.value||A.value)return;let r=c.value,i=r.search===e&&n.a(r.filters,t);if(r.page===1&&i){B.reload();return}i||(W.value=null),c.value={page:1,search:e,filters:n.t(t),revision:r.revision+1}}return(0,u.watch)([U,i],()=>{(0,u.nextTick)(fe)},{flush:`post`}),(0,u.watch)(w,(e,t)=>{if(e.length===t.length&&e.every((e,n)=>Object.is(e,t[n]))||(Q(),!C.value.size))return;let n=new Set(e);C.value=new Map([...C.value].filter(([e])=>n.has(e)))},{flush:`sync`}),(0,u.watch)([()=>e.multiple,()=>e.disabled,()=>e.readonly],Q,{flush:`sync`}),{opened:s,reset:z,open:ne,close:Q,confirm:ie,clear:oe,page:l,pageSize:T,searchDraft:d,search:f,searchOptions:h,query:pe,submitFilters:me,list:B,labels:V,rows:U,total:W,display:te,selected:Y,selectedItems:J,move:de,selectedCount:K,canConfirm:q,columns:X,tableConfig:Z,selectPage:ce,remove:ue,confirming:A,selectionError:ee,history:O,chooseHistory:ge,navigate:he,favoriteSelection:_e,removeFavorite:ve,canFavorite:(0,u.computed)(()=>q.value&&O.canAddFavorite.value&&[...S.value.keys()].some(e=>$(e)!==void 0&&!O.favorites.value.some(t=>t.value===e))),filters:(0,u.computed)(()=>n.t(c.value.filters)),setTable:e=>{i.value=e}}}const x=[`id`,`role`,`aria-label`],S=[`tabindex`],C={class:`c-data-picker__layout`},w={key:0,class:`c-data-picker__navigation`},T={key:0,class:`c-data-picker__navigation-title`},E={class:`c-data-picker__main`},D={key:1,class:`c-data-picker__error`,role:`alert`},O={key:1,class:`c-data-picker__selected-panel`},k={key:0,role:`alert`,class:`c-data-picker__error`},A={key:1,class:`c-data-picker__history`},ee={key:0},j={key:1},M={class:`c-data-picker__result-bar`},N={class:`c-data-picker__selection`,"aria-live":`polite`},P={key:0},F={key:1},I=[`aria-label`],L={key:0,class:`c-data-picker__footer`},R={class:`c-data-picker__actions`},z=(0,u.defineComponent)({__name:`PickerPanel`,props:{state:{},options:{},densityValue:{},inline:{type:Boolean},popup:{type:Boolean},panelId:{}},emits:[`confirm`,`dismiss`],setup(t,{expose:n,emit:i}){let a=t,o=i,{t:s}=r.t(()=>a.options.locale),c=(0,u.computed)(()=>e.t(a.densityValue)),{opened:l,page:f,pageSize:p,searchDraft:m,query:h,submitFilters:g,list:_,rows:v,total:y,selected:b,selectedItems:z,move:B,selectedCount:V,canConfirm:H,columns:U,tableConfig:W,selectPage:G,remove:te,confirming:K,selectionError:q,history:J,chooseHistory:Y,navigate:X,filters:Z}=a.state,Q=(0,u.computed)(()=>a.options.source),ne=(0,u.computed)(()=>a.options.initialValues),$=(0,u.shallowRef)(null),re=(0,u.defineAsyncComponent)({loader:()=>Promise.resolve().then(()=>require(`./C_Table2.cjs`)).then(e=>e.n),loadingComponent:()=>(0,u.h)(`div`,{role:`status`},s(`table.loading`)),errorComponent:()=>(0,u.h)(`div`,{role:`alert`},s(`picker.loadFailed`))}),ie=(0,u.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./C_Tree2.cjs`)).then(e=>e.n)),ae=e=>{let t=typeof e==`object`&&!!e&&[`clearSelection`,`selectRow`,`unselectRow`].every(t=>typeof Reflect.get(e,t)==`function`);a.state.setTable(t?e:null)};function oe(e){!a.inline||e.isComposing||(e.preventDefault(),e.stopPropagation(),h())}let se=()=>a.options.navigation?.render?.({value:ce.value[0],select:X,disabled:K.value||!!a.options.disabled||!!a.options.readonly,density:a.densityValue}),ce=(0,u.computed)(()=>{let e=a.options.navigation?.field,t=e&&Z.value?Reflect.get(Z.value,e):void 0;return typeof t==`string`||typeof t==`number`?[t]:[]});return n({focus:()=>{($.value?.querySelector(`input:not([type="hidden"])`)??$.value)?.focus()}}),(e,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`c-data-picker__panel`,id:t.popup?t.panelId:void 0,role:t.popup?`dialog`:void 0,"aria-label":t.options.title??(0,u.unref)(s)(`picker.title`)},[(0,u.createElementVNode)(`div`,{ref_key:`panelContent`,ref:$,class:`c-data-picker__content`,tabindex:t.inline?-1:void 0},[(0,u.createElementVNode)(`div`,C,[t.options.navigation||e.$slots.navigation?((0,u.openBlock)(),(0,u.createElementBlock)(`aside`,w,[(0,u.renderSlot)(e.$slots,`navigation`,{filters:(0,u.unref)(Z),submit:(0,u.unref)(g),loading:(0,u.unref)(_).loading.value},()=>[t.options.navigation?.render?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(se),{key:0})):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[t.options.navigation?.title?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,T,(0,u.toDisplayString)(t.options.navigation.title),1)):(0,u.createCommentVNode)(`v-if`,!0),(0,u.createVNode)((0,u.unref)(d.NButton),{text:``,disabled:(0,u.unref)(K)||t.options.disabled||t.options.readonly,onClick:n[0]||=e=>(0,u.unref)(X)(void 0)},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(s)(`picker.allCategories`)),1)]),_:1},8,[`disabled`]),t.options.navigation?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(ie),{key:1,density:t.densityValue,data:[...t.options.navigation.options],"key-field":`key`,"label-field":`label`,"selected-keys":ce.value,addable:!1,refreshable:!1,disabled:(0,u.unref)(K)||t.options.disabled||t.options.readonly,onNodeSelect:n[1]||=(e,t)=>(0,u.unref)(X)(t[0])},null,8,[`density`,`data`,`selected-keys`,`disabled`])):(0,u.createCommentVNode)(`v-if`,!0)],64))],!0)])):(0,u.createCommentVNode)(`v-if`,!0),(0,u.createElementVNode)(`div`,E,[(0,u.unref)(l)?(0,u.renderSlot)(e.$slots,`query`,{initialValues:ne.value,submit:(0,u.unref)(g),loading:(0,u.unref)(_).loading.value},()=>[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(t.inline?`div`:`form`),{class:`c-data-picker__search`,onSubmit:(0,u.withModifiers)((0,u.unref)(h),[`stop`,`prevent`])},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(d.NInput),{value:(0,u.unref)(m),"onUpdate:value":n[2]||=e=>(0,u.isRef)(m)?m.value=e:null,size:c.value.size,placeholder:(0,u.unref)(s)(`picker.searchPlaceholder`),"input-props":{"aria-label":(0,u.unref)(s)(`picker.searchLabel`)},onKeydown:(0,u.withKeys)(oe,[`enter`]),clearable:``},null,8,[`value`,`size`,`placeholder`,`input-props`]),(0,u.createVNode)((0,u.unref)(d.NButton),{"attr-type":t.inline?`button`:`submit`,size:c.value.size,loading:(0,u.unref)(_).loading.value,type:`primary`,onClick:n[3]||=e=>t.inline&&(0,u.unref)(h)()},{icon:(0,u.withCtx)(()=>[...n[7]||=[(0,u.createElementVNode)(`span`,{class:`i-mdi:magnify w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:(0,u.withCtx)(()=>[(0,u.createTextVNode)(` `+(0,u.toDisplayString)((0,u.unref)(s)(`picker.search`)),1)]),_:1},8,[`attr-type`,`size`,`loading`])]),_:1},40,[`onSubmit`]))],!0,0):(0,u.createCommentVNode)(`v-if`,!0),(0,u.unref)(_).status.value===`error`?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,D,[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(s)(`picker.loadFailed`))+` `,1),(0,u.createVNode)((0,u.unref)(d.NButton),{size:c.value.size,onClick:(0,u.unref)(_).reload},{icon:(0,u.withCtx)(()=>[...n[8]||=[(0,u.createElementVNode)(`span`,{class:`i-mdi:refresh w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:(0,u.withCtx)(()=>[(0,u.createTextVNode)(` `+(0,u.toDisplayString)((0,u.unref)(s)(`common.retry`)),1)]),_:1},8,[`size`,`onClick`])])):(0,u.unref)(l)?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(re),{key:2,ref:ae,data:(0,u.unref)(v),columns:(0,u.unref)(U),"row-key":Q.value.rowKey,loading:(0,u.unref)(_).loading.value,config:(0,u.unref)(W),onSelectionChange:(0,u.unref)(G)},null,8,[`data`,`columns`,`row-key`,`loading`,`config`,`onSelectionChange`])):(0,u.createCommentVNode)(`v-if`,!0)]),e.$slots.selected?((0,u.openBlock)(),(0,u.createElementBlock)(`aside`,O,[(0,u.renderSlot)(e.$slots,`selected`,{items:(0,u.unref)(z),remove:(0,u.unref)(te),move:(0,u.unref)(B),disabled:(0,u.unref)(K)},void 0,!0)])):(0,u.createCommentVNode)(`v-if`,!0)]),(0,u.unref)(q)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,k,(0,u.toDisplayString)((0,u.unref)(s)((0,u.unref)(q).kind===`invalid`?`picker.selectionInvalid`:`picker.selectionFailed`)),1)):(0,u.createCommentVNode)(`v-if`,!0),(0,u.unref)(J).enabled.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,A,[(0,u.unref)(J).recent.value.length?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,ee,[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)((0,u.unref)(s)(`picker.recent`)),1),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)((0,u.unref)(J).recent.value,e=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(d.NButton),{key:typeof e.value+`:`+e.value,size:`tiny`,disabled:(0,u.unref)(K),onClick:t=>(0,u.unref)(Y)(e.value)},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.label),1)]),_:2},1032,[`disabled`,`onClick`]))),128))])):(0,u.createCommentVNode)(`v-if`,!0),t.options.history?.favorites&&(0,u.unref)(J).favorites.value.length?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,j,[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)((0,u.unref)(s)(`picker.favorites`)),1),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)((0,u.unref)(J).favorites.value,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`span`,{key:typeof e.value+`:`+e.value,class:`c-data-picker__favorite`},[(0,u.createVNode)((0,u.unref)(d.NButton),{size:`tiny`,disabled:(0,u.unref)(K),onClick:t=>(0,u.unref)(Y)(e.value)},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.label),1)]),_:2},1032,[`disabled`,`onClick`]),(0,u.createVNode)((0,u.unref)(d.NButton),{size:`tiny`,disabled:(0,u.unref)(K),"aria-label":`${(0,u.unref)(s)(`picker.removeFavorite`)} ${e.label}`,onClick:n=>t.state.removeFavorite(e.value)},{default:(0,u.withCtx)(()=>[...n[9]||=[(0,u.createTextVNode)(`×`,-1)]]),_:1},8,[`disabled`,`aria-label`,`onClick`])]))),128))])):(0,u.createCommentVNode)(`v-if`,!0),t.options.history?.favorites?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(d.NButton),{key:2,text:``,disabled:!t.state.canFavorite.value,onClick:t.state.favoriteSelection},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(s)(`picker.favorite`)),1)]),_:1},8,[`disabled`,`onClick`])):(0,u.createCommentVNode)(`v-if`,!0)])):(0,u.createCommentVNode)(`v-if`,!0),(0,u.createElementVNode)(`div`,M,[(0,u.createElementVNode)(`div`,N,[(0,u.unref)(y)===null?(0,u.createCommentVNode)(`v-if`,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`span`,P,(0,u.toDisplayString)((0,u.unref)(s)(`picker.total`,{count:(0,u.unref)(y)})),1)),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)((0,u.unref)(s)(`picker.selected`,{count:(0,u.unref)(V)})),1),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.$slots.selected?[]:(0,u.unref)(b),e=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(d.NTag),{key:`${typeof e.value}:${e.value}`,size:`small`,closable:``,title:e.label,onClose:t=>(0,u.unref)(te)(e.value)},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.label),1)]),_:2},1032,[`title`,`onClose`]))),128)),!e.$slots.selected&&(0,u.unref)(V)>30?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,F,(0,u.toDisplayString)((0,u.unref)(s)(`picker.moreSelected`,{count:(0,u.unref)(V)-30})),1)):(0,u.createCommentVNode)(`v-if`,!0)]),(0,u.unref)(y)!==null&&(0,u.unref)(y)>(0,u.unref)(p)?((0,u.openBlock)(),(0,u.createElementBlock)(`nav`,{key:0,class:`c-data-picker__pagination`,"aria-label":(0,u.unref)(s)(`picker.pagination`)},[(0,u.createVNode)((0,u.unref)(d.NPagination),{page:(0,u.unref)(f),"onUpdate:page":n[4]||=e=>(0,u.isRef)(f)?f.value=e:null,"page-size":(0,u.unref)(p),"item-count":(0,u.unref)(y),"page-slot":5,size:c.value.size},null,8,[`page`,`page-size`,`item-count`,`size`])],8,I)):(0,u.createCommentVNode)(`v-if`,!0)])],8,S),t.options.showActions===!1?(0,u.createCommentVNode)(`v-if`,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,L,[(0,u.createElementVNode)(`div`,R,[(0,u.createVNode)((0,u.unref)(d.NButton),{size:c.value.size,onClick:n[5]||=e=>o(`dismiss`)},{icon:(0,u.withCtx)(()=>[...n[10]||=[(0,u.createElementVNode)(`span`,{class:`i-mdi:close w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:(0,u.withCtx)(()=>[(0,u.createTextVNode)(` `+(0,u.toDisplayString)((0,u.unref)(s)(`common.cancel`)),1)]),_:1},8,[`size`]),(0,u.createVNode)((0,u.unref)(d.NButton),{type:`primary`,size:c.value.size,disabled:!(0,u.unref)(H),loading:(0,u.unref)(K),onClick:n[6]||=e=>o(`confirm`)},{icon:(0,u.withCtx)(()=>[...n[11]||=[(0,u.createElementVNode)(`span`,{class:`i-mdi:check w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:(0,u.withCtx)(()=>[(0,u.createTextVNode)(` `+(0,u.toDisplayString)((0,u.unref)(s)(`common.confirm`)),1)]),_:1},8,[`size`,`disabled`,`loading`])])]))],8,x))}});var B=a.t(z,[[`__scopeId`,`data-v-9fd4f225`]]);const V={key:1,class:`c-data-picker__label-error`,role:`status`},H=(0,u.defineComponent)({name:`C_DataPicker`,__name:`index`,props:{source:{},columns:{},modelValue:{},multiple:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},title:{},placeholder:{},density:{},locale:{},pageSize:{default:20},scope:{},showActions:{type:Boolean,default:!0},showTrigger:{type:Boolean,default:!0},revalidateOnConfirm:{type:Boolean},disabledReason:{},requireSelection:{type:Boolean},presentation:{},initialValues:{},fixedFilters:{},rowCheckable:{},maxSelection:{},navigation:{},history:{}},emits:[`update:modelValue`,`select`,`cancel`],setup(t,{expose:n,emit:a}){let c=t,l=a,f=(0,u.useSlots)(),p=(0,u.shallowRef)(null),m=(0,u.shallowRef)(null),h=(0,u.shallowRef)(null),g=(0,u.useId)(),_=(0,u.computed)(()=>c.presentation===`inline`),v=(0,u.computed)(()=>c.presentation===`popover`),y=(0,u.computed)(()=>c.disabled||c.readonly),x=(0,u.shallowRef)(!1),S=(0,u.computed)(()=>v.value&&!x.value?d.NPopover:_.value?d.NCard:d.NModal),C=s.o(),w=i.n(),T=o.t(()=>c.density),E=(0,u.computed)(()=>T.value??C.density??`compact`),D=(0,u.computed)(()=>e.t(E.value)),{t:O}=r.t(()=>c.locale),k=b(c,l,p,()=>E.value,()=>v.value&&!x.value),{opened:A,close:ee,confirm:j,clear:M,searchDraft:N,query:P,labels:F,display:I}=k,L=null,R=!1,z;(0,u.watch)(A,e=>{e||(clearTimeout(z),z=void 0,x.value=!1)}),(0,u.onScopeDispose)(()=>clearTimeout(z));function H(e){A.value||y.value||(L=e?.currentTarget??(typeof document>`u`?null:document.activeElement),k.open(),_.value&&(0,u.nextTick)(()=>m.value?.focus()))}function U(){let e=A.value;clearTimeout(z),z=void 0,ee(),e&&l(`cancel`),x.value=!1;let t=L;L=null,(0,u.nextTick)(()=>{let e=t?.isConnected?t:h.value?.querySelector(`input, button`);R=!0,e?.focus(),queueMicrotask(()=>{R=!1})})}async function W(){let e=await j();return e&&U(),e}function G(e){y.value||(H(),N.value=e,clearTimeout(z),z=setTimeout(()=>{z=void 0,A.value&&e.length>=k.searchOptions.value.minChars&&P()},k.searchOptions.value.debounce))}function te(){y.value||(clearTimeout(z),z=void 0,H(),N.value!==k.search.value&&P(),x.value=!0)}function K(){if(R){R=!1;return}H()}function q(e){e.isComposing||(e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),U()):e.key===`ArrowDown`?(e.preventDefault(),H(),(0,u.nextTick)(()=>m.value?.focus())):e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),clearTimeout(z),z=void 0,H(),P()))}let J=()=>(0,u.h)(d.NInput,{value:A.value?N.value:I.value,placeholder:c.placeholder??O(`picker.quickSearch`),size:D.value.size,disabled:c.disabled,readonly:c.readonly,inputProps:{"aria-label":c.title??O(`picker.title`),"aria-expanded":A.value,"aria-controls":A.value?g:void 0},"onUpdate:value":G,onFocus:K,onClick:()=>H(),onKeydown:q}),Y=()=>(0,u.h)(d.NButton,{class:`c-data-picker__open`,size:D.value.size,disabled:c.disabled,"aria-readonly":c.readonly,"aria-expanded":_.value?A.value:void 0,"aria-controls":_.value&&A.value?g:void 0,title:I.value,onClick:e=>_.value&&A.value?U():H(e)},()=>[(0,u.h)(`span`,{class:I.value?void 0:`c-data-picker__placeholder`},I.value||(c.placeholder??O(`picker.placeholder`))),(0,u.h)(`span`,{class:`i-mdi:magnify w-4 h-4 shrink-0`,"aria-hidden":`true`})]),X=()=>{if(f.trigger)return f.trigger({open:H,disabled:!!y.value,opened:A.value,display:I.value});let e=[v.value?J():Y()];return v.value&&e.push((0,u.h)(d.NButton,{class:`c-data-picker__more`,size:D.value.size,disabled:y.value,onClick:te},()=>O(`picker.more`))),c.clearable&&c.modelValue!=null&&(!Array.isArray(c.modelValue)||c.modelValue.length)&&e.push((0,u.h)(d.NButton,{class:`c-data-picker__clear`,size:D.value.size,disabled:y.value,"aria-label":O(`picker.clear`),onClick:M},()=>(0,u.h)(`span`,{class:`i-mdi:close w-4 h-4`,"aria-hidden":`true`}))),(0,u.h)(`div`,{class:`c-data-picker__trigger`,ref:h},e)};function Z(e){e.key!==`Escape`||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),U())}let Q=(0,u.computed)(()=>{let e=c.title??O(`picker.title`);return v.value&&!x.value?{show:A.value,trigger:`manual`,placement:`bottom-start`,showArrow:!1,width:640,style:{...w.value,maxWidth:`calc(100vw - 24px)`},onClickoutside:e=>{e.target instanceof Node&&h.value?.contains(e.target)||U()},onKeydown:Z}:_.value?{id:g,class:`c-data-picker__inline`,role:`region`,"aria-label":e,title:c.showActions===!1&&c.showTrigger===!1?void 0:e,size:`small`,style:w.value,onKeydown:Z}:{show:A.value,preset:`card`,class:`c-data-picker__modal`,title:e,"aria-label":e,style:{...w.value,width:`min(${f.selected?1160:960}px, calc(100vw - 24px))`},"onUpdate:show":e=>{e||U()}}});return n({open:H,close:U,reset:k.reset,confirm:W}),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`c-data-picker`,style:(0,u.normalizeStyle)((0,u.unref)(w))},[c.showTrigger!==!1&&(!v.value||x.value)?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(X),{key:0})):(0,u.createCommentVNode)(`v-if`,!0),(0,u.unref)(F).status.value===`error`?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,V,[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(O)(`picker.labelFailed`))+` `,1),(0,u.createVNode)((0,u.unref)(d.NButton),{text:``,size:`tiny`,onClick:(0,u.unref)(F).reload},{icon:(0,u.withCtx)(()=>[...t[0]||=[(0,u.createElementVNode)(`span`,{class:`i-mdi:refresh w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:(0,u.withCtx)(()=>[(0,u.createTextVNode)(` `+(0,u.toDisplayString)((0,u.unref)(O)(`common.retry`)),1)]),_:1},8,[`onClick`])])):(0,u.createCommentVNode)(`v-if`,!0),!_.value||(0,u.unref)(A)?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(S.value),(0,u.normalizeProps)((0,u.mergeProps)({key:2},Q.value)),(0,u.createSlots)({default:(0,u.withCtx)(()=>[(0,u.unref)(A)?((0,u.openBlock)(),(0,u.createBlock)(B,{key:0,ref_key:`panelRef`,ref:m,state:(0,u.unref)(k),options:c,"density-value":E.value,inline:_.value||v.value&&!x.value,popup:v.value&&!x.value,"panel-id":(0,u.unref)(g),onConfirm:W,onDismiss:U,onKeydown:Z},(0,u.createSlots)({_:2},[e.$slots.query?{name:`query`,fn:(0,u.withCtx)(t=>[(0,u.renderSlot)(e.$slots,`query`,(0,u.normalizeProps)((0,u.guardReactiveProps)(t)),void 0,!0)]),key:`0`}:void 0,e.$slots.navigation?{name:`navigation`,fn:(0,u.withCtx)(t=>[(0,u.renderSlot)(e.$slots,`navigation`,(0,u.normalizeProps)((0,u.guardReactiveProps)(t)),void 0,!0)]),key:`1`}:void 0,e.$slots.selected?{name:`selected`,fn:(0,u.withCtx)(t=>[(0,u.renderSlot)(e.$slots,`selected`,(0,u.normalizeProps)((0,u.guardReactiveProps)(t)),void 0,!0)]),key:`2`}:void 0]),1032,[`state`,`density-value`,`inline`,`popup`,`panel-id`])):(0,u.createCommentVNode)(`v-if`,!0)]),_:2},[v.value&&!x.value?{name:`trigger`,fn:(0,u.withCtx)(()=>[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(X)))]),key:`0`}:void 0]),1040)):(0,u.createCommentVNode)(`v-if`,!0)],4))}});var U=a.t(H,[[`__scopeId`,`data-v-e5219897`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return U}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./density.js";import{t}from"./useDataResource.js";import{a as n,t as r}from"./data2.js";import{t as i}from"./useComponentLocale.js";import{n as a}from"./useComponentTheme.js";import{t as o}from"./export-helper.js";import{t as s}from"./useComponentDensity.js";import{o as c}from"./useFormConfig.js";import{i as l,t as u}from"./storage.js";import{l as d}from"./helpers.js";import{Fragment as f,computed as p,createBlock as m,createCommentVNode as h,createElementBlock as g,createElementVNode as _,createSlots as v,createTextVNode as y,createVNode as b,defineAsyncComponent as x,defineComponent as S,guardReactiveProps as C,h as w,isRef as T,mergeProps as E,nextTick as ee,normalizeProps as D,normalizeStyle as te,onDeactivated as O,onScopeDispose as ne,openBlock as k,renderList as A,renderSlot as j,resolveDynamicComponent as M,shallowRef as N,toDisplayString as P,unref as F,useId as I,useSlots as re,watch as L,withCtx as R,withKeys as z,withModifiers as B}from"vue";import{NButton as V,NCard as ie,NInput as ae,NModal as oe,NPagination as H,NPopover as se,NTag as ce}from"naive-ui";function U(e){return typeof e==`string`||typeof e==`number`&&Number.isFinite(e)}function W(e,t){let n=typeof e.rowKey==`function`?e.rowKey(t):t[e.rowKey];if(!U(n))throw TypeError(`[C_DataPicker] rowKey 必须为字符串或有限数值`);return n}function G(e,t){return e.value===void 0?W(e,t):e.value(t)}function K(e,t){if(e.value===void 0)return;let n=new Set;for(let r of t){let t=e.value(r);if(!U(t)||n.has(t))throw TypeError(`[C_DataPicker] 业务值必须为唯一的字符串或有限数值`);n.add(t)}}function q(e,t,n){if(!Array.isArray(t.rows)||!Number.isSafeInteger(t.total)||t.total<0)throw TypeError(`[C_DataPicker] request 必须返回 rows 数组和非负安全整数 total`);if(t.rows.length>n||t.rows.length>t.total)throw TypeError(`[C_DataPicker] rows 超过请求的分页或 total 范围`);if(d(t.rows,t=>W(e,t)).length)throw TypeError(`[C_DataPicker] rowKey 不得缺失或重复`);K(e,t.rows)}function J(e){let t=N([]),n=N([]),r=p(()=>{let t=e.history?.maxItems;return t!==void 0&&Number.isFinite(t)?Math.max(1,Math.min(50,Math.trunc(t))):10}),i=p(()=>{let t=e.history;if(!(!e.source.resolve||!t?.storageKey||!t.scope))try{return`c-data-picker:${JSON.stringify([t.storageKey,t.scope,e.fixedFilters??null,...e.scope===void 0?[]:[e.scope]])}`}catch{return}}),a=e=>{if(!Array.isArray(e))return[];let t=new Map;for(let n of e)if(n&&typeof n==`object`&&U(n.value)&&typeof n.label==`string`&&!t.has(n.value)&&t.set(n.value,{value:n.value,label:n.label.slice(0,200)}),t.size===r.value)break;return[...t.values()]};L([i,r,()=>e.history?.favorites],()=>{let r=i.value?u(i.value):null,o=r&&typeof r==`object`?r:{};t.value=a(Reflect.get(o,`recent`)),n.value=e.history?.favorites?a(Reflect.get(o,`favorites`)):[]},{immediate:!0});let o=()=>{i.value&&l(i.value,{recent:t.value,favorites:n.value})};return{enabled:p(()=>!!i.value),recent:t,favorites:n,remember:e=>{i.value&&(t.value=a([...e,...t.value]),o())},toggleFavorite:t=>{if(!i.value||!e.history?.favorites)return;let r=n.value.filter(e=>e.value!==t.value);n.value=r.length===n.value.length?a([t,...r]):r,o()},addFavorites:t=>{if(!i.value||!e.history?.favorites)return;let r=a([...n.value,...t]);r.length===n.value.length&&r.every((e,t)=>e.value===n.value[t].value&&e.label===n.value[t].label)||(n.value=r,o())},canAddFavorite:p(()=>n.value.length<r.value)}}function le(e){let t=N(!1),n=N(null),r,i=()=>{r?.abort(),r=void 0,t.value=!1,n.value=null};return{pending:t,error:n,resolve:async a=>{i();let{source:o}=e;if(!o.resolve)return;let s=new AbortController;r=s,t.value=!0;let c=!1;try{let t=[...e.scope===void 0?await o.resolve(a,s.signal):await o.resolve(a,s.signal,{scope:e.scope})];if(s.signal.aborted||r!==s)return;c=!0,q(o,{rows:t,total:t.length},t.length);let n=new Map(t.map(e=>[G(o,e),e]));if(!a.every(t=>{let r=n.get(t);return r!==void 0&&e.rowCheckable?.(r)!==!1&&!e.disabledReason?.(r)}))throw Error(`Selection is missing or no longer eligible`);return n}catch(e){s.signal.aborted||(n.value={kind:c?`invalid`:`failed`,cause:e});return}finally{r===s&&(r=void 0,t.value=!1)}},abort:i}}function ue(e){return e==null?[]:[...new Set(Array.isArray(e)?e:[e])]}function Y(e,i,a,o,s=()=>!1){let c=N(!1),l=N({page:1,search:``,revision:0}),u=p({get:()=>l.value.page,set:e=>{l.value={...l.value,page:e}}}),d=N(``),f=p(()=>l.value.search),m=p(()=>{let{debounce:t,minChars:n}=e.source;return{debounce:t!==void 0&&Number.isSafeInteger(t)&&t>=0?t:250,minChars:n!==void 0&&Number.isSafeInteger(n)&&n>=0?n:0}}),h=N(0),g=N(0),_=N(new Map),v=N(new Map),y=p(()=>{let t=ue(e.modelValue);return e.multiple?t:t.slice(0,1)}),b=p(()=>Number.isFinite(e.pageSize)&&e.pageSize>0?Math.max(1,Math.trunc(e.pageSize)):20),x=p(()=>e.disabled||e.readonly),S=p(()=>{if(!e.multiple)return 1;let t=e.maxSelection;return t!==void 0&&Number.isFinite(t)&&t>=1?Math.trunc(t):1/0}),C=J(e),w=le(e),{pending:T,error:E}=w,D=r(e.initialValues),te=r(e.fixedFilters),k=!1,A,j=t=>G(e.source,t),M=t=>e.rowCheckable?.(t)!==!1&&!e.disabledReason?.(t),P=t=>!e.multiple||_.value.has(t)||_.value.size<S.value,F=t=>e.fixedFilters===void 0?r(t):{...r(t),...r(e.fixedFilters)},I=()=>{Y(),v.value=new Map,h.value++};L(()=>[e.source,e.source.request,e.source.resolve,e.source.rowKey,e.source.value],I,{flush:`sync`}),L(()=>e.fixedFilters,e=>{n(te,e)||(te=r(e),I())},{deep:!0,flush:`sync`}),L(()=>e.history?.scope,I,{flush:`sync`}),L(()=>e.scope,I,{flush:`sync`}),L(()=>e.initialValues,e=>{n(D,e)||(D=r(e),Y())},{deep:!0,flush:`sync`});let re=t({key:()=>c.value&&(!s()||d.value===f.value&&d.value.length>=m.value.minChars)?JSON.stringify([h.value,g.value,u.value,b.value,l.value.revision]):null,load:async({signal:t})=>{let{source:n}=e,{filters:r}=l.value,i=F(r),a={page:u.value,pageSize:b.value,search:f.value,signal:t,...e.scope===void 0?{}:{scope:e.scope},...i===void 0?{}:{filters:i}},o=await n.request(a);return q(n,o,a.pageSize),{rows:[...o.rows],total:o.total}},isEmpty:e=>e.rows.length===0}),R=t({key:()=>e.source.resolve&&y.value.length?JSON.stringify([h.value,y.value]):null,load:async({signal:t})=>{let{source:n}=e,r=[...y.value],i=e.scope===void 0?await n.resolve(r,t):await n.resolve(r,t,{scope:e.scope});if(!Array.isArray(i))throw TypeError(`[C_DataPicker] resolve 必须返回行数组`);let a=new Set(r),o=new Map;for(let e of i){let t=G(n,e);a.has(t)&&o.set(t,e)}return o},isEmpty:e=>e.size===0}),z=[],B=p(()=>re.data.value?.rows??z),V=N(null);L(re.data,e=>{if(!c.value||!e)return;V.value=e.total;let t=Math.max(1,Math.ceil(e.total/b.value));u.value>t&&(u.value=t)});function ie(e){let t=v.value.get(e);return t?.fromPage?t.row:R.data.value?.get(e)??t?.row}let ae=p(()=>y.value.map(t=>{let n=ie(t);return n?e.source.label(n):String(t)}).join(`、`)),oe=p(()=>_.value.size),H=p(()=>!x.value&&!T.value&&oe.value<=S.value&&(!e.requireSelection||oe.value>0)&&(!(e.rowCheckable||e.disabledReason)||[..._.value.keys()].every(e=>{let t=X(e);return t!==void 0&&M(t)}))),se=p(()=>{let t=[];for(let n of _.value.keys()){let r=X(n);t.push({value:n,label:r?e.source.label(r):String(n),row:r})}return t}),ce=p(()=>se.value.slice(0,30)),U=p(()=>[{type:`selection`,multiple:e.multiple},...e.columns.filter(e=>e.type!==`selection`)]),K=p(()=>({density:o(),locale:e.locale,toolbar:{show:!1},pagination:!1,selection:{enabled:!0,maxSelection:Number.isFinite(S.value)?S.value:void 0,rowCheckable:e=>!T.value&&M(e)&&P(j(e))},virtualScroll:{enabled:!0,maxHeight:360}}));function Y(){c.value=!1,V.value=null,_.value=new Map,A=void 0,w.abort()}O(Y),ne(Y);function de(){x.value||c.value||(_.value=new Map(y.value.map(e=>[e,void 0])),l.value={page:1,search:``,filters:F(D),revision:0},d.value=``,g.value++,c.value=!0)}function X(e){return _.value.get(e)??ie(e)}let fe=p(()=>!!(e.source.resolve&&(e.rowCheckable||e.disabledReason||e.revalidateOnConfirm||C.enabled.value||e.presentation===`popover`)));async function pe(){if(!H.value||!c.value)return!1;let e=[..._.value.keys()],t=g.value,n=fe.value,r=n?await w.resolve(e):void 0;return n&&!r||!c.value||g.value!==t||!H.value?!1:(me(e,r),!0)}function me(t,n){let{source:r}=e,a=new Map,o=[];for(let e of t){let t=n?.get(e)??X(e);t&&(a.set(e,{row:t,fromPage:_.value.get(e)!==void 0||v.value.get(e)?.fromPage===!0}),o.push(t))}v.value=a,C.remember(o.map(e=>({value:j(e),label:r.label(e)}))),Y(),i(`update:modelValue`,e.multiple?t:t[0]??null),i(`select`,o)}function he(){x.value||!e.clearable||(i(`update:modelValue`,e.multiple?[]:null),i(`select`,[]))}function ge(){if(A?.rows===B.value&&A.table===a.value)return A.table}function Z(e,t){if(k||T.value||!c.value||!ge())return;let n=Q(t);_.value=n;let r=B.value.filter(e=>n.has(j(e)));(t.length!==r.length||t.some(e=>!n.has(j(e))))&&ee(ve)}function Q(t){let n=new Set(B.value.map(j)),r=new Set(t.map(j)),i=new Map(e.multiple?[..._.value].filter(([e])=>!n.has(e)||r.has(e)):[]),a=new Map(B.value.map(t=>[W(e.source,t),t])),o=e.multiple?t:t.slice(-1);for(let t of o){let n=a.get(W(e.source,t));if(!n||!M(n))continue;let r=j(n);!i.has(r)&&i.size>=S.value||i.set(r,n)}return i}function $(t){if(T.value)return;let n=new Map(_.value);if(!n.delete(t))return;_.value=n;let r=ge();if(!r)return;let i=B.value.find(e=>j(e)===t);if(i){k=!0;try{r.unselectRow(W(e.source,i))}finally{k=!1}}}function _e(e,t){if(!c.value||T.value||x.value||!Number.isInteger(t))return;let n=[..._.value],r=n.findIndex(([t])=>t===e),i=r+t;if(r<0||i<0||i>=n.length||r===i)return;let[a]=n.splice(r,1);n.splice(i,0,a),_.value=new Map(n)}function ve(){let t=a.value;if(!(!c.value||!t)){k=!0;try{A={table:t,rows:B.value};let n;t.clearSelection();for(let r of B.value){let i=j(r);_.value.has(i)&&(_.value.get(i)!==r&&(n??=new Map(_.value)).set(i,r),M(r)&&t.selectRow(e.source.value===void 0?i:W(e.source,r)))}n&&(_.value=n)}finally{k=!1}}}function ye(){Te(d.value,l.value.filters)}function be(e){Te(``,F(e))}function xe(t){let{navigation:n}=e;if(!n)return;let r={...l.value.filters};t===void 0?Reflect.deleteProperty(r,n.field):Reflect.set(r,n.field,t),Te(d.value,F(r))}async function Se(t){if(x.value||!c.value||!e.source.resolve||T.value)return;let n=(await w.resolve([t]))?.get(t);!n||!c.value||P(t)&&(_.value=e.multiple?new Map(_.value).set(t,n):new Map([[t,n]]),ve())}function Ce(){if(x.value||!H.value)return;let t=[];for(let n of _.value.keys()){let r=X(n);r&&M(r)&&t.push({value:n,label:e.source.label(r)})}C.addFavorites(t)}function we(e){if(x.value||T.value)return;let t=C.favorites.value.find(t=>t.value===e);t&&C.toggleFavorite(t)}function Te(e,t){if(!c.value||x.value||T.value)return;let i=l.value,a=i.search===e&&n(i.filters,t);if(i.page===1&&a){re.reload();return}a||(V.value=null),l.value={page:1,search:e,filters:r(t),revision:i.revision+1}}return L([B,a],()=>{ee(ve)},{flush:`post`}),L(y,(e,t)=>{if(e.length===t.length&&e.every((e,n)=>Object.is(e,t[n]))||(Y(),!v.value.size))return;let n=new Set(e);v.value=new Map([...v.value].filter(([e])=>n.has(e)))},{flush:`sync`}),L([()=>e.multiple,()=>e.disabled,()=>e.readonly],Y,{flush:`sync`}),{opened:c,reset:I,open:de,close:Y,confirm:pe,clear:he,page:u,pageSize:b,searchDraft:d,search:f,searchOptions:m,query:ye,submitFilters:be,list:re,labels:R,rows:B,total:V,display:ae,selected:ce,selectedItems:se,move:_e,selectedCount:oe,canConfirm:H,columns:U,tableConfig:K,selectPage:Z,remove:$,confirming:T,selectionError:E,history:C,chooseHistory:Se,navigate:xe,favoriteSelection:Ce,removeFavorite:we,canFavorite:p(()=>H.value&&C.canAddFavorite.value&&[..._.value.keys()].some(e=>X(e)!==void 0&&!C.favorites.value.some(t=>t.value===e))),filters:p(()=>r(l.value.filters)),setTable:e=>{a.value=e}}}const de=[`id`,`role`,`aria-label`],X=[`tabindex`],fe={class:`c-data-picker__layout`},pe={key:0,class:`c-data-picker__navigation`},me={key:0,class:`c-data-picker__navigation-title`},he={class:`c-data-picker__main`},ge={key:1,class:`c-data-picker__error`,role:`alert`},Z={key:1,class:`c-data-picker__selected-panel`},Q={key:0,role:`alert`,class:`c-data-picker__error`},$={key:1,class:`c-data-picker__history`},_e={key:0},ve={key:1},ye={class:`c-data-picker__result-bar`},be={class:`c-data-picker__selection`,"aria-live":`polite`},xe={key:0},Se={key:1},Ce=[`aria-label`],we={key:0,class:`c-data-picker__footer`},Te={class:`c-data-picker__actions`};var Ee=o(S({__name:`PickerPanel`,props:{state:{},options:{},densityValue:{},inline:{type:Boolean},popup:{type:Boolean},panelId:{}},emits:[`confirm`,`dismiss`],setup(t,{expose:n,emit:r}){let a=t,o=r,{t:s}=i(()=>a.options.locale),c=p(()=>e(a.densityValue)),{opened:l,page:u,pageSize:d,searchDraft:v,query:S,submitFilters:C,list:E,rows:ee,total:D,selected:te,selectedItems:O,move:ne,selectedCount:I,canConfirm:re,columns:L,tableConfig:ie,selectPage:oe,remove:se,confirming:U,selectionError:W,history:G,chooseHistory:K,navigate:q,filters:J}=a.state,le=p(()=>a.options.source),ue=p(()=>a.options.initialValues),Y=N(null),Ee=x({loader:()=>import(`./C_Table2.js`).then(e=>e.n),loadingComponent:()=>w(`div`,{role:`status`},s(`table.loading`)),errorComponent:()=>w(`div`,{role:`alert`},s(`picker.loadFailed`))}),De=x(()=>import(`./C_Tree2.js`).then(e=>e.n)),Oe=e=>{let t=typeof e==`object`&&!!e&&[`clearSelection`,`selectRow`,`unselectRow`].every(t=>typeof Reflect.get(e,t)==`function`);a.state.setTable(t?e:null)};function ke(e){!a.inline||e.isComposing||(e.preventDefault(),e.stopPropagation(),S())}let Ae=()=>a.options.navigation?.render?.({value:je.value[0],select:q,disabled:U.value||!!a.options.disabled||!!a.options.readonly,density:a.densityValue}),je=p(()=>{let e=a.options.navigation?.field,t=e&&J.value?Reflect.get(J.value,e):void 0;return typeof t==`string`||typeof t==`number`?[t]:[]});return n({focus:()=>{(Y.value?.querySelector(`input:not([type="hidden"])`)??Y.value)?.focus()}}),(e,n)=>(k(),g(`div`,{class:`c-data-picker__panel`,id:t.popup?t.panelId:void 0,role:t.popup?`dialog`:void 0,"aria-label":t.options.title??F(s)(`picker.title`)},[_(`div`,{ref_key:`panelContent`,ref:Y,class:`c-data-picker__content`,tabindex:t.inline?-1:void 0},[_(`div`,fe,[t.options.navigation||e.$slots.navigation?(k(),g(`aside`,pe,[j(e.$slots,`navigation`,{filters:F(J),submit:F(C),loading:F(E).loading.value},()=>[t.options.navigation?.render?(k(),m(M(Ae),{key:0})):(k(),g(f,{key:1},[t.options.navigation?.title?(k(),g(`div`,me,P(t.options.navigation.title),1)):h(`v-if`,!0),b(F(V),{text:``,disabled:F(U)||t.options.disabled||t.options.readonly,onClick:n[0]||=e=>F(q)(void 0)},{default:R(()=>[y(P(F(s)(`picker.allCategories`)),1)]),_:1},8,[`disabled`]),t.options.navigation?(k(),m(F(De),{key:1,density:t.densityValue,data:[...t.options.navigation.options],"key-field":`key`,"label-field":`label`,"selected-keys":je.value,addable:!1,refreshable:!1,disabled:F(U)||t.options.disabled||t.options.readonly,onNodeSelect:n[1]||=(e,t)=>F(q)(t[0])},null,8,[`density`,`data`,`selected-keys`,`disabled`])):h(`v-if`,!0)],64))],!0)])):h(`v-if`,!0),_(`div`,he,[F(l)?j(e.$slots,`query`,{initialValues:ue.value,submit:F(C),loading:F(E).loading.value},()=>[(k(),m(M(t.inline?`div`:`form`),{class:`c-data-picker__search`,onSubmit:B(F(S),[`stop`,`prevent`])},{default:R(()=>[b(F(ae),{value:F(v),"onUpdate:value":n[2]||=e=>T(v)?v.value=e:null,size:c.value.size,placeholder:F(s)(`picker.searchPlaceholder`),"input-props":{"aria-label":F(s)(`picker.searchLabel`)},onKeydown:z(ke,[`enter`]),clearable:``},null,8,[`value`,`size`,`placeholder`,`input-props`]),b(F(V),{"attr-type":t.inline?`button`:`submit`,size:c.value.size,loading:F(E).loading.value,type:`primary`,onClick:n[3]||=e=>t.inline&&F(S)()},{icon:R(()=>[...n[7]||=[_(`span`,{class:`i-mdi:magnify w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:R(()=>[y(` `+P(F(s)(`picker.search`)),1)]),_:1},8,[`attr-type`,`size`,`loading`])]),_:1},40,[`onSubmit`]))],!0,0):h(`v-if`,!0),F(E).status.value===`error`?(k(),g(`div`,ge,[y(P(F(s)(`picker.loadFailed`))+` `,1),b(F(V),{size:c.value.size,onClick:F(E).reload},{icon:R(()=>[...n[8]||=[_(`span`,{class:`i-mdi:refresh w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:R(()=>[y(` `+P(F(s)(`common.retry`)),1)]),_:1},8,[`size`,`onClick`])])):F(l)?(k(),m(F(Ee),{key:2,ref:Oe,data:F(ee),columns:F(L),"row-key":le.value.rowKey,loading:F(E).loading.value,config:F(ie),onSelectionChange:F(oe)},null,8,[`data`,`columns`,`row-key`,`loading`,`config`,`onSelectionChange`])):h(`v-if`,!0)]),e.$slots.selected?(k(),g(`aside`,Z,[j(e.$slots,`selected`,{items:F(O),remove:F(se),move:F(ne),disabled:F(U)},void 0,!0)])):h(`v-if`,!0)]),F(W)?(k(),g(`div`,Q,P(F(s)(F(W).kind===`invalid`?`picker.selectionInvalid`:`picker.selectionFailed`)),1)):h(`v-if`,!0),F(G).enabled.value?(k(),g(`div`,$,[F(G).recent.value.length?(k(),g(`div`,_e,[_(`span`,null,P(F(s)(`picker.recent`)),1),(k(!0),g(f,null,A(F(G).recent.value,e=>(k(),m(F(V),{key:typeof e.value+`:`+e.value,size:`tiny`,disabled:F(U),onClick:t=>F(K)(e.value)},{default:R(()=>[y(P(e.label),1)]),_:2},1032,[`disabled`,`onClick`]))),128))])):h(`v-if`,!0),t.options.history?.favorites&&F(G).favorites.value.length?(k(),g(`div`,ve,[_(`span`,null,P(F(s)(`picker.favorites`)),1),(k(!0),g(f,null,A(F(G).favorites.value,e=>(k(),g(`span`,{key:typeof e.value+`:`+e.value,class:`c-data-picker__favorite`},[b(F(V),{size:`tiny`,disabled:F(U),onClick:t=>F(K)(e.value)},{default:R(()=>[y(P(e.label),1)]),_:2},1032,[`disabled`,`onClick`]),b(F(V),{size:`tiny`,disabled:F(U),"aria-label":`${F(s)(`picker.removeFavorite`)} ${e.label}`,onClick:n=>t.state.removeFavorite(e.value)},{default:R(()=>[...n[9]||=[y(`×`,-1)]]),_:1},8,[`disabled`,`aria-label`,`onClick`])]))),128))])):h(`v-if`,!0),t.options.history?.favorites?(k(),m(F(V),{key:2,text:``,disabled:!t.state.canFavorite.value,onClick:t.state.favoriteSelection},{default:R(()=>[y(P(F(s)(`picker.favorite`)),1)]),_:1},8,[`disabled`,`onClick`])):h(`v-if`,!0)])):h(`v-if`,!0),_(`div`,ye,[_(`div`,be,[F(D)===null?h(`v-if`,!0):(k(),g(`span`,xe,P(F(s)(`picker.total`,{count:F(D)})),1)),_(`span`,null,P(F(s)(`picker.selected`,{count:F(I)})),1),(k(!0),g(f,null,A(e.$slots.selected?[]:F(te),e=>(k(),m(F(ce),{key:`${typeof e.value}:${e.value}`,size:`small`,closable:``,title:e.label,onClose:t=>F(se)(e.value)},{default:R(()=>[y(P(e.label),1)]),_:2},1032,[`title`,`onClose`]))),128)),!e.$slots.selected&&F(I)>30?(k(),g(`span`,Se,P(F(s)(`picker.moreSelected`,{count:F(I)-30})),1)):h(`v-if`,!0)]),F(D)!==null&&F(D)>F(d)?(k(),g(`nav`,{key:0,class:`c-data-picker__pagination`,"aria-label":F(s)(`picker.pagination`)},[b(F(H),{page:F(u),"onUpdate:page":n[4]||=e=>T(u)?u.value=e:null,"page-size":F(d),"item-count":F(D),"page-slot":5,size:c.value.size},null,8,[`page`,`page-size`,`item-count`,`size`])],8,Ce)):h(`v-if`,!0)])],8,X),t.options.showActions===!1?h(`v-if`,!0):(k(),g(`div`,we,[_(`div`,Te,[b(F(V),{size:c.value.size,onClick:n[5]||=e=>o(`dismiss`)},{icon:R(()=>[...n[10]||=[_(`span`,{class:`i-mdi:close w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:R(()=>[y(` `+P(F(s)(`common.cancel`)),1)]),_:1},8,[`size`]),b(F(V),{type:`primary`,size:c.value.size,disabled:!F(re),loading:F(U),onClick:n[6]||=e=>o(`confirm`)},{icon:R(()=>[...n[11]||=[_(`span`,{class:`i-mdi:check w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:R(()=>[y(` `+P(F(s)(`common.confirm`)),1)]),_:1},8,[`size`,`disabled`,`loading`])])]))],8,de))}}),[[`__scopeId`,`data-v-9fd4f225`]]);const De={key:1,class:`c-data-picker__label-error`,role:`status`};var Oe=o(S({name:`C_DataPicker`,__name:`index`,props:{source:{},columns:{},modelValue:{},multiple:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},title:{},placeholder:{},density:{},locale:{},pageSize:{default:20},scope:{},showActions:{type:Boolean,default:!0},showTrigger:{type:Boolean,default:!0},revalidateOnConfirm:{type:Boolean},disabledReason:{},requireSelection:{type:Boolean},presentation:{},initialValues:{},fixedFilters:{},rowCheckable:{},maxSelection:{},navigation:{},history:{}},emits:[`update:modelValue`,`select`,`cancel`],setup(t,{expose:n,emit:r}){let o=t,l=r,u=re(),d=N(null),f=N(null),x=N(null),S=I(),T=p(()=>o.presentation===`inline`),O=p(()=>o.presentation===`popover`),A=p(()=>o.disabled||o.readonly),z=N(!1),B=p(()=>O.value&&!z.value?se:T.value?ie:oe),H=c(),ce=a(),U=s(()=>o.density),W=p(()=>U.value??H.density??`compact`),G=p(()=>e(W.value)),{t:K}=i(()=>o.locale),q=Y(o,l,d,()=>W.value,()=>O.value&&!z.value),{opened:J,close:le,confirm:ue,clear:de,searchDraft:X,query:fe,labels:pe,display:me}=q,he=null,ge=!1,Z;L(J,e=>{e||(clearTimeout(Z),Z=void 0,z.value=!1)}),ne(()=>clearTimeout(Z));function Q(e){J.value||A.value||(he=e?.currentTarget??(typeof document>`u`?null:document.activeElement),q.open(),T.value&&ee(()=>f.value?.focus()))}function $(){let e=J.value;clearTimeout(Z),Z=void 0,le(),e&&l(`cancel`),z.value=!1;let t=he;he=null,ee(()=>{let e=t?.isConnected?t:x.value?.querySelector(`input, button`);ge=!0,e?.focus(),queueMicrotask(()=>{ge=!1})})}async function _e(){let e=await ue();return e&&$(),e}function ve(e){A.value||(Q(),X.value=e,clearTimeout(Z),Z=setTimeout(()=>{Z=void 0,J.value&&e.length>=q.searchOptions.value.minChars&&fe()},q.searchOptions.value.debounce))}function ye(){A.value||(clearTimeout(Z),Z=void 0,Q(),X.value!==q.search.value&&fe(),z.value=!0)}function be(){if(ge){ge=!1;return}Q()}function xe(e){e.isComposing||(e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),$()):e.key===`ArrowDown`?(e.preventDefault(),Q(),ee(()=>f.value?.focus())):e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),clearTimeout(Z),Z=void 0,Q(),fe()))}let Se=()=>w(ae,{value:J.value?X.value:me.value,placeholder:o.placeholder??K(`picker.quickSearch`),size:G.value.size,disabled:o.disabled,readonly:o.readonly,inputProps:{"aria-label":o.title??K(`picker.title`),"aria-expanded":J.value,"aria-controls":J.value?S:void 0},"onUpdate:value":ve,onFocus:be,onClick:()=>Q(),onKeydown:xe}),Ce=()=>w(V,{class:`c-data-picker__open`,size:G.value.size,disabled:o.disabled,"aria-readonly":o.readonly,"aria-expanded":T.value?J.value:void 0,"aria-controls":T.value&&J.value?S:void 0,title:me.value,onClick:e=>T.value&&J.value?$():Q(e)},()=>[w(`span`,{class:me.value?void 0:`c-data-picker__placeholder`},me.value||(o.placeholder??K(`picker.placeholder`))),w(`span`,{class:`i-mdi:magnify w-4 h-4 shrink-0`,"aria-hidden":`true`})]),we=()=>{if(u.trigger)return u.trigger({open:Q,disabled:!!A.value,opened:J.value,display:me.value});let e=[O.value?Se():Ce()];return O.value&&e.push(w(V,{class:`c-data-picker__more`,size:G.value.size,disabled:A.value,onClick:ye},()=>K(`picker.more`))),o.clearable&&o.modelValue!=null&&(!Array.isArray(o.modelValue)||o.modelValue.length)&&e.push(w(V,{class:`c-data-picker__clear`,size:G.value.size,disabled:A.value,"aria-label":K(`picker.clear`),onClick:de},()=>w(`span`,{class:`i-mdi:close w-4 h-4`,"aria-hidden":`true`}))),w(`div`,{class:`c-data-picker__trigger`,ref:x},e)};function Te(e){e.key!==`Escape`||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),$())}let Oe=p(()=>{let e=o.title??K(`picker.title`);return O.value&&!z.value?{show:J.value,trigger:`manual`,placement:`bottom-start`,showArrow:!1,width:640,style:{...ce.value,maxWidth:`calc(100vw - 24px)`},onClickoutside:e=>{e.target instanceof Node&&x.value?.contains(e.target)||$()},onKeydown:Te}:T.value?{id:S,class:`c-data-picker__inline`,role:`region`,"aria-label":e,title:o.showActions===!1&&o.showTrigger===!1?void 0:e,size:`small`,style:ce.value,onKeydown:Te}:{show:J.value,preset:`card`,class:`c-data-picker__modal`,title:e,"aria-label":e,style:{...ce.value,width:`min(${u.selected?1160:960}px, calc(100vw - 24px))`},"onUpdate:show":e=>{e||$()}}});return n({open:Q,close:$,reset:q.reset,confirm:_e}),(e,t)=>(k(),g(`div`,{class:`c-data-picker`,style:te(F(ce))},[o.showTrigger!==!1&&(!O.value||z.value)?(k(),m(M(we),{key:0})):h(`v-if`,!0),F(pe).status.value===`error`?(k(),g(`span`,De,[y(P(F(K)(`picker.labelFailed`))+` `,1),b(F(V),{text:``,size:`tiny`,onClick:F(pe).reload},{icon:R(()=>[...t[0]||=[_(`span`,{class:`i-mdi:refresh w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:R(()=>[y(` `+P(F(K)(`common.retry`)),1)]),_:1},8,[`onClick`])])):h(`v-if`,!0),!T.value||F(J)?(k(),m(M(B.value),D(E({key:2},Oe.value)),v({default:R(()=>[F(J)?(k(),m(Ee,{key:0,ref_key:`panelRef`,ref:f,state:F(q),options:o,"density-value":W.value,inline:T.value||O.value&&!z.value,popup:O.value&&!z.value,"panel-id":F(S),onConfirm:_e,onDismiss:$,onKeydown:Te},v({_:2},[e.$slots.query?{name:`query`,fn:R(t=>[j(e.$slots,`query`,D(C(t)),void 0,!0)]),key:`0`}:void 0,e.$slots.navigation?{name:`navigation`,fn:R(t=>[j(e.$slots,`navigation`,D(C(t)),void 0,!0)]),key:`1`}:void 0,e.$slots.selected?{name:`selected`,fn:R(t=>[j(e.$slots,`selected`,D(C(t)),void 0,!0)]),key:`2`}:void 0]),1032,[`state`,`density-value`,`inline`,`popup`,`panel-id`])):h(`v-if`,!0)]),_:2},[O.value&&!z.value?{name:`trigger`,fn:R(()=>[(k(),m(M(we)))]),key:`0`}:void 0]),1040)):h(`v-if`,!0)],4))}}),[[`__scopeId`,`data-v-e5219897`]]);export{G as n,U as r,Oe as t};
|
package/dist/C_Date.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import "./shared-tokens.css";
|
|
2
2
|
|
|
3
3
|
/* layer: default */
|
|
4
|
-
.inline-block[data-v-
|
|
5
|
-
.flex[data-v-
|
|
6
|
-
.flex-1[data-v-
|
|
7
|
-
.items-center[data-v-
|
|
8
|
-
.gap-2\.5[data-v-
|
|
4
|
+
.inline-block[data-v-fefe39e1]{display:inline-block;}
|
|
5
|
+
.flex[data-v-fefe39e1]{display:flex;}
|
|
6
|
+
.flex-1[data-v-fefe39e1]{flex:1 1 0%;}
|
|
7
|
+
.items-center[data-v-fefe39e1]{align-items:center;}
|
|
8
|
+
.gap-2\.5[data-v-fefe39e1]{gap:0.625rem;}
|
package/dist/C_Date.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DateProps, i as DatePickerMode, n as DateExpose, o as DateRangeValue, r as DateModelValue, s as DateValue, t as DateEmits } from "./
|
|
1
|
+
import { a as DateProps, i as DatePickerMode, n as DateExpose, o as DateRangeValue, r as DateModelValue, s as DateValue, t as DateEmits } from "./types5.cjs";
|
|
2
2
|
import { AllowedComponentProps, ComponentCustomProps, EmitFn, VNode, VNodeProps } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_Date/index.d.ts
|
package/dist/C_Date.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DateProps, i as DatePickerMode, n as DateExpose, o as DateRangeValue, r as DateModelValue, s as DateValue, t as DateEmits } from "./
|
|
1
|
+
import { a as DateProps, i as DatePickerMode, n as DateExpose, o as DateRangeValue, r as DateModelValue, s as DateValue, t as DateEmits } from "./types4.js";
|
|
2
2
|
import { AllowedComponentProps, ComponentCustomProps, EmitFn, VNode, VNodeProps } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_Date/index.d.ts
|