@sdata/web-vue 4.5.0 → 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 +73 -8
- 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 +73 -8
- 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 +2 -0
- package/es/tabs/style/index.css +16 -0
- package/es/tabs/style/index.scss +15 -0
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +1 -1
- 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
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
2
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
3
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
5
5
|
import { isArray, isBoolean } from "../_utils/is.js";
|
|
6
6
|
import { useI18n } from "../locale/index.js";
|
|
@@ -15,10 +15,10 @@ import { dayjs, getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initia
|
|
|
15
15
|
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
|
+
import { isCompleteRangeValue, isValidRangeValue, mergeValueWithTime } from "./utils/index.js";
|
|
18
19
|
import useIsDisabledDate from "./hooks/use-is-disabled-date.js";
|
|
19
20
|
import useDatePickerTransform from "./hooks/use-provide-datepicker-transform.js";
|
|
20
21
|
import { getReturnRangeValue } from "./hooks/use-value-format.js";
|
|
21
|
-
import { isCompleteRangeValue, isValidRangeValue, mergeValueWithTime } from "./utils/index.js";
|
|
22
22
|
import input_range_default from "../_components/picker/input-range.js";
|
|
23
23
|
import useRangeHeaderValue from "./hooks/use-range-header-value.js";
|
|
24
24
|
import useRangePickerState from "./hooks/use-range-picker-state.js";
|
|
@@ -348,6 +348,9 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
348
348
|
}
|
|
349
349
|
const refInput = ref();
|
|
350
350
|
const focusedIndex = ref(getFocusedIndex());
|
|
351
|
+
watch(disabledArray, () => {
|
|
352
|
+
if (!triggerDisabled.value) focusedIndex.value = getFocusedIndex(focusedIndex.value);
|
|
353
|
+
});
|
|
351
354
|
const nextFocusedIndex = computed(() => {
|
|
352
355
|
const cur = focusedIndex.value;
|
|
353
356
|
const next = cur ^ 1;
|
|
@@ -452,6 +455,12 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
452
455
|
}));
|
|
453
456
|
const needConfirm = computed(() => isDateTime.value || mergedShowConfirmBtn.value);
|
|
454
457
|
const confirmBtnDisabled = computed(() => needConfirm.value && (!isCompleteRangeValue(forSelectedValue.value) || isDisabledDate(forSelectedValue.value[0], "start") || isDisabledDate(forSelectedValue.value[1], "end")));
|
|
458
|
+
watch(() => props.modelValue, () => {
|
|
459
|
+
setProcessValue(void 0);
|
|
460
|
+
setPreviewValue(void 0);
|
|
461
|
+
setInputValue(void 0);
|
|
462
|
+
resetHeaderValue();
|
|
463
|
+
}, { deep: true });
|
|
455
464
|
watch(panelVisible, (newVisible) => {
|
|
456
465
|
startHeaderMode.value = void 0;
|
|
457
466
|
endHeaderMode.value = void 0;
|
|
@@ -491,10 +500,15 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
491
500
|
if (hasTime.value && !mergedExchangeTime.value && !fixedTime.value) sortedValue = [getMergedOpValue(sortedValue[0], newValue[0]), getMergedOpValue(sortedValue[1], newValue[1])];
|
|
492
501
|
return sortedValue;
|
|
493
502
|
}
|
|
503
|
+
function changesDisabledEndpoint(value) {
|
|
504
|
+
return disabledArray.value.some((disabled, index) => disabled && isValueChange(value === null || value === void 0 ? void 0 : value[index], selectedValue.value[index]));
|
|
505
|
+
}
|
|
494
506
|
function confirm(value, showPanel, emitOk) {
|
|
495
|
-
if (
|
|
507
|
+
if (triggerDisabled.value || props.readonly) return;
|
|
496
508
|
let newValue = value ? [...value] : void 0;
|
|
497
509
|
if (isCompleteRangeValue(newValue)) newValue = getSortedDayjsArrayByExchangeTimeOrNot(newValue);
|
|
510
|
+
if (isDisabledDate(newValue === null || newValue === void 0 ? void 0 : newValue[0], "start") || isDisabledDate(newValue === null || newValue === void 0 ? void 0 : newValue[1], "end")) return;
|
|
511
|
+
if (changesDisabledEndpoint(newValue)) return;
|
|
498
512
|
emitChange(newValue, emitOk);
|
|
499
513
|
setSelectedValue(newValue || []);
|
|
500
514
|
setProcessValue(void 0);
|
|
@@ -512,9 +526,11 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
512
526
|
emitRangeEvent("select", returnValue !== null && returnValue !== void 0 ? returnValue : [], dateValue !== null && dateValue !== void 0 ? dateValue : [], formattedValue !== null && formattedValue !== void 0 ? formattedValue : []);
|
|
513
527
|
}
|
|
514
528
|
function select(value, options) {
|
|
529
|
+
if (triggerDisabled.value || props.readonly) return;
|
|
515
530
|
const { emitSelect = false, updateHeader = false } = options || {};
|
|
516
531
|
let newValue = [...value];
|
|
517
532
|
if (isCompleteRangeValue(newValue)) newValue = getSortedDayjsArrayByExchangeTimeOrNot(newValue);
|
|
533
|
+
if (changesDisabledEndpoint(newValue)) return;
|
|
518
534
|
setProcessValue(newValue);
|
|
519
535
|
setPreviewValue(void 0);
|
|
520
536
|
setInputValue(void 0);
|
|
@@ -524,7 +540,9 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
524
540
|
if (updateHeader) resetHeaderValue();
|
|
525
541
|
}
|
|
526
542
|
function preview(value, options) {
|
|
543
|
+
if (triggerDisabled.value || props.readonly) return;
|
|
527
544
|
const { updateHeader = false } = options || {};
|
|
545
|
+
if (changesDisabledEndpoint(value)) return;
|
|
528
546
|
setPreviewValue(value);
|
|
529
547
|
setInputValue(void 0);
|
|
530
548
|
if (updateHeader) resetHeaderValue();
|
|
@@ -554,6 +572,7 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
554
572
|
return isTime ? [...selectedValue.value] : [];
|
|
555
573
|
}
|
|
556
574
|
function onPanelCellClick(date) {
|
|
575
|
+
if (triggerDisabled.value || props.readonly) return;
|
|
557
576
|
const newValue = getValueToModify();
|
|
558
577
|
const mergedOpValue = getMergedOpValue(date, timePickerValue.value[focusedIndex.value]);
|
|
559
578
|
newValue[focusedIndex.value] = mergedOpValue;
|
|
@@ -566,6 +585,7 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
566
585
|
}
|
|
567
586
|
}
|
|
568
587
|
function onTimePickerSelect(time, type) {
|
|
588
|
+
if (triggerDisabled.value || props.readonly) return;
|
|
569
589
|
const updateIndex = type === "start" ? 0 : 1;
|
|
570
590
|
const mergedOpValue = getMergedOpValue(timePickerValue.value[updateIndex], time);
|
|
571
591
|
const newTimeValue = [...timePickerValue.value];
|
|
@@ -594,6 +614,7 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
594
614
|
}, 100);
|
|
595
615
|
}
|
|
596
616
|
function onPanelShortcutClick(value, shortcut) {
|
|
617
|
+
if (triggerDisabled.value || props.readonly) return;
|
|
597
618
|
emit("select-shortcut", shortcut);
|
|
598
619
|
confirm(value, false);
|
|
599
620
|
}
|
|
@@ -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 { defineComponent, renderSlot } from "vue";
|
|
4
4
|
//#region components/descriptions/descriptions-item.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 { isFunction, isObject } from "../_utils/is.js";
|
|
4
4
|
import { getAllElements, isSlotsChildren } from "../_utils/vue-utils.js";
|
|
@@ -85,7 +85,7 @@ var descriptions_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
85
85
|
currentRow[currentRow.length - 1].span += computedColumn.value - currentSpan;
|
|
86
86
|
result.push(currentRow);
|
|
87
87
|
}
|
|
88
|
-
data.forEach((item) => {
|
|
88
|
+
data.forEach((item, index) => {
|
|
89
89
|
var _ref3, _item$props;
|
|
90
90
|
const itemSpan = Math.min((_ref3 = isVNode(item) ? (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.span : item.span) !== null && _ref3 !== void 0 ? _ref3 : 1, computedColumn.value);
|
|
91
91
|
if (currentSpan + itemSpan > computedColumn.value) {
|
|
@@ -95,7 +95,8 @@ var descriptions_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
95
95
|
}
|
|
96
96
|
currentRow.push({
|
|
97
97
|
data: item,
|
|
98
|
-
span: itemSpan
|
|
98
|
+
span: itemSpan,
|
|
99
|
+
index
|
|
99
100
|
});
|
|
100
101
|
currentSpan += itemSpan;
|
|
101
102
|
});
|
|
@@ -153,13 +154,13 @@ var descriptions_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
153
154
|
style: normalizeStyle(mergedLabelStyle.value)
|
|
154
155
|
}, [createVNode(unref(ReuseLabel), {
|
|
155
156
|
item: item.data,
|
|
156
|
-
index:
|
|
157
|
+
index: item.index
|
|
157
158
|
}, null, 8, ["item", "index"])], 6), createElementVNode("div", {
|
|
158
159
|
class: normalizeClass([`${unref(prefixCls)}-item-value`, `${unref(prefixCls)}-item-value-inline`]),
|
|
159
160
|
style: normalizeStyle(mergedValueStyle.value)
|
|
160
161
|
}, [createVNode(unref(ReuseValue), {
|
|
161
162
|
item: item.data,
|
|
162
|
-
index:
|
|
163
|
+
index: item.index
|
|
163
164
|
}, null, 8, ["item", "index"])], 6)], 10, _hoisted_1);
|
|
164
165
|
}), 128))], 2)) : __props.layout === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("tr", { class: normalizeClass(`${unref(prefixCls)}-row`) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(row, (item, itemIndex) => {
|
|
165
166
|
return openBlock(), createElementBlock("td", {
|
|
@@ -169,7 +170,7 @@ var descriptions_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
169
170
|
colspan: item.span
|
|
170
171
|
}, [createVNode(unref(ReuseLabel), {
|
|
171
172
|
item: item.data,
|
|
172
|
-
index:
|
|
173
|
+
index: item.index
|
|
173
174
|
}, null, 8, ["item", "index"])], 14, _hoisted_2);
|
|
174
175
|
}), 128))], 2), createElementVNode("tr", { class: normalizeClass(`${unref(prefixCls)}-row`) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(row, (item, itemIndex) => {
|
|
175
176
|
return openBlock(), createElementBlock("td", {
|
|
@@ -179,7 +180,7 @@ var descriptions_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
179
180
|
colspan: item.span
|
|
180
181
|
}, [createVNode(unref(ReuseValue), {
|
|
181
182
|
item: item.data,
|
|
182
|
-
index:
|
|
183
|
+
index: item.index
|
|
183
184
|
}, null, 8, ["item", "index"])], 14, _hoisted_3);
|
|
184
185
|
}), 128))], 2)], 64)) : (openBlock(), createElementBlock("tr", {
|
|
185
186
|
key: 2,
|
|
@@ -190,14 +191,14 @@ var descriptions_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
190
191
|
style: normalizeStyle(mergedLabelStyle.value)
|
|
191
192
|
}, [createVNode(unref(ReuseLabel), {
|
|
192
193
|
item: item.data,
|
|
193
|
-
index:
|
|
194
|
+
index: item.index
|
|
194
195
|
}, null, 8, ["item", "index"])], 6), createElementVNode("td", {
|
|
195
196
|
class: normalizeClass([`${unref(prefixCls)}-item-value`, `${unref(prefixCls)}-item-value-block`]),
|
|
196
197
|
style: normalizeStyle(mergedValueStyle.value),
|
|
197
198
|
colspan: item.span * 2 - 1
|
|
198
199
|
}, [createVNode(unref(ReuseValue), {
|
|
199
200
|
item: item.data,
|
|
200
|
-
index:
|
|
201
|
+
index: item.index
|
|
201
202
|
}, null, 8, ["item", "index"])], 14, _hoisted_4)], 64);
|
|
202
203
|
}), 128))], 2))], 64);
|
|
203
204
|
}), 128))])], 2)], 2)], 16)
|
|
@@ -1,8 +1,9 @@
|
|
|
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 { isNumber, isUndefined } from "../_utils/is.js";
|
|
4
4
|
import { computed, createCommentVNode, createElementBlock, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, unref } from "vue";
|
|
5
5
|
//#region components/divider/divider.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = ["aria-orientation"];
|
|
6
7
|
var divider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Divider" }), {}, {
|
|
7
8
|
__name: "divider",
|
|
8
9
|
props: {
|
|
@@ -17,7 +18,7 @@ var divider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
17
18
|
const isHorizontal = computed(() => __props.direction === "horizontal");
|
|
18
19
|
const mergedStyles = computed(() => {
|
|
19
20
|
const styles = {};
|
|
20
|
-
if (__props.size) {
|
|
21
|
+
if (!isUndefined(__props.size)) {
|
|
21
22
|
if (isHorizontal.value) styles.borderBottomWidth = `${__props.size}px`;
|
|
22
23
|
else styles.borderLeftWidth = `${__props.size}px`;
|
|
23
24
|
}
|
|
@@ -34,6 +35,7 @@ var divider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
34
35
|
return (_ctx, _cache) => {
|
|
35
36
|
return openBlock(), createElementBlock("div", {
|
|
36
37
|
role: "separator",
|
|
38
|
+
"aria-orientation": __props.direction,
|
|
37
39
|
class: normalizeClass([
|
|
38
40
|
unref(prefixCls),
|
|
39
41
|
`${unref(prefixCls)}-${__props.direction}`,
|
|
@@ -43,7 +45,7 @@ var divider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
43
45
|
}, [_ctx.$slots.default && __props.direction === "horizontal" ? (openBlock(), createElementBlock("span", {
|
|
44
46
|
key: 0,
|
|
45
47
|
class: normalizeClass([`${unref(prefixCls)}-text`, `${unref(prefixCls)}-text-${__props.orientation}`])
|
|
46
|
-
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true)],
|
|
48
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true)], 14, _hoisted_1);
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
}));
|
|
@@ -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 { isBoolean, isFunction, isNumber, isPromise } from "../_utils/is.js";
|
|
4
4
|
import { off, on } from "../_utils/dom.js";
|
|
@@ -6,7 +6,7 @@ import icon_hover_default from "../_components/icon-hover.js";
|
|
|
6
6
|
import { KEYBOARD_KEY, onActivate } from "../_utils/keyboard.js";
|
|
7
7
|
import IconClose from "../icon/icon-close/index.js";
|
|
8
8
|
import { useI18n } from "../locale/index.js";
|
|
9
|
-
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.
|
|
9
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/asyncToGenerator.js";
|
|
10
10
|
import client_only_default from "../_components/client-only.js";
|
|
11
11
|
import usePopupManager from "../_hooks/use-popup-manager.js";
|
|
12
12
|
import { useTeleportContainer } from "../_hooks/use-teleport-container.js";
|
|
@@ -262,7 +262,7 @@ var drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
262
262
|
const drawerRef = ref();
|
|
263
263
|
const titleId = `sd-drawer-title-${getCurrentInstance().uid}`;
|
|
264
264
|
const bodyId = `sd-drawer-body-${getCurrentInstance().uid}`;
|
|
265
|
-
const hasTitle =
|
|
265
|
+
const hasTitle = () => mergedHeader.value && !slots.header && (Boolean(props.title) || Boolean(slots.title));
|
|
266
266
|
const { activate: activateFocusTrap, deactivate: deactivateFocusTrap } = useFocusTrap(drawerRef, { initialFocus: (c) => getFocusableElements(c).find((el) => !el.closest(".sd-drawer-close-btn")) });
|
|
267
267
|
const { mergedValue: mergedPlacement } = useConfigProviderProp(placement, {
|
|
268
268
|
propNames: ["placement"],
|
|
@@ -398,38 +398,35 @@ var drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
398
398
|
off(document.documentElement, "keydown", handleGlobalKeyDown);
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
|
-
const { zIndex, isLastDialog } = usePopupManager("dialog", { visible: computedVisible });
|
|
401
|
+
const { zIndex, isLastDialog, close: releasePopup } = usePopupManager("dialog", { visible: computedVisible });
|
|
402
402
|
const isFixed = computed(() => {
|
|
403
403
|
return (containerRef === null || containerRef === void 0 ? void 0 : containerRef.value) === document.body;
|
|
404
404
|
});
|
|
405
405
|
let promiseNumber = 0;
|
|
406
|
-
const
|
|
406
|
+
const invalidatePendingOk = () => {
|
|
407
407
|
promiseNumber++;
|
|
408
408
|
if (_okLoading.value) _okLoading.value = false;
|
|
409
|
+
};
|
|
410
|
+
const close = () => {
|
|
411
|
+
invalidatePendingOk();
|
|
409
412
|
_visible.value = false;
|
|
410
413
|
emit("update:visible", false);
|
|
411
414
|
};
|
|
412
415
|
const handleOk = function() {
|
|
413
|
-
var
|
|
416
|
+
var _ref = _asyncToGenerator(function* (e) {
|
|
414
417
|
const currentPromiseNumber = promiseNumber;
|
|
415
|
-
const closed = yield new Promise(
|
|
416
|
-
|
|
418
|
+
const closed = yield new Promise((resolve) => {
|
|
419
|
+
try {
|
|
417
420
|
if (isFunction(props.onBeforeOk)) {
|
|
418
|
-
|
|
421
|
+
const result = props.onBeforeOk((closed = true) => resolve(closed));
|
|
419
422
|
if (isPromise(result) || !isBoolean(result)) _okLoading.value = true;
|
|
420
|
-
if (isPromise(result))
|
|
421
|
-
|
|
422
|
-
result = (_await$result = yield result) !== null && _await$result !== void 0 ? _await$result : true;
|
|
423
|
-
} catch (_unused) {
|
|
424
|
-
result = false;
|
|
425
|
-
}
|
|
426
|
-
if (isBoolean(result)) resolve(result);
|
|
423
|
+
if (isPromise(result)) result.then((value) => resolve(value !== null && value !== void 0 ? value : true), () => resolve(false));
|
|
424
|
+
else if (isBoolean(result)) resolve(result);
|
|
427
425
|
} else resolve(true);
|
|
428
|
-
})
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
}());
|
|
426
|
+
} catch (_unused) {
|
|
427
|
+
resolve(false);
|
|
428
|
+
}
|
|
429
|
+
});
|
|
433
430
|
if (currentPromiseNumber === promiseNumber) {
|
|
434
431
|
if (closed) {
|
|
435
432
|
emit("ok", e);
|
|
@@ -437,8 +434,8 @@ var drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
437
434
|
} else if (_okLoading.value) _okLoading.value = false;
|
|
438
435
|
}
|
|
439
436
|
});
|
|
440
|
-
return function handleOk(
|
|
441
|
-
return
|
|
437
|
+
return function handleOk(_x) {
|
|
438
|
+
return _ref.apply(this, arguments);
|
|
442
439
|
};
|
|
443
440
|
}();
|
|
444
441
|
const handleCancel = (e) => {
|
|
@@ -469,6 +466,8 @@ var drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
469
466
|
}
|
|
470
467
|
});
|
|
471
468
|
onBeforeUnmount(() => {
|
|
469
|
+
invalidatePendingOk();
|
|
470
|
+
releasePopup();
|
|
472
471
|
resetOverflow();
|
|
473
472
|
removeGlobalKeyDownListener();
|
|
474
473
|
});
|
|
@@ -481,11 +480,16 @@ var drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
481
480
|
addGlobalKeyDownListener();
|
|
482
481
|
nextTick(() => activateFocusTrap());
|
|
483
482
|
} else {
|
|
483
|
+
invalidatePendingOk();
|
|
484
484
|
emit("beforeClose");
|
|
485
485
|
removeGlobalKeyDownListener();
|
|
486
486
|
deactivateFocusTrap();
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
|
+
watch(mergedEscToClose, (enabled) => {
|
|
490
|
+
if (enabled && computedVisible.value) addGlobalKeyDownListener();
|
|
491
|
+
else removeGlobalKeyDownListener();
|
|
492
|
+
});
|
|
489
493
|
const style = computed(() => {
|
|
490
494
|
const style = _objectSpread2({ [mergedPlacement.value]: 0 }, props.drawerStyle);
|
|
491
495
|
if (["right", "left"].includes(mergedPlacement.value)) style.width = isNumber(mergedWidth.value) ? `${mergedWidth.value}px` : mergedWidth.value;
|
|
@@ -527,7 +531,7 @@ var drawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
527
531
|
style: normalizeStyle(style.value),
|
|
528
532
|
role: "dialog",
|
|
529
533
|
"aria-modal": "true",
|
|
530
|
-
"aria-labelledby": hasTitle
|
|
534
|
+
"aria-labelledby": hasTitle() ? titleId : void 0,
|
|
531
535
|
"aria-describedby": bodyId,
|
|
532
536
|
tabindex: "-1"
|
|
533
537
|
}, [
|
package/es/drawer/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 { getComponentPrefix, setGlobalConfig } from "../_utils/global-config.js";
|
|
3
3
|
import { isFunction } from "../_utils/is.js";
|
|
4
4
|
import { getSlotFunction } from "../_utils/vue-utils.js";
|
|
5
5
|
import { getOverlay } from "../_utils/dom.js";
|
|
6
|
-
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.
|
|
6
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/asyncToGenerator.js";
|
|
7
7
|
import { omit } from "../_utils/omit.js";
|
|
8
8
|
import drawer_default from "./drawer.js";
|
|
9
9
|
import { createVNode, nextTick, render } 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 button_group_default from "../button/button-group.js";
|
|
4
4
|
import Button from "../button/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 { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { Fragment, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref } from "vue";
|
|
4
4
|
//#region components/dropdown/dropdown-group.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 { dropdownInjectionKey } from "./context.js";
|
|
4
4
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, normalizeClass, openBlock, ref, renderSlot, unref } from "vue";
|
|
@@ -38,15 +38,12 @@ var dropdown_option_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
38
38
|
*/
|
|
39
39
|
const prefixCls = getPrefixCls("dropdown-option");
|
|
40
40
|
const liRef = ref();
|
|
41
|
-
const computedValue = computed(() => {
|
|
42
|
-
var _ref, _props$value, _liRef$value;
|
|
43
|
-
return (_ref = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : (_liRef$value = liRef.value) === null || _liRef$value === void 0 ? void 0 : _liRef$value.textContent) !== null && _ref !== void 0 ? _ref : void 0;
|
|
44
|
-
});
|
|
45
41
|
const dropdownCtx = !props.uninjectContext ? inject(dropdownInjectionKey, void 0) : void 0;
|
|
46
42
|
const handleClick = (ev) => {
|
|
47
43
|
if (!props.disabled) {
|
|
44
|
+
var _ref, _props$value, _liRef$value;
|
|
48
45
|
emit("click", ev);
|
|
49
|
-
dropdownCtx === null || dropdownCtx === void 0 || dropdownCtx.onOptionClick(
|
|
46
|
+
dropdownCtx === null || dropdownCtx === void 0 || dropdownCtx.onOptionClick((_ref = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : (_liRef$value = liRef.value) === null || _liRef$value === void 0 ? void 0 : _liRef$value.textContent) !== null && _ref !== void 0 ? _ref : void 0, ev);
|
|
50
47
|
}
|
|
51
48
|
};
|
|
52
49
|
const cls = computed(() => [prefixCls, {
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { isNumber } from "../_utils/is.js";
|
|
4
4
|
import { KEYBOARD_KEY } from "../_utils/keyboard.js";
|
|
5
5
|
import Empty from "../empty/index.js";
|
|
6
6
|
import Scrollbar from "../scrollbar/index.js";
|
|
7
7
|
import { dropdownInjectionKey } from "./context.js";
|
|
8
|
-
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, unref,
|
|
8
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, unref, withCtx } from "vue";
|
|
9
9
|
//#region components/dropdown/dropdown-panel.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var dropdown_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "DropdownPanel" }), {}, {
|
|
11
11
|
__name: "dropdown-panel",
|
|
@@ -33,7 +33,6 @@ var dropdown_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
33
33
|
setup(__props, { emit: __emit }) {
|
|
34
34
|
const props = __props;
|
|
35
35
|
const emit = __emit;
|
|
36
|
-
const slots = useSlots();
|
|
37
36
|
const prefixCls = getPrefixCls("dropdown");
|
|
38
37
|
const dropdownCtx = inject(dropdownInjectionKey, {});
|
|
39
38
|
const wrapperRef = ref();
|
|
@@ -60,6 +59,8 @@ var dropdown_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
60
59
|
(_items$target = items[target]) === null || _items$target === void 0 || _items$target.focus();
|
|
61
60
|
};
|
|
62
61
|
const handleKeydown = (ev) => {
|
|
62
|
+
const target = ev.target;
|
|
63
|
+
if (target instanceof HTMLElement && (target.isContentEditable || target.closest("input, textarea, select"))) return;
|
|
63
64
|
switch (ev.key) {
|
|
64
65
|
case KEYBOARD_KEY.ARROW_DOWN:
|
|
65
66
|
ev.preventDefault();
|
|
@@ -87,16 +88,18 @@ var dropdown_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
87
88
|
const trigger = props.trigger;
|
|
88
89
|
return Array.isArray(trigger) ? trigger.includes("hover") : trigger === "hover";
|
|
89
90
|
});
|
|
91
|
+
let focusFrame = 0;
|
|
92
|
+
onBeforeUnmount(() => cancelAnimationFrame(focusFrame));
|
|
90
93
|
onMounted(() => {
|
|
91
94
|
if (isHoverTrigger.value) return;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
const focusFirst = () => {
|
|
96
|
+
var _items$;
|
|
97
|
+
const target = (_items$ = getMenuitems()[0]) !== null && _items$ !== void 0 ? _items$ : listRef.value;
|
|
98
|
+
if (!target) return;
|
|
99
|
+
target.focus();
|
|
100
|
+
if (document.activeElement !== target) focusFrame = requestAnimationFrame(focusFirst);
|
|
101
|
+
};
|
|
102
|
+
nextTick(focusFirst);
|
|
100
103
|
});
|
|
101
104
|
const style = computed(() => {
|
|
102
105
|
if (isNumber(dropdownCtx.popupMaxHeight)) return { maxHeight: `${dropdownCtx.popupMaxHeight}px` };
|
|
@@ -105,9 +108,8 @@ var dropdown_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
105
108
|
overflowY: "hidden"
|
|
106
109
|
};
|
|
107
110
|
});
|
|
108
|
-
const cls = computed(() => [prefixCls, { [`${prefixCls}-has-footer`]: Boolean(slots.footer) }]);
|
|
109
111
|
return (_ctx, _cache) => {
|
|
110
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(
|
|
112
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([unref(prefixCls), { [`${unref(prefixCls)}-has-footer`]: Boolean(_ctx.$slots.footer) }]) }, [
|
|
111
113
|
__props.isEmpty ? (openBlock(), createElementBlock("div", {
|
|
112
114
|
key: 0,
|
|
113
115
|
class: normalizeClass(`${unref(prefixCls)}-empty`)
|
|
@@ -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 Trigger from "../trigger/index.js";
|
|
4
4
|
import IconRight from "../icon/icon-right/index.js";
|
|
@@ -122,18 +122,22 @@ var dropdown_submenu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
122
122
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
123
123
|
key: "0"
|
|
124
124
|
} : void 0]), 1032, ["class", "trigger"])]),
|
|
125
|
-
default: withCtx(() =>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
125
|
+
default: withCtx(() => {
|
|
126
|
+
var _props$optionProps;
|
|
127
|
+
return [createVNode(dropdown_option_default, mergeProps(__props.optionProps, {
|
|
128
|
+
disabled: __props.disabled || ((_props$optionProps = __props.optionProps) === null || _props$optionProps === void 0 ? void 0 : _props$optionProps.disabled),
|
|
129
|
+
active: unref(computedPopupVisible),
|
|
130
|
+
"uninject-context": ""
|
|
131
|
+
}), createSlots({
|
|
132
|
+
suffix: withCtx(() => [renderSlot(_ctx.$slots, "suffix", {}, () => [createVNode(unref(IconRight))])]),
|
|
133
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
134
|
+
_: 2
|
|
135
|
+
}, [_ctx.$slots.icon ? {
|
|
136
|
+
name: "icon",
|
|
137
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
138
|
+
key: "0"
|
|
139
|
+
} : void 0]), 1040, ["disabled", "active"])];
|
|
140
|
+
}),
|
|
137
141
|
_: 3
|
|
138
142
|
}, 8, [
|
|
139
143
|
"popup-visible",
|
|
@@ -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 Trigger from "../trigger/index.js";
|
|
4
4
|
import { useTrigger } from "../_hooks/use-trigger.js";
|
|
@@ -5,6 +5,7 @@ type __VLS_Slots = {
|
|
|
5
5
|
tooltip?: () => VNode[];
|
|
6
6
|
};
|
|
7
7
|
declare function waitForMeasurement(): Promise<void>;
|
|
8
|
+
declare function handleClick(event?: MouseEvent): void;
|
|
8
9
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
10
|
lineClamp: {
|
|
10
11
|
type: PropType<number | string>;
|
|
@@ -21,6 +22,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
21
22
|
}>, {
|
|
22
23
|
triggerRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
23
24
|
waitForMeasurement: typeof waitForMeasurement;
|
|
25
|
+
toggleExpanded: typeof handleClick;
|
|
24
26
|
readonly triggerElement: HTMLElement | undefined;
|
|
25
27
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
28
|
lineClamp: {
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { isObject } from "../_utils/is.js";
|
|
4
|
-
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.
|
|
4
|
+
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectWithoutProperties.js";
|
|
5
5
|
import resize_observer_v2_default from "../_components/resize-observer-v2.js";
|
|
6
6
|
import { RichLineClamp } from "../clamp/index.js";
|
|
7
7
|
import Tooltip from "../tooltip/index.js";
|
|
8
|
-
import { computed, createBlock, createElementBlock, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, onUpdated, openBlock, renderSlot, resolveDynamicComponent, shallowRef, unref, watch, withCtx } from "vue";
|
|
8
|
+
import { computed, createBlock, createElementBlock, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, resolveDynamicComponent, shallowRef, unref, watch, withCtx } from "vue";
|
|
9
9
|
//#region components/ellipsis/ellipsis.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var _excluded = ["disabled"];
|
|
11
11
|
var INTERACTIVE_SELECTOR = "a,button,input,textarea,select,[role=\"button\"]";
|
|
@@ -121,18 +121,18 @@ var ellipsis_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
121
121
|
if (nextPadding !== measurementPadding.value) measurementPadding.value = nextPadding;
|
|
122
122
|
}
|
|
123
123
|
let measurementSettled = false;
|
|
124
|
+
let measurementTimer = 0;
|
|
124
125
|
let measurementWaiters = [];
|
|
125
126
|
function flushMeasurementWaiters() {
|
|
127
|
+
measurementSettled = true;
|
|
128
|
+
window.clearTimeout(measurementTimer);
|
|
126
129
|
const waiters = measurementWaiters;
|
|
127
130
|
measurementWaiters = [];
|
|
128
131
|
waiters.forEach((resolve) => resolve());
|
|
129
132
|
}
|
|
130
133
|
function handleClampChange(clamped) {
|
|
131
134
|
isEllipsis.value = clamped;
|
|
132
|
-
if (!measurementSettled && measurementHtml.value !== "")
|
|
133
|
-
measurementSettled = true;
|
|
134
|
-
flushMeasurementWaiters();
|
|
135
|
-
}
|
|
135
|
+
if (!measurementSettled && measurementHtml.value !== "") flushMeasurementWaiters();
|
|
136
136
|
}
|
|
137
137
|
function waitForMeasurement() {
|
|
138
138
|
if (measurementSettled) return Promise.resolve();
|
|
@@ -149,23 +149,38 @@ var ellipsis_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
149
149
|
if (isEllipsis.value || expanded.value) expanded.value = !expanded.value;
|
|
150
150
|
}
|
|
151
151
|
function handleKeydown(event) {
|
|
152
|
+
const target = event.target;
|
|
153
|
+
const interactiveElement = target instanceof Element ? target.closest(INTERACTIVE_SELECTOR) : null;
|
|
154
|
+
if (interactiveElement && interactiveElement !== triggerRef.value) return;
|
|
152
155
|
if (isExpandable.value && (event.key === "Enter" || event.key === " ")) {
|
|
153
156
|
event.preventDefault();
|
|
154
157
|
handleClick();
|
|
155
158
|
}
|
|
156
159
|
}
|
|
160
|
+
watch(triggerRef, (element, _previous, onCleanup) => {
|
|
161
|
+
if (!element) return;
|
|
162
|
+
const observer = new MutationObserver(syncMeasurement);
|
|
163
|
+
observer.observe(element, {
|
|
164
|
+
childList: true,
|
|
165
|
+
subtree: true,
|
|
166
|
+
characterData: true
|
|
167
|
+
});
|
|
168
|
+
onCleanup(() => observer.disconnect());
|
|
169
|
+
});
|
|
157
170
|
watch(() => props.lineClamp, () => {
|
|
158
171
|
expanded.value = false;
|
|
159
172
|
nextTick(syncMeasurement);
|
|
160
173
|
});
|
|
161
174
|
onMounted(() => {
|
|
162
175
|
nextTick(syncMeasurement);
|
|
163
|
-
window.setTimeout(flushMeasurementWaiters, 200);
|
|
176
|
+
measurementTimer = window.setTimeout(flushMeasurementWaiters, 200);
|
|
164
177
|
});
|
|
178
|
+
onBeforeUnmount(flushMeasurementWaiters);
|
|
165
179
|
onUpdated(() => void nextTick(syncMeasurement));
|
|
166
180
|
__expose({
|
|
167
181
|
triggerRef,
|
|
168
182
|
waitForMeasurement,
|
|
183
|
+
toggleExpanded: handleClick,
|
|
169
184
|
get triggerElement() {
|
|
170
185
|
return triggerRef.value;
|
|
171
186
|
}
|
package/es/ellipsis/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare const Ellipsis: {
|
|
|
21
21
|
}>> & Readonly<{}>, {
|
|
22
22
|
triggerRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
23
23
|
waitForMeasurement: () => Promise<void>;
|
|
24
|
+
toggleExpanded: (event?: MouseEvent) => void;
|
|
24
25
|
readonly triggerElement: HTMLElement | undefined;
|
|
25
26
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
26
27
|
tooltip: boolean | EllipsisTooltipProps;
|
|
@@ -49,6 +50,7 @@ declare const Ellipsis: {
|
|
|
49
50
|
}>> & Readonly<{}>, {
|
|
50
51
|
triggerRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
51
52
|
waitForMeasurement: () => Promise<void>;
|
|
53
|
+
toggleExpanded: (event?: MouseEvent) => void;
|
|
52
54
|
readonly triggerElement: HTMLElement | undefined;
|
|
53
55
|
}, {}, {}, {}, {
|
|
54
56
|
tooltip: boolean | EllipsisTooltipProps;
|
|
@@ -74,6 +76,7 @@ declare const Ellipsis: {
|
|
|
74
76
|
}>> & Readonly<{}>, {
|
|
75
77
|
triggerRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
76
78
|
waitForMeasurement: () => Promise<void>;
|
|
79
|
+
toggleExpanded: (event?: MouseEvent) => void;
|
|
77
80
|
readonly triggerElement: HTMLElement | undefined;
|
|
78
81
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
79
82
|
tooltip: boolean | EllipsisTooltipProps;
|