@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_ActionBar.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,23 +291,23 @@
|
|
|
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;}
|
package/dist/C_ActionBar2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./useComponentLocale.cjs`),n=require(`./useComponentTheme.cjs`),r=require(`./export-helper.cjs`),i=require(`./useComponentDensity.cjs`),a=require(`./actionIcon.cjs`),o=require(`./useActionTask.cjs`);let s=require(`vue`),c=require(`naive-ui`);const l=`mdi:gesture-tap-button`,u={align:`left`,size:`tiny`,gap:6,wrap:!1,showDivider:!1,dividerType:`vertical`,compact:!0,inline:!0},d={add:{label:`新增`,icon:`mdi:plus`,type:`primary`},create:{label:`新增`,icon:`mdi:plus`,type:`primary`},save:{label:`保存`,icon:`mdi:content-save-outline`,type:`primary`},confirm:{label:`确认`,icon:`mdi:check`,type:`primary`},cancel:{label:`取消`,icon:`mdi:close`},close:{label:`关闭`,icon:`mdi:close`},view:{label:`查看`,icon:`mdi:eye-outline`},edit:{label:`编辑`,icon:`mdi:pencil-outline`},delete:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},remove:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},refresh:{label:`刷新`,icon:`mdi:refresh`},import:{label:`导入`,icon:`mdi:file-import-outline`},export:{label:`导出`,icon:`mdi:file-export-outline`},print:{label:`打印`,icon:`mdi:printer-outline`},reset:{label:`重置`,icon:`mdi:restore`},columns:{label:`列设置`,icon:`mdi:view-column-outline`},fullscreen:{label:`全屏`,icon:`mdi:fullscreen`},settings:{label:`功能配置`,icon:`mdi:tune-variant`},more:{label:`更多`,icon:`mdi:dots-horizontal`}},f=e=>{let t=d[e.key??``]??{};return{...t,...e,label:e.label||t.label||e.key||`操作`,icon:e.icon||t.icon||l,type:e.type??t.type}},p=e=>typeof e==`function`?e():(0,s.unref)(e),m=e=>e,h={key:
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./useComponentLocale.cjs`),n=require(`./useComponentTheme.cjs`),r=require(`./export-helper.cjs`),i=require(`./useComponentDensity.cjs`),a=require(`./actionIcon.cjs`),o=require(`./useActionTask.cjs`);let s=require(`vue`),c=require(`naive-ui`);const l=`mdi:gesture-tap-button`,u={align:`left`,size:`tiny`,gap:6,wrap:!1,showDivider:!1,dividerType:`vertical`,compact:!0,inline:!0,overflowAt:0},d={add:{label:`新增`,icon:`mdi:plus`,type:`primary`},create:{label:`新增`,icon:`mdi:plus`,type:`primary`},save:{label:`保存`,icon:`mdi:content-save-outline`,type:`primary`},confirm:{label:`确认`,icon:`mdi:check`,type:`primary`},cancel:{label:`取消`,icon:`mdi:close`},close:{label:`关闭`,icon:`mdi:close`},view:{label:`查看`,icon:`mdi:eye-outline`},edit:{label:`编辑`,icon:`mdi:pencil-outline`},delete:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},remove:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},refresh:{label:`刷新`,icon:`mdi:refresh`},import:{label:`导入`,icon:`mdi:file-import-outline`},export:{label:`导出`,icon:`mdi:file-export-outline`},print:{label:`打印`,icon:`mdi:printer-outline`},reset:{label:`重置`,icon:`mdi:restore`},columns:{label:`列设置`,icon:`mdi:view-column-outline`},fullscreen:{label:`全屏`,icon:`mdi:fullscreen`},settings:{label:`功能配置`,icon:`mdi:tune-variant`},more:{label:`更多`,icon:`mdi:dots-horizontal`}},f=e=>{let t=d[e.key??``]??{};return{...t,...e,label:e.label||t.label||e.key||`操作`,icon:e.icon||t.icon||l,type:e.type??t.type}},p=e=>typeof e==`function`?e():(0,s.unref)(e),m=e=>e,h={key:0,class:`actions-center`},g=(0,s.defineComponent)({name:`C_ActionBar`,__name:`index`,props:{actions:{default:()=>[]},leftActions:{default:()=>[]},rightActions:{default:()=>[]},config:{default:()=>({})}},emits:[`action-click`,`dropdown-click`,`action-error`],setup(r,{emit:l}){let d=n.n(),m=i.t(),{t:g}=t.t(),_={add:`common.add`,create:`common.add`,save:`common.save`,confirm:`action.confirm`,cancel:`common.cancel`,close:`common.close`,view:`common.view`,edit:`common.edit`,delete:`common.delete`,remove:`common.delete`,refresh:`common.refresh`,import:`common.import`,export:`common.export`,print:`common.print`,reset:`common.reset`,columns:`table.columnSettings`,fullscreen:`common.fullscreen`,settings:`common.settings`,more:`common.more`},v=e=>{let t=f(e);if(e.label)return t;let{key:n}=e,r=n&&Object.prototype.hasOwnProperty.call(_,n)?_[n]:void 0;return{...t,label:r?g(r):n||g(`common.action`)}},y=r,b=l,x=(0,s.computed)(()=>({...u,...y.config,size:y.config.size??(m.value?e.t(m.value).size:u.size),gap:y.config.gap??(y.config.compact===!1?12:u.gap)})),S=(0,s.computed)(()=>y.leftActions?.length?y.leftActions:y.actions.filter(e=>e.group!==`right`)),C=(0,s.computed)(()=>y.rightActions?.length?y.rightActions:y.actions.filter(e=>e.group===`right`)),w=(e,t)=>{let n=new Map,r=[];return e.forEach((e,i)=>{let a=e.key===void 0?`position:${t}:${i}`:`key:${e.key}`,o=n.get(a)??0;n.set(a,o+1),p(e.show)!==!1&&r.push({action:e,taskKey:a,renderKey:`${t}:${a}:${o}`})}),r},T=(0,s.shallowRef)(),E=(0,s.ref)(),D=(0,s.ref)(!1),O=(0,s.computed)(()=>{let e=x.value.overflowAt;return Number.isFinite(e)&&e>0?e:0});(0,s.watch)(O,async e=>{e&&!T.value&&(T.value=(await Promise.resolve().then(()=>require(`./ActionOverflow.cjs`))).default)},{immediate:!0});let k=(0,s.computed)(()=>{let e=w(S.value,`left`),t=w(C.value,`right`),n=[];if(!O.value||!D.value)return{left:e,right:t,overflow:n};let r=e=>{let{action:t}=e;return t.overflow!==!0||t.buttonProps||t.directives?.length||t.dropdown?.length||t.tooltip?!0:(n.push(e),!1)};return{left:e.filter(r),right:t.filter(r),overflow:n}}),A=(0,s.computed)(()=>k.value.overflow),j=[`left`,`center`,`right`],M=o.t(),N=(e,t)=>!!(p(e.disabled)||e.buttonProps?.disabled||M.isRunning(t)),P=(e,t)=>!!(p(e.loading)||e.buttonProps?.loading||e.autoLoading!==!1&&M.isRunning(t)),F=async({action:e,taskKey:t})=>{if(!(e.dropdown&&e.dropdown.length>0))try{await M.run(t,async()=>{b(`action-click`,e),await e.onClick?.()},()=>!N(e,t)&&!P(e,t))}catch(t){throw b(`action-error`,t,e),t}},I=async(e,{action:t,taskKey:n})=>{try{await M.run(n,async()=>{b(`dropdown-click`,e,t),await e.onClick?.()},()=>!N(t,n)&&!P(t,n)&&p(e.disabled)!==!0&&p(e.show)!==!1)}catch(n){throw b(`action-error`,n,t,e),n}},L=({action:e,taskKey:t})=>{let{label:n,icon:r}=v(e);return{label:n,icon:r,disabled:N(e,t)||P(e,t)}},R=(0,s.defineComponent)({name:`ActionButton`,props:{action:{type:Object,required:!0},taskKey:{type:String,required:!0}},emits:[`click`,`dropdown-select`],setup(e,{emit:t}){let n=(0,s.computed)(()=>e.action),r=(0,s.computed)(()=>v(n.value)),i=(0,s.computed)(()=>r.value.buttonProps?.size||r.value.size||x.value.size),o=(0,s.computed)(()=>({tiny:14,small:15,medium:16,large:18})[i.value]),l=(0,s.computed)(()=>r.value.dropdown?r.value.dropdown.filter(e=>e.show===void 0?!0:p(e.show)).map(t=>{let{icon:r}=t;return{key:t.key,label:t.label,icon:r?()=>a.t(r,14):void 0,disabled:N(n.value,e.taskKey)||P(n.value,e.taskKey)||p(t.disabled)}}):[]),u=i=>{let a=r.value.dropdown?.find(e=>e.key===i);a&&!N(n.value,e.taskKey)&&!P(n.value,e.taskKey)&&p(a.disabled)!==!0&&p(a.show)!==!1&&t(`dropdown-select`,a)},d=t=>{let{icon:l,buttonProps:u}=r.value,d=r=>{if(N(n.value,e.taskKey)||P(n.value,e.taskKey))return;t?.();let i=u?.onClick;Array.isArray(i)?i.forEach(e=>e(r)):i?.(r)},f=(0,s.h)(c.NButton,{type:r.value.type||`default`,size:i.value,...u,loading:P(n.value,e.taskKey),disabled:N(n.value,e.taskKey),onClick:d},{default:()=>r.value.label,icon:l&&!u?.renderIcon?()=>a.t(l,o.value):void 0});return r.value.directives&&r.value.directives.length>0?(0,s.withDirectives)(f,r.value.directives):f},f=()=>{let e=d(()=>t(`click`));return r.value.tooltip?(0,s.h)(c.NTooltip,{placement:`top`},{trigger:()=>e,default:()=>r.value.tooltip}):e},m=()=>{let t=d();return(0,s.h)(c.NDropdown,{disabled:N(n.value,e.taskKey)||P(n.value,e.taskKey),options:l.value,onSelect:u},{default:()=>t})};return()=>r.value.dropdown&&r.value.dropdown.length>0?m():f()}});return(e,t)=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{ref_key:`bar`,ref:E,class:(0,s.normalizeClass)([`c-action-bar`,{"is-compact":x.value.compact,"is-inline":x.value.inline,"is-wrap":x.value.wrap,"has-overflow":A.value.length>0,[`is-align-${x.value.align}`]:!0,"has-only-left":k.value.left.length>0&&k.value.right.length===0&&!A.value.length&&!e.$slots.center,"has-only-right":k.value.right.length>0&&k.value.left.length===0&&!A.value.length&&!e.$slots.center}]),style:(0,s.normalizeStyle)((0,s.unref)(d))},[((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(j,t=>((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:t},[t===`center`?((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:0},[e.$slots.center?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,h,[(0,s.renderSlot)(e.$slots,`center`,{},void 0,!0)])):(0,s.createCommentVNode)(`v-if`,!0)],64)):k.value[t].length>0?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:1,class:(0,s.normalizeClass)([`actions-group`,`actions-${t}`]),style:(0,s.normalizeStyle)({gap:`${x.value.gap}px`})},[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(k.value[t],(e,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:e.renderKey},[(0,s.createVNode)((0,s.unref)(R),{action:e.action,"task-key":e.taskKey,onClick:t=>F(e),onDropdownSelect:t=>I(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),x.value.showDivider&&n<k.value[t].length-1?((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(c.NDivider),{key:0,vertical:x.value.dividerType===`vertical`,class:(0,s.normalizeClass)([`action-divider`,{"action-divider--horizontal":x.value.dividerType===`horizontal`}])},null,8,[`vertical`,`class`])):(0,s.createCommentVNode)(`v-if`,!0)],64))),128))],6)):(0,s.createCommentVNode)(`v-if`,!0)],64))),64)),O.value&&T.value?((0,s.openBlock)(),(0,s.createBlock)((0,s.resolveDynamicComponent)(T.value),{key:0,anchor:E.value,threshold:O.value,entries:A.value,size:x.value.size,resolve:L,onNarrow:t[0]||=e=>D.value=e,onSelect:F},null,40,[`anchor`,`threshold`,`entries`,`size`])):(0,s.createCommentVNode)(`v-if`,!0)],6))}});var _=r.t(g,[[`__scopeId`,`data-v-19962791`]]);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return _}});
|
package/dist/C_ActionBar2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./density.js";import{t}from"./useComponentLocale.js";import{n}from"./useComponentTheme.js";import{t as r}from"./export-helper.js";import{t as i}from"./useComponentDensity.js";import{t as a}from"./actionIcon.js";import{t as o}from"./useActionTask.js";import{Fragment as s,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createVNode as f,defineComponent as p,h as m,normalizeClass as h,normalizeStyle as g,openBlock as _,
|
|
1
|
+
import{t as e}from"./density.js";import{t}from"./useComponentLocale.js";import{n}from"./useComponentTheme.js";import{t as r}from"./export-helper.js";import{t as i}from"./useComponentDensity.js";import{t as a}from"./actionIcon.js";import{t as o}from"./useActionTask.js";import{Fragment as s,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createVNode as f,defineComponent as p,h as m,normalizeClass as h,normalizeStyle as g,openBlock as _,ref as v,renderList as y,renderSlot as ee,resolveDynamicComponent as b,shallowRef as te,unref as x,watch as S,withDirectives as C}from"vue";import{NButton as w,NDivider as T,NDropdown as E,NTooltip as D}from"naive-ui";const O=`mdi:gesture-tap-button`,k={align:`left`,size:`tiny`,gap:6,wrap:!1,showDivider:!1,dividerType:`vertical`,compact:!0,inline:!0,overflowAt:0},A={add:{label:`新增`,icon:`mdi:plus`,type:`primary`},create:{label:`新增`,icon:`mdi:plus`,type:`primary`},save:{label:`保存`,icon:`mdi:content-save-outline`,type:`primary`},confirm:{label:`确认`,icon:`mdi:check`,type:`primary`},cancel:{label:`取消`,icon:`mdi:close`},close:{label:`关闭`,icon:`mdi:close`},view:{label:`查看`,icon:`mdi:eye-outline`},edit:{label:`编辑`,icon:`mdi:pencil-outline`},delete:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},remove:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},refresh:{label:`刷新`,icon:`mdi:refresh`},import:{label:`导入`,icon:`mdi:file-import-outline`},export:{label:`导出`,icon:`mdi:file-export-outline`},print:{label:`打印`,icon:`mdi:printer-outline`},reset:{label:`重置`,icon:`mdi:restore`},columns:{label:`列设置`,icon:`mdi:view-column-outline`},fullscreen:{label:`全屏`,icon:`mdi:fullscreen`},settings:{label:`功能配置`,icon:`mdi:tune-variant`},more:{label:`更多`,icon:`mdi:dots-horizontal`}},j=e=>{let t=A[e.key??``]??{};return{...t,...e,label:e.label||t.label||e.key||`操作`,icon:e.icon||t.icon||O,type:e.type??t.type}},M=e=>typeof e==`function`?e():x(e),N=e=>e,P={key:0,class:`actions-center`};var F=r(p({name:`C_ActionBar`,__name:`index`,props:{actions:{default:()=>[]},leftActions:{default:()=>[]},rightActions:{default:()=>[]},config:{default:()=>({})}},emits:[`action-click`,`dropdown-click`,`action-error`],setup(r,{emit:O}){let A=n(),N=i(),{t:F}=t(),I={add:`common.add`,create:`common.add`,save:`common.save`,confirm:`action.confirm`,cancel:`common.cancel`,close:`common.close`,view:`common.view`,edit:`common.edit`,delete:`common.delete`,remove:`common.delete`,refresh:`common.refresh`,import:`common.import`,export:`common.export`,print:`common.print`,reset:`common.reset`,columns:`table.columnSettings`,fullscreen:`common.fullscreen`,settings:`common.settings`,more:`common.more`},L=e=>{let t=j(e);if(e.label)return t;let{key:n}=e,r=n&&Object.prototype.hasOwnProperty.call(I,n)?I[n]:void 0;return{...t,label:r?F(r):n||F(`common.action`)}},R=r,z=O,B=c(()=>({...k,...R.config,size:R.config.size??(N.value?e(N.value).size:k.size),gap:R.config.gap??(R.config.compact===!1?12:k.gap)})),V=c(()=>R.leftActions?.length?R.leftActions:R.actions.filter(e=>e.group!==`right`)),H=c(()=>R.rightActions?.length?R.rightActions:R.actions.filter(e=>e.group===`right`)),U=(e,t)=>{let n=new Map,r=[];return e.forEach((e,i)=>{let a=e.key===void 0?`position:${t}:${i}`:`key:${e.key}`,o=n.get(a)??0;n.set(a,o+1),M(e.show)!==!1&&r.push({action:e,taskKey:a,renderKey:`${t}:${a}:${o}`})}),r},W=te(),G=v(),K=v(!1),q=c(()=>{let e=B.value.overflowAt;return Number.isFinite(e)&&e>0?e:0});S(q,async e=>{e&&!W.value&&(W.value=(await import(`./ActionOverflow.js`)).default)},{immediate:!0});let J=c(()=>{let e=U(V.value,`left`),t=U(H.value,`right`),n=[];if(!q.value||!K.value)return{left:e,right:t,overflow:n};let r=e=>{let{action:t}=e;return t.overflow!==!0||t.buttonProps||t.directives?.length||t.dropdown?.length||t.tooltip?!0:(n.push(e),!1)};return{left:e.filter(r),right:t.filter(r),overflow:n}}),Y=c(()=>J.value.overflow),ne=[`left`,`center`,`right`],X=o(),Z=(e,t)=>!!(M(e.disabled)||e.buttonProps?.disabled||X.isRunning(t)),Q=(e,t)=>!!(M(e.loading)||e.buttonProps?.loading||e.autoLoading!==!1&&X.isRunning(t)),$=async({action:e,taskKey:t})=>{if(!(e.dropdown&&e.dropdown.length>0))try{await X.run(t,async()=>{z(`action-click`,e),await e.onClick?.()},()=>!Z(e,t)&&!Q(e,t))}catch(t){throw z(`action-error`,t,e),t}},re=async(e,{action:t,taskKey:n})=>{try{await X.run(n,async()=>{z(`dropdown-click`,e,t),await e.onClick?.()},()=>!Z(t,n)&&!Q(t,n)&&M(e.disabled)!==!0&&M(e.show)!==!1)}catch(n){throw z(`action-error`,n,t,e),n}},ie=({action:e,taskKey:t})=>{let{label:n,icon:r}=L(e);return{label:n,icon:r,disabled:Z(e,t)||Q(e,t)}},ae=p({name:`ActionButton`,props:{action:{type:Object,required:!0},taskKey:{type:String,required:!0}},emits:[`click`,`dropdown-select`],setup(e,{emit:t}){let n=c(()=>e.action),r=c(()=>L(n.value)),i=c(()=>r.value.buttonProps?.size||r.value.size||B.value.size),o=c(()=>({tiny:14,small:15,medium:16,large:18})[i.value]),s=c(()=>r.value.dropdown?r.value.dropdown.filter(e=>e.show===void 0?!0:M(e.show)).map(t=>{let{icon:r}=t;return{key:t.key,label:t.label,icon:r?()=>a(r,14):void 0,disabled:Z(n.value,e.taskKey)||Q(n.value,e.taskKey)||M(t.disabled)}}):[]),l=i=>{let a=r.value.dropdown?.find(e=>e.key===i);a&&!Z(n.value,e.taskKey)&&!Q(n.value,e.taskKey)&&M(a.disabled)!==!0&&M(a.show)!==!1&&t(`dropdown-select`,a)},u=t=>{let{icon:s,buttonProps:c}=r.value,l=r=>{if(Z(n.value,e.taskKey)||Q(n.value,e.taskKey))return;t?.();let i=c?.onClick;Array.isArray(i)?i.forEach(e=>e(r)):i?.(r)},u=m(w,{type:r.value.type||`default`,size:i.value,...c,loading:Q(n.value,e.taskKey),disabled:Z(n.value,e.taskKey),onClick:l},{default:()=>r.value.label,icon:s&&!c?.renderIcon?()=>a(s,o.value):void 0});return r.value.directives&&r.value.directives.length>0?C(u,r.value.directives):u},d=()=>{let e=u(()=>t(`click`));return r.value.tooltip?m(D,{placement:`top`},{trigger:()=>e,default:()=>r.value.tooltip}):e},f=()=>{let t=u();return m(E,{disabled:Z(n.value,e.taskKey)||Q(n.value,e.taskKey),options:s.value,onSelect:l},{default:()=>t})};return()=>r.value.dropdown&&r.value.dropdown.length>0?f():d()}});return(e,t)=>(_(),d(`div`,{ref_key:`bar`,ref:G,class:h([`c-action-bar`,{"is-compact":B.value.compact,"is-inline":B.value.inline,"is-wrap":B.value.wrap,"has-overflow":Y.value.length>0,[`is-align-${B.value.align}`]:!0,"has-only-left":J.value.left.length>0&&J.value.right.length===0&&!Y.value.length&&!e.$slots.center,"has-only-right":J.value.right.length>0&&J.value.left.length===0&&!Y.value.length&&!e.$slots.center}]),style:g(x(A))},[(_(),d(s,null,y(ne,t=>(_(),d(s,{key:t},[t===`center`?(_(),d(s,{key:0},[e.$slots.center?(_(),d(`div`,P,[ee(e.$slots,`center`,{},void 0,!0)])):u(`v-if`,!0)],64)):J.value[t].length>0?(_(),d(`div`,{key:1,class:h([`actions-group`,`actions-${t}`]),style:g({gap:`${B.value.gap}px`})},[(_(!0),d(s,null,y(J.value[t],(e,n)=>(_(),d(s,{key:e.renderKey},[f(x(ae),{action:e.action,"task-key":e.taskKey,onClick:t=>$(e),onDropdownSelect:t=>re(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),B.value.showDivider&&n<J.value[t].length-1?(_(),l(x(T),{key:0,vertical:B.value.dividerType===`vertical`,class:h([`action-divider`,{"action-divider--horizontal":B.value.dividerType===`horizontal`}])},null,8,[`vertical`,`class`])):u(`v-if`,!0)],64))),128))],6)):u(`v-if`,!0)],64))),64)),q.value&&W.value?(_(),l(b(W.value),{key:0,anchor:G.value,threshold:q.value,entries:Y.value,size:B.value.size,resolve:ie,onNarrow:t[0]||=e=>K.value=e,onSelect:$},null,40,[`anchor`,`threshold`,`entries`,`size`])):u(`v-if`,!0)],6))}}),[[`__scopeId`,`data-v-19962791`]]);export{N as a,O as i,k as n,j as o,A as r,F as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./C_ApprovalViewer2.cjs`);exports.C_ApprovalViewer=e.t;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@import "./shared-tokens.css";
|
|
2
|
+
.c-approval-viewer[data-v-e987565d] {
|
|
3
|
+
width: min(728px, 100% - 32px);
|
|
4
|
+
max-height: calc(100dvh - 32px);
|
|
5
|
+
}
|
|
6
|
+
.c-approval-viewer__picker[data-v-e987565d], .c-approval-viewer__notice[data-v-e987565d], .c-approval-viewer__summary-heading[data-v-e987565d], .c-approval-viewer__views[data-v-e987565d] {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
gap: 8px 12px;
|
|
11
|
+
}
|
|
12
|
+
.c-approval-viewer__picker[data-v-e987565d] {
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
margin-bottom: 16px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
}
|
|
17
|
+
.c-approval-viewer__picker select[data-v-e987565d] {
|
|
18
|
+
min-width: 0;
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
min-height: var(--c-control-height-small, var(--c-theme-control-height-small, 28px));
|
|
21
|
+
padding-inline: 8px;
|
|
22
|
+
border: 1px solid var(--c-border, var(--c-theme-border));
|
|
23
|
+
border-radius: var(--c-radius, var(--c-theme-radius));
|
|
24
|
+
background: var(--c-bg-card, var(--c-theme-bg-card));
|
|
25
|
+
color: inherit;
|
|
26
|
+
font: inherit;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
}
|
|
29
|
+
.c-approval-viewer__picker select[data-v-e987565d]:focus-visible {
|
|
30
|
+
outline: 2px solid var(--c-focus-ring, var(--c-theme-focus-ring));
|
|
31
|
+
outline-offset: 2px;
|
|
32
|
+
}
|
|
33
|
+
.c-approval-viewer__notice[data-v-e987565d] {
|
|
34
|
+
min-height: 32px;
|
|
35
|
+
margin: 0 0 12px;
|
|
36
|
+
color: var(--c-text-2, var(--c-theme-text-2));
|
|
37
|
+
}
|
|
38
|
+
.c-approval-viewer__detail[data-v-e987565d] {
|
|
39
|
+
display: grid;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
gap: 16px;
|
|
42
|
+
}
|
|
43
|
+
.c-approval-viewer__summary[data-v-e987565d] {
|
|
44
|
+
display: grid;
|
|
45
|
+
gap: 12px;
|
|
46
|
+
padding: 14px 16px;
|
|
47
|
+
border: 1px solid var(--c-border, var(--c-theme-border));
|
|
48
|
+
border-radius: var(--c-radius-panel, var(--c-theme-radius-panel));
|
|
49
|
+
background: var(--c-bg-muted, var(--c-theme-bg-muted));
|
|
50
|
+
}
|
|
51
|
+
.c-approval-viewer__summary-heading strong[data-v-e987565d], .c-approval-viewer__meta dd[data-v-e987565d], .c-approval-viewer__comment[data-v-e987565d] {
|
|
52
|
+
overflow-wrap: anywhere;
|
|
53
|
+
}
|
|
54
|
+
.c-approval-viewer__meta[data-v-e987565d] {
|
|
55
|
+
display: grid;
|
|
56
|
+
grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
|
|
57
|
+
gap: 8px 16px;
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
.c-approval-viewer__meta dt[data-v-e987565d] {
|
|
61
|
+
color: var(--c-text-2, var(--c-theme-text-2));
|
|
62
|
+
font-size: 12px;
|
|
63
|
+
}
|
|
64
|
+
.c-approval-viewer__meta dd[data-v-e987565d] {
|
|
65
|
+
margin: 2px 0 0;
|
|
66
|
+
font-variant-numeric: tabular-nums;
|
|
67
|
+
}
|
|
68
|
+
.c-approval-viewer__history h3[data-v-e987565d] {
|
|
69
|
+
margin: 0 0 12px;
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
}
|
|
73
|
+
.c-approval-viewer__actor[data-v-e987565d] {
|
|
74
|
+
color: var(--c-text-2, var(--c-theme-text-2));
|
|
75
|
+
overflow-wrap: anywhere;
|
|
76
|
+
}
|
|
77
|
+
.c-approval-viewer__comment[data-v-e987565d] {
|
|
78
|
+
white-space: pre-wrap;
|
|
79
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as ApprovalInstanceSummary, i as ApprovalInstanceStatus, n as ApprovalHistoryEvent, o as ApprovalViewerProps, r as ApprovalInstanceDetail, s as ApprovalViewerSource, t as _default } from "./index.vue.cjs";
|
|
2
|
+
export { type ApprovalHistoryEvent, type ApprovalInstanceDetail, type ApprovalInstanceStatus, type ApprovalInstanceSummary, type ApprovalViewerProps, type ApprovalViewerSource, _default as C_ApprovalViewer };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as ApprovalInstanceSummary, i as ApprovalInstanceStatus, n as ApprovalHistoryEvent, o as ApprovalViewerProps, r as ApprovalInstanceDetail, s as ApprovalViewerSource, t as _default } from "./index.vue.js";
|
|
2
|
+
export { type ApprovalHistoryEvent, type ApprovalInstanceDetail, type ApprovalInstanceStatus, type ApprovalInstanceSummary, type ApprovalViewerProps, type ApprovalViewerSource, _default as C_ApprovalViewer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./C_ApprovalViewer2.js";export{e as C_ApprovalViewer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./useDataResource.cjs`),t=require(`./useComponentTheme.cjs`),n=require(`./export-helper.cjs`),r=require(`./useScopedComponentLocale.cjs`);let i=require(`vue`),a=require(`naive-ui`);const o={"approval.title":`审批详情`,"approval.instances":`历次审批`,"approval.summary":`审批概览`,"approval.initiator":`发起人`,"approval.handler":`当前处理人`,"approval.startedAt":`发起时间`,"approval.finishedAt":`结束时间`,"approval.records":`审批记录`,"approval.diagram":`流程图`,"approval.loadingInstances":`正在加载历次审批…`,"approval.loadingDetail":`正在加载审批详情…`,"approval.instancesError":`历次审批加载失败`,"approval.detailError":`审批详情加载失败`,"approval.noInstances":`该单据暂无审批记录`,"approval.noEvents":`本次审批暂无处理记录`,"approval.noBusinessKey":`请选择要查看的单据`,"approval.retry":`重试`,"approval.status.pending":`待处理`,"approval.status.running":`审批中`,"approval.status.approved":`已通过`,"approval.status.rejected":`已驳回`,"approval.status.withdrawn":`已撤回`,"approval.status.cancelled":`已取消`,"approval.status.terminated":`已终止`},s={"approval.title":`Approval details`,"approval.instances":`Approval attempts`,"approval.summary":`Approval summary`,"approval.initiator":`Submitted by`,"approval.handler":`Current assignee`,"approval.startedAt":`Submitted at`,"approval.finishedAt":`Finished at`,"approval.records":`Approval history`,"approval.diagram":`Workflow diagram`,"approval.loadingInstances":`Loading approval attempts…`,"approval.loadingDetail":`Loading approval details…`,"approval.instancesError":`Could not load approval attempts`,"approval.detailError":`Could not load approval details`,"approval.noInstances":`This record has no approval attempts`,"approval.noEvents":`This attempt has no approval activity`,"approval.noBusinessKey":`Select a business record to view its approvals`,"approval.retry":`Retry`,"approval.status.pending":`Pending`,"approval.status.running":`In progress`,"approval.status.approved":`Approved`,"approval.status.rejected":`Rejected`,"approval.status.withdrawn":`Withdrawn`,"approval.status.cancelled":`Cancelled`,"approval.status.terminated":`Terminated`};function c(t){let n=(0,i.shallowRef)(),r=(0,i.shallowRef)();(0,i.watch)(()=>[t.show,t.businessKey,t.source,t.instanceId],([e,t,i,a])=>{let o=n.value?.scope,s=o?.businessKey===t&&o.source===i?o:{businessKey:t,source:i};n.value=e&&t.trim()?{scope:s,requestedId:a}:void 0,r.value=void 0},{immediate:!0});let a=(0,i.computed)(()=>n.value?.scope),o=e.t({key:a,async load({key:e,signal:t}){let n=await e.source.listInstances(e.businessKey,t);if(!Array.isArray(n))throw TypeError(`Invalid approval list`);return{scope:e,instances:[...n].sort((e,t)=>t.startedAt-e.startedAt)}},isEmpty:e=>e.instances.length===0}),s=(0,i.computed)(()=>{let e=o.data.value;return e&&e.scope===a.value?e.instances:[]}),c=(0,i.computed)(()=>{let e=n.value?.requestedId;return e&&!s.value.some(t=>t.id===e)?e:void 0}),l=(0,i.computed)(()=>{let e=n.value;if(e)return r.value?.session===e?r.value.id:e.requestedId||s.value[0]?.id}),u=e.t({key:(0,i.computed)(()=>{let e=a.value,t=l.value;return e&&t?{scope:e,id:t}:void 0}),async load({key:e,signal:t}){let n=await e.scope.source.getInstance(e.id,t);if(n?.id!==e.id||!Array.isArray(n.history))throw TypeError(`Invalid approval detail`);return{...n,history:[...n.history].sort((e,t)=>e.occurredAt-t.occurredAt)}}});function d(e){let t=n.value;t&&(e===c.value||s.value.some(t=>t.id===e))&&(r.value={session:t,id:e})}return{activeId:l,detail:u,directOption:c,instances:s,list:o,select:d}}const l={key:0,class:`c-approval-viewer__picker`},u=[`value`],d=[`value`],f=[`value`],p={key:1,class:`c-approval-viewer__notice`,role:`status`},m={key:2,class:`c-approval-viewer__notice`,role:`alert`},h={key:4,class:`c-approval-viewer__notice`,role:`status`},g={key:5,class:`c-approval-viewer__notice`,role:`alert`},_={key:6,class:`c-approval-viewer__detail`},v=[`aria-label`],y={class:`c-approval-viewer__summary-heading`},b={class:`c-approval-viewer__meta`},x={key:0},S={key:1},C={key:2},w=[`aria-label`],T=[`aria-label`],E={key:0,class:`c-approval-viewer__actor`},D={key:1,class:`c-approval-viewer__comment`},O=(0,i.defineComponent)({name:`C_ApprovalViewer`,__name:`index`,props:{show:{type:Boolean},businessKey:{},source:{},instanceId:{},title:{},locale:{}},emits:[`update:show`],setup(e,{emit:n}){let O=e,k=n,{t:A,locale:j}=r.t(o,s,()=>O.locale),M=t.n(),N=(0,i.computed)(()=>O.title??A(`approval.title`)),P=(0,i.computed)(()=>new Intl.DateTimeFormat(j.value,{dateStyle:`medium`,timeStyle:`short`})),F={pending:`warning`,running:`info`,approved:`success`,rejected:`error`,withdrawn:`default`,cancelled:`default`,terminated:`warning`},{activeId:I,detail:L,directOption:R,instances:z,list:B,select:V}=c(O),{data:H,status:U}=L,{status:W}=B,G=(0,i.ref)(!1);(0,i.watch)(H,()=>{G.value=!1});function K(e){return A(`approval.status.${e}`)}function q(e){let t=new Date(e);return Number.isFinite(t.getTime())?P.value.format(t):`—`}return(t,n)=>((0,i.openBlock)(),(0,i.createBlock)((0,i.unref)(a.NModal),{show:e.show,preset:`card`,closable:``,"close-focusable":``,title:N.value,"aria-label":N.value,class:`c-approval-viewer`,style:(0,i.normalizeStyle)((0,i.unref)(M)),"content-style":{minHeight:0,overflowY:`auto`},"onUpdate:show":n[5]||=e=>k(`update:show`,e)},{default:(0,i.withCtx)(()=>[(0,i.unref)(z).length?((0,i.openBlock)(),(0,i.createElementBlock)(`label`,l,[(0,i.createElementVNode)(`span`,null,(0,i.toDisplayString)((0,i.unref)(A)(`approval.instances`)),1),(0,i.createElementVNode)(`select`,{value:(0,i.unref)(I),onChange:n[0]||=e=>(0,i.unref)(V)(e.target.value)},[(0,i.unref)(R)?((0,i.openBlock)(),(0,i.createElementBlock)(`option`,{key:0,value:(0,i.unref)(R)},(0,i.toDisplayString)((0,i.unref)(R)),9,d)):(0,i.createCommentVNode)(`v-if`,!0),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)((0,i.unref)(z),e=>((0,i.openBlock)(),(0,i.createElementBlock)(`option`,{key:e.id,value:e.id},(0,i.toDisplayString)(e.label??e.id)+` · `+(0,i.toDisplayString)(K(e.status)),9,f))),128))],40,u)])):(0,i.createCommentVNode)(`v-if`,!0),(0,i.unref)(W)===`loading`?((0,i.openBlock)(),(0,i.createElementBlock)(`p`,p,(0,i.toDisplayString)((0,i.unref)(A)(`approval.loadingInstances`)),1)):(0,i.unref)(W)===`error`?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,m,[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(A)(`approval.instancesError`))+` `,1),(0,i.createVNode)((0,i.unref)(a.NButton),{size:`small`,onClick:n[1]||=e=>(0,i.unref)(B).reload()},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(A)(`approval.retry`)),1)]),_:1})])):!(0,i.unref)(I)&&(!e.businessKey.trim()||(0,i.unref)(W)===`empty`)?((0,i.openBlock)(),(0,i.createBlock)((0,i.unref)(a.NEmpty),{key:3,description:(0,i.unref)(A)(e.businessKey.trim()?`approval.noInstances`:`approval.noBusinessKey`)},null,8,[`description`])):(0,i.createCommentVNode)(`v-if`,!0),(0,i.unref)(U)===`loading`?((0,i.openBlock)(),(0,i.createElementBlock)(`p`,h,(0,i.toDisplayString)((0,i.unref)(A)(`approval.loadingDetail`)),1)):(0,i.unref)(U)===`error`?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,g,[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(A)(`approval.detailError`))+` `,1),(0,i.createVNode)((0,i.unref)(a.NButton),{size:`small`,onClick:n[2]||=e=>(0,i.unref)(L).reload()},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(A)(`approval.retry`)),1)]),_:1})])):(0,i.unref)(H)?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,_,[(0,i.createElementVNode)(`section`,{class:`c-approval-viewer__summary`,"aria-label":(0,i.unref)(A)(`approval.summary`)},[(0,i.createElementVNode)(`div`,y,[(0,i.createElementVNode)(`strong`,null,(0,i.toDisplayString)((0,i.unref)(H).label??(0,i.unref)(H).id),1),(0,i.createVNode)((0,i.unref)(a.NTag),{type:F[(0,i.unref)(H).status],size:`small`,round:``},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(K((0,i.unref)(H).status)),1)]),_:1},8,[`type`])]),(0,i.createElementVNode)(`dl`,b,[(0,i.unref)(H).initiator?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,x,[(0,i.createElementVNode)(`dt`,null,(0,i.toDisplayString)((0,i.unref)(A)(`approval.initiator`)),1),(0,i.createElementVNode)(`dd`,null,(0,i.toDisplayString)((0,i.unref)(H).initiator),1)])):(0,i.createCommentVNode)(`v-if`,!0),(0,i.unref)(H).currentHandler?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,S,[(0,i.createElementVNode)(`dt`,null,(0,i.toDisplayString)((0,i.unref)(A)(`approval.handler`)),1),(0,i.createElementVNode)(`dd`,null,(0,i.toDisplayString)((0,i.unref)(H).currentHandler),1)])):(0,i.createCommentVNode)(`v-if`,!0),(0,i.createElementVNode)(`div`,null,[(0,i.createElementVNode)(`dt`,null,(0,i.toDisplayString)((0,i.unref)(A)(`approval.startedAt`)),1),(0,i.createElementVNode)(`dd`,null,(0,i.toDisplayString)(q((0,i.unref)(H).startedAt)),1)]),(0,i.unref)(H).finishedAt==null?(0,i.createCommentVNode)(`v-if`,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`div`,C,[(0,i.createElementVNode)(`dt`,null,(0,i.toDisplayString)((0,i.unref)(A)(`approval.finishedAt`)),1),(0,i.createElementVNode)(`dd`,null,(0,i.toDisplayString)(q((0,i.unref)(H).finishedAt)),1)]))])],8,v),t.$slots.diagram?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:`c-approval-viewer__views`,role:`group`,"aria-label":(0,i.unref)(A)(`approval.summary`)},[(0,i.createVNode)((0,i.unref)(a.NButton),{size:`small`,type:G.value?`default`:`primary`,"aria-pressed":!G.value,onClick:n[3]||=e=>G.value=!1},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(A)(`approval.records`)),1)]),_:1},8,[`type`,`aria-pressed`]),(0,i.createVNode)((0,i.unref)(a.NButton),{size:`small`,type:G.value?`primary`:`default`,"aria-pressed":G.value,onClick:n[4]||=e=>G.value=!0},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)((0,i.unref)(A)(`approval.diagram`)),1)]),_:1},8,[`type`,`aria-pressed`])],8,w)):(0,i.createCommentVNode)(`v-if`,!0),t.$slots.diagram&&G.value?(0,i.renderSlot)(t.$slots,`diagram`,{instance:(0,i.unref)(H)},void 0,!0,1):((0,i.openBlock)(),(0,i.createElementBlock)(`section`,{key:2,class:`c-approval-viewer__history`,"aria-label":(0,i.unref)(A)(`approval.records`)},[(0,i.createElementVNode)(`h3`,null,(0,i.toDisplayString)((0,i.unref)(A)(`approval.records`)),1),(0,i.unref)(H).history.length?((0,i.openBlock)(),(0,i.createBlock)((0,i.unref)(a.NTimeline),{key:0},{default:(0,i.withCtx)(()=>[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)((0,i.unref)(H).history,e=>((0,i.openBlock)(),(0,i.createBlock)((0,i.unref)(a.NTimelineItem),{key:e.id,title:e.title,time:q(e.occurredAt)},{default:(0,i.withCtx)(()=>[e.actor?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,E,(0,i.toDisplayString)(e.actor),1)):(0,i.createCommentVNode)(`v-if`,!0),e.comment?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,D,(0,i.toDisplayString)(e.comment),1)):(0,i.createCommentVNode)(`v-if`,!0)]),_:2},1032,[`title`,`time`]))),128))]),_:1})):((0,i.openBlock)(),(0,i.createBlock)((0,i.unref)(a.NEmpty),{key:1,description:(0,i.unref)(A)(`approval.noEvents`)},null,8,[`description`]))],8,T))])):(0,i.createCommentVNode)(`v-if`,!0)]),_:3},8,[`show`,`title`,`aria-label`,`style`]))}});var k=n.t(O,[[`__scopeId`,`data-v-e987565d`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return k}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./useDataResource.js";import{n as t}from"./useComponentTheme.js";import{t as n}from"./export-helper.js";import{t as r}from"./useScopedComponentLocale.js";import{Fragment as i,computed as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createElementVNode as l,createTextVNode as u,createVNode as d,defineComponent as f,normalizeStyle as ee,openBlock as p,ref as m,renderList as h,renderSlot as te,shallowRef as g,toDisplayString as _,unref as v,watch as y,withCtx as b}from"vue";import{NButton as x,NEmpty as S,NModal as ne,NTag as C,NTimeline as w,NTimelineItem as T}from"naive-ui";const re={"approval.title":`审批详情`,"approval.instances":`历次审批`,"approval.summary":`审批概览`,"approval.initiator":`发起人`,"approval.handler":`当前处理人`,"approval.startedAt":`发起时间`,"approval.finishedAt":`结束时间`,"approval.records":`审批记录`,"approval.diagram":`流程图`,"approval.loadingInstances":`正在加载历次审批…`,"approval.loadingDetail":`正在加载审批详情…`,"approval.instancesError":`历次审批加载失败`,"approval.detailError":`审批详情加载失败`,"approval.noInstances":`该单据暂无审批记录`,"approval.noEvents":`本次审批暂无处理记录`,"approval.noBusinessKey":`请选择要查看的单据`,"approval.retry":`重试`,"approval.status.pending":`待处理`,"approval.status.running":`审批中`,"approval.status.approved":`已通过`,"approval.status.rejected":`已驳回`,"approval.status.withdrawn":`已撤回`,"approval.status.cancelled":`已取消`,"approval.status.terminated":`已终止`},ie={"approval.title":`Approval details`,"approval.instances":`Approval attempts`,"approval.summary":`Approval summary`,"approval.initiator":`Submitted by`,"approval.handler":`Current assignee`,"approval.startedAt":`Submitted at`,"approval.finishedAt":`Finished at`,"approval.records":`Approval history`,"approval.diagram":`Workflow diagram`,"approval.loadingInstances":`Loading approval attempts…`,"approval.loadingDetail":`Loading approval details…`,"approval.instancesError":`Could not load approval attempts`,"approval.detailError":`Could not load approval details`,"approval.noInstances":`This record has no approval attempts`,"approval.noEvents":`This attempt has no approval activity`,"approval.noBusinessKey":`Select a business record to view its approvals`,"approval.retry":`Retry`,"approval.status.pending":`Pending`,"approval.status.running":`In progress`,"approval.status.approved":`Approved`,"approval.status.rejected":`Rejected`,"approval.status.withdrawn":`Withdrawn`,"approval.status.cancelled":`Cancelled`,"approval.status.terminated":`Terminated`};function ae(t){let n=g(),r=g();y(()=>[t.show,t.businessKey,t.source,t.instanceId],([e,t,i,a])=>{let o=n.value?.scope,s=o?.businessKey===t&&o.source===i?o:{businessKey:t,source:i};n.value=e&&t.trim()?{scope:s,requestedId:a}:void 0,r.value=void 0},{immediate:!0});let i=a(()=>n.value?.scope),o=e({key:i,async load({key:e,signal:t}){let n=await e.source.listInstances(e.businessKey,t);if(!Array.isArray(n))throw TypeError(`Invalid approval list`);return{scope:e,instances:[...n].sort((e,t)=>t.startedAt-e.startedAt)}},isEmpty:e=>e.instances.length===0}),s=a(()=>{let e=o.data.value;return e&&e.scope===i.value?e.instances:[]}),c=a(()=>{let e=n.value?.requestedId;return e&&!s.value.some(t=>t.id===e)?e:void 0}),l=a(()=>{let e=n.value;if(e)return r.value?.session===e?r.value.id:e.requestedId||s.value[0]?.id}),u=e({key:a(()=>{let e=i.value,t=l.value;return e&&t?{scope:e,id:t}:void 0}),async load({key:e,signal:t}){let n=await e.scope.source.getInstance(e.id,t);if(n?.id!==e.id||!Array.isArray(n.history))throw TypeError(`Invalid approval detail`);return{...n,history:[...n.history].sort((e,t)=>e.occurredAt-t.occurredAt)}}});function d(e){let t=n.value;t&&(e===c.value||s.value.some(t=>t.id===e))&&(r.value={session:t,id:e})}return{activeId:l,detail:u,directOption:c,instances:s,list:o,select:d}}const oe={key:0,class:`c-approval-viewer__picker`},se=[`value`],ce=[`value`],le=[`value`],ue={key:1,class:`c-approval-viewer__notice`,role:`status`},E={key:2,class:`c-approval-viewer__notice`,role:`alert`},D={key:4,class:`c-approval-viewer__notice`,role:`status`},O={key:5,class:`c-approval-viewer__notice`,role:`alert`},k={key:6,class:`c-approval-viewer__detail`},A=[`aria-label`],j={class:`c-approval-viewer__summary-heading`},M={class:`c-approval-viewer__meta`},N={key:0},P={key:1},F={key:2},I=[`aria-label`],L=[`aria-label`],R={key:0,class:`c-approval-viewer__actor`},z={key:1,class:`c-approval-viewer__comment`};var B=n(f({name:`C_ApprovalViewer`,__name:`index`,props:{show:{type:Boolean},businessKey:{},source:{},instanceId:{},title:{},locale:{}},emits:[`update:show`],setup(e,{emit:n}){let f=e,g=n,{t:B,locale:de}=r(re,ie,()=>f.locale),V=t(),H=a(()=>f.title??B(`approval.title`)),fe=a(()=>new Intl.DateTimeFormat(de.value,{dateStyle:`medium`,timeStyle:`short`})),pe={pending:`warning`,running:`info`,approved:`success`,rejected:`error`,withdrawn:`default`,cancelled:`default`,terminated:`warning`},{activeId:U,detail:W,directOption:G,instances:K,list:q,select:me}=ae(f),{data:J,status:Y}=W,{status:X}=q,Z=m(!1);y(J,()=>{Z.value=!1});function Q(e){return B(`approval.status.${e}`)}function $(e){let t=new Date(e);return Number.isFinite(t.getTime())?fe.value.format(t):`—`}return(t,n)=>(p(),o(v(ne),{show:e.show,preset:`card`,closable:``,"close-focusable":``,title:H.value,"aria-label":H.value,class:`c-approval-viewer`,style:ee(v(V)),"content-style":{minHeight:0,overflowY:`auto`},"onUpdate:show":n[5]||=e=>g(`update:show`,e)},{default:b(()=>[v(K).length?(p(),c(`label`,oe,[l(`span`,null,_(v(B)(`approval.instances`)),1),l(`select`,{value:v(U),onChange:n[0]||=e=>v(me)(e.target.value)},[v(G)?(p(),c(`option`,{key:0,value:v(G)},_(v(G)),9,ce)):s(`v-if`,!0),(p(!0),c(i,null,h(v(K),e=>(p(),c(`option`,{key:e.id,value:e.id},_(e.label??e.id)+` · `+_(Q(e.status)),9,le))),128))],40,se)])):s(`v-if`,!0),v(X)===`loading`?(p(),c(`p`,ue,_(v(B)(`approval.loadingInstances`)),1)):v(X)===`error`?(p(),c(`div`,E,[u(_(v(B)(`approval.instancesError`))+` `,1),d(v(x),{size:`small`,onClick:n[1]||=e=>v(q).reload()},{default:b(()=>[u(_(v(B)(`approval.retry`)),1)]),_:1})])):!v(U)&&(!e.businessKey.trim()||v(X)===`empty`)?(p(),o(v(S),{key:3,description:v(B)(e.businessKey.trim()?`approval.noInstances`:`approval.noBusinessKey`)},null,8,[`description`])):s(`v-if`,!0),v(Y)===`loading`?(p(),c(`p`,D,_(v(B)(`approval.loadingDetail`)),1)):v(Y)===`error`?(p(),c(`div`,O,[u(_(v(B)(`approval.detailError`))+` `,1),d(v(x),{size:`small`,onClick:n[2]||=e=>v(W).reload()},{default:b(()=>[u(_(v(B)(`approval.retry`)),1)]),_:1})])):v(J)?(p(),c(`div`,k,[l(`section`,{class:`c-approval-viewer__summary`,"aria-label":v(B)(`approval.summary`)},[l(`div`,j,[l(`strong`,null,_(v(J).label??v(J).id),1),d(v(C),{type:pe[v(J).status],size:`small`,round:``},{default:b(()=>[u(_(Q(v(J).status)),1)]),_:1},8,[`type`])]),l(`dl`,M,[v(J).initiator?(p(),c(`div`,N,[l(`dt`,null,_(v(B)(`approval.initiator`)),1),l(`dd`,null,_(v(J).initiator),1)])):s(`v-if`,!0),v(J).currentHandler?(p(),c(`div`,P,[l(`dt`,null,_(v(B)(`approval.handler`)),1),l(`dd`,null,_(v(J).currentHandler),1)])):s(`v-if`,!0),l(`div`,null,[l(`dt`,null,_(v(B)(`approval.startedAt`)),1),l(`dd`,null,_($(v(J).startedAt)),1)]),v(J).finishedAt==null?s(`v-if`,!0):(p(),c(`div`,F,[l(`dt`,null,_(v(B)(`approval.finishedAt`)),1),l(`dd`,null,_($(v(J).finishedAt)),1)]))])],8,A),t.$slots.diagram?(p(),c(`div`,{key:0,class:`c-approval-viewer__views`,role:`group`,"aria-label":v(B)(`approval.summary`)},[d(v(x),{size:`small`,type:Z.value?`default`:`primary`,"aria-pressed":!Z.value,onClick:n[3]||=e=>Z.value=!1},{default:b(()=>[u(_(v(B)(`approval.records`)),1)]),_:1},8,[`type`,`aria-pressed`]),d(v(x),{size:`small`,type:Z.value?`primary`:`default`,"aria-pressed":Z.value,onClick:n[4]||=e=>Z.value=!0},{default:b(()=>[u(_(v(B)(`approval.diagram`)),1)]),_:1},8,[`type`,`aria-pressed`])],8,I)):s(`v-if`,!0),t.$slots.diagram&&Z.value?te(t.$slots,`diagram`,{instance:v(J)},void 0,!0,1):(p(),c(`section`,{key:2,class:`c-approval-viewer__history`,"aria-label":v(B)(`approval.records`)},[l(`h3`,null,_(v(B)(`approval.records`)),1),v(J).history.length?(p(),o(v(w),{key:0},{default:b(()=>[(p(!0),c(i,null,h(v(J).history,e=>(p(),o(v(T),{key:e.id,title:e.title,time:$(e.occurredAt)},{default:b(()=>[e.actor?(p(),c(`div`,R,_(e.actor),1)):s(`v-if`,!0),e.comment?(p(),c(`div`,z,_(e.comment),1)):s(`v-if`,!0)]),_:2},1032,[`title`,`time`]))),128))]),_:1})):(p(),o(v(S),{key:1,description:v(B)(`approval.noEvents`)},null,8,[`description`]))],8,L))])):s(`v-if`,!0)]),_:3},8,[`show`,`title`,`aria-label`,`style`]))}}),[[`__scopeId`,`data-v-e987565d`]]);export{B as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./C_Icon2.cjs`);const e=require(`./C_Attachments2.cjs`);exports.C_Attachments=e.t;
|