@sdata/web-vue 3.17.0 → 3.19.0
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 +478 -0
- package/dist/sd.min.css +2 -2
- package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/icon-hover.vue.d.ts +1 -1
- package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/input-label/input-label.d.ts +13 -1
- package/es/_components/input-label/input-label.js +35 -5
- package/es/_components/input-label/style/index.css +6 -0
- package/es/_components/input-label/style/input-label.scss +8 -0
- package/es/_components/picker/input-range.vue.d.ts +24 -1
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +43 -7
- package/es/_components/picker/input.vue.d.ts +24 -1
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +32 -5
- package/es/_components/picker/style/index.scss +8 -0
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/select-view/select-view.d.ts +15 -3
- package/es/_components/select-view/select-view.js +10 -1
- package/es/_components/select-view/style/index.css +12 -0
- package/es/_components/transition/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/virtual-list/virtual-list.vue.d.ts +6 -6
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/_hooks/use-cursor.js +4 -2
- package/es/_hooks/use-fit-width.d.ts +22 -0
- package/es/_hooks/use-fit-width.js +76 -0
- package/es/_hooks/use-form-item.d.ts +1 -1
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_hooks/use-size.d.ts +1 -1
- package/es/_utils/color.js +2 -2
- package/es/_utils/date.js +20 -20
- package/es/_utils/floating.d.ts +8 -0
- package/es/_utils/floating.js +54 -0
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/is-equal.js +1 -1
- package/es/_utils/keyboard.js +3 -2
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +2 -2
- package/es/_utils/virtual-dropdown.js +2 -2
- package/es/_utils/vue-utils.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/asyncToGenerator.js +2 -2
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/defineProperty.js +3 -3
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/extends.js +2 -2
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectDestructuringEmpty.js +2 -2
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectSpread2.js +3 -3
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutProperties.js +3 -3
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/toPrimitive.js +3 -3
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.js +9 -0
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/typeof.js +2 -2
- package/es/affix/affix.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +1 -1
- package/es/anchor/anchor.vue.d.ts +1 -1
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/anchor/index.d.ts +3 -3
- package/es/anchor/index.js +1 -1
- package/es/auto-complete/auto-complete.d.ts +27 -2
- package/es/auto-complete/auto-complete.js +52 -27
- package/es/auto-complete/index.d.ts +45 -6
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/avatar/index.js +1 -1
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/badge/badge.d.ts +1 -1
- package/es/badge/badge.js +2 -2
- package/es/badge/index.d.ts +3 -3
- package/es/basic-crud-table/basic-crud-modal.vue.d.ts +6 -6
- package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/basic-crud-table/basic-crud-table.vue.d.ts +20 -20
- package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/basic-crud-table/index.d.ts +59 -59
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/border-beam/styles.js +1 -1
- package/es/breadcrumb/index.js +1 -1
- package/es/button/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/button/button.vue.d.ts +2 -2
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/button/index.d.ts +6 -6
- package/es/button/index.js +1 -1
- package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +6 -11
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +3 -12
- package/es/calendar/components/header.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -6
- package/es/calendar/components/time-column.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/card/card-grid.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/card.d.ts +3 -3
- package/es/card/index.d.ts +6 -6
- package/es/card/index.js +1 -1
- package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel-indicator.vue.d.ts +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.js +1 -1
- package/es/carousel/index.js +1 -1
- package/es/cascader/base-cascader-panel.d.ts +1 -1
- package/es/cascader/cascader-option.d.ts +1 -1
- package/es/cascader/cascader-panel.vue.d.ts +1 -1
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cascader/cascader-search-panel.d.ts +1 -1
- package/es/cascader/cascader.vue.d.ts +7 -5
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +150 -132
- package/es/cascader/index.js +1 -1
- package/es/cascader/types.d.ts +4 -1
- package/es/checkbox/checkbox.d.ts +3 -3
- package/es/checkbox/index.d.ts +6 -6
- package/es/checkbox/index.js +1 -1
- package/es/collapse/collapse-item.d.ts +3 -3
- package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/index.d.ts +3 -3
- package/es/collapse/index.js +1 -1
- package/es/color-picker/color-picker.d.ts +9 -2
- package/es/color-picker/color-picker.js +15 -10
- package/es/color-picker/index.d.ts +15 -6
- package/es/color-picker/panel.js +7 -4
- package/es/color-picker/utils.js +3 -2
- package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/components.d.ts +4 -0
- package/es/config-provider/config-provider.vue.d.ts +1 -1
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/index.d.ts +3 -3
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/config-provider/theme.js +3 -3
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/date-picker/hooks/use-format.js +1 -1
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/hooks/use-value-format.js +1 -1
- package/es/date-picker/index.d.ts +96 -23
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/interface.d.ts +2 -1
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +4 -6
- package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +1 -1
- 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 +5 -3
- 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.d.ts +1 -1
- package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker.vue.d.ts +46 -17
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +40 -6
- package/es/date-picker/pickers/date-picker.d.ts +18 -0
- package/es/date-picker/pickers/date-picker.js +16 -0
- package/es/date-picker/range-picker-panel.vue.d.ts +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 +46 -17
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +35 -5
- package/es/date-picker/style/index.css +6 -0
- package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/descriptions/descriptions.d.ts +3 -3
- package/es/descriptions/descriptions.js +1 -1
- package/es/descriptions/index.d.ts +9 -9
- package/es/descriptions/index.js +1 -1
- package/es/divider/divider.d.ts +1 -1
- package/es/divider/index.d.ts +3 -3
- package/es/drawer/drawer.vue.d.ts +4 -4
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/drawer/index.d.ts +11 -11
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue.d.ts +9 -2
- package/es/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-option.vue.d.ts +1 -1
- package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-submenu.vue.d.ts +9 -2
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/dropdown.vue.d.ts +8 -1
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/index.d.ts +48 -21
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/interface.d.ts +3 -0
- package/es/ellipsis/ellipsis.vue.d.ts +1 -1
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/ellipsis/index.d.ts +6 -6
- package/es/ellipsis/performant-ellipsis.vue.d.ts +1 -1
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/file-previewer/use-pdf-js.js +2 -2
- 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.d.ts +1 -1
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/form/form.vue.d.ts +1 -1
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/form/index.d.ts +9 -9
- package/es/form/index.js +1 -1
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-row.vue.d.ts +3 -3
- package/es/grid/grid-row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/index.d.ts +9 -9
- package/es/grid/index.js +1 -1
- package/es/icon/icon-arrow-up/icon-arrow-up.js +5 -0
- package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-arrow-up/index.js +9 -0
- package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-mute/icon-mute.js +5 -0
- package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-mute/index.js +9 -0
- package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +1 -1
- package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-voice/icon-voice.js +5 -0
- package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-voice/index.js +9 -0
- package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon-component/icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon.js +6 -6
- package/es/image/hooks/use-image-drag.js +3 -1
- 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 +3 -3
- package/es/image/index.js +1 -1
- package/es/image/preview-action.d.ts +6 -6
- package/es/image/preview-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-group.vue.d.ts +1 -1
- package/es/image/preview-group.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +3 -2
- package/es/index.css +478 -0
- package/es/index.d.ts +8 -3
- package/es/index.js +6 -2
- package/es/index.scss +2 -0
- package/es/input/index.d.ts +99 -6
- package/es/input/index.js +1 -1
- package/es/input/input-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input/input-password.vue.d.ts +18 -0
- package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +25 -3
- package/es/input/input-search.d.ts +18 -0
- package/es/input/input-search.js +20 -2
- package/es/input/input.d.ts +29 -2
- package/es/input/input.js +46 -4
- package/es/input/style/index.css +16 -0
- package/es/input/style/index.scss +21 -0
- package/es/input-number/index.d.ts +36 -6
- package/es/input-number/input-number.d.ts +20 -2
- package/es/input-number/input-number.js +21 -2
- package/es/input-tag/index.d.ts +36 -6
- package/es/input-tag/input-tag.d.ts +20 -2
- package/es/input-tag/input-tag.js +42 -8
- package/es/input-tag/style/index.css +6 -0
- package/es/input-tag/style/input-tag.scss +8 -0
- package/es/input-tag/utils.js +1 -1
- package/es/json-form/index.d.ts +5 -5
- package/es/json-form/index.js +2 -2
- package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +4 -6
- package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/json-form/types.d.ts +80 -110
- package/es/json-form/types.js +3 -3
- package/es/json-form/utils.d.ts +5 -6
- package/es/json-form/utils.js +69 -196
- package/es/kv-list/index.d.ts +74 -32
- package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +3 -5
- package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +1 -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/index.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 +1 -1
- package/es/link/index.d.ts +6 -6
- package/es/link/link.vue.d.ts +2 -2
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/list/index.js +1 -1
- package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list.js +1 -1
- package/es/locale/interface.d.ts +22 -0
- package/es/locale/lang/ar-eg.js +21 -1
- package/es/locale/lang/de-de.js +21 -1
- package/es/locale/lang/en-us.js +21 -1
- package/es/locale/lang/es-es.js +21 -1
- package/es/locale/lang/fr-fr.js +21 -1
- package/es/locale/lang/id-id.js +21 -1
- package/es/locale/lang/it-it.js +21 -1
- package/es/locale/lang/ja-jp.js +21 -1
- package/es/locale/lang/km-kh.js +21 -1
- package/es/locale/lang/ko-kr.js +21 -1
- package/es/locale/lang/ms-my.js +21 -1
- package/es/locale/lang/nl-nl.js +21 -1
- package/es/locale/lang/pt-pt.js +21 -1
- package/es/locale/lang/ru-ru.js +21 -1
- package/es/locale/lang/th-th.js +21 -1
- package/es/locale/lang/vi-vn.js +21 -1
- package/es/locale/lang/zh-cn.js +21 -1
- package/es/locale/lang/zh-tw.js +21 -1
- package/es/mention/index.d.ts +48 -9
- package/es/mention/mention.d.ts +28 -3
- package/es/mention/mention.js +33 -3
- package/es/mention/style/index.css +6 -0
- package/es/mention/style/index.scss +8 -0
- package/es/menu/base-menu.vue.d.ts +7 -0
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/menu/context.d.ts +1 -1
- package/es/menu/indent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/index.js +1 -1
- package/es/menu/interface.d.ts +2 -0
- package/es/menu/item-group.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/menu/item.d.ts +1 -1
- package/es/menu/item.js +1 -1
- package/es/menu/menu.d.ts +16 -0
- package/es/menu/menu.js +3 -2
- package/es/menu/overflow-wrap.js +4 -1
- package/es/menu/sub-menu-inline.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/menu/sub-menu.js +1 -1
- package/es/message/index.js +1 -1
- package/es/message/message-list.d.ts +1 -1
- package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/modal/index.d.ts +9 -9
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue.d.ts +3 -3
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/notification/index.js +1 -1
- package/es/notification/notification.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +1 -1
- 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/popconfirm/index.d.ts +12 -3
- package/es/popconfirm/popconfirm.vue.d.ts +8 -1
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/popover/index.d.ts +15 -6
- package/es/popover/popover.vue.d.ts +9 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/progress/circle.vue.d.ts +1 -1
- package/es/progress/circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/line.vue.d.ts +1 -1
- package/es/progress/line.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +1 -1
- package/es/qr-code/index.d.ts +15 -15
- package/es/qr-code/qr-code.vue.d.ts +5 -5
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/radio/index.d.ts +6 -6
- package/es/radio/index.js +1 -1
- package/es/radio/radio.d.ts +3 -3
- package/es/rate/index.d.ts +3 -3
- package/es/rate/rate.d.ts +1 -1
- package/es/resize-box/index.d.ts +5 -5
- package/es/resize-box/resize-box.vue.d.ts +3 -3
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +2 -5
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/rich-text-editor/built-in-components.d.ts +5 -0
- package/es/rich-text-editor/built-in-components.js +6 -0
- package/es/rich-text-editor/index.d.ts +195 -0
- package/es/rich-text-editor/index.js +12 -0
- package/es/rich-text-editor/nodes/inline-component-node.d.ts +30 -0
- package/es/rich-text-editor/nodes/inline-component-node.js +86 -0
- package/es/rich-text-editor/rich-text-editor.js +5 -0
- package/es/rich-text-editor/rich-text-editor.vue.d.ts +76 -0
- package/es/rich-text-editor/rich-text-editor.vue_vue_type_script_setup_true_lang.js +630 -0
- package/es/rich-text-editor/rich-text-node-renderer.js +5 -0
- package/es/rich-text-editor/rich-text-node-renderer.vue.d.ts +28 -0
- package/es/rich-text-editor/rich-text-node-renderer.vue_vue_type_script_setup_true_lang.js +133 -0
- package/es/rich-text-editor/style/css.js +2 -0
- package/es/rich-text-editor/style/index.css +164 -0
- package/es/rich-text-editor/style/index.d.ts +2 -0
- package/es/rich-text-editor/style/index.js +2 -0
- package/es/rich-text-editor/style/index.scss +193 -0
- package/es/rich-text-editor/style/token.scss +36 -0
- package/es/rich-text-editor/types.d.ts +148 -0
- package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sd-vue.js +7 -1
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/hooks/use-select.js +1 -1
- package/es/select/index.d.ts +141 -60
- package/es/select/interface.d.ts +2 -1
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/select/select.d.ts +74 -28
- package/es/select/select.js +82 -59
- package/es/select/utils.js +2 -2
- package/es/selectable-card/selectable-card.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/context.d.ts +8 -0
- package/es/sender/context.js +4 -0
- package/es/sender/index.d.ts +119 -0
- package/es/sender/index.js +20 -0
- package/es/sender/sender-header.js +5 -0
- package/es/sender/sender-header.vue.d.ts +28 -0
- package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +127 -0
- package/es/sender/sender-switch.js +5 -0
- package/es/sender/sender-switch.vue.d.ts +32 -0
- package/es/sender/sender-switch.vue_vue_type_script_setup_true_lang.js +95 -0
- package/es/sender/sender.js +5 -0
- package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +871 -0
- package/es/sender/style/css.js +3 -0
- package/es/sender/style/index.css +290 -0
- package/es/sender/style/index.d.ts +3 -0
- package/es/sender/style/index.js +3 -0
- package/es/sender/style/index.scss +346 -0
- package/es/sender/style/token.scss +43 -0
- package/es/sender/types.d.ts +171 -0
- package/es/sender/use-speech.d.ts +9 -0
- package/es/sender/use-speech.js +120 -0
- package/es/skeleton/index.js +1 -1
- package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +2 -2
- package/es/slider/index.d.ts +3 -3
- package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-dots.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-input.vue.d.ts +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.d.ts +1 -1
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/space/index.d.ts +9 -9
- package/es/space/space.d.ts +2 -2
- package/es/spin/index.d.ts +3 -3
- package/es/spin/spin.d.ts +1 -1
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/statistic/index.d.ts +3 -3
- package/es/statistic/index.js +1 -1
- package/es/statistic/statistic.vue.d.ts +1 -1
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/steps/index.d.ts +5 -5
- package/es/steps/index.js +1 -1
- package/es/steps/step.vue.d.ts +2 -2
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/steps/steps.vue.d.ts +1 -1
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/style/theme/z-index.js +1 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/table/index.d.ts +17 -17
- package/es/table/index.js +1 -1
- package/es/table/interface.d.ts +2 -0
- package/es/table/table-column.d.ts +1 -1
- package/es/table/table-operation-td.d.ts +12 -12
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.d.ts +2 -2
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +3 -2
- package/es/table/table.d.ts +5 -5
- package/es/table/table.js +5 -3
- package/es/table/utils.js +2 -2
- package/es/tabs/index.d.ts +12 -12
- package/es/tabs/index.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tabs/tabs-nav-ink.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-nav.d.ts +1 -1
- package/es/tabs/tabs-nav.js +2 -1
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs.d.ts +4 -4
- package/es/tag/index.d.ts +6 -6
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/textarea/index.d.ts +38 -8
- package/es/textarea/style/index.css +6 -0
- package/es/textarea/style/index.scss +8 -0
- package/es/textarea/textarea.vue.d.ts +21 -3
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +37 -4
- package/es/time-picker/index.d.ts +45 -6
- package/es/time-picker/interface.d.ts +2 -1
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/range-panel.js +58 -0
- package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-picker.vue.d.ts +27 -2
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +39 -4
- package/es/timeline/index.d.ts +6 -6
- package/es/timeline/index.js +1 -1
- package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/timeline/timeline.d.ts +3 -3
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/tooltip/index.d.ts +6 -6
- package/es/tooltip/interface.d.ts +2 -0
- package/es/tooltip/tooltip.vue.d.ts +2 -2
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/tour/index.d.ts +18 -3
- package/es/tour/tour.vue.d.ts +11 -1
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +108 -145
- package/es/tour/types.d.ts +3 -0
- package/es/transfer/index.d.ts +3 -3
- package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/transfer.vue.d.ts +1 -1
- package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +5 -8
- package/es/tree/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/node.js +1 -1
- package/es/tree/transition-node-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/tree.vue.d.ts +4 -4
- 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-selected-state.js +1 -1
- package/es/tree-select/interface.d.ts +2 -1
- package/es/tree-select/panel.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +32 -7
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +165 -136
- package/es/trigger/index.d.ts +25 -15
- package/es/trigger/interface.d.ts +2 -0
- package/es/trigger/trigger.d.ts +12 -5
- package/es/trigger/trigger.js +130 -52
- package/es/trigger/utils.d.ts +0 -47
- package/es/trigger/utils.js +1 -268
- package/es/typography/base.d.ts +4 -4
- package/es/typography/base.js +1 -1
- package/es/typography/edit-content.vue.d.ts +2 -2
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/index.js +1 -1
- package/es/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/upload/index.d.ts +6 -6
- package/es/upload/upload-button.d.ts +1 -1
- package/es/upload/upload.d.ts +2 -2
- package/es/upload/upload.js +2 -2
- package/es/verification-code/index.d.ts +3 -3
- package/es/verification-code/verification-code.d.ts +1 -1
- package/es/watermark/hooks/use-mutation-observer.js +2 -2
- package/es/watermark/index.d.ts +3 -3
- package/es/watermark/utils/index.js +1 -1
- package/es/watermark/watermark.d.ts +1 -1
- package/es/watermark/watermark.js +1 -1
- package/json/vetur-attributes.json +242 -0
- package/json/vetur-tags.json +87 -4
- package/json/web-types.json +559 -2
- package/package.json +23 -13
- package/es/_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/toPropertyKey.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.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 { computed, createBlock, createTextVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
@@ -6,6 +6,7 @@ import { computed, createBlock, createTextVNode, defineComponent, normalizeClass
|
|
|
6
6
|
var tooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Tooltip" }), {}, {
|
|
7
7
|
__name: "tooltip",
|
|
8
8
|
props: {
|
|
9
|
+
floatingOptions: {},
|
|
9
10
|
popupVisible: {
|
|
10
11
|
type: Boolean,
|
|
11
12
|
default: void 0
|
|
@@ -77,6 +78,7 @@ var tooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
77
78
|
"arrow-class": arrowCls.value,
|
|
78
79
|
"arrow-style": computedArrowStyle.value,
|
|
79
80
|
"popup-container": __props.popupContainer,
|
|
81
|
+
"floating-options": __props.floatingOptions,
|
|
80
82
|
"animation-name": "zoom-in-fade-out",
|
|
81
83
|
"auto-fit-transform-origin": "",
|
|
82
84
|
role: "tooltip",
|
|
@@ -95,7 +97,8 @@ var tooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
95
97
|
"content-style",
|
|
96
98
|
"arrow-class",
|
|
97
99
|
"arrow-style",
|
|
98
|
-
"popup-container"
|
|
100
|
+
"popup-container",
|
|
101
|
+
"floating-options"
|
|
99
102
|
]);
|
|
100
103
|
};
|
|
101
104
|
}
|
package/es/tour/index.d.ts
CHANGED
|
@@ -75,6 +75,10 @@ declare const Tour: {
|
|
|
75
75
|
type: NumberConstructor;
|
|
76
76
|
default: undefined;
|
|
77
77
|
};
|
|
78
|
+
floatingOptions: {
|
|
79
|
+
type: import("vue").PropType<import("../index.ts").FloatingOptions>;
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
78
82
|
showButtons: {
|
|
79
83
|
type: import("vue").PropType<import("./types").TourAllowedButton[]>;
|
|
80
84
|
default: undefined;
|
|
@@ -160,8 +164,9 @@ declare const Tour: {
|
|
|
160
164
|
"update:current": (current: number) => any;
|
|
161
165
|
visibleChange: (visible: boolean) => any;
|
|
162
166
|
}, import("vue").PublicProps, {
|
|
163
|
-
animate: boolean;
|
|
164
167
|
visible: boolean;
|
|
168
|
+
animate: boolean;
|
|
169
|
+
floatingOptions: import("../index.ts").FloatingOptions;
|
|
165
170
|
buttonProps: Partial<Record<import("./types").TourButtonKind, import("../index.ts").ButtonProps>>;
|
|
166
171
|
defaultVisible: boolean;
|
|
167
172
|
zIndex: number;
|
|
@@ -279,6 +284,10 @@ declare const Tour: {
|
|
|
279
284
|
type: NumberConstructor;
|
|
280
285
|
default: undefined;
|
|
281
286
|
};
|
|
287
|
+
floatingOptions: {
|
|
288
|
+
type: import("vue").PropType<import("../index.ts").FloatingOptions>;
|
|
289
|
+
default: undefined;
|
|
290
|
+
};
|
|
282
291
|
showButtons: {
|
|
283
292
|
type: import("vue").PropType<import("./types").TourAllowedButton[]>;
|
|
284
293
|
default: undefined;
|
|
@@ -358,8 +367,9 @@ declare const Tour: {
|
|
|
358
367
|
"onUpdate:current"?: ((current: number) => any) | undefined;
|
|
359
368
|
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
360
369
|
}>, import("./types").TourExpose, {}, {}, {}, {
|
|
361
|
-
animate: boolean;
|
|
362
370
|
visible: boolean;
|
|
371
|
+
animate: boolean;
|
|
372
|
+
floatingOptions: import("../index.ts").FloatingOptions;
|
|
363
373
|
buttonProps: Partial<Record<import("./types").TourButtonKind, import("../index.ts").ButtonProps>>;
|
|
364
374
|
defaultVisible: boolean;
|
|
365
375
|
zIndex: number;
|
|
@@ -474,6 +484,10 @@ declare const Tour: {
|
|
|
474
484
|
type: NumberConstructor;
|
|
475
485
|
default: undefined;
|
|
476
486
|
};
|
|
487
|
+
floatingOptions: {
|
|
488
|
+
type: import("vue").PropType<import("../index.ts").FloatingOptions>;
|
|
489
|
+
default: undefined;
|
|
490
|
+
};
|
|
477
491
|
showButtons: {
|
|
478
492
|
type: import("vue").PropType<import("./types").TourAllowedButton[]>;
|
|
479
493
|
default: undefined;
|
|
@@ -559,8 +573,9 @@ declare const Tour: {
|
|
|
559
573
|
"update:current": (current: number) => any;
|
|
560
574
|
visibleChange: (visible: boolean) => any;
|
|
561
575
|
}, string, {
|
|
562
|
-
animate: boolean;
|
|
563
576
|
visible: boolean;
|
|
577
|
+
animate: boolean;
|
|
578
|
+
floatingOptions: import("../index.ts").FloatingOptions;
|
|
564
579
|
buttonProps: Partial<Record<import("./types").TourButtonKind, import("../index.ts").ButtonProps>>;
|
|
565
580
|
defaultVisible: boolean;
|
|
566
581
|
zIndex: number;
|
package/es/tour/tour.vue.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropType, VNodeChild } from 'vue';
|
|
2
|
+
import type { FloatingOptions } from '../_utils/floating';
|
|
2
3
|
import type { ButtonProps } from '../button/interface';
|
|
3
4
|
import type { TourAllowedButton, TourButtonKind, TourButtonProps, TourConfig, TourController, TourExpose, TourOverlayClickBehavior, TourPopoverDom, TourState, TourStep, TourStepHook } from './types';
|
|
4
5
|
type __VLS_Slots = {
|
|
@@ -131,6 +132,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
131
132
|
type: NumberConstructor;
|
|
132
133
|
default: undefined;
|
|
133
134
|
};
|
|
135
|
+
floatingOptions: {
|
|
136
|
+
type: PropType<FloatingOptions>;
|
|
137
|
+
default: undefined;
|
|
138
|
+
};
|
|
134
139
|
showButtons: {
|
|
135
140
|
type: PropType<TourAllowedButton[]>;
|
|
136
141
|
default: undefined;
|
|
@@ -282,6 +287,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
282
287
|
type: NumberConstructor;
|
|
283
288
|
default: undefined;
|
|
284
289
|
};
|
|
290
|
+
floatingOptions: {
|
|
291
|
+
type: PropType<FloatingOptions>;
|
|
292
|
+
default: undefined;
|
|
293
|
+
};
|
|
285
294
|
showButtons: {
|
|
286
295
|
type: PropType<TourAllowedButton[]>;
|
|
287
296
|
default: undefined;
|
|
@@ -361,8 +370,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
361
370
|
"onUpdate:current"?: ((current: number) => any) | undefined;
|
|
362
371
|
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
363
372
|
}>, {
|
|
364
|
-
animate: boolean;
|
|
365
373
|
visible: boolean;
|
|
374
|
+
animate: boolean;
|
|
375
|
+
floatingOptions: FloatingOptions;
|
|
366
376
|
buttonProps: Partial<Record<TourButtonKind, ButtonProps>>;
|
|
367
377
|
defaultVisible: boolean;
|
|
368
378
|
zIndex: number;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
-
import
|
|
3
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/asyncToGenerator.js";
|
|
4
4
|
import usePopupManager from "../_hooks/use-popup-manager.js";
|
|
5
|
+
import { createFloatingOptions } from "../_utils/floating.js";
|
|
5
6
|
import Button from "../button/index.js";
|
|
6
7
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, renderSlot, shallowRef, toDisplayString, unref, useSlots, watch, withCtx } from "vue";
|
|
8
|
+
import { arrow, autoUpdate, flip, offset, shift, useFloating } from "@floating-ui/vue";
|
|
7
9
|
import { unrefElement, useElementBounding, useEventListener, useResizeObserver, useWindowSize } from "@vueuse/core";
|
|
8
10
|
import { Motion } from "motion-v";
|
|
9
11
|
//#region components/tour/tour.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -95,6 +97,10 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
95
97
|
type: Number,
|
|
96
98
|
default: void 0
|
|
97
99
|
},
|
|
100
|
+
floatingOptions: {
|
|
101
|
+
type: Object,
|
|
102
|
+
default: void 0
|
|
103
|
+
},
|
|
98
104
|
showButtons: {
|
|
99
105
|
type: Array,
|
|
100
106
|
default: void 0
|
|
@@ -207,6 +213,7 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
207
213
|
const mounted = shallowRef(false);
|
|
208
214
|
const isInitialized = shallowRef(false);
|
|
209
215
|
const activeOnDestroyed = shallowRef(null);
|
|
216
|
+
const popoverShellRef = shallowRef(null);
|
|
210
217
|
const popoverRef = shallowRef(null);
|
|
211
218
|
const arrowRef = shallowRef(null);
|
|
212
219
|
const titleRef = shallowRef(null);
|
|
@@ -249,6 +256,7 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
249
256
|
stagePadding: props.stagePadding,
|
|
250
257
|
stageRadius: props.stageRadius,
|
|
251
258
|
popoverOffset: props.popoverOffset,
|
|
259
|
+
floatingOptions: props.floatingOptions,
|
|
252
260
|
showButtons: props.showButtons,
|
|
253
261
|
disableButtons: props.disableButtons,
|
|
254
262
|
prevBtnText: props.prevBtnText,
|
|
@@ -434,8 +442,60 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
434
442
|
side: "bottom",
|
|
435
443
|
align: "start"
|
|
436
444
|
});
|
|
437
|
-
const
|
|
438
|
-
|
|
445
|
+
const preferredSide = computed(() => {
|
|
446
|
+
var _activeElement$value, _resolvedPopover$valu7;
|
|
447
|
+
return ((_activeElement$value = activeElement.value) === null || _activeElement$value === void 0 ? void 0 : _activeElement$value.id) === dummyElementId ? "over" : (_resolvedPopover$valu7 = resolvedPopover.value.side) !== null && _resolvedPopover$valu7 !== void 0 ? _resolvedPopover$valu7 : "bottom";
|
|
448
|
+
});
|
|
449
|
+
const preferredPlacement = computed(() => {
|
|
450
|
+
var _preferredSide$value, _resolvedPopover$valu8;
|
|
451
|
+
const side = preferredSide.value === "over" ? "bottom" : (_preferredSide$value = preferredSide.value) !== null && _preferredSide$value !== void 0 ? _preferredSide$value : "bottom";
|
|
452
|
+
const align = (_resolvedPopover$valu8 = resolvedPopover.value.align) !== null && _resolvedPopover$valu8 !== void 0 ? _resolvedPopover$valu8 : "start";
|
|
453
|
+
return align === "center" ? side : `${side}-${align}`;
|
|
454
|
+
});
|
|
455
|
+
const centerInViewport = {
|
|
456
|
+
name: "sdTourCenterInViewport",
|
|
457
|
+
fn({ rects }) {
|
|
458
|
+
return {
|
|
459
|
+
x: Math.max((viewport.value.width - rects.floating.width) / 2, 10),
|
|
460
|
+
y: Math.max((viewport.value.height - rects.floating.height) / 2, 10)
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
const { floatingStyles, middlewareData, placement: floatingPlacement, isPositioned, update: updateFloatingPosition } = useFloating(activeElement, popoverShellRef, createFloatingOptions(() => _objectSpread2(_objectSpread2({}, mergedConfig.value.floatingOptions), resolvedPopover.value.floatingOptions), {
|
|
465
|
+
open: isActive,
|
|
466
|
+
placement: preferredPlacement,
|
|
467
|
+
strategy: "fixed",
|
|
468
|
+
middleware: computed(() => {
|
|
469
|
+
var _mergedConfig$value$p, _mergedConfig$value$s4;
|
|
470
|
+
if (preferredSide.value === "over") return [centerInViewport];
|
|
471
|
+
return [
|
|
472
|
+
offset((_mergedConfig$value$p = mergedConfig.value.popoverOffset) !== null && _mergedConfig$value$p !== void 0 ? _mergedConfig$value$p : 10),
|
|
473
|
+
flip(),
|
|
474
|
+
shift({ padding: (_mergedConfig$value$s4 = mergedConfig.value.stagePadding) !== null && _mergedConfig$value$s4 !== void 0 ? _mergedConfig$value$s4 : 0 }),
|
|
475
|
+
arrow({ element: arrowRef })
|
|
476
|
+
];
|
|
477
|
+
}),
|
|
478
|
+
whileElementsMounted: autoUpdate
|
|
479
|
+
}));
|
|
480
|
+
const popoverShellStyle = computed(() => _objectSpread2(_objectSpread2({ zIndex: `${mergedZIndex.value + 1}` }, floatingStyles.value), isPositioned.value ? {} : { visibility: "hidden" }));
|
|
481
|
+
const popoverStyle = computed(() => ({ zIndex: `${mergedZIndex.value + 1}` }));
|
|
482
|
+
const arrowStyle = computed(() => {
|
|
483
|
+
const arrowData = middlewareData.value.arrow;
|
|
484
|
+
if (!arrowData || preferredSide.value === "over") return {};
|
|
485
|
+
const staticSide = {
|
|
486
|
+
top: "bottom",
|
|
487
|
+
right: "left",
|
|
488
|
+
bottom: "top",
|
|
489
|
+
left: "right"
|
|
490
|
+
}[floatingPlacement.value.split("-")[0]];
|
|
491
|
+
return {
|
|
492
|
+
left: arrowData.x == null ? "" : `${arrowData.x}px`,
|
|
493
|
+
top: arrowData.y == null ? "" : `${arrowData.y}px`,
|
|
494
|
+
right: "",
|
|
495
|
+
bottom: "",
|
|
496
|
+
[staticSide !== null && staticSide !== void 0 ? staticSide : ""]: "-5px"
|
|
497
|
+
};
|
|
498
|
+
});
|
|
439
499
|
const motionState = {
|
|
440
500
|
initial: {
|
|
441
501
|
opacity: 0,
|
|
@@ -498,8 +558,8 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
498
558
|
return normalized;
|
|
499
559
|
}
|
|
500
560
|
function mergeButtonProps(kind, fallback) {
|
|
501
|
-
var _mergedConfig$value$b, _resolvedPopover$
|
|
502
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({ size: "small" }, kind === "close" ? { type: "text" } : {}), fallback), (_mergedConfig$value$b = mergedConfig.value.buttonProps) === null || _mergedConfig$value$b === void 0 ? void 0 : _mergedConfig$value$b[kind]), (_resolvedPopover$
|
|
561
|
+
var _mergedConfig$value$b, _resolvedPopover$valu9;
|
|
562
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({ size: "small" }, kind === "close" ? { type: "text" } : {}), fallback), (_mergedConfig$value$b = mergedConfig.value.buttonProps) === null || _mergedConfig$value$b === void 0 ? void 0 : _mergedConfig$value$b[kind]), (_resolvedPopover$valu9 = resolvedPopover.value.buttonProps) === null || _resolvedPopover$valu9 === void 0 ? void 0 : _resolvedPopover$valu9[kind]);
|
|
503
563
|
}
|
|
504
564
|
function getActiveHookOptions() {
|
|
505
565
|
return {
|
|
@@ -512,8 +572,8 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
512
572
|
hook === null || hook === void 0 || hook(element, step, getActiveHookOptions());
|
|
513
573
|
}
|
|
514
574
|
function invokePopoverRender() {
|
|
515
|
-
var _resolvedPopover$
|
|
516
|
-
const hook = (_resolvedPopover$
|
|
575
|
+
var _resolvedPopover$valu10;
|
|
576
|
+
const hook = (_resolvedPopover$valu10 = resolvedPopover.value.onPopoverRender) !== null && _resolvedPopover$valu10 !== void 0 ? _resolvedPopover$valu10 : mergedConfig.value.onPopoverRender;
|
|
517
577
|
hook === null || hook === void 0 || hook(popoverDom.value, getActiveHookOptions());
|
|
518
578
|
}
|
|
519
579
|
function ensureDummyElement() {
|
|
@@ -734,34 +794,34 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
734
794
|
return hook;
|
|
735
795
|
}
|
|
736
796
|
function handlePreviousButtonClick() {
|
|
737
|
-
var _resolvedPopover$
|
|
797
|
+
var _resolvedPopover$valu11;
|
|
738
798
|
if (isButtonDisabled("previous")) return;
|
|
739
|
-
const hook = resolveHook((_resolvedPopover$
|
|
799
|
+
const hook = resolveHook((_resolvedPopover$valu11 = resolvedPopover.value.onPrevClick) !== null && _resolvedPopover$valu11 !== void 0 ? _resolvedPopover$valu11 : mergedConfig.value.onPrevClick);
|
|
740
800
|
if (hook) {
|
|
741
|
-
var _activeElement$
|
|
742
|
-
hook((_activeElement$
|
|
801
|
+
var _activeElement$value2;
|
|
802
|
+
hook((_activeElement$value2 = activeElement.value) !== null && _activeElement$value2 !== void 0 ? _activeElement$value2 : void 0, activeStep.value, getActiveHookOptions());
|
|
743
803
|
return;
|
|
744
804
|
}
|
|
745
805
|
movePrevious();
|
|
746
806
|
}
|
|
747
807
|
function handleNextButtonClick() {
|
|
748
|
-
var _resolvedPopover$
|
|
808
|
+
var _resolvedPopover$valu12;
|
|
749
809
|
if (isButtonDisabled("next")) return;
|
|
750
|
-
const hook = resolveHook((_resolvedPopover$
|
|
810
|
+
const hook = resolveHook((_resolvedPopover$valu12 = resolvedPopover.value.onNextClick) !== null && _resolvedPopover$valu12 !== void 0 ? _resolvedPopover$valu12 : mergedConfig.value.onNextClick);
|
|
751
811
|
if (hook) {
|
|
752
|
-
var _activeElement$
|
|
753
|
-
hook((_activeElement$
|
|
812
|
+
var _activeElement$value3;
|
|
813
|
+
hook((_activeElement$value3 = activeElement.value) !== null && _activeElement$value3 !== void 0 ? _activeElement$value3 : void 0, activeStep.value, getActiveHookOptions());
|
|
754
814
|
return;
|
|
755
815
|
}
|
|
756
816
|
moveNext();
|
|
757
817
|
}
|
|
758
818
|
function handleCloseButtonClick() {
|
|
759
|
-
var _resolvedPopover$
|
|
819
|
+
var _resolvedPopover$valu13;
|
|
760
820
|
if (isButtonDisabled("close")) return;
|
|
761
|
-
const hook = resolveHook((_resolvedPopover$
|
|
821
|
+
const hook = resolveHook((_resolvedPopover$valu13 = resolvedPopover.value.onCloseClick) !== null && _resolvedPopover$valu13 !== void 0 ? _resolvedPopover$valu13 : mergedConfig.value.onCloseClick);
|
|
762
822
|
if (hook) {
|
|
763
|
-
var _activeElement$
|
|
764
|
-
hook((_activeElement$
|
|
823
|
+
var _activeElement$value4;
|
|
824
|
+
hook((_activeElement$value4 = activeElement.value) !== null && _activeElement$value4 !== void 0 ? _activeElement$value4 : void 0, activeStep.value, getActiveHookOptions());
|
|
765
825
|
return;
|
|
766
826
|
}
|
|
767
827
|
closeTour();
|
|
@@ -777,8 +837,8 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
777
837
|
return;
|
|
778
838
|
}
|
|
779
839
|
if (typeof behavior === "function") {
|
|
780
|
-
var _activeElement$
|
|
781
|
-
behavior((_activeElement$
|
|
840
|
+
var _activeElement$value5;
|
|
841
|
+
behavior((_activeElement$value5 = activeElement.value) !== null && _activeElement$value5 !== void 0 ? _activeElement$value5 : void 0, activeStep.value, getActiveHookOptions());
|
|
782
842
|
}
|
|
783
843
|
}
|
|
784
844
|
function syncTourActivityClasses(active) {
|
|
@@ -788,11 +848,11 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
788
848
|
document.body.classList.toggle(staticBodyClass, active && mergedConfig.value.animate === false);
|
|
789
849
|
}
|
|
790
850
|
function handleDocumentClick(event) {
|
|
791
|
-
var _activeElement$
|
|
851
|
+
var _activeElement$value6, _popoverElement$value;
|
|
792
852
|
if (!isActive.value) return;
|
|
793
853
|
const target = event.target;
|
|
794
854
|
if (!(target instanceof Node)) return;
|
|
795
|
-
if (((_activeElement$
|
|
855
|
+
if (((_activeElement$value6 = activeElement.value) === null || _activeElement$value6 === void 0 ? void 0 : _activeElement$value6.contains(target)) || ((_popoverElement$value = popoverElement.value) === null || _popoverElement$value === void 0 ? void 0 : _popoverElement$value.contains(target))) return;
|
|
796
856
|
event.preventDefault();
|
|
797
857
|
event.stopPropagation();
|
|
798
858
|
event.stopImmediatePropagation();
|
|
@@ -811,34 +871,26 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
811
871
|
if (event.key === "ArrowLeft") handlePreviousButtonClick();
|
|
812
872
|
}
|
|
813
873
|
function placePopover() {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
side
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
874
|
+
return _placePopover.apply(this, arguments);
|
|
875
|
+
}
|
|
876
|
+
function _placePopover() {
|
|
877
|
+
_placePopover = _asyncToGenerator(function* () {
|
|
878
|
+
if (!activeRect.value || !popoverElement.value || !activeElement.value) return;
|
|
879
|
+
yield updateFloatingPosition();
|
|
880
|
+
if (preferredSide.value === "over") {
|
|
881
|
+
popoverPlacement.value = {
|
|
882
|
+
side: "over",
|
|
883
|
+
align: "center"
|
|
884
|
+
};
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
const [side, align] = floatingPlacement.value.split("-");
|
|
888
|
+
popoverPlacement.value = {
|
|
889
|
+
side,
|
|
890
|
+
align: align !== null && align !== void 0 ? align : "center"
|
|
891
|
+
};
|
|
832
892
|
});
|
|
833
|
-
|
|
834
|
-
popoverShellStyle.value = {
|
|
835
|
-
left: positions.style.left,
|
|
836
|
-
top: positions.style.top,
|
|
837
|
-
right: positions.style.right,
|
|
838
|
-
bottom: positions.style.bottom,
|
|
839
|
-
zIndex: `${mergedZIndex.value + 1}`
|
|
840
|
-
};
|
|
841
|
-
popoverStyle.value = { zIndex: `${mergedZIndex.value + 1}` };
|
|
893
|
+
return _placePopover.apply(this, arguments);
|
|
842
894
|
}
|
|
843
895
|
useResizeObserver(activeElement, () => {
|
|
844
896
|
if (!mounted.value || !activeElement.value) return;
|
|
@@ -899,98 +951,6 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
899
951
|
const vertical = height - radius * 2;
|
|
900
952
|
return `M${size.width},0L0,0L0,${size.height}L${size.width},${size.height}L${size.width},0Z M${x},${y} h${horizontal} a${radius},${radius} 0 0 1 ${radius},${radius} v${vertical} a${radius},${radius} 0 0 1 -${radius},${radius} h-${horizontal} a${radius},${radius} 0 0 1 -${radius},-${radius} v-${vertical} a${radius},${radius} 0 0 1 ${radius},-${radius} z`;
|
|
901
953
|
}
|
|
902
|
-
function calculateAxisPosition(align, rectStart, rectSize, popoverSize, viewportSize, arrowSize) {
|
|
903
|
-
if (align === "center") return Math.max(Math.min(rectStart + rectSize / 2 - popoverSize / 2, viewportSize - popoverSize - arrowSize), arrowSize);
|
|
904
|
-
if (align === "end") return Math.max(Math.min(rectStart + rectSize - popoverSize, viewportSize - popoverSize - arrowSize), arrowSize);
|
|
905
|
-
return Math.max(Math.min(rectStart, viewportSize - popoverSize - arrowSize), arrowSize);
|
|
906
|
-
}
|
|
907
|
-
function calculatePopoverPosition(options) {
|
|
908
|
-
const { rect, popover, size, side, align, offset, padding, arrowSize } = options;
|
|
909
|
-
const topSpace = rect.top - (popover.height + offset + padding);
|
|
910
|
-
const bottomSpace = size.height - (rect.bottom + popover.height + offset + padding);
|
|
911
|
-
const leftSpace = rect.left - (popover.width + offset + padding);
|
|
912
|
-
const rightSpace = size.width - (rect.right + popover.width + offset + padding);
|
|
913
|
-
const style = {
|
|
914
|
-
left: "auto",
|
|
915
|
-
top: "auto",
|
|
916
|
-
right: "auto",
|
|
917
|
-
bottom: "auto"
|
|
918
|
-
};
|
|
919
|
-
const placement = {
|
|
920
|
-
side: side !== null && side !== void 0 ? side : "bottom",
|
|
921
|
-
align: align !== null && align !== void 0 ? align : "start"
|
|
922
|
-
};
|
|
923
|
-
const applyTop = () => {
|
|
924
|
-
style.top = `${Math.max(topSpace, arrowSize)}px`;
|
|
925
|
-
style.left = `${calculateAxisPosition(align, rect.left, rect.width, popover.width, size.width, arrowSize)}px`;
|
|
926
|
-
placement.side = "top";
|
|
927
|
-
};
|
|
928
|
-
const applyBottom = () => {
|
|
929
|
-
style.top = `${Math.min(rect.bottom + offset, size.height - popover.height - arrowSize)}px`;
|
|
930
|
-
style.left = `${calculateAxisPosition(align, rect.left, rect.width, popover.width, size.width, arrowSize)}px`;
|
|
931
|
-
placement.side = "bottom";
|
|
932
|
-
};
|
|
933
|
-
const applyLeft = () => {
|
|
934
|
-
style.left = `${Math.max(leftSpace, arrowSize)}px`;
|
|
935
|
-
style.top = `${calculateAxisPosition(align, rect.top, rect.height, popover.height, size.height, arrowSize)}px`;
|
|
936
|
-
placement.side = "left";
|
|
937
|
-
};
|
|
938
|
-
const applyRight = () => {
|
|
939
|
-
style.left = `${Math.min(rect.right + offset, size.width - popover.width - arrowSize)}px`;
|
|
940
|
-
style.top = `${calculateAxisPosition(align, rect.top, rect.height, popover.height, size.height, arrowSize)}px`;
|
|
941
|
-
placement.side = "right";
|
|
942
|
-
};
|
|
943
|
-
const applyCenter = () => {
|
|
944
|
-
style.left = `${Math.max((size.width - popover.width) / 2, arrowSize)}px`;
|
|
945
|
-
style.top = `${Math.max((size.height - popover.height) / 2, arrowSize)}px`;
|
|
946
|
-
placement.side = "over";
|
|
947
|
-
placement.align = "center";
|
|
948
|
-
};
|
|
949
|
-
if (side === "over") {
|
|
950
|
-
applyCenter();
|
|
951
|
-
return {
|
|
952
|
-
style,
|
|
953
|
-
placement
|
|
954
|
-
};
|
|
955
|
-
}
|
|
956
|
-
if (side === "top" && topSpace >= 0) {
|
|
957
|
-
applyTop();
|
|
958
|
-
return {
|
|
959
|
-
style,
|
|
960
|
-
placement
|
|
961
|
-
};
|
|
962
|
-
}
|
|
963
|
-
if (side === "bottom" && bottomSpace >= 0) {
|
|
964
|
-
applyBottom();
|
|
965
|
-
return {
|
|
966
|
-
style,
|
|
967
|
-
placement
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
if (side === "left" && leftSpace >= 0) {
|
|
971
|
-
applyLeft();
|
|
972
|
-
return {
|
|
973
|
-
style,
|
|
974
|
-
placement
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
if (side === "right" && rightSpace >= 0) {
|
|
978
|
-
applyRight();
|
|
979
|
-
return {
|
|
980
|
-
style,
|
|
981
|
-
placement
|
|
982
|
-
};
|
|
983
|
-
}
|
|
984
|
-
if (bottomSpace >= 0) applyBottom();
|
|
985
|
-
else if (topSpace >= 0) applyTop();
|
|
986
|
-
else if (rightSpace >= 0) applyRight();
|
|
987
|
-
else if (leftSpace >= 0) applyLeft();
|
|
988
|
-
else applyCenter();
|
|
989
|
-
return {
|
|
990
|
-
style,
|
|
991
|
-
placement
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
954
|
onMounted(() => {
|
|
995
955
|
mounted.value = true;
|
|
996
956
|
syncTourActivityClasses(isActive.value);
|
|
@@ -1073,6 +1033,8 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
1073
1033
|
"fill-rule": "evenodd",
|
|
1074
1034
|
"clip-rule": "evenodd"
|
|
1075
1035
|
}, null, 8, _hoisted_2)], 14, _hoisted_1)), createElementVNode("dialog", {
|
|
1036
|
+
ref_key: "popoverShellRef",
|
|
1037
|
+
ref: popoverShellRef,
|
|
1076
1038
|
open: "",
|
|
1077
1039
|
class: normalizeClass(popoverShellClass),
|
|
1078
1040
|
style: normalizeStyle(popoverShellStyle.value),
|
|
@@ -1109,8 +1071,9 @@ var tour_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
1109
1071
|
createElementVNode("div", {
|
|
1110
1072
|
ref_key: "arrowRef",
|
|
1111
1073
|
ref: arrowRef,
|
|
1112
|
-
class: normalizeClass([`${unref(prefixCls)}-popover-arrow`, arrowClasses.value])
|
|
1113
|
-
|
|
1074
|
+
class: normalizeClass([`${unref(prefixCls)}-popover-arrow`, arrowClasses.value]),
|
|
1075
|
+
style: normalizeStyle(arrowStyle.value)
|
|
1076
|
+
}, null, 6),
|
|
1114
1077
|
createElementVNode("div", mergeProps({ class: `${unref(prefixCls)}-content` }, resolvedPopover.value.contentProps, { style: resolvedPopover.value.contentStyle }), [hasTitle.value ? (openBlock(), createElementBlock("header", mergeProps({
|
|
1115
1078
|
key: 0,
|
|
1116
1079
|
id: popoverTitleId,
|
package/es/tour/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import type { FloatingOptions } from '../_utils/floating';
|
|
2
3
|
import type { ButtonProps } from '../button/interface';
|
|
3
4
|
export type TourAllowedButton = 'next' | 'previous' | 'close';
|
|
4
5
|
export type TourSide = 'left' | 'right' | 'top' | 'bottom' | 'over';
|
|
@@ -48,6 +49,7 @@ export type TourPopover = {
|
|
|
48
49
|
titleProps?: HTMLAttributes;
|
|
49
50
|
descriptionProps?: HTMLAttributes;
|
|
50
51
|
footerProps?: HTMLAttributes;
|
|
52
|
+
floatingOptions?: FloatingOptions;
|
|
51
53
|
};
|
|
52
54
|
export type TourStep = {
|
|
53
55
|
element?: string | Element | (() => Element | null | undefined) | null;
|
|
@@ -79,6 +81,7 @@ export type TourConfig = {
|
|
|
79
81
|
stagePadding?: number;
|
|
80
82
|
stageRadius?: number;
|
|
81
83
|
popoverOffset?: number;
|
|
84
|
+
floatingOptions?: FloatingOptions;
|
|
82
85
|
showButtons?: TourAllowedButton[];
|
|
83
86
|
disableButtons?: TourAllowedButton[];
|
|
84
87
|
prevBtnText?: string;
|
package/es/transfer/index.d.ts
CHANGED
|
@@ -66,9 +66,9 @@ declare const Transfer: {
|
|
|
66
66
|
"update:modelValue": (_value: string[]) => any;
|
|
67
67
|
"update:selected": (_selected: string[]) => any;
|
|
68
68
|
}, import("vue").PublicProps, {
|
|
69
|
+
disabled: boolean;
|
|
69
70
|
data: import("./interface").TransferItem[];
|
|
70
71
|
title: string[];
|
|
71
|
-
disabled: boolean;
|
|
72
72
|
defaultValue: string[];
|
|
73
73
|
modelValue: string[];
|
|
74
74
|
simple: boolean;
|
|
@@ -142,9 +142,9 @@ declare const Transfer: {
|
|
|
142
142
|
"onUpdate:modelValue"?: ((_value: string[]) => any) | undefined;
|
|
143
143
|
"onUpdate:selected"?: ((_selected: string[]) => any) | undefined;
|
|
144
144
|
}>, {}, {}, {}, {}, {
|
|
145
|
+
disabled: boolean;
|
|
145
146
|
data: import("./interface").TransferItem[];
|
|
146
147
|
title: string[];
|
|
147
|
-
disabled: boolean;
|
|
148
148
|
defaultValue: string[];
|
|
149
149
|
modelValue: string[];
|
|
150
150
|
simple: boolean;
|
|
@@ -221,9 +221,9 @@ declare const Transfer: {
|
|
|
221
221
|
"update:modelValue": (_value: string[]) => any;
|
|
222
222
|
"update:selected": (_selected: string[]) => any;
|
|
223
223
|
}, string, {
|
|
224
|
+
disabled: boolean;
|
|
224
225
|
data: import("./interface").TransferItem[];
|
|
225
226
|
title: string[];
|
|
226
|
-
disabled: boolean;
|
|
227
227
|
defaultValue: string[];
|
|
228
228
|
modelValue: string[];
|
|
229
229
|
simple: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import icon_hover_default from "../_components/icon-hover.js";
|
|
4
4
|
import Input from "../input/index.js";
|
|
@@ -153,9 +153,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
153
153
|
"onUpdate:modelValue"?: ((_value: string[]) => any) | undefined;
|
|
154
154
|
"onUpdate:selected"?: ((_selected: string[]) => any) | undefined;
|
|
155
155
|
}>, {
|
|
156
|
+
disabled: boolean;
|
|
156
157
|
data: TransferItem[];
|
|
157
158
|
title: string[];
|
|
158
|
-
disabled: boolean;
|
|
159
159
|
defaultValue: string[];
|
|
160
160
|
modelValue: string[];
|
|
161
161
|
simple: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
|
-
import
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { useI18n } from "../locale/index.js";
|
|
5
5
|
import Button from "../button/index.js";
|
|
@@ -257,7 +257,8 @@ var transfer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
257
257
|
(_eventHandlers$value = eventHandlers.value) === null || _eventHandlers$value === void 0 || (_eventHandlers$value$ = _eventHandlers$value.onChange) === null || _eventHandlers$value$ === void 0 || _eventHandlers$value$.call(_eventHandlers$value);
|
|
258
258
|
};
|
|
259
259
|
const handleClick = (target) => {
|
|
260
|
-
|
|
260
|
+
const values = target === "target" ? dataInfo.value.sourceInfo.validSelected : dataInfo.value.targetInfo.validSelected;
|
|
261
|
+
moveTo(values, target);
|
|
261
262
|
};
|
|
262
263
|
const handleSelect = (values) => {
|
|
263
264
|
_selected.value = values;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isFunction } from "../_utils/is.js";
|
|
4
4
|
import Ellipsis, { PerformantEllipsis } from "../ellipsis/index.js";
|
|
@@ -9,7 +9,7 @@ import useTreeContext from "./hooks/use-tree-context.js";
|
|
|
9
9
|
import useDraggable$1 from "./hooks/use-draggable.js";
|
|
10
10
|
import useNodeKey from "./hooks/use-node-key.js";
|
|
11
11
|
import node_switcher_default from "./node-switcher.js";
|
|
12
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRefs, unref, useSlots, withCtx } from "vue";
|
|
12
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRefs, unref, useSlots, withCtx } from "vue";
|
|
13
13
|
import { onLongPress, useSwipe } from "@vueuse/core";
|
|
14
14
|
//#region components/tree/base-node.vue?vue&type=script&setup=true&lang.ts
|
|
15
15
|
var _hoisted_1 = [
|
|
@@ -337,13 +337,10 @@ var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
337
337
|
}, [_ctx.$slots.icon || __props.icon || treeNodeIcon.value ? (openBlock(), createElementBlock("span", {
|
|
338
338
|
key: 0,
|
|
339
339
|
class: normalizeClass([`${unref(prefixCls)}-icon`, `${unref(prefixCls)}-custom-icon`])
|
|
340
|
-
}, [_ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", normalizeProps(
|
|
340
|
+
}, [_ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", normalizeProps(guardReactiveProps(nodeStatus)), void 0, void 0, 0) : __props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), normalizeProps(mergeProps({ key: 1 }, nodeStatus)), null, 16)) : treeNodeIcon.value ? (openBlock(), createBlock(resolveDynamicComponent(treeNodeIcon.value), mergeProps({
|
|
341
341
|
key: 2,
|
|
342
342
|
node: treeNodeData.value
|
|
343
|
-
}, nodeStatus), null, 16, ["node"])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true), createElementVNode("span", { class: normalizeClass(titleTextClassNames.value) }, [treeTitle.value ? (openBlock(), createBlock(resolveDynamicComponent(treeTitle.value), { key: 0 })) : _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", {
|
|
344
|
-
key: 1,
|
|
345
|
-
title: __props.title
|
|
346
|
-
}, () => [createTextVNode(toDisplayString(__props.title), 1)]) : shouldRenderEllipsis.value ? (openBlock(), createBlock(resolveDynamicComponent(ellipsisComponent.value), {
|
|
343
|
+
}, nodeStatus), null, 16, ["node"])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true), createElementVNode("span", { class: normalizeClass(titleTextClassNames.value) }, [treeTitle.value ? (openBlock(), createBlock(resolveDynamicComponent(treeTitle.value), { key: 0 })) : _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { title: __props.title }, () => [createTextVNode(toDisplayString(__props.title), 1)], void 0, 1) : shouldRenderEllipsis.value ? (openBlock(), createBlock(resolveDynamicComponent(ellipsisComponent.value), {
|
|
347
344
|
key: 2,
|
|
348
345
|
class: normalizeClass(`${unref(prefixCls)}-title-ellipsis`)
|
|
349
346
|
}, {
|
|
@@ -352,7 +349,7 @@ var base_node_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
352
349
|
}, 8, ["class"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [createTextVNode(toDisplayString(__props.title), 1)], 64)), unref(draggable) ? (openBlock(), createElementBlock("span", {
|
|
353
350
|
key: 4,
|
|
354
351
|
class: normalizeClass([`${unref(prefixCls)}-icon`, `${unref(prefixCls)}-drag-icon`])
|
|
355
|
-
}, [_ctx.$slots["drag-icon"] ? renderSlot(_ctx.$slots, "drag-icon", normalizeProps(
|
|
352
|
+
}, [_ctx.$slots["drag-icon"] ? renderSlot(_ctx.$slots, "drag-icon", normalizeProps(guardReactiveProps(nodeStatus)), void 0, void 0, 0) : __props.dragIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.dragIcon), normalizeProps(mergeProps({ key: 1 }, nodeStatus)), null, 16)) : treeDragIcon.value ? (openBlock(), createBlock(resolveDynamicComponent(treeDragIcon.value), mergeProps({
|
|
356
353
|
key: 2,
|
|
357
354
|
node: treeNodeData.value
|
|
358
355
|
}, nodeStatus), null, 16, ["node"])) : (openBlock(), createBlock(unref(IconDragDotVertical), { key: 3 }))], 2)) : createCommentVNode("", true)], 2)], 42, _hoisted_2),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { Transition, createBlock, defineComponent, openBlock, renderSlot, withCtx } from "vue";
|
|
3
3
|
//#region components/tree/expand-transition.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var expand_transition_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "ExpandTransition" }), {}, {
|