@sdata/web-vue 3.17.0 → 3.18.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/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/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-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +4 -4
- package/es/_hooks/use-cursor.js +4 -2
- package/es/_hooks/use-scrollbar.js +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_vue_type_script_setup_true_lang.js +5 -2
- package/es/anchor/index.js +1 -1
- package/es/auto-complete/auto-complete.d.ts +7 -0
- package/es/auto-complete/auto-complete.js +34 -27
- package/es/auto-complete/index.d.ts +9 -0
- 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 +18 -18
- 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 +54 -54
- 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_vue_type_script_setup_true_lang.js +5 -5
- 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/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_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/cascader-panel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +138 -132
- package/es/cascader/index.js +1 -1
- package/es/cascader/types.d.ts +2 -0
- package/es/checkbox/index.js +1 -1
- package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/index.js +1 -1
- package/es/color-picker/color-picker.d.ts +7 -0
- package/es/color-picker/color-picker.js +15 -10
- package/es/color-picker/index.d.ts +9 -0
- 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/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +9 -0
- package/es/date-picker/index.js +1 -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_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker.vue.d.ts +7 -0
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +10 -5
- 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 +7 -0
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +8 -4
- package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/descriptions/descriptions.js +1 -1
- package/es/descriptions/index.js +1 -1
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue.d.ts +7 -0
- 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_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 +7 -0
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/dropdown.vue.d.ts +7 -0
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/index.d.ts +27 -0
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/interface.d.ts +3 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +5 -5
- 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_vue_type_script_setup_true_lang.js +5 -5
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +3 -2
- 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_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.js +1 -1
- 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-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-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-arrow.vue_vue_type_script_setup_true_lang.js +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.d.ts +3 -3
- package/es/index.js +2 -2
- 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_vue_type_script_setup_true_lang.js +1 -1
- package/es/input/input.js +1 -1
- package/es/input-number/input-number.js +2 -2
- package/es/input-tag/input-tag.js +7 -4
- 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 +2 -0
- 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/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/mention/index.d.ts +9 -0
- package/es/mention/mention.d.ts +7 -0
- package/es/mention/mention.js +9 -2
- 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.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/modal/index.js +2 -2
- 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 +9 -0
- package/es/popconfirm/popconfirm.vue.d.ts +7 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/popover/index.d.ts +9 -0
- package/es/popover/popover.vue.d.ts +7 -0
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/progress/circle.vue_vue_type_script_setup_true_lang.js +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/qr-code.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/radio/index.js +1 -1
- 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/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sd-vue.js +1 -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 +33 -6
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/select/select.d.ts +19 -3
- package/es/select/select.js +64 -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/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/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_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 +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.js +1 -1
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/steps/index.js +1 -1
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +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.js +1 -1
- package/es/table/interface.d.ts +2 -0
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +3 -2
- package/es/table/table.js +5 -3
- package/es/table/utils.js +2 -2
- 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.js +2 -1
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +1 -1
- 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/textarea.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/index.d.ts +9 -0
- package/es/time-picker/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.d.ts +7 -0
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/timeline/index.js +1 -1
- package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/tooltip/interface.d.ts +2 -0
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/tour/index.d.ts +15 -0
- package/es/tour/tour.vue.d.ts +10 -0
- 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/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 -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_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/panel.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +7 -0
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +145 -136
- package/es/trigger/index.d.ts +13 -3
- package/es/trigger/interface.d.ts +2 -0
- package/es/trigger/trigger.d.ts +8 -1
- 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.js +1 -1
- 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/upload.js +2 -2
- package/es/watermark/hooks/use-mutation-observer.js +2 -2
- package/es/watermark/utils/index.js +1 -1
- package/es/watermark/watermark.js +1 -1
- package/json/vetur-attributes.json +9 -0
- package/json/vetur-tags.json +4 -1
- package/json/web-types.json +25 -1
- package/package.json +14 -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 IconCheckCircleFill from "../icon/icon-check-circle-fill/index.js";
|
|
4
4
|
import IconCloseCircleFill from "../icon/icon-close-circle-fill/index.js";
|
|
@@ -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 { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
4
4
|
//#region components/_components/icon-hover.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -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 { isArray, isDayjs, isFunction, isNumber, isUndefined } from "../../_utils/is.js";
|
|
5
5
|
import icon_hover_default from "../icon-hover.js";
|
|
@@ -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 { isDayjs, isFunction } from "../../_utils/is.js";
|
|
5
5
|
import icon_hover_default from "../icon-hover.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import resize_observer_default from "./resize-observer.js";
|
|
3
3
|
import { useI18n } from "../locale/index.js";
|
|
4
4
|
import IconDragDotVertical from "../icon/icon-drag-dot-vertical/index.js";
|
|
@@ -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/_components/transition/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" }), {}, {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { isString } from "../../_utils/is.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import _objectWithoutProperties from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
5
|
+
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/asyncToGenerator.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, unref, watch, withCtx } from "vue";
|
|
7
7
|
import { OverlayScrollbars } from "overlayscrollbars";
|
|
8
8
|
import { Virtualizer } from "virtua/vue";
|
|
@@ -483,7 +483,7 @@ var virtual_list_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
483
483
|
"style"
|
|
484
484
|
])) : createCommentVNode("", true),
|
|
485
485
|
renderSlot(_ctx.$slots, "after"),
|
|
486
|
-
isEmpty.value ? renderSlot(_ctx.$slots, "empty", {
|
|
486
|
+
isEmpty.value ? renderSlot(_ctx.$slots, "empty", {}, void 0, void 0, 1) : createCommentVNode("", true)
|
|
487
487
|
], 38)], 6);
|
|
488
488
|
};
|
|
489
489
|
}
|
package/es/_hooks/use-cursor.js
CHANGED
|
@@ -6,12 +6,14 @@ function useCursor(input) {
|
|
|
6
6
|
if (!input.value) return;
|
|
7
7
|
const { selectionStart, selectionEnd, value } = input.value;
|
|
8
8
|
if (selectionStart == null || selectionEnd == null) return;
|
|
9
|
+
const beforeTxt = value.slice(0, Math.max(0, selectionStart));
|
|
10
|
+
const afterTxt = value.slice(Math.max(0, selectionEnd));
|
|
9
11
|
selectionRef.value = {
|
|
10
12
|
selectionStart,
|
|
11
13
|
selectionEnd,
|
|
12
14
|
value,
|
|
13
|
-
beforeTxt
|
|
14
|
-
afterTxt
|
|
15
|
+
beforeTxt,
|
|
16
|
+
afterTxt
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
function setCursor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isBoolean } from "../_utils/is.js";
|
|
3
3
|
import { computed } from "vue";
|
|
4
4
|
//#region components/_hooks/use-scrollbar.ts
|
package/es/_utils/color.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isString } from "./is.js";
|
|
3
3
|
//#region components/_utils/color.ts
|
|
4
4
|
var gradientType = {
|
|
@@ -193,4 +193,4 @@ var rgbaToHex = (r, g, b, a) => {
|
|
|
193
193
|
].join("").toUpperCase();
|
|
194
194
|
};
|
|
195
195
|
//#endregion
|
|
196
|
-
export { extractColorsFromGradient, formatInputToHSVA, hsvToRgb, isGradientString, rgbToHex, rgbToHsv, rgbaToHex };
|
|
196
|
+
export { convertHexToDecimal, extractColorsFromGradient, formatInputToHSVA, formatInputToRgb, gradientType, hsvToRgb, isGradientString, parseIntFromHex, rgbToHex, rgbToHsv, rgbaToHex };
|
package/es/_utils/date.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isArray, isDayjs, isQuarter } from "./is.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/asyncToGenerator.js";
|
|
4
|
+
import originDayjs from "dayjs";
|
|
5
5
|
import AdvancedFormat from "dayjs/plugin/advancedFormat";
|
|
6
6
|
import customParseFormat from "dayjs/plugin/customParseFormat";
|
|
7
7
|
import isBetween from "dayjs/plugin/isBetween";
|
|
@@ -48,16 +48,16 @@ var overwriteIsDayjs = (_, Dayjs, dayjs) => {
|
|
|
48
48
|
};
|
|
49
49
|
dayjs.isDayjs = isDayjs;
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var dayjs
|
|
51
|
+
originDayjs.extend(overwriteIsDayjs);
|
|
52
|
+
originDayjs.extend(customParseFormat);
|
|
53
|
+
originDayjs.extend(isBetween);
|
|
54
|
+
originDayjs.extend(weekOfYear);
|
|
55
|
+
originDayjs.extend(AdvancedFormat);
|
|
56
|
+
originDayjs.extend(weekYear);
|
|
57
|
+
originDayjs.extend(QuarterOfYear);
|
|
58
|
+
originDayjs.extend(utc);
|
|
59
|
+
originDayjs.extend(timezone);
|
|
60
|
+
var dayjs = originDayjs;
|
|
61
61
|
var DAYJS_LOCALE_MAP = {
|
|
62
62
|
"ar-eg": "ar",
|
|
63
63
|
"de-de": "de",
|
|
@@ -116,7 +116,7 @@ var methods = {
|
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
function getNow(utcOffset, timezone) {
|
|
119
|
-
const now = dayjs
|
|
119
|
+
const now = dayjs();
|
|
120
120
|
if (utcOffset !== void 0) return now.utcOffset(utcOffset);
|
|
121
121
|
if (timezone) return now.tz(timezone);
|
|
122
122
|
return now;
|
|
@@ -155,10 +155,10 @@ function getDayjsValue(time, format, utcOffset, timezone) {
|
|
|
155
155
|
const formatValue = (value) => {
|
|
156
156
|
if (!value) return void 0;
|
|
157
157
|
if (typeof value === "string") {
|
|
158
|
-
if (isQuarter(format)) return dayjs
|
|
159
|
-
if (dayjs
|
|
158
|
+
if (isQuarter(format)) return dayjs(parseQuarterToMonth(value), format.replace(/\[Q]Q/, "MM"));
|
|
159
|
+
if (dayjs(value, format).isValid()) return dayjs(value, format);
|
|
160
160
|
}
|
|
161
|
-
return dayjs
|
|
161
|
+
return dayjs(value);
|
|
162
162
|
};
|
|
163
163
|
if (isArray(time)) return time.map((t) => {
|
|
164
164
|
const parsed = formatValue(t);
|
|
@@ -185,8 +185,8 @@ function _initializeDateLocale() {
|
|
|
185
185
|
if (loader) yield loader();
|
|
186
186
|
loadedLocales.add(dayjsLocaleName);
|
|
187
187
|
}
|
|
188
|
-
const baseLocale = (_dayjs$Ls$dayjsLocale = dayjs
|
|
189
|
-
dayjs
|
|
188
|
+
const baseLocale = (_dayjs$Ls$dayjsLocale = dayjs.Ls[dayjsLocaleName]) !== null && _dayjs$Ls$dayjsLocale !== void 0 ? _dayjs$Ls$dayjsLocale : dayjs.Ls.en;
|
|
189
|
+
dayjs.locale(_objectSpread2(_objectSpread2({}, baseLocale), {}, {
|
|
190
190
|
name: dayjsLocaleName,
|
|
191
191
|
weekStart
|
|
192
192
|
}));
|
|
@@ -194,4 +194,4 @@ function _initializeDateLocale() {
|
|
|
194
194
|
return _initializeDateLocale.apply(this, arguments);
|
|
195
195
|
}
|
|
196
196
|
//#endregion
|
|
197
|
-
export { dayjs
|
|
197
|
+
export { dayjs, getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initializeDateLocale, isValueChange, methods, toLocal };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { UseFloatingOptions } from '@floating-ui/vue';
|
|
2
|
+
import type { Simplify } from 'type-fest';
|
|
3
|
+
import type { Raw } from 'vue';
|
|
4
|
+
export type FloatingOptions = Raw<UseFloatingOptions>;
|
|
5
|
+
export type WithFloatingOptions<T> = Simplify<T & {
|
|
6
|
+
floatingOptions?: FloatingOptions;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function createFloatingOptions(getUserOptions: () => FloatingOptions | undefined, defaults: Readonly<Record<string, unknown>>): FloatingOptions;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region components/_utils/floating.ts
|
|
2
|
+
/**
|
|
3
|
+
* 构造一个 Floating UI options 对象:原样转发 `getUserOptions()` 返回的上游配置,
|
|
4
|
+
* 仅当调用方未提供某字段时,用 `defaults` 里的组件默认值兜底(用户字段优先)。
|
|
5
|
+
*
|
|
6
|
+
* 返回的是一个 Proxy 而非一次性合并后的普通对象,目的是:
|
|
7
|
+
* - `defaults` 与用户配置里传入的 `Ref` / getter / `ComputedRef` 保持响应式——
|
|
8
|
+
* Floating UI 内部用 `toValue()` 解包,每次访问都会读到最新值;
|
|
9
|
+
* - 用户在运行时整体替换 `floatingOptions` 对象时,下一次属性访问会懒加载到新值。
|
|
10
|
+
*
|
|
11
|
+
* 这里实现了 `get` 之外的全部相关 trap(`has` / `ownKeys` /
|
|
12
|
+
* `getOwnPropertyDescriptor`),使 `{...options}`、`Object.keys(options)`、
|
|
13
|
+
* `'x' in options` 等操作和直接读属性的表现一致——即便上游某天改为整体解构配置,
|
|
14
|
+
* 用户字段也不会静默丢失。当前 Floating UI 只做具名属性读取,这些 trap 属于
|
|
15
|
+
* 面向未来的鲁棒性兜底。
|
|
16
|
+
*/
|
|
17
|
+
function createFloatingOptions(getUserOptions, defaults) {
|
|
18
|
+
const defaultKeys = Object.keys(defaults);
|
|
19
|
+
const resolve = (key) => {
|
|
20
|
+
const user = getUserOptions();
|
|
21
|
+
if (user && key in user) return {
|
|
22
|
+
exists: true,
|
|
23
|
+
value: user[key]
|
|
24
|
+
};
|
|
25
|
+
if (key in defaults) return {
|
|
26
|
+
exists: true,
|
|
27
|
+
value: defaults[key]
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
exists: false,
|
|
31
|
+
value: void 0
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
return new Proxy({}, {
|
|
35
|
+
get: (_target, key) => resolve(String(key)).value,
|
|
36
|
+
has: (_target, key) => resolve(String(key)).exists,
|
|
37
|
+
ownKeys: () => {
|
|
38
|
+
const user = getUserOptions();
|
|
39
|
+
return Array.from(/* @__PURE__ */ new Set([...defaultKeys, ...Object.keys(user !== null && user !== void 0 ? user : {})]));
|
|
40
|
+
},
|
|
41
|
+
getOwnPropertyDescriptor: (_target, key) => {
|
|
42
|
+
const result = resolve(String(key));
|
|
43
|
+
if (!result.exists) return;
|
|
44
|
+
return {
|
|
45
|
+
configurable: true,
|
|
46
|
+
enumerable: true,
|
|
47
|
+
writable: true,
|
|
48
|
+
value: result.value
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { createFloatingOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getCurrentInstance, inject } from "vue";
|
|
4
4
|
//#region components/_utils/global-config.ts
|
|
5
5
|
var COMPONENT_PREFIX = "Sd";
|
package/es/_utils/is-equal.js
CHANGED
package/es/_utils/keyboard.js
CHANGED
|
@@ -46,13 +46,14 @@ var getKeyDownHandler = (codeKeyMap) => {
|
|
|
46
46
|
map[stringifyCodeKey(_codeKey)] = callback;
|
|
47
47
|
});
|
|
48
48
|
return (event) => {
|
|
49
|
-
const
|
|
49
|
+
const key = stringifyCodeKey({
|
|
50
50
|
key: event.key,
|
|
51
51
|
ctrl: event.ctrlKey,
|
|
52
52
|
shift: event.shiftKey,
|
|
53
53
|
alt: event.altKey,
|
|
54
54
|
meta: event.metaKey
|
|
55
|
-
})
|
|
55
|
+
});
|
|
56
|
+
const callback = map[key];
|
|
56
57
|
if (callback) {
|
|
57
58
|
event.stopPropagation();
|
|
58
59
|
callback(event);
|
package/es/_utils/omit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region components/_utils/omit.ts
|
|
3
3
|
var omit = (object, path) => {
|
|
4
4
|
const result = _objectSpread2({}, object);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region components/_utils/responsive-observe.ts
|
|
3
3
|
var responsiveArray = [
|
|
4
4
|
"xxl",
|
|
@@ -72,4 +72,4 @@ var responsiveObserve = {
|
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
//#endregion
|
|
75
|
-
export { responsiveObserve as default, responsiveArray };
|
|
75
|
+
export { responsiveObserve as default, responsiveArray, responsiveMap };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region components/_utils/virtual-dropdown.ts
|
|
3
3
|
var DEFAULT_VIRTUAL_DROPDOWN_HEIGHT = "200px";
|
|
4
4
|
function resolveDropdownVirtualListProps(virtualListProps, triggerProps, defaultItemSize) {
|
|
@@ -14,4 +14,4 @@ function resolveDropdownVirtualListProps(virtualListProps, triggerProps, default
|
|
|
14
14
|
return _objectSpread2(_objectSpread2({}, nextVirtualListProps), {}, { height: fallbackHeight });
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
export { resolveDropdownVirtualListProps };
|
|
17
|
+
export { DEFAULT_VIRTUAL_DROPDOWN_HEIGHT, resolveDropdownVirtualListProps };
|
package/es/_utils/vue-utils.js
CHANGED
|
@@ -131,4 +131,4 @@ var getComponentsFromChildren = (children, name) => {
|
|
|
131
131
|
return components;
|
|
132
132
|
};
|
|
133
133
|
//#endregion
|
|
134
|
-
export { getAllElements, getComponentsFromChildren, getFirstComponent, getFirstElementFromChildren, getSlotFunction, isEmptyChildren, isSlotsChildren, mergeFirstChild, unFragment };
|
|
134
|
+
export { getAllElements, getChildrenArray, getComponentsFromChildren, getComponentsFromVNode, getFirstComponent, getFirstElementFromChildren, getFirstElementFromVNode, getSlotFunction, isArrayChildren, isComponent, isElement, isEmptyChildren, isSlotsChildren, isTextChildren, mergeFirstChild, unFragment };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/asyncToGenerator.js
|
|
2
2
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
3
3
|
try {
|
|
4
4
|
var i = n[a](c), u = i.value;
|
|
@@ -24,4 +24,4 @@ function _asyncToGenerator(n) {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
export { _asyncToGenerator };
|
|
27
|
+
export { _asyncToGenerator as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
import toPropertyKey from "./toPropertyKey.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
|
|
3
3
|
function _defineProperty(e, r, t) {
|
|
4
4
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
5
5
|
value: t,
|
|
@@ -9,4 +9,4 @@ function _defineProperty(e, r, t) {
|
|
|
9
9
|
}) : e[r] = t, e;
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
export { _defineProperty };
|
|
12
|
+
export { _defineProperty as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/extends.js
|
|
2
2
|
function _extends() {
|
|
3
3
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
4
4
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -9,4 +9,4 @@ function _extends() {
|
|
|
9
9
|
}, _extends.apply(null, arguments);
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
export { _extends };
|
|
12
|
+
export { _extends as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/objectDestructuringEmpty.js
|
|
2
2
|
function _objectDestructuringEmpty(t) {
|
|
3
3
|
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
4
4
|
}
|
|
5
5
|
//#endregion
|
|
6
|
-
export { _objectDestructuringEmpty };
|
|
6
|
+
export { _objectDestructuringEmpty as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
import _defineProperty from "./defineProperty.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/objectSpread2.js
|
|
3
3
|
function ownKeys(e, r) {
|
|
4
4
|
var t = Object.keys(e);
|
|
5
5
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -22,4 +22,4 @@ function _objectSpread2(e) {
|
|
|
22
22
|
return e;
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
export { _objectSpread2 };
|
|
25
|
+
export { _objectSpread2 as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
import _objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/objectWithoutProperties.js
|
|
3
3
|
function _objectWithoutProperties(e, t) {
|
|
4
4
|
if (null == e) return {};
|
|
5
5
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -10,4 +10,4 @@ function _objectWithoutProperties(e, t) {
|
|
|
10
10
|
return i;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { _objectWithoutProperties };
|
|
13
|
+
export { _objectWithoutProperties as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/objectWithoutPropertiesLoose.js
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3
3
|
if (null == r) return {};
|
|
4
4
|
var t = {};
|
|
@@ -9,4 +9,4 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
9
9
|
return t;
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
export { _objectWithoutPropertiesLoose };
|
|
12
|
+
export { _objectWithoutPropertiesLoose as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
import _typeof from "./typeof.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
|
|
3
3
|
function toPrimitive(t, r) {
|
|
4
4
|
if ("object" != _typeof(t) || !t) return t;
|
|
5
5
|
var e = t[Symbol.toPrimitive];
|
|
@@ -11,4 +11,4 @@ function toPrimitive(t, r) {
|
|
|
11
11
|
return ("string" === r ? String : Number)(t);
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
|
-
export { toPrimitive };
|
|
14
|
+
export { toPrimitive as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _typeof from "./typeof.js";
|
|
2
|
+
import toPrimitive from "./toPrimitive.js";
|
|
3
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
|
|
4
|
+
function toPropertyKey(t) {
|
|
5
|
+
var i = toPrimitive(t, "string");
|
|
6
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { toPropertyKey as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -8,4 +8,4 @@ function _typeof(o) {
|
|
|
8
8
|
}, _typeof(o);
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { _typeof };
|
|
11
|
+
export { _typeof as default };
|
|
@@ -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 { isUndefined, isWindow } from "../_utils/is.js";
|
|
4
4
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
@@ -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 { isActivationKey } from "../_utils/keyboard.js";
|
|
@@ -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 { anchorInjectionKey } from "./context.js";
|
|
4
4
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, normalizeClass, onMounted, openBlock, ref, renderSlot, toDisplayString, unref } from "vue";
|
|
@@ -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 { isNumber, isWindow } from "../_utils/is.js";
|
|
4
4
|
import { getElement, off, on } from "../_utils/dom.js";
|
|
@@ -149,7 +149,10 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
149
149
|
const handleScroll = throttleByRaf(() => {
|
|
150
150
|
if (isScrolling.value) return;
|
|
151
151
|
const element = getFirstInViewportEle();
|
|
152
|
-
if (element && element.id)
|
|
152
|
+
if (element && element.id) {
|
|
153
|
+
const hash = `#${element.id}`;
|
|
154
|
+
handleAnchorChange(hash);
|
|
155
|
+
}
|
|
153
156
|
});
|
|
154
157
|
const handleAnchorChange = (hash) => {
|
|
155
158
|
if (!links[hash] && anchorRef.value) {
|
package/es/anchor/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import type { FloatingOptions } from '../_utils/floating';
|
|
2
3
|
import { VirtualListProps } from '../_components/virtual-list/interface';
|
|
3
4
|
import { FilterOption, SelectOptionData, SelectOptionGroup } from '../select/interface';
|
|
4
5
|
import { TriggerProps } from '../trigger';
|
|
@@ -37,6 +38,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
37
38
|
triggerProps: {
|
|
38
39
|
type: PropType<TriggerProps>;
|
|
39
40
|
};
|
|
41
|
+
floatingOptions: {
|
|
42
|
+
type: PropType<FloatingOptions>;
|
|
43
|
+
};
|
|
40
44
|
allowClear: {
|
|
41
45
|
type: BooleanConstructor;
|
|
42
46
|
default: boolean;
|
|
@@ -93,6 +97,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
93
97
|
triggerProps: {
|
|
94
98
|
type: PropType<TriggerProps>;
|
|
95
99
|
};
|
|
100
|
+
floatingOptions: {
|
|
101
|
+
type: PropType<FloatingOptions>;
|
|
102
|
+
};
|
|
96
103
|
allowClear: {
|
|
97
104
|
type: BooleanConstructor;
|
|
98
105
|
default: boolean;
|
|
@@ -85,6 +85,7 @@ var auto_complete_default = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
* @version 2.14.0
|
|
86
86
|
*/
|
|
87
87
|
triggerProps: { type: Object },
|
|
88
|
+
floatingOptions: { type: Object },
|
|
88
89
|
/**
|
|
89
90
|
* @zh 是否允许清空输入框
|
|
90
91
|
* @en Whether to allow the input to be cleared
|
|
@@ -303,34 +304,40 @@ var auto_complete_default = /* @__PURE__ */ defineComponent({
|
|
|
303
304
|
"footer": slots.footer
|
|
304
305
|
});
|
|
305
306
|
};
|
|
306
|
-
const render = () =>
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}, props.triggerProps, { "onPopupVisibleChange": handlePopupVisibleChange }), {
|
|
318
|
-
default: () => [createVNode(Input, mergeProps({ "ref": inputRef }, attrs, {
|
|
319
|
-
"allowClear": mergedAllowClear.value,
|
|
320
|
-
"modelValue": computedValue.value,
|
|
307
|
+
const render = () => {
|
|
308
|
+
var _props$floatingOption, _props$triggerProps;
|
|
309
|
+
return createVNode(Trigger, mergeProps({
|
|
310
|
+
"trigger": "focus",
|
|
311
|
+
"position": "bl",
|
|
312
|
+
"animationName": "slide-dynamic-origin",
|
|
313
|
+
"autoFitTransformOrigin": true,
|
|
314
|
+
"popupVisible": computedPopupVisible.value,
|
|
315
|
+
"clickToClose": false,
|
|
316
|
+
"preventFocus": true,
|
|
317
|
+
"popupOffset": 4,
|
|
321
318
|
"disabled": mergedDisabled.value,
|
|
322
|
-
"
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
319
|
+
"autoFitPopupWidth": true
|
|
320
|
+
}, props.triggerProps, {
|
|
321
|
+
"floatingOptions": (_props$floatingOption = props.floatingOptions) !== null && _props$floatingOption !== void 0 ? _props$floatingOption : (_props$triggerProps = props.triggerProps) === null || _props$triggerProps === void 0 ? void 0 : _props$triggerProps.floatingOptions,
|
|
322
|
+
"onPopupVisibleChange": handlePopupVisibleChange
|
|
323
|
+
}), {
|
|
324
|
+
default: () => [createVNode(Input, mergeProps({ "ref": inputRef }, attrs, {
|
|
325
|
+
"allowClear": mergedAllowClear.value,
|
|
326
|
+
"modelValue": computedValue.value,
|
|
327
|
+
"disabled": mergedDisabled.value,
|
|
328
|
+
"readonly": props.readonly,
|
|
329
|
+
"inputAttrs": {
|
|
330
|
+
"role": "combobox",
|
|
331
|
+
"aria-haspopup": "listbox",
|
|
332
|
+
"aria-expanded": computedPopupVisible.value,
|
|
333
|
+
"aria-autocomplete": "list"
|
|
334
|
+
},
|
|
335
|
+
"onInput": handleInputValueChange,
|
|
336
|
+
"onClear": handleClear
|
|
337
|
+
}, { onKeydown: handleKeyDown }), slots)],
|
|
338
|
+
content: renderDropdown
|
|
339
|
+
});
|
|
340
|
+
};
|
|
334
341
|
return {
|
|
335
342
|
inputRef,
|
|
336
343
|
render
|