@robot-admin/naive-ui-components 0.40.4 → 0.41.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 +16 -0
- package/README.md +62 -214
- package/README_EN.md +62 -195
- package/dist/ActionOverflow.cjs +1 -0
- package/dist/ActionOverflow.js +1 -0
- package/dist/C_ActionBar.css +63 -53
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_ApprovalViewer.cjs +1 -0
- package/dist/C_ApprovalViewer.css +79 -0
- package/dist/C_ApprovalViewer.d.cts +2 -0
- package/dist/C_ApprovalViewer.d.ts +2 -0
- package/dist/C_ApprovalViewer.js +1 -0
- package/dist/C_ApprovalViewer2.cjs +1 -0
- package/dist/C_ApprovalViewer2.js +1 -0
- package/dist/C_Attachments.cjs +1 -0
- package/dist/C_Attachments.css +204 -0
- package/dist/C_Attachments.d.cts +2 -0
- package/dist/C_Attachments.d.ts +2 -0
- package/dist/C_Attachments.js +1 -0
- package/dist/C_Attachments2.cjs +1 -0
- package/dist/C_Attachments2.js +1 -0
- package/dist/C_AudioPlayer.d.cts +1 -1
- package/dist/C_AudioPlayer.d.ts +1 -1
- package/dist/C_AutoComplete.d.cts +2 -2
- package/dist/C_AutoComplete.d.ts +2 -2
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_BatchResult.css +10 -10
- package/dist/C_BatchResult.d.cts +1 -1
- package/dist/C_BatchResult.d.ts +1 -1
- package/dist/C_BatchResult2.cjs +1 -1
- package/dist/C_BatchResult2.js +1 -1
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_ChangeReview.cjs +1 -0
- package/dist/C_ChangeReview.css +49 -0
- package/dist/C_ChangeReview.d.cts +2 -0
- package/dist/C_ChangeReview.d.ts +2 -0
- package/dist/C_ChangeReview.js +1 -0
- package/dist/C_ChangeReview2.cjs +1 -0
- package/dist/C_ChangeReview2.js +1 -0
- package/dist/C_Chat.css +120 -67
- package/dist/C_Chat.d.cts +2 -2
- package/dist/C_Chat.d.ts +2 -2
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_DataPicker.cjs +1 -1
- package/dist/C_DataPicker.css +125 -50
- package/dist/C_DataPicker.d.cts +3 -3
- package/dist/C_DataPicker.d.ts +4 -3
- package/dist/C_DataPicker.js +1 -1
- package/dist/C_DataPicker2.cjs +1 -1
- package/dist/C_DataPicker2.js +1 -1
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Descriptions.cjs +1 -0
- package/dist/C_Descriptions.css +86 -0
- package/dist/C_Descriptions.d.cts +2 -0
- package/dist/C_Descriptions.d.ts +2 -0
- package/dist/C_Descriptions.js +1 -0
- package/dist/C_Descriptions2.cjs +1 -0
- package/dist/C_Descriptions2.js +1 -0
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_FilePreview.cjs +1 -1
- package/dist/C_FilePreview.d.cts +2 -1
- package/dist/C_FilePreview.d.ts +2 -1
- package/dist/C_FilePreview.js +1 -1
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_FilterBuilder.cjs +1 -0
- package/dist/C_FilterBuilder.css +59 -0
- package/dist/C_FilterBuilder.d.cts +2 -0
- package/dist/C_FilterBuilder.d.ts +2 -0
- package/dist/C_FilterBuilder.js +1 -0
- package/dist/C_FilterBuilder2.cjs +1 -0
- package/dist/C_FilterBuilder2.js +1 -0
- package/dist/C_Form.base.css +16 -16
- package/dist/C_Form.css +16 -16
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +3 -3
- package/dist/C_FormModal.css +64 -54
- package/dist/C_FormModal.d.cts +2 -2
- package/dist/C_FormModal.d.ts +4 -4
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.d.cts +2 -1
- package/dist/C_FormSearch.d.ts +3 -2
- package/dist/C_GlobalSearch.css +156 -137
- package/dist/C_GlobalSearch.d.cts +2 -2
- package/dist/C_GlobalSearch.d.ts +2 -2
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +49 -3
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_ImageAnnotator.cjs +1 -0
- package/dist/C_ImageAnnotator.css +143 -0
- package/dist/C_ImageAnnotator.d.cts +2 -0
- package/dist/C_ImageAnnotator.d.ts +2 -0
- package/dist/C_ImageAnnotator.js +1 -0
- package/dist/C_ImageAnnotator2.cjs +1 -0
- package/dist/C_ImageAnnotator2.js +1 -0
- package/dist/C_ImportWizard.cjs +1 -0
- package/dist/C_ImportWizard.css +42 -0
- package/dist/C_ImportWizard.d.cts +2 -0
- package/dist/C_ImportWizard.d.ts +2 -0
- package/dist/C_ImportWizard.js +1 -0
- package/dist/C_ImportWizard2.cjs +1 -0
- package/dist/C_ImportWizard2.js +1 -0
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_Menu.d.cts +2 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_NotificationCenter.cjs +1 -1
- package/dist/C_NotificationCenter.css +39 -39
- package/dist/C_NotificationCenter.d.cts +2 -1
- package/dist/C_NotificationCenter.d.ts +2 -1
- package/dist/C_NotificationCenter.js +1 -1
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_NotificationInbox.cjs +1 -0
- package/dist/C_NotificationInbox.css +154 -0
- package/dist/C_NotificationInbox.d.cts +2 -0
- package/dist/C_NotificationInbox.d.ts +2 -0
- package/dist/C_NotificationInbox.js +1 -0
- package/dist/C_NotificationInbox2.cjs +1 -0
- package/dist/C_NotificationInbox2.js +1 -0
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_RecordList.cjs +1 -0
- package/dist/C_RecordList.css +70 -0
- package/dist/C_RecordList.d.cts +2 -0
- package/dist/C_RecordList.d.ts +2 -0
- package/dist/C_RecordList.js +1 -0
- package/dist/C_RecordList2.cjs +1 -0
- package/dist/C_RecordList2.js +1 -0
- package/dist/C_RecurrenceEditor.cjs +1 -0
- package/dist/C_RecurrenceEditor.css +68 -0
- package/dist/C_RecurrenceEditor.d.cts +2 -0
- package/dist/C_RecurrenceEditor.d.ts +2 -0
- package/dist/C_RecurrenceEditor.js +1 -0
- package/dist/C_RecurrenceEditor2.cjs +1 -0
- package/dist/C_RecurrenceEditor2.js +1 -0
- package/dist/C_RelationshipExplorer.cjs +1 -0
- package/dist/C_RelationshipExplorer.css +76 -0
- package/dist/C_RelationshipExplorer.d.cts +2 -0
- package/dist/C_RelationshipExplorer.d.ts +2 -0
- package/dist/C_RelationshipExplorer.js +1 -0
- package/dist/C_RelationshipExplorer2.cjs +1 -0
- package/dist/C_RelationshipExplorer2.js +1 -0
- package/dist/C_ResourceSchedule.cjs +1 -0
- package/dist/C_ResourceSchedule.css +104 -0
- package/dist/C_ResourceSchedule.d.cts +2 -0
- package/dist/C_ResourceSchedule.d.ts +2 -0
- package/dist/C_ResourceSchedule.js +1 -0
- package/dist/C_ResourceSchedule2.cjs +1 -0
- package/dist/C_ResourceSchedule2.js +1 -0
- package/dist/C_ScanInput.cjs +1 -0
- package/dist/C_ScanInput.css +33 -0
- package/dist/C_ScanInput.d.cts +2 -0
- package/dist/C_ScanInput.d.ts +2 -0
- package/dist/C_ScanInput.js +1 -0
- package/dist/C_ScanInput2.cjs +1 -0
- package/dist/C_ScanInput2.js +1 -0
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Select.d.cts +2 -2
- package/dist/C_Select.d.ts +2 -2
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +194 -184
- package/dist/C_Table.css +178 -168
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +15 -14
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_TagsView.d.cts +2 -2
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_TaskBoard.cjs +1 -0
- package/dist/C_TaskBoard.css +58 -0
- package/dist/C_TaskBoard.d.cts +2 -0
- package/dist/C_TaskBoard.d.ts +2 -0
- package/dist/C_TaskBoard.js +1 -0
- package/dist/C_TaskBoard2.cjs +1 -0
- package/dist/C_TaskBoard2.js +1 -0
- package/dist/C_TaskPanel.cjs +1 -0
- package/dist/C_TaskPanel.css +68 -0
- package/dist/C_TaskPanel.d.cts +2 -0
- package/dist/C_TaskPanel.d.ts +2 -0
- package/dist/C_TaskPanel.js +1 -0
- package/dist/C_TaskPanel2.cjs +1 -0
- package/dist/C_TaskPanel2.js +1 -0
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +108 -41
- package/dist/C_Transfer.d.cts +2 -2
- package/dist/C_Transfer.d.ts +2 -2
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.d.ts +13 -12
- package/dist/C_Upload.cjs +1 -1
- package/dist/C_Upload.d.cts +2 -1
- package/dist/C_Upload.d.ts +2 -1
- package/dist/C_Upload.js +1 -1
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_UserPicker.d.cts +1 -1
- package/dist/C_UserPicker.d.ts +2 -2
- package/dist/C_WorkFlow.d.ts +2 -2
- package/dist/ExportMenu.cjs +1 -0
- package/dist/ExportMenu.js +1 -0
- package/dist/NotificationItem.cjs +1 -0
- package/dist/NotificationItem.js +1 -0
- package/dist/component-config.d.ts +33 -10
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.cjs +1 -0
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +1 -0
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +6 -232
- package/dist/constants3.d.ts +6 -232
- package/dist/constants4.d.cts +9 -199
- package/dist/constants4.d.ts +9 -199
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.d.cts +33 -10
- package/dist/data2.d.cts +8 -8
- package/dist/data2.d.ts +8 -8
- package/dist/dateRange.d.cts +4 -263
- package/dist/dateRange.d.ts +4 -263
- package/dist/editors.d.cts +11 -11
- package/dist/editors.d.ts +11 -11
- package/dist/excel.cjs +1 -0
- package/dist/excel.js +1 -0
- package/dist/fieldRenderers.cjs +1 -1
- package/dist/fieldRenderers.js +1 -1
- package/dist/fileUrl.cjs +1 -0
- package/dist/fileUrl.js +1 -0
- package/dist/html2.cjs +1 -0
- package/dist/html2.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +88 -69
- package/dist/index.d.ts +87 -68
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +54 -75
- package/dist/index.vue.d.ts +54 -75
- package/dist/index10.vue.d.cts +25 -27
- package/dist/index10.vue.d.ts +54 -41
- package/dist/index11.vue.d.cts +54 -41
- package/dist/index11.vue.d.ts +133 -75
- package/dist/index12.vue.d.cts +133 -75
- package/dist/index12.vue.d.ts +24 -6
- package/dist/index13.vue.d.cts +24 -6
- package/dist/index13.vue.d.ts +39 -57
- package/dist/index14.vue.d.cts +39 -57
- package/dist/index14.vue.d.ts +80 -16
- package/dist/index15.vue.d.cts +80 -16
- package/dist/index15.vue.d.ts +16 -56
- package/dist/index16.vue.d.cts +16 -56
- package/dist/index16.vue.d.ts +40 -118
- package/dist/index17.vue.d.cts +40 -118
- package/dist/index17.vue.d.ts +58 -52
- package/dist/index18.vue.d.cts +58 -52
- package/dist/index18.vue.d.ts +16 -20
- package/dist/index19.vue.d.cts +16 -20
- package/dist/index19.vue.d.ts +67 -14
- package/dist/index2.vue.d.cts +55 -17
- package/dist/index2.vue.d.ts +55 -17
- package/dist/index20.vue.d.cts +67 -14
- package/dist/index20.vue.d.ts +127 -123
- package/dist/index21.vue.d.cts +127 -123
- package/dist/index21.vue.d.ts +51 -76
- package/dist/index22.vue.d.cts +51 -76
- package/dist/index22.vue.d.ts +31 -71
- package/dist/index23.vue.d.cts +31 -129
- package/dist/index23.vue.d.ts +62 -118
- package/dist/index24.vue.d.cts +75 -50
- package/dist/index24.vue.d.ts +20 -49
- package/dist/index25.vue.d.cts +18 -18
- package/dist/index25.vue.d.ts +14 -22
- package/dist/index26.vue.d.cts +16 -26
- package/dist/index26.vue.d.ts +129 -24
- package/dist/index27.vue.d.cts +113 -81
- package/dist/index27.vue.d.ts +78 -96
- package/dist/index28.vue.d.cts +76 -29
- package/dist/index28.vue.d.ts +73 -31
- package/dist/index29.vue.d.cts +65 -13
- package/dist/index29.vue.d.ts +65 -13
- package/dist/index3.vue.d.cts +67 -70
- package/dist/index3.vue.d.ts +67 -70
- package/dist/index30.vue.d.cts +130 -81
- package/dist/index30.vue.d.ts +130 -81
- package/dist/index31.vue.d.cts +41 -94
- package/dist/index31.vue.d.ts +41 -94
- package/dist/index32.vue.d.cts +44 -61
- package/dist/index32.vue.d.ts +44 -61
- package/dist/index33.vue.d.cts +58 -0
- package/dist/index33.vue.d.ts +58 -0
- package/dist/index34.vue.d.cts +62 -0
- package/dist/index34.vue.d.ts +62 -0
- package/dist/index35.vue.d.cts +42 -0
- package/dist/index35.vue.d.ts +42 -0
- package/dist/index36.vue.d.cts +28 -0
- package/dist/index36.vue.d.ts +28 -0
- package/dist/index37.vue.d.cts +30 -0
- package/dist/index37.vue.d.ts +30 -0
- package/dist/index38.vue.d.cts +103 -0
- package/dist/index38.vue.d.ts +103 -0
- package/dist/index39.vue.d.cts +38 -0
- package/dist/index39.vue.d.ts +38 -0
- package/dist/index4.vue.d.cts +27 -36
- package/dist/index4.vue.d.ts +27 -36
- package/dist/index40.vue.d.cts +19 -0
- package/dist/index40.vue.d.ts +19 -0
- package/dist/index41.vue.d.cts +89 -0
- package/dist/index41.vue.d.ts +89 -0
- package/dist/index42.vue.d.cts +110 -0
- package/dist/index42.vue.d.ts +110 -0
- package/dist/index43.vue.d.cts +89 -0
- package/dist/index43.vue.d.ts +89 -0
- package/dist/index44.vue.d.cts +71 -0
- package/dist/index44.vue.d.ts +71 -0
- package/dist/index45.vue.d.cts +50 -0
- package/dist/index45.vue.d.ts +50 -0
- package/dist/index5.vue.d.cts +78 -17
- package/dist/index5.vue.d.ts +78 -17
- package/dist/index6.vue.d.cts +34 -132
- package/dist/index6.vue.d.ts +31 -34
- package/dist/index7.vue.d.cts +20 -34
- package/dist/index7.vue.d.ts +20 -28
- package/dist/index8.vue.d.cts +130 -29
- package/dist/index8.vue.d.ts +33 -118
- package/dist/index9.vue.d.cts +33 -118
- package/dist/index9.vue.d.ts +25 -27
- package/dist/localSource.cjs +1 -0
- package/dist/{formField.d.cts → localSource.d.cts} +42 -2
- package/dist/{formField.d.ts → localSource.d.ts} +42 -2
- package/dist/localSource.js +1 -0
- package/dist/mapUtils.d.cts +5 -5
- package/dist/mapUtils.d.ts +5 -5
- package/dist/model.d.cts +88 -0
- package/dist/model.d.ts +88 -0
- package/dist/presets.d.cts +2 -2
- package/dist/presets.d.ts +2 -2
- package/dist/previewLimits.cjs +1 -0
- package/dist/previewLimits.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/rule.d.cts +51 -0
- package/dist/rule.d.ts +51 -0
- package/dist/source.cjs +1 -1
- package/dist/source.d.cts +2 -2
- package/dist/source.d.ts +2 -2
- package/dist/source.js +1 -1
- package/dist/style.css +1974 -542
- package/dist/types.d.cts +4 -0
- package/dist/types.d.ts +4 -0
- package/dist/types10.d.cts +229 -0
- package/dist/types10.d.ts +285 -0
- package/dist/types11.d.cts +285 -0
- package/dist/types2.d.cts +188 -31
- package/dist/types2.d.ts +188 -31
- package/dist/types3.d.cts +84 -101
- package/dist/types3.d.ts +82 -105
- package/dist/types4.d.cts +24 -106
- package/dist/types4.d.ts +30 -55
- package/dist/types5.d.cts +106 -55
- package/dist/types5.d.ts +130 -41
- package/dist/types6.d.cts +130 -41
- package/dist/types6.d.ts +244 -265
- package/dist/types7.d.cts +244 -265
- package/dist/types7.d.ts +60 -0
- package/dist/types8.d.cts +60 -0
- package/dist/types8.d.ts +50 -0
- package/dist/types9.d.cts +50 -0
- package/dist/types9.d.ts +229 -0
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +7 -7
- package/dist/useCollapsePanel.d.ts +7 -7
- package/dist/useComponentTheme.cjs +1 -1
- package/dist/useComponentTheme.js +1 -1
- package/dist/useCropperCore.d.cts +8 -8
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDynamicFormState.d.cts +5 -4
- package/dist/useDynamicFormState.d.ts +5 -4
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFormArray.cjs +1 -1
- package/dist/useFormArray.d.cts +39 -3
- package/dist/useFormArray.d.ts +39 -3
- package/dist/useFormArray.js +1 -1
- package/dist/useFormRenderer.d.cts +6 -2
- package/dist/useFormRenderer.d.ts +6 -2
- package/dist/useFullscreen.d.cts +7 -99
- package/dist/useFullscreen.d.ts +7 -99
- package/dist/useGlobalSearch.d.cts +45 -3
- package/dist/useGlobalSearch.d.ts +45 -3
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useLocalFileUrl.cjs +1 -0
- package/dist/useLocalFileUrl.js +1 -0
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +6 -6
- package/dist/useSignatureHistory.d.ts +6 -6
- package/dist/useSplitResize.d.cts +10 -10
- package/dist/useSplitResize.d.ts +10 -10
- package/dist/useWorkflowValidation.d.cts +108 -108
- package/dist/useWorkflowValidation.d.ts +108 -108
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/dist/workflows.cjs +1 -1
- package/dist/workflows.d.cts +2 -2
- package/dist/workflows.d.ts +2 -2
- package/dist/workflows.js +1 -1
- package/docs/components.en.md +125 -135
- package/docs/components.md +125 -135
- package/docs/engineering.en.md +12 -4
- package/docs/engineering.md +12 -4
- package/docs/guides/api-migration.md +17 -1
- package/docs/guides/approval-viewer.md +50 -0
- package/docs/guides/attachments.md +39 -0
- package/docs/guides/batch-results.md +3 -1
- package/docs/guides/change-review.md +49 -0
- package/docs/guides/component-contracts.md +8 -0
- package/docs/guides/data-picker.md +75 -1
- package/docs/guides/data-workflows.md +27 -1
- package/docs/guides/dockable-workbench.md +49 -0
- package/docs/guides/filter-builder.md +47 -0
- package/docs/guides/global-search.md +49 -0
- package/docs/guides/image-annotator.md +27 -0
- package/docs/guides/import-wizard.md +40 -0
- package/docs/guides/notification-center.md +29 -0
- package/docs/guides/resource-schedule.md +58 -0
- package/docs/guides/scene-components.md +53 -0
- package/docs/guides/search-workflows.md +2 -0
- package/docs/guides/split-pane.md +2 -0
- package/docs/guides/table-density.md +47 -1
- package/docs/guides/task-board.md +53 -0
- package/docs/guides/task-panel.md +30 -0
- package/docs/guides/transfer.md +35 -0
- package/docs/guides/usage.en.md +23 -17
- package/docs/guides/usage.md +10 -24
- package/package.json +1 -1
- package/dist/formField.cjs +0 -1
- package/dist/formField.js +0 -1
- package/dist/html.cjs +0 -1
- package/dist/html.js +0 -1
package/dist/C_FormModal.css
CHANGED
|
@@ -77,9 +77,16 @@
|
|
|
77
77
|
.transform[data-v-075758a0]{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));}
|
|
78
78
|
.px[data-v-075758a0]{padding-left:1rem;padding-right:1rem;}
|
|
79
79
|
|
|
80
|
+
|
|
81
|
+
/* layer: default */
|
|
82
|
+
.m4[data-v-41d2044a]{margin:1rem;}
|
|
83
|
+
.m5[data-v-41d2044a]{margin:1.25rem;}
|
|
84
|
+
.m6[data-v-41d2044a]{margin:1.5rem;}
|
|
85
|
+
.inline[data-v-41d2044a]{display:inline;}
|
|
86
|
+
|
|
80
87
|
/* 通用操作按钮组件样式 */
|
|
81
88
|
/* ================= 主容器 ================= */
|
|
82
|
-
.c-action-bar[data-v-
|
|
89
|
+
.c-action-bar[data-v-19962791] {
|
|
83
90
|
display: flex;
|
|
84
91
|
min-width: 0;
|
|
85
92
|
align-items: center;
|
|
@@ -91,26 +98,26 @@
|
|
|
91
98
|
border: 1px solid var(--c-border, var(--c-theme-border));
|
|
92
99
|
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
93
100
|
}
|
|
94
|
-
.c-action-bar.is-align-left[data-v-
|
|
101
|
+
.c-action-bar.is-align-left[data-v-19962791] {
|
|
95
102
|
justify-content: flex-start;
|
|
96
103
|
}
|
|
97
|
-
.c-action-bar.is-align-center[data-v-
|
|
104
|
+
.c-action-bar.is-align-center[data-v-19962791] {
|
|
98
105
|
justify-content: center;
|
|
99
106
|
}
|
|
100
|
-
.c-action-bar.is-align-right[data-v-
|
|
107
|
+
.c-action-bar.is-align-right[data-v-19962791] {
|
|
101
108
|
justify-content: flex-end;
|
|
102
109
|
}
|
|
103
|
-
.c-action-bar.is-align-space-between[data-v-
|
|
110
|
+
.c-action-bar.is-align-space-between[data-v-19962791] {
|
|
104
111
|
justify-content: space-between;
|
|
105
112
|
}
|
|
106
|
-
.c-action-bar.is-align-space-around[data-v-
|
|
113
|
+
.c-action-bar.is-align-space-around[data-v-19962791] {
|
|
107
114
|
justify-content: space-around;
|
|
108
115
|
}
|
|
109
|
-
.c-action-bar.is-compact[data-v-
|
|
116
|
+
.c-action-bar.is-compact[data-v-19962791] {
|
|
110
117
|
padding: 8px;
|
|
111
118
|
margin-bottom: 8px;
|
|
112
119
|
}
|
|
113
|
-
.c-action-bar.is-inline[data-v-
|
|
120
|
+
.c-action-bar.is-inline[data-v-19962791] {
|
|
114
121
|
padding: 0;
|
|
115
122
|
margin-bottom: 0;
|
|
116
123
|
background: transparent;
|
|
@@ -118,104 +125,107 @@
|
|
|
118
125
|
border-radius: 0;
|
|
119
126
|
box-shadow: none;
|
|
120
127
|
}
|
|
121
|
-
.c-action-bar.
|
|
128
|
+
.c-action-bar.has-overflow[data-v-19962791] {
|
|
129
|
+
gap: 8px;
|
|
130
|
+
}
|
|
131
|
+
.c-action-bar.is-wrap[data-v-19962791] {
|
|
122
132
|
flex-wrap: wrap;
|
|
123
133
|
gap: 8px;
|
|
124
134
|
}
|
|
125
|
-
.c-action-bar.is-wrap .actions-group[data-v-
|
|
135
|
+
.c-action-bar.is-wrap .actions-group[data-v-19962791] {
|
|
126
136
|
flex-wrap: wrap;
|
|
127
137
|
min-width: 0;
|
|
128
138
|
max-width: 100%;
|
|
129
139
|
}
|
|
130
140
|
@media (max-width: 768px) {
|
|
131
|
-
.c-action-bar[data-v-
|
|
141
|
+
.c-action-bar[data-v-19962791] {
|
|
132
142
|
flex-direction: column;
|
|
133
143
|
gap: 12px;
|
|
134
144
|
}
|
|
135
|
-
.c-action-bar .actions-group[data-v-
|
|
145
|
+
.c-action-bar .actions-group[data-v-19962791] {
|
|
136
146
|
width: 100%;
|
|
137
147
|
justify-content: center;
|
|
138
148
|
}
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
/* ================= 按钮组 ================= */
|
|
142
|
-
.actions-group[data-v-
|
|
152
|
+
.actions-group[data-v-19962791] {
|
|
143
153
|
display: flex;
|
|
144
154
|
align-items: center;
|
|
145
155
|
gap: 12px;
|
|
146
156
|
flex-wrap: nowrap;
|
|
147
157
|
flex-shrink: 0;
|
|
148
158
|
}
|
|
149
|
-
.actions-group.actions-left[data-v-
|
|
159
|
+
.actions-group.actions-left[data-v-19962791] {
|
|
150
160
|
justify-content: flex-start;
|
|
151
161
|
}
|
|
152
|
-
.actions-group.actions-right[data-v-
|
|
162
|
+
.actions-group.actions-right[data-v-19962791] {
|
|
153
163
|
justify-content: flex-end;
|
|
154
164
|
}
|
|
155
|
-
.c-action-bar.has-only-left.is-align-center .actions-group.actions-left[data-v-
|
|
165
|
+
.c-action-bar.has-only-left.is-align-center .actions-group.actions-left[data-v-19962791], .c-action-bar.has-only-right.is-align-center .actions-group.actions-right[data-v-19962791] {
|
|
156
166
|
width: 100%;
|
|
157
167
|
justify-content: center;
|
|
158
168
|
}
|
|
159
|
-
.c-action-bar.has-only-left.is-align-space-between .actions-group.actions-left[data-v-
|
|
169
|
+
.c-action-bar.has-only-left.is-align-space-between .actions-group.actions-left[data-v-19962791], .c-action-bar.has-only-right.is-align-space-between .actions-group.actions-right[data-v-19962791] {
|
|
160
170
|
width: 100%;
|
|
161
171
|
justify-content: space-between;
|
|
162
172
|
}
|
|
163
|
-
.c-action-bar.has-only-left.is-align-space-around .actions-group.actions-left[data-v-
|
|
173
|
+
.c-action-bar.has-only-left.is-align-space-around .actions-group.actions-left[data-v-19962791], .c-action-bar.has-only-right.is-align-space-around .actions-group.actions-right[data-v-19962791] {
|
|
164
174
|
width: 100%;
|
|
165
175
|
justify-content: space-around;
|
|
166
176
|
}
|
|
167
|
-
.c-action-bar.has-only-left.is-align-right .actions-group.actions-left[data-v-
|
|
177
|
+
.c-action-bar.has-only-left.is-align-right .actions-group.actions-left[data-v-19962791] {
|
|
168
178
|
width: 100%;
|
|
169
179
|
justify-content: flex-end;
|
|
170
180
|
}
|
|
171
|
-
.c-action-bar.has-only-right.is-align-left .actions-group.actions-right[data-v-
|
|
181
|
+
.c-action-bar.has-only-right.is-align-left .actions-group.actions-right[data-v-19962791] {
|
|
172
182
|
width: 100%;
|
|
173
183
|
justify-content: flex-start;
|
|
174
184
|
}
|
|
175
|
-
.actions-group[data-v-
|
|
185
|
+
.actions-group[data-v-19962791] .n-button {
|
|
176
186
|
flex-shrink: 0;
|
|
177
187
|
transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
|
|
178
188
|
font-weight: 500;
|
|
179
189
|
}
|
|
180
|
-
.actions-group[data-v-
|
|
190
|
+
.actions-group[data-v-19962791] .n-button .n-icon {
|
|
181
191
|
transition: transform 0.3s ease;
|
|
182
192
|
}
|
|
183
|
-
.actions-group[data-v-
|
|
193
|
+
.actions-group[data-v-19962791] .n-button:hover:not(:disabled) {
|
|
184
194
|
transform: translateY(-1px);
|
|
185
195
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
|
186
196
|
}
|
|
187
|
-
.actions-group[data-v-
|
|
197
|
+
.actions-group[data-v-19962791] .n-button:hover:not(:disabled) .n-icon {
|
|
188
198
|
transform: scale(1.1);
|
|
189
199
|
}
|
|
190
|
-
.actions-group[data-v-
|
|
200
|
+
.actions-group[data-v-19962791] .n-button:active:not(:disabled) {
|
|
191
201
|
transform: translateY(0);
|
|
192
202
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
193
203
|
}
|
|
194
|
-
.actions-group[data-v-
|
|
204
|
+
.actions-group[data-v-19962791] .n-button:disabled {
|
|
195
205
|
cursor: not-allowed;
|
|
196
206
|
opacity: 0.5;
|
|
197
207
|
}
|
|
198
|
-
.actions-group[data-v-
|
|
208
|
+
.actions-group[data-v-19962791] .n-button.n-button--loading {
|
|
199
209
|
pointer-events: none;
|
|
200
210
|
}
|
|
201
|
-
.actions-group[data-v-
|
|
211
|
+
.actions-group[data-v-19962791] .n-button--primary-type:hover:not(:disabled) {
|
|
202
212
|
box-shadow: 0 4px 12px rgba(24, 160, 88, 0.3);
|
|
203
213
|
}
|
|
204
|
-
.actions-group[data-v-
|
|
214
|
+
.actions-group[data-v-19962791] .n-button--info-type:hover:not(:disabled) {
|
|
205
215
|
box-shadow: 0 4px 12px rgba(42, 148, 125, 0.3);
|
|
206
216
|
}
|
|
207
|
-
.actions-group[data-v-
|
|
217
|
+
.actions-group[data-v-19962791] .n-button--success-type:hover:not(:disabled) {
|
|
208
218
|
box-shadow: 0 4px 12px rgba(99, 226, 183, 0.3);
|
|
209
219
|
}
|
|
210
|
-
.actions-group[data-v-
|
|
220
|
+
.actions-group[data-v-19962791] .n-button--warning-type:hover:not(:disabled) {
|
|
211
221
|
box-shadow: 0 4px 12px rgba(240, 138, 0, 0.3);
|
|
212
222
|
}
|
|
213
|
-
.actions-group[data-v-
|
|
223
|
+
.actions-group[data-v-19962791] .n-button--error-type:hover:not(:disabled) {
|
|
214
224
|
box-shadow: 0 4px 12px rgba(208, 48, 80, 0.3);
|
|
215
225
|
}
|
|
216
226
|
|
|
217
227
|
/* ================= 中间插槽区域 ================= */
|
|
218
|
-
.actions-center[data-v-
|
|
228
|
+
.actions-center[data-v-19962791] {
|
|
219
229
|
display: flex;
|
|
220
230
|
align-items: center;
|
|
221
231
|
justify-content: center;
|
|
@@ -225,38 +235,38 @@
|
|
|
225
235
|
}
|
|
226
236
|
|
|
227
237
|
/* ================= 分隔线 ================= */
|
|
228
|
-
.action-divider[data-v-
|
|
238
|
+
.action-divider[data-v-19962791] {
|
|
229
239
|
margin: 0 8px !important;
|
|
230
240
|
height: 20px;
|
|
231
241
|
opacity: 0.3;
|
|
232
242
|
transition: opacity 0.3s ease;
|
|
233
243
|
}
|
|
234
|
-
.action-divider--horizontal[data-v-
|
|
244
|
+
.action-divider--horizontal[data-v-19962791] {
|
|
235
245
|
width: 20px;
|
|
236
246
|
min-width: 20px;
|
|
237
247
|
height: auto;
|
|
238
248
|
flex: 0 0 20px;
|
|
239
249
|
}
|
|
240
|
-
.action-divider[data-v-
|
|
250
|
+
.action-divider[data-v-19962791]:hover {
|
|
241
251
|
opacity: 0.6;
|
|
242
252
|
}
|
|
243
253
|
|
|
244
254
|
/* ================= 下拉菜单优化 ================= */
|
|
245
|
-
[data-v-
|
|
255
|
+
[data-v-19962791] .n-dropdown-option {
|
|
246
256
|
transition: all 0.2s ease;
|
|
247
257
|
}
|
|
248
|
-
[data-v-
|
|
258
|
+
[data-v-19962791] .n-dropdown-option:hover {
|
|
249
259
|
transform: translateX(4px);
|
|
250
260
|
}
|
|
251
|
-
[data-v-
|
|
261
|
+
[data-v-19962791] .n-dropdown-option .n-icon {
|
|
252
262
|
transition: transform 0.2s ease;
|
|
253
263
|
}
|
|
254
|
-
[data-v-
|
|
264
|
+
[data-v-19962791] .n-dropdown-option:hover .n-icon {
|
|
255
265
|
transform: scale(1.15);
|
|
256
266
|
}
|
|
257
267
|
|
|
258
268
|
/* ================= 加载动画 ================= */
|
|
259
|
-
@keyframes button-loading-
|
|
269
|
+
@keyframes button-loading-19962791 {
|
|
260
270
|
0% {
|
|
261
271
|
opacity: 0.6;
|
|
262
272
|
}
|
|
@@ -267,12 +277,12 @@
|
|
|
267
277
|
opacity: 0.6;
|
|
268
278
|
}
|
|
269
279
|
}
|
|
270
|
-
[data-v-
|
|
271
|
-
animation: button-loading-
|
|
280
|
+
[data-v-19962791] .n-button--loading {
|
|
281
|
+
animation: button-loading-19962791 1.5s ease-in-out infinite;
|
|
272
282
|
}
|
|
273
283
|
|
|
274
284
|
/* ================= Tooltip 样式 ================= */
|
|
275
|
-
[data-v-
|
|
285
|
+
[data-v-19962791] .n-tooltip .n-tooltip__content {
|
|
276
286
|
font-size: 12px;
|
|
277
287
|
padding: 6px 10px;
|
|
278
288
|
border-radius: 4px;
|
|
@@ -281,27 +291,27 @@
|
|
|
281
291
|
}
|
|
282
292
|
|
|
283
293
|
/* ================= 暗黑模式适配 ================= */
|
|
284
|
-
html.dark .c-action-bar[data-v-
|
|
294
|
+
html.dark .c-action-bar[data-v-19962791] {
|
|
285
295
|
border-color: rgba(255, 255, 255, 0.09);
|
|
286
296
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
287
297
|
}
|
|
288
|
-
html.dark .actions-group[data-v-
|
|
298
|
+
html.dark .actions-group[data-v-19962791] .n-button:hover:not(:disabled) {
|
|
289
299
|
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
|
|
290
300
|
}
|
|
291
|
-
html.dark .action-divider[data-v-
|
|
301
|
+
html.dark .action-divider[data-v-19962791] {
|
|
292
302
|
opacity: 0.15;
|
|
293
303
|
}
|
|
294
|
-
html.dark .action-divider[data-v-
|
|
304
|
+
html.dark .action-divider[data-v-19962791]:hover {
|
|
295
305
|
opacity: 0.4;
|
|
296
306
|
}
|
|
297
307
|
|
|
298
308
|
/* layer: default */
|
|
299
|
-
.m4[data-v-
|
|
300
|
-
.m5[data-v-
|
|
301
|
-
.m6[data-v-
|
|
302
|
-
.inline[data-v-
|
|
303
|
-
.px[data-v-
|
|
309
|
+
.m4[data-v-19962791]{margin:1rem;}
|
|
310
|
+
.m5[data-v-19962791]{margin:1.25rem;}
|
|
311
|
+
.m6[data-v-19962791]{margin:1.5rem;}
|
|
312
|
+
.inline[data-v-19962791]{display:inline;}
|
|
313
|
+
.px[data-v-19962791]{padding-left:1rem;padding-right:1rem;}
|
|
304
314
|
|
|
305
315
|
|
|
306
316
|
/* layer: default */
|
|
307
|
-
.visible[data-v-
|
|
317
|
+
.visible[data-v-637a9107]{visibility:visible;}
|
package/dist/C_FormModal.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { _default as C_FormModal, type FormModalEditor, type FormModalEmits, type FormModalMode, type FormModalProps };
|
|
1
|
+
import { a as FormModalInstance, i as FormModalEmits, n as FormModalBeforeCloseContext, o as FormModalMode, r as FormModalEditor, s as FormModalProps, t as _default } from "./index20.vue.cjs";
|
|
2
|
+
export { _default as C_FormModal, type FormModalBeforeCloseContext, type FormModalEditor, type FormModalEmits, type FormModalInstance, type FormModalMode, type FormModalProps };
|
package/dist/C_FormModal.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./types.js";
|
|
2
|
-
import "./
|
|
2
|
+
import "./types4.js";
|
|
3
3
|
import "./component-config.js";
|
|
4
4
|
import "./useFormRenderer.js";
|
|
5
5
|
import "./useDynamicFormState.js";
|
|
6
|
-
import "./
|
|
7
|
-
import { a as
|
|
8
|
-
export { _default as C_FormModal, type FormModalEditor, type FormModalEmits, type FormModalMode, type FormModalProps };
|
|
6
|
+
import "./types8.js";
|
|
7
|
+
import { a as FormModalInstance, i as FormModalEmits, n as FormModalBeforeCloseContext, o as FormModalMode, r as FormModalEditor, s as FormModalProps, t as _default } from "./index19.vue.js";
|
|
8
|
+
export { _default as C_FormModal, type FormModalBeforeCloseContext, type FormModalEditor, type FormModalEmits, type FormModalInstance, type FormModalMode, type FormModalProps };
|
package/dist/C_FormModal2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./observer.cjs`),n=require(`./data2.cjs`),r=require(`./useComponentLocale.cjs`),i=require(`./feedback.cjs`),a=require(`./useComponentTheme.cjs`),o=require(`./export-helper.cjs`),s=require(`./useActionTask.cjs`),c=require(`./C_ActionBar2.cjs`),l=require(`./useFormConfig.cjs`),u=require(`./fieldRenderers.cjs`),d=require(`./formModal.cjs`);let f=require(`vue`),p=require(`naive-ui`);const m={key:0,role:`status`,style:{margin:`0 0 8px`}},h=(0,f.defineComponent)({name:`C_FormModal`,__name:`index`,props:{editor:{},options:{},config:{default:()=>({})},renderers:{},width:{default:`min(620px, calc(100vw - 24px))`},createText:{},saveText:{},cancelText:{},closable:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0}},emits:[`submit`,`close`],setup(o,{emit:
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./observer.cjs`),n=require(`./data2.cjs`),r=require(`./useComponentLocale.cjs`),i=require(`./feedback.cjs`),a=require(`./useComponentTheme.cjs`),o=require(`./export-helper.cjs`),s=require(`./useActionTask.cjs`),c=require(`./C_ActionBar2.cjs`),l=require(`./useFormConfig.cjs`),u=require(`./fieldRenderers.cjs`),d=require(`./formModal.cjs`);let f=require(`vue`),p=require(`naive-ui`);const m={key:0,role:`status`,style:{margin:`0 0 8px`}},h=(0,f.defineComponent)({name:`C_FormModal`,__name:`index`,props:{editor:{},options:{},config:{default:()=>({})},renderers:{},width:{default:`min(620px, calc(100vw - 24px))`},createText:{},saveText:{},cancelText:{},closable:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},beforeClose:{},sessionKey:{}},emits:[`submit`,`close`],setup(o,{expose:h,emit:g}){let _=a.n(),v=o,y=g,b=(0,f.ref)(null),x=l.o(),S=(0,f.computed)(()=>l.r(v.config,x)),C=i.t(()=>S.value.feedback),{t:w}=r.t(()=>S.value.locale),T=(0,f.computed)(()=>v.config?.density??x.density??`compact`),E=(0,f.computed)({get:()=>v.editor.visible.value,set:e=>{e||G()}}),D=(0,f.computed)(()=>v.editor.title.value),O=(0,f.ref)(0),k=(0,f.ref)(!1),A=s.t(),j=(0,f.computed)(()=>A.isRunning(O.value)),M=(0,f.computed)(()=>j.value||v.editor.loading.value||!!b.value?.isSubmitting),N=(0,f.shallowRef)(),P=(0,f.computed)(()=>N.value!==void 0),F=(0,f.computed)(()=>M.value||P.value),I=!1;function L(){let e=N.value;N.value=void 0,e?.abort()}(0,f.watch)([()=>v.editor,()=>v.editor.visible.value,()=>v.sessionKey],([e,t,n],[r,,i])=>{(t||e!==r||n!==i)&&(O.value++,k.value=!1),L()},{flush:`sync`}),(0,f.onScopeDispose)(()=>{I=!0,O.value++,L()});let R=(0,f.computed)(()=>d.t(v.width,T.value)),z=(0,f.computed)({get:()=>v.editor.model.value??{},set:e=>{j.value||v.editor.setModel(e)}}),B=e=>e===void 0||n.a(e,b.value?.getModel())?!0:(k.value=!0,!1),V=(0,f.computed)(()=>({...v.config,...j.value?{disabled:!0}:{},density:T.value,mode:v.editor.mode.value,showActions:!1,submitSuccessText:``,onSubmit:async(e,r)=>{let{editor:i,config:a}=v,o=O.value;k.value=!1;let s=()=>o===O.value&&!r?.signal.aborted&&i.visible.value,c;a?.onSubmit&&(c=n.t(e.model),await a.onSubmit(e,r));let l=await A.run(o,()=>i.submit(e.model),()=>s()&&B(c));if(!l.executed)return;let u=l.value;if(o!==O.value||!u&&!s())return;y(`submit`,e,u);let d=S.value.submitSuccessText;u&&d&&t.t(()=>C.success(d))}}));function H(e,t){return new Promise(n=>{let r=e=>{t.removeEventListener(`abort`,i),n(e===!0)},i=()=>r(!1);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve().then(()=>!t.aborted&&e({signal:t})).then(r,i)})}async function U(e,t){let n=new AbortController,{signal:r}=n,i=(0,f.watch)([()=>v.editor.model.value,M],L,{deep:!0,flush:`sync`});r.addEventListener(`abort`,i,{once:!0}),N.value=n;try{return!await H(e,r)||N.value!==n?!1:(i(),N.value=void 0,t(),!0)}finally{i(),r.removeEventListener(`abort`,i),N.value===n&&(N.value=void 0)}}async function W(e){if(I||F.value||!E.value)return!1;let{beforeClose:t}=v;return t&&b.value?.isDirty?U(t,e):(e(),!0)}function G(){return W(()=>{v.editor.close(),y(`close`)})}h({requestDiscard:W});let K=(0,f.computed)(()=>{let t=e.t(T.value);return{align:`right`,size:S.value.size??(T.value===`compact`?`tiny`:t.size),gap:t.gap,compact:T.value===`compact`}}),q=(0,f.computed)(()=>c.a([{key:`cancel`,label:v.cancelText||w(`common.cancel`),disabled:F,autoLoading:!1,onClick:G},{key:v.editor.mode.value===`create`?`create`:`save`,label:v.editor.mode.value===`create`?v.createText===void 0?w(`common.create`):v.createText||w(`common.add`):v.saveText||w(`common.save`),disabled:P,loading:M,onClick:async()=>{await b.value?.submit()}}]));return(e,t)=>((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(p.NModal),{show:E.value,"onUpdate:show":t[1]||=e=>E.value=e,preset:`card`,title:D.value,"aria-label":D.value,style:(0,f.normalizeStyle)({...(0,f.unref)(_),...R.value.shell}),"header-style":R.value.header,"content-style":R.value.content,"footer-style":R.value.footer,"footer-class":`c-form-modal__footer`,"mask-closable":o.maskClosable&&!F.value,"close-on-esc":o.closeOnEsc&&!F.value,closable:o.closable&&!F.value,class:(0,f.normalizeClass)([`c-form-modal`,`c-form-modal--${T.value}`])},{footer:(0,f.withCtx)(()=>[k.value?((0,f.openBlock)(),(0,f.createElementBlock)(`p`,m,(0,f.toDisplayString)((0,f.unref)(w)(`form.draftChanged`)),1)):(0,f.createCommentVNode)(`v-if`,!0),((0,f.openBlock)(),(0,f.createBlock)(c.t,{key:O.value,actions:q.value,config:K.value},null,8,[`actions`,`config`]))]),default:(0,f.withCtx)(()=>[E.value&&o.editor.model.value?((0,f.openBlock)(),(0,f.createBlock)((0,f.unref)(u.o),{key:O.value,ref_key:`formRef`,ref:b,modelValue:z.value,"onUpdate:modelValue":t[0]||=e=>z.value=e,options:o.options,config:V.value,renderers:o.renderers,inert:j.value||P.value},(0,f.createSlots)({_:2},[(0,f.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,f.withCtx)(t=>[(0,f.renderSlot)(e.$slots,n,(0,f.normalizeProps)((0,f.guardReactiveProps)(t)),void 0,!0)])}))]),1032,[`modelValue`,`options`,`config`,`renderers`,`inert`])):(0,f.createCommentVNode)(`v-if`,!0)]),_:3},8,[`show`,`title`,`aria-label`,`style`,`header-style`,`content-style`,`footer-style`,`mask-closable`,`close-on-esc`,`closable`,`class`]))}});var g=o.t(h,[[`__scopeId`,`data-v-637a9107`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|
package/dist/C_FormModal2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./density.js";import{t}from"./observer.js";import{a as n,t as r}from"./data2.js";import{t as i}from"./useComponentLocale.js";import{t as a}from"./feedback.js";import{n as o}from"./useComponentTheme.js";import{t as s}from"./export-helper.js";import{t as c}from"./useActionTask.js";import{a as l,t as u}from"./C_ActionBar2.js";import{o as d,r as f}from"./useFormConfig.js";import{o as
|
|
1
|
+
import{t as e}from"./density.js";import{t}from"./observer.js";import{a as n,t as r}from"./data2.js";import{t as i}from"./useComponentLocale.js";import{t as a}from"./feedback.js";import{n as o}from"./useComponentTheme.js";import{t as s}from"./export-helper.js";import{t as c}from"./useActionTask.js";import{a as l,t as u}from"./C_ActionBar2.js";import{o as d,r as f}from"./useFormConfig.js";import{o as ee}from"./fieldRenderers.js";import{t as te}from"./formModal.js";import{computed as p,createBlock as m,createCommentVNode as h,createElementBlock as g,createSlots as ne,defineComponent as _,guardReactiveProps as v,normalizeClass as y,normalizeProps as b,normalizeStyle as x,onScopeDispose as S,openBlock as C,ref as w,renderList as re,renderSlot as ie,shallowRef as ae,toDisplayString as T,unref as E,watch as D,withCtx as O}from"vue";import{NModal as oe}from"naive-ui";const se={key:0,role:`status`,style:{margin:`0 0 8px`}};var k=s(_({name:`C_FormModal`,__name:`index`,props:{editor:{},options:{},config:{default:()=>({})},renderers:{},width:{default:`min(620px, calc(100vw - 24px))`},createText:{},saveText:{},cancelText:{},closable:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},beforeClose:{},sessionKey:{}},emits:[`submit`,`close`],setup(s,{expose:_,emit:k}){let A=o(),j=s,M=k,N=w(null),P=d(),F=p(()=>f(j.config,P)),ce=a(()=>F.value.feedback),{t:I}=i(()=>F.value.locale),L=p(()=>j.config?.density??P.density??`compact`),R=p({get:()=>j.editor.visible.value,set:e=>{e||$()}}),z=p(()=>j.editor.title.value),B=w(0),V=w(!1),H=c(),U=p(()=>H.isRunning(B.value)),W=p(()=>U.value||j.editor.loading.value||!!N.value?.isSubmitting),G=ae(),K=p(()=>G.value!==void 0),q=p(()=>W.value||K.value),J=!1;function Y(){let e=G.value;G.value=void 0,e?.abort()}D([()=>j.editor,()=>j.editor.visible.value,()=>j.sessionKey],([e,t,n],[r,,i])=>{(t||e!==r||n!==i)&&(B.value++,V.value=!1),Y()},{flush:`sync`}),S(()=>{J=!0,B.value++,Y()});let X=p(()=>te(j.width,L.value)),Z=p({get:()=>j.editor.model.value??{},set:e=>{U.value||j.editor.setModel(e)}}),le=e=>e===void 0||n(e,N.value?.getModel())?!0:(V.value=!0,!1),ue=p(()=>({...j.config,...U.value?{disabled:!0}:{},density:L.value,mode:j.editor.mode.value,showActions:!1,submitSuccessText:``,onSubmit:async(e,n)=>{let{editor:i,config:a}=j,o=B.value;V.value=!1;let s=()=>o===B.value&&!n?.signal.aborted&&i.visible.value,c;a?.onSubmit&&(c=r(e.model),await a.onSubmit(e,n));let l=await H.run(o,()=>i.submit(e.model),()=>s()&&le(c));if(!l.executed)return;let u=l.value;if(o!==B.value||!u&&!s())return;M(`submit`,e,u);let d=F.value.submitSuccessText;u&&d&&t(()=>ce.success(d))}}));function de(e,t){return new Promise(n=>{let r=e=>{t.removeEventListener(`abort`,i),n(e===!0)},i=()=>r(!1);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve().then(()=>!t.aborted&&e({signal:t})).then(r,i)})}async function fe(e,t){let n=new AbortController,{signal:r}=n,i=D([()=>j.editor.model.value,W],Y,{deep:!0,flush:`sync`});r.addEventListener(`abort`,i,{once:!0}),G.value=n;try{return!await de(e,r)||G.value!==n?!1:(i(),G.value=void 0,t(),!0)}finally{i(),r.removeEventListener(`abort`,i),G.value===n&&(G.value=void 0)}}async function Q(e){if(J||q.value||!R.value)return!1;let{beforeClose:t}=j;return t&&N.value?.isDirty?fe(t,e):(e(),!0)}function $(){return Q(()=>{j.editor.close(),M(`close`)})}_({requestDiscard:Q});let pe=p(()=>{let t=e(L.value);return{align:`right`,size:F.value.size??(L.value===`compact`?`tiny`:t.size),gap:t.gap,compact:L.value===`compact`}}),me=p(()=>l([{key:`cancel`,label:j.cancelText||I(`common.cancel`),disabled:q,autoLoading:!1,onClick:$},{key:j.editor.mode.value===`create`?`create`:`save`,label:j.editor.mode.value===`create`?j.createText===void 0?I(`common.create`):j.createText||I(`common.add`):j.saveText||I(`common.save`),disabled:K,loading:W,onClick:async()=>{await N.value?.submit()}}]));return(e,t)=>(C(),m(E(oe),{show:R.value,"onUpdate:show":t[1]||=e=>R.value=e,preset:`card`,title:z.value,"aria-label":z.value,style:x({...E(A),...X.value.shell}),"header-style":X.value.header,"content-style":X.value.content,"footer-style":X.value.footer,"footer-class":`c-form-modal__footer`,"mask-closable":s.maskClosable&&!q.value,"close-on-esc":s.closeOnEsc&&!q.value,closable:s.closable&&!q.value,class:y([`c-form-modal`,`c-form-modal--${L.value}`])},{footer:O(()=>[V.value?(C(),g(`p`,se,T(E(I)(`form.draftChanged`)),1)):h(`v-if`,!0),(C(),m(u,{key:B.value,actions:me.value,config:pe.value},null,8,[`actions`,`config`]))]),default:O(()=>[R.value&&s.editor.model.value?(C(),m(E(ee),{key:B.value,ref_key:`formRef`,ref:N,modelValue:Z.value,"onUpdate:modelValue":t[0]||=e=>Z.value=e,options:s.options,config:ue.value,renderers:s.renderers,inert:U.value||K.value},ne({_:2},[re(e.$slots,(t,n)=>({name:n,fn:O(t=>[ie(e.$slots,n,b(v(t)),void 0,!0)])}))]),1032,[`modelValue`,`options`,`config`,`renderers`,`inert`])):h(`v-if`,!0)]),_:3},8,[`show`,`title`,`aria-label`,`style`,`header-style`,`content-style`,`footer-style`,`mask-closable`,`close-on-esc`,`closable`,`class`]))}}),[[`__scopeId`,`data-v-637a9107`]]);export{k as t};
|
package/dist/C_FormSearch.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as ComponentDensity } from "./density.cjs";
|
|
2
2
|
import { t as OptionsState } from "./options.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { a as SearchFieldContext, c as SearchFormItem, d as SearchOptionItem, f as SearchQueryEncoding, i as SearchConfig, l as SearchFormParams, n as FormSearchExpose, o as SearchFieldSettings, r as FormSearchProps, s as SearchFieldType, t as FormSearchEmits, u as SearchNumberRangeValue } from "./types7.cjs";
|
|
4
|
+
import { a as SerializeSearchOptions, i as useSearchHistory, n as SearchDateRangeValue, o as serializeSearch, r as useSearchState, t as DateRangeInput } from "./dateRange.cjs";
|
|
4
5
|
import { AllowedComponentProps, ComponentCustomProps, EmitFn, VNode, VNodeProps } from "vue";
|
|
5
6
|
|
|
6
7
|
//#region src/components/C_FormSearch/index.d.ts
|
package/dist/C_FormSearch.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./types.js";
|
|
2
2
|
import { t as ComponentDensity } from "./density.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { bn as OptionsState } from "./component-config.js";
|
|
4
|
+
import { a as SearchFieldContext, c as SearchFormItem, d as SearchOptionItem, f as SearchQueryEncoding, i as SearchConfig, l as SearchFormParams, n as FormSearchExpose, o as SearchFieldSettings, r as FormSearchProps, s as SearchFieldType, t as FormSearchEmits, u as SearchNumberRangeValue } from "./types6.js";
|
|
5
|
+
import { a as SerializeSearchOptions, i as useSearchHistory, n as SearchDateRangeValue, o as serializeSearch, r as useSearchState, t as DateRangeInput } from "./dateRange.js";
|
|
5
6
|
import { AllowedComponentProps, ComponentCustomProps, EmitFn, VNode, VNodeProps } from "vue";
|
|
6
7
|
|
|
7
8
|
//#region src/components/C_FormSearch/index.d.ts
|