@veltra/desktop 1.15.0 → 1.15.2
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/_virtual/_rolldown/runtime.js +1 -2
- package/dist/components/action/action-group.js +1 -2
- package/dist/components/action/action-group.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/action/action.js +1 -2
- package/dist/components/action/di.js +1 -2
- package/dist/components/ai-button/ai-button.js +1 -2
- package/dist/components/alert/alert.js +32 -30
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert/style.d.ts +1 -1
- package/dist/components/alert/style.js +1 -0
- package/dist/components/alert/style2.css +5 -1
- package/dist/components/anchor/anchor-item.js +1 -2
- package/dist/components/anchor/anchor.js +1 -2
- package/dist/components/anchor/di.js +1 -2
- package/dist/components/anchor/use-anchor.js +1 -2
- package/dist/components/auto-complete/auto-complete.js +1 -2
- package/dist/components/auto-complete/style2.css +1 -0
- package/dist/components/auto-complete/use-keyboard.js +1 -2
- package/dist/components/auto-complete/use-suggestions.js +1 -2
- package/dist/components/avatar/avatar-group.js +1 -2
- package/dist/components/avatar/avatar.js +1 -2
- package/dist/components/back-top/back-top.js +1 -2
- package/dist/components/back-top/style2.css +11 -2
- package/dist/components/badge/badge.js +16 -17
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/badge/style2.css +10 -1
- package/dist/components/batch-edit/batch-edit-form.js +109 -99
- package/dist/components/batch-edit/batch-edit-form.js.map +1 -1
- package/dist/components/batch-edit/batch-edit-list.js +1 -2
- package/dist/components/batch-edit/batch-edit.js +12 -7
- package/dist/components/batch-edit/batch-edit.js.map +1 -1
- package/dist/components/batch-edit/di.js +1 -2
- package/dist/components/batch-edit/form-action-header.js +1 -2
- package/dist/components/batch-edit/helper.d.ts +0 -2
- package/dist/components/batch-edit/helper.js +1 -2
- package/dist/components/batch-edit/style2.css +25 -1
- package/dist/components/batch-edit/use-dialog-effect.js +1 -2
- package/dist/components/batch-edit/use-edit-state.js +1 -2
- package/dist/components/batch-edit/use-features.js +1 -2
- package/dist/components/batch-edit/use-handlers.js +1 -2
- package/dist/components/batch-edit/use-shortcut-key.js +1 -2
- package/dist/components/breadcrumb/breadcrumb.js +1 -2
- package/dist/components/breadcrumb/style2.css +4 -1
- package/dist/components/button/button-group.js +1 -2
- package/dist/components/button/button.js +1 -2
- package/dist/components/button/style2.css +3 -2
- package/dist/components/calendar/calendar.js +1 -2
- package/dist/components/calendar/utils.js +1 -2
- package/dist/components/card/card-action.js +1 -2
- package/dist/components/card/card-content.js +1 -2
- package/dist/components/card/card-cover.js +1 -2
- package/dist/components/card/card-header.js +1 -2
- package/dist/components/card/card.js +1 -2
- package/dist/components/card/di.js +1 -2
- package/dist/components/carousel/carousel-item.js +1 -2
- package/dist/components/carousel/carousel.js +6 -5
- package/dist/components/carousel/carousel.js.map +1 -1
- package/dist/components/carousel/di.js +1 -2
- package/dist/components/carousel/style2.css +7 -1
- package/dist/components/carousel/use-carousel.js +17 -4
- package/dist/components/carousel/use-carousel.js.map +1 -1
- package/dist/components/cascade/cascade-panel-item.js +1 -2
- package/dist/components/cascade/cascade.js +1 -2
- package/dist/components/cascade/di.js +1 -2
- package/dist/components/cascade/node.js +1 -2
- package/dist/components/cascade/style2.css +16 -0
- package/dist/components/cascade/use-check.js +1 -2
- package/dist/components/cascade/use-data-map.js +1 -2
- package/dist/components/cascade/use-select.js +1 -2
- package/dist/components/check-tag/check-tag.js +12 -7
- package/dist/components/check-tag/check-tag.js.map +1 -1
- package/dist/components/check-tag/style2.css +10 -0
- package/dist/components/checkbox/checkbox-button.js +9 -5
- package/dist/components/checkbox/checkbox-button.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +6 -11
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/checkbox/style2.css +32 -2
- package/dist/components/checkbox-group/checkbox-group.js +1 -2
- package/dist/components/chip/chip.js +1 -2
- package/dist/components/chip/style2.css +4 -0
- package/dist/components/chip-group/chip-group.js +1 -2
- package/dist/components/chip-group/reveal.js +1 -2
- package/dist/components/code-editor/basic-setup.js +1 -2
- package/dist/components/code-editor/code-editor.js +27 -5
- package/dist/components/code-editor/code-editor.js.map +1 -1
- package/dist/components/code-editor/lang-loaders.js +1 -2
- package/dist/components/code-editor/langs/bash/index.js +1 -2
- package/dist/components/code-editor/langs/powershell/index.js +1 -2
- package/dist/components/code-editor/langs/spel/completion.js +0 -1
- package/dist/components/code-editor/langs/spel/index.js +1 -2
- package/dist/components/code-editor/langs/spel/language.js +1 -2
- package/dist/components/code-editor/shell-extension.js +1 -2
- package/dist/components/code-editor/style2.css +38 -3
- package/dist/components/collapse/collapse-item.js +5 -3
- package/dist/components/collapse/collapse-item.js.map +1 -1
- package/dist/components/collapse/collapse.js +2 -3
- package/dist/components/collapse/collapse.js.map +1 -1
- package/dist/components/collapse/di.js +1 -2
- package/dist/components/collapse/style2.css +6 -3
- package/dist/components/condition-editor/components/condition-group.js +1 -2
- package/dist/components/condition-editor/components/condition-row.js +1 -2
- package/dist/components/condition-editor/condition-editor.js +1 -2
- package/dist/components/condition-editor/core/evaluator.d.ts +0 -2
- package/dist/components/condition-editor/core/evaluator.js +1 -2
- package/dist/components/condition-editor/core/operators.js +1 -2
- package/dist/components/condition-editor/style2.css +24 -6
- package/dist/components/contextmenu/api.d.ts +0 -2
- package/dist/components/contextmenu/api.js +1 -2
- package/dist/components/contextmenu/contextmenu-item.js +1 -2
- package/dist/components/contextmenu/contextmenu-panel.js +1 -2
- package/dist/components/contextmenu/contextmenu-sub.js +14 -9
- package/dist/components/contextmenu/contextmenu-sub.js.map +1 -1
- package/dist/components/contextmenu/contextmenu.js +1 -2
- package/dist/components/contextmenu/di.d.ts +0 -2
- package/dist/components/contextmenu/di.js +1 -2
- package/dist/components/contextmenu/helper.js +1 -2
- package/dist/components/contextmenu/style2.css +14 -1
- package/dist/components/date-panel/date-panel.js +1 -2
- package/dist/components/date-panel/di.js +1 -2
- package/dist/components/date-panel/headers/day.js +1 -2
- package/dist/components/date-panel/headers/month.js +1 -2
- package/dist/components/date-panel/headers/year.js +1 -2
- package/dist/components/date-panel/panels/day.js +1 -2
- package/dist/components/date-panel/panels/month.js +1 -2
- package/dist/components/date-panel/panels/year.js +1 -2
- package/dist/components/date-panel/style2.css +9 -1
- package/dist/components/date-panel/use-date-select.js +1 -2
- package/dist/components/date-panel/use-panel-date.js +1 -2
- package/dist/components/date-panel/use-panel.js +1 -2
- package/dist/components/date-picker/date-picker.js +1 -2
- package/dist/components/date-range-picker/date-range-picker.js +1 -2
- package/dist/components/descriptions/descriptions-item.js +1 -2
- package/dist/components/descriptions/descriptions.js +1 -2
- package/dist/components/dialog/di.js +1 -2
- package/dist/components/dialog/dialog.js +1 -2
- package/dist/components/dialog/style2.css +5 -1
- package/dist/components/dialog/use-maximum.js +7 -2
- package/dist/components/dialog/use-maximum.js.map +1 -1
- package/dist/components/divider/divider.js +1 -2
- package/dist/components/drawer/drawer.js +1 -2
- package/dist/components/drawer/style2.css +4 -0
- package/dist/components/dropdown/dropdown.js +1 -2
- package/dist/components/dual-nav/dual-nav-app.js +1 -2
- package/dist/components/dual-nav/dual-nav.js +1 -2
- package/dist/components/dual-nav/helper.js +1 -2
- package/dist/components/dual-nav/style2.css +5 -2
- package/dist/components/empty/empty.js +1 -2
- package/dist/components/expression-editor/components/path-preview.js +1 -2
- package/dist/components/expression-editor/components/variable-picker.js +1 -2
- package/dist/components/expression-editor/core/chip.js +1 -2
- package/dist/components/expression-editor/core/editor.js +1 -2
- package/dist/components/expression-editor/core/mention.js +1 -2
- package/dist/components/expression-editor/core/model.js +1 -2
- package/dist/components/expression-editor/di.js +1 -2
- package/dist/components/expression-editor/expression-editor.js +1 -2
- package/dist/components/expression-editor/style2.css +17 -5
- package/dist/components/file-picker/file-picker.js +1 -2
- package/dist/components/file-picker/helper.js +1 -2
- package/dist/components/file-viewer/file-viewer-toolbar.js +1 -2
- package/dist/components/file-viewer/file-viewer.js +1 -2
- package/dist/components/file-viewer/helper.js +1 -2
- package/dist/components/file-viewer/previewers/docx-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/image-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/ofd-previewer.js +3 -2
- package/dist/components/file-viewer/previewers/ofd-previewer.js.map +1 -1
- package/dist/components/file-viewer/previewers/pdf-polyfill.js +35 -3
- package/dist/components/file-viewer/previewers/pdf-polyfill.js.map +1 -1
- package/dist/components/file-viewer/previewers/pdf-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/pdf-previewer.js.map +1 -1
- package/dist/components/file-viewer/previewers/pdf-worker-wrapper.js +36 -5
- package/dist/components/file-viewer/previewers/pdf-worker-wrapper.js.map +1 -1
- package/dist/components/file-viewer/previewers/sheet-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/text-previewer.js +1 -2
- package/dist/components/file-viewer/previewers/video-previewer.js +1 -2
- package/dist/components/file-viewer/style2.css +8 -2
- package/dist/components/float-button/float-button.js +2 -3
- package/dist/components/float-button/float-button.js.map +1 -1
- package/dist/components/float-button/style2.css +2 -3
- package/dist/components/form/form.js +1 -2
- package/dist/components/form/form.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/form/is-field-modified.js +1 -2
- package/dist/components/form/use-form-fields.js +1 -2
- package/dist/components/form/use-node-interceptor.js +1 -2
- package/dist/components/form-item/form-item.js +1 -2
- package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js +1 -2
- package/dist/components/form-item/helper.js +1 -2
- package/dist/components/form-item/style2.css +13 -1
- package/dist/components/form-item/validate.js +1 -2
- package/dist/components/gantt-chart/gantt-chart.js +1 -2
- package/dist/components/grid/breakpoint.js +0 -1
- package/dist/components/grid/di.js +1 -2
- package/dist/components/grid/grid-item.js +1 -2
- package/dist/components/grid/grid.js +1 -2
- package/dist/components/grid/use-responsive.js +1 -2
- package/dist/components/grid-input/grid-input.js +1 -2
- package/dist/components/grid-input/style2.css +15 -3
- package/dist/components/group-input/group-input.js +1 -2
- package/dist/components/group-input/use-group-items.js +1 -2
- package/dist/components/group-nav/group-nav-item.js +1 -2
- package/dist/components/group-nav/group-nav.js +1 -2
- package/dist/components/group-nav/style2.css +16 -7
- package/dist/components/icon/icon.js +1 -2
- package/dist/components/icon/style2.css +1 -1
- package/dist/components/image-cropper/draw-crop.js +1 -2
- package/dist/components/image-cropper/image-cropper.js +1 -2
- package/dist/components/image-cropper/style2.css +4 -1
- package/dist/components/image-cropper/use-image-loader.js +1 -2
- package/dist/components/image-cropper/use-preview.js +1 -2
- package/dist/components/image-cropper/use-selection.js +1 -2
- package/dist/components/image-cropper/use-transform.js +1 -2
- package/dist/components/image-previewer/image-previewer.js +15 -4
- package/dist/components/image-previewer/image-previewer.js.map +1 -1
- package/dist/components/image-previewer/style.d.ts +1 -1
- package/dist/components/image-previewer/style.js +1 -0
- package/dist/components/image-previewer/style2.css +9 -14
- package/dist/components/index.js +1 -2
- package/dist/components/input/input.js +1 -2
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js +5 -6
- package/dist/components/input/input.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/input/style2.css +13 -1
- package/dist/components/kanban/di.js +1 -2
- package/dist/components/kanban/kanban-column.js +2 -2
- package/dist/components/kanban/kanban-column.js.map +1 -1
- package/dist/components/kanban/kanban.js +1 -2
- package/dist/components/kanban/style2.css +6 -2
- package/dist/components/kbd/kbd.js +1 -2
- package/dist/components/layout/di.js +1 -2
- package/dist/components/layout/layout-resizer.js +9 -3
- package/dist/components/layout/layout-resizer.js.map +1 -1
- package/dist/components/layout/layout.js +12 -3
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/style2.css +22 -0
- package/dist/components/list/list-item.js +1 -2
- package/dist/components/list/list.js +1 -2
- package/dist/components/loading/directive.d.ts +0 -2
- package/dist/components/loading/directive.js +1 -2
- package/dist/components/loading/loading.js +1 -2
- package/dist/components/loading/style2.css +26 -7
- package/dist/components/message/helper.js +1 -2
- package/dist/components/message/message-box.js +1 -2
- package/dist/components/message/message.d.ts +0 -2
- package/dist/components/message/message.js +1 -2
- package/dist/components/message/message2.js +1 -2
- package/dist/components/message/style2.css +18 -2
- package/dist/components/message-confirm/message-confirm-box.js +1 -2
- package/dist/components/message-confirm/message-confirm.d.ts +0 -2
- package/dist/components/message-confirm/message-confirm.js +1 -2
- package/dist/components/message-confirm/message-confirm2.js +1 -2
- package/dist/components/message-confirm/style2.css +11 -0
- package/dist/components/multi-select/di.js +1 -2
- package/dist/components/multi-select/multi-select-option.js +1 -2
- package/dist/components/multi-select/multi-select.js +22 -20
- package/dist/components/multi-select/multi-select.js.map +1 -1
- package/dist/components/multi-select/style2.css +13 -0
- package/dist/components/multi-tree-select/multi-tree-select.js +1 -2
- package/dist/components/nav/di.js +1 -2
- package/dist/components/nav/helper.js +1 -2
- package/dist/components/nav/nav-icon.js +1 -2
- package/dist/components/nav/nav-item-collapsed.js +1 -2
- package/dist/components/nav/nav-item.js +1 -2
- package/dist/components/nav/nav-sub-collapsed.js +1 -2
- package/dist/components/nav/nav-sub.js +9 -4
- package/dist/components/nav/nav-sub.js.map +1 -1
- package/dist/components/nav/nav.js +1 -2
- package/dist/components/nav/style2.css +50 -26
- package/dist/components/nav/use-nav-item.js +1 -2
- package/dist/components/nav/walk-nav-path.js +1 -2
- package/dist/components/node-render/node-render.d.ts +0 -2
- package/dist/components/node-render/node-render.js +1 -2
- package/dist/components/notification/notification-box.js +1 -2
- package/dist/components/notification/notification.d.ts +0 -2
- package/dist/components/notification/notification.js +1 -2
- package/dist/components/notification/notification2.js +1 -2
- package/dist/components/notification/style2.css +21 -0
- package/dist/components/number/number.js +1 -2
- package/dist/components/number-input/number-input.js +1 -2
- package/dist/components/number-input/style2.css +5 -2
- package/dist/components/number-range-input/number-range-input.js +1 -2
- package/dist/components/paginator/paginator.js +1 -2
- package/dist/components/paginator/style2.css +1 -0
- package/dist/components/palette/color-transform.js +1 -2
- package/dist/components/palette/di.js +1 -2
- package/dist/components/palette/palette-alpha.js +1 -2
- package/dist/components/palette/palette-color-switch.js +1 -2
- package/dist/components/palette/palette-hue.js +1 -2
- package/dist/components/palette/palette-sv.js +1 -2
- package/dist/components/palette/palette.js +1 -2
- package/dist/components/palette/use-hsv.js +1 -2
- package/dist/components/password-input/password-input.js +1 -2
- package/dist/components/password-input/style2.css +10 -1
- package/dist/components/pop-confirm/pop-confirm.js +2 -3
- package/dist/components/pop-confirm/pop-confirm.js.map +1 -1
- package/dist/components/progress/progress.js +1 -2
- package/dist/components/progress/style2.css +2 -2
- package/dist/components/progress-nodes/progress-nodes.js +1 -2
- package/dist/components/progress-nodes/style2.css +3 -3
- package/dist/components/radio/radio.js +2 -6
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/radio/style2.css +11 -1
- package/dist/components/radio-group/radio-group.js +1 -2
- package/dist/components/rate/rate.js +1 -2
- package/dist/components/rate/style2.css +7 -0
- package/dist/components/rich-text-editor/image-node.js +1 -2
- package/dist/components/rich-text-editor/rich-text-editor.js +1 -2
- package/dist/components/rich-text-editor/style2.css +6 -3
- package/dist/components/rich-text-editor/toolbar.js +1 -2
- package/dist/components/rich-text-editor/use-image-resize.js +1 -2
- package/dist/components/scroll/di.js +1 -2
- package/dist/components/scroll/scroll-bar.js +1 -2
- package/dist/components/scroll/scroll.js +1 -2
- package/dist/components/scroll/style2.css +2 -2
- package/dist/components/segment/segment.js +6 -3
- package/dist/components/segment/segment.js.map +1 -1
- package/dist/components/segment/style2.css +6 -0
- package/dist/components/select/select.js +6 -3
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/style2.css +11 -1
- package/dist/components/select/use-keyboard.js +1 -2
- package/dist/components/select/use-options.js +1 -2
- package/dist/components/skeleton/skeleton.js +1 -2
- package/dist/components/slider/di.js +1 -2
- package/dist/components/slider/slider-thumb.js +1 -2
- package/dist/components/slider/slider.js +1 -2
- package/dist/components/slider/use-slider.js +1 -2
- package/dist/components/space/space.js +1 -2
- package/dist/components/steps/steps.js +1 -2
- package/dist/components/steps/style2.css +21 -2
- package/dist/components/switch/style2.css +10 -2
- package/dist/components/switch/switch.js +1 -2
- package/dist/components/table/allocate-column-widths.js +1 -2
- package/dist/components/table/di.js +1 -2
- package/dist/components/table/node/col.js +1 -2
- package/dist/components/table/node/row.js +1 -2
- package/dist/components/table/style2.css +20 -7
- package/dist/components/table/table-body.js +1 -2
- package/dist/components/table/table-cell.js +1 -2
- package/dist/components/table/table-foot.js +1 -2
- package/dist/components/table/table-head.js +1 -2
- package/dist/components/table/table-row.js +1 -2
- package/dist/components/table/table.js +1 -2
- package/dist/components/table/use-check.js +1 -2
- package/dist/components/table/use-col-resize.js +1 -2
- package/dist/components/table/use-columns.d.ts +0 -2
- package/dist/components/table/use-columns.js +1 -2
- package/dist/components/table/use-fixed-columns.js +1 -2
- package/dist/components/table/use-rows.js +1 -2
- package/dist/components/table/use-table.js +1 -2
- package/dist/components/table-editor/table-editor.js +1 -2
- package/dist/components/tabs/style2.css +9 -3
- package/dist/components/tabs/tabs-horizontal.js +1 -2
- package/dist/components/tabs/tabs-vertical.js +1 -2
- package/dist/components/tabs/tabs.js +1 -2
- package/dist/components/tabs/use-tabs-bar.js +1 -2
- package/dist/components/tag/style2.css +16 -7
- package/dist/components/tag/tag.js +1 -2
- package/dist/components/text/text.js +1 -2
- package/dist/components/textarea/style2.css +9 -1
- package/dist/components/textarea/textarea.js +1 -2
- package/dist/components/textarea/utils.js +1 -2
- package/dist/components/theme/schema.js +1 -2
- package/dist/components/theme/style2.css +38 -29
- package/dist/components/theme/theme.js +1 -2
- package/dist/components/time-picker/style2.css +4 -1
- package/dist/components/time-picker/time-picker.js +1 -2
- package/dist/components/timeline/timeline-item.js +1 -2
- package/dist/components/timeline/timeline.js +1 -2
- package/dist/components/tip/style2.css +11 -0
- package/dist/components/tip/tip.js +1 -2
- package/dist/components/tip/use-nest.js +1 -2
- package/dist/components/transfer/style2.css +21 -1
- package/dist/components/transfer/transfer-list.js +21 -19
- package/dist/components/transfer/transfer-list.js.map +1 -1
- package/dist/components/transfer/transfer.js +1 -2
- package/dist/components/tree/di.js +1 -2
- package/dist/components/tree/style2.css +5 -2
- package/dist/components/tree/tree-node.js +1 -2
- package/dist/components/tree/tree-node2.js +1 -2
- package/dist/components/tree/tree.js +1 -2
- package/dist/components/tree/use-check.js +1 -2
- package/dist/components/tree/use-filter.js +1 -2
- package/dist/components/tree/use-select.js +1 -2
- package/dist/components/tree/use-tree-nodes.js +1 -2
- package/dist/components/tree-select/tree-select.js +1 -2
- package/dist/components/watermark/watermark.js +1 -2
- package/dist/composables/use-overlay.js +1 -2
- package/dist/install.d.ts +0 -2
- package/dist/install.js +1 -2
- package/dist/node_modules/.bun/@codemirror_autocomplete@6.20.3/node_modules/@codemirror/autocomplete/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_commands@6.11.1/node_modules/@codemirror/commands/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-css@6.3.1/node_modules/@codemirror/lang-css/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-html@6.4.12/node_modules/@codemirror/lang-html/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-java@6.0.2/node_modules/@codemirror/lang-java/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-javascript@6.2.5/node_modules/@codemirror/lang-javascript/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-markdown@6.5.2/node_modules/@codemirror/lang-markdown/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lang-sql@6.10.0/node_modules/@codemirror/lang-sql/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_language@6.13.1/node_modules/@codemirror/language/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/powershell.js +1 -2
- package/dist/node_modules/.bun/@codemirror_legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/shell.js +1 -2
- package/dist/node_modules/.bun/@codemirror_lint@6.9.7/node_modules/@codemirror/lint/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_search@6.7.2/node_modules/@codemirror/search/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_state@6.7.6/node_modules/@codemirror/state/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_streamparser@6.0.0/node_modules/@codemirror/streamparser/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js +1 -2
- package/dist/node_modules/.bun/@codemirror_view@6.43.14/node_modules/@codemirror/view/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_common@1.5.3/node_modules/@lezer/common/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_css@1.3.9/node_modules/@lezer/css/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_highlight@1.2.5/node_modules/@lezer/highlight/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_html@1.3.13/node_modules/@lezer/html/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_java@1.1.5/node_modules/@lezer/java/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_javascript@1.5.6/node_modules/@lezer/javascript/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_json@1.0.3/node_modules/@lezer/json/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_lr@1.4.11/node_modules/@lezer/lr/dist/index.js +1 -2
- package/dist/node_modules/.bun/@lezer_markdown@1.8.0/node_modules/@lezer/markdown/dist/index.js +1 -2
- package/dist/node_modules/.bun/@marijn_find-cluster-break@1.0.4/node_modules/@marijn/find-cluster-break/src/index.js +1 -2
- package/dist/node_modules/.bun/crelt@1.0.7/node_modules/crelt/index.js +1 -2
- package/dist/node_modules/.bun/style-mod@4.1.4/node_modules/style-mod/src/style-mod.js +1 -2
- package/dist/node_modules/.bun/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.js +1 -2
- package/dist/packages/ofd-core/dist/color.js +1 -2
- package/dist/packages/ofd-core/dist/color.js.map +1 -1
- package/dist/packages/ofd-core/dist/ctm.js +1 -2
- package/dist/packages/ofd-core/dist/ctm.js.map +1 -1
- package/dist/packages/ofd-core/dist/error.js +1 -2
- package/dist/packages/ofd-core/dist/error.js.map +1 -1
- package/dist/packages/ofd-core/dist/font.js +1 -2
- package/dist/packages/ofd-core/dist/font.js.map +1 -1
- package/dist/packages/ofd-core/dist/inflate.js +367 -0
- package/dist/packages/ofd-core/dist/inflate.js.map +1 -0
- package/dist/packages/ofd-core/dist/number.js +1 -2
- package/dist/packages/ofd-core/dist/number.js.map +1 -1
- package/dist/packages/ofd-core/dist/page-objects.js +1 -2
- package/dist/packages/ofd-core/dist/page-objects.js.map +1 -1
- package/dist/packages/ofd-core/dist/parse.js +1 -2
- package/dist/packages/ofd-core/dist/parse.js.map +1 -1
- package/dist/packages/ofd-core/dist/render.js +1 -2
- package/dist/packages/ofd-core/dist/render.js.map +1 -1
- package/dist/packages/ofd-core/dist/xml.js +1 -2
- package/dist/packages/ofd-core/dist/xml.js.map +1 -1
- package/dist/packages/ofd-core/dist/zip.js +22 -5
- package/dist/packages/ofd-core/dist/zip.js.map +1 -1
- package/dist/types/action.d.ts +0 -2
- package/dist/types/ai-button.d.ts +0 -2
- package/dist/types/alert.d.ts +0 -2
- package/dist/types/anchor.d.ts +0 -2
- package/dist/types/animation.d.ts +0 -2
- package/dist/types/auto-complete.d.ts +0 -2
- package/dist/types/avatar.d.ts +0 -2
- package/dist/types/back-top.d.ts +0 -2
- package/dist/types/badge.d.ts +0 -2
- package/dist/types/batch-edit.d.ts +0 -2
- package/dist/types/breadcrumb.d.ts +0 -2
- package/dist/types/button.d.ts +0 -2
- package/dist/types/calendar.d.ts +0 -2
- package/dist/types/card.d.ts +0 -2
- package/dist/types/carousel.d.ts +0 -2
- package/dist/types/cascade.d.ts +0 -2
- package/dist/types/check-tag.d.ts +0 -2
- package/dist/types/checkbox-group.d.ts +0 -2
- package/dist/types/checkbox.d.ts +0 -2
- package/dist/types/chip-group.d.ts +0 -2
- package/dist/types/chip.d.ts +0 -2
- package/dist/types/code-editor.d.ts +0 -2
- package/dist/types/collapse.d.ts +0 -2
- package/dist/types/condition-editor.d.ts +0 -2
- package/dist/types/contextmenu.d.ts +0 -2
- package/dist/types/css-transition.d.ts +0 -2
- package/dist/types/date-panel.d.ts +0 -2
- package/dist/types/date-picker.d.ts +0 -2
- package/dist/types/date-range-picker.d.ts +0 -2
- package/dist/types/descriptions.d.ts +0 -2
- package/dist/types/dialog.d.ts +0 -2
- package/dist/types/divider.d.ts +0 -2
- package/dist/types/drawer.d.ts +0 -2
- package/dist/types/dropdown.d.ts +0 -2
- package/dist/types/dual-nav.d.ts +0 -2
- package/dist/types/empty.d.ts +0 -2
- package/dist/types/expression-editor.d.ts +0 -2
- package/dist/types/file-picker.d.ts +0 -2
- package/dist/types/file-viewer.d.ts +0 -2
- package/dist/types/float-button.d.ts +0 -2
- package/dist/types/form-item.d.ts +0 -2
- package/dist/types/form.d.ts +0 -2
- package/dist/types/gantt-chart.d.ts +0 -2
- package/dist/types/grid-input.d.ts +0 -2
- package/dist/types/grid.d.ts +0 -2
- package/dist/types/group-input.d.ts +0 -2
- package/dist/types/group-nav.d.ts +0 -2
- package/dist/types/icon.d.ts +0 -2
- package/dist/types/image-cropper.d.ts +0 -2
- package/dist/types/image-previewer.d.ts +0 -2
- package/dist/types/input.d.ts +0 -2
- package/dist/types/kanban.d.ts +0 -2
- package/dist/types/layout.d.ts +0 -2
- package/dist/types/list.d.ts +0 -2
- package/dist/types/loading.d.ts +0 -2
- package/dist/types/message-confirm.d.ts +0 -2
- package/dist/types/message.d.ts +0 -2
- package/dist/types/multi-auto-complete.d.ts +0 -2
- package/dist/types/multi-select.d.ts +0 -2
- package/dist/types/multi-tree-select.d.ts +0 -2
- package/dist/types/nav.d.ts +0 -2
- package/dist/types/node-render.d.ts +0 -2
- package/dist/types/notification.d.ts +0 -2
- package/dist/types/number-input.d.ts +0 -2
- package/dist/types/number-range-input.d.ts +0 -2
- package/dist/types/number.d.ts +0 -2
- package/dist/types/paginator.d.ts +0 -2
- package/dist/types/palette.d.ts +0 -2
- package/dist/types/password-input.d.ts +0 -2
- package/dist/types/pop-confirm.d.ts +0 -2
- package/dist/types/pop.d.ts +0 -2
- package/dist/types/progress-nodes.d.ts +0 -2
- package/dist/types/progress.d.ts +0 -2
- package/dist/types/quick-batch-edit.d.ts +0 -2
- package/dist/types/radio-group.d.ts +0 -2
- package/dist/types/radio.d.ts +0 -2
- package/dist/types/rate.d.ts +0 -2
- package/dist/types/rich-text-editor.d.ts +0 -2
- package/dist/types/scroll.d.ts +0 -2
- package/dist/types/segment.d.ts +0 -2
- package/dist/types/select.d.ts +0 -2
- package/dist/types/skeleton.d.ts +0 -2
- package/dist/types/slider.d.ts +0 -2
- package/dist/types/space.d.ts +0 -2
- package/dist/types/steps.d.ts +0 -2
- package/dist/types/switch.d.ts +0 -2
- package/dist/types/table-editor.d.ts +0 -2
- package/dist/types/table.d.ts +0 -2
- package/dist/types/tabs.d.ts +0 -2
- package/dist/types/tag.d.ts +0 -2
- package/dist/types/text-editor.d.ts +0 -2
- package/dist/types/text.d.ts +0 -2
- package/dist/types/textarea.d.ts +0 -2
- package/dist/types/theme.d.ts +0 -2
- package/dist/types/time-picker.d.ts +0 -2
- package/dist/types/timeline.d.ts +0 -2
- package/dist/types/tip.d.ts +0 -2
- package/dist/types/transfer.d.ts +0 -2
- package/dist/types/tree-select.d.ts +0 -2
- package/dist/types/tree.d.ts +0 -2
- package/dist/types/watermark.d.ts +0 -2
- package/package.json +1 -1
- package/src/components/alert/alert.vue +18 -16
- package/src/components/alert/style.scss +9 -1
- package/src/components/alert/style.ts +1 -0
- package/src/components/auto-complete/style.scss +3 -0
- package/src/components/back-top/style.scss +17 -3
- package/src/components/badge/badge.vue +6 -7
- package/src/components/badge/style.scss +20 -1
- package/src/components/batch-edit/__test__/batch-edit.test.ts +10 -0
- package/src/components/batch-edit/batch-edit-form.vue +95 -83
- package/src/components/batch-edit/batch-edit.vue +18 -3
- package/src/components/batch-edit/style.scss +39 -3
- package/src/components/breadcrumb/style.scss +5 -1
- package/src/components/button/style.scss +4 -2
- package/src/components/carousel/carousel.vue +8 -2
- package/src/components/carousel/style.scss +10 -1
- package/src/components/carousel/use-carousel.ts +17 -2
- package/src/components/cascade/style.scss +27 -0
- package/src/components/check-tag/check-tag.vue +13 -3
- package/src/components/check-tag/style.scss +21 -0
- package/src/components/checkbox/checkbox-button.vue +11 -1
- package/src/components/checkbox/checkbox.vue +6 -2
- package/src/components/checkbox/style.scss +51 -2
- package/src/components/chip/style.scss +11 -0
- package/src/components/code-editor/code-editor.vue +24 -3
- package/src/components/code-editor/style.scss +54 -4
- package/src/components/collapse/collapse-item.vue +10 -1
- package/src/components/collapse/collapse.vue +3 -1
- package/src/components/collapse/style.scss +10 -7
- package/src/components/condition-editor/style.scss +39 -12
- package/src/components/contextmenu/contextmenu-sub.vue +9 -7
- package/src/components/contextmenu/style.scss +17 -1
- package/src/components/date-panel/style.scss +22 -1
- package/src/components/dialog/style.scss +6 -1
- package/src/components/dialog/use-maximum.ts +8 -0
- package/src/components/drawer/style.scss +5 -0
- package/src/components/dual-nav/style.scss +9 -4
- package/src/components/expression-editor/style.scss +27 -9
- package/src/components/file-viewer/__test__/pdf-polyfill.test.ts +83 -0
- package/src/components/file-viewer/__test__/pdfjs-compat.test.ts +27 -15
- package/src/components/file-viewer/previewers/ofd-previewer.vue +2 -0
- package/src/components/file-viewer/previewers/pdf-polyfill.ts +85 -4
- package/src/components/file-viewer/previewers/pdf-previewer.vue +2 -2
- package/src/components/file-viewer/style.scss +12 -2
- package/src/components/float-button/float-button.vue +1 -1
- package/src/components/float-button/style.scss +4 -3
- package/src/components/form-item/style.scss +16 -2
- package/src/components/grid-input/style.scss +6 -1
- package/src/components/group-nav/style.scss +30 -13
- package/src/components/icon/style.scss +2 -1
- package/src/components/image-cropper/style.scss +6 -1
- package/src/components/image-previewer/image-previewer.vue +20 -2
- package/src/components/image-previewer/style.scss +17 -14
- package/src/components/image-previewer/style.ts +1 -0
- package/src/components/input/input.vue +2 -8
- package/src/components/input/style.scss +19 -1
- package/src/components/kanban/kanban-column.vue +2 -0
- package/src/components/kanban/style.scss +11 -2
- package/src/components/layout/__test__/layout.test.ts +135 -0
- package/src/components/layout/layout-resizer.vue +8 -1
- package/src/components/layout/layout.vue +17 -1
- package/src/components/layout/style.scss +31 -6
- package/src/components/loading/style.scss +39 -8
- package/src/components/message/style.scss +20 -2
- package/src/components/message-confirm/style.scss +13 -0
- package/src/components/multi-select/multi-select.vue +13 -10
- package/src/components/multi-select/style.scss +14 -0
- package/src/components/multi-tree-select/__test__/multi-tree-select.test.ts +4 -2
- package/src/components/nav/nav-sub.vue +10 -2
- package/src/components/nav/style.scss +37 -13
- package/src/components/notification/style.scss +13 -0
- package/src/components/number-input/style.scss +8 -2
- package/src/components/paginator/style.scss +3 -0
- package/src/components/password-input/style.scss +15 -1
- package/src/components/pop-confirm/pop-confirm.vue +1 -1
- package/src/components/progress/style.scss +3 -3
- package/src/components/progress-nodes/style.scss +5 -5
- package/src/components/radio/radio.vue +1 -1
- package/src/components/radio/style.scss +19 -1
- package/src/components/rate/style.scss +9 -0
- package/src/components/rich-text-editor/style.scss +11 -6
- package/src/components/scroll/style.scss +3 -3
- package/src/components/segment/segment.vue +13 -1
- package/src/components/segment/style.scss +13 -3
- package/src/components/select/select.vue +1 -1
- package/src/components/select/style.scss +22 -1
- package/src/components/steps/style.scss +27 -5
- package/src/components/switch/style.scss +13 -2
- package/src/components/table/style.scss +44 -20
- package/src/components/tabs/style.scss +16 -3
- package/src/components/tag/style.scss +18 -1
- package/src/components/textarea/style.scss +15 -2
- package/src/components/theme/style.scss +62 -40
- package/src/components/time-picker/style.scss +9 -1
- package/src/components/tip/style.scss +13 -0
- package/src/components/transfer/style.scss +31 -1
- package/src/components/transfer/transfer-list.vue +18 -15
- package/src/components/tree/style.scss +8 -3
|
@@ -4,7 +4,7 @@ import { useFallbackProps } from "@veltra/compositions";
|
|
|
4
4
|
import { bem } from "@veltra/utils";
|
|
5
5
|
import { vRipple } from "@veltra/directives";
|
|
6
6
|
import { Loading } from "@veltra/icons";
|
|
7
|
-
|
|
7
|
+
// src/components/button/button.vue
|
|
8
8
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
9
9
|
name: "UButton",
|
|
10
10
|
__name: "button",
|
|
@@ -99,7 +99,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
//#endregion
|
|
103
102
|
export { _sfc_main as default };
|
|
104
103
|
|
|
105
104
|
//# sourceMappingURL=button.js.map
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
border: 1px solid var(--u-button-default-border, transparent);
|
|
30
30
|
background-color: var(--u-button-default-bg, var(--u-color-default));
|
|
31
31
|
box-shadow: var(--u-shadow-emboss);
|
|
32
|
-
transition: background-color var(--u-transition-fast) var(--u-transition-ease), border-color var(--u-transition-fast) var(--u-transition-ease), color var(--u-transition-fast) var(--u-transition-ease), box-shadow var(--u-transition-fast) var(--u-transition-ease);
|
|
32
|
+
transition: background-color var(--u-transition-fast) var(--u-transition-ease), border-color var(--u-transition-fast) var(--u-transition-ease), color var(--u-transition-fast) var(--u-transition-ease), box-shadow var(--u-transition-fast) var(--u-transition-ease), transform var(--u-transition-fast) var(--u-transition-ease-out);
|
|
33
33
|
-webkit-tap-highlight-color: transparent; /* For some Androids */
|
|
34
34
|
gap: var(--u-gap-small);
|
|
35
35
|
display: inline-flex;
|
|
@@ -41,8 +41,9 @@
|
|
|
41
41
|
background-color: var(--u-button-default-hover-bg, var(--u-color-default-dark-1));
|
|
42
42
|
border-color: var(--u-button-default-hover-border, transparent);
|
|
43
43
|
}
|
|
44
|
-
.u-button:active {
|
|
44
|
+
.u-button:active:not(.is-disabled):not(.is-loading) {
|
|
45
45
|
box-shadow: none;
|
|
46
|
+
transform: scale(0.97);
|
|
46
47
|
}
|
|
47
48
|
.u-button.is-disabled {
|
|
48
49
|
box-shadow: none !important;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMonthDays } from "./utils.js";
|
|
2
2
|
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderList, toDisplayString, unref, useModel } from "vue";
|
|
3
3
|
import { bem } from "@veltra/utils";
|
|
4
|
-
|
|
4
|
+
// src/components/calendar/calendar.vue
|
|
5
5
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
6
|
name: "UCalendar",
|
|
7
7
|
__name: "calendar",
|
|
@@ -26,7 +26,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
//#endregion
|
|
30
29
|
export { _sfc_main as default };
|
|
31
30
|
|
|
32
31
|
//# sourceMappingURL=calendar.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { date } from "@cat-kit/core";
|
|
2
|
-
|
|
2
|
+
// src/components/calendar/utils.ts
|
|
3
3
|
const weekDays = [
|
|
4
4
|
"日",
|
|
5
5
|
"一",
|
|
@@ -103,7 +103,6 @@ function getTenYears(d, disabledDate) {
|
|
|
103
103
|
};
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
//#endregion
|
|
107
106
|
export { getMonthDays, getTenYears, getYearMonths, weekDays };
|
|
108
107
|
|
|
109
108
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CardDIKey } from "./di.js";
|
|
2
2
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, renderSlot, unref } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/card/card-action.vue
|
|
4
4
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
5
|
name: "UCardAction",
|
|
6
6
|
__name: "card-action",
|
|
@@ -21,7 +21,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { _sfc_main as default };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=card-action.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CardDIKey } from "./di.js";
|
|
2
2
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, renderSlot, unref } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/card/card-content.vue
|
|
4
4
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
5
|
name: "UCardContent",
|
|
6
6
|
__name: "card-content",
|
|
@@ -24,7 +24,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
//#endregion
|
|
28
27
|
export { _sfc_main as default };
|
|
29
28
|
|
|
30
29
|
//# sourceMappingURL=card-content.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CardDIKey } from "./di.js";
|
|
2
2
|
import { computed, createCommentVNode, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, unref } from "vue";
|
|
3
3
|
import { bem, withUnit } from "@veltra/utils";
|
|
4
|
-
|
|
4
|
+
// src/components/card/card-cover.vue
|
|
5
5
|
const _hoisted_1 = ["src"];
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
7
|
name: "UCardCover",
|
|
@@ -32,7 +32,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
//#endregion
|
|
36
35
|
export { _sfc_main as default };
|
|
37
36
|
|
|
38
37
|
//# sourceMappingURL=card-cover.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CardDIKey } from "./di.js";
|
|
2
2
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, openBlock, renderSlot } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/card/card-header.vue
|
|
4
4
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
5
|
name: "UCardHeader",
|
|
6
6
|
__name: "card-header",
|
|
@@ -18,7 +18,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
//#endregion
|
|
22
21
|
export { _sfc_main as default };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=card-header.js.map
|
|
@@ -2,7 +2,7 @@ import { CardDIKey } from "./di.js";
|
|
|
2
2
|
import { computed, createElementBlock, defineComponent, normalizeClass, normalizeStyle, openBlock, provide, renderSlot } from "vue";
|
|
3
3
|
import { useFormFallbackProps } from "@veltra/compositions";
|
|
4
4
|
import { bem, withUnit } from "@veltra/utils";
|
|
5
|
-
|
|
5
|
+
// src/components/card/card.vue
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
7
|
name: "UCard",
|
|
8
8
|
__name: "card",
|
|
@@ -37,7 +37,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
//#endregion
|
|
41
40
|
export { _sfc_main as default };
|
|
42
41
|
|
|
43
42
|
//# sourceMappingURL=card.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CarouselDIKey } from "./di.js";
|
|
2
2
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, inject, normalizeClass, onBeforeUnmount, onMounted, openBlock, renderSlot, unref } from "vue";
|
|
3
3
|
import { bem } from "@veltra/utils";
|
|
4
|
-
|
|
4
|
+
// src/components/carousel/carousel-item.vue
|
|
5
5
|
const _hoisted_1 = ["aria-hidden"];
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
7
|
name: "UCarouselItem",
|
|
@@ -21,7 +21,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { _sfc_main as default };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=carousel-item.js.map
|
|
@@ -4,7 +4,7 @@ import { useCarousel } from "./use-carousel.js";
|
|
|
4
4
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, renderSlot, unref, useModel, watch, withCtx } from "vue";
|
|
5
5
|
import { bem } from "@veltra/utils";
|
|
6
6
|
import { ArrowLeft, ArrowRight } from "@veltra/icons/normal";
|
|
7
|
-
|
|
7
|
+
// src/components/carousel/carousel.vue
|
|
8
8
|
const _hoisted_1 = ["disabled"];
|
|
9
9
|
const _hoisted_2 = ["disabled"];
|
|
10
10
|
const _hoisted_3 = ["aria-label", "onClick"];
|
|
@@ -48,7 +48,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
48
48
|
const index = itemUids.value.indexOf(uid);
|
|
49
49
|
if (index > -1) itemUids.value.splice(index, 1);
|
|
50
50
|
};
|
|
51
|
-
const { current, canPrev, canNext, goTo, prev, next } = useCarousel({
|
|
51
|
+
const { current, canPrev, canNext, goTo, prev, next, pauseAutoplay, resumeAutoplay } = useCarousel({
|
|
52
52
|
model,
|
|
53
53
|
count: () => itemUids.value.length,
|
|
54
54
|
autoplay: () => __props.autoplay,
|
|
@@ -68,7 +68,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
68
68
|
return openBlock(), createElementBlock("div", {
|
|
69
69
|
class: normalizeClass(unref(cls).b),
|
|
70
70
|
role: "region",
|
|
71
|
-
"aria-roledescription": "carousel"
|
|
71
|
+
"aria-roledescription": "carousel",
|
|
72
|
+
onMouseenter: _cache[2] || (_cache[2] = (...args) => unref(pauseAutoplay) && unref(pauseAutoplay)(...args)),
|
|
73
|
+
onMouseleave: _cache[3] || (_cache[3] = (...args) => unref(resumeAutoplay) && unref(resumeAutoplay)(...args))
|
|
72
74
|
}, [
|
|
73
75
|
createElementVNode("div", {
|
|
74
76
|
class: normalizeClass(unref(cls).e("track")),
|
|
@@ -108,11 +110,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
108
110
|
onClick: ($event) => unref(goTo)(page - 1)
|
|
109
111
|
}, null, 10, _hoisted_3);
|
|
110
112
|
}), 128))], 2)) : createCommentVNode("v-if", true)
|
|
111
|
-
],
|
|
113
|
+
], 34);
|
|
112
114
|
};
|
|
113
115
|
}
|
|
114
116
|
});
|
|
115
|
-
//#endregion
|
|
116
117
|
export { _sfc_main as default };
|
|
117
118
|
|
|
118
119
|
//# sourceMappingURL=carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.js","names":["_useModel","_openBlock","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_normalizeStyle","_renderSlot","_createVNode","UIcon","_withCtx","_createCommentVNode","_Fragment","_renderList"],"sources":["../../../src/components/carousel/carousel.vue"],"sourcesContent":["<template>\n <div
|
|
1
|
+
{"version":3,"file":"carousel.js","names":["_useModel","_openBlock","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_normalizeStyle","_renderSlot","_createVNode","UIcon","_withCtx","_createCommentVNode","_Fragment","_renderList"],"sources":["../../../src/components/carousel/carousel.vue"],"sourcesContent":["<template>\n <div\n :class=\"cls.b\"\n role=\"region\"\n aria-roledescription=\"carousel\"\n @mouseenter=\"pauseAutoplay\"\n @mouseleave=\"resumeAutoplay\"\n >\n <div :class=\"cls.e('track')\" :style=\"trackStyle\">\n <slot />\n </div>\n\n <button\n v-if=\"arrows\"\n type=\"button\"\n :class=\"[cls.e('arrow'), cls.em('arrow', 'prev')]\"\n :disabled=\"!canPrev\"\n aria-label=\"上一页\"\n @click=\"prev\"\n >\n <u-icon><ArrowLeft /></u-icon>\n </button>\n\n <button\n v-if=\"arrows\"\n type=\"button\"\n :class=\"[cls.e('arrow'), cls.em('arrow', 'next')]\"\n :disabled=\"!canNext\"\n aria-label=\"下一页\"\n @click=\"next\"\n >\n <u-icon><ArrowRight /></u-icon>\n </button>\n\n <div v-if=\"dots\" :class=\"cls.e('dots')\">\n <button\n v-for=\"page in itemUids.length\"\n :key=\"page\"\n type=\"button\"\n :class=\"[cls.e('dot'), bem.is('active', page - 1 === current)]\"\n :aria-label=\"`切换到第 ${page} 页`\"\n @click=\"goTo(page - 1)\"\n />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ArrowLeft, ArrowRight } from '@veltra/icons/normal'\nimport { bem } from '@veltra/utils'\nimport { computed, provide, ref, watch } from 'vue'\n\nimport type { CarouselEmits, CarouselProps } from '../../types'\nimport { UIcon } from '../icon'\nimport { CarouselDIKey } from './di'\nimport { useCarousel } from './use-carousel'\n\ndefineOptions({ name: 'UCarousel' })\n\nconst {\n autoplay = false,\n interval = 3000,\n loop = true,\n arrows = false,\n dots = true\n} = defineProps<CarouselProps>()\n\nconst emit = defineEmits<CarouselEmits>()\n\nconst cls = bem('carousel')\n\nconst model = defineModel<number>('activeIndex', { default: 0 })\n\n/** 已注册页 uid,顺序即插槽渲染顺序,页数由此推导 */\nconst itemUids = ref<number[]>([])\n\nconst register = (uid: number) => {\n if (!itemUids.value.includes(uid)) itemUids.value.push(uid)\n}\n\nconst unregister = (uid: number) => {\n const index = itemUids.value.indexOf(uid)\n if (index > -1) itemUids.value.splice(index, 1)\n}\n\nconst { current, canPrev, canNext, goTo, prev, next, pauseAutoplay, resumeAutoplay } = useCarousel({\n model,\n count: () => itemUids.value.length,\n autoplay: () => autoplay,\n interval: () => interval,\n loop: () => loop\n})\n\nprovide(CarouselDIKey, { cls, itemUids, current, register, unregister })\n\nconst trackStyle = computed(() => ({ transform: `translateX(-${current.value * 100}%)` }))\n\nwatch(model, (index, prevIndex) => emit('change', index, prevIndex))\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEA,MAAM,OAAO;EAEb,MAAM,MAAM,IAAI,UAAU;EAE1B,MAAM,QAAQA,SAAmB,SAAC,aAA6B;;EAG/D,MAAM,WAAW,IAAc,CAAC,CAAC;EAEjC,MAAM,YAAY,QAAgB;GAChC,IAAI,CAAC,SAAS,MAAM,SAAS,GAAG,GAAG,SAAS,MAAM,KAAK,GAAG;EAC5D;EAEA,MAAM,cAAc,QAAgB;GAClC,MAAM,QAAQ,SAAS,MAAM,QAAQ,GAAG;GACxC,IAAI,QAAQ,IAAI,SAAS,MAAM,OAAO,OAAO,CAAC;EAChD;EAEA,MAAM,EAAE,SAAS,SAAS,SAAS,MAAM,MAAM,MAAM,eAAe,mBAAmB,YAAY;GACjG;GACA,aAAa,SAAS,MAAM;GAC5B,gBAAgB,QAAA;GAChB,gBAAgB,QAAA;GAChB,YAAY,QAAA;EACd,CAAC;EAED,QAAQ,eAAe;GAAE;GAAK;GAAU;GAAS;GAAU;EAAW,CAAC;EAEvE,MAAM,aAAa,gBAAgB,EAAE,WAAW,eAAe,QAAQ,QAAQ,IAAI,IAAI,EAAE;EAEzF,MAAM,QAAQ,OAAO,cAAc,KAAK,UAAU,OAAO,SAAS,CAAC;;GAhGjE,OAAAC,UAAA,GAAAC,mBA2CM,OAAA;IA1CH,OAAKC,eAAEC,MAAA,GAAA,CAAG,CAAC,CAAC;IACb,MAAK;IACL,wBAAqB;IACpB,cAAU,OAAA,OAAA,OAAA,MAAE,GAAA,SAAAA,MAAA,aAAA,KAAAA,MAAA,aAAA,CAAA,CAAA,GAAA,IAAA;IACZ,cAAU,OAAA,OAAA,OAAA,MAAE,GAAA,SAAAA,MAAA,cAAA,KAAAA,MAAA,cAAA,CAAA,CAAA,GAAA,IAAA;;IAEbC,mBAEM,OAAA;KAFA,OAAKF,eAAEC,MAAA,GAAA,CAAG,CAAC,EAAC,OAAA,CAAA;KAAY,OAAKE,eAAE,WAAA,KAAU;I,IAC7CC,WAAQ,KAAA,QAAA,SAAA,C;IAIF,QAAA,UADRN,UAAA,GAAAC,mBASS,UAAA;;KAPP,MAAK;KACJ,OAAKC,eAAA,CAAGC,MAAA,GAAA,CAAG,CAAC,EAAC,OAAA,GAAWA,MAAA,GAAA,CAAG,CAAC,GAAE,SAAA,MAAA,CAAA,CAAA;KAC9B,UAAQ,CAAGA,MAAA,OAAA;KACZ,cAAW;KACV,SAAK,OAAA,OAAA,OAAA,MAAE,GAAA,SAAAA,MAAA,IAAA,KAAAA,MAAA,IAAA,CAAA,CAAA,GAAA,IAAA;I,IAERI,YAA8BJ,MAAAK,WAAA,GAAA,MAAA;KAAtB,SAAAC,cAAa,CAAbF,YAAaJ,MAAA,SAAA,CAAA,C;;;IAIf,QAAA,UADRH,UAAA,GAAAC,mBASS,UAAA;;KAPP,MAAK;KACJ,OAAKC,eAAA,CAAGC,MAAA,GAAA,CAAG,CAAC,EAAC,OAAA,GAAWA,MAAA,GAAA,CAAG,CAAC,GAAE,SAAA,MAAA,CAAA,CAAA;KAC9B,UAAQ,CAAGA,MAAA,OAAA;KACZ,cAAW;KACV,SAAK,OAAA,OAAA,OAAA,MAAE,GAAA,SAAAA,MAAA,IAAA,KAAAA,MAAA,IAAA,CAAA,CAAA,GAAA,IAAA;I,IAERI,YAA+BJ,MAAAK,WAAA,GAAA,MAAA;KAAvB,SAAAC,cAAc,CAAdF,YAAcJ,MAAA,UAAA,CAAA,C;;;IAGb,QAAA,QAAXH,UAAA,GAAAC,mBASM,OAAA;;KATY,OAAKC,eAAEC,MAAA,GAAA,CAAG,CAAC,EAAC,MAAA,CAAA;I,KAC5BH,UAAA,IAAA,GAAAC,mBAOEU,UAAA,MAAAC,WANe,SAAA,MAAS,SAAjB,SAAI;KADb,OAAAZ,UAAA,GAAAC,mBAOE,UAAA;MALC,KAAK;MACN,MAAK;MACJ,OAAKC,eAAA,CAAGC,MAAA,GAAA,CAAG,CAAC,EAAC,KAAA,GAASA,MAAA,GAAA,CAAG,CAAC,GAAE,UAAW,OAAI,MAASA,MAAA,OAAA,CAAO,CAAA,CAAA;MAC3D,cAAU,QAAU,KAAI;MACxB,UAAK,WAAEA,MAAA,IAAA,CAAI,CAAC,OAAI,CAAA"}
|
|
@@ -51,6 +51,9 @@
|
|
|
51
51
|
.u-carousel__arrow:hover:not(:disabled) {
|
|
52
52
|
transform: translateY(-50%) scale(1.08);
|
|
53
53
|
}
|
|
54
|
+
.u-carousel__arrow:active:not(:disabled) {
|
|
55
|
+
transform: translateY(-50%) scale(0.95);
|
|
56
|
+
}
|
|
54
57
|
.u-carousel__arrow:focus-visible {
|
|
55
58
|
box-shadow: var(--u-focus-ring);
|
|
56
59
|
}
|
|
@@ -83,11 +86,14 @@
|
|
|
83
86
|
border-radius: var(--u-radius-default);
|
|
84
87
|
cursor: pointer;
|
|
85
88
|
background-color: var(--u-text-color-white-a-40);
|
|
86
|
-
transition: width var(--u-transition-fast) var(--u-transition-ease), background-color var(--u-transition-fast) var(--u-transition-ease);
|
|
89
|
+
transition: width var(--u-transition-fast) var(--u-transition-ease), background-color var(--u-transition-fast) var(--u-transition-ease), transform var(--u-transition-fast) var(--u-transition-ease-out);
|
|
87
90
|
}
|
|
88
91
|
.u-carousel__dot:hover {
|
|
89
92
|
background-color: var(--u-text-color-white-a-70);
|
|
90
93
|
}
|
|
94
|
+
.u-carousel__dot:active {
|
|
95
|
+
transform: scale(0.9);
|
|
96
|
+
}
|
|
91
97
|
.u-carousel__dot:focus-visible {
|
|
92
98
|
box-shadow: var(--u-focus-ring);
|
|
93
99
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, onScopeDispose, toValue, watch } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/components/carousel/use-carousel.ts
|
|
3
3
|
/**
|
|
4
4
|
* 走马灯索引与自动播放计时:
|
|
5
5
|
* - `goTo` 把目标索引收敛到 `[0, 页数)`,越界按取模回绕
|
|
@@ -35,6 +35,8 @@ function useCarousel({ model, count, autoplay, interval, loop }) {
|
|
|
35
35
|
const prev = () => step(-1);
|
|
36
36
|
const next = () => step(1);
|
|
37
37
|
let timer;
|
|
38
|
+
/** 悬停暂停标记:暂停期间 watch 触发的重启一律忽略,离开后才恢复 */
|
|
39
|
+
let hoverPaused = false;
|
|
38
40
|
const stopAutoplay = () => {
|
|
39
41
|
if (timer !== void 0) {
|
|
40
42
|
clearInterval(timer);
|
|
@@ -43,9 +45,19 @@ function useCarousel({ model, count, autoplay, interval, loop }) {
|
|
|
43
45
|
};
|
|
44
46
|
const startAutoplay = () => {
|
|
45
47
|
stopAutoplay();
|
|
46
|
-
if (!toValue(autoplay) || pageCount() < 2) return;
|
|
48
|
+
if (hoverPaused || !toValue(autoplay) || pageCount() < 2) return;
|
|
47
49
|
timer = setInterval(() => step(1), toValue(interval));
|
|
48
50
|
};
|
|
51
|
+
/** 悬停暂停自动播放 */
|
|
52
|
+
const pauseAutoplay = () => {
|
|
53
|
+
hoverPaused = true;
|
|
54
|
+
stopAutoplay();
|
|
55
|
+
};
|
|
56
|
+
/** 离开后恢复自动播放:重建定时器重置整个间隔,不立即跳帧 */
|
|
57
|
+
const resumeAutoplay = () => {
|
|
58
|
+
hoverPaused = false;
|
|
59
|
+
startAutoplay();
|
|
60
|
+
};
|
|
49
61
|
watch([
|
|
50
62
|
autoplay,
|
|
51
63
|
count,
|
|
@@ -59,10 +71,11 @@ function useCarousel({ model, count, autoplay, interval, loop }) {
|
|
|
59
71
|
canNext,
|
|
60
72
|
goTo,
|
|
61
73
|
prev,
|
|
62
|
-
next
|
|
74
|
+
next,
|
|
75
|
+
pauseAutoplay,
|
|
76
|
+
resumeAutoplay
|
|
63
77
|
};
|
|
64
78
|
}
|
|
65
|
-
//#endregion
|
|
66
79
|
export { useCarousel };
|
|
67
80
|
|
|
68
81
|
//# sourceMappingURL=use-carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-carousel.js","names":[],"sources":["../../../src/components/carousel/use-carousel.ts"],"sourcesContent":["import type { MaybeRefOrGetter, ModelRef } from 'vue'\nimport { computed, onScopeDispose, toValue, watch } from 'vue'\n\nexport interface UseCarouselOptions {\n /** 当前页索引,v-model:active-index */\n model: ModelRef<number>\n /** 页数,取已注册页数量 */\n count: MaybeRefOrGetter<number>\n /** 是否自动播放 */\n autoplay: MaybeRefOrGetter<boolean>\n /** 自动播放间隔(毫秒) */\n interval: MaybeRefOrGetter<number>\n /** 是否循环切换 */\n loop: MaybeRefOrGetter<boolean>\n}\n\n/**\n * 走马灯索引与自动播放计时:\n * - `goTo` 把目标索引收敛到 `[0, 页数)`,越界按取模回绕\n * - `prev` / `next` 单步切换,循环时回绕,非循环时停在边界\n * - 自动播放开关、间隔、页数、当前页任一变化后重置计时,手动切换同样重新计时\n */\nexport function useCarousel({ model, count, autoplay, interval, loop }: UseCarouselOptions) {\n const pageCount = () => Math.max(toValue(count), 0)\n\n /** 展示索引:外部传入越界值时收敛到页数范围内,避免轨道滑出空白 */\n const current = computed(() => {\n const total = pageCount()\n if (total <= 0) return 0\n return Math.min(Math.max(model.value, 0), total - 1)\n })\n\n const goTo = (index: number) => {\n const total = pageCount()\n if (total <= 0) return\n const next = ((index % total) + total) % total\n if (next !== model.value) model.value = next\n }\n\n const step = (direction: 1 | -1) => {\n const total = pageCount()\n if (total <= 1) return\n const target = current.value + direction\n if (toValue(loop)) {\n goTo(target)\n return\n }\n if (target >= 0 && target < total) goTo(target)\n }\n\n const canPrev = computed(() => toValue(loop) || current.value > 0)\n const canNext = computed(() => toValue(loop) || current.value < pageCount() - 1)\n\n const prev = () => step(-1)\n const next = () => step(1)\n\n let timer: ReturnType<typeof setInterval> | undefined\n\n const stopAutoplay = () => {\n if (timer !== undefined) {\n clearInterval(timer)\n timer = undefined\n }\n }\n\n const startAutoplay = () => {\n stopAutoplay()\n if (!toValue(autoplay) || pageCount() < 2) return\n timer = setInterval(() => step(1), toValue(interval))\n }\n\n watch([autoplay, count, interval, current], startAutoplay)\n\n onScopeDispose(stopAutoplay)\n\n return { current, canPrev, canNext, goTo, prev, next }\n}\n"],"mappings":";;;;;;;;AAsBA,SAAgB,YAAY,EAAE,OAAO,OAAO,UAAU,UAAU,QAA4B;CAC1F,MAAM,kBAAkB,KAAK,IAAI,QAAQ,KAAK,GAAG,CAAC;;CAGlD,MAAM,UAAU,eAAe;EAC7B,MAAM,QAAQ,UAAU;EACxB,IAAI,SAAS,GAAG,OAAO;EACvB,OAAO,KAAK,IAAI,KAAK,IAAI,MAAM,OAAO,CAAC,GAAG,QAAQ,CAAC;CACrD,CAAC;CAED,MAAM,QAAQ,UAAkB;EAC9B,MAAM,QAAQ,UAAU;EACxB,IAAI,SAAS,GAAG;EAChB,MAAM,QAAS,QAAQ,QAAS,SAAS;EACzC,IAAI,SAAS,MAAM,OAAO,MAAM,QAAQ;CAC1C;CAEA,MAAM,QAAQ,cAAsB;EAClC,MAAM,QAAQ,UAAU;EACxB,IAAI,SAAS,GAAG;EAChB,MAAM,SAAS,QAAQ,QAAQ;EAC/B,IAAI,QAAQ,IAAI,GAAG;GACjB,KAAK,MAAM;GACX;EACF;EACA,IAAI,UAAU,KAAK,SAAS,OAAO,KAAK,MAAM;CAChD;CAEA,MAAM,UAAU,eAAe,QAAQ,IAAI,KAAK,QAAQ,QAAQ,CAAC;CACjE,MAAM,UAAU,eAAe,QAAQ,IAAI,KAAK,QAAQ,QAAQ,UAAU,IAAI,CAAC;CAE/E,MAAM,aAAa,KAAK,EAAE;CAC1B,MAAM,aAAa,KAAK,CAAC;CAEzB,IAAI;
|
|
1
|
+
{"version":3,"file":"use-carousel.js","names":[],"sources":["../../../src/components/carousel/use-carousel.ts"],"sourcesContent":["import type { MaybeRefOrGetter, ModelRef } from 'vue'\nimport { computed, onScopeDispose, toValue, watch } from 'vue'\n\nexport interface UseCarouselOptions {\n /** 当前页索引,v-model:active-index */\n model: ModelRef<number>\n /** 页数,取已注册页数量 */\n count: MaybeRefOrGetter<number>\n /** 是否自动播放 */\n autoplay: MaybeRefOrGetter<boolean>\n /** 自动播放间隔(毫秒) */\n interval: MaybeRefOrGetter<number>\n /** 是否循环切换 */\n loop: MaybeRefOrGetter<boolean>\n}\n\n/**\n * 走马灯索引与自动播放计时:\n * - `goTo` 把目标索引收敛到 `[0, 页数)`,越界按取模回绕\n * - `prev` / `next` 单步切换,循环时回绕,非循环时停在边界\n * - 自动播放开关、间隔、页数、当前页任一变化后重置计时,手动切换同样重新计时\n */\nexport function useCarousel({ model, count, autoplay, interval, loop }: UseCarouselOptions) {\n const pageCount = () => Math.max(toValue(count), 0)\n\n /** 展示索引:外部传入越界值时收敛到页数范围内,避免轨道滑出空白 */\n const current = computed(() => {\n const total = pageCount()\n if (total <= 0) return 0\n return Math.min(Math.max(model.value, 0), total - 1)\n })\n\n const goTo = (index: number) => {\n const total = pageCount()\n if (total <= 0) return\n const next = ((index % total) + total) % total\n if (next !== model.value) model.value = next\n }\n\n const step = (direction: 1 | -1) => {\n const total = pageCount()\n if (total <= 1) return\n const target = current.value + direction\n if (toValue(loop)) {\n goTo(target)\n return\n }\n if (target >= 0 && target < total) goTo(target)\n }\n\n const canPrev = computed(() => toValue(loop) || current.value > 0)\n const canNext = computed(() => toValue(loop) || current.value < pageCount() - 1)\n\n const prev = () => step(-1)\n const next = () => step(1)\n\n let timer: ReturnType<typeof setInterval> | undefined\n\n /** 悬停暂停标记:暂停期间 watch 触发的重启一律忽略,离开后才恢复 */\n let hoverPaused = false\n\n const stopAutoplay = () => {\n if (timer !== undefined) {\n clearInterval(timer)\n timer = undefined\n }\n }\n\n const startAutoplay = () => {\n stopAutoplay()\n if (hoverPaused || !toValue(autoplay) || pageCount() < 2) return\n timer = setInterval(() => step(1), toValue(interval))\n }\n\n /** 悬停暂停自动播放 */\n const pauseAutoplay = () => {\n hoverPaused = true\n stopAutoplay()\n }\n\n /** 离开后恢复自动播放:重建定时器重置整个间隔,不立即跳帧 */\n const resumeAutoplay = () => {\n hoverPaused = false\n startAutoplay()\n }\n\n watch([autoplay, count, interval, current], startAutoplay)\n\n onScopeDispose(stopAutoplay)\n\n return { current, canPrev, canNext, goTo, prev, next, pauseAutoplay, resumeAutoplay }\n}\n"],"mappings":";;;;;;;;AAsBA,SAAgB,YAAY,EAAE,OAAO,OAAO,UAAU,UAAU,QAA4B;CAC1F,MAAM,kBAAkB,KAAK,IAAI,QAAQ,KAAK,GAAG,CAAC;;CAGlD,MAAM,UAAU,eAAe;EAC7B,MAAM,QAAQ,UAAU;EACxB,IAAI,SAAS,GAAG,OAAO;EACvB,OAAO,KAAK,IAAI,KAAK,IAAI,MAAM,OAAO,CAAC,GAAG,QAAQ,CAAC;CACrD,CAAC;CAED,MAAM,QAAQ,UAAkB;EAC9B,MAAM,QAAQ,UAAU;EACxB,IAAI,SAAS,GAAG;EAChB,MAAM,QAAS,QAAQ,QAAS,SAAS;EACzC,IAAI,SAAS,MAAM,OAAO,MAAM,QAAQ;CAC1C;CAEA,MAAM,QAAQ,cAAsB;EAClC,MAAM,QAAQ,UAAU;EACxB,IAAI,SAAS,GAAG;EAChB,MAAM,SAAS,QAAQ,QAAQ;EAC/B,IAAI,QAAQ,IAAI,GAAG;GACjB,KAAK,MAAM;GACX;EACF;EACA,IAAI,UAAU,KAAK,SAAS,OAAO,KAAK,MAAM;CAChD;CAEA,MAAM,UAAU,eAAe,QAAQ,IAAI,KAAK,QAAQ,QAAQ,CAAC;CACjE,MAAM,UAAU,eAAe,QAAQ,IAAI,KAAK,QAAQ,QAAQ,UAAU,IAAI,CAAC;CAE/E,MAAM,aAAa,KAAK,EAAE;CAC1B,MAAM,aAAa,KAAK,CAAC;CAEzB,IAAI;;CAGJ,IAAI,cAAc;CAElB,MAAM,qBAAqB;EACzB,IAAI,UAAU,KAAA,GAAW;GACvB,cAAc,KAAK;GACnB,QAAQ,KAAA;EACV;CACF;CAEA,MAAM,sBAAsB;EAC1B,aAAa;EACb,IAAI,eAAe,CAAC,QAAQ,QAAQ,KAAK,UAAU,IAAI,GAAG;EAC1D,QAAQ,kBAAkB,KAAK,CAAC,GAAG,QAAQ,QAAQ,CAAC;CACtD;;CAGA,MAAM,sBAAsB;EAC1B,cAAc;EACd,aAAa;CACf;;CAGA,MAAM,uBAAuB;EAC3B,cAAc;EACd,cAAc;CAChB;CAEA,MAAM;EAAC;EAAU;EAAO;EAAU;CAAO,GAAG,aAAa;CAEzD,eAAe,YAAY;CAE3B,OAAO;EAAE;EAAS;EAAS;EAAS;EAAM;EAAM;EAAM;EAAe;CAAe;AACtF"}
|
|
@@ -5,7 +5,7 @@ import { CascadeDIKey } from "./di.js";
|
|
|
5
5
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, normalizeClass, onMounted, openBlock, renderList, shallowRef, toDisplayString, unref, useTemplateRef, withCtx } from "vue";
|
|
6
6
|
import { bem, scrollIntoContainerView } from "@veltra/utils";
|
|
7
7
|
import { ArrowRight } from "@veltra/icons/normal";
|
|
8
|
-
|
|
8
|
+
// src/components/cascade/cascade-panel-item.vue
|
|
9
9
|
const _hoisted_1 = ["onClick"];
|
|
10
10
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
11
11
|
name: "UCascadePanelItem",
|
|
@@ -79,7 +79,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
//#endregion
|
|
83
82
|
export { _sfc_main as default };
|
|
84
83
|
|
|
85
84
|
//# sourceMappingURL=cascade-panel-item.js.map
|
|
@@ -14,7 +14,7 @@ import { useFormFallbackProps, useUserAction } from "@veltra/compositions";
|
|
|
14
14
|
import { FORM_EMPTY_CONTENT, bem, fieldKey, injectFormContext } from "@veltra/utils";
|
|
15
15
|
import { ArrowDown, Close, Search } from "@veltra/icons/normal";
|
|
16
16
|
import { Forest, o } from "@cat-kit/core";
|
|
17
|
-
|
|
17
|
+
// src/components/cascade/cascade.vue
|
|
18
18
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
19
19
|
name: "UCascade",
|
|
20
20
|
inheritAttrs: false,
|
|
@@ -318,7 +318,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
|
-
//#endregion
|
|
322
321
|
export { _sfc_main as default };
|
|
323
322
|
|
|
324
323
|
//# sourceMappingURL=cascade.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowReactive } from "vue";
|
|
2
2
|
import { TreeNode } from "@cat-kit/core";
|
|
3
|
-
|
|
3
|
+
// src/components/cascade/node.ts
|
|
4
4
|
var CascadeNode = class extends TreeNode {
|
|
5
5
|
visible = true;
|
|
6
6
|
value;
|
|
@@ -13,7 +13,6 @@ var CascadeNode = class extends TreeNode {
|
|
|
13
13
|
return shallowReactive(this);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { CascadeNode };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=node.js.map
|
|
@@ -110,6 +110,7 @@
|
|
|
110
110
|
min-width: 160px;
|
|
111
111
|
max-width: 200px;
|
|
112
112
|
flex-grow: 1;
|
|
113
|
+
animation: cascade-panel-item-enter var(--u-transition-fast) var(--u-transition-ease-out) both;
|
|
113
114
|
}
|
|
114
115
|
.u-cascade-panel-item:not(:last-child) {
|
|
115
116
|
border-right: var(--u-border);
|
|
@@ -123,6 +124,10 @@
|
|
|
123
124
|
justify-content: space-between;
|
|
124
125
|
align-items: center;
|
|
125
126
|
flex-wrap: nowrap;
|
|
127
|
+
transition: background-color var(--u-transition-fast) var(--u-transition-ease), color var(--u-transition-fast) var(--u-transition-ease), transform var(--u-transition-fast) var(--u-transition-ease-out);
|
|
128
|
+
}
|
|
129
|
+
.u-cascade-panel-item__option:not(.is-disabled):active {
|
|
130
|
+
transform: scale(0.98);
|
|
126
131
|
}
|
|
127
132
|
.u-cascade-panel-item__option:hover {
|
|
128
133
|
background-color: var(--u-bg-color-hover);
|
|
@@ -151,3 +156,14 @@
|
|
|
151
156
|
.u-cascade-panel-item__option-expand, .u-cascade-panel-item__option-checkbox {
|
|
152
157
|
flex-shrink: 0;
|
|
153
158
|
}
|
|
159
|
+
|
|
160
|
+
@keyframes cascade-panel-item-enter {
|
|
161
|
+
from {
|
|
162
|
+
opacity: 0;
|
|
163
|
+
transform: translateX(8px);
|
|
164
|
+
}
|
|
165
|
+
to {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
transform: none;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, shallowRef, triggerRef, watch } from "vue";
|
|
2
2
|
import { dfs } from "@cat-kit/core";
|
|
3
|
-
|
|
3
|
+
// src/components/cascade/use-check.ts
|
|
4
4
|
function useCheck(options) {
|
|
5
5
|
const { props, emit, dataMap, disabled, readonly, forest, isUserActive, getPanelItemList } = options;
|
|
6
6
|
const hovered = shallowRef(false);
|
|
@@ -72,7 +72,6 @@ function useCheck(options) {
|
|
|
72
72
|
checkItem
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
export { useCheck };
|
|
77
76
|
|
|
78
77
|
//# sourceMappingURL=use-check.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { shallowRef, triggerRef, watchEffect } from "vue";
|
|
2
2
|
import { fieldKey } from "@veltra/utils";
|
|
3
3
|
import { o } from "@cat-kit/core";
|
|
4
|
-
|
|
4
|
+
// src/components/cascade/use-data-map.ts
|
|
5
5
|
function useDataMap(options) {
|
|
6
6
|
const { props, forest } = options;
|
|
7
7
|
const dataMap = shallowRef(/* @__PURE__ */ new Map());
|
|
@@ -16,7 +16,6 @@ function useDataMap(options) {
|
|
|
16
16
|
});
|
|
17
17
|
return { dataMap };
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { useDataMap };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=use-data-map.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, nextTick, shallowRef, triggerRef, watch } from "vue";
|
|
2
2
|
import { createIncrease } from "@veltra/utils";
|
|
3
3
|
import "@cat-kit/core";
|
|
4
|
-
|
|
4
|
+
// src/components/cascade/use-select.ts
|
|
5
5
|
function buildPathKeys(leaf) {
|
|
6
6
|
const keys = [];
|
|
7
7
|
let node = leaf;
|
|
@@ -119,7 +119,6 @@ function useSelect(options) {
|
|
|
119
119
|
createPanelItem
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
//#endregion
|
|
123
122
|
export { useSelect };
|
|
124
123
|
|
|
125
124
|
//# sourceMappingURL=use-select.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { computed, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot } from "vue";
|
|
1
|
+
import { computed, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, withKeys, withModifiers } from "vue";
|
|
2
2
|
import { bem } from "@veltra/utils";
|
|
3
|
-
|
|
3
|
+
// src/components/check-tag/check-tag.vue
|
|
4
|
+
const _hoisted_1 = ["aria-checked", "onKeydown"];
|
|
4
5
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
6
|
name: "UCheckTag",
|
|
6
7
|
__name: "check-tag",
|
|
@@ -13,21 +14,25 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
13
14
|
const cls = bem("check-tag");
|
|
14
15
|
const props = __props;
|
|
15
16
|
const emits = __emit;
|
|
17
|
+
const currentValue = computed(() => props.modelValue ?? props.checked ?? false);
|
|
16
18
|
const classList = computed(() => {
|
|
17
|
-
return [cls.b, bem.is("checked",
|
|
19
|
+
return [cls.b, bem.is("checked", currentValue.value)];
|
|
18
20
|
});
|
|
19
21
|
const handleChange = () => {
|
|
20
|
-
emits("update:modelValue", !
|
|
22
|
+
emits("update:modelValue", !currentValue.value);
|
|
21
23
|
};
|
|
22
24
|
return (_ctx, _cache) => {
|
|
23
25
|
return openBlock(), createElementBlock("div", {
|
|
24
26
|
class: normalizeClass(classList.value),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
role: "checkbox",
|
|
28
|
+
"aria-checked": currentValue.value,
|
|
29
|
+
tabindex: "0",
|
|
30
|
+
onClick: handleChange,
|
|
31
|
+
onKeydown: [withKeys(withModifiers(handleChange, ["prevent"]), ["enter"]), withKeys(withModifiers(handleChange, ["prevent"]), ["space"])]
|
|
32
|
+
}, [renderSlot(_ctx.$slots, "default")], 42, _hoisted_1);
|
|
27
33
|
};
|
|
28
34
|
}
|
|
29
35
|
});
|
|
30
|
-
//#endregion
|
|
31
36
|
export { _sfc_main as default };
|
|
32
37
|
|
|
33
38
|
//# sourceMappingURL=check-tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-tag.js","names":["_openBlock","_createElementBlock","_normalizeClass","_renderSlot"],"sources":["../../../src/components/check-tag/check-tag.vue"],"sourcesContent":["<template>\n <div
|
|
1
|
+
{"version":3,"file":"check-tag.js","names":["_openBlock","_createElementBlock","_normalizeClass","_withKeys","_withModifiers","_renderSlot"],"sources":["../../../src/components/check-tag/check-tag.vue"],"sourcesContent":["<template>\n <div\n :class=\"classList\"\n role=\"checkbox\"\n :aria-checked=\"currentValue\"\n tabindex=\"0\"\n @click=\"handleChange\"\n @keydown.enter.prevent=\"handleChange\"\n @keydown.space.prevent=\"handleChange\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { bem } from '@veltra/utils'\nimport { computed } from 'vue'\n\nimport type { CheckTagEmits, CheckTagProps } from '../../types'\n\ndefineOptions({ name: 'UCheckTag' })\n\nconst cls = bem('check-tag')\n\nconst props = withDefaults(defineProps<CheckTagProps>(), {})\n\nconst emits = defineEmits<CheckTagEmits>()\n\nconst currentValue = computed(() => props.modelValue ?? props.checked ?? false)\n\nconst classList = computed(() => {\n return [cls.b, bem.is('checked', currentValue.value)]\n})\n\nconst handleChange = () => {\n emits('update:modelValue', !currentValue.value)\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;EAsBA,MAAM,MAAM,IAAI,WAAW;EAE3B,MAAM,QAAQ;EAEd,MAAM,QAAQ;EAEd,MAAM,eAAe,eAAe,MAAM,cAAc,MAAM,WAAW,KAAK;EAE9E,MAAM,YAAY,eAAe;GAC/B,OAAO,CAAC,IAAI,GAAG,IAAI,GAAG,WAAW,aAAa,KAAK,CAAC;EACtD,CAAC;EAED,MAAM,qBAAqB;GACzB,MAAM,qBAAqB,CAAC,aAAa,KAAK;EAChD;;GAnCE,OAAAA,UAAA,GAAAC,mBAUM,OAAA;IATH,OAAKC,eAAE,UAAA,KAAS;IACjB,MAAK;IACJ,gBAAc,aAAA;IACf,UAAS;IACR,SAAO;IACP,WAAO,CAAgBC,SAAAC,cAAA,cAAY,CAAA,SAAA,CAAA,GAAA,CAAA,OAAA,CAAA,GACZD,SAAAC,cAAA,cAAY,CAAA,SAAA,CAAA,GAAA,CAAA,OAAA,CAAA,C;G,IAEpCC,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -27,18 +27,28 @@
|
|
|
27
27
|
border: 1px solid var(--u-color-primary);
|
|
28
28
|
border-radius: var(--u-radius-default);
|
|
29
29
|
background: var(--u-color-primary-light-9);
|
|
30
|
+
transition: color var(--u-transition-fast) var(--u-transition-ease), background-color var(--u-transition-fast) var(--u-transition-ease), border-color var(--u-transition-fast) var(--u-transition-ease), transform var(--u-transition-fast) var(--u-transition-ease-out);
|
|
30
31
|
}
|
|
31
32
|
.u-check-tag:hover {
|
|
32
33
|
background-color: var(--u-color-primary-light-7);
|
|
33
34
|
}
|
|
35
|
+
.u-check-tag:focus-visible {
|
|
36
|
+
box-shadow: var(--u-focus-ring);
|
|
37
|
+
}
|
|
34
38
|
.u-check-tag.is-checked {
|
|
35
39
|
cursor: pointer;
|
|
36
40
|
color: #fff;
|
|
37
41
|
border: 1px solid var(--u-color-primary-dark-3);
|
|
38
42
|
background-color: var(--u-color-primary-dark-3);
|
|
39
43
|
}
|
|
44
|
+
.u-check-tag:not(.is-disabled):active {
|
|
45
|
+
transform: scale(0.97);
|
|
46
|
+
}
|
|
40
47
|
.u-check-tag.is-disabled {
|
|
41
48
|
cursor: not-allowed;
|
|
42
49
|
color: var(--u-text-color-disabled);
|
|
43
50
|
background-color: var(--u-color-disabled);
|
|
44
51
|
}
|
|
52
|
+
.u-check-tag.is-disabled:hover {
|
|
53
|
+
background-color: var(--u-color-disabled);
|
|
54
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _sfc_main$1 from "../tag/tag.js";
|
|
2
|
-
import { Fragment, computed, createBlock, createElementBlock, createTextVNode, defineComponent, mergeModels, mergeProps, openBlock, renderSlot, toDisplayString, unref, useModel, useSlots, withCtx } from "vue";
|
|
2
|
+
import { Fragment, computed, createBlock, createElementBlock, createTextVNode, defineComponent, mergeModels, mergeProps, openBlock, renderSlot, toDisplayString, unref, useModel, useSlots, withCtx, withKeys, withModifiers } from "vue";
|
|
3
3
|
import { useFormFallbackProps } from "@veltra/compositions";
|
|
4
4
|
import { FORM_EMPTY_CONTENT, bem, injectFormContext } from "@veltra/utils";
|
|
5
|
-
|
|
5
|
+
// src/components/checkbox/checkbox-button.vue
|
|
6
|
+
const _hoisted_1 = ["aria-checked", "onKeydown"];
|
|
6
7
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
8
|
name: "UCheckboxButton",
|
|
8
9
|
inheritAttrs: false,
|
|
@@ -62,8 +63,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
62
63
|
return (_ctx, _cache) => {
|
|
63
64
|
return !unref(readonly) ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
64
65
|
class: className.value,
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
role: "checkbox",
|
|
67
|
+
"aria-checked": !!checked.value,
|
|
68
|
+
tabindex: "0",
|
|
69
|
+
onClick: handleInput,
|
|
70
|
+
onKeydown: [withKeys(withModifiers(handleInput, ["prevent"]), ["enter"]), withKeys(withModifiers(handleInput, ["prevent"]), ["space"])]
|
|
71
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)) : checked.value !== void 0 ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
67
72
|
key: 1,
|
|
68
73
|
type: checked.value ? "success" : "danger"
|
|
69
74
|
}, {
|
|
@@ -73,7 +78,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
73
78
|
};
|
|
74
79
|
}
|
|
75
80
|
});
|
|
76
|
-
//#endregion
|
|
77
81
|
export { _sfc_main as default };
|
|
78
82
|
|
|
79
83
|
//# sourceMappingURL=checkbox-button.js.map
|