@robot-admin/naive-ui-components 0.10.3 → 0.11.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 +111 -100
- package/LICENSE +21 -21
- package/README.md +463 -318
- package/README_EN.md +404 -0
- package/SECURITY.md +23 -0
- package/dist/C_ActionBar.cjs +1 -1
- package/dist/C_ActionBar.css +46 -48
- package/dist/C_ActionBar.d.cts +1 -1
- package/dist/C_ActionBar.js +1 -1
- package/dist/C_ActionBar2.cjs +1 -0
- package/dist/C_ActionBar2.js +1 -2
- package/dist/C_AntV.cjs +1 -1
- package/dist/C_AntV.css +3 -3
- package/dist/C_AntV.d.cts +1 -1
- package/dist/C_AntV.js +1 -1
- package/dist/C_AntV2.cjs +4 -0
- package/dist/C_AntV2.js +3 -4
- package/dist/C_AudioPlayer.cjs +1 -1
- package/dist/C_AudioPlayer.css +15 -7
- package/dist/C_AudioPlayer.d.cts +1 -1
- package/dist/C_AudioPlayer.js +1 -1
- package/dist/C_AudioPlayer2.cjs +1 -0
- package/dist/C_AudioPlayer2.js +1 -2
- package/dist/C_AvatarGroup.cjs +1 -1
- package/dist/C_AvatarGroup.css +15 -7
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup2.cjs +1 -0
- package/dist/C_AvatarGroup2.js +1 -2
- package/dist/C_Barcode.cjs +1 -1
- package/dist/C_Barcode.css +0 -2
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode2.cjs +1 -0
- package/dist/C_Barcode2.js +1 -2
- package/dist/C_Breadcrumb.cjs +1 -1
- package/dist/C_Breadcrumb.css +0 -2
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -2
- package/dist/C_Breadcrumb.js +1 -1
- package/dist/C_Breadcrumb2.cjs +1 -0
- package/dist/C_Breadcrumb2.js +1 -2
- package/dist/C_Captcha.cjs +1 -1
- package/dist/C_Captcha.css +46 -21
- package/dist/C_Captcha.d.cts +3 -2
- package/dist/C_Captcha.d.ts +3 -2
- package/dist/C_Captcha.js +1 -1
- package/dist/C_Captcha2.cjs +1 -0
- package/dist/C_Captcha2.js +1 -2
- package/dist/C_Cascade.cjs +1 -1
- package/dist/C_Cascade.css +0 -2
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Cascade2.cjs +1 -0
- package/dist/C_Cascade2.js +1 -2
- package/dist/C_Chat.cjs +1 -1
- package/dist/C_Chat.css +0 -2
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_Chat.js +1 -1
- package/dist/C_Chat2.cjs +1 -0
- package/dist/C_Chat2.js +1 -2
- package/dist/C_City.cjs +1 -1
- package/dist/C_City.css +28 -30
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_City2.cjs +1 -0
- package/dist/C_City2.js +1 -2
- package/dist/C_Code.cjs +1 -1
- package/dist/C_Code.css +241 -4
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_Code.js +1 -1
- package/dist/C_Code2.cjs +1 -0
- package/dist/C_Code2.js +1 -2
- package/dist/C_CollapsePanel.cjs +1 -1
- package/dist/C_CollapsePanel.css +12 -6
- package/dist/C_CollapsePanel.d.cts +1 -1
- package/dist/C_CollapsePanel.js +1 -1
- package/dist/C_CollapsePanel2.cjs +1 -0
- package/dist/C_CollapsePanel2.js +1 -2
- package/dist/C_ContextMenu.cjs +1 -1
- package/dist/C_ContextMenu.css +16 -18
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_ContextMenu.js +1 -1
- package/dist/C_ContextMenu2.cjs +1 -0
- package/dist/C_ContextMenu2.js +1 -2
- package/dist/C_Cron.cjs +1 -1
- package/dist/C_Cron.css +18 -8
- package/dist/C_Cron.d.cts +1 -1
- package/dist/C_Cron.js +1 -1
- package/dist/C_Cron2.cjs +1 -0
- package/dist/C_Cron2.js +1 -2
- package/dist/C_Date.cjs +1 -1
- package/dist/C_Date.css +1 -0
- package/dist/C_Date.d.cts +2 -2
- package/dist/C_Date.d.ts +2 -2
- package/dist/C_Date2.cjs +1 -0
- package/dist/C_Date2.js +1 -2
- package/dist/C_Draggable.cjs +1 -1
- package/dist/C_Draggable.css +9 -5
- package/dist/C_Draggable.d.cts +1 -1
- package/dist/C_Draggable2.cjs +1 -0
- package/dist/C_Draggable2.js +1 -2
- package/dist/C_Editor.cjs +1 -1
- package/dist/C_Editor.css +80 -67
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_Editor2.cjs +1 -0
- package/dist/C_Editor2.js +1 -2
- package/dist/C_FilePreview.cjs +1 -1
- package/dist/C_FilePreview.css +0 -2
- package/dist/C_FilePreview.d.cts +1 -1
- package/dist/C_FilePreview.js +1 -1
- package/dist/C_FilePreview2.cjs +1 -0
- package/dist/C_FilePreview2.js +1 -2
- package/dist/C_Form.base.css +980 -0
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +256 -155
- package/dist/C_Form.d.cts +2 -2
- package/dist/C_Form.d.ts +2 -2
- package/dist/C_Form.js +1 -1
- package/dist/C_Form2.cjs +1 -0
- package/dist/C_Form2.js +1 -2
- package/dist/C_FormSearch.cjs +1 -1
- package/dist/C_FormSearch.css +47 -47
- package/dist/C_FormSearch.d.cts +2 -2
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_FormSearch2.cjs +1 -0
- package/dist/C_FormSearch2.js +1 -2
- package/dist/C_FormulaEditor.cjs +1 -1
- package/dist/C_FormulaEditor.css +64 -38
- package/dist/C_FormulaEditor.d.cts +1 -1
- package/dist/C_FormulaEditor.js +1 -1
- package/dist/C_FormulaEditor2.cjs +2 -0
- package/dist/C_FormulaEditor2.js +2 -2
- package/dist/C_FullCalendar.cjs +1 -1
- package/dist/C_FullCalendar.css +0 -2
- package/dist/C_FullCalendar.d.cts +1 -1
- package/dist/C_FullCalendar2.cjs +1 -0
- package/dist/C_FullCalendar2.js +1 -2
- package/dist/C_GlobalSearch.cjs +1 -1
- package/dist/C_GlobalSearch.css +111 -113
- package/dist/C_GlobalSearch.d.cts +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -0
- package/dist/C_GlobalSearch2.js +1 -2
- package/dist/C_Guide.cjs +1 -1
- package/dist/C_Guide.css +1 -0
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Guide.js +1 -1
- package/dist/C_Guide2.cjs +1 -0
- package/dist/C_Guide2.js +1 -2
- package/dist/C_Icon.cjs +1 -1
- package/dist/C_Icon.css +58 -0
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Icon2.cjs +1 -0
- package/dist/C_Icon2.js +1 -2
- package/dist/C_ImageCropper.cjs +1 -1
- package/dist/C_ImageCropper.css +0 -2
- package/dist/C_ImageCropper.d.cts +1 -1
- package/dist/C_ImageCropper.js +1 -1
- package/dist/C_ImageCropper2.cjs +1 -0
- package/dist/C_ImageCropper2.js +1 -2
- package/dist/C_Language.cjs +1 -1
- package/dist/C_Language.css +1 -0
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Language.js +1 -1
- package/dist/C_Language2.cjs +1 -0
- package/dist/C_Language2.js +1 -2
- package/dist/C_Login.cjs +1 -1
- package/dist/C_Login.css +92 -76
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Login.js +1 -1
- package/dist/C_Login2.cjs +1 -0
- package/dist/C_Login2.js +1 -2
- package/dist/C_Map.cjs +1 -1
- package/dist/C_Map.css +665 -5
- package/dist/C_Map.d.cts +1 -1
- package/dist/C_Map2.cjs +1 -0
- package/dist/C_Map2.js +1 -2
- package/dist/C_Markdown.cjs +1 -1
- package/dist/C_Markdown.css +940 -35
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Markdown2.cjs +1 -0
- package/dist/C_Markdown2.js +1 -2
- package/dist/C_Menu.cjs +1 -1
- package/dist/C_Menu.css +1 -0
- package/dist/C_Menu.d.cts +3 -3
- package/dist/C_Menu.d.ts +3 -4
- package/dist/C_Menu.js +1 -1
- package/dist/C_Menu2.cjs +1 -0
- package/dist/C_Menu2.js +1 -2
- package/dist/C_NotificationCenter.cjs +1 -1
- package/dist/C_NotificationCenter.css +95 -47
- package/dist/C_NotificationCenter.d.cts +1 -1
- package/dist/C_NotificationCenter.js +1 -1
- package/dist/C_NotificationCenter2.cjs +1 -0
- package/dist/C_NotificationCenter2.js +1 -2
- package/dist/C_OrgChart.cjs +1 -1
- package/dist/C_OrgChart.css +6 -4
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_OrgChart2.cjs +1 -0
- package/dist/C_OrgChart2.js +1 -2
- package/dist/C_Progress.cjs +1 -1
- package/dist/C_Progress.css +1 -0
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_Progress2.cjs +1 -0
- package/dist/C_Progress2.js +1 -2
- package/dist/C_QRCode.cjs +1 -1
- package/dist/C_QRCode.css +8 -10
- package/dist/C_QRCode.d.cts +1 -1
- package/dist/C_QRCode2.cjs +1 -0
- package/dist/C_QRCode2.js +1 -2
- package/dist/C_Signature.cjs +1 -1
- package/dist/C_Signature.css +0 -2
- package/dist/C_Signature.d.cts +1 -1
- package/dist/C_Signature.js +1 -1
- package/dist/C_Signature2.cjs +1 -0
- package/dist/C_Signature2.js +1 -2
- package/dist/C_Skeleton.cjs +1 -1
- package/dist/C_Skeleton.css +0 -2
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Skeleton2.cjs +1 -0
- package/dist/C_Skeleton2.js +1 -2
- package/dist/C_SplitPane.cjs +1 -1
- package/dist/C_SplitPane.css +27 -11
- package/dist/C_SplitPane.d.cts +1 -1
- package/dist/C_SplitPane.js +1 -1
- package/dist/C_SplitPane2.cjs +1 -0
- package/dist/C_SplitPane2.js +1 -2
- package/dist/C_Steps.cjs +1 -1
- package/dist/C_Steps.css +37 -39
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Steps2.cjs +1 -0
- package/dist/C_Steps2.js +1 -2
- package/dist/C_Table.base.css +1588 -0
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +1202 -112
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +11 -2
- package/dist/C_Table.js +1 -1
- package/dist/C_TagsView.cjs +1 -1
- package/dist/C_TagsView.css +44 -40
- package/dist/C_TagsView.d.cts +2 -2
- package/dist/C_TagsView.d.ts +2 -3
- package/dist/C_TagsView.js +1 -1
- package/dist/C_TagsView2.cjs +1 -0
- package/dist/C_TagsView2.js +1 -2
- package/dist/C_Theme.cjs +1 -1
- package/dist/C_Theme.css +1 -0
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Theme.js +1 -1
- package/dist/C_Theme2.cjs +1 -0
- package/dist/C_Theme2.js +1 -2
- package/dist/C_Time.cjs +1 -1
- package/dist/C_Time.css +0 -2
- package/dist/C_Time.d.cts +2 -2
- package/dist/C_Time.d.ts +2 -2
- package/dist/C_Time2.cjs +1 -0
- package/dist/C_Time2.js +1 -2
- package/dist/C_Timeline.cjs +1 -1
- package/dist/C_Timeline.css +44 -46
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.js +1 -1
- package/dist/C_Timeline2.cjs +1 -0
- package/dist/C_Timeline2.js +1 -2
- package/dist/C_Transfer.cjs +1 -1
- package/dist/C_Transfer.css +21 -9
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.js +1 -1
- package/dist/C_Transfer2.cjs +1 -0
- package/dist/C_Transfer2.js +1 -2
- package/dist/C_Tree.cjs +1 -1
- package/dist/C_Tree.css +0 -2
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.js +1 -1
- package/dist/C_Tree2.cjs +1 -0
- package/dist/C_Tree2.js +1 -2
- package/dist/C_Upload.cjs +1 -1
- package/dist/C_Upload.css +17 -17
- package/dist/C_Upload.d.cts +1 -1
- package/dist/C_Upload.js +1 -1
- package/dist/C_Upload2.cjs +1 -0
- package/dist/C_Upload2.js +1 -25
- package/dist/C_VideoPlayer.cjs +1 -1
- package/dist/C_VideoPlayer.css +35 -24
- package/dist/C_VideoPlayer.d.cts +2 -2
- package/dist/C_VideoPlayer.d.ts +2 -2
- package/dist/C_VideoPlayer.js +1 -1
- package/dist/C_VideoPlayer2.cjs +3 -0
- package/dist/C_VideoPlayer2.js +3 -4
- package/dist/C_VtableGantt.cjs +1 -1
- package/dist/C_VtableGantt.css +15 -7
- package/dist/C_VtableGantt.d.cts +1 -1
- package/dist/C_VtableGantt.d.ts +1 -1
- package/dist/C_VtableGantt.js +1 -1
- package/dist/C_VtableGantt2.cjs +1 -0
- package/dist/C_VtableGantt2.js +1 -2
- package/dist/C_WaterFall.cjs +1 -1
- package/dist/C_WaterFall.css +15 -17
- package/dist/C_WaterFall.d.cts +1 -1
- package/dist/C_WaterFall2.cjs +1 -0
- package/dist/C_WaterFall2.js +1 -2
- package/dist/C_WorkFlow.cjs +1 -1
- package/dist/C_WorkFlow.css +257 -197
- package/dist/C_WorkFlow.d.cts +1 -1
- package/dist/C_WorkFlow.js +1 -1
- package/dist/C_WorkFlow2.cjs +1 -0
- package/dist/C_WorkFlow2.js +1 -2
- package/dist/city.cjs +1 -0
- package/dist/city.js +1 -2
- package/dist/config.cjs +1 -0
- package/dist/config.d.cts +33 -0
- package/dist/config.d.ts +33 -0
- package/dist/config.js +1 -0
- package/dist/constants.d.cts +272 -0
- package/dist/constants.d.ts +6 -7
- package/dist/constants2.d.cts +177 -0
- package/dist/constants2.d.ts +5 -6
- package/dist/constants3.d.cts +479 -0
- package/dist/constants3.d.ts +17 -13
- package/dist/constants4.d.cts +420 -0
- package/dist/constants4.d.ts +30 -40
- package/dist/constants5.d.cts +491 -0
- package/dist/constants5.d.ts +22 -6
- package/dist/data.cjs +1 -0
- package/dist/data.d.cts +67 -0
- package/dist/data.d.ts +13 -13
- package/dist/data.js +1 -0
- package/dist/export-helper.cjs +1 -0
- package/dist/helpers.cjs +1 -0
- package/dist/helpers.js +1 -0
- package/dist/html.cjs +1 -0
- package/dist/html.js +1 -0
- package/dist/images/marker-icon-2x.png +0 -0
- package/dist/images/marker-icon.png +0 -0
- package/dist/images/marker-shadow.png +0 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +60 -99
- package/dist/index.d.ts +41 -83
- package/dist/index.js +1 -2
- package/dist/index.vue.d.cts +79 -0
- package/dist/index.vue.d.ts +3 -4
- package/dist/index10.vue.d.cts +47 -0
- package/dist/index10.vue.d.ts +80 -40
- package/dist/index11.vue.d.cts +88 -0
- package/dist/index11.vue.d.ts +68 -78
- package/dist/index12.vue.d.cts +79 -0
- package/dist/index12.vue.d.ts +49 -45
- package/dist/index13.vue.d.cts +64 -0
- package/dist/index13.vue.d.ts +99 -34
- package/dist/index14.vue.d.cts +106 -0
- package/dist/index14.vue.d.ts +82 -99
- package/dist/index15.vue.d.cts +91 -0
- package/dist/index15.vue.d.ts +25 -83
- package/dist/index16.vue.d.cts +34 -0
- package/dist/index16.vue.d.ts +113 -24
- package/dist/index17.vue.d.cts +124 -0
- package/dist/index17.vue.d.ts +76 -110
- package/dist/index18.vue.d.cts +83 -0
- package/dist/index18.vue.d.ts +67 -73
- package/dist/index19.vue.d.cts +101 -0
- package/dist/index19.vue.d.ts +93 -59
- package/dist/index2.vue.d.cts +82 -0
- package/dist/index2.vue.d.ts +1 -2
- package/dist/index20.vue.d.cts +54 -0
- package/dist/index20.vue.d.ts +40 -88
- package/dist/index21.vue.d.cts +103 -0
- package/dist/index21.vue.d.ts +89 -41
- package/dist/index22.vue.d.cts +45 -0
- package/dist/index22.vue.d.ts +37 -96
- package/dist/index23.vue.d.cts +19 -0
- package/dist/index23.vue.d.ts +8 -35
- package/dist/{index28.vue.d.ts → index24.vue.d.cts} +5 -6
- package/dist/index24.vue.d.ts +650 -86
- package/dist/index25.vue.d.cts +96 -0
- package/dist/index25.vue.d.ts +86 -10
- package/dist/index26.vue.d.cts +111 -0
- package/dist/index26.vue.d.ts +3 -4
- package/dist/index27.vue.d.cts +80 -0
- package/dist/index27.vue.d.ts +3 -4
- package/dist/index3.vue.d.cts +87 -0
- package/dist/index3.vue.d.ts +2 -3
- package/dist/index4.vue.d.cts +37 -0
- package/dist/index4.vue.d.ts +5 -6
- package/dist/index5.vue.d.cts +133 -0
- package/dist/index5.vue.d.ts +2 -3
- package/dist/index6.vue.d.cts +29 -0
- package/dist/index6.vue.d.ts +25 -38
- package/dist/index7.vue.d.cts +32 -0
- package/dist/index7.vue.d.ts +117 -23
- package/dist/index8.vue.d.cts +127 -0
- package/dist/index8.vue.d.ts +17 -111
- package/dist/index9.vue.d.cts +34 -0
- package/dist/index9.vue.d.ts +38 -26
- package/dist/{menuAdapter.d.ts → public.d.ts} +2 -3
- package/dist/resolver.cjs +1 -2
- package/dist/resolver.d.cts +6 -4
- package/dist/resolver.d.ts +6 -4
- package/dist/resolver.js +1 -2
- package/dist/storage.cjs +1 -0
- package/dist/storage.js +1 -2
- package/dist/style.css +9864 -7702
- package/dist/types.d.cts +107 -0
- package/dist/types.d.ts +58 -0
- package/dist/types2.d.cts +58 -0
- package/dist/useCalendarEvents.d.cts +150 -0
- package/dist/useCalendarEvents.d.ts +3 -4
- package/dist/useCollapsePanel.d.cts +133 -0
- package/dist/useCollapsePanel.d.ts +1 -2
- package/dist/useCropperCore.d.cts +104 -0
- package/dist/useCropperCore.d.ts +12 -10
- package/dist/useDraggableLayout.d.cts +196 -0
- package/dist/useDraggableLayout.d.ts +18 -16
- package/dist/useDynamicFormState.d.cts +749 -0
- package/dist/useDynamicFormState.d.ts +234 -112
- package/dist/useEdgeInteraction.d.cts +324 -0
- package/dist/useEdgeInteraction.d.ts +6 -7
- package/dist/useFullscreen.d.cts +165 -0
- package/dist/useFullscreen.d.ts +1 -2
- package/dist/useGlobalSearch.d.cts +110 -0
- package/dist/useGlobalSearch.d.ts +17 -9
- package/dist/useInfiniteScroll.d.cts +177 -0
- package/dist/useInfiniteScroll.d.ts +11 -3
- package/dist/useQRCode.d.cts +89 -0
- package/dist/useQRCode.d.ts +7 -5
- package/dist/useSearchState.d.cts +871 -0
- package/dist/useSearchState.d.ts +828 -28
- package/dist/useSignatureHistory.d.cts +197 -0
- package/dist/useSignatureHistory.d.ts +9 -4
- package/dist/useSplitResize.d.cts +157 -0
- package/dist/useSplitResize.d.ts +3 -4
- package/dist/useTableQuery.cjs +3 -0
- package/dist/{useModalEdit.d.ts → useTableQuery.d.cts} +624 -211
- package/dist/useTableQuery.d.ts +1721 -0
- package/dist/useTableQuery.js +3 -0
- package/dist/useTimeSelection.d.cts +116 -0
- package/dist/useTimeSelection.d.ts +19 -8
- package/dist/useTreeOperations.d.cts +185 -0
- package/dist/useTreeOperations.d.ts +14 -12
- package/dist/useWorkflowValidation.d.cts +1051 -0
- package/dist/useWorkflowValidation.d.ts +66 -67
- package/dist/verification.d.cts +58 -0
- package/dist/verification.d.ts +58 -0
- package/package.json +101 -69
- package/dist/C_ActionBar-BAcfOfRw.css.map +0 -1
- package/dist/C_ActionBar-DG2HW7t5.css.map +0 -1
- package/dist/C_ActionBar.js.map +0 -1
- package/dist/C_ActionBar2.js.map +0 -1
- package/dist/C_AntV-D_jTK8oZ.css.map +0 -1
- package/dist/C_AntV-DanTAq22.css.map +0 -1
- package/dist/C_AntV.js.map +0 -1
- package/dist/C_AntV2.js.map +0 -1
- package/dist/C_AudioPlayer-BnYIJXPD.css.map +0 -1
- package/dist/C_AudioPlayer-ldTy9Y34.css.map +0 -1
- package/dist/C_AudioPlayer.js.map +0 -1
- package/dist/C_AudioPlayer2.js.map +0 -1
- package/dist/C_AvatarGroup-B9d-GJ9c.css.map +0 -1
- package/dist/C_AvatarGroup-SIzxuuZr.css.map +0 -1
- package/dist/C_AvatarGroup.js.map +0 -1
- package/dist/C_AvatarGroup2.js.map +0 -1
- package/dist/C_Barcode-CAU2mFcx.css.map +0 -1
- package/dist/C_Barcode-D2oJaEg3.css.map +0 -1
- package/dist/C_Barcode.js.map +0 -1
- package/dist/C_Barcode2.js.map +0 -1
- package/dist/C_Breadcrumb-BiH0d9AI.css.map +0 -1
- package/dist/C_Breadcrumb-Bqqrl8nX.css.map +0 -1
- package/dist/C_Breadcrumb.js.map +0 -1
- package/dist/C_Breadcrumb2.js.map +0 -1
- package/dist/C_Captcha-B3yrtG7t.css.map +0 -1
- package/dist/C_Captcha-D4hDdWDu.css.map +0 -1
- package/dist/C_Captcha.js.map +0 -1
- package/dist/C_Captcha2.js.map +0 -1
- package/dist/C_Cascade-CmCrLVft.css.map +0 -1
- package/dist/C_Cascade-U6A5AJJb.css.map +0 -1
- package/dist/C_Cascade.js.map +0 -1
- package/dist/C_Cascade2.js.map +0 -1
- package/dist/C_Chat-CF1SU7mc.css.map +0 -1
- package/dist/C_Chat-DeUv6uuI.css.map +0 -1
- package/dist/C_Chat.js.map +0 -1
- package/dist/C_Chat2.js.map +0 -1
- package/dist/C_City-DdkX6u64.css.map +0 -1
- package/dist/C_City-iP-dIvui.css.map +0 -1
- package/dist/C_City.js.map +0 -1
- package/dist/C_City2.js.map +0 -1
- package/dist/C_Code-BWmJMNS7.css.map +0 -1
- package/dist/C_Code-k14vjgVl.css.map +0 -1
- package/dist/C_Code.js.map +0 -1
- package/dist/C_Code2.js.map +0 -1
- package/dist/C_CollapsePanel-BSKcWSmY.css.map +0 -1
- package/dist/C_CollapsePanel-DRvRq8tB.css.map +0 -1
- package/dist/C_CollapsePanel.js.map +0 -1
- package/dist/C_CollapsePanel2.js.map +0 -1
- package/dist/C_ContextMenu-Bn_uhJSo.css.map +0 -1
- package/dist/C_ContextMenu-C9iuxG2n.css.map +0 -1
- package/dist/C_ContextMenu.js.map +0 -1
- package/dist/C_ContextMenu2.js.map +0 -1
- package/dist/C_Cron-BIQ2By9v.css.map +0 -1
- package/dist/C_Cron-BNSAGD6A.css.map +0 -1
- package/dist/C_Cron.js.map +0 -1
- package/dist/C_Cron2.js.map +0 -1
- package/dist/C_Date.js.map +0 -1
- package/dist/C_Date2.js.map +0 -1
- package/dist/C_Draggable-BDAbk4s5.css.map +0 -1
- package/dist/C_Draggable-UhfDLXop.css.map +0 -1
- package/dist/C_Draggable.js.map +0 -1
- package/dist/C_Draggable2.js.map +0 -1
- package/dist/C_Editor-CZOaChru.css.map +0 -1
- package/dist/C_Editor-kJAQq5z6.css.map +0 -1
- package/dist/C_Editor.js.map +0 -1
- package/dist/C_Editor2.js.map +0 -1
- package/dist/C_FilePreview-Bs_omgJS.css.map +0 -1
- package/dist/C_FilePreview-DbwoyF2j.css.map +0 -1
- package/dist/C_FilePreview.js.map +0 -1
- package/dist/C_FilePreview2.js.map +0 -1
- package/dist/C_Form-B_2ql62V.css.map +0 -1
- package/dist/C_Form-CX-7xsz3.css.map +0 -1
- package/dist/C_Form.js.map +0 -1
- package/dist/C_Form2.js.map +0 -1
- package/dist/C_FormSearch-C3F8peAY.css.map +0 -1
- package/dist/C_FormSearch-qW56bJPo.css.map +0 -1
- package/dist/C_FormSearch.js.map +0 -1
- package/dist/C_FormSearch2.js.map +0 -1
- package/dist/C_FormulaEditor-ChOvDbsZ.css.map +0 -1
- package/dist/C_FormulaEditor-mfiIUDY4.css.map +0 -1
- package/dist/C_FormulaEditor.js.map +0 -1
- package/dist/C_FormulaEditor2.js.map +0 -1
- package/dist/C_FullCalendar-C2nsqrgS.css.map +0 -1
- package/dist/C_FullCalendar-DdFtXVhy.css.map +0 -1
- package/dist/C_FullCalendar.js.map +0 -1
- package/dist/C_FullCalendar2.js.map +0 -1
- package/dist/C_GlobalSearch-Dq4Wo01K.css.map +0 -1
- package/dist/C_GlobalSearch-RB7J43gu.css.map +0 -1
- package/dist/C_GlobalSearch.js.map +0 -1
- package/dist/C_GlobalSearch2.js.map +0 -1
- package/dist/C_Guide.js.map +0 -1
- package/dist/C_Guide2.js.map +0 -1
- package/dist/C_Icon.js.map +0 -1
- package/dist/C_Icon2.js.map +0 -1
- package/dist/C_ImageCropper-CdTX2nxU.css.map +0 -1
- package/dist/C_ImageCropper-ilOqPklJ.css.map +0 -1
- package/dist/C_ImageCropper.js.map +0 -1
- package/dist/C_ImageCropper2.js.map +0 -1
- package/dist/C_Language.js.map +0 -1
- package/dist/C_Language2.js.map +0 -1
- package/dist/C_Login-B3qYkLrN.css.map +0 -1
- package/dist/C_Login-xMI1_ojE.css.map +0 -1
- package/dist/C_Login.js.map +0 -1
- package/dist/C_Login2.js.map +0 -1
- package/dist/C_Map-CWMMN58_.css.map +0 -1
- package/dist/C_Map-xSR2H-9o.css.map +0 -1
- package/dist/C_Map.js.map +0 -1
- package/dist/C_Map2.js.map +0 -1
- package/dist/C_Markdown-C7lTVJ1S.css.map +0 -1
- package/dist/C_Markdown-CZDm_baQ.css.map +0 -1
- package/dist/C_Markdown.js.map +0 -1
- package/dist/C_Markdown2.js.map +0 -1
- package/dist/C_Menu.js.map +0 -1
- package/dist/C_Menu2.js.map +0 -1
- package/dist/C_NotificationCenter-D7GGGWg7.css.map +0 -1
- package/dist/C_NotificationCenter-SSmeHA45.css.map +0 -1
- package/dist/C_NotificationCenter.js.map +0 -1
- package/dist/C_NotificationCenter2.js.map +0 -1
- package/dist/C_OrgChart-ChZu346B.css.map +0 -1
- package/dist/C_OrgChart-DqBufOv5.css.map +0 -1
- package/dist/C_OrgChart.js.map +0 -1
- package/dist/C_OrgChart2.js.map +0 -1
- package/dist/C_Progress.js.map +0 -1
- package/dist/C_Progress2.js.map +0 -1
- package/dist/C_QRCode-B_1lHUdx.css.map +0 -1
- package/dist/C_QRCode-CuQRYu0s.css.map +0 -1
- package/dist/C_QRCode.js.map +0 -1
- package/dist/C_QRCode2.js.map +0 -1
- package/dist/C_Signature-Bp-RBpAl.css.map +0 -1
- package/dist/C_Signature-Cb2VW1ok.css.map +0 -1
- package/dist/C_Signature.js.map +0 -1
- package/dist/C_Signature2.js.map +0 -1
- package/dist/C_Skeleton-BNPbaut7.css.map +0 -1
- package/dist/C_Skeleton-Djsjw8XY.css.map +0 -1
- package/dist/C_Skeleton.js.map +0 -1
- package/dist/C_Skeleton2.js.map +0 -1
- package/dist/C_SplitPane-CgGWYsRE.css.map +0 -1
- package/dist/C_SplitPane-DGf6WEeR.css.map +0 -1
- package/dist/C_SplitPane.js.map +0 -1
- package/dist/C_SplitPane2.js.map +0 -1
- package/dist/C_Steps-27Exh7PM.css.map +0 -1
- package/dist/C_Steps-DU9ZsFrs.css.map +0 -1
- package/dist/C_Steps.js.map +0 -1
- package/dist/C_Steps2.js.map +0 -1
- package/dist/C_Table--kbQaaBv.css.map +0 -1
- package/dist/C_Table-D631kdXC.css.map +0 -1
- package/dist/C_Table.js.map +0 -1
- package/dist/C_Table2.js +0 -4
- package/dist/C_Table2.js.map +0 -1
- package/dist/C_TagsView-BN8vMRsY.css.map +0 -1
- package/dist/C_TagsView-s1dnSJAV.css.map +0 -1
- package/dist/C_TagsView.js.map +0 -1
- package/dist/C_TagsView2.js.map +0 -1
- package/dist/C_Theme.js.map +0 -1
- package/dist/C_Theme2.js.map +0 -1
- package/dist/C_Time-BQ9PGy8B.css.map +0 -1
- package/dist/C_Time-CO73krC6.css.map +0 -1
- package/dist/C_Time.js.map +0 -1
- package/dist/C_Time2.js.map +0 -1
- package/dist/C_Timeline-4rk0Dzgn.css.map +0 -1
- package/dist/C_Timeline-DdESmqwL.css.map +0 -1
- package/dist/C_Timeline.js.map +0 -1
- package/dist/C_Timeline2.js.map +0 -1
- package/dist/C_Transfer-B-vjvhjI.css.map +0 -1
- package/dist/C_Transfer-EzdHzZNv.css.map +0 -1
- package/dist/C_Transfer.js.map +0 -1
- package/dist/C_Transfer2.js.map +0 -1
- package/dist/C_Tree-CsXgGfhn.css.map +0 -1
- package/dist/C_Tree-P7eRpnOa.css.map +0 -1
- package/dist/C_Tree.js.map +0 -1
- package/dist/C_Tree2.js.map +0 -1
- package/dist/C_Upload-CHjiVVh7.css.map +0 -1
- package/dist/C_Upload-DE3OLsZD.css.map +0 -1
- package/dist/C_Upload.js.map +0 -1
- package/dist/C_Upload2.js.map +0 -1
- package/dist/C_VideoPlayer-CnaNOFtW.css.map +0 -1
- package/dist/C_VideoPlayer-cnP88zNV.css.map +0 -1
- package/dist/C_VideoPlayer.js.map +0 -1
- package/dist/C_VideoPlayer2.js.map +0 -1
- package/dist/C_VtableGantt-CZlJgvpC.css.map +0 -1
- package/dist/C_VtableGantt-DKfQkql0.css.map +0 -1
- package/dist/C_VtableGantt.js.map +0 -1
- package/dist/C_VtableGantt2.js.map +0 -1
- package/dist/C_WaterFall-BJ_39ext.css.map +0 -1
- package/dist/C_WaterFall-cYc1vntE.css.map +0 -1
- package/dist/C_WaterFall.js.map +0 -1
- package/dist/C_WaterFall2.js.map +0 -1
- package/dist/C_WorkFlow-BFzRGGhJ.css.map +0 -1
- package/dist/C_WorkFlow-DSyCOvRp.css.map +0 -1
- package/dist/C_WorkFlow.js.map +0 -1
- package/dist/C_WorkFlow2.js.map +0 -1
- package/dist/_shared.cjs +0 -1
- package/dist/_shared.d.cts +0 -2
- package/dist/_shared.d.ts +0 -2
- package/dist/_shared.js +0 -1
- package/dist/city.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/menuAdapter.js +0 -2
- package/dist/menuAdapter.js.map +0 -1
- package/dist/resolver.cjs.map +0 -1
- package/dist/resolver.js.map +0 -1
- package/dist/storage.js.map +0 -1
- /package/dist/{chunk.js → chunk.cjs} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { InjectionKey, MaybeRefOrGetter } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/config.d.ts
|
|
4
|
+
interface ConfirmOptions {
|
|
5
|
+
title: string;
|
|
6
|
+
content: string;
|
|
7
|
+
positiveText?: string;
|
|
8
|
+
negativeText?: string;
|
|
9
|
+
type?: 'warning' | 'error' | 'info' | 'success';
|
|
10
|
+
}
|
|
11
|
+
interface ComponentFeedback {
|
|
12
|
+
success?: (message: string) => void;
|
|
13
|
+
error?: (message: string, cause?: unknown) => void;
|
|
14
|
+
warning?: (message: string) => void;
|
|
15
|
+
info?: (message: string) => void;
|
|
16
|
+
confirm?: (options: ConfirmOptions) => boolean | Promise<boolean>;
|
|
17
|
+
}
|
|
18
|
+
type ComponentLocaleName = 'zh-CN' | 'en-US';
|
|
19
|
+
interface ComponentLocale {
|
|
20
|
+
locale?: ComponentLocaleName;
|
|
21
|
+
messages?: Record<string, string>;
|
|
22
|
+
t?: (key: string, params?: Record<string, string | number>) => string;
|
|
23
|
+
}
|
|
24
|
+
declare const COMPONENT_FEEDBACK_KEY: InjectionKey<ComponentFeedback>;
|
|
25
|
+
declare const COMPONENT_LOCALE_KEY: InjectionKey<ComponentLocale>;
|
|
26
|
+
/** Resolve component messages from local, global, then built-in dictionaries. */
|
|
27
|
+
declare function useComponentLocale(local?: MaybeRefOrGetter<ComponentLocale | undefined>): {
|
|
28
|
+
t: (key: string, params?: Record<string, string | number>) => string;
|
|
29
|
+
};
|
|
30
|
+
/** Reuse Naive providers when present and safely degrade to injected/no-op feedback. */
|
|
31
|
+
declare function useComponentFeedback(local?: MaybeRefOrGetter<ComponentFeedback | undefined>): Required<ComponentFeedback>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { ComponentLocaleName as a, useComponentLocale as c, ComponentLocale as i, COMPONENT_LOCALE_KEY as n, ConfirmOptions as o, ComponentFeedback as r, useComponentFeedback as s, COMPONENT_FEEDBACK_KEY as t };
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { InjectionKey, MaybeRefOrGetter } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/config.d.ts
|
|
4
|
+
interface ConfirmOptions {
|
|
5
|
+
title: string;
|
|
6
|
+
content: string;
|
|
7
|
+
positiveText?: string;
|
|
8
|
+
negativeText?: string;
|
|
9
|
+
type?: 'warning' | 'error' | 'info' | 'success';
|
|
10
|
+
}
|
|
11
|
+
interface ComponentFeedback {
|
|
12
|
+
success?: (message: string) => void;
|
|
13
|
+
error?: (message: string, cause?: unknown) => void;
|
|
14
|
+
warning?: (message: string) => void;
|
|
15
|
+
info?: (message: string) => void;
|
|
16
|
+
confirm?: (options: ConfirmOptions) => boolean | Promise<boolean>;
|
|
17
|
+
}
|
|
18
|
+
type ComponentLocaleName = 'zh-CN' | 'en-US';
|
|
19
|
+
interface ComponentLocale {
|
|
20
|
+
locale?: ComponentLocaleName;
|
|
21
|
+
messages?: Record<string, string>;
|
|
22
|
+
t?: (key: string, params?: Record<string, string | number>) => string;
|
|
23
|
+
}
|
|
24
|
+
declare const COMPONENT_FEEDBACK_KEY: InjectionKey<ComponentFeedback>;
|
|
25
|
+
declare const COMPONENT_LOCALE_KEY: InjectionKey<ComponentLocale>;
|
|
26
|
+
/** Resolve component messages from local, global, then built-in dictionaries. */
|
|
27
|
+
declare function useComponentLocale(local?: MaybeRefOrGetter<ComponentLocale | undefined>): {
|
|
28
|
+
t: (key: string, params?: Record<string, string | number>) => string;
|
|
29
|
+
};
|
|
30
|
+
/** Reuse Naive providers when present and safely degrade to injected/no-op feedback. */
|
|
31
|
+
declare function useComponentFeedback(local?: MaybeRefOrGetter<ComponentFeedback | undefined>): Required<ComponentFeedback>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { ComponentLocaleName as a, useComponentLocale as c, ComponentLocale as i, COMPONENT_LOCALE_KEY as n, ConfirmOptions as o, ComponentFeedback as r, useComponentFeedback as s, COMPONENT_FEEDBACK_KEY as t };
|
package/dist/config.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getCurrentInstance as e,inject as t,toValue as n}from"vue";import{useDialog as r,useMessage as i}from"naive-ui";const a=Symbol(`robot-component-feedback`),o=Symbol(`robot-component-locale`),s={"common.confirm":`确定`,"common.cancel":`取消`,"common.save":`保存`,"common.submit":`提交`,"common.reset":`重置`,"common.retry":`重试`,"common.edit":`编辑`,"common.detail":`详情`,"common.delete":`删除`,"common.select":`选择`,"common.print":`打印`,"table.loadFailed":`数据加载失败`,"table.deleteTitle":`确认删除`,"table.deleteContent":`确定要删除这条记录吗?`,"table.deleteSuccess":`删除成功`,"table.deleteFailed":`删除失败`,"table.detailFailed":`获取详情失败`,"table.moreActions":`更多操作`,"table.actionFailed":`{action}失败`,"table.cancelSelection":`取消选择`,"table.columnSettings":`列设置`,"table.export":`导出`,"table.settings":`表格设置`,"table.selectedCount":`已选择 {count} 项`,"table.addRow":`增行`,"table.insertRow":`插行`,"table.deleteRow":`删除行`,"table.copyRow":`复制行`,"table.moveUp":`上移`,"table.moveDown":`下移`,"table.addRowSuccess":`添加行成功`,"table.insertRowSuccess":`插入行成功`,"table.deleteRowSuccess":`删除行成功`,"table.copyRowSuccess":`复制行成功`,"table.moveUpSuccess":`行已上移`,"table.moveDownSuccess":`行已下移`,"table.selectRowFirst":`请先选择一行数据`,"table.selectDeleteRowFirst":`请先选择要删除的行`,"table.selectCopyRowFirst":`请先选择要复制的行`,"table.firstRow":`已经是第一行`,"table.lastRow":`已经是最后一行`,"table.deleteRowContent":`确定要删除选中的行吗?此操作不可撤销。`,"table.confirmDeleteRow":`确认删除`,"table.printTargetMissing":`打印元素未找到`,"table.downloadTargetMissing":`下载元素未找到`,"table.invalidRowKeys":`表格存在 {count} 个缺失或重复的行键`,"form.required":`{label}不能为空`,"search.valueRequired":`请输入搜索内容,或选择筛选条件`,"search.failed":`搜索失败`,"captcha.trigger":`点击进行人机验证`,"captcha.verifying":`正在验证…`,"captcha.success":`验证成功`,"captcha.failed":`验证失败,请重试`,"captcha.reset":`重新验证`,"captcha.puzzleFailed":`拼图验证失败`,"captcha.verifyFailed":`服务端验证失败`,"captcha.loadFailed":`验证码加载失败`},c={"common.confirm":`Confirm`,"common.cancel":`Cancel`,"common.save":`Save`,"common.submit":`Submit`,"common.reset":`Reset`,"common.retry":`Retry`,"common.edit":`Edit`,"common.detail":`Details`,"common.delete":`Delete`,"common.select":`Select`,"common.print":`Print`,"table.loadFailed":`Failed to load data`,"table.deleteTitle":`Confirm deletion`,"table.deleteContent":`Are you sure you want to delete this record?`,"table.deleteSuccess":`Deleted successfully`,"table.deleteFailed":`Delete failed`,"table.detailFailed":`Failed to load details`,"table.moreActions":`More actions`,"table.actionFailed":`{action} failed`,"table.cancelSelection":`Clear selection`,"table.columnSettings":`Column settings`,"table.export":`Export`,"table.settings":`Table settings`,"table.selectedCount":`{count} selected`,"table.addRow":`Add row`,"table.insertRow":`Insert row`,"table.deleteRow":`Delete row`,"table.copyRow":`Copy row`,"table.moveUp":`Move up`,"table.moveDown":`Move down`,"table.addRowSuccess":`Row added`,"table.insertRowSuccess":`Row inserted`,"table.deleteRowSuccess":`Row deleted`,"table.copyRowSuccess":`Row copied`,"table.moveUpSuccess":`Row moved up`,"table.moveDownSuccess":`Row moved down`,"table.selectRowFirst":`Select a row first`,"table.selectDeleteRowFirst":`Select a row to delete first`,"table.selectCopyRowFirst":`Select a row to copy first`,"table.firstRow":`This is already the first row`,"table.lastRow":`This is already the last row`,"table.deleteRowContent":`Are you sure you want to delete the selected row? This cannot be undone.`,"table.confirmDeleteRow":`Delete row`,"table.printTargetMissing":`Print target was not found`,"table.downloadTargetMissing":`Download target was not found`,"table.invalidRowKeys":`{count} table row keys are missing or duplicated`,"form.required":`{label} is required`,"search.valueRequired":`Enter a search term or choose a filter`,"search.failed":`Search failed`,"captcha.trigger":`Click to verify`,"captcha.verifying":`Verifying…`,"captcha.success":`Verified`,"captcha.failed":`Verification failed. Try again.`,"captcha.reset":`Verify again`,"captcha.puzzleFailed":`Puzzle verification failed`,"captcha.verifyFailed":`Server verification failed`,"captcha.loadFailed":`Failed to load captcha`},l=(e,t)=>t?e.replace(/\{([^{}]+)\}/g,(e,n)=>Object.prototype.hasOwnProperty.call(t,n)?String(t[n]):e):e;function u(r){let i=e()?t(o,{}):{};return{t:(e,t)=>{let a=n(r)??{},o=a.t??i.t;if(o)return o(e,t);let u=(a.locale??i.locale??`zh-CN`)===`en-US`?c:s;return l(a.messages?.[e]??i.messages?.[e]??u[e]??e,t)}}}function d(o){let s=e(),c=s?t(a,{}):{},l=null,u=null;if(s){try{l=i()}catch{l=null}try{u=r()}catch{u=null}}let d=()=>n(o)??c,f=(e,t,n)=>{let r=d()[e];r?r(t,n):l?.[e](t)};return{success:e=>f(`success`,e),error:(e,t)=>f(`error`,e,t),warning:e=>f(`warning`,e),info:e=>f(`info`,e),confirm:async e=>{let t=d().confirm;return t?await t(e)!==!1:u?new Promise(t=>{let n=!1,r=e=>{n||(n=!0,t(e))},i=e.type??`warning`;u[i]({title:e.title,content:e.content,positiveText:e.positiveText,negativeText:e.negativeText,onPositiveClick:()=>r(!0),onNegativeClick:()=>r(!1),onClose:()=>r(!1)})}):typeof window<`u`&&typeof window.confirm==`function`?window.confirm(`${e.title}\n${e.content}`):!1}}}export{u as i,o as n,d as r,a as t};
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import * as vue from "vue";
|
|
2
|
+
import { Ref } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/C_Cron/types.d.ts
|
|
5
|
+
/** Cron 字段类型 */
|
|
6
|
+
type CronFieldType = "second" | "minute" | "hour" | "day" | "month" | "week";
|
|
7
|
+
/** 单字段编辑模式 */
|
|
8
|
+
type CronFieldMode = "every" | "range" | "step" | "specific" | "none";
|
|
9
|
+
/** 单字段值 */
|
|
10
|
+
interface CronFieldValue {
|
|
11
|
+
/** 编辑模式 */
|
|
12
|
+
mode: CronFieldMode;
|
|
13
|
+
/** 范围-起始 */
|
|
14
|
+
rangeStart: number;
|
|
15
|
+
/** 范围-结束 */
|
|
16
|
+
rangeEnd: number;
|
|
17
|
+
/** 步进-起始 */
|
|
18
|
+
stepStart: number;
|
|
19
|
+
/** 步进间隔 */
|
|
20
|
+
stepInterval: number;
|
|
21
|
+
/** 指定具体值列表 */
|
|
22
|
+
specificValues: number[];
|
|
23
|
+
}
|
|
24
|
+
/** 完整 Cron 对象(6 字段) */
|
|
25
|
+
interface CronValue {
|
|
26
|
+
second: CronFieldValue;
|
|
27
|
+
minute: CronFieldValue;
|
|
28
|
+
hour: CronFieldValue;
|
|
29
|
+
day: CronFieldValue;
|
|
30
|
+
month: CronFieldValue;
|
|
31
|
+
week: CronFieldValue;
|
|
32
|
+
}
|
|
33
|
+
/** 字段元数据 */
|
|
34
|
+
interface CronFieldMeta {
|
|
35
|
+
/** 字段类型 */
|
|
36
|
+
type: CronFieldType;
|
|
37
|
+
/** 中文名称 */
|
|
38
|
+
label: string;
|
|
39
|
+
/** 最小值 */
|
|
40
|
+
min: number;
|
|
41
|
+
/** 最大值 */
|
|
42
|
+
max: number;
|
|
43
|
+
/** 可选值映射(用于周) */
|
|
44
|
+
valueLabels?: Record<number, string>;
|
|
45
|
+
}
|
|
46
|
+
/** 常用模板 */
|
|
47
|
+
interface CronTemplate {
|
|
48
|
+
/** 模板名称 */
|
|
49
|
+
label: string;
|
|
50
|
+
/** Cron 表达式 */
|
|
51
|
+
value: string;
|
|
52
|
+
/** 描述说明 */
|
|
53
|
+
description: string;
|
|
54
|
+
/** 图标 */
|
|
55
|
+
icon?: string;
|
|
56
|
+
}
|
|
57
|
+
/** 校验结果 */
|
|
58
|
+
interface CronValidation {
|
|
59
|
+
/** 是否合法 */
|
|
60
|
+
valid: boolean;
|
|
61
|
+
/** 错误信息 */
|
|
62
|
+
message: string;
|
|
63
|
+
/** 出错字段 */
|
|
64
|
+
field?: CronFieldType;
|
|
65
|
+
}
|
|
66
|
+
/** 组件 Props */
|
|
67
|
+
interface CronProps {
|
|
68
|
+
/** 当前 Cron 表达式 (v-model) */
|
|
69
|
+
modelValue?: string;
|
|
70
|
+
/** 是否禁用 */
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
/** 预览未来执行次数 */
|
|
73
|
+
previewCount?: number;
|
|
74
|
+
/** 是否显示模板面板 */
|
|
75
|
+
showTemplates?: boolean;
|
|
76
|
+
/** 是否显示预览面板 */
|
|
77
|
+
showPreview?: boolean;
|
|
78
|
+
/** 是否显示秒字段 */
|
|
79
|
+
showSecond?: boolean;
|
|
80
|
+
/** 容器高度 */
|
|
81
|
+
height?: string | number;
|
|
82
|
+
}
|
|
83
|
+
/** 组件暴露方法 */
|
|
84
|
+
interface CronExpose {
|
|
85
|
+
/** 获取当前表达式 */
|
|
86
|
+
getValue: () => string;
|
|
87
|
+
/** 设置表达式 */
|
|
88
|
+
setValue: (expression: string) => void;
|
|
89
|
+
/** 重置为默认 */
|
|
90
|
+
reset: () => void;
|
|
91
|
+
/** 校验当前表达式 */
|
|
92
|
+
validate: () => CronValidation;
|
|
93
|
+
}
|
|
94
|
+
/** 组件事件 */
|
|
95
|
+
interface CronEmits {
|
|
96
|
+
/** 表达式变更 */
|
|
97
|
+
"update:modelValue": [value: string];
|
|
98
|
+
/** 值变更 */
|
|
99
|
+
change: [value: string];
|
|
100
|
+
/** 校验状态变更 */
|
|
101
|
+
"validation-change": [result: CronValidation];
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/C_Cron/index.vue.d.ts
|
|
105
|
+
/** 重置为初始值 */
|
|
106
|
+
declare function handleReset(): void;
|
|
107
|
+
declare const __VLS_export: vue.DefineComponent<CronProps, {
|
|
108
|
+
getValue: () => string;
|
|
109
|
+
setValue: (expr: string) => void;
|
|
110
|
+
reset: typeof handleReset;
|
|
111
|
+
validate: () => CronValidation;
|
|
112
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
113
|
+
"update:modelValue": (value: string) => any;
|
|
114
|
+
change: (value: string) => any;
|
|
115
|
+
"validation-change": (result: CronValidation) => any;
|
|
116
|
+
}, string, vue.PublicProps, Readonly<CronProps> & Readonly<{
|
|
117
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
118
|
+
onChange?: ((value: string) => any) | undefined;
|
|
119
|
+
"onValidation-change"?: ((result: CronValidation) => any) | undefined;
|
|
120
|
+
}>, {
|
|
121
|
+
modelValue: string;
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
height: string | number;
|
|
124
|
+
previewCount: number;
|
|
125
|
+
showTemplates: boolean;
|
|
126
|
+
showPreview: boolean;
|
|
127
|
+
showSecond: boolean;
|
|
128
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
129
|
+
declare const _default: typeof __VLS_export;
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/components/C_Cron/composables/useCronParser.d.ts
|
|
132
|
+
/**
|
|
133
|
+
* Cron 解析 & 生成引擎
|
|
134
|
+
*/
|
|
135
|
+
declare function useCronParser(): {
|
|
136
|
+
cronValue: vue.Ref<{
|
|
137
|
+
second: {
|
|
138
|
+
mode: CronFieldMode;
|
|
139
|
+
rangeStart: number;
|
|
140
|
+
rangeEnd: number;
|
|
141
|
+
stepStart: number;
|
|
142
|
+
stepInterval: number;
|
|
143
|
+
specificValues: number[];
|
|
144
|
+
};
|
|
145
|
+
minute: {
|
|
146
|
+
mode: CronFieldMode;
|
|
147
|
+
rangeStart: number;
|
|
148
|
+
rangeEnd: number;
|
|
149
|
+
stepStart: number;
|
|
150
|
+
stepInterval: number;
|
|
151
|
+
specificValues: number[];
|
|
152
|
+
};
|
|
153
|
+
hour: {
|
|
154
|
+
mode: CronFieldMode;
|
|
155
|
+
rangeStart: number;
|
|
156
|
+
rangeEnd: number;
|
|
157
|
+
stepStart: number;
|
|
158
|
+
stepInterval: number;
|
|
159
|
+
specificValues: number[];
|
|
160
|
+
};
|
|
161
|
+
day: {
|
|
162
|
+
mode: CronFieldMode;
|
|
163
|
+
rangeStart: number;
|
|
164
|
+
rangeEnd: number;
|
|
165
|
+
stepStart: number;
|
|
166
|
+
stepInterval: number;
|
|
167
|
+
specificValues: number[];
|
|
168
|
+
};
|
|
169
|
+
month: {
|
|
170
|
+
mode: CronFieldMode;
|
|
171
|
+
rangeStart: number;
|
|
172
|
+
rangeEnd: number;
|
|
173
|
+
stepStart: number;
|
|
174
|
+
stepInterval: number;
|
|
175
|
+
specificValues: number[];
|
|
176
|
+
};
|
|
177
|
+
week: {
|
|
178
|
+
mode: CronFieldMode;
|
|
179
|
+
rangeStart: number;
|
|
180
|
+
rangeEnd: number;
|
|
181
|
+
stepStart: number;
|
|
182
|
+
stepInterval: number;
|
|
183
|
+
specificValues: number[];
|
|
184
|
+
};
|
|
185
|
+
}, CronValue | {
|
|
186
|
+
second: {
|
|
187
|
+
mode: CronFieldMode;
|
|
188
|
+
rangeStart: number;
|
|
189
|
+
rangeEnd: number;
|
|
190
|
+
stepStart: number;
|
|
191
|
+
stepInterval: number;
|
|
192
|
+
specificValues: number[];
|
|
193
|
+
};
|
|
194
|
+
minute: {
|
|
195
|
+
mode: CronFieldMode;
|
|
196
|
+
rangeStart: number;
|
|
197
|
+
rangeEnd: number;
|
|
198
|
+
stepStart: number;
|
|
199
|
+
stepInterval: number;
|
|
200
|
+
specificValues: number[];
|
|
201
|
+
};
|
|
202
|
+
hour: {
|
|
203
|
+
mode: CronFieldMode;
|
|
204
|
+
rangeStart: number;
|
|
205
|
+
rangeEnd: number;
|
|
206
|
+
stepStart: number;
|
|
207
|
+
stepInterval: number;
|
|
208
|
+
specificValues: number[];
|
|
209
|
+
};
|
|
210
|
+
day: {
|
|
211
|
+
mode: CronFieldMode;
|
|
212
|
+
rangeStart: number;
|
|
213
|
+
rangeEnd: number;
|
|
214
|
+
stepStart: number;
|
|
215
|
+
stepInterval: number;
|
|
216
|
+
specificValues: number[];
|
|
217
|
+
};
|
|
218
|
+
month: {
|
|
219
|
+
mode: CronFieldMode;
|
|
220
|
+
rangeStart: number;
|
|
221
|
+
rangeEnd: number;
|
|
222
|
+
stepStart: number;
|
|
223
|
+
stepInterval: number;
|
|
224
|
+
specificValues: number[];
|
|
225
|
+
};
|
|
226
|
+
week: {
|
|
227
|
+
mode: CronFieldMode;
|
|
228
|
+
rangeStart: number;
|
|
229
|
+
rangeEnd: number;
|
|
230
|
+
stepStart: number;
|
|
231
|
+
stepInterval: number;
|
|
232
|
+
specificValues: number[];
|
|
233
|
+
};
|
|
234
|
+
}>;
|
|
235
|
+
expression: vue.ComputedRef<string>;
|
|
236
|
+
validation: vue.ComputedRef<CronValidation>;
|
|
237
|
+
parse: (expression: string) => void;
|
|
238
|
+
generate: () => string;
|
|
239
|
+
validate: (expression?: string) => CronValidation;
|
|
240
|
+
handleDayWeekExclusion: (changedField: "day" | "week") => void;
|
|
241
|
+
};
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/components/C_Cron/composables/useCronPreview.d.ts
|
|
244
|
+
/**
|
|
245
|
+
* 解析 Cron 表达式,预测未来 N 次执行时间
|
|
246
|
+
* 纯逻辑实现,不依赖外部库
|
|
247
|
+
*/
|
|
248
|
+
declare function useCronPreview(expression: Ref<string>, validation: Ref<CronValidation>, count: Ref<number>): {
|
|
249
|
+
nextExecutions: Ref<Date[], Date[]>;
|
|
250
|
+
computing: Ref<boolean, boolean>;
|
|
251
|
+
formatDate: (date: Date) => string;
|
|
252
|
+
formatWeekDay: (date: Date) => string;
|
|
253
|
+
};
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/components/C_Cron/composables/useCronDescription.d.ts
|
|
256
|
+
/**
|
|
257
|
+
* 将 Cron 表达式自动转换为中文可读描述
|
|
258
|
+
*/
|
|
259
|
+
declare function useCronDescription(expression: Ref<string>, validation: Ref<CronValidation>): {
|
|
260
|
+
description: vue.ComputedRef<string>;
|
|
261
|
+
};
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/components/C_Cron/constants.d.ts
|
|
264
|
+
declare const CRON_FIELD_META: CronFieldMeta[];
|
|
265
|
+
declare const DEFAULT_FIELD_VALUE: CronFieldValue;
|
|
266
|
+
declare const DEFAULT_CRON_VALUE: CronValue;
|
|
267
|
+
declare const DEFAULT_CRON_EXPRESSION = "0 0 0 * * ?";
|
|
268
|
+
declare const CRON_TEMPLATES: CronTemplate[];
|
|
269
|
+
declare const MONTH_LABELS: Record<number, string>;
|
|
270
|
+
declare const WEEK_LABELS: Record<number, string>;
|
|
271
|
+
//#endregion
|
|
272
|
+
export { CronFieldValue as _, DEFAULT_FIELD_VALUE as a, CronValidation as b, useCronDescription as c, _default as d, CronEmits as f, CronFieldType as g, CronFieldMode as h, DEFAULT_CRON_VALUE as i, useCronPreview as l, CronFieldMeta as m, CRON_TEMPLATES as n, MONTH_LABELS as o, CronExpose as p, DEFAULT_CRON_EXPRESSION as r, WEEK_LABELS as s, CRON_FIELD_META as t, useCronParser as u, CronProps as v, CronValue as x, CronTemplate as y };
|
package/dist/constants.d.ts
CHANGED
|
@@ -110,20 +110,20 @@ declare const __VLS_export: vue.DefineComponent<CronProps, {
|
|
|
110
110
|
reset: typeof handleReset;
|
|
111
111
|
validate: () => CronValidation;
|
|
112
112
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
113
|
-
change: (value: string) => any;
|
|
114
113
|
"update:modelValue": (value: string) => any;
|
|
114
|
+
change: (value: string) => any;
|
|
115
115
|
"validation-change": (result: CronValidation) => any;
|
|
116
116
|
}, string, vue.PublicProps, Readonly<CronProps> & Readonly<{
|
|
117
|
-
onChange?: ((value: string) => any) | undefined;
|
|
118
117
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
118
|
+
onChange?: ((value: string) => any) | undefined;
|
|
119
119
|
"onValidation-change"?: ((result: CronValidation) => any) | undefined;
|
|
120
120
|
}>, {
|
|
121
|
-
height: string | number;
|
|
122
|
-
disabled: boolean;
|
|
123
121
|
modelValue: string;
|
|
124
|
-
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
height: string | number;
|
|
125
124
|
previewCount: number;
|
|
126
125
|
showTemplates: boolean;
|
|
126
|
+
showPreview: boolean;
|
|
127
127
|
showSecond: boolean;
|
|
128
128
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
129
129
|
declare const _default: typeof __VLS_export;
|
|
@@ -269,5 +269,4 @@ declare const CRON_TEMPLATES: CronTemplate[];
|
|
|
269
269
|
declare const MONTH_LABELS: Record<number, string>;
|
|
270
270
|
declare const WEEK_LABELS: Record<number, string>;
|
|
271
271
|
//#endregion
|
|
272
|
-
export { CronFieldValue as _, DEFAULT_FIELD_VALUE as a, CronValidation as b, useCronDescription as c, _default as d, CronEmits as f, CronFieldType as g, CronFieldMode as h, DEFAULT_CRON_VALUE as i, useCronPreview as l, CronFieldMeta as m, CRON_TEMPLATES as n, MONTH_LABELS as o, CronExpose as p, DEFAULT_CRON_EXPRESSION as r, WEEK_LABELS as s, CRON_FIELD_META as t, useCronParser as u, CronProps as v, CronValue as x, CronTemplate as y };
|
|
273
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
272
|
+
export { CronFieldValue as _, DEFAULT_FIELD_VALUE as a, CronValidation as b, useCronDescription as c, _default as d, CronEmits as f, CronFieldType as g, CronFieldMode as h, DEFAULT_CRON_VALUE as i, useCronPreview as l, CronFieldMeta as m, CRON_TEMPLATES as n, MONTH_LABELS as o, CronExpose as p, DEFAULT_CRON_EXPRESSION as r, WEEK_LABELS as s, CRON_FIELD_META as t, useCronParser as u, CronProps as v, CronValue as x, CronTemplate as y };
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import * as vue from "vue";
|
|
2
|
+
import { Ref } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/C_FormulaEditor/types.d.ts
|
|
5
|
+
/** 变量数据类型 */
|
|
6
|
+
type FormulaVariableType = "number" | "text" | "boolean";
|
|
7
|
+
/** 变量定义 */
|
|
8
|
+
interface FormulaVariable {
|
|
9
|
+
/** 显示名称(如「完成值」「目标额」) */
|
|
10
|
+
name: string;
|
|
11
|
+
/** 字段标识(如 'completion_value'),用于存储和求值 */
|
|
12
|
+
field: string;
|
|
13
|
+
/** 数据类型 */
|
|
14
|
+
type: FormulaVariableType;
|
|
15
|
+
/** 分组名称(如「目标档参数」「目标值」) */
|
|
16
|
+
group?: string;
|
|
17
|
+
/** 变量描述 */
|
|
18
|
+
description?: string;
|
|
19
|
+
}
|
|
20
|
+
/** 内置函数定义 */
|
|
21
|
+
interface FormulaFunction {
|
|
22
|
+
/** 函数名(如 'IF'、'SUM') */
|
|
23
|
+
name: string;
|
|
24
|
+
/** 函数签名(如 'IF(条件, 真值, 假值)') */
|
|
25
|
+
signature: string;
|
|
26
|
+
/** 函数描述 */
|
|
27
|
+
description: string;
|
|
28
|
+
/** 分类(如「逻辑」「数学」「聚合」) */
|
|
29
|
+
category?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Token 类型 */
|
|
32
|
+
type FormulaTokenType = "variable" | "operator" | "number" | "function" | "paren" | "comma" | "text" | "space";
|
|
33
|
+
/** 公式中的单个 Token */
|
|
34
|
+
interface FormulaToken {
|
|
35
|
+
/** Token 类型 */
|
|
36
|
+
type: FormulaTokenType;
|
|
37
|
+
/** 显示值 */
|
|
38
|
+
value: string;
|
|
39
|
+
/** 在原始字符串中的起始位置 */
|
|
40
|
+
start: number;
|
|
41
|
+
/** 在原始字符串中的结束位置 */
|
|
42
|
+
end: number;
|
|
43
|
+
}
|
|
44
|
+
/** 公式校验结果 */
|
|
45
|
+
interface FormulaValidation {
|
|
46
|
+
/** 是否合法 */
|
|
47
|
+
valid: boolean;
|
|
48
|
+
/** 消息 */
|
|
49
|
+
message: string;
|
|
50
|
+
/** 错误位置(字符索引) */
|
|
51
|
+
position?: number;
|
|
52
|
+
}
|
|
53
|
+
/** 键盘按键类型 */
|
|
54
|
+
type FormulaKeyType = "operator" | "number" | "paren" | "logic" | "compare" | "action";
|
|
55
|
+
/** 单个键盘按键定义 */
|
|
56
|
+
interface FormulaKeyboardKey {
|
|
57
|
+
/** 按键显示文本 */
|
|
58
|
+
label: string;
|
|
59
|
+
/** 按键输出值 */
|
|
60
|
+
value: string;
|
|
61
|
+
/** 按键类型 */
|
|
62
|
+
type: FormulaKeyType;
|
|
63
|
+
/** 高亮色(可选) */
|
|
64
|
+
color?: "primary" | "warning" | "error" | "info";
|
|
65
|
+
/** 是否是动作键(如退格、清空) */
|
|
66
|
+
isAction?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/** 公式编辑器 Props */
|
|
69
|
+
interface FormulaEditorProps {
|
|
70
|
+
/** 公式字符串 (v-model) */
|
|
71
|
+
modelValue?: string;
|
|
72
|
+
/** 可选变量列表 */
|
|
73
|
+
variables?: FormulaVariable[];
|
|
74
|
+
/** 可用函数列表(为空则使用内置默认函数) */
|
|
75
|
+
functions?: FormulaFunction[];
|
|
76
|
+
/** 样例数据(用于预览计算结果) */
|
|
77
|
+
sampleData?: Record<string, number | string | boolean>;
|
|
78
|
+
/** 是否禁用 */
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
/** 占位文本 */
|
|
81
|
+
placeholder?: string;
|
|
82
|
+
/** 容器高度 */
|
|
83
|
+
height?: string | number;
|
|
84
|
+
/** 是否显示预览 */
|
|
85
|
+
showPreview?: boolean;
|
|
86
|
+
/** 是否显示虚拟键盘 */
|
|
87
|
+
showKeyboard?: boolean;
|
|
88
|
+
/** 是否显示变量面板 */
|
|
89
|
+
showVariablePanel?: boolean;
|
|
90
|
+
}
|
|
91
|
+
/** 公式编辑器 Emits */
|
|
92
|
+
interface FormulaEditorEmits {
|
|
93
|
+
"update:modelValue": [value: string];
|
|
94
|
+
change: [value: string];
|
|
95
|
+
"validation-change": [result: FormulaValidation];
|
|
96
|
+
}
|
|
97
|
+
/** 公式编辑器暴露方法 */
|
|
98
|
+
interface FormulaEditorExpose {
|
|
99
|
+
/** 获取当前公式字符串 */
|
|
100
|
+
getValue: () => string;
|
|
101
|
+
/** 设置公式 */
|
|
102
|
+
setValue: (expr: string) => void;
|
|
103
|
+
/** 重置为初始值 */
|
|
104
|
+
reset: () => void;
|
|
105
|
+
/** 校验公式 */
|
|
106
|
+
validate: () => FormulaValidation;
|
|
107
|
+
/** 在光标位置插入文本 */
|
|
108
|
+
insertAtCursor: (text: string) => void;
|
|
109
|
+
/** 聚焦输入区 */
|
|
110
|
+
focus: () => void;
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/components/C_FormulaEditor/index.vue.d.ts
|
|
114
|
+
declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEditorExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
115
|
+
"update:modelValue": (value: string) => any;
|
|
116
|
+
change: (value: string) => any;
|
|
117
|
+
"validation-change": (result: FormulaValidation) => any;
|
|
118
|
+
}, string, vue.PublicProps, Readonly<FormulaEditorProps> & Readonly<{
|
|
119
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
120
|
+
onChange?: ((value: string) => any) | undefined;
|
|
121
|
+
"onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
|
|
122
|
+
}>, {
|
|
123
|
+
modelValue: string;
|
|
124
|
+
placeholder: string;
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
height: string | number;
|
|
127
|
+
showPreview: boolean;
|
|
128
|
+
variables: FormulaVariable[];
|
|
129
|
+
functions: FormulaFunction[];
|
|
130
|
+
sampleData: Record<string, number | string | boolean>;
|
|
131
|
+
showKeyboard: boolean;
|
|
132
|
+
showVariablePanel: boolean;
|
|
133
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
134
|
+
declare const _default: typeof __VLS_export;
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/components/C_FormulaEditor/composables/useFormulaParser.d.ts
|
|
137
|
+
/**
|
|
138
|
+
* 公式解析 & 校验引擎
|
|
139
|
+
*/
|
|
140
|
+
declare function useFormulaParser(variables: Ref<FormulaVariable[]>, functions: Ref<FormulaFunction[]>): {
|
|
141
|
+
tokenize: (formula: string) => FormulaToken[];
|
|
142
|
+
validate: (formula: string) => FormulaValidation;
|
|
143
|
+
toEvalExpression: (formula: string, variableMap: Map<string, string>) => string;
|
|
144
|
+
variableNames: vue.ComputedRef<Set<string>>;
|
|
145
|
+
functionNames: vue.ComputedRef<Set<string>>;
|
|
146
|
+
};
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/components/C_FormulaEditor/composables/useFormulaEvaluator.d.ts
|
|
149
|
+
/**
|
|
150
|
+
* 公式求值引擎
|
|
151
|
+
* 将公式中的 [变量名] 替换为实际值后计算结果
|
|
152
|
+
*/
|
|
153
|
+
declare function useFormulaEvaluator(variables: Ref<FormulaVariable[]>): {
|
|
154
|
+
evaluate: (formula: string, sampleData: Record<string, number | string | boolean>) => {
|
|
155
|
+
success: boolean;
|
|
156
|
+
result: unknown;
|
|
157
|
+
error?: string;
|
|
158
|
+
};
|
|
159
|
+
extractVariableNames: (formula: string) => string[];
|
|
160
|
+
variableMap: vue.ComputedRef<Map<string, string>>;
|
|
161
|
+
};
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/components/C_FormulaEditor/constants.d.ts
|
|
164
|
+
/** 运算符区(5 列 × 3 行) */
|
|
165
|
+
declare const OPERATOR_KEYS: FormulaKeyboardKey[];
|
|
166
|
+
/** 数字区(5 列 × 3 行) */
|
|
167
|
+
declare const NUMBER_KEYS: FormulaKeyboardKey[];
|
|
168
|
+
/** 动作键(⌫ + 清空) */
|
|
169
|
+
declare const ACTION_KEYS: FormulaKeyboardKey[];
|
|
170
|
+
/** 默认可用函数列表 */
|
|
171
|
+
declare const DEFAULT_FUNCTIONS: FormulaFunction[];
|
|
172
|
+
/** 所有可识别的运算符 */
|
|
173
|
+
declare const OPERATORS: Set<string>;
|
|
174
|
+
/** 需要在两侧加空格的运算符 */
|
|
175
|
+
declare const SPACED_OPERATORS: Set<string>;
|
|
176
|
+
//#endregion
|
|
177
|
+
export { FormulaTokenType as _, OPERATOR_KEYS as a, FormulaVariableType as b, useFormulaParser as c, FormulaEditorExpose as d, FormulaEditorProps as f, FormulaToken as g, FormulaKeyboardKey as h, OPERATORS as i, _default as l, FormulaKeyType as m, DEFAULT_FUNCTIONS as n, SPACED_OPERATORS as o, FormulaFunction as p, NUMBER_KEYS as r, useFormulaEvaluator as s, ACTION_KEYS as t, FormulaEditorEmits as u, FormulaValidation as v, FormulaVariable as y };
|
package/dist/constants2.d.ts
CHANGED
|
@@ -112,18 +112,18 @@ interface FormulaEditorExpose {
|
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region src/components/C_FormulaEditor/index.vue.d.ts
|
|
114
114
|
declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEditorExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
115
|
-
change: (value: string) => any;
|
|
116
115
|
"update:modelValue": (value: string) => any;
|
|
116
|
+
change: (value: string) => any;
|
|
117
117
|
"validation-change": (result: FormulaValidation) => any;
|
|
118
118
|
}, string, vue.PublicProps, Readonly<FormulaEditorProps> & Readonly<{
|
|
119
|
-
onChange?: ((value: string) => any) | undefined;
|
|
120
119
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
120
|
+
onChange?: ((value: string) => any) | undefined;
|
|
121
121
|
"onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
|
|
122
122
|
}>, {
|
|
123
|
-
|
|
123
|
+
modelValue: string;
|
|
124
124
|
placeholder: string;
|
|
125
125
|
disabled: boolean;
|
|
126
|
-
|
|
126
|
+
height: string | number;
|
|
127
127
|
showPreview: boolean;
|
|
128
128
|
variables: FormulaVariable[];
|
|
129
129
|
functions: FormulaFunction[];
|
|
@@ -174,5 +174,4 @@ declare const OPERATORS: Set<string>;
|
|
|
174
174
|
/** 需要在两侧加空格的运算符 */
|
|
175
175
|
declare const SPACED_OPERATORS: Set<string>;
|
|
176
176
|
//#endregion
|
|
177
|
-
export { FormulaTokenType as _, OPERATOR_KEYS as a, FormulaVariableType as b, useFormulaParser as c, FormulaEditorExpose as d, FormulaEditorProps as f, FormulaToken as g, FormulaKeyboardKey as h, OPERATORS as i, _default as l, FormulaKeyType as m, DEFAULT_FUNCTIONS as n, SPACED_OPERATORS as o, FormulaFunction as p, NUMBER_KEYS as r, useFormulaEvaluator as s, ACTION_KEYS as t, FormulaEditorEmits as u, FormulaValidation as v, FormulaVariable as y };
|
|
178
|
-
//# sourceMappingURL=constants2.d.ts.map
|
|
177
|
+
export { FormulaTokenType as _, OPERATOR_KEYS as a, FormulaVariableType as b, useFormulaParser as c, FormulaEditorExpose as d, FormulaEditorProps as f, FormulaToken as g, FormulaKeyboardKey as h, OPERATORS as i, _default as l, FormulaKeyType as m, DEFAULT_FUNCTIONS as n, SPACED_OPERATORS as o, FormulaFunction as p, NUMBER_KEYS as r, useFormulaEvaluator as s, ACTION_KEYS as t, FormulaEditorEmits as u, FormulaValidation as v, FormulaVariable as y };
|