@sdata/web-vue 3.16.1 → 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/dist/sd.css +81 -0
- package/dist/sd.min.css +1 -1
- package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/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.d.ts +8 -4
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +34 -15
- package/es/button/index.d.ts +4 -0
- package/es/button/index.js +1 -1
- package/es/button/style/index.css +11 -0
- package/es/button/style/index.scss +12 -0
- 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/base-cascader-panel.js +1 -1
- package/es/cascader/cascader-column.js +1 -1
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cascader/cascader-search-panel.js +1 -1
- 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/components.d.ts +1 -0
- 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 +2 -2
- 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.js +5 -0
- package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-list/index.js +9 -0
- 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.css +81 -0
- package/es/index.d.ts +5 -3
- package/es/index.js +4 -3
- package/es/index.scss +1 -0
- 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/constants.d.ts +1 -0
- package/es/kv-list/constants.js +127 -0
- package/es/kv-list/index.d.ts +304 -0
- package/es/kv-list/index.js +10 -0
- package/es/kv-list/kv-list-row.js +5 -0
- package/es/kv-list/kv-list-row.vue.d.ts +29 -0
- package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +121 -0
- package/es/kv-list/kv-list.js +5 -0
- package/es/kv-list/kv-list.vue.d.ts +34 -0
- package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +262 -0
- package/es/kv-list/style/css.js +2 -0
- package/es/kv-list/style/index.css +86 -0
- package/es/kv-list/style/index.d.ts +2 -0
- package/es/kv-list/style/index.js +2 -0
- package/es/kv-list/style/index.scss +93 -0
- package/es/kv-list/style/token.scss +14 -0
- package/es/kv-list/types.d.ts +29 -0
- package/es/kv-list/utils.d.ts +8 -0
- package/es/kv-list/utils.js +32 -0
- 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 +2 -2
- package/es/locale/interface.d.ts +11 -0
- package/es/locale/lang/ar-eg.js +2 -0
- package/es/locale/lang/de-de.js +2 -0
- package/es/locale/lang/en-us.js +2 -0
- package/es/locale/lang/es-es.js +2 -0
- package/es/locale/lang/fr-fr.js +2 -0
- package/es/locale/lang/id-id.js +2 -0
- package/es/locale/lang/it-it.js +2 -0
- package/es/locale/lang/ja-jp.js +2 -0
- package/es/locale/lang/km-kh.js +2 -0
- package/es/locale/lang/ko-kr.js +2 -0
- package/es/locale/lang/kv-list.d.ts +2 -0
- package/es/locale/lang/kv-list.js +14 -0
- package/es/locale/lang/ms-my.js +2 -0
- package/es/locale/lang/nl-nl.js +2 -0
- package/es/locale/lang/pt-pt.js +2 -0
- package/es/locale/lang/ru-ru.js +2 -0
- package/es/locale/lang/th-th.js +2 -0
- package/es/locale/lang/vi-vn.js +2 -0
- package/es/locale/lang/zh-cn.js +11 -0
- package/es/locale/lang/zh-tw.js +11 -0
- 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 +4 -2
- 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 +4 -3
- 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 +6 -4
- 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 +2 -2
- 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 +146 -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 +26 -0
- package/json/vetur-tags.json +13 -1
- package/json/web-types.json +72 -1
- package/package.json +15 -13
- package/es/_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/toPropertyKey.js +0 -9
|
@@ -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 { isArray, isFunction, isNull, isUndefined } from "../_utils/is.js";
|
|
4
4
|
import { KEYBOARD_KEY, getKeyDownHandler } from "../_utils/keyboard.js";
|
|
5
5
|
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
@@ -78,6 +78,7 @@ var cascader_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
78
78
|
separator: { default: " / " },
|
|
79
79
|
formatLabel: {},
|
|
80
80
|
triggerProps: {},
|
|
81
|
+
floatingOptions: {},
|
|
81
82
|
checkStrictly: {
|
|
82
83
|
type: Boolean,
|
|
83
84
|
default: false
|
|
@@ -132,7 +133,7 @@ var cascader_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
132
133
|
if (pathMode) return;
|
|
133
134
|
return "";
|
|
134
135
|
};
|
|
135
|
-
const { options, checkStrictly, loadMore, formatLabel, modelValue, disabled, valueKey, expandTrigger, expandChild, pathMode, multiple, popupVisible, show, defaultPopupVisible, defaultShow, error, size, placeholder, loading, maxTagCount, tagNowrap, popupContainer, searchOptionOnlyLabel } = toRefs(props);
|
|
136
|
+
const { options, checkStrictly, loadMore, formatLabel, modelValue, disabled, valueKey, expandTrigger, expandChild, pathMode, multiple, popupVisible, show, defaultPopupVisible, defaultShow, error, size, placeholder, loading, maxTagCount, tagNowrap, popupContainer, floatingOptions, searchOptionOnlyLabel } = toRefs(props);
|
|
136
137
|
const _value = ref((_props$defaultValue = props.defaultValue) !== null && _props$defaultValue !== void 0 ? _props$defaultValue : getDefaultValue(props.multiple, props.pathMode));
|
|
137
138
|
const _inputValue = ref(props.defaultInputValue);
|
|
138
139
|
const instance = getCurrentInstance();
|
|
@@ -393,7 +394,7 @@ var cascader_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
393
394
|
slots,
|
|
394
395
|
valueMap: computedValueMap
|
|
395
396
|
}));
|
|
396
|
-
const handleKeyDown = getKeyDownHandler(new Map([
|
|
397
|
+
const handleKeyDown = getKeyDownHandler(/* @__PURE__ */ new Map([
|
|
397
398
|
[KEYBOARD_KEY.ENTER, (_ev) => {
|
|
398
399
|
if (computedPopupVisible.value) {
|
|
399
400
|
if (activeOption.value) {
|
|
@@ -477,138 +478,143 @@ var cascader_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
477
478
|
content: unref(readonlyTipText),
|
|
478
479
|
position: "top"
|
|
479
480
|
}, {
|
|
480
|
-
default: withCtx(() =>
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
"popup-container": unref(popupContainer),
|
|
490
|
-
"prevent-focus": true,
|
|
491
|
-
"click-to-close": !Boolean(unref(mergedAllowSearch)),
|
|
492
|
-
"aria-has-popup": "menu",
|
|
493
|
-
onPopupVisibleChange: handlePopupVisibleChange
|
|
494
|
-
}), {
|
|
495
|
-
content: withCtx(() => [showSearchPanel.value ? (openBlock(), createBlock(unref(cascader_search_panel_default), {
|
|
496
|
-
key: 0,
|
|
497
|
-
options: filteredLeafOptions.value,
|
|
498
|
-
"active-key": unref(activeKey),
|
|
499
|
-
multiple: unref(multiple),
|
|
500
|
-
"check-strictly": unref(checkStrictly),
|
|
501
|
-
loading: unref(loading),
|
|
502
|
-
"path-label": !unref(searchOptionOnlyLabel)
|
|
503
|
-
}, createSlots({ _: 2 }, [_ctx.$slots.empty ? {
|
|
504
|
-
name: "empty",
|
|
505
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
506
|
-
key: "0"
|
|
507
|
-
} : void 0]), 1032, [
|
|
508
|
-
"options",
|
|
509
|
-
"active-key",
|
|
510
|
-
"multiple",
|
|
511
|
-
"check-strictly",
|
|
512
|
-
"loading",
|
|
513
|
-
"path-label"
|
|
514
|
-
])) : (openBlock(), createBlock(unref(base_cascader_panel_default), {
|
|
515
|
-
key: 1,
|
|
516
|
-
"display-columns": unref(displayColumns),
|
|
517
|
-
"selected-path": unref(selectedPath),
|
|
518
|
-
"active-key": unref(activeKey),
|
|
519
|
-
multiple: unref(multiple),
|
|
520
|
-
"total-level": totalLevel.value,
|
|
521
|
-
"check-strictly": unref(checkStrictly),
|
|
522
|
-
loading: unref(loading),
|
|
523
|
-
"virtual-list-props": resolvedVirtualListProps.value,
|
|
524
|
-
dropdown: ""
|
|
525
|
-
}, createSlots({ _: 2 }, [_ctx.$slots.empty ? {
|
|
526
|
-
name: "empty",
|
|
527
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
528
|
-
key: "0"
|
|
529
|
-
} : void 0]), 1032, [
|
|
530
|
-
"display-columns",
|
|
531
|
-
"selected-path",
|
|
532
|
-
"active-key",
|
|
533
|
-
"multiple",
|
|
534
|
-
"total-level",
|
|
535
|
-
"check-strictly",
|
|
536
|
-
"loading",
|
|
537
|
-
"virtual-list-props"
|
|
538
|
-
]))]),
|
|
539
|
-
default: withCtx(() => [createVNode(unref(select_view_default), mergeProps({
|
|
540
|
-
"model-value": selectViewValue.value,
|
|
541
|
-
"input-value": computedInputValue.value,
|
|
481
|
+
default: withCtx(() => {
|
|
482
|
+
var _unref2;
|
|
483
|
+
return [createVNode(unref(Trigger), mergeProps(mergedTriggerProps.value, {
|
|
484
|
+
"floating-options": (_unref2 = unref(floatingOptions)) !== null && _unref2 !== void 0 ? _unref2 : mergedTriggerProps.value.floatingOptions,
|
|
485
|
+
trigger: "click",
|
|
486
|
+
"animation-name": "slide-dynamic-origin",
|
|
487
|
+
"auto-fit-transform-origin": "",
|
|
488
|
+
"popup-visible": unref(computedPopupVisible),
|
|
489
|
+
position: "bl",
|
|
542
490
|
disabled: unref(mergedDisabled),
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
"
|
|
546
|
-
"
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
_ctx.$slots.label ? {
|
|
563
|
-
name: "label",
|
|
564
|
-
fn: withCtx((data) => [renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps(data)))]),
|
|
491
|
+
"popup-offset": 4,
|
|
492
|
+
"auto-fit-popup-width": showSearchPanel.value,
|
|
493
|
+
"popup-container": unref(popupContainer),
|
|
494
|
+
"prevent-focus": true,
|
|
495
|
+
"click-to-close": !Boolean(unref(mergedAllowSearch)),
|
|
496
|
+
"aria-has-popup": "menu",
|
|
497
|
+
onPopupVisibleChange: handlePopupVisibleChange
|
|
498
|
+
}), {
|
|
499
|
+
content: withCtx(() => [showSearchPanel.value ? (openBlock(), createBlock(unref(cascader_search_panel_default), {
|
|
500
|
+
key: 0,
|
|
501
|
+
options: filteredLeafOptions.value,
|
|
502
|
+
"active-key": unref(activeKey),
|
|
503
|
+
multiple: unref(multiple),
|
|
504
|
+
"check-strictly": unref(checkStrictly),
|
|
505
|
+
loading: unref(loading),
|
|
506
|
+
"path-label": !unref(searchOptionOnlyLabel)
|
|
507
|
+
}, createSlots({ _: 2 }, [_ctx.$slots.empty ? {
|
|
508
|
+
name: "empty",
|
|
509
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
565
510
|
key: "0"
|
|
566
|
-
} : void 0,
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
511
|
+
} : void 0]), 1032, [
|
|
512
|
+
"options",
|
|
513
|
+
"active-key",
|
|
514
|
+
"multiple",
|
|
515
|
+
"check-strictly",
|
|
516
|
+
"loading",
|
|
517
|
+
"path-label"
|
|
518
|
+
])) : (openBlock(), createBlock(unref(base_cascader_panel_default), {
|
|
519
|
+
key: 1,
|
|
520
|
+
"display-columns": unref(displayColumns),
|
|
521
|
+
"selected-path": unref(selectedPath),
|
|
522
|
+
"active-key": unref(activeKey),
|
|
523
|
+
multiple: unref(multiple),
|
|
524
|
+
"total-level": totalLevel.value,
|
|
525
|
+
"check-strictly": unref(checkStrictly),
|
|
526
|
+
loading: unref(loading),
|
|
527
|
+
"virtual-list-props": resolvedVirtualListProps.value,
|
|
528
|
+
dropdown: ""
|
|
529
|
+
}, createSlots({ _: 2 }, [_ctx.$slots.empty ? {
|
|
530
|
+
name: "empty",
|
|
531
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
532
|
+
key: "0"
|
|
533
|
+
} : void 0]), 1032, [
|
|
534
|
+
"display-columns",
|
|
535
|
+
"selected-path",
|
|
536
|
+
"active-key",
|
|
537
|
+
"multiple",
|
|
538
|
+
"total-level",
|
|
539
|
+
"check-strictly",
|
|
540
|
+
"loading",
|
|
541
|
+
"virtual-list-props"
|
|
542
|
+
]))]),
|
|
543
|
+
default: withCtx(() => [createVNode(unref(select_view_default), mergeProps({
|
|
544
|
+
"model-value": selectViewValue.value,
|
|
545
|
+
"input-value": computedInputValue.value,
|
|
546
|
+
disabled: unref(mergedDisabled),
|
|
547
|
+
error: unref(error),
|
|
548
|
+
multiple: unref(multiple),
|
|
549
|
+
"allow-clear": unref(mergedAllowClear),
|
|
550
|
+
"allow-search": Boolean(unref(mergedAllowSearch)),
|
|
551
|
+
size: unref(size),
|
|
552
|
+
opened: unref(computedPopupVisible),
|
|
553
|
+
placeholder: unref(placeholder),
|
|
554
|
+
loading: unref(loading),
|
|
555
|
+
"max-tag-count": unref(maxTagCount),
|
|
556
|
+
"tag-nowrap": unref(tagNowrap),
|
|
557
|
+
"input-attrs": triggerInputAttrs.value
|
|
558
|
+
}, unref(attrs), {
|
|
559
|
+
onInputValueChange: handleInputValueChange,
|
|
560
|
+
onClear: handleClear,
|
|
561
|
+
onFocus: handleFocus,
|
|
562
|
+
onBlur: handleBlur,
|
|
563
|
+
onRemove: handleRemove,
|
|
564
|
+
onKeydown: unref(handleKeyDown)
|
|
565
|
+
}), createSlots({ _: 2 }, [
|
|
566
|
+
_ctx.$slots.label ? {
|
|
567
|
+
name: "label",
|
|
568
|
+
fn: withCtx((data) => [renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps(data)))]),
|
|
569
|
+
key: "0"
|
|
570
|
+
} : void 0,
|
|
571
|
+
_ctx.$slots.prefix ? {
|
|
572
|
+
name: "prefix",
|
|
573
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "prefix")]),
|
|
574
|
+
key: "1"
|
|
575
|
+
} : void 0,
|
|
576
|
+
_ctx.$slots["arrow-icon"] ? {
|
|
577
|
+
name: "arrow-icon",
|
|
578
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "arrow-icon")]),
|
|
579
|
+
key: "2"
|
|
580
|
+
} : void 0,
|
|
581
|
+
_ctx.$slots["loading-icon"] ? {
|
|
582
|
+
name: "loading-icon",
|
|
583
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "loading-icon")]),
|
|
584
|
+
key: "3"
|
|
585
|
+
} : void 0,
|
|
586
|
+
_ctx.$slots["search-icon"] ? {
|
|
587
|
+
name: "search-icon",
|
|
588
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "search-icon")]),
|
|
589
|
+
key: "4"
|
|
590
|
+
} : void 0
|
|
591
|
+
]), 1040, [
|
|
592
|
+
"model-value",
|
|
593
|
+
"input-value",
|
|
594
|
+
"disabled",
|
|
595
|
+
"error",
|
|
596
|
+
"multiple",
|
|
597
|
+
"allow-clear",
|
|
598
|
+
"allow-search",
|
|
599
|
+
"size",
|
|
600
|
+
"opened",
|
|
601
|
+
"placeholder",
|
|
602
|
+
"loading",
|
|
603
|
+
"max-tag-count",
|
|
604
|
+
"tag-nowrap",
|
|
605
|
+
"input-attrs",
|
|
606
|
+
"onKeydown"
|
|
607
|
+
])]),
|
|
608
|
+
_: 3
|
|
609
|
+
}, 16, [
|
|
610
|
+
"floating-options",
|
|
611
|
+
"popup-visible",
|
|
590
612
|
"disabled",
|
|
591
|
-
"
|
|
592
|
-
"
|
|
593
|
-
"
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
"opened",
|
|
597
|
-
"placeholder",
|
|
598
|
-
"loading",
|
|
599
|
-
"max-tag-count",
|
|
600
|
-
"tag-nowrap",
|
|
601
|
-
"input-attrs",
|
|
602
|
-
"onKeydown"
|
|
603
|
-
])]),
|
|
604
|
-
_: 3
|
|
605
|
-
}, 16, [
|
|
606
|
-
"popup-visible",
|
|
607
|
-
"disabled",
|
|
608
|
-
"auto-fit-popup-width",
|
|
609
|
-
"popup-container",
|
|
610
|
-
"click-to-close"
|
|
611
|
-
])]),
|
|
613
|
+
"auto-fit-popup-width",
|
|
614
|
+
"popup-container",
|
|
615
|
+
"click-to-close"
|
|
616
|
+
])];
|
|
617
|
+
}),
|
|
612
618
|
_: 3
|
|
613
619
|
}, 8, ["popup-visible", "content"]);
|
|
614
620
|
};
|
package/es/cascader/index.js
CHANGED
package/es/cascader/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { VirtualListProps } from '../_components/virtual-list/interface';
|
|
2
2
|
import type { Size } from '../_utils/constant';
|
|
3
|
+
import type { FloatingOptions } from '../_utils/floating';
|
|
3
4
|
import type { TriggerProps } from '../trigger';
|
|
4
5
|
import type { CascaderFallback, CascaderFieldNames, CascaderFormatLabel, CascaderLoadMore, CascaderModelValue, CascaderOption } from './interface';
|
|
5
6
|
export type CascaderExpandTrigger = 'click' | 'hover';
|
|
@@ -32,6 +33,7 @@ export interface CascaderProps {
|
|
|
32
33
|
separator?: string;
|
|
33
34
|
formatLabel?: CascaderFormatLabel;
|
|
34
35
|
triggerProps?: TriggerProps;
|
|
36
|
+
floatingOptions?: FloatingOptions;
|
|
35
37
|
checkStrictly?: boolean;
|
|
36
38
|
loadMore?: CascaderLoadMore;
|
|
37
39
|
loading?: boolean;
|
package/es/checkbox/index.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 { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isArray } from "../_utils/is.js";
|
|
4
4
|
import { collapseKey } from "./context.js";
|
package/es/collapse/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import type { FloatingOptions } from '../_utils/floating';
|
|
2
3
|
import { Size } from '../_utils/constant';
|
|
3
4
|
import { TriggerProps } from '../trigger';
|
|
4
5
|
import { ColorFormat, ColorModes, ColorObject, ColorPickerChangeTrigger, LegacyFormat, RecentColorsValue } from './interface';
|
|
@@ -58,6 +59,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
58
59
|
triggerProps: {
|
|
59
60
|
type: PropType<Partial<TriggerProps>>;
|
|
60
61
|
};
|
|
62
|
+
floatingOptions: {
|
|
63
|
+
type: PropType<FloatingOptions>;
|
|
64
|
+
};
|
|
61
65
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
66
|
'update:modelValue': (_value: string) => true;
|
|
63
67
|
change: (_value: string, _context: {
|
|
@@ -128,6 +132,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
128
132
|
triggerProps: {
|
|
129
133
|
type: PropType<Partial<TriggerProps>>;
|
|
130
134
|
};
|
|
135
|
+
floatingOptions: {
|
|
136
|
+
type: PropType<FloatingOptions>;
|
|
137
|
+
};
|
|
131
138
|
}>> & Readonly<{
|
|
132
139
|
onClear?: ((_context: {
|
|
133
140
|
e: MouseEvent;
|
|
@@ -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 { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { useReadonlyTip, useReadonlyTipText } from "../_hooks/use-readonly-tip.js";
|
|
5
5
|
import Trigger from "../trigger/index.js";
|
|
@@ -119,7 +119,8 @@ var color_picker_default = /* @__PURE__ */ defineComponent({
|
|
|
119
119
|
* @zh 透传 Trigger 组件属性
|
|
120
120
|
* @en Trigger props
|
|
121
121
|
*/
|
|
122
|
-
triggerProps: { type: Object }
|
|
122
|
+
triggerProps: { type: Object },
|
|
123
|
+
floatingOptions: { type: Object }
|
|
123
124
|
},
|
|
124
125
|
emits: {
|
|
125
126
|
"update:modelValue": (_value) => true,
|
|
@@ -200,7 +201,8 @@ var color_picker_default = /* @__PURE__ */ defineComponent({
|
|
|
200
201
|
handleClear(new MouseEvent("click"));
|
|
201
202
|
return;
|
|
202
203
|
}
|
|
203
|
-
|
|
204
|
+
const nextState = parseColorState(value, props.colorModes);
|
|
205
|
+
handleColorChange(formatColorState(nextState, normalizedFormat.value, mergedEnableAlpha.value), "input");
|
|
204
206
|
};
|
|
205
207
|
const onPopupVisibleChange = (visible) => {
|
|
206
208
|
popupVisible.value = visible;
|
|
@@ -208,13 +210,16 @@ var color_picker_default = /* @__PURE__ */ defineComponent({
|
|
|
208
210
|
};
|
|
209
211
|
const { tipVisible, show: showReadonlyTip } = useReadonlyTip(toRef(props, "readonly"), toRef(props, "disabled"));
|
|
210
212
|
const readonlyTipText = useReadonlyTipText(toRef(props, "readonly"));
|
|
211
|
-
const mergedTriggerProps = computed(() =>
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
213
|
+
const mergedTriggerProps = computed(() => {
|
|
214
|
+
var _props$floatingOption, _props$triggerProps;
|
|
215
|
+
return _objectSpread2(_objectSpread2({
|
|
216
|
+
trigger: "click",
|
|
217
|
+
position: "bl",
|
|
218
|
+
disabled: props.disabled || !!props.readonly,
|
|
219
|
+
popupOffset: 4,
|
|
220
|
+
animationName: "slide-dynamic-origin"
|
|
221
|
+
}, props.triggerProps), {}, { 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 });
|
|
222
|
+
});
|
|
218
223
|
const renderTriggerInput = () => {
|
|
219
224
|
return createVNode("div", {
|
|
220
225
|
"class": {
|
|
@@ -58,6 +58,9 @@ declare const ColorPicker: {
|
|
|
58
58
|
triggerProps: {
|
|
59
59
|
type: import("vue").PropType<Partial<import("..").TriggerProps>>;
|
|
60
60
|
};
|
|
61
|
+
floatingOptions: {
|
|
62
|
+
type: import("vue").PropType<import("..").FloatingOptions>;
|
|
63
|
+
};
|
|
61
64
|
}>> & Readonly<{
|
|
62
65
|
onClear?: ((_context: {
|
|
63
66
|
e: MouseEvent;
|
|
@@ -165,6 +168,9 @@ declare const ColorPicker: {
|
|
|
165
168
|
triggerProps: {
|
|
166
169
|
type: import("vue").PropType<Partial<import("..").TriggerProps>>;
|
|
167
170
|
};
|
|
171
|
+
floatingOptions: {
|
|
172
|
+
type: import("vue").PropType<import("..").FloatingOptions>;
|
|
173
|
+
};
|
|
168
174
|
}>> & Readonly<{
|
|
169
175
|
onClear?: ((_context: {
|
|
170
176
|
e: MouseEvent;
|
|
@@ -255,6 +261,9 @@ declare const ColorPicker: {
|
|
|
255
261
|
triggerProps: {
|
|
256
262
|
type: import("vue").PropType<Partial<import("..").TriggerProps>>;
|
|
257
263
|
};
|
|
264
|
+
floatingOptions: {
|
|
265
|
+
type: import("vue").PropType<import("..").FloatingOptions>;
|
|
266
|
+
};
|
|
258
267
|
}>> & Readonly<{
|
|
259
268
|
onClear?: ((_context: {
|
|
260
269
|
e: MouseEvent;
|
package/es/color-picker/panel.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 { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { useI18n } from "../locale/index.js";
|
|
4
4
|
import input_group_default from "../input/input-group.js";
|
|
@@ -284,7 +284,8 @@ var panel_default = /* @__PURE__ */ defineComponent({
|
|
|
284
284
|
formatDrafts.value = nextDrafts;
|
|
285
285
|
};
|
|
286
286
|
const commitDrafts = () => {
|
|
287
|
-
|
|
287
|
+
const nextHsva = parseFormatInputValues(formatDrafts.value, selectedFormat.value, props.enableAlpha);
|
|
288
|
+
handleHsvaChange(nextHsva, "input");
|
|
288
289
|
};
|
|
289
290
|
const getThumbTrackRect = () => {
|
|
290
291
|
const slider = sliderRef.value || gradientShellRef.value;
|
|
@@ -440,7 +441,8 @@ var panel_default = /* @__PURE__ */ defineComponent({
|
|
|
440
441
|
"color": colorModel.value,
|
|
441
442
|
"colorString": formatColor(activeHsva.value, "CSS", true),
|
|
442
443
|
"onChange": (h) => {
|
|
443
|
-
|
|
444
|
+
const next = _objectSpread2(_objectSpread2({}, activeHsva.value), {}, { h });
|
|
445
|
+
handleHsvaChange(next, "palette-hue-bar", true);
|
|
444
446
|
}
|
|
445
447
|
}, null), props.enableAlpha && createVNode(control_bar_default, {
|
|
446
448
|
"type": "alpha",
|
|
@@ -448,7 +450,8 @@ var panel_default = /* @__PURE__ */ defineComponent({
|
|
|
448
450
|
"color": colorModel.value,
|
|
449
451
|
"colorString": formatColor(activeHsva.value, "CSS", true),
|
|
450
452
|
"onChange": (alpha) => {
|
|
451
|
-
|
|
453
|
+
const next = _objectSpread2(_objectSpread2({}, activeHsva.value), {}, { a: alpha });
|
|
454
|
+
handleHsvaChange(next, "palette-alpha-bar", true);
|
|
452
455
|
}
|
|
453
456
|
}, null)]), props.showPrimaryColorPreview && createVNode("div", {
|
|
454
457
|
"class": `${prefixCls}-preview`,
|
package/es/color-picker/utils.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 { formatInputToHSVA, hsvToRgb, rgbToHex, rgbToHsv, rgbaToHex } from "../_utils/color.js";
|
|
3
3
|
//#region components/color-picker/utils.ts
|
|
4
4
|
var DEFAULT_HSVA = {
|
|
@@ -7,6 +7,7 @@ var DEFAULT_HSVA = {
|
|
|
7
7
|
v: 1,
|
|
8
8
|
a: 1
|
|
9
9
|
};
|
|
10
|
+
var DEFAULT_LINEAR_GRADIENT = "linear-gradient(90deg, rgba(0, 82, 217, 1) 0%, rgba(255, 255, 255, 1) 100%)";
|
|
10
11
|
var HSL_REGEXP = /^hsla?\((.+)\)$/i;
|
|
11
12
|
var HSV_REGEXP = /^hsva?\((.+)\)$/i;
|
|
12
13
|
var CMYK_REGEXP = /^cmyk\((.+)\)$/i;
|
|
@@ -453,4 +454,4 @@ var parseFormatInputValues = (values, format, enableAlpha) => {
|
|
|
453
454
|
}
|
|
454
455
|
};
|
|
455
456
|
//#endregion
|
|
456
|
-
export { addGradientColor, formatColor, formatColorState, getActiveGradientPoint, getColorBackground, getColorObject, getDefaultColorState, getDefaultGradientState, getFormatInputs, getGradientThumbBackground, getLinearGradientString, normalizeFormat, parseColorState, parseFormatInputValues, removeGradientColor, round, setActiveColorHsva, setGradientColors, setGradientDegree, setGradientSelectedPoint };
|
|
457
|
+
export { DEFAULT_LINEAR_GRADIENT, addGradientColor, createGradientPoint, formatColor, formatColorState, getActiveGradientPoint, getColorBackground, getColorMode, getColorObject, getDefaultColorState, getDefaultGradientState, getFormatInputs, getGradientThumbBackground, getLinearGradientString, hslToRgb, isGradientColor, normalizeFormat, parseColor, parseColorState, parseFormatInputValues, parseGradientString, removeGradientColor, rgbToHsl, round, setActiveColorHsva, setGradientColors, setGradientDegree, setGradientSelectedPoint };
|
|
@@ -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 { isString } from "../_utils/is.js";
|
|
4
4
|
import { hasPropOrSlot } from "../_utils/use-prop-or-slot.js";
|
|
@@ -91,21 +91,21 @@ var comment_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
91
91
|
key: 0,
|
|
92
92
|
src: __props.avatar,
|
|
93
93
|
alt: "comment-avatar"
|
|
94
|
-
}, null, 8, _hoisted_1)) : renderSlot(_ctx.$slots, "avatar", {
|
|
94
|
+
}, null, 8, _hoisted_1)) : renderSlot(_ctx.$slots, "avatar", {}, void 0, void 0, 1)], 2)) : createCommentVNode("", true), createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-inner`) }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-inner-content`) }, [
|
|
95
95
|
unref(hasAuthor) || unref(hasDatetime) ? (openBlock(), createElementBlock("div", {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: normalizeClass(`${unref(prefixCls)}-title ${unref(prefixCls)}-title-align-${computedAlign.value.datetime}`)
|
|
98
98
|
}, [unref(hasAuthor) ? (openBlock(), createElementBlock("span", {
|
|
99
99
|
key: 0,
|
|
100
100
|
class: normalizeClass(`${unref(prefixCls)}-author`)
|
|
101
|
-
}, [__props.author ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.author), 1)) : renderSlot(_ctx.$slots, "author", {
|
|
101
|
+
}, [__props.author ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.author), 1)) : renderSlot(_ctx.$slots, "author", {}, void 0, void 0, 1)], 2)) : createCommentVNode("", true), unref(hasDatetime) ? (openBlock(), createElementBlock("span", {
|
|
102
102
|
key: 1,
|
|
103
103
|
class: normalizeClass(`${unref(prefixCls)}-datetime`)
|
|
104
|
-
}, [__props.datetime ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.datetime), 1)) : renderSlot(_ctx.$slots, "datetime", {
|
|
104
|
+
}, [__props.datetime ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.datetime), 1)) : renderSlot(_ctx.$slots, "datetime", {}, void 0, void 0, 1)], 2)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
|
|
105
105
|
unref(hasContent) ? (openBlock(), createElementBlock("div", {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: normalizeClass(`${unref(prefixCls)}-content`)
|
|
108
|
-
}, [__props.content ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.content), 1)) : renderSlot(_ctx.$slots, "content", {
|
|
108
|
+
}, [__props.content ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.content), 1)) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)], 2)) : createCommentVNode("", true),
|
|
109
109
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", {
|
|
110
110
|
key: 2,
|
|
111
111
|
class: normalizeClass(`${unref(prefixCls)}-actions ${unref(prefixCls)}-actions-align-${computedAlign.value.actions}`)
|
package/es/components.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "./context.js";
|
|
2
|
-
import
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { normalizeTheme } from "./theme.js";
|
|
4
4
|
import theme_provider_default from "./theme-provider.js";
|
|
5
5
|
import { createBlock, defineComponent, getCurrentInstance, openBlock, provide, reactive, renderSlot, toRefs, useSlots, watch, withCtx } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { themePopupContainerInjectionKey } from "./context.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 usePopupManager from "../_hooks/use-popup-manager.js";
|
|
5
5
|
import { applyThemeCSSVariables, clearThemeCSSVariables, normalizeTheme } from "./theme.js";
|
|
@@ -140,7 +140,7 @@ var theme_provider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
140
140
|
}, {
|
|
141
141
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
142
142
|
_: 3
|
|
143
|
-
}, 8, ["class"])) : renderSlot(_ctx.$slots, "default", {
|
|
143
|
+
}, 8, ["class"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region components/config-provider/theme.ts
|
|
3
3
|
var DEFAULT_THEME_META = {
|
|
4
4
|
schemaVersion: 1,
|
|
5
5
|
cssVarPrefix: "--"
|
|
6
6
|
};
|
|
7
|
-
var RESERVED_THEME_KEYS = new Set([
|
|
7
|
+
var RESERVED_THEME_KEYS = /* @__PURE__ */ new Set([
|
|
8
8
|
"tokens",
|
|
9
9
|
"components",
|
|
10
10
|
"meta",
|
|
@@ -87,4 +87,4 @@ function clearThemeCSSVariables(target, keys) {
|
|
|
87
87
|
for (const key of keys) target.style.removeProperty(key);
|
|
88
88
|
}
|
|
89
89
|
//#endregion
|
|
90
|
-
export { applyThemeCSSVariables, clearThemeCSSVariables, normalizeTheme };
|
|
90
|
+
export { applyThemeCSSVariables, clearThemeCSSVariables, getThemeCSSVariables, normalizeTheme, normalizeTokenKey };
|
|
@@ -1,6 +1,6 @@
|
|
|
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 Tooltip from "../tooltip/index.js";
|
|
5
5
|
import Button from "../button/index.js";
|
|
6
6
|
import Link from "../link/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, nextTick, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, unref, useAttrs, watch } from "vue";
|
|
5
5
|
import { isNumber, isString } from "es-toolkit";
|
|
6
6
|
//#region components/cropper/cropper.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isArray } from "../../_utils/is.js";
|
|
3
3
|
import useTimePickerValue from "./use-time-picker-value.js";
|
|
4
4
|
import { computed, reactive, toRefs } from "vue";
|