@sdata/web-vue 4.4.3 → 4.5.1
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/sd.css +74 -9
- package/dist/sd.min.css +2 -2
- package/es/_components/auto-tooltip/auto-tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/client-only.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/input-label/input-label.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/resize-observer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/select-view/select-view.vue.d.ts +1 -1
- package/es/_components/select-view/select-view.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/_components/transition/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/_hooks/use-component-ref.d.ts +1 -1
- package/es/_hooks/use-responsive.js +6 -1
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/color.js +1 -1
- package/es/_utils/date.d.ts +1 -1
- package/es/_utils/date.js +6 -3
- package/es/_utils/debounce.d.ts +4 -1
- package/es/_utils/debounce.js +8 -1
- package/es/_utils/get-value-by-path.d.ts +1 -0
- package/es/_utils/get-value-by-path.js +9 -9
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/anchor/anchor-link.vue_vue_type_script_setup_true_lang.js +8 -4
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +18 -5
- package/es/anchor/utils.d.ts +1 -1
- package/es/anchor/utils.js +4 -2
- package/es/auto-complete/auto-complete.vue.d.ts +4 -4
- package/es/auto-complete/auto-complete.vue_vue_type_script_setup_true_lang.js +22 -9
- package/es/avatar/avatar-group.vue_vue_type_script_setup_true_lang.js +16 -23
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +36 -20
- package/es/avatar/style/index.css +4 -0
- package/es/avatar/style/index.scss +5 -0
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +24 -13
- package/es/badge/badge.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/basic-crud-table/basic-crud-modal.vue.d.ts +1 -1
- package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +24 -15
- package/es/basic-crud-table/basic-crud-table.vue.d.ts +4 -4
- package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +58 -37
- package/es/basic-crud-table/index.d.ts +12 -12
- package/es/bloom-menu/bloom-menu.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +64 -22
- package/es/border-beam/styles.js +20 -7
- package/es/breadcrumb/breadcrumb-item.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/breadcrumb/breadcrumb.vue_vue_type_script_setup_true_lang.js +6 -4
- package/es/button/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +19 -13
- package/es/button/index.d.ts +3 -3
- package/es/calendar/__test__/real-transitions.js +10 -0
- package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +7 -3
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/calendar/components/header.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/calendar/core/config.js +17 -20
- package/es/calendar/core/events.js +59 -41
- package/es/calendar/core/i18n.d.ts +1 -1
- package/es/calendar/core/i18n.js +2 -2
- package/es/calendar/core/index.d.ts +6 -6
- package/es/calendar/core/index.js +1 -1
- package/es/calendar/core/view.js +10 -7
- package/es/calendar/modules/drag-and-drop.js +80 -30
- package/es/calendar/utils/date.d.ts +4 -4
- package/es/calendar/utils/date.js +20 -11
- package/es/card/card-actions.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/card-grid.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/card/card-meta.vue_vue_type_script_setup_true_lang.js +13 -10
- package/es/card/card.vue_vue_type_script_setup_true_lang.js +17 -11
- package/es/card/context.d.ts +2 -0
- package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel.vue_vue_type_script_setup_true_lang.js +13 -10
- package/es/cascader/base-cascader-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader-column.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/cascader/cascader-option.vue_vue_type_script_setup_true_lang.js +8 -21
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +27 -12
- package/es/cascader/cascader-search-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader.vue.d.ts +1 -1
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +37 -17
- package/es/cascader/context.d.ts +2 -2
- package/es/cascader/hooks/use-lazy-load.d.ts +6 -0
- package/es/cascader/hooks/use-lazy-load.js +35 -0
- package/es/cascader/interface.d.ts +4 -0
- package/es/cascader/utils.d.ts +2 -2
- package/es/cascader/utils.js +10 -8
- package/es/checkbox/checkbox-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/checkbox/icon-check.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js +17 -2
- package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/color-picker/control-bar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/gradient-thumb.vue_vue_type_script_setup_true_lang.js +6 -2
- package/es/color-picker/hooks/use-control-block.js +5 -1
- package/es/color-picker/palette.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/panel.vue_vue_type_script_setup_true_lang.js +31 -12
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +7 -15
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/context.d.ts +5 -1
- package/es/config-provider/context.js +2 -1
- package/es/config-provider/global-theme.d.ts +3 -0
- package/es/config-provider/global-theme.js +49 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +39 -37
- package/es/config-provider/theme.d.ts +1 -0
- package/es/config-provider/theme.js +5 -3
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +33 -25
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +38 -6
- package/es/date-picker/hooks/use-is-disabled-date.d.ts +2 -2
- package/es/date-picker/hooks/use-is-disabled-date.js +4 -5
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/index.d.ts +28 -0
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/date-picker/panels/footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/week-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +11 -3
- package/es/date-picker/pickers/date-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/month-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/quarter-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/week-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/year-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +28 -0
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +24 -3
- package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +10 -9
- package/es/descriptions/interface.d.ts +1 -0
- package/es/divider/divider.vue_vue_type_script_setup_true_lang.js +5 -3
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +28 -24
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +3 -6
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +15 -13
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +17 -13
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/ellipsis/ellipsis.vue.d.ts +2 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +23 -8
- package/es/ellipsis/index.d.ts +3 -0
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +24 -9
- package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +34 -18
- package/es/file-previewer/pdfjs-worker.min.mjs +4 -4
- package/es/file-previewer/use-pdf-js.js +57 -38
- package/es/form/form-item-label.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/form/form-item-message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +54 -15
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +11 -8
- package/es/grid/context.d.ts +2 -2
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +8 -7
- package/es/grid/grid-item.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/grid/grid-row.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +11 -12
- package/es/grid/style/col.scss +2 -2
- package/es/grid/style/index.css +42 -0
- package/es/grid/utils/index.js +5 -2
- package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-to-top/icon-to-top.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-up/icon-up.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/icon-component/add-from-icon-font-cn.js +5 -1
- package/es/icon-component/icon-font.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon-component/icon.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/icon.js +292 -292
- package/es/image/hooks/use-image-drag.js +4 -2
- package/es/image/image-footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +14 -10
- package/es/image/preview-action.vue.d.ts +6 -2
- package/es/image/preview-action.vue_vue_type_script_setup_true_lang.js +12 -3
- package/es/image/preview-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-group.vue_vue_type_script_setup_true_lang.js +7 -9
- package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +17 -22
- package/es/index.css +74 -9
- package/es/index.d.ts +6 -6
- package/es/input/index.d.ts +3 -3
- package/es/input/input-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input/input-search.vue.d.ts +1 -1
- package/es/input/input-search.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/input/input.vue_vue_type_script_setup_true_lang.js +7 -8
- package/es/input-mask/input-mask.vue_vue_type_script_setup_true_lang.js +14 -7
- package/es/input-mask/mask-engine.js +1 -1
- package/es/input-number/decimal.d.ts +3 -0
- package/es/input-number/decimal.js +49 -0
- package/es/input-number/input-number.vue_vue_type_script_setup_true_lang.js +60 -27
- package/es/input-tag/input-tag.vue_vue_type_script_setup_true_lang.js +34 -16
- package/es/input-tag/utils.js +1 -1
- package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/utils.js +4 -2
- package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/layout/content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/index.d.ts +3 -3
- package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list.vue.d.ts +1 -1
- package/es/list/list.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/locale/interface.d.ts +4 -0
- package/es/locale/lang/en-us.js +4 -0
- package/es/locale/lang/zh-cn.js +4 -0
- package/es/mention/mention.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/indent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/item-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/overflow-wrap.vue_vue_type_script_setup_true_lang.js +13 -3
- package/es/menu/sub-menu-inline.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/sub-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/message/index.js +2 -1
- package/es/message/message-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/modal/hooks/use-draggable.js +3 -1
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/model-selector/model-selector-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-dialog.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-empty.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-logo-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-logo.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-name.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-separator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-shortcut.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/notification/index.js +5 -2
- package/es/notification/notification-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/notification/notification.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/number-flow/number-flow-group.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/number-flow/number-flow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/pagination/interface.d.ts +1 -0
- package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-jumper.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-options.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/pagination.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/circle.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/progress/line.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/progress/progress.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/steps.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +23 -12
- package/es/radio/radio-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/radio/radio.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/rate/rate.vue_vue_type_script_setup_true_lang.js +9 -7
- package/es/regex-vis/layout.js +1 -1
- package/es/regex-vis/parser/parser.js +1 -1
- package/es/regex-vis/regex-vis.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -3
- package/es/result/403.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/404.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/500.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/index.d.ts +7 -6
- package/es/result/result.vue.d.ts +2 -2
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/rich-text-editor/nodes/inline-component-node.js +1 -1
- package/es/rich-text-editor/rich-text-editor.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/rich-text-editor/rich-text-node-renderer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sd-vue.js +1 -1
- package/es/secret/index.d.ts +4 -15
- package/es/secret/interface.d.ts +6 -0
- package/es/secret/secret.vue.d.ts +1 -5
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/index.d.ts +3 -3
- package/es/select/interface.d.ts +5 -0
- package/es/select/select-dropdown.vue.d.ts +3 -1
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +9 -5
- package/es/select/select.vue.d.ts +1 -1
- package/es/select/select.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/select/utils.js +1 -1
- package/es/selectable-card/index.d.ts +4 -52
- package/es/selectable-card/selectable-card.vue.d.ts +3 -20
- package/es/selectable-card/selectable-card.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/selectable-card/types.d.ts +17 -0
- package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-recording-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-skill-tag.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-stop-loading-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/interface.d.ts +14 -0
- package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +6 -8
- package/es/skeleton/shape.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/skeleton/skeleton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +9 -4
- package/es/slider/slider-dots.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-marks.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-ticks.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/space/space.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/spin/dot-loading.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/spin/spin.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/split/index.d.ts +1 -0
- package/es/split/interface.d.ts +7 -7
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +8 -4
- package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/steps/index.d.ts +2 -0
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +7 -2
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/switch/index.d.ts +4 -3
- package/es/switch/switch.vue.d.ts +1 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/table/index.d.ts +3 -3
- package/es/table/table-column.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-operation-td.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-operation-th.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-tbody.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-td.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-th.vue_vue_type_script_setup_true_lang.js +14 -3
- package/es/table/table-thead.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-tr.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table.vue.d.ts +1 -1
- package/es/table/table.vue_vue_type_script_setup_true_lang.js +14 -5
- package/es/table/utils.js +1 -1
- package/es/tabs/index.d.ts +19 -57
- package/es/tabs/style/index.css +17 -1
- package/es/tabs/style/index.scss +17 -1
- package/es/tabs/tab-pane.vue.d.ts +1 -13
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +26 -5
- package/es/tabs/tabs-button.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/tabs/tabs-nav-ink.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-nav.vue_vue_type_script_setup_true_lang.js +10 -5
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +10 -5
- package/es/tabs/tabs.vue_vue_type_script_setup_true_lang.js +8 -7
- package/es/tag/index.d.ts +10 -10
- package/es/tag/tag.vue.d.ts +4 -4
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +6 -2
- package/es/textarea/index.d.ts +1 -0
- package/es/textarea/style/index.css +2 -2
- package/es/textarea/style/index.scss +3 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/theme-provider/index.d.ts +1 -0
- package/es/thinking-orb/engine/profiles.js +1 -1
- package/es/thinking-orb/presets.js +1 -1
- package/es/thinking-orb/thinking-orb.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/index.d.ts +1 -0
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/range-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/timeline/index.d.ts +2 -0
- package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/timeline/timeline.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +8 -2
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/transfer/index.d.ts +1 -0
- package/es/transfer/transfer-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +3 -5
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/node-switcher.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/node.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/transition-node-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-filter-tree-node.js +2 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +1 -1
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/trigger/interface.d.ts +4 -1
- package/es/trigger/trigger.vue_vue_type_script_setup_true_lang.js +11 -5
- package/es/typography/base.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/typography/paragraph.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/text.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/title.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography-operations.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/utils/inner-text-renderer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/style/index.css +9 -6
- package/es/upload/style/index.scss +12 -6
- package/es/upload/upload-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-picture-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/upload/upload-progress.vue_vue_type_script_setup_true_lang.js +42 -11
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/verification-code/index.d.ts +1 -0
- package/es/verification-code/verification-code.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/index.d.ts +5 -3
- package/es/watermark/watermark.vue_vue_type_script_setup_true_lang.js +4 -1
- package/json/vetur-attributes.json +4 -0
- package/json/vetur-tags.json +2 -1
- package/json/web-types.json +9 -1
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
-
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/asyncToGenerator.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, nextTick, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, unref, useAttrs, watch } from "vue";
|
|
5
5
|
import { isNumber, isString } from "es-toolkit";
|
|
6
6
|
//#region components/cropper/cropper.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -47,6 +47,8 @@ var cropper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
47
47
|
const imgRef = ref();
|
|
48
48
|
const trackedHandlers = [];
|
|
49
49
|
let cropperInstance = null;
|
|
50
|
+
let destroyed = false;
|
|
51
|
+
let fittedImageElement = null;
|
|
50
52
|
let cropperConstructorPromise = null;
|
|
51
53
|
function loadCropperConstructor() {
|
|
52
54
|
if (!cropperConstructorPromise) cropperConstructorPromise = import("cropperjs").then((module) => module.default);
|
|
@@ -79,10 +81,24 @@ var cropper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
79
81
|
function toKebabCase(key) {
|
|
80
82
|
return key.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
81
83
|
}
|
|
84
|
+
const originalAttributes = /* @__PURE__ */ new WeakMap();
|
|
82
85
|
function syncPropsToElement(el, propsObject) {
|
|
83
86
|
if (!el) return;
|
|
87
|
+
let originals = originalAttributes.get(el);
|
|
88
|
+
if (!originals) {
|
|
89
|
+
originals = /* @__PURE__ */ new Map();
|
|
90
|
+
originalAttributes.set(el, originals);
|
|
91
|
+
}
|
|
92
|
+
for (const [key, original] of originals) {
|
|
93
|
+
if (Object.hasOwn(propsObject, key)) continue;
|
|
94
|
+
const attrName = toKebabCase(key);
|
|
95
|
+
if (original === null) el.removeAttribute(attrName);
|
|
96
|
+
else el.setAttribute(attrName, original);
|
|
97
|
+
originals.delete(key);
|
|
98
|
+
}
|
|
84
99
|
for (const [key, value] of Object.entries(propsObject)) {
|
|
85
100
|
const attrName = toKebabCase(key);
|
|
101
|
+
if (!originals.has(key)) originals.set(key, el.getAttribute(attrName));
|
|
86
102
|
if (value === void 0 || value === null || value === false) {
|
|
87
103
|
el.removeAttribute(attrName);
|
|
88
104
|
continue;
|
|
@@ -111,7 +127,8 @@ var cropper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
111
127
|
return (_cropperInstance$getC4 = cropperInstance === null || cropperInstance === void 0 ? void 0 : cropperInstance.getCropperSelections()) !== null && _cropperInstance$getC4 !== void 0 ? _cropperInstance$getC4 : null;
|
|
112
128
|
}
|
|
113
129
|
function alignSelectionToImage() {
|
|
114
|
-
var _matrix$, _matrix$2;
|
|
130
|
+
var _matrix$, _matrix$2, _props$selectionX, _props$selectionY, _props$selectionWidth, _props$selectionHeigh;
|
|
131
|
+
if (!props.fitSelectionToImage) return;
|
|
115
132
|
const image = getCropperImage();
|
|
116
133
|
const selection = getCropperSelection();
|
|
117
134
|
const imageElement = imgRef.value;
|
|
@@ -125,7 +142,7 @@ var cropper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
125
142
|
if (!scaleX || !scaleY) return;
|
|
126
143
|
const renderedWidth = naturalWidth * scaleX;
|
|
127
144
|
const renderedHeight = naturalHeight * scaleY;
|
|
128
|
-
selection.$change(1, 1, (scaleX > 1 ? renderedWidth : image.clientWidth) - 2, (scaleY > 1 ? renderedHeight : image.clientHeight) - 2);
|
|
145
|
+
selection.$change((_props$selectionX = props.selectionX) !== null && _props$selectionX !== void 0 ? _props$selectionX : 1, (_props$selectionY = props.selectionY) !== null && _props$selectionY !== void 0 ? _props$selectionY : 1, (_props$selectionWidth = props.selectionWidth) !== null && _props$selectionWidth !== void 0 ? _props$selectionWidth : (scaleX > 1 ? renderedWidth : image.clientWidth) - 2, (_props$selectionHeigh = props.selectionHeight) !== null && _props$selectionHeigh !== void 0 ? _props$selectionHeigh : (scaleY > 1 ? renderedHeight : image.clientHeight) - 2);
|
|
129
146
|
}
|
|
130
147
|
function bindCanvasEvents(canvas) {
|
|
131
148
|
for (const eventName of [
|
|
@@ -162,7 +179,20 @@ var cropper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
162
179
|
if (!props.fitSelectionToImage) return;
|
|
163
180
|
const imageElement = imgRef.value;
|
|
164
181
|
if (!imageElement) return;
|
|
165
|
-
const align = () =>
|
|
182
|
+
const align = () => {
|
|
183
|
+
const image = getCropperImage();
|
|
184
|
+
if (!image) return;
|
|
185
|
+
image.$ready().then((loadedImage) => {
|
|
186
|
+
if (destroyed) return;
|
|
187
|
+
if (loadedImage && fittedImageElement !== loadedImage) {
|
|
188
|
+
fittedImageElement = loadedImage;
|
|
189
|
+
addTrackedListener(loadedImage, "load", () => {
|
|
190
|
+
nextTick(() => alignSelectionToImage());
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
nextTick(() => alignSelectionToImage());
|
|
194
|
+
}, () => void 0);
|
|
195
|
+
};
|
|
166
196
|
if (imageElement.complete && imageElement.naturalWidth > 0) {
|
|
167
197
|
align();
|
|
168
198
|
return;
|
|
@@ -198,6 +228,7 @@ var cropper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
198
228
|
selection.$change(nextX, nextY, nextWidth, nextHeight);
|
|
199
229
|
}
|
|
200
230
|
function destroy() {
|
|
231
|
+
destroyed = true;
|
|
201
232
|
for (const { el, event, fn } of trackedHandlers) el.removeEventListener(event, fn);
|
|
202
233
|
trackedHandlers.length = 0;
|
|
203
234
|
cropperInstance === null || cropperInstance === void 0 || cropperInstance.destroy();
|
|
@@ -207,7 +238,7 @@ var cropper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
207
238
|
if (!imgRef.value) return;
|
|
208
239
|
const CropperConstructor = yield loadCropperConstructor();
|
|
209
240
|
const imageElement = imgRef.value;
|
|
210
|
-
if (!imageElement) return;
|
|
241
|
+
if (destroyed || !imageElement) return;
|
|
211
242
|
const options = {};
|
|
212
243
|
if (props.template !== void 0) options.template = props.template;
|
|
213
244
|
cropperInstance = new CropperConstructor(imageElement, options);
|
|
@@ -227,6 +258,7 @@ var cropper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
227
258
|
onBeforeUnmount(() => {
|
|
228
259
|
destroy();
|
|
229
260
|
});
|
|
261
|
+
watch(() => props.fitSelectionToImage, scheduleAlignOnLoad, { flush: "post" });
|
|
230
262
|
watch(() => props.src, (value) => {
|
|
231
263
|
const cropperImage = getCropperImage();
|
|
232
264
|
if (cropperImage) cropperImage.src = value !== null && value !== void 0 ? value : "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
-
import { DisabledDate, DisabledTime, RangeDisabledDate, RangeDisabledTime } from '../interface';
|
|
2
|
+
import { DisabledDate, DisabledTime, Mode, RangeDisabledDate, RangeDisabledTime } from '../interface';
|
|
3
3
|
interface IsDisabledProps {
|
|
4
|
-
mode?:
|
|
4
|
+
mode?: Mode;
|
|
5
5
|
showTime?: boolean;
|
|
6
6
|
disabledDate?: DisabledDate | RangeDisabledDate;
|
|
7
7
|
disabledTime?: DisabledTime | RangeDisabledTime;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { getDateValue } from "../../_utils/date.js";
|
|
2
|
+
import { isDisabledDate } from "../utils/index.js";
|
|
2
3
|
import { computed, toRefs } from "vue";
|
|
3
4
|
//#region components/date-picker/hooks/use-is-disabled-date.ts
|
|
4
5
|
function useIsDisabledDate(props) {
|
|
5
6
|
const { mode, showTime, disabledDate, disabledTime, isRange } = toRefs(props);
|
|
6
7
|
const needCheckTime = computed(() => (mode === null || mode === void 0 ? void 0 : mode.value) === "date" && (showTime === null || showTime === void 0 ? void 0 : showTime.value));
|
|
7
|
-
const isDisabledDate = computed(() => {
|
|
8
|
+
const isDisabledDate$1 = computed(() => {
|
|
8
9
|
return (current, type) => {
|
|
9
10
|
if (!(disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate.value)) return false;
|
|
10
|
-
|
|
11
|
-
if (isRange === null || isRange === void 0 ? void 0 : isRange.value) return disabledDate.value(dateValue, type);
|
|
12
|
-
return disabledDate.value(dateValue);
|
|
11
|
+
return isDisabledDate(current, (isRange === null || isRange === void 0 ? void 0 : isRange.value) ? (date) => disabledDate.value(date, type) : disabledDate.value, mode === null || mode === void 0 ? void 0 : mode.value);
|
|
13
12
|
};
|
|
14
13
|
});
|
|
15
14
|
const isDisabledItem = (num, getDisabledList) => {
|
|
@@ -25,7 +24,7 @@ function useIsDisabledDate(props) {
|
|
|
25
24
|
};
|
|
26
25
|
});
|
|
27
26
|
return function isDisabled(value, type) {
|
|
28
|
-
return value && (isDisabledDate.value(value, type || "start") || isDisabledTime.value(value, type || "start"));
|
|
27
|
+
return value && (isDisabledDate$1.value(value, type || "start") || isDisabledTime.value(value, type || "start"));
|
|
29
28
|
};
|
|
30
29
|
}
|
|
31
30
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isArray } from "../../_utils/is.js";
|
|
3
3
|
import useTimePickerValue from "./use-time-picker-value.js";
|
|
4
4
|
import { computed, reactive, toRefs } from "vue";
|
|
@@ -1575,10 +1575,12 @@ declare const DatePicker: {
|
|
|
1575
1575
|
};
|
|
1576
1576
|
startOf: {
|
|
1577
1577
|
(unit: import("dayjs").OpUnitType): import("dayjs").Dayjs;
|
|
1578
|
+
(unit: import("dayjs").OpUnitType | "isoWeek"): import("dayjs").Dayjs;
|
|
1578
1579
|
(unit: import("dayjs").QUnitType | import("dayjs").OpUnitType): import("dayjs").Dayjs;
|
|
1579
1580
|
};
|
|
1580
1581
|
endOf: {
|
|
1581
1582
|
(unit: import("dayjs").OpUnitType): import("dayjs").Dayjs;
|
|
1583
|
+
(unit: import("dayjs").OpUnitType | "isoWeek"): import("dayjs").Dayjs;
|
|
1582
1584
|
(unit: import("dayjs").QUnitType | import("dayjs").OpUnitType): import("dayjs").Dayjs;
|
|
1583
1585
|
};
|
|
1584
1586
|
format: (template?: string) => string;
|
|
@@ -1596,14 +1598,17 @@ declare const DatePicker: {
|
|
|
1596
1598
|
};
|
|
1597
1599
|
isBefore: {
|
|
1598
1600
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
1601
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
1599
1602
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
1600
1603
|
};
|
|
1601
1604
|
isSame: {
|
|
1602
1605
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
1606
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
1603
1607
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
1604
1608
|
};
|
|
1605
1609
|
isAfter: {
|
|
1606
1610
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
1611
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
1607
1612
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
1608
1613
|
};
|
|
1609
1614
|
locale: {
|
|
@@ -1611,6 +1616,15 @@ declare const DatePicker: {
|
|
|
1611
1616
|
(preset: string | ILocale, object?: Partial<ILocale>): import("dayjs").Dayjs;
|
|
1612
1617
|
};
|
|
1613
1618
|
isBetween: (a: import("dayjs").ConfigType, b: import("dayjs").ConfigType, c?: import("dayjs").OpUnitType | null, d?: "()" | "[]" | "[)" | "(]") => boolean;
|
|
1619
|
+
isoWeekYear: () => number;
|
|
1620
|
+
isoWeek: {
|
|
1621
|
+
(): number;
|
|
1622
|
+
(value: number): import("dayjs").Dayjs;
|
|
1623
|
+
};
|
|
1624
|
+
isoWeekday: {
|
|
1625
|
+
(): number;
|
|
1626
|
+
(value: number): import("dayjs").Dayjs;
|
|
1627
|
+
};
|
|
1614
1628
|
quarter: {
|
|
1615
1629
|
(): number;
|
|
1616
1630
|
(quarter: number): import("dayjs").Dayjs;
|
|
@@ -2220,10 +2234,12 @@ declare const DatePicker: {
|
|
|
2220
2234
|
};
|
|
2221
2235
|
startOf: {
|
|
2222
2236
|
(unit: import("dayjs").OpUnitType): import("dayjs").Dayjs;
|
|
2237
|
+
(unit: import("dayjs").OpUnitType | "isoWeek"): import("dayjs").Dayjs;
|
|
2223
2238
|
(unit: import("dayjs").QUnitType | import("dayjs").OpUnitType): import("dayjs").Dayjs;
|
|
2224
2239
|
};
|
|
2225
2240
|
endOf: {
|
|
2226
2241
|
(unit: import("dayjs").OpUnitType): import("dayjs").Dayjs;
|
|
2242
|
+
(unit: import("dayjs").OpUnitType | "isoWeek"): import("dayjs").Dayjs;
|
|
2227
2243
|
(unit: import("dayjs").QUnitType | import("dayjs").OpUnitType): import("dayjs").Dayjs;
|
|
2228
2244
|
};
|
|
2229
2245
|
format: (template?: string) => string;
|
|
@@ -2241,14 +2257,17 @@ declare const DatePicker: {
|
|
|
2241
2257
|
};
|
|
2242
2258
|
isBefore: {
|
|
2243
2259
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
2260
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
2244
2261
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
2245
2262
|
};
|
|
2246
2263
|
isSame: {
|
|
2247
2264
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
2265
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
2248
2266
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
2249
2267
|
};
|
|
2250
2268
|
isAfter: {
|
|
2251
2269
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
2270
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
2252
2271
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
2253
2272
|
};
|
|
2254
2273
|
locale: {
|
|
@@ -2256,6 +2275,15 @@ declare const DatePicker: {
|
|
|
2256
2275
|
(preset: string | ILocale, object?: Partial<ILocale>): import("dayjs").Dayjs;
|
|
2257
2276
|
};
|
|
2258
2277
|
isBetween: (a: import("dayjs").ConfigType, b: import("dayjs").ConfigType, c?: import("dayjs").OpUnitType | null, d?: "()" | "[]" | "[)" | "(]") => boolean;
|
|
2278
|
+
isoWeekYear: () => number;
|
|
2279
|
+
isoWeek: {
|
|
2280
|
+
(): number;
|
|
2281
|
+
(value: number): import("dayjs").Dayjs;
|
|
2282
|
+
};
|
|
2283
|
+
isoWeekday: {
|
|
2284
|
+
(): number;
|
|
2285
|
+
(value: number): import("dayjs").Dayjs;
|
|
2286
|
+
};
|
|
2259
2287
|
quarter: {
|
|
2260
2288
|
(): number;
|
|
2261
2289
|
(quarter: number): import("dayjs").Dayjs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getDateValue } from "../../_utils/date.js";
|
|
3
3
|
import { isDisabledDate } from "../utils/index.js";
|
|
4
4
|
import useCellClassName from "../hooks/use-cell-class-name.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../../../_utils/global-config.js";
|
|
3
3
|
import useMergeState from "../../../_hooks/use-merge-state.js";
|
|
4
4
|
import { getDateValue, getNow, methods } from "../../../_utils/date.js";
|
|
5
5
|
import IconCalendar from "../../../icon/icon-calendar/index.js";
|
|
6
|
+
import { newArray } from "../../utils/index.js";
|
|
6
7
|
import IconClockCircle from "../../../icon/icon-clock-circle/index.js";
|
|
7
8
|
import panel_default from "../../../time-picker/panel.js";
|
|
8
9
|
import useDatePickerTransform from "../../hooks/use-inject-datepicker-transform.js";
|
|
9
|
-
import { newArray } from "../../utils/index.js";
|
|
10
10
|
import body_default from "../body.js";
|
|
11
11
|
import header_default from "../header.js";
|
|
12
12
|
import week_list_default from "../week-list.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import Button from "../../button/index.js";
|
|
3
3
|
import Link from "../../link/index.js";
|
|
4
4
|
import useDatePickerTransform from "../hooks/use-inject-datepicker-transform.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isFunction } from "../../_utils/is.js";
|
|
3
3
|
import IconLeft from "../../icon/icon-left/index.js";
|
|
4
4
|
import IconRight from "../../icon/icon-right/index.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../../../_utils/global-config.js";
|
|
3
3
|
import { dayjs } from "../../../_utils/date.js";
|
|
4
|
-
import useDatePickerTransform from "../../hooks/use-inject-datepicker-transform.js";
|
|
5
4
|
import { newArray } from "../../utils/index.js";
|
|
5
|
+
import useDatePickerTransform from "../../hooks/use-inject-datepicker-transform.js";
|
|
6
6
|
import body_default from "../body.js";
|
|
7
7
|
import header_default from "../header.js";
|
|
8
8
|
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../../../_utils/global-config.js";
|
|
3
3
|
import { dayjs } from "../../../_utils/date.js";
|
|
4
4
|
import { padStart } from "../../../_utils/pad.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isFunction } from "../../_utils/is.js";
|
|
3
3
|
import Button from "../../button/index.js";
|
|
4
4
|
import useDatePickerTransform from "../hooks/use-inject-datepicker-transform.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { useI18n } from "../../../locale/index.js";
|
|
3
3
|
import { methods } from "../../../_utils/date.js";
|
|
4
4
|
import date_default from "../date/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import useDatePickerTransform from "../hooks/use-inject-datepicker-transform.js";
|
|
3
3
|
import { Fragment, computed, createElementBlock, defineComponent, normalizeClass, openBlock, renderList, toDisplayString } from "vue";
|
|
4
4
|
//#region components/date-picker/panels/week-list.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../../../_utils/global-config.js";
|
|
3
3
|
import { dayjs } from "../../../_utils/date.js";
|
|
4
4
|
import { newArray } from "../../utils/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isFunction } from "../_utils/is.js";
|
|
3
3
|
import { getDayjsValue, getNow } from "../_utils/date.js";
|
|
4
4
|
import useHeaderValue from "./hooks/use-header-value.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isBoolean, isFunction } from "../_utils/is.js";
|
|
5
5
|
import { useI18n } from "../locale/index.js";
|
|
@@ -16,12 +16,12 @@ import IconCalendar from "../icon/icon-calendar/index.js";
|
|
|
16
16
|
import { getFormattedValue, isValidInputValue } from "../time-picker/utils/index.js";
|
|
17
17
|
import useFormat from "./hooks/use-format.js";
|
|
18
18
|
import useHeaderValue from "./hooks/use-header-value.js";
|
|
19
|
+
import { mergeValueWithTime } from "./utils/index.js";
|
|
19
20
|
import useIsDisabledDate from "./hooks/use-is-disabled-date.js";
|
|
20
21
|
import usePickerState from "./hooks/use-picker-state.js";
|
|
21
22
|
import useDatePickerTransform from "./hooks/use-provide-datepicker-transform.js";
|
|
22
23
|
import useTimePickerValue from "./hooks/use-time-picker-value.js";
|
|
23
24
|
import { useReturnValue } from "./hooks/use-value-format.js";
|
|
24
|
-
import { mergeValueWithTime } from "./utils/index.js";
|
|
25
25
|
import picker_panel_default from "./picker-panel.js";
|
|
26
26
|
import { computed, createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onUnmounted, openBlock, reactive, ref, renderSlot, resolveDynamicComponent, toRefs, unref, useSlots, watch, watchEffect, withCtx } from "vue";
|
|
27
27
|
//#region components/date-picker/picker.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -489,6 +489,11 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
489
489
|
}));
|
|
490
490
|
const inputEditable = computed(() => !(readonly === null || readonly === void 0 ? void 0 : readonly.value) && !isFunction(inputFormat.value));
|
|
491
491
|
const headerMode = ref();
|
|
492
|
+
watch(() => props.modelValue, () => {
|
|
493
|
+
setProcessValue(void 0);
|
|
494
|
+
setPreviewValue(void 0);
|
|
495
|
+
setInputValue(void 0);
|
|
496
|
+
});
|
|
492
497
|
watch(panelVisible, (newVisible) => {
|
|
493
498
|
setProcessValue(void 0);
|
|
494
499
|
setPreviewValue(void 0);
|
|
@@ -513,7 +518,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
513
518
|
if (emitOk) emit("ok", returnValue, dateValue, formattedValue);
|
|
514
519
|
}
|
|
515
520
|
function confirm(value, showPanel, emitOk) {
|
|
516
|
-
if (isDisabledDate(value)) return;
|
|
521
|
+
if (mergedDisabled.value || props.readonly || isDisabledDate(value)) return;
|
|
517
522
|
emitChange(value, emitOk);
|
|
518
523
|
setSelectedValue(value);
|
|
519
524
|
setProcessValue(void 0);
|
|
@@ -523,6 +528,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
523
528
|
if (isBoolean(showPanel)) setPanelVisible(showPanel);
|
|
524
529
|
}
|
|
525
530
|
function select(value, emitSelect) {
|
|
531
|
+
if (mergedDisabled.value || props.readonly) return;
|
|
526
532
|
setProcessValue(value);
|
|
527
533
|
setPreviewValue(void 0);
|
|
528
534
|
setInputValue(void 0);
|
|
@@ -583,6 +589,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
583
589
|
clearTimeout(clearPreviewTimer);
|
|
584
590
|
});
|
|
585
591
|
function onPanelShortcutMouseEnter(value) {
|
|
592
|
+
if (mergedDisabled.value || props.readonly) return;
|
|
586
593
|
clearTimeout(clearPreviewTimer);
|
|
587
594
|
setPreviewValue(value);
|
|
588
595
|
setInputValue(void 0);
|
|
@@ -594,6 +601,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
594
601
|
}, 100);
|
|
595
602
|
}
|
|
596
603
|
function onPanelShortcutClick(value, shortcut) {
|
|
604
|
+
if (mergedDisabled.value || props.readonly) return;
|
|
597
605
|
emit("select-shortcut", shortcut);
|
|
598
606
|
confirm(value, false);
|
|
599
607
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import picker_default from "../picker.js";
|
|
3
3
|
import { createBlock, createSlots, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, withCtx } from "vue";
|
|
4
4
|
//#region components/date-picker/pickers/date-picker.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import picker_default from "../picker.js";
|
|
3
3
|
import { createBlock, createSlots, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, withCtx } from "vue";
|
|
4
4
|
//#region components/date-picker/pickers/month-picker.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import picker_default from "../picker.js";
|
|
3
3
|
import { createBlock, createSlots, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, withCtx } from "vue";
|
|
4
4
|
//#region components/date-picker/pickers/quarter-picker.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import picker_default from "../picker.js";
|
|
3
3
|
import { createBlock, createSlots, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, withCtx } from "vue";
|
|
4
4
|
//#region components/date-picker/pickers/week-picker.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import picker_default from "../picker.js";
|
|
3
3
|
import { createBlock, createSlots, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, withCtx } from "vue";
|
|
4
4
|
//#region components/date-picker/pickers/year-picker.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isArray, isFunction } from "../_utils/is.js";
|
|
3
3
|
import { getDayjsValue } from "../_utils/date.js";
|
|
4
4
|
import { normalizeRangeValue } from "./utils/index.js";
|
|
@@ -582,10 +582,12 @@ declare var __VLS_10: {
|
|
|
582
582
|
};
|
|
583
583
|
startOf: {
|
|
584
584
|
(unit: import("dayjs").OpUnitType): Dayjs;
|
|
585
|
+
(unit: import("dayjs").OpUnitType | "isoWeek"): Dayjs;
|
|
585
586
|
(unit: import("dayjs").QUnitType | import("dayjs").OpUnitType): Dayjs;
|
|
586
587
|
};
|
|
587
588
|
endOf: {
|
|
588
589
|
(unit: import("dayjs").OpUnitType): Dayjs;
|
|
590
|
+
(unit: import("dayjs").OpUnitType | "isoWeek"): Dayjs;
|
|
589
591
|
(unit: import("dayjs").QUnitType | import("dayjs").OpUnitType): Dayjs;
|
|
590
592
|
};
|
|
591
593
|
format: (template?: string) => string;
|
|
@@ -603,14 +605,17 @@ declare var __VLS_10: {
|
|
|
603
605
|
};
|
|
604
606
|
isBefore: {
|
|
605
607
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
608
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
606
609
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
607
610
|
};
|
|
608
611
|
isSame: {
|
|
609
612
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
613
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
610
614
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
611
615
|
};
|
|
612
616
|
isAfter: {
|
|
613
617
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
618
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
614
619
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
615
620
|
};
|
|
616
621
|
locale: {
|
|
@@ -618,6 +623,15 @@ declare var __VLS_10: {
|
|
|
618
623
|
(preset: string | ILocale, object?: Partial<ILocale>): Dayjs;
|
|
619
624
|
};
|
|
620
625
|
isBetween: (a: import("dayjs").ConfigType, b: import("dayjs").ConfigType, c?: import("dayjs").OpUnitType | null, d?: "()" | "[]" | "[)" | "(]") => boolean;
|
|
626
|
+
isoWeekYear: () => number;
|
|
627
|
+
isoWeek: {
|
|
628
|
+
(): number;
|
|
629
|
+
(value: number): Dayjs;
|
|
630
|
+
};
|
|
631
|
+
isoWeekday: {
|
|
632
|
+
(): number;
|
|
633
|
+
(value: number): Dayjs;
|
|
634
|
+
};
|
|
621
635
|
quarter: {
|
|
622
636
|
(): number;
|
|
623
637
|
(quarter: number): Dayjs;
|
|
@@ -1221,10 +1235,12 @@ declare var __VLS_10: {
|
|
|
1221
1235
|
};
|
|
1222
1236
|
startOf: {
|
|
1223
1237
|
(unit: import("dayjs").OpUnitType): Dayjs;
|
|
1238
|
+
(unit: import("dayjs").OpUnitType | "isoWeek"): Dayjs;
|
|
1224
1239
|
(unit: import("dayjs").QUnitType | import("dayjs").OpUnitType): Dayjs;
|
|
1225
1240
|
};
|
|
1226
1241
|
endOf: {
|
|
1227
1242
|
(unit: import("dayjs").OpUnitType): Dayjs;
|
|
1243
|
+
(unit: import("dayjs").OpUnitType | "isoWeek"): Dayjs;
|
|
1228
1244
|
(unit: import("dayjs").QUnitType | import("dayjs").OpUnitType): Dayjs;
|
|
1229
1245
|
};
|
|
1230
1246
|
format: (template?: string) => string;
|
|
@@ -1242,14 +1258,17 @@ declare var __VLS_10: {
|
|
|
1242
1258
|
};
|
|
1243
1259
|
isBefore: {
|
|
1244
1260
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
1261
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
1245
1262
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
1246
1263
|
};
|
|
1247
1264
|
isSame: {
|
|
1248
1265
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
1266
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
1249
1267
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
1250
1268
|
};
|
|
1251
1269
|
isAfter: {
|
|
1252
1270
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType): boolean;
|
|
1271
|
+
(date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType | "isoWeek"): boolean;
|
|
1253
1272
|
(date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType): boolean;
|
|
1254
1273
|
};
|
|
1255
1274
|
locale: {
|
|
@@ -1257,6 +1276,15 @@ declare var __VLS_10: {
|
|
|
1257
1276
|
(preset: string | ILocale, object?: Partial<ILocale>): Dayjs;
|
|
1258
1277
|
};
|
|
1259
1278
|
isBetween: (a: import("dayjs").ConfigType, b: import("dayjs").ConfigType, c?: import("dayjs").OpUnitType | null, d?: "()" | "[]" | "[)" | "(]") => boolean;
|
|
1279
|
+
isoWeekYear: () => number;
|
|
1280
|
+
isoWeek: {
|
|
1281
|
+
(): number;
|
|
1282
|
+
(value: number): Dayjs;
|
|
1283
|
+
};
|
|
1284
|
+
isoWeekday: {
|
|
1285
|
+
(): number;
|
|
1286
|
+
(value: number): Dayjs;
|
|
1287
|
+
};
|
|
1260
1288
|
quarter: {
|
|
1261
1289
|
(): number;
|
|
1262
1290
|
(quarter: number): Dayjs;
|