@veltra/desktop 1.3.2 → 1.3.4
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/dist/components/action/action-group.vue.d.ts +2 -2
- package/dist/components/action/action.vue.d.ts +3 -1
- package/dist/components/action/index.d.ts +3 -2
- package/dist/components/action/style.d.ts +2 -1
- package/dist/components/auto-complete/auto-complete.vue.d.ts +2 -1
- package/dist/components/auto-complete/index.d.ts +2 -1
- package/dist/components/auto-complete/style.d.ts +4 -1
- package/dist/components/auto-complete/use-keyboard.js +1 -1
- package/dist/components/auto-complete/use-keyboard.js.map +1 -1
- package/dist/components/badge/badge.vue.d.ts +2 -1
- package/dist/components/badge/index.d.ts +2 -1
- package/dist/components/batch-edit/batch-edit.vue.d.ts +3 -1
- package/dist/components/batch-edit/helper.d.ts +1 -0
- package/dist/components/batch-edit/index.d.ts +3 -2
- package/dist/components/batch-edit/style.d.ts +5 -1
- package/dist/components/batch-edit/use-features.js +1 -1
- package/dist/components/batch-edit/use-features.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.vue.d.ts +2 -1
- package/dist/components/breadcrumb/index.d.ts +2 -1
- package/dist/components/button/button-group.vue.d.ts +2 -1
- package/dist/components/button/button.vue.d.ts +2 -1
- package/dist/components/button/index.d.ts +3 -2
- package/dist/components/button/style.d.ts +1 -1
- package/dist/components/calendar/calendar.vue.d.ts +2 -1
- package/dist/components/calendar/index.d.ts +2 -1
- package/dist/components/card/card-action.vue.d.ts +2 -1
- package/dist/components/card/card-content.vue.d.ts +2 -1
- package/dist/components/card/card-cover.vue.d.ts +2 -1
- package/dist/components/card/card-header.vue.d.ts +1 -1
- package/dist/components/card/card.vue.d.ts +2 -1
- package/dist/components/card/index.d.ts +6 -5
- package/dist/components/cascade/cascade.vue.d.ts +3 -2
- package/dist/components/cascade/index.d.ts +2 -1
- package/dist/components/cascade/style.d.ts +3 -1
- package/dist/components/check-tag/check-tag.vue.d.ts +2 -1
- package/dist/components/check-tag/index.d.ts +2 -1
- package/dist/components/checkbox/checkbox-button.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox.vue.d.ts +2 -1
- package/dist/components/checkbox/index.d.ts +3 -2
- package/dist/components/checkbox/style.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.vue.d.ts +2 -1
- package/dist/components/checkbox-group/index.d.ts +2 -1
- package/dist/components/checkbox-group/style.d.ts +1 -1
- package/dist/components/code-editor/code-editor.vue.d.ts +2 -1
- package/dist/components/code-editor/index.d.ts +2 -1
- package/dist/components/code-editor/langs/spel/language.js +2 -2
- package/dist/components/code-editor/langs/spel/language.js.map +1 -1
- package/dist/components/code-editor/style.d.ts +1 -1
- package/dist/components/collapse/collapse-item.vue.d.ts +4 -3
- package/dist/components/collapse/collapse.vue.d.ts +2 -1
- package/dist/components/collapse/index.d.ts +3 -2
- package/dist/components/condition-editor/condition-editor.vue.d.ts +3 -1
- package/dist/components/condition-editor/core/evaluator.d.ts +1 -0
- package/dist/components/condition-editor/index.d.ts +3 -2
- package/dist/components/condition-editor/style.d.ts +2 -1
- package/dist/components/contextmenu/api.d.ts +1 -0
- package/dist/components/contextmenu/contextmenu.vue.d.ts +2 -1
- package/dist/components/contextmenu/index.d.ts +3 -2
- package/dist/components/contextmenu/style.d.ts +2 -1
- package/dist/components/date-panel/date-panel.vue.d.ts +2 -1
- package/dist/components/date-panel/index.d.ts +2 -1
- package/dist/components/date-picker/date-picker.vue.d.ts +2 -1
- package/dist/components/date-picker/index.d.ts +2 -1
- package/dist/components/date-picker/style.d.ts +2 -1
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -1
- package/dist/components/date-range-picker/index.d.ts +2 -1
- package/dist/components/date-range-picker/style.d.ts +1 -1
- package/dist/components/dialog/dialog.vue.d.ts +5 -2
- package/dist/components/dialog/index.d.ts +2 -1
- package/dist/components/dialog/style.d.ts +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +3 -1
- package/dist/components/drawer/index.d.ts +2 -1
- package/dist/components/drawer/style.d.ts +1 -1
- package/dist/components/dropdown/dropdown.vue.d.ts +6 -2
- package/dist/components/dropdown/index.d.ts +2 -1
- package/dist/components/dropdown/style.d.ts +1 -1
- package/dist/components/dual-nav/dual-nav.vue.d.ts +2 -1
- package/dist/components/dual-nav/index.d.ts +2 -1
- package/dist/components/dual-nav/style.d.ts +1 -1
- package/dist/components/empty/empty.vue.d.ts +2 -1
- package/dist/components/empty/index.d.ts +2 -1
- package/dist/components/expression-editor/expression-editor.vue.d.ts +3 -1
- package/dist/components/expression-editor/index.d.ts +2 -1
- package/dist/components/file-picker/file-picker.js +6 -3
- package/dist/components/file-picker/file-picker.js.map +1 -1
- package/dist/components/file-picker/file-picker.vue.d.ts +2 -1
- package/dist/components/file-picker/index.d.ts +2 -1
- package/dist/components/file-viewer/file-viewer.js +2 -2
- package/dist/components/file-viewer/file-viewer.js.map +1 -1
- package/dist/components/file-viewer/file-viewer.vue.d.ts +1 -2
- package/dist/components/file-viewer/helper.js +4 -4
- package/dist/components/file-viewer/helper.js.map +1 -1
- package/dist/components/file-viewer/index.d.ts +2 -1
- package/dist/components/float-button/float-button.vue.d.ts +2 -1
- package/dist/components/float-button/index.d.ts +2 -1
- package/dist/components/float-button/style.d.ts +1 -1
- package/dist/components/form/form.vue.d.ts +2 -1
- package/dist/components/form/index.d.ts +2 -1
- package/dist/components/form-item/form-item.vue.d.ts +4 -2
- package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/form-item/index.d.ts +2 -1
- package/dist/components/gantt-chart/gantt-chart.vue.d.ts +2 -1
- package/dist/components/gantt-chart/index.d.ts +2 -1
- package/dist/components/grid/grid-item.vue.d.ts +2 -1
- package/dist/components/grid/grid.vue.d.ts +3 -1
- package/dist/components/grid/index.d.ts +3 -2
- package/dist/components/grid/use-responsive.js +2 -1
- package/dist/components/grid/use-responsive.js.map +1 -1
- package/dist/components/grid-input/grid-input.vue.d.ts +3 -1
- package/dist/components/grid-input/index.d.ts +2 -1
- package/dist/components/group-input/group-input.vue.d.ts +4 -3
- package/dist/components/group-input/index.d.ts +2 -1
- package/dist/components/group-input/style.d.ts +1 -1
- package/dist/components/group-nav/group-nav.vue.d.ts +1 -2
- package/dist/components/group-nav/index.d.ts +2 -1
- package/dist/components/icon/icon.vue.d.ts +2 -1
- package/dist/components/icon/index.d.ts +2 -1
- package/dist/components/index.d.ts +168 -92
- package/dist/components/index.js +5 -5
- package/dist/components/input/index.d.ts +2 -1
- package/dist/components/input/input.vue.d.ts +6 -5
- package/dist/components/input/style.d.ts +1 -1
- package/dist/components/kbd/kbd.vue.d.ts +1 -1
- package/dist/components/layout/index.d.ts +2 -1
- package/dist/components/layout/layout.vue.d.ts +2 -1
- package/dist/components/list/index.d.ts +3 -2
- package/dist/components/list/list-item.vue.d.ts +1 -1
- package/dist/components/list/list.vue.d.ts +2 -1
- package/dist/components/list/style.d.ts +1 -1
- package/dist/components/loading/directive.d.ts +0 -1
- package/dist/components/loading/index.d.ts +3 -2
- package/dist/components/loading/loading.vue.d.ts +3 -1
- package/dist/components/loading/style.d.ts +1 -1
- package/dist/components/message/index.d.ts +3 -2
- package/dist/components/message/message.d.ts +1 -0
- package/dist/components/message/message.vue.d.ts +3 -1
- package/dist/components/message-confirm/index.d.ts +3 -2
- package/dist/components/message-confirm/message-confirm-box.js +39 -0
- package/dist/components/message-confirm/message-confirm-box.js.map +1 -0
- package/dist/components/message-confirm/message-confirm.d.ts +5 -7
- package/dist/components/message-confirm/message-confirm.js +32 -46
- package/dist/components/message-confirm/message-confirm.js.map +1 -1
- package/dist/components/message-confirm/message-confirm.vue.d.ts +8 -4
- package/dist/components/message-confirm/message-confirm2.js +98 -23
- package/dist/components/message-confirm/message-confirm2.js.map +1 -1
- package/dist/components/message-confirm/style2.css +9 -9
- package/dist/components/multi-select/index.d.ts +2 -1
- package/dist/components/multi-select/multi-select.vue.d.ts +8 -7
- package/dist/components/multi-select/style.d.ts +5 -1
- package/dist/components/multi-tree-select/index.d.ts +2 -1
- package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +2 -2
- package/dist/components/multi-tree-select/style.d.ts +6 -1
- package/dist/components/nav/index.d.ts +4 -3
- package/dist/components/nav/nav-item.vue.d.ts +2 -1
- package/dist/components/nav/nav-sub.vue.d.ts +2 -1
- package/dist/components/nav/nav.vue.d.ts +2 -1
- package/dist/components/node-render/index.d.ts +2 -1
- package/dist/components/node-render/node-render.d.ts +1 -2
- package/dist/components/notification/index.d.ts +3 -8
- package/dist/components/notification/notification-box.js +130 -0
- package/dist/components/notification/notification-box.js.map +1 -0
- package/dist/components/notification/notification.d.ts +8 -0
- package/dist/components/notification/notification.js +62 -84
- package/dist/components/notification/notification.js.map +1 -1
- package/dist/components/notification/notification.vue.d.ts +10 -5
- package/dist/components/notification/notification2.js +134 -0
- package/dist/components/notification/notification2.js.map +1 -0
- package/dist/components/notification/style2.css +62 -32
- package/dist/components/number/index.d.ts +2 -1
- package/dist/components/number/number.vue.d.ts +2 -1
- package/dist/components/number-input/index.d.ts +2 -1
- package/dist/components/number-input/number-input.js +2 -1
- package/dist/components/number-input/number-input.js.map +1 -1
- package/dist/components/number-input/number-input.vue.d.ts +4 -2
- package/dist/components/number-input/style.d.ts +2 -1
- package/dist/components/number-range-input/index.d.ts +2 -1
- package/dist/components/number-range-input/number-range-input.js +4 -2
- package/dist/components/number-range-input/number-range-input.js.map +1 -1
- package/dist/components/number-range-input/number-range-input.vue.d.ts +2 -1
- package/dist/components/number-range-input/style.d.ts +1 -1
- package/dist/components/paginator/index.d.ts +2 -1
- package/dist/components/paginator/paginator.vue.d.ts +2 -1
- package/dist/components/paginator/style.d.ts +2 -1
- package/dist/components/palette/index.d.ts +2 -1
- package/dist/components/palette/palette-sv.js +4 -2
- package/dist/components/palette/palette-sv.js.map +1 -1
- package/dist/components/palette/palette.vue.d.ts +2 -1
- package/dist/components/palette/style.d.ts +2 -1
- package/dist/components/password-input/index.d.ts +2 -1
- package/dist/components/password-input/password-input.vue.d.ts +2 -1
- package/dist/components/password-input/style.d.ts +1 -1
- package/dist/components/pop-confirm/index.d.ts +2 -1
- package/dist/components/pop-confirm/pop-confirm.vue.d.ts +4 -2
- package/dist/components/pop-confirm/style.d.ts +1 -1
- package/dist/components/progress/index.d.ts +2 -1
- package/dist/components/progress/progress.vue.d.ts +4 -3
- package/dist/components/progress-nodes/index.d.ts +2 -1
- package/dist/components/progress-nodes/progress-nodes.js +2 -1
- package/dist/components/progress-nodes/progress-nodes.js.map +1 -1
- package/dist/components/progress-nodes/progress-nodes.vue.d.ts +8 -7
- package/dist/components/radio/index.d.ts +2 -1
- package/dist/components/radio/radio.vue.d.ts +2 -1
- package/dist/components/radio/style.d.ts +1 -1
- package/dist/components/radio-group/index.d.ts +2 -1
- package/dist/components/radio-group/radio-group.vue.d.ts +2 -1
- package/dist/components/radio-group/style.d.ts +1 -1
- package/dist/components/rich-text-editor/index.d.ts +2 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +2 -1
- package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +3 -1
- package/dist/components/rich-text-editor/toolbar.js +2 -1
- package/dist/components/rich-text-editor/toolbar.js.map +1 -1
- package/dist/components/scroll/index.d.ts +2 -1
- package/dist/components/scroll/scroll.vue.d.ts +5 -2
- package/dist/components/select/index.d.ts +2 -1
- package/dist/components/select/select.vue.d.ts +5 -2
- package/dist/components/select/style.d.ts +3 -1
- package/dist/components/slider/index.d.ts +2 -1
- package/dist/components/slider/slider.vue.d.ts +4 -3
- package/dist/components/steps/index.d.ts +2 -1
- package/dist/components/steps/steps.vue.d.ts +4 -3
- package/dist/components/switch/index.d.ts +2 -1
- package/dist/components/switch/switch.vue.d.ts +2 -1
- package/dist/components/table/index.d.ts +3 -2
- package/dist/components/table/node/col.d.ts +1 -1
- package/dist/components/table/node/row.d.ts +0 -1
- package/dist/components/table/style.d.ts +3 -1
- package/dist/components/table/table-row.js +2 -1
- package/dist/components/table/table-row.js.map +1 -1
- package/dist/components/table/table.vue.d.ts +3 -1
- package/dist/components/table/use-columns.d.ts +3 -0
- package/dist/components/table/use-columns.js +2 -1
- package/dist/components/table/use-columns.js.map +1 -1
- package/dist/components/table-editor/index.d.ts +2 -1
- package/dist/components/table-editor/style.d.ts +2 -1
- package/dist/components/table-editor/table-editor.vue.d.ts +2 -1
- package/dist/components/tabs/index.d.ts +4 -3
- package/dist/components/tabs/style.d.ts +2 -1
- package/dist/components/tabs/tabs-horizontal.vue.d.ts +3 -2
- package/dist/components/tabs/tabs-vertical.vue.d.ts +3 -2
- package/dist/components/tabs/tabs.vue.d.ts +3 -2
- package/dist/components/tag/index.d.ts +2 -1
- package/dist/components/tag/tag.vue.d.ts +2 -1
- package/dist/components/text/index.d.ts +2 -1
- package/dist/components/text/text.vue.d.ts +2 -1
- package/dist/components/textarea/index.d.ts +2 -1
- package/dist/components/textarea/style.d.ts +1 -1
- package/dist/components/textarea/textarea.js +4 -2
- package/dist/components/textarea/textarea.js.map +1 -1
- package/dist/components/textarea/textarea.vue.d.ts +2 -1
- package/dist/components/theme/index.d.ts +2 -1
- package/dist/components/theme/style.d.ts +5 -1
- package/dist/components/theme/theme.vue.d.ts +2 -1
- package/dist/components/tip/index.d.ts +2 -1
- package/dist/components/tip/tip.vue.d.ts +4 -2
- package/dist/components/tree/di.d.ts +2 -0
- package/dist/components/tree/index.d.ts +2 -1
- package/dist/components/tree/style.d.ts +1 -1
- package/dist/components/tree/tree.vue.d.ts +3 -1
- package/dist/components/tree-select/index.d.ts +2 -1
- package/dist/components/tree-select/style.d.ts +3 -1
- package/dist/components/tree-select/tree-select.vue.d.ts +5 -3
- package/dist/components/watermark/index.d.ts +2 -1
- package/dist/components/watermark/watermark.vue.d.ts +2 -1
- package/dist/index.d.ts +97 -98
- package/dist/index.js +3 -3
- package/dist/install.d.ts +1 -1
- package/dist/node_modules/.bun/@codemirror_autocomplete@6.20.3/node_modules/@codemirror/autocomplete/dist/index.js +13 -4
- package/dist/node_modules/.bun/@codemirror_autocomplete@6.20.3/node_modules/@codemirror/autocomplete/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@codemirror_commands@6.10.4/node_modules/@codemirror/commands/dist/index.js +1 -1
- package/dist/node_modules/.bun/@codemirror_lang-css@6.3.1/node_modules/@codemirror/lang-css/dist/index.js +3 -2
- package/dist/node_modules/.bun/@codemirror_lang-css@6.3.1/node_modules/@codemirror/lang-css/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@codemirror_lang-html@6.4.11/node_modules/@codemirror/lang-html/dist/index.js +1 -1
- package/dist/node_modules/.bun/@codemirror_lang-java@6.0.2/node_modules/@codemirror/lang-java/dist/index.js +1 -1
- package/dist/node_modules/.bun/@codemirror_lang-javascript@6.2.5/node_modules/@codemirror/lang-javascript/dist/index.js +1 -1
- package/dist/node_modules/.bun/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.js +1 -1
- package/dist/node_modules/.bun/@codemirror_lang-markdown@6.5.1/node_modules/@codemirror/lang-markdown/dist/index.js +1 -1
- package/dist/node_modules/.bun/@codemirror_lang-sql@6.10.0/node_modules/@codemirror/lang-sql/dist/index.js +31 -5
- package/dist/node_modules/.bun/@codemirror_lang-sql@6.10.0/node_modules/@codemirror/lang-sql/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@codemirror_language@6.12.4/node_modules/@codemirror/language/dist/index.js +5 -3
- package/dist/node_modules/.bun/@codemirror_language@6.12.4/node_modules/@codemirror/language/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@codemirror_lint@6.9.7/node_modules/@codemirror/lint/dist/index.js +1 -1
- package/dist/node_modules/.bun/@codemirror_search@6.7.1/node_modules/@codemirror/search/dist/index.js +3 -2
- package/dist/node_modules/.bun/@codemirror_search@6.7.1/node_modules/@codemirror/search/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@codemirror_state@6.7.0/node_modules/@codemirror/state/dist/index.js +3 -2
- package/dist/node_modules/.bun/@codemirror_state@6.7.0/node_modules/@codemirror/state/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js +30 -7
- package/dist/node_modules/.bun/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@codemirror_view@6.43.4/node_modules/@codemirror/view/dist/index.js +11 -5
- package/dist/node_modules/.bun/@codemirror_view@6.43.4/node_modules/@codemirror/view/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@lezer_common@1.5.2/node_modules/@lezer/common/dist/index.js +3 -2
- package/dist/node_modules/.bun/@lezer_common@1.5.2/node_modules/@lezer/common/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@lezer_css@1.3.4/node_modules/@lezer/css/dist/index.js +20 -2
- package/dist/node_modules/.bun/@lezer_css@1.3.4/node_modules/@lezer/css/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +15 -2
- package/dist/node_modules/.bun/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@lezer_html@1.3.13/node_modules/@lezer/html/dist/index.js +42 -3
- package/dist/node_modules/.bun/@lezer_html@1.3.13/node_modules/@lezer/html/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@lezer_javascript@1.5.4/node_modules/@lezer/javascript/dist/index.js +23 -2
- package/dist/node_modules/.bun/@lezer_javascript@1.5.4/node_modules/@lezer/javascript/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@lezer_lr@1.4.10/node_modules/@lezer/lr/dist/index.js +1 -1
- package/dist/node_modules/.bun/@lezer_markdown@1.7.2/node_modules/@lezer/markdown/dist/index.js +39 -29
- package/dist/node_modules/.bun/@lezer_markdown@1.7.2/node_modules/@lezer/markdown/dist/index.js.map +1 -1
- package/dist/node_modules/.bun/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js +3 -2
- package/dist/node_modules/.bun/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js.map +1 -1
- package/dist/style.d.ts +39 -1
- package/dist/types/action.d.ts +0 -1
- package/dist/types/animation.d.ts +0 -1
- package/dist/types/auto-complete.d.ts +0 -1
- package/dist/types/badge.d.ts +0 -1
- package/dist/types/batch-edit.d.ts +18 -13
- package/dist/types/breadcrumb.d.ts +0 -1
- package/dist/types/button.d.ts +0 -1
- package/dist/types/calendar.d.ts +0 -1
- package/dist/types/card.d.ts +0 -1
- package/dist/types/cascade.d.ts +0 -1
- package/dist/types/check-tag.d.ts +0 -1
- package/dist/types/checkbox-group.d.ts +0 -1
- package/dist/types/checkbox.d.ts +0 -1
- package/dist/types/code-editor.d.ts +0 -1
- package/dist/types/collapse.d.ts +0 -1
- package/dist/types/condition-editor.d.ts +0 -1
- package/dist/types/contextmenu.d.ts +0 -1
- package/dist/types/css-transition.d.ts +0 -1
- package/dist/types/date-panel.d.ts +0 -1
- package/dist/types/date-picker.d.ts +0 -1
- package/dist/types/date-range-picker.d.ts +0 -1
- package/dist/types/dialog.d.ts +0 -1
- package/dist/types/drawer.d.ts +0 -1
- package/dist/types/dropdown.d.ts +2 -2
- package/dist/types/dual-nav.d.ts +0 -1
- package/dist/types/empty.d.ts +0 -1
- package/dist/types/expression-editor.d.ts +0 -1
- package/dist/types/file-picker.d.ts +0 -1
- package/dist/types/file-viewer.d.ts +0 -1
- package/dist/types/float-button.d.ts +0 -1
- package/dist/types/form-item.d.ts +0 -1
- package/dist/types/form.d.ts +0 -1
- package/dist/types/grid-input.d.ts +0 -1
- package/dist/types/grid.d.ts +1 -2
- package/dist/types/group-input.d.ts +0 -1
- package/dist/types/group-nav.d.ts +0 -1
- package/dist/types/index.d.ts +4 -6
- package/dist/types/input.d.ts +0 -1
- package/dist/types/layout.d.ts +0 -1
- package/dist/types/list.d.ts +0 -1
- package/dist/types/loading.d.ts +0 -1
- package/dist/types/message-confirm.d.ts +48 -5
- package/dist/types/message.d.ts +3 -2
- package/dist/types/multi-auto-complete.d.ts +0 -1
- package/dist/types/multi-select.d.ts +0 -1
- package/dist/types/multi-tree-select.d.ts +0 -1
- package/dist/types/nav.d.ts +0 -1
- package/dist/types/node-render.d.ts +0 -1
- package/dist/types/notification.d.ts +67 -17
- package/dist/types/number-input.d.ts +0 -1
- package/dist/types/number-range-input.d.ts +0 -1
- package/dist/types/paginator.d.ts +0 -1
- package/dist/types/palette.d.ts +0 -1
- package/dist/types/password-input.d.ts +0 -1
- package/dist/types/pop-confirm.d.ts +0 -1
- package/dist/types/pop.d.ts +0 -1
- package/dist/types/progress-nodes.d.ts +0 -1
- package/dist/types/progress.d.ts +0 -1
- package/dist/types/quick-batch-edit.d.ts +0 -1
- package/dist/types/radio-group.d.ts +0 -1
- package/dist/types/radio.d.ts +0 -1
- package/dist/types/rich-text-editor.d.ts +0 -1
- package/dist/types/scroll.d.ts +11 -6
- package/dist/types/select.d.ts +0 -1
- package/dist/types/slider.d.ts +0 -1
- package/dist/types/steps.d.ts +0 -1
- package/dist/types/switch.d.ts +0 -1
- package/dist/types/table-editor.d.ts +0 -1
- package/dist/types/table.d.ts +0 -1
- package/dist/types/tabs.d.ts +2 -2
- package/dist/types/tag.d.ts +0 -1
- package/dist/types/text-editor.d.ts +0 -1
- package/dist/types/textarea.d.ts +0 -1
- package/dist/types/theme.d.ts +0 -1
- package/dist/types/tip.d.ts +0 -1
- package/dist/types/tree-select.d.ts +0 -1
- package/dist/types/tree.d.ts +0 -1
- package/dist/types/watermark.d.ts +0 -1
- package/package.json +19 -19
- package/src/components/message-confirm/index.ts +1 -1
- package/src/components/message-confirm/message-confirm-box.vue +36 -0
- package/src/components/message-confirm/message-confirm.ts +113 -21
- package/src/components/message-confirm/message-confirm.vue +30 -37
- package/src/components/message-confirm/style.scss +10 -12
- package/src/components/notification/index.ts +1 -143
- package/src/components/notification/notification-box.vue +150 -0
- package/src/components/notification/notification.ts +142 -0
- package/src/components/notification/notification.vue +40 -66
- package/src/components/notification/style.scss +65 -38
- package/src/types/message-confirm.ts +52 -3
- package/src/types/notification.ts +71 -15
- package/dist/components/notification/index.js +0 -140
- package/dist/components/notification/index.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InputProps, _InputExposed } from "../../types/input.js";
|
|
2
|
+
import "../../types/index.js";
|
|
2
3
|
//#region src/components/input/input.vue.d.ts
|
|
3
4
|
type __VLS_Props = InputProps;
|
|
4
5
|
type __VLS_ModelProps = {
|
|
@@ -17,19 +18,19 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, _Inpu
|
|
|
17
18
|
"update:modelValue": (value: string) => any;
|
|
18
19
|
change: (value: string) => any;
|
|
19
20
|
clear: () => any;
|
|
20
|
-
focus: (value?: string | undefined) => any;
|
|
21
|
-
blur: (value?: string | undefined) => any;
|
|
22
21
|
"suffix:click": (value?: string | undefined) => any;
|
|
23
22
|
"prefix:click": (value?: string | undefined) => any;
|
|
23
|
+
focus: (value?: string | undefined) => any;
|
|
24
|
+
blur: (value?: string | undefined) => any;
|
|
24
25
|
"native:input": (ev: Event) => any;
|
|
25
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
27
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
28
|
onChange?: ((value: string) => any) | undefined;
|
|
28
29
|
onClear?: (() => any) | undefined;
|
|
29
|
-
onFocus?: ((value?: string | undefined) => any) | undefined;
|
|
30
|
-
onBlur?: ((value?: string | undefined) => any) | undefined;
|
|
31
30
|
"onSuffix:click"?: ((value?: string | undefined) => any) | undefined;
|
|
32
31
|
"onPrefix:click"?: ((value?: string | undefined) => any) | undefined;
|
|
32
|
+
onFocus?: ((value?: string | undefined) => any) | undefined;
|
|
33
|
+
onBlur?: ((value?: string | undefined) => any) | undefined;
|
|
33
34
|
"onNative:input"?: ((ev: Event) => any) | undefined;
|
|
34
35
|
}>, {
|
|
35
36
|
disabled: boolean;
|
|
@@ -45,5 +46,5 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
45
46
|
};
|
|
46
47
|
};
|
|
47
48
|
//#endregion
|
|
48
|
-
export { _default };
|
|
49
|
+
export { _default as default };
|
|
49
50
|
//# sourceMappingURL=input.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import "@veltra/styles/transitions/zoom-in.scss";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _default from "./layout.vue.js";
|
|
2
|
+
export { _default as ULayout };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LayoutProps } from "../../types/layout.js";
|
|
2
|
+
import "../../types/index.js";
|
|
2
3
|
//#region src/components/layout/layout.vue.d.ts
|
|
3
4
|
declare var __VLS_9: {};
|
|
4
5
|
type __VLS_Slots = {} & {
|
|
@@ -15,5 +16,5 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
//#endregion
|
|
18
|
-
export { _default };
|
|
19
|
+
export { _default as default };
|
|
19
20
|
//# sourceMappingURL=layout.vue.d.ts.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _default from "./list.vue.js";
|
|
2
|
+
import _default$1 from "./list-item.vue.js";
|
|
3
|
+
export { _default as UList, _default$1 as UListItem };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ListProps } from "../../types/list.js";
|
|
2
|
+
import "../../types/index.js";
|
|
2
3
|
//#region src/components/list/list.vue.d.ts
|
|
3
4
|
declare var __VLS_8: {
|
|
4
5
|
item: Record<string, any>;
|
|
@@ -16,5 +17,5 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
19
|
//#endregion
|
|
19
|
-
export { _default };
|
|
20
|
+
export { _default as default };
|
|
20
21
|
//# sourceMappingURL=list.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import "../button/style.js";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { vLoading } from "./directive.js";
|
|
1
|
+
import _default from "./loading.vue.js";
|
|
2
|
+
import { vLoading } from "./directive.js";
|
|
3
|
+
export { _default as ULoading, vLoading };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { LoadingProps, LoadingType } from "../../types/loading.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import "../../index.js";
|
|
2
4
|
//#region src/components/loading/loading.vue.d.ts
|
|
3
5
|
declare const __VLS_export: import("vue").DefineComponent<LoadingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LoadingProps> & Readonly<{}>, {
|
|
4
6
|
type: LoadingType;
|
|
5
7
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
8
|
declare const _default: typeof __VLS_export;
|
|
7
9
|
//#endregion
|
|
8
|
-
export { _default };
|
|
10
|
+
export { _default as default };
|
|
9
11
|
//# sourceMappingURL=loading.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import "@veltra/styles/transitions/fade.scss";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { message } from "./message.js";
|
|
1
|
+
import _default from "./message.vue.js";
|
|
2
|
+
import { message } from "./message.js";
|
|
3
|
+
export { _default as UMessage, message };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { MessageProps, MessageType } from "../../types/message.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import "../../index.js";
|
|
2
4
|
//#region src/components/message/message.vue.d.ts
|
|
3
5
|
declare const __VLS_export: import("vue").DefineComponent<MessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
6
|
close: () => any;
|
|
@@ -10,5 +12,5 @@ declare const __VLS_export: import("vue").DefineComponent<MessageProps, {}, {},
|
|
|
10
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
13
|
declare const _default: typeof __VLS_export;
|
|
12
14
|
//#endregion
|
|
13
|
-
export { _default };
|
|
15
|
+
export { _default as default };
|
|
14
16
|
//# sourceMappingURL=message.vue.d.ts.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import _default from "./message-confirm.vue.js";
|
|
2
|
+
import { messageConfirm } from "./message-confirm.js";
|
|
3
|
+
export { _default as UMessageConfirm, messageConfirm };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _sfc_main$1 from "./message-confirm.js";
|
|
2
|
+
import { Fragment, TransitionGroup, createBlock, createElementBlock, defineComponent, mergeProps, openBlock, renderList, withCtx } from "vue";
|
|
3
|
+
//#region src/components/message-confirm/message-confirm-box.vue
|
|
4
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
|
+
name: "UMessageConfirmBox",
|
|
6
|
+
__name: "message-confirm-box",
|
|
7
|
+
props: { confirms: {} },
|
|
8
|
+
emits: ["closed", "close"],
|
|
9
|
+
setup(__props, { emit: __emit }) {
|
|
10
|
+
const emit = __emit;
|
|
11
|
+
function handleAfterLeave(el) {
|
|
12
|
+
emit("closed", el.dataset.key);
|
|
13
|
+
}
|
|
14
|
+
function handleClose(key, onClose, action) {
|
|
15
|
+
emit("close", key, action);
|
|
16
|
+
onClose?.(action);
|
|
17
|
+
}
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createBlock(TransitionGroup, {
|
|
20
|
+
name: "message-confirm",
|
|
21
|
+
appear: "",
|
|
22
|
+
onAfterLeave: handleAfterLeave
|
|
23
|
+
}, {
|
|
24
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.confirms, ({ onClose, onClosed, ...confirm }) => {
|
|
25
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref_for: true }, confirm, {
|
|
26
|
+
key: confirm.key,
|
|
27
|
+
"data-key": confirm.key,
|
|
28
|
+
onClose: ($event) => handleClose(confirm.key, onClose, $event)
|
|
29
|
+
}), null, 16, ["data-key", "onClose"]);
|
|
30
|
+
}), 128))]),
|
|
31
|
+
_: 1
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { _sfc_main as default };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=message-confirm-box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-confirm-box.js","names":[],"sources":["../../../src/components/message-confirm/message-confirm-box.vue"],"sourcesContent":["<template>\n <transition-group name=\"message-confirm\" appear @after-leave=\"handleAfterLeave\">\n <UMessageConfirm\n v-for=\"{ onClose, onClosed, ...confirm } of confirms\"\n v-bind=\"confirm\"\n :key=\"confirm.key\"\n :data-key=\"confirm.key\"\n @close=\"handleClose(confirm.key, onClose, $event)\"\n />\n </transition-group>\n</template>\n\n<script lang=\"ts\" setup>\nimport type { MessageConfirmAction, MessageConfirmOptions } from '../../types'\nimport UMessageConfirm from './message-confirm.vue'\n\ndefineOptions({ name: 'UMessageConfirmBox' })\n\ntype ConfirmItem = MessageConfirmOptions & { key: string }\n\ndefineProps<{ confirms: ConfirmItem[] }>()\n\nconst emit = defineEmits<{\n (e: 'closed', key: string): void\n (e: 'close', key: string, action: MessageConfirmAction): void\n}>()\n\nfunction handleAfterLeave(el: Element) {\n emit('closed', (el as HTMLElement).dataset.key as string)\n}\n\nfunction handleClose(key: string, onClose: ConfirmItem['onClose'], action: MessageConfirmAction) {\n emit('close', key, action)\n onClose?.(action)\n}\n</script>\n"],"mappings":";;;;;;;;;EAsBA,MAAM,OAAO;EAKb,SAAS,iBAAiB,IAAa;GACrC,KAAK,UAAW,GAAmB,QAAQ,GAAa;EAC1D;EAEA,SAAS,YAAY,KAAa,SAAiC,QAA8B;GAC/F,KAAK,SAAS,KAAK,MAAM;GACzB,UAAU,MAAM;EAClB;;uBAjCE,YAQmB,iBAAA;IARD,MAAK;IAAkB,QAAA;IAAQ,cAAa;;2BAEL,EAAA,UAAA,IAAA,GADvD,mBAME,UAAA,MAAA,WAL4C,QAAA,WAAQ,EAA3C,SAAS,UAAQ,GAAK,cAAO;yBADxC,YAME,aANF,WAME,EAAA,SAAA,KAAA,GAJQ,SAAO;MACd,KAAK,QAAQ;MACb,YAAU,QAAQ;MAClB,UAAK,WAAE,YAAY,QAAQ,KAAK,SAAS,MAAM"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { MessageConfirm } from "../../types/message-confirm.js";
|
|
2
|
+
import "../../types/index.js";
|
|
4
3
|
//#region src/components/message-confirm/message-confirm.d.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const _default: MessageConfirmTypeFn;
|
|
4
|
+
/** --- 导出 API --- */
|
|
5
|
+
declare const messageConfirm: MessageConfirm;
|
|
8
6
|
//#endregion
|
|
9
|
-
export {
|
|
7
|
+
export { messageConfirm };
|
|
10
8
|
//# sourceMappingURL=message-confirm.d.ts.map
|
|
@@ -1,67 +1,53 @@
|
|
|
1
1
|
import _sfc_main$1 from "../button/button.js";
|
|
2
|
-
import {
|
|
2
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, toDisplayString, unref, withCtx } from "vue";
|
|
3
3
|
import { useFallbackProps } from "@veltra/compositions";
|
|
4
|
-
import { bem
|
|
4
|
+
import { bem } from "@veltra/utils";
|
|
5
5
|
//#region src/components/message-confirm/message-confirm.vue
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
7
|
name: "UMessageConfirm",
|
|
8
8
|
__name: "message-confirm",
|
|
9
9
|
props: {
|
|
10
|
-
modelValue: {},
|
|
11
10
|
title: { default: "" },
|
|
12
11
|
message: { default: "" },
|
|
13
12
|
confirmButtonText: { default: "确定" },
|
|
14
13
|
cancelButtonText: { default: "" },
|
|
15
14
|
confirmButtonType: { default: "primary" },
|
|
16
|
-
|
|
15
|
+
zIndex: {},
|
|
17
16
|
size: {}
|
|
18
17
|
},
|
|
19
|
-
|
|
18
|
+
emits: ["close"],
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
20
|
const props = __props;
|
|
21
|
+
const emit = __emit;
|
|
21
22
|
const { size } = useFallbackProps([props], { size: "default" });
|
|
22
23
|
const cls = bem("message-confirm");
|
|
23
|
-
const visible = ref(false);
|
|
24
|
-
onMounted(() => {
|
|
25
|
-
visible.value = true;
|
|
26
|
-
});
|
|
27
|
-
const close = (action) => {
|
|
28
|
-
visible.value = false;
|
|
29
|
-
if (props.onClose) props.onClose(action);
|
|
30
|
-
};
|
|
31
24
|
return (_ctx, _cache) => {
|
|
32
|
-
return openBlock(),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class: normalizeClass(unref(cls).e("
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}, {
|
|
59
|
-
default: withCtx(() => [createTextVNode(toDisplayString(__props.confirmButtonText), 1)]),
|
|
60
|
-
_: 1
|
|
61
|
-
}, 8, ["type", "class"])], 2)
|
|
62
|
-
], 2)], 6)], 2), [[vShow, visible.value]])]),
|
|
63
|
-
_: 1
|
|
64
|
-
});
|
|
25
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(cls).b, unref(cls).m(unref(size))]) }, [createElementVNode("div", {
|
|
26
|
+
class: normalizeClass(unref(cls).e("mask")),
|
|
27
|
+
style: normalizeStyle({ zIndex: __props.zIndex })
|
|
28
|
+
}, [createElementVNode("div", { class: normalizeClass(unref(cls).e("box")) }, [
|
|
29
|
+
__props.title ? (openBlock(), createElementBlock("div", {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: normalizeClass(unref(cls).e("header"))
|
|
32
|
+
}, toDisplayString(__props.title), 3)) : createCommentVNode("v-if", true),
|
|
33
|
+
createElementVNode("div", { class: normalizeClass(unref(cls).e("content")) }, toDisplayString(__props.message), 3),
|
|
34
|
+
createElementVNode("div", { class: normalizeClass(unref(cls).e("footer")) }, [__props.cancelButtonText ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
35
|
+
key: 0,
|
|
36
|
+
plain: "",
|
|
37
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close", "cancel")),
|
|
38
|
+
class: normalizeClass(unref(cls).em("footer", "btn"))
|
|
39
|
+
}, {
|
|
40
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.cancelButtonText), 1)]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true), createVNode(unref(_sfc_main$1), {
|
|
43
|
+
type: __props.confirmButtonType,
|
|
44
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("close", "confirm")),
|
|
45
|
+
class: normalizeClass(unref(cls).em("footer", "btn"))
|
|
46
|
+
}, {
|
|
47
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.confirmButtonText), 1)]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["type", "class"])], 2)
|
|
50
|
+
], 2)], 6)], 2);
|
|
65
51
|
};
|
|
66
52
|
}
|
|
67
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-confirm.js","names":[
|
|
1
|
+
{"version":3,"file":"message-confirm.js","names":[],"sources":["../../../src/components/message-confirm/message-confirm.vue"],"sourcesContent":["<template>\n <div :class=\"[cls.b, cls.m(size)]\">\n <div :class=\"cls.e('mask')\" :style=\"{ zIndex }\">\n <div :class=\"cls.e('box')\">\n <div :class=\"cls.e('header')\" v-if=\"title\">{{ title }}</div>\n <div :class=\"cls.e('content')\">{{ message }}</div>\n <div :class=\"cls.e('footer')\">\n <UButton\n plain\n @click=\"emit('close', 'cancel')\"\n :class=\"cls.em('footer', 'btn')\"\n v-if=\"cancelButtonText\"\n >{{ cancelButtonText }}</UButton\n >\n <UButton\n :type=\"confirmButtonType\"\n @click=\"emit('close', 'confirm')\"\n :class=\"cls.em('footer', 'btn')\"\n >{{ confirmButtonText }}</UButton\n >\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useFallbackProps } from '@veltra/compositions'\nimport { bem } from '@veltra/utils'\n\nimport type {\n MessageConfirmProps,\n MessageConfirmEmits,\n ColorType,\n ComponentSize\n} from '../../types'\nimport { UButton } from '../button'\n\ndefineOptions({ name: 'UMessageConfirm' })\n\nconst props = withDefaults(defineProps<MessageConfirmProps>(), {\n title: '',\n message: '',\n confirmButtonText: '确定',\n confirmButtonType: 'primary' as ColorType,\n cancelButtonText: ''\n})\n\nconst emit = defineEmits<MessageConfirmEmits>()\n\nconst { size } = useFallbackProps([props], { size: 'default' as ComponentSize })\n\nconst cls = bem('message-confirm')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EAwCA,MAAM,QAAQ;EAQd,MAAM,OAAO;EAEb,MAAM,EAAE,SAAS,iBAAiB,CAAC,KAAK,GAAG,EAAE,MAAM,UAA2B,CAAC;EAE/E,MAAM,MAAM,IAAI,iBAAiB;;uBAnD/B,mBAsBM,OAAA,EAtBA,OAAK,eAAA,CAAG,MAAA,GAAA,CAAG,CAAC,GAAG,MAAA,GAAA,CAAG,CAAC,EAAE,MAAA,IAAA,CAAI,CAAA,CAAA,EAAA,GAAA,CAC7B,mBAoBM,OAAA;IApBA,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,MAAA,CAAA;IAAW,OAAK,eAAA,EAAA,QAAI,QAAA,OAAM,CAAA;OAC1C,mBAkBM,OAAA,EAlBA,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,KAAA,CAAA,EAAA,GAAA;IACoB,QAAA,SAAA,UAAA,GAApC,mBAA4D,OAAA;;KAAtD,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,QAAA,CAAA;uBAA4B,QAAA,KAAK,GAAA,CAAA,KAAA,mBAAA,QAAA,IAAA;IACnD,mBAAkD,OAAA,EAA5C,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,SAAA,CAAA,EAAA,GAAA,gBAAgB,QAAA,OAAO,GAAA,CAAA;IACzC,mBAcM,OAAA,EAdA,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,EAAC,QAAA,CAAA,EAAA,GAAA,CAKR,QAAA,oBAAA,UAAA,GAJR,YAMC,MAAA,WAAA,GAAA;;KALC,OAAA;KACC,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,SAAA,QAAA;KACX,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,GAAE,UAAA,KAAA,CAAA;;4BAES,CAAA,gBAAA,gBAAnB,QAAA,gBAAgB,GAAA,CAAA,CAAA,CAAA;;0DAEtB,YAKC,MAAA,WAAA,GAAA;KAJE,MAAM,QAAA;KACN,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,SAAA,SAAA;KACX,OAAK,eAAE,MAAA,GAAA,CAAG,CAAC,GAAE,UAAA,KAAA,CAAA;;4BACU,CAAA,gBAAA,gBAApB,QAAA,iBAAiB,GAAA,CAAA,CAAA,CAAA"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { MessageConfirmProps } from "../../types/message-confirm.js";
|
|
1
|
+
import { MessageConfirmAction, MessageConfirmProps } from "../../types/message-confirm.js";
|
|
2
2
|
import { index_d_exports } from "../../types/index.js";
|
|
3
|
-
|
|
3
|
+
import "../../index.js";
|
|
4
4
|
//#region src/components/message-confirm/message-confirm.vue.d.ts
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<MessageConfirmProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<MessageConfirmProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
close: (action: MessageConfirmAction) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<MessageConfirmProps> & Readonly<{
|
|
8
|
+
onClose?: ((action: MessageConfirmAction) => any) | undefined;
|
|
9
|
+
}>, {
|
|
6
10
|
title: string;
|
|
7
11
|
message: string;
|
|
8
12
|
confirmButtonText: string;
|
|
@@ -11,5 +15,5 @@ declare const __VLS_export: import("vue").DefineComponent<MessageConfirmProps, {
|
|
|
11
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
16
|
declare const _default: typeof __VLS_export;
|
|
13
17
|
//#endregion
|
|
14
|
-
export { _default };
|
|
18
|
+
export { _default as default };
|
|
15
19
|
//# sourceMappingURL=message-confirm.vue.d.ts.map
|
|
@@ -1,34 +1,109 @@
|
|
|
1
|
-
import _sfc_main from "./message-confirm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { zIndex } from "@veltra/utils";
|
|
1
|
+
import _sfc_main from "./message-confirm-box.js";
|
|
2
|
+
import { h, render, shallowReactive } from "vue";
|
|
3
|
+
import { bem, zIndex } from "@veltra/utils";
|
|
4
4
|
//#region src/components/message-confirm/message-confirm.ts
|
|
5
|
-
const
|
|
5
|
+
const cls = bem("message-confirm");
|
|
6
|
+
/** --- 状态管理 --- */
|
|
7
|
+
let container = null;
|
|
8
|
+
const confirms = shallowReactive([]);
|
|
9
|
+
/** 关闭动画结束后的回调 */
|
|
10
|
+
const closedCallbacks = /* @__PURE__ */ new Map();
|
|
11
|
+
/** 记录每项关闭时的用户操作,动画结束后随回调抛出 */
|
|
12
|
+
const pendingActions = /* @__PURE__ */ new Map();
|
|
13
|
+
/** 用于计数正在显示的 DOM 节点 (包含动画执行中) */
|
|
14
|
+
let activeCount = 0;
|
|
15
|
+
let uid = 0;
|
|
16
|
+
/** --- 内部辅助函数 --- */
|
|
17
|
+
/** 彻底销毁容器 */
|
|
18
|
+
const destroy = () => {
|
|
19
|
+
if (container) {
|
|
20
|
+
render(null, container);
|
|
21
|
+
document.body.removeChild(container);
|
|
22
|
+
container = null;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
/** 离开动画结束后的清理 */
|
|
26
|
+
const handleClosed = (key) => {
|
|
27
|
+
activeCount--;
|
|
28
|
+
const cb = closedCallbacks.get(key);
|
|
29
|
+
if (cb) {
|
|
30
|
+
cb(pendingActions.get(key) ?? "cancel");
|
|
31
|
+
closedCallbacks.delete(key);
|
|
32
|
+
}
|
|
33
|
+
pendingActions.delete(key);
|
|
34
|
+
if (activeCount === 0) destroy();
|
|
35
|
+
};
|
|
36
|
+
/** 触发关闭 (仅从数组移除,触发 Transition 离开动画) */
|
|
37
|
+
const handleClose = (key, action) => {
|
|
38
|
+
pendingActions.set(key, action);
|
|
39
|
+
const index = confirms.findIndex((c) => c.key === key);
|
|
40
|
+
if (index !== -1) confirms.splice(index, 1);
|
|
41
|
+
};
|
|
42
|
+
/** 挂载并渲染容器 */
|
|
43
|
+
const ensureContainer = () => {
|
|
44
|
+
if (container) return container;
|
|
45
|
+
container = document.createElement("div");
|
|
46
|
+
container.className = cls.e("container");
|
|
47
|
+
document.body.appendChild(container);
|
|
48
|
+
return container;
|
|
49
|
+
};
|
|
50
|
+
/** 执行 Vue 渲染逻辑 */
|
|
51
|
+
const updateView = () => {
|
|
52
|
+
const el = ensureContainer();
|
|
53
|
+
const vnode = h(_sfc_main, {
|
|
54
|
+
confirms,
|
|
55
|
+
onClosed: handleClosed,
|
|
56
|
+
onClose: handleClose
|
|
57
|
+
});
|
|
58
|
+
vnode.appContext = messageConfirm._context;
|
|
59
|
+
render(vnode, el);
|
|
60
|
+
};
|
|
61
|
+
/** 创建确认框实例 */
|
|
62
|
+
const createConfirm = (options) => {
|
|
63
|
+
const { onClosed: userOnClosed, ...confirmOptions } = options;
|
|
64
|
+
const id = `confirm_${uid++}`;
|
|
65
|
+
activeCount++;
|
|
66
|
+
let resolveClosed;
|
|
67
|
+
const onClosed = new Promise((r) => resolveClosed = r);
|
|
68
|
+
closedCallbacks.set(id, (action) => {
|
|
69
|
+
userOnClosed?.(action);
|
|
70
|
+
resolveClosed(action);
|
|
71
|
+
});
|
|
72
|
+
confirms.push({
|
|
73
|
+
zIndex: zIndex(),
|
|
74
|
+
...confirmOptions,
|
|
75
|
+
key: id
|
|
76
|
+
});
|
|
77
|
+
updateView();
|
|
78
|
+
return {
|
|
79
|
+
id,
|
|
80
|
+
close: (action = "cancel") => handleClose(id, action),
|
|
81
|
+
onClosed
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/** --- 导出 API --- */
|
|
85
|
+
const messageConfirm = ((options) => {
|
|
86
|
+
return createConfirm(typeof options === "string" ? { message: options } : options);
|
|
87
|
+
});
|
|
88
|
+
messageConfirm._context = null;
|
|
89
|
+
[
|
|
6
90
|
"primary",
|
|
7
91
|
"success",
|
|
8
92
|
"info",
|
|
9
93
|
"warning",
|
|
10
94
|
"danger"
|
|
11
|
-
]
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
zIndex: zIndex()
|
|
95
|
+
].forEach((type) => {
|
|
96
|
+
messageConfirm[type] = (msg, config) => messageConfirm({
|
|
97
|
+
...config,
|
|
98
|
+
message: msg,
|
|
99
|
+
confirmButtonType: type
|
|
17
100
|
});
|
|
18
|
-
vm.props.onDestroy = () => render(null, container);
|
|
19
|
-
render(vm, container);
|
|
20
|
-
document.body.appendChild(container.firstElementChild);
|
|
21
|
-
};
|
|
22
|
-
ColorTypeArray.forEach((type) => {
|
|
23
|
-
MessageConfirm[type] = (message, onClose) => {
|
|
24
|
-
return MessageConfirm({
|
|
25
|
-
message,
|
|
26
|
-
confirmButtonType: type,
|
|
27
|
-
onClose
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
101
|
});
|
|
102
|
+
/** 关闭所有当前显示的确认框 */
|
|
103
|
+
messageConfirm.closeAll = () => {
|
|
104
|
+
confirms.splice(0);
|
|
105
|
+
};
|
|
31
106
|
//#endregion
|
|
32
|
-
export {
|
|
107
|
+
export { messageConfirm };
|
|
33
108
|
|
|
34
109
|
//# sourceMappingURL=message-confirm2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-confirm2.js","names":["
|
|
1
|
+
{"version":3,"file":"message-confirm2.js","names":["UMessageConfirmBox"],"sources":["../../../src/components/message-confirm/message-confirm.ts"],"sourcesContent":["import { bem, zIndex } from '@veltra/utils'\nimport { h, render, shallowReactive } from 'vue'\n\nimport type {\n MessageConfirm,\n MessageConfirmAction,\n MessageConfirmInstance,\n MessageConfirmOptions\n} from '../../types'\nimport UMessageConfirmBox from './message-confirm-box.vue'\n\nconst cls = bem('message-confirm')\n\n/** 确认框项数据结构 */\ntype ConfirmItem = MessageConfirmOptions & { key: string }\n\n/** --- 状态管理 --- */\nlet container: HTMLElement | null = null\nconst confirms = shallowReactive<ConfirmItem[]>([])\n\n/** 关闭动画结束后的回调 */\nconst closedCallbacks = new Map<string, (action: MessageConfirmAction) => void>()\n\n/** 记录每项关闭时的用户操作,动画结束后随回调抛出 */\nconst pendingActions = new Map<string, MessageConfirmAction>()\n\n/** 用于计数正在显示的 DOM 节点 (包含动画执行中) */\nlet activeCount = 0\nlet uid = 0\n\n/** --- 内部辅助函数 --- */\n\n/** 彻底销毁容器 */\nconst destroy = () => {\n if (container) {\n render(null, container)\n document.body.removeChild(container)\n container = null\n }\n}\n\n/** 离开动画结束后的清理 */\nconst handleClosed = (key: string) => {\n activeCount--\n\n const cb = closedCallbacks.get(key)\n if (cb) {\n cb(pendingActions.get(key) ?? 'cancel')\n closedCallbacks.delete(key)\n }\n pendingActions.delete(key)\n\n // 没有活跃确认框时销毁容器,保持页面干净\n if (activeCount === 0) destroy()\n}\n\n/** 触发关闭 (仅从数组移除,触发 Transition 离开动画) */\nconst handleClose = (key: string, action: MessageConfirmAction) => {\n pendingActions.set(key, action)\n const index = confirms.findIndex((c) => c.key === key)\n if (index !== -1) confirms.splice(index, 1)\n}\n\n/** 挂载并渲染容器 */\nconst ensureContainer = () => {\n if (container) return container\n\n container = document.createElement('div')\n container.className = cls.e('container')\n document.body.appendChild(container)\n return container\n}\n\n/** 执行 Vue 渲染逻辑 */\nconst updateView = () => {\n const el = ensureContainer()\n\n const vnode = h(UMessageConfirmBox, { confirms, onClosed: handleClosed, onClose: handleClose })\n\n vnode.appContext = messageConfirm._context\n render(vnode, el)\n}\n\n/** 创建确认框实例 */\nconst createConfirm = (options: MessageConfirmOptions): MessageConfirmInstance => {\n const { onClosed: userOnClosed, ...confirmOptions } = options\n const id = `confirm_${uid++}`\n activeCount++\n\n // 生命周期 Promise\n let resolveClosed: (action: MessageConfirmAction) => void\n const onClosed = new Promise<MessageConfirmAction>((r) => (resolveClosed = r))\n\n closedCallbacks.set(id, (action) => {\n userOnClosed?.(action)\n resolveClosed(action)\n })\n\n confirms.push({ zIndex: zIndex(), ...confirmOptions, key: id })\n updateView()\n\n return { id, close: (action = 'cancel') => handleClose(id, action), onClosed }\n}\n\n/** --- 导出 API --- */\n\nexport const messageConfirm = ((options) => {\n return createConfirm(typeof options === 'string' ? { message: options } : options)\n}) as MessageConfirm\n\nmessageConfirm._context = null\n\n// 挂载快捷方法: messageConfirm.danger(...)\nconst confirmTypes = ['primary', 'success', 'info', 'warning', 'danger'] as const\nconfirmTypes.forEach((type) => {\n messageConfirm[type] = (msg, config) =>\n messageConfirm({ ...config, message: msg, confirmButtonType: type })\n})\n\n/** 关闭所有当前显示的确认框 */\nmessageConfirm.closeAll = () => {\n confirms.splice(0)\n}\n"],"mappings":";;;;AAWA,MAAM,MAAM,IAAI,iBAAiB;;AAMjC,IAAI,YAAgC;AACpC,MAAM,WAAW,gBAA+B,CAAC,CAAC;;AAGlD,MAAM,kCAAkB,IAAI,IAAoD;;AAGhF,MAAM,iCAAiB,IAAI,IAAkC;;AAG7D,IAAI,cAAc;AAClB,IAAI,MAAM;;;AAKV,MAAM,gBAAgB;CACpB,IAAI,WAAW;EACb,OAAO,MAAM,SAAS;EACtB,SAAS,KAAK,YAAY,SAAS;EACnC,YAAY;CACd;AACF;;AAGA,MAAM,gBAAgB,QAAgB;CACpC;CAEA,MAAM,KAAK,gBAAgB,IAAI,GAAG;CAClC,IAAI,IAAI;EACN,GAAG,eAAe,IAAI,GAAG,KAAK,QAAQ;EACtC,gBAAgB,OAAO,GAAG;CAC5B;CACA,eAAe,OAAO,GAAG;CAGzB,IAAI,gBAAgB,GAAG,QAAQ;AACjC;;AAGA,MAAM,eAAe,KAAa,WAAiC;CACjE,eAAe,IAAI,KAAK,MAAM;CAC9B,MAAM,QAAQ,SAAS,WAAW,MAAM,EAAE,QAAQ,GAAG;CACrD,IAAI,UAAU,IAAI,SAAS,OAAO,OAAO,CAAC;AAC5C;;AAGA,MAAM,wBAAwB;CAC5B,IAAI,WAAW,OAAO;CAEtB,YAAY,SAAS,cAAc,KAAK;CACxC,UAAU,YAAY,IAAI,EAAE,WAAW;CACvC,SAAS,KAAK,YAAY,SAAS;CACnC,OAAO;AACT;;AAGA,MAAM,mBAAmB;CACvB,MAAM,KAAK,gBAAgB;CAE3B,MAAM,QAAQ,EAAEA,WAAoB;EAAE;EAAU,UAAU;EAAc,SAAS;CAAY,CAAC;CAE9F,MAAM,aAAa,eAAe;CAClC,OAAO,OAAO,EAAE;AAClB;;AAGA,MAAM,iBAAiB,YAA2D;CAChF,MAAM,EAAE,UAAU,cAAc,GAAG,mBAAmB;CACtD,MAAM,KAAK,WAAW;CACtB;CAGA,IAAI;CACJ,MAAM,WAAW,IAAI,SAA+B,MAAO,gBAAgB,CAAE;CAE7E,gBAAgB,IAAI,KAAK,WAAW;EAClC,eAAe,MAAM;EACrB,cAAc,MAAM;CACtB,CAAC;CAED,SAAS,KAAK;EAAE,QAAQ,OAAO;EAAG,GAAG;EAAgB,KAAK;CAAG,CAAC;CAC9D,WAAW;CAEX,OAAO;EAAE;EAAI,QAAQ,SAAS,aAAa,YAAY,IAAI,MAAM;EAAG;CAAS;AAC/E;;AAIA,MAAa,mBAAmB,YAAY;CAC1C,OAAO,cAAc,OAAO,YAAY,WAAW,EAAE,SAAS,QAAQ,IAAI,OAAO;AACnF;AAEA,eAAe,WAAW;AAI1B;CADsB;CAAW;CAAW;CAAQ;CAAW;AACpD,CAAC,CAAC,SAAS,SAAS;CAC7B,eAAe,SAAS,KAAK,WAC3B,eAAe;EAAE,GAAG;EAAQ,SAAS;EAAK,mBAAmB;CAAK,CAAC;AACvE,CAAC;;AAGD,eAAe,iBAAiB;CAC9B,SAAS,OAAO,CAAC;AACnB"}
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
justify-content: center;
|
|
27
27
|
align-items: center;
|
|
28
28
|
flex-wrap: nowrap;
|
|
29
|
+
transition: opacity var(--u-transition-normal) var(--u-transition-ease);
|
|
29
30
|
}
|
|
30
31
|
.u-message-confirm__box {
|
|
31
32
|
width: 420px;
|
|
32
33
|
background-color: var(--u-bg-color-top);
|
|
33
34
|
border: var(--u-border);
|
|
34
35
|
box-shadow: var(--u-shadow-lg);
|
|
35
|
-
transition: opacity
|
|
36
|
-
transform: translateY(-50%);
|
|
36
|
+
transition: opacity var(--u-transition-normal) var(--u-transition-ease), transform var(--u-transition-normal) var(--u-transition-ease-out);
|
|
37
37
|
}
|
|
38
38
|
.u-message-confirm__header {
|
|
39
39
|
font-weight: bold;
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
font-size: var(--u-font-size-title-large);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.message-confirm-
|
|
76
|
-
.message-confirm-
|
|
77
|
-
|
|
75
|
+
.message-confirm-enter-from .u-message-confirm__mask,
|
|
76
|
+
.message-confirm-leave-to .u-message-confirm__mask {
|
|
77
|
+
opacity: 0;
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
.message-confirm-
|
|
81
|
-
|
|
82
|
-
transform:
|
|
79
|
+
.message-confirm-enter-from .u-message-confirm__box,
|
|
80
|
+
.message-confirm-leave-to .u-message-confirm__box {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
transform: translateY(-40px);
|
|
83
83
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _default from "./multi-select.vue.js";
|
|
2
|
+
export { _default as UMultiSelect };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MultiSelectProps } from "../../types/multi-select.js";
|
|
2
|
+
import "../../types/index.js";
|
|
2
3
|
//#region src/components/multi-select/multi-select.vue.d.ts
|
|
3
4
|
type __VLS_Props = MultiSelectProps;
|
|
4
5
|
type __VLS_ModelProps = {
|
|
@@ -6,12 +7,12 @@ type __VLS_ModelProps = {
|
|
|
6
7
|
};
|
|
7
8
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
9
|
declare var __VLS_103: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
option: Record<string, any>;
|
|
11
|
+
index: number;
|
|
12
|
+
}, __VLS_113: {
|
|
13
|
+
option: Record<string, any>;
|
|
14
|
+
index: number;
|
|
15
|
+
};
|
|
15
16
|
type __VLS_Slots = {} & {
|
|
16
17
|
default?: (props: typeof __VLS_103) => any;
|
|
17
18
|
} & {
|
|
@@ -43,5 +44,5 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
43
44
|
};
|
|
44
45
|
};
|
|
45
46
|
//#endregion
|
|
46
|
-
export { _default };
|
|
47
|
+
export { _default as default };
|
|
47
48
|
//# sourceMappingURL=multi-select.vue.d.ts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _default from "./multi-tree-select.vue.js";
|
|
2
|
+
export { _default as UMultiTreeSelect };
|