@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
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
@include m.e(item) {
|
|
53
|
+
position: relative;
|
|
53
54
|
width: 100%;
|
|
54
55
|
min-height: var(--u-nav-height-default);
|
|
55
56
|
margin: 0;
|
|
@@ -60,7 +61,8 @@
|
|
|
60
61
|
border-radius: calc(fn.use-var(radius, default) + 4px);
|
|
61
62
|
transition:
|
|
62
63
|
background-color 0.15s ease,
|
|
63
|
-
color 0.15s ease
|
|
64
|
+
color 0.15s ease,
|
|
65
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
64
66
|
|
|
65
67
|
@include m.flex;
|
|
66
68
|
|
|
@@ -69,23 +71,38 @@
|
|
|
69
71
|
color: var(--u-nav-hover-color);
|
|
70
72
|
}
|
|
71
73
|
|
|
74
|
+
@include m.is-not(disabled) {
|
|
75
|
+
&:active {
|
|
76
|
+
transform: scale(0.97);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// active 左侧指示条:默认纵向收起且透明,激活时展开淡入
|
|
81
|
+
&::before {
|
|
82
|
+
content: '';
|
|
83
|
+
position: absolute;
|
|
84
|
+
left: 0;
|
|
85
|
+
top: 50%;
|
|
86
|
+
width: 3px;
|
|
87
|
+
height: 56%;
|
|
88
|
+
min-height: 10px;
|
|
89
|
+
border-radius: 9999px;
|
|
90
|
+
background-color: fn.use-var(color, primary);
|
|
91
|
+
transform: translateY(-50%) scaleY(0);
|
|
92
|
+
opacity: 0;
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
transition:
|
|
95
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out),
|
|
96
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
97
|
+
}
|
|
98
|
+
|
|
72
99
|
@include m.is(active) {
|
|
73
|
-
position: relative;
|
|
74
100
|
background-color: var(--u-nav-active-bg);
|
|
75
101
|
color: var(--u-nav-active-color);
|
|
76
102
|
|
|
77
103
|
&::before {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
left: 0;
|
|
81
|
-
top: 50%;
|
|
82
|
-
width: 3px;
|
|
83
|
-
height: 56%;
|
|
84
|
-
min-height: 10px;
|
|
85
|
-
border-radius: 9999px;
|
|
86
|
-
background-color: fn.use-var(color, primary);
|
|
87
|
-
transform: translateY(-50%);
|
|
88
|
-
pointer-events: none;
|
|
104
|
+
transform: translateY(-50%) scaleY(1);
|
|
105
|
+
opacity: 1;
|
|
89
106
|
}
|
|
90
107
|
}
|
|
91
108
|
|
|
@@ -22,12 +22,13 @@
|
|
|
22
22
|
color: inherit;
|
|
23
23
|
vertical-align: middle;
|
|
24
24
|
user-select: none;
|
|
25
|
-
will-change: transform;
|
|
26
25
|
|
|
27
26
|
// 加载转圈
|
|
28
27
|
@include m.is(loading) {
|
|
29
28
|
transform-origin: center;
|
|
30
29
|
animation: rotating 2s linear infinite;
|
|
30
|
+
// 仅旋转期间需要合成层提示,避免全局常驻提层
|
|
31
|
+
will-change: transform;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
svg {
|
|
@@ -46,7 +46,8 @@ $root-name: image-cropper;
|
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
transition:
|
|
48
48
|
background fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
49
|
-
color fn.use-var(transition, fast) fn.use-var(transition, ease)
|
|
49
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
50
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
50
51
|
|
|
51
52
|
&:hover {
|
|
52
53
|
color: fn.use-var(color, primary);
|
|
@@ -58,6 +59,10 @@ $root-name: image-cropper;
|
|
|
58
59
|
background: fn.color-a(color, 16, primary);
|
|
59
60
|
}
|
|
60
61
|
|
|
62
|
+
&:active {
|
|
63
|
+
transform: translateY(1px);
|
|
64
|
+
}
|
|
65
|
+
|
|
61
66
|
&:focus-visible {
|
|
62
67
|
box-shadow: fn.use-var(focus-ring);
|
|
63
68
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Teleport to="body" :disabled="!modal">
|
|
3
|
-
<transition :name="modal ? '
|
|
3
|
+
<transition :name="modal ? 'fade-scale' : ''">
|
|
4
4
|
<div v-if="!modal || open" :class="[cls.b, bem.is('modal', modal)]">
|
|
5
5
|
<div
|
|
6
6
|
ref="stage"
|
|
7
|
-
:class="[
|
|
7
|
+
:class="[
|
|
8
|
+
cls.e('stage'),
|
|
9
|
+
bem.is('pannable', scale > 1),
|
|
10
|
+
bem.is('dragging', isDragging),
|
|
11
|
+
bem.is('wheeling', isWheeling)
|
|
12
|
+
]"
|
|
8
13
|
v-bind="attrs"
|
|
9
14
|
@mousedown.self="onBackdropMousedown"
|
|
10
15
|
@pointerdown="onPointerDown"
|
|
@@ -126,6 +131,8 @@ const failed = ref(false)
|
|
|
126
131
|
const scale = ref(1)
|
|
127
132
|
/** 拖拽起止各写一次,仅驱动 grabbing 光标 */
|
|
128
133
|
const isDragging = ref(false)
|
|
134
|
+
/** ctrl+wheel 连续缩放期间置位:stage 禁用 transform 过渡保证逐档跟手 */
|
|
135
|
+
const isWheeling = ref(false)
|
|
129
136
|
|
|
130
137
|
const zoomPercent = computed(() => `${Math.round(scale.value * 100)}%`)
|
|
131
138
|
|
|
@@ -199,9 +206,19 @@ function onPointerEnd(e: PointerEvent) {
|
|
|
199
206
|
isDragging.value = false
|
|
200
207
|
}
|
|
201
208
|
|
|
209
|
+
/** wheel 序列防抖计时:滚动停止约一个 fast 过渡时长后恢复过渡 */
|
|
210
|
+
let wheelStopTimer: ReturnType<typeof setTimeout> | undefined
|
|
211
|
+
|
|
202
212
|
function onWheel(e: WheelEvent) {
|
|
203
213
|
if (!(e.ctrlKey || e.metaKey)) return
|
|
204
214
|
e.preventDefault()
|
|
215
|
+
// 连续缩放档位间不做过渡(每档 0.15s 过渡叠加会迟滞);停止滚动后再恢复
|
|
216
|
+
if (!isWheeling.value) isWheeling.value = true
|
|
217
|
+
clearTimeout(wheelStopTimer)
|
|
218
|
+
wheelStopTimer = setTimeout(() => {
|
|
219
|
+
isWheeling.value = false
|
|
220
|
+
wheelStopTimer = undefined
|
|
221
|
+
}, 150)
|
|
205
222
|
setScale(scale.value + (e.deltaY > 0 ? -ZOOM_STEP : ZOOM_STEP))
|
|
206
223
|
}
|
|
207
224
|
|
|
@@ -308,6 +325,7 @@ watch(
|
|
|
308
325
|
)
|
|
309
326
|
|
|
310
327
|
onBeforeUnmount(() => {
|
|
328
|
+
clearTimeout(wheelStopTimer)
|
|
311
329
|
revoke?.()
|
|
312
330
|
url.value = ''
|
|
313
331
|
})
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
user-select: none;
|
|
40
40
|
// 图片缩放/拖拽的 transform 直接写在本元素 style 上(见 applyTransform)
|
|
41
41
|
transform-origin: center center;
|
|
42
|
-
|
|
42
|
+
// 缩放是操作反馈:ease-out 起步快,指尖/滚轮动作即时可见
|
|
43
|
+
transition: transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
43
44
|
will-change: transform;
|
|
44
45
|
|
|
45
46
|
&.is-pannable {
|
|
@@ -53,6 +54,11 @@
|
|
|
53
54
|
transition: none;
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
// ctrl+wheel 连续缩放期间禁用过渡:每档 0.15s 过渡叠加会让缩放迟滞
|
|
58
|
+
&.is-wheeling {
|
|
59
|
+
transition: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
56
62
|
img {
|
|
57
63
|
max-width: 100%;
|
|
58
64
|
max-height: 100%;
|
|
@@ -146,12 +152,18 @@
|
|
|
146
152
|
color: inherit;
|
|
147
153
|
background: transparent;
|
|
148
154
|
cursor: pointer;
|
|
149
|
-
transition:
|
|
155
|
+
transition:
|
|
156
|
+
background fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
157
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
150
158
|
|
|
151
159
|
&:not(:disabled):hover {
|
|
152
160
|
background: fn.color-a(text-color, 22, white);
|
|
153
161
|
}
|
|
154
162
|
|
|
163
|
+
&:not(:disabled):active {
|
|
164
|
+
transform: translateY(1px);
|
|
165
|
+
}
|
|
166
|
+
|
|
155
167
|
&:disabled {
|
|
156
168
|
opacity: 0.38;
|
|
157
169
|
cursor: not-allowed;
|
|
@@ -172,17 +184,8 @@
|
|
|
172
184
|
}
|
|
173
185
|
}
|
|
174
186
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
will-change: opacity;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.u-image-previewer-fade-enter-from,
|
|
182
|
-
.u-image-previewer-fade-leave-to {
|
|
183
|
-
opacity: 0;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.u-image-previewer-fade-leave-active {
|
|
187
|
+
// 开/关过渡复用共享 fade-scale 类(同 dialog)。共享类不带 pointer-events 防护,
|
|
188
|
+
// 离开期间在组件作用域内补一层,避免关闭动画中误触背衬关闭。
|
|
189
|
+
#{fn.bem(image-previewer)}.fade-scale-leave-active {
|
|
187
190
|
pointer-events: none;
|
|
188
191
|
}
|
|
@@ -29,17 +29,11 @@
|
|
|
29
29
|
/>
|
|
30
30
|
|
|
31
31
|
<span :class="suffixClass" v-if="hasSuffix">
|
|
32
|
-
<UIcon
|
|
33
|
-
v-if="showClear"
|
|
34
|
-
:class="cls.e('clear')"
|
|
35
|
-
title="清除"
|
|
36
|
-
@click.stop="clearModelValue"
|
|
37
|
-
key="clear"
|
|
38
|
-
>
|
|
32
|
+
<UIcon v-if="showClear" :class="cls.e('clear')" title="清除" @click.stop="clearModelValue">
|
|
39
33
|
<Close />
|
|
40
34
|
</UIcon>
|
|
41
35
|
|
|
42
|
-
<span v-else :class="cls.e('suffix-content')" @click="handleSuffixClick"
|
|
36
|
+
<span v-else :class="cls.e('suffix-content')" @click="handleSuffixClick">
|
|
43
37
|
{{ suffix }}
|
|
44
38
|
<slot name="suffix"></slot>
|
|
45
39
|
</span>
|
|
@@ -54,7 +54,7 @@ $root-name: input;
|
|
|
54
54
|
font-family: fn.use-var(font-family);
|
|
55
55
|
|
|
56
56
|
&:-webkit-autofill {
|
|
57
|
-
color:
|
|
57
|
+
color: fn.use-var(text-color, white) !important;
|
|
58
58
|
background-color: transparent;
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -74,12 +74,30 @@ $root-name: input;
|
|
|
74
74
|
|
|
75
75
|
@include m.is(clickable) {
|
|
76
76
|
cursor: pointer;
|
|
77
|
+
transition: background-color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
background-color: fn.color-a(color, 5, primary);
|
|
81
|
+
}
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
@include m.e(clear) {
|
|
81
86
|
cursor: pointer;
|
|
82
87
|
color: fn.use-var(text-color, main);
|
|
88
|
+
transition:
|
|
89
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
90
|
+
transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
color: fn.use-var(color, primary);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// 高频小图标:按下瞬间缩到位,松手回弹走过渡
|
|
97
|
+
&:active {
|
|
98
|
+
transform: scale(0.92);
|
|
99
|
+
transition-duration: 0s;
|
|
100
|
+
}
|
|
83
101
|
}
|
|
84
102
|
|
|
85
103
|
@include m.e(suffix-content) {
|
|
@@ -54,6 +54,8 @@ function makeConfig(): VueParentConfig<Record<string, any>> {
|
|
|
54
54
|
dragHandle: `.${cls.e('card-handle')}`,
|
|
55
55
|
draggable: (el) => el.classList.contains(cls.e('card')),
|
|
56
56
|
draggingClass: 'is-dragging',
|
|
57
|
+
// formkit 拖起后下一帧把原位元素换成 placeholder 类;跟随鼠标的是原生拖拽快照
|
|
58
|
+
dragPlaceholderClass: 'is-drag-placeholder',
|
|
57
59
|
dropZoneClass: 'is-dropzone',
|
|
58
60
|
disabled: ctx.kanbanProps.disabled,
|
|
59
61
|
// 排序/转移数据已由 onReorder 写回,这里只负责对外发 change 通知
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
// 空列也保持可拖入的目标高度
|
|
57
57
|
min-height: 64px;
|
|
58
58
|
padding: 2px;
|
|
59
|
+
// 拖入目标态背景色平滑淡入,避免瞬现瞬灭
|
|
60
|
+
transition: background-color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
59
61
|
|
|
60
62
|
&.is-dropzone {
|
|
61
63
|
background-color: fn.color-a(color, 4, primary);
|
|
@@ -80,8 +82,12 @@
|
|
|
80
82
|
box-shadow: fn.use-var(shadow);
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
// 拖拽中原位卡片整体隐形(is-dragging 只存在一帧,随后换 is-drag-placeholder),
|
|
86
|
+
// 跟随鼠标的是浏览器原生拖拽快照——呈现"一直被抓着"的效果;不加 scale/阴影,
|
|
87
|
+
// formkit animations 插件会在节点上写内联 transform。
|
|
88
|
+
&.is-dragging,
|
|
89
|
+
&.is-drag-placeholder {
|
|
90
|
+
opacity: 0;
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
93
|
|
|
@@ -91,9 +97,11 @@
|
|
|
91
97
|
color: fn.use-var(text-color, assist);
|
|
92
98
|
cursor: grab;
|
|
93
99
|
user-select: none;
|
|
100
|
+
transition: transform fn.use-var(transition, fast) fn.use-var(transition, ease-out);
|
|
94
101
|
|
|
95
102
|
&:active {
|
|
96
103
|
cursor: grabbing;
|
|
104
|
+
transform: scale(0.94);
|
|
97
105
|
}
|
|
98
106
|
}
|
|
99
107
|
|
|
@@ -118,6 +126,7 @@
|
|
|
118
126
|
|
|
119
127
|
&:active {
|
|
120
128
|
cursor: not-allowed;
|
|
129
|
+
transform: none;
|
|
121
130
|
}
|
|
122
131
|
}
|
|
123
132
|
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// @vitest-environment happy-dom
|
|
2
|
+
|
|
3
|
+
import { afterEach, describe, expect, it, vi } from 'vite-plus/test'
|
|
4
|
+
import { createApp, h, nextTick, type App } from 'vue'
|
|
5
|
+
|
|
6
|
+
import ULayout from '../layout.vue'
|
|
7
|
+
|
|
8
|
+
/** happy-dom 无真实布局,列的几何尺寸全部用桩值喂给组件 */
|
|
9
|
+
function mockColumn(el: HTMLElement, offsetLeft: number, width: number) {
|
|
10
|
+
Object.defineProperty(el, 'offsetLeft', { value: offsetLeft, configurable: true })
|
|
11
|
+
Object.defineProperty(el, 'offsetWidth', { value: width, configurable: true })
|
|
12
|
+
el.getBoundingClientRect = () => ({ width }) as DOMRect
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function mouseEvent(type: string, clientX: number, clientY = 0, bubbles = false) {
|
|
16
|
+
const e = new MouseEvent(type, { bubbles, button: 0, clientX, clientY })
|
|
17
|
+
// happy-dom 的 MouseEvent 未实现 x / y 别名,而 useDrag 读取 e.x / e.y
|
|
18
|
+
Object.defineProperty(e, 'x', { value: clientX })
|
|
19
|
+
Object.defineProperty(e, 'y', { value: clientY })
|
|
20
|
+
return e
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function startDrag(resizer: HTMLElement, startX = 100) {
|
|
24
|
+
resizer.dispatchEvent(mouseEvent('mousedown', startX, 0, true))
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function moveDrag(dx: number, lastX = 100) {
|
|
28
|
+
document.dispatchEvent(mouseEvent('mousemove', lastX + dx))
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function endDrag() {
|
|
32
|
+
document.dispatchEvent(mouseEvent('mouseup', 0))
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async function flush() {
|
|
36
|
+
await new Promise((resolve) => setTimeout(resolve, 0))
|
|
37
|
+
await nextTick()
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** 挂载两列(400px + 300px,最小宽度 200 / 150),列边界桩值与 cols 一致 */
|
|
41
|
+
async function mountLayout() {
|
|
42
|
+
const host = document.createElement('div')
|
|
43
|
+
document.body.appendChild(host)
|
|
44
|
+
const app = createApp({
|
|
45
|
+
render: () =>
|
|
46
|
+
h(ULayout, { resizable: true, cols: ['400px', '300px'], colMinSizes: [200, 150] }, () => [
|
|
47
|
+
h('div', { class: 'col-a' }),
|
|
48
|
+
h('div', { class: 'col-b' })
|
|
49
|
+
])
|
|
50
|
+
})
|
|
51
|
+
app.mount(host)
|
|
52
|
+
|
|
53
|
+
const container = host.firstElementChild as HTMLElement
|
|
54
|
+
// mount 后同步打桩,抢在 syncResizers 的 nextTick 测量之前
|
|
55
|
+
mockColumn(container.children[0] as HTMLElement, 0, 400)
|
|
56
|
+
mockColumn(container.children[1] as HTMLElement, 410, 300)
|
|
57
|
+
await flush()
|
|
58
|
+
|
|
59
|
+
const resizer = container.querySelector<HTMLElement>('.u-layout__resizer')!
|
|
60
|
+
return { app, container, resizer }
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
describe('ULayout resizable', () => {
|
|
64
|
+
let app: App | undefined
|
|
65
|
+
|
|
66
|
+
afterEach(() => {
|
|
67
|
+
app?.unmount()
|
|
68
|
+
app = undefined
|
|
69
|
+
document.body.innerHTML = ''
|
|
70
|
+
vi.unstubAllGlobals()
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
it('未超限拖拽:两列等量增减,把手跟随交界线', async () => {
|
|
74
|
+
const ctx = await mountLayout()
|
|
75
|
+
app = ctx.app
|
|
76
|
+
|
|
77
|
+
startDrag(ctx.resizer)
|
|
78
|
+
moveDrag(50)
|
|
79
|
+
await nextTick()
|
|
80
|
+
expect(ctx.container.style.gridTemplateColumns).toBe('450px 250px')
|
|
81
|
+
expect(ctx.resizer.style.transform).toBe('translate3d(450px, 0, 0)')
|
|
82
|
+
endDrag()
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
it('超限拖拽:把手顶在钳制边界,不跟随鼠标穿过它', async () => {
|
|
86
|
+
const ctx = await mountLayout()
|
|
87
|
+
app = ctx.app
|
|
88
|
+
|
|
89
|
+
startDrag(ctx.resizer)
|
|
90
|
+
// 右侧余量只有 300 - 150 = 150,多拖 50
|
|
91
|
+
moveDrag(200)
|
|
92
|
+
await nextTick()
|
|
93
|
+
expect(ctx.container.style.gridTemplateColumns).toBe('550px 150px')
|
|
94
|
+
expect(ctx.resizer.style.transform).toBe('translate3d(550px, 0, 0)')
|
|
95
|
+
endDrag()
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
it('超限后松手:把手精确落回两列交界线', async () => {
|
|
99
|
+
const ctx = await mountLayout()
|
|
100
|
+
app = ctx.app
|
|
101
|
+
|
|
102
|
+
startDrag(ctx.resizer)
|
|
103
|
+
moveDrag(200)
|
|
104
|
+
endDrag()
|
|
105
|
+
|
|
106
|
+
// 模拟浏览器重排后真实边界(556)与拖拽期回写值(550)存在舍入差异,
|
|
107
|
+
// 只有 resize-end 的 syncResizers 会按重排结果重新对齐把手
|
|
108
|
+
mockColumn(ctx.container.children[0] as HTMLElement, 0, 556)
|
|
109
|
+
mockColumn(ctx.container.children[1] as HTMLElement, 566, 144)
|
|
110
|
+
await flush()
|
|
111
|
+
|
|
112
|
+
expect(ctx.resizer.style.transform).toBe('translate3d(556px, 0, 0)')
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
it('再次拖拽:从真实边界起步,上一轮超限不传染脏值', async () => {
|
|
116
|
+
const ctx = await mountLayout()
|
|
117
|
+
app = ctx.app
|
|
118
|
+
|
|
119
|
+
// 第一轮向右超限 50 后松手
|
|
120
|
+
startDrag(ctx.resizer)
|
|
121
|
+
moveDrag(200)
|
|
122
|
+
endDrag()
|
|
123
|
+
mockColumn(ctx.container.children[0] as HTMLElement, 0, 550)
|
|
124
|
+
mockColumn(ctx.container.children[1] as HTMLElement, 560, 150)
|
|
125
|
+
await flush()
|
|
126
|
+
|
|
127
|
+
// 第二轮向左拖 50(合法范围内);若把手 offset 残留超限脏值 600,这里会显示 550
|
|
128
|
+
startDrag(ctx.resizer, 300)
|
|
129
|
+
moveDrag(-50, 300)
|
|
130
|
+
await nextTick()
|
|
131
|
+
expect(ctx.container.style.gridTemplateColumns).toBe('500px 200px')
|
|
132
|
+
expect(ctx.resizer.style.transform).toBe('translate3d(500px, 0, 0)')
|
|
133
|
+
endDrag()
|
|
134
|
+
})
|
|
135
|
+
})
|
|
@@ -35,10 +35,15 @@ const emit = defineEmits<{
|
|
|
35
35
|
const { cls } = inject(LayoutDIKey)!
|
|
36
36
|
|
|
37
37
|
const className = computed(() => {
|
|
38
|
-
return [
|
|
38
|
+
return [
|
|
39
|
+
cls.e('resizer'),
|
|
40
|
+
bem.is('horizontal', props.horizontal),
|
|
41
|
+
bem.is('dragging', dragging.value)
|
|
42
|
+
]
|
|
39
43
|
})
|
|
40
44
|
|
|
41
45
|
const resizerRef = shallowRef<HTMLDivElement>()
|
|
46
|
+
const dragging = shallowRef(false)
|
|
42
47
|
|
|
43
48
|
let offset = props.offset ?? 0
|
|
44
49
|
const offsets = shallowReactive({
|
|
@@ -49,6 +54,7 @@ let currentOffset = 0
|
|
|
49
54
|
useDrag({
|
|
50
55
|
target: resizerRef,
|
|
51
56
|
onDragStart() {
|
|
57
|
+
dragging.value = true
|
|
52
58
|
currentOffset = offset
|
|
53
59
|
emit('resize-start')
|
|
54
60
|
},
|
|
@@ -64,6 +70,7 @@ useDrag({
|
|
|
64
70
|
}
|
|
65
71
|
},
|
|
66
72
|
onDragEnd() {
|
|
73
|
+
dragging.value = false
|
|
67
74
|
emit('resize-end')
|
|
68
75
|
}
|
|
69
76
|
})
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
direction="vertical"
|
|
12
12
|
@resize="handleResize($event, index)"
|
|
13
13
|
@resize-start="handleStartResize(index)"
|
|
14
|
-
@resize-end="
|
|
14
|
+
@resize-end="handleEndResize(index)"
|
|
15
15
|
>
|
|
16
16
|
</ULayoutResizer>
|
|
17
17
|
|
|
@@ -115,6 +115,8 @@ function syncResizers() {
|
|
|
115
115
|
|
|
116
116
|
let prevSize = 0
|
|
117
117
|
let nextSize = 0
|
|
118
|
+
// 拖拽起点的把手位置(左侧列的右边界),量取口径与 getResizeOffsets 一致
|
|
119
|
+
let startOffset = 0
|
|
118
120
|
const handleStartResize = (index: number) => {
|
|
119
121
|
const container = containerRef.value
|
|
120
122
|
if (!container) return
|
|
@@ -125,6 +127,7 @@ const handleStartResize = (index: number) => {
|
|
|
125
127
|
const nextDom = container.children[index + 1] as HTMLElement | undefined
|
|
126
128
|
prevSize = prevDom ? prevDom.getBoundingClientRect().width : 0
|
|
127
129
|
nextSize = nextDom ? nextDom.getBoundingClientRect().width : 0
|
|
130
|
+
startOffset = prevDom ? prevDom.offsetLeft + prevDom.offsetWidth : 0
|
|
128
131
|
emit('resize-start', index)
|
|
129
132
|
}
|
|
130
133
|
const handleResize = (offset: number, index: number) => {
|
|
@@ -135,6 +138,19 @@ const handleResize = (offset: number, index: number) => {
|
|
|
135
138
|
const clamped = Math.max(minPrev - prevSize, Math.min(nextSize - minNext, offset))
|
|
136
139
|
templateCols.value[index] = `${prevSize + clamped}px`
|
|
137
140
|
templateCols.value[index + 1] = `${nextSize - clamped}px`
|
|
141
|
+
// 增量被钳制时把手不能继续跟随鼠标,否则会脱离两列交界线(把手位置由列宽决定,
|
|
142
|
+
// resizer 自身的 offset 只是鼠标位移的镜像,松手后由 handleEndResize 回正)
|
|
143
|
+
if (clamped !== offset) {
|
|
144
|
+
resizerRefs.value[index]!.update(startOffset + clamped)
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** 拖拽期间容器尺寸不变、props 也不变,ResizeObserver 与 watch 都不会触发,需手动回正把手 */
|
|
149
|
+
const handleEndResize = (index: number) => {
|
|
150
|
+
emit('resize-end', index)
|
|
151
|
+
nextTick(() => {
|
|
152
|
+
syncResizers()
|
|
153
|
+
})
|
|
138
154
|
}
|
|
139
155
|
|
|
140
156
|
provide(LayoutDIKey, { cls })
|
|
@@ -10,16 +10,41 @@
|
|
|
10
10
|
position: absolute;
|
|
11
11
|
left: 0;
|
|
12
12
|
top: 0;
|
|
13
|
+
z-index: 1;
|
|
13
14
|
cursor: col-resize;
|
|
14
|
-
// background-color: fn.use-var(bg-color, middle);
|
|
15
|
-
// box-shadow: fn.use-var(shadow);
|
|
16
15
|
height: 100%;
|
|
17
16
|
width: 10px;
|
|
18
17
|
@include m.flex($align: center, $justify: center);
|
|
18
|
+
transition: background-color fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
19
19
|
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
// 常驻把手图标弱化显示,hover / 拖拽时点亮,避免整条把手长期抢视线
|
|
21
|
+
@include m.bem(icon) {
|
|
22
|
+
color: fn.use-var(text-color, assist);
|
|
23
|
+
opacity: 0.45;
|
|
24
|
+
transition:
|
|
25
|
+
color fn.use-var(transition, fast) fn.use-var(transition, ease),
|
|
26
|
+
opacity fn.use-var(transition, fast) fn.use-var(transition, ease);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:hover,
|
|
30
|
+
&:active {
|
|
31
|
+
background-color: fn.color-a(color, 8, primary);
|
|
32
|
+
|
|
33
|
+
@include m.bem(icon) {
|
|
34
|
+
color: fn.use-var(color, primary);
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 拖拽中:整条把手保持高亮指示
|
|
40
|
+
@include m.is(dragging) {
|
|
41
|
+
background-color: fn.color-a(color, 16, primary);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include m.is(horizontal) {
|
|
45
|
+
height: 10px;
|
|
46
|
+
width: 100%;
|
|
47
|
+
cursor: row-resize;
|
|
48
|
+
}
|
|
24
49
|
}
|
|
25
50
|
}
|