@sdata/web-vue 1.19.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/dist/sd.css +4083 -2512
- package/dist/sd.min.css +1 -1
- package/es/_components/feedback-icon.js +1 -1
- package/es/_components/icon-hover.js +9 -6
- package/es/_components/icon-hover.vue.d.ts +5 -3
- package/es/_components/icon-hover.vue_vue_type_script_lang.js +1 -0
- package/es/_components/input-label/input-label.d.ts +1 -1
- package/es/_components/input-label/style/index.css +27 -27
- package/es/_components/picker/input-range.js +1 -1
- package/es/_components/picker/input-range.vue.d.ts +6 -4
- package/es/_components/picker/input.js +1 -1
- package/es/_components/picker/input.vue.d.ts +6 -4
- package/es/_components/resize-trigger.js +1 -1
- package/es/_components/select-view/select-view.d.ts +3 -3
- package/es/_components/select-view/style/index.css +199 -199
- package/es/_components/transition/expand-transition.js +1 -1
- package/es/_components/virtual-list/virtual-list.js +1 -1
- package/es/_components/virtual-list/virtual-list.vue.d.ts +8 -5
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +9 -16
- package/es/_hooks/use-form-item.d.ts +1 -1
- package/es/_hooks/use-input.d.ts +1 -1
- package/es/_hooks/use-pagination.d.ts +7 -4
- package/es/_hooks/use-popup-overflow-hidden.js +2 -1
- package/es/_hooks/use-scrollbar.d.ts +2 -3
- package/es/_hooks/use-scrollbar.js +4 -8
- package/es/_hooks/use-size.d.ts +1 -1
- package/es/_utils/color.d.ts +9 -0
- package/es/_utils/color.js +38 -2
- package/es/_utils/date.d.ts +1 -2
- package/es/_utils/date.js +74 -25
- package/es/_utils/debounce.d.ts +1 -1
- package/es/_utils/get-value-by-path.d.ts +2 -2
- package/es/_utils/global-config.d.ts +4 -0
- package/es/_utils/global-config.js +10 -2
- package/es/_utils/is-equal.js +1 -1
- package/es/_utils/is.d.ts +3 -3
- package/es/_utils/is.js +1 -1
- package/es/_utils/omit.d.ts +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/pick.d.ts +1 -1
- package/es/_utils/pick.js +1 -2
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/throttle-by-raf.d.ts +2 -2
- package/es/_utils/types.d.ts +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/typeof.js +1 -1
- package/es/affix/affix.js +1 -1
- package/es/affix/affix.vue.d.ts +1 -1
- package/es/affix/affix.vue_vue_type_script_lang.js +1 -1
- package/es/affix/index.d.ts +3 -3
- package/es/alert/alert.js +1 -1
- package/es/alert/alert.vue.d.ts +5 -3
- package/es/alert/index.d.ts +10 -6
- package/es/alert/style/index.css +28 -28
- package/es/anchor/anchor-link.js +1 -1
- package/es/anchor/anchor.js +1 -1
- package/es/anchor/style/index.css +9 -9
- package/es/auto-complete/auto-complete.d.ts +3 -3
- package/es/auto-complete/auto-complete.js +25 -12
- package/es/auto-complete/index.d.ts +9 -9
- package/es/auto-complete/style/index.css +3 -3
- package/es/avatar/avatar.js +1 -1
- package/es/avatar/avatar.vue_vue_type_script_lang.js +1 -1
- package/es/avatar/style/index.css +15 -15
- package/es/back-top/back-top.js +1 -1
- package/es/back-top/style/index.css +4 -4
- package/es/badge/badge.d.ts +1 -1
- package/es/badge/badge.js +1 -1
- package/es/badge/index.d.ts +3 -3
- package/es/badge/style/index.css +25 -25
- package/es/breadcrumb/style/index.css +12 -12
- package/es/button/button-group.js +1 -1
- package/es/button/button.js +1 -1
- package/es/button/button.vue.d.ts +2 -2
- package/es/button/index.d.ts +6 -6
- package/es/button/style/index.css +37 -37
- package/es/calendar/components/body.js +5 -0
- package/es/calendar/components/body.vue.d.ts +100 -0
- package/es/calendar/components/body.vue_vue_type_script_setup_true_lang.js +158 -0
- package/es/calendar/components/cell.js +5 -0
- package/es/calendar/components/cell.vue.d.ts +220 -0
- package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +813 -0
- package/es/calendar/components/event.js +5 -0
- package/es/calendar/components/event.vue.d.ts +73 -0
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +291 -0
- package/es/calendar/components/header.js +5 -0
- package/es/calendar/components/header.vue.d.ts +34 -0
- package/es/calendar/components/header.vue_vue_type_script_setup_true_lang.js +84 -0
- package/es/calendar/components/headings-bar.js +5 -0
- package/es/calendar/components/headings-bar.vue.d.ts +40 -0
- package/es/calendar/components/headings-bar.vue_vue_type_script_setup_true_lang.js +201 -0
- package/es/calendar/components/index.js +5 -0
- package/es/calendar/components/index.vue.d.ts +616 -0
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +314 -0
- package/es/calendar/components/time-column.js +5 -0
- package/es/calendar/components/time-column.vue.d.ts +27 -0
- package/es/calendar/components/time-column.vue_vue_type_script_setup_true_lang.js +66 -0
- package/es/calendar/context.d.ts +17 -0
- package/es/calendar/context.js +5 -0
- package/es/calendar/core/config.d.ts +126 -0
- package/es/calendar/core/config.js +522 -0
- package/es/calendar/core/events.d.ts +1 -0
- package/es/calendar/core/events.js +921 -0
- package/es/calendar/core/i18n.d.ts +1 -0
- package/es/calendar/core/i18n.js +72 -0
- package/es/calendar/core/index.d.ts +112 -0
- package/es/calendar/core/index.js +66 -0
- package/es/calendar/core/props-definitions.d.ts +263 -0
- package/es/calendar/core/props-definitions.js +70 -0
- package/es/calendar/core/view.d.ts +60 -0
- package/es/calendar/core/view.js +761 -0
- package/es/calendar/default-theme.scss +1012 -0
- package/es/calendar/hooks/use-calendar-theme.d.ts +4 -0
- package/es/calendar/hooks/use-calendar-theme.js +32 -0
- package/es/calendar/index.d.ts +836 -98
- package/es/calendar/index.js +3 -3
- package/es/calendar/index.scss +331 -0
- package/es/calendar/modules/drag-and-drop.d.ts +8 -0
- package/es/calendar/modules/drag-and-drop.js +442 -0
- package/es/calendar/style/body.scss +51 -0
- package/es/calendar/style/cell.scss +153 -0
- package/es/calendar/style/css.js +0 -1
- package/es/calendar/style/event.scss +69 -0
- package/es/calendar/style/header.scss +104 -0
- package/es/calendar/style/headings-bar.scss +94 -0
- package/es/calendar/style/index.css +1514 -264
- package/es/calendar/style/index.d.ts +1 -3
- package/es/calendar/style/index.js +0 -1
- package/es/calendar/style/index.scss +9 -496
- package/es/calendar/style/time-column.scss +109 -0
- package/es/calendar/style/token.scss +64 -60
- package/es/calendar/utils/conversions.d.ts +3 -0
- package/es/calendar/utils/conversions.js +31 -0
- package/es/calendar/utils/date.d.ts +26 -0
- package/es/calendar/utils/date.js +253 -0
- package/es/calendar/utils/special-hours-allow-events.d.ts +28 -0
- package/es/calendar/utils/special-hours-allow-events.js +230 -0
- package/es/card/card-grid.js +1 -1
- package/es/card/style/index.css +16 -16
- package/es/carousel/carousel-arrow.js +1 -1
- package/es/carousel/carousel-indicator.js +1 -1
- package/es/carousel/carousel-indicator.vue.d.ts +1 -1
- package/es/carousel/carousel-item.js +1 -1
- package/es/carousel/carousel.js +1 -1
- package/es/carousel/style/index.css +11 -11
- package/es/cascader/base-cascader-panel.js +4 -5
- package/es/cascader/cascader-option.d.ts +1 -1
- package/es/cascader/cascader-option.js +7 -9
- package/es/cascader/cascader-panel.vue.d.ts +1 -1
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cascader/cascader.vue.d.ts +5 -5
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/cascader/style/index.css +36 -36
- package/es/checkbox/checkbox.d.ts +5 -3
- package/es/checkbox/index.d.ts +10 -6
- package/es/checkbox/style/index.css +18 -18
- package/es/collapse/collapse-item.d.ts +5 -3
- package/es/collapse/collapse.js +1 -1
- package/es/collapse/index.d.ts +5 -3
- package/es/collapse/style/index.css +15 -15
- package/es/color-picker/color-picker.d.ts +1 -1
- package/es/color-picker/color-picker.js +1 -1
- package/es/color-picker/index.d.ts +3 -3
- package/es/color-picker/palette.js +1 -1
- package/es/color-picker/panel.d.ts +1 -1
- package/es/color-picker/panel.js +2 -2
- package/es/color-picker/style/index.css +13 -13
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.js +2 -2
- package/es/comment/style/index.css +5 -5
- package/es/components.d.ts +2 -2
- package/es/config-provider/config-provider.js +1 -1
- package/es/config-provider/config-provider.vue.d.ts +1 -1
- package/es/config-provider/context.d.ts +3 -0
- package/es/config-provider/index.d.ts +3 -3
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/config-provider/theme.js +1 -1
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/cropper/style/index.css +3 -3
- package/es/date-picker/context.d.ts +1 -1
- package/es/date-picker/hooks/use-inject-datepicker-transform.d.ts +1 -1
- package/es/date-picker/hooks/use-provide-datepicker-transform.d.ts +1 -1
- package/es/date-picker/hooks/use-range-header-value.d.ts +3 -3
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/index.d.ts +63 -61
- package/es/date-picker/interface.d.ts +1 -1
- package/es/date-picker/panels/body.js +1 -1
- package/es/date-picker/panels/date/index.js +2 -2
- package/es/date-picker/panels/date/index.vue.d.ts +8 -8
- package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/footer.js +1 -1
- package/es/date-picker/panels/footer.vue.d.ts +10 -10
- package/es/date-picker/panels/header.js +1 -1
- package/es/date-picker/panels/month/index.js +2 -2
- package/es/date-picker/panels/month/index.vue.d.ts +1 -1
- package/es/date-picker/panels/quarter/index.js +2 -2
- package/es/date-picker/panels/shortcuts.js +1 -1
- package/es/date-picker/panels/shortcuts.vue.d.ts +7 -7
- package/es/date-picker/panels/week/index.js +1 -1
- package/es/date-picker/panels/week/index.vue.d.ts +8 -8
- package/es/date-picker/panels/week-list.js +1 -1
- package/es/date-picker/panels/year/index.js +2 -2
- package/es/date-picker/picker-panel.js +1 -1
- package/es/date-picker/picker-panel.vue.d.ts +35 -35
- package/es/date-picker/picker.js +2 -2
- package/es/date-picker/picker.vue.d.ts +57 -55
- package/es/date-picker/picker.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/range-picker-panel.js +1 -1
- package/es/date-picker/range-picker-panel.vue.d.ts +38 -38
- package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/range-picker.js +2 -2
- package/es/date-picker/range-picker.vue.d.ts +63 -61
- package/es/date-picker/range-picker.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/style/index.css +72 -72
- package/es/descriptions/descriptions-item.js +1 -1
- package/es/descriptions/descriptions.d.ts +2 -2
- package/es/descriptions/descriptions.js +1 -1
- package/es/descriptions/index.d.ts +6 -6
- package/es/descriptions/style/index.css +10 -10
- package/es/divider/divider.d.ts +1 -1
- package/es/divider/index.d.ts +3 -3
- package/es/divider/style/index.css +4 -4
- package/es/drawer/drawer.js +9 -2
- package/es/drawer/drawer.vue.d.ts +2910 -13
- package/es/drawer/drawer.vue_vue_type_script_lang.js +26 -7
- package/es/drawer/index.d.ts +6557 -767
- package/es/drawer/index.js +2 -2
- package/es/drawer/style/index.css +12 -7
- package/es/drawer/style/index.scss +6 -0
- package/es/dropdown/dropdown-button.js +1 -1
- package/es/dropdown/dropdown-button.vue.d.ts +26 -23
- package/es/dropdown/dropdown-group.js +1 -1
- package/es/dropdown/dropdown-option.js +1 -1
- package/es/dropdown/dropdown-option.vue.d.ts +1 -1
- package/es/dropdown/dropdown-panel.js +1 -1
- package/es/dropdown/dropdown-panel.vue.d.ts +6 -3
- package/es/dropdown/dropdown-submenu.js +1 -1
- package/es/dropdown/dropdown-submenu.vue.d.ts +18 -15
- package/es/dropdown/dropdown.js +1 -1
- package/es/dropdown/dropdown.vue.d.ts +18 -15
- package/es/dropdown/index.d.ts +85 -73
- package/es/dropdown/interface.d.ts +2 -2
- package/es/dropdown/style/index.css +1 -1
- package/es/ellipsis/ellipsis.js +1 -1
- package/es/ellipsis/ellipsis.vue.d.ts +24 -24
- package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +2 -2
- package/es/ellipsis/index.d.ts +96 -96
- package/es/ellipsis/performant-ellipsis.js +1 -1
- package/es/ellipsis/performant-ellipsis.vue.d.ts +24 -24
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +1 -1
- package/es/empty/style/index.css +2 -2
- package/es/form/context.d.ts +7 -6
- package/es/form/form-item-label.js +1 -1
- package/es/form/form-item-label.vue.d.ts +24 -24
- package/es/form/form-item-message.js +1 -1
- package/es/form/form-item.js +1 -1
- package/es/form/form-item.vue.d.ts +35 -39
- package/es/form/form-item.vue_vue_type_script_lang.js +3 -3
- package/es/form/form.js +1 -1
- package/es/form/form.vue.d.ts +1 -1
- package/es/form/index.d.ts +41 -45
- package/es/form/interface.d.ts +2 -2
- package/es/form/style/index.css +6 -6
- package/es/grid/grid-col.js +1 -1
- package/es/grid/grid-col.vue.d.ts +3 -7
- package/es/grid/grid-col.vue_vue_type_script_lang.js +1 -1
- package/es/grid/grid-item.js +1 -1
- package/es/grid/grid-item.vue_vue_type_script_lang.js +1 -1
- package/es/grid/grid-row.js +1 -1
- package/es/grid/grid-row.vue.d.ts +4 -4
- package/es/grid/grid.js +1 -1
- package/es/grid/hook/use-responsive-value.d.ts +7 -19
- package/es/grid/index.d.ts +6 -10
- package/es/grid/interface.d.ts +11 -18
- package/es/icon/icon-calendar/icon-calendar.js +1 -1
- package/es/icon/icon-caret-down/icon-caret-down.js +1 -1
- package/es/icon/icon-caret-left/icon-caret-left.js +1 -1
- package/es/icon/icon-caret-right/icon-caret-right.js +1 -1
- package/es/icon/icon-caret-up/icon-caret-up.js +1 -1
- package/es/icon/icon-check/icon-check.js +1 -1
- package/es/icon/icon-check-circle-fill/icon-check-circle-fill.js +1 -1
- package/es/icon/icon-clock-circle/icon-clock-circle.js +1 -1
- package/es/icon/icon-close/icon-close.js +1 -1
- package/es/icon/icon-close-circle-fill/icon-close-circle-fill.js +1 -1
- package/es/icon/icon-copy/icon-copy.js +1 -1
- package/es/icon/icon-delete/icon-delete.js +1 -1
- package/es/icon/icon-double-left/icon-double-left.js +1 -1
- package/es/icon/icon-double-right/icon-double-right.js +1 -1
- package/es/icon/icon-down/icon-down.js +1 -1
- package/es/icon/icon-drag-dot/icon-drag-dot.js +1 -1
- package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.js +1 -1
- package/es/icon/icon-edit/icon-edit.js +1 -1
- package/es/icon/icon-empty/icon-empty.js +1 -1
- package/es/icon/icon-exclamation/icon-exclamation.js +1 -1
- package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.js +1 -1
- package/es/icon/icon-eye/icon-eye.js +1 -1
- package/es/icon/icon-eye-invisible/icon-eye-invisible.js +1 -1
- package/es/icon/icon-face-frown-fill/icon-face-frown-fill.js +1 -1
- package/es/icon/icon-face-meh-fill/icon-face-meh-fill.js +1 -1
- package/es/icon/icon-face-smile-fill/icon-face-smile-fill.js +1 -1
- package/es/icon/icon-file/icon-file.js +1 -1
- package/es/icon/icon-file-audio/icon-file-audio.js +1 -1
- package/es/icon/icon-file-image/icon-file-image.js +1 -1
- package/es/icon/icon-file-pdf/icon-file-pdf.js +1 -1
- package/es/icon/icon-file-video/icon-file-video.js +1 -1
- package/es/icon/icon-filter/icon-filter.js +1 -1
- package/es/icon/icon-fullscreen/icon-fullscreen.js +1 -1
- package/es/icon/icon-image-close/icon-image-close.js +1 -1
- package/es/icon/icon-info/icon-info.js +1 -1
- package/es/icon/icon-info-circle-fill/icon-info-circle-fill.js +1 -1
- package/es/icon/icon-left/icon-left.js +1 -1
- package/es/icon/icon-link/icon-link.js +1 -1
- package/es/icon/icon-loading/icon-loading.js +1 -1
- package/es/icon/icon-menu-fold/icon-menu-fold.js +1 -1
- package/es/icon/icon-menu-unfold/icon-menu-unfold.js +1 -1
- package/es/icon/icon-minus/icon-minus.js +1 -1
- package/es/icon/icon-more/icon-more.js +1 -1
- package/es/icon/icon-oblique-line/icon-oblique-line.js +1 -1
- package/es/icon/icon-original-size/icon-original-size.js +1 -1
- package/es/icon/icon-pause/icon-pause.js +1 -1
- package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.js +1 -1
- package/es/icon/icon-plus/icon-plus.js +1 -1
- package/es/icon/icon-question-circle/icon-question-circle.js +1 -1
- package/es/icon/icon-right/icon-right.js +1 -1
- package/es/icon/icon-rotate-left/icon-rotate-left.js +1 -1
- package/es/icon/icon-rotate-right/icon-rotate-right.js +1 -1
- package/es/icon/icon-search/icon-search.js +1 -1
- package/es/icon/icon-star-fill/icon-star-fill.js +1 -1
- package/es/icon/icon-to-top/icon-to-top.js +1 -1
- package/es/icon/icon-up/icon-up.js +1 -1
- package/es/icon/icon-upload/icon-upload.js +1 -1
- package/es/icon/icon-zoom-in/icon-zoom-in.js +1 -1
- package/es/icon/icon-zoom-out/icon-zoom-out.js +1 -1
- package/es/icon-component/icon.js +1 -1
- package/es/icon.js +292 -292
- package/es/image/image-footer.js +1 -1
- package/es/image/image.js +2 -2
- package/es/image/image.vue.d.ts +26 -26
- package/es/image/interface.d.ts +1 -1
- package/es/image/preview-action.d.ts +24 -24
- package/es/image/preview-arrow.js +1 -1
- package/es/image/preview-group.js +2 -2
- package/es/image/preview-group.vue.d.ts +26 -26
- package/es/image/preview-toolbar.js +1 -1
- package/es/image/preview-toolbar.vue.d.ts +24 -24
- package/es/image/preview.js +1 -1
- package/es/image/preview.vue.d.ts +25 -25
- package/es/image/preview.vue_vue_type_script_lang.js +1 -1
- package/es/image/style/index.css +32 -32
- package/es/index.css +4083 -2512
- package/es/index.d.ts +8 -2
- package/es/index.js +11 -10
- package/es/index.scss +3 -1
- package/es/input/index.d.ts +13 -11
- package/es/input/input-group.js +1 -1
- package/es/input/input-password.js +1 -1
- package/es/input/input-password.vue.d.ts +7 -5
- package/es/input/input.d.ts +2 -2
- package/es/input/input.js +4 -5
- package/es/input/style/index.css +50 -50
- package/es/input-number/index.d.ts +6 -6
- package/es/input-number/input-number.d.ts +2 -2
- package/es/input-number/input-number.js +21 -20
- package/es/input-number/style/index.css +16 -16
- package/es/input-tag/index.d.ts +6 -6
- package/es/input-tag/input-tag.d.ts +2 -2
- package/es/input-tag/input-tag.js +11 -13
- package/es/input-tag/style/index.css +172 -172
- package/es/input-tag/utils.js +1 -1
- package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/json-form/utils.js +3 -3
- package/es/layout/content.js +1 -1
- package/es/layout/footer.js +1 -1
- package/es/layout/header.vue.d.ts +1 -1
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/layout/index.d.ts +21 -21
- package/es/layout/layout.js +1 -1
- package/es/layout/sider.js +1 -1
- package/es/layout/sider.vue.d.ts +16 -16
- package/es/layout/sider.vue_vue_type_script_lang.js +1 -1
- package/es/layout/style/index.css +12 -12
- package/es/link/index.d.ts +3 -3
- package/es/link/link.vue.d.ts +1 -1
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/link/style/index.css +23 -23
- package/es/list/index.d.ts +9 -9
- package/es/list/list-item-meta.js +1 -1
- package/es/list/list.d.ts +3 -3
- package/es/list/list.js +4 -4
- package/es/list/style/index.css +9 -9
- package/es/list/use-pagination.d.ts +7 -4
- package/es/locale/index.d.ts +1 -1
- package/es/locale/index.js +1 -1
- package/es/locale/interface.d.ts +7 -0
- package/es/locale/lang/ar-eg.js +7 -1
- package/es/locale/lang/de-de.js +7 -1
- package/es/locale/lang/en-us.js +7 -1
- package/es/locale/lang/es-es.js +7 -1
- package/es/locale/lang/fr-fr.js +7 -1
- package/es/locale/lang/id-id.js +7 -1
- package/es/locale/lang/it-it.js +7 -1
- package/es/locale/lang/ja-jp.js +7 -1
- package/es/locale/lang/km-kh.js +7 -1
- package/es/locale/lang/ko-kr.js +7 -1
- package/es/locale/lang/ms-my.js +7 -1
- package/es/locale/lang/nl-nl.js +7 -1
- package/es/locale/lang/pt-pt.js +7 -1
- package/es/locale/lang/ru-ru.js +7 -1
- package/es/locale/lang/th-th.js +7 -1
- package/es/locale/lang/vi-vn.js +7 -1
- package/es/locale/lang/zh-cn.js +7 -1
- package/es/locale/lang/zh-tw.js +7 -1
- package/es/mention/index.d.ts +9 -9
- package/es/mention/mention.d.ts +3 -3
- package/es/mention/mention.js +34 -20
- package/es/menu/base-menu.js +1 -1
- package/es/menu/indent.js +1 -1
- package/es/menu/interface.d.ts +1 -3
- package/es/menu/item-group.js +1 -1
- package/es/menu/item-group.vue.d.ts +48 -48
- package/es/menu/item.js +1 -1
- package/es/menu/menu.js +1 -1
- package/es/menu/style/index.css +62 -62
- package/es/menu/sub-menu-inline.js +1 -1
- package/es/menu/sub-menu-inline.vue.d.ts +48 -48
- package/es/menu/sub-menu-pop.js +1 -1
- package/es/menu/sub-menu-pop.vue.d.ts +59 -59
- package/es/menu/sub-menu.js +1 -1
- package/es/message/index.js +1 -1
- package/es/message/message-list.d.ts +1 -1
- package/es/message/message.js +1 -1
- package/es/message/message.vue.d.ts +5 -3
- package/es/message/style/index.css +26 -26
- package/es/modal/index.d.ts +6374 -572
- package/es/modal/index.js +2 -2
- package/es/modal/interface.d.ts +2 -2
- package/es/modal/modal.js +15 -4
- package/es/modal/modal.vue.d.ts +2911 -10
- package/es/modal/modal.vue_vue_type_script_lang.js +28 -5
- package/es/modal/style/index.css +28 -12
- package/es/modal/style/index.scss +23 -0
- package/es/notification/index.js +1 -1
- package/es/notification/notification.js +1 -1
- package/es/notification/notification.vue.d.ts +5 -3
- package/es/notification/style/index.css +26 -26
- package/es/page-header/index.d.ts +10 -6
- package/es/page-header/page-header.js +1 -1
- package/es/page-header/page-header.vue.d.ts +5 -3
- package/es/page-header/style/index.css +6 -6
- package/es/pagination/page-item-ellipsis.js +1 -1
- package/es/pagination/page-item-step.js +1 -1
- package/es/pagination/page-item.js +1 -1
- package/es/pagination/page-jumper.js +1 -1
- package/es/pagination/page-jumper.vue.d.ts +7 -7
- package/es/pagination/page-options.js +1 -1
- package/es/pagination/page-options.vue.d.ts +656 -470
- package/es/pagination/style/index.css +21 -21
- package/es/popconfirm/index.d.ts +36 -36
- package/es/popconfirm/popconfirm.js +1 -1
- package/es/popconfirm/popconfirm.vue.d.ts +17 -17
- package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +1 -1
- package/es/popconfirm/style/index.css +11 -11
- package/es/popover/index.d.ts +899 -21
- package/es/popover/popover.js +7 -3
- package/es/popover/popover.vue.d.ts +451 -10
- package/es/popover/popover.vue_vue_type_script_lang.js +15 -3
- package/es/popover/style/index.css +7 -7
- package/es/popover/style/index.d.ts +1 -0
- package/es/progress/circle.js +1 -1
- package/es/progress/circle.vue.d.ts +1 -1
- package/es/progress/index.d.ts +7 -7
- package/es/progress/line.js +1 -1
- package/es/progress/line.vue.d.ts +1 -1
- package/es/progress/line.vue_vue_type_script_lang.js +1 -1
- package/es/progress/progress.js +1 -1
- package/es/progress/progress.vue.d.ts +3 -3
- package/es/progress/steps.js +1 -1
- package/es/progress/style/index.css +32 -32
- package/es/qr-code/index.d.ts +294 -0
- package/es/qr-code/index.js +10 -0
- package/es/qr-code/qr-code-status.js +5 -0
- package/es/qr-code/qr-code-status.vue.d.ts +8 -0
- package/es/qr-code/qr-code-status.vue_vue_type_script_setup_true_lang.js +30 -0
- package/es/qr-code/qr-code.js +5 -0
- package/es/qr-code/qr-code.vue.d.ts +167 -0
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +313 -0
- package/es/qr-code/style/css.js +2 -0
- package/es/qr-code/style/index.css +106 -0
- package/es/qr-code/style/index.d.ts +2 -0
- package/es/qr-code/style/index.js +2 -0
- package/es/qr-code/style/index.scss +111 -0
- package/es/qr-code/style/token.scss +36 -0
- package/es/qr-code/types.d.ts +19 -0
- package/es/radio/index.d.ts +13 -9
- package/es/radio/radio.d.ts +6 -4
- package/es/radio/style/index.css +33 -33
- package/es/rate/index.d.ts +3 -3
- package/es/rate/rate.d.ts +1 -1
- package/es/rate/style/index.css +3 -3
- package/es/resize-box/index.d.ts +6 -6
- package/es/resize-box/resize-box.js +1 -1
- package/es/resize-box/resize-box.vue.d.ts +2 -2
- package/es/resize-box/resize-box.vue_vue_type_script_lang.js +1 -1
- package/es/resize-box/style/index.css +2 -2
- package/es/result/result.js +1 -1
- package/es/result/style/index.css +2 -2
- package/es/scrollbar/index.d.ts +6 -3
- package/es/scrollbar/interface.d.ts +1 -1
- package/es/scrollbar/scrollbar.js +2 -1
- package/es/scrollbar/scrollbar.vue.d.ts +2 -1
- package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +52 -2
- package/es/scrollbar/style/index.css +13 -13
- package/es/sd-vue.js +13 -12
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/secret/style/index.css +4 -4
- package/es/select/context.d.ts +1 -4
- package/es/select/hooks/use-options.d.ts +1 -4
- package/es/select/hooks/use-options.js +2 -23
- package/es/select/hooks/use-select.d.ts +1 -3
- package/es/select/hooks/use-select.js +2 -7
- package/es/select/index.d.ts +656 -475
- package/es/select/index.js +5 -13
- package/es/select/interface.d.ts +1 -1
- package/es/select/select-dropdown.js +3 -2
- package/es/select/select-dropdown.vue.d.ts +56 -54
- package/es/select/select-dropdown.vue_vue_type_script_lang.js +2 -3
- package/es/select/select.d.ts +264 -18
- package/es/select/select.js +50 -27
- package/es/select/style/index.css +14 -14
- package/es/select/utils.d.ts +1 -1
- package/es/select/utils.js +1 -1
- package/es/skeleton/line.js +1 -1
- package/es/skeleton/shape.js +1 -1
- package/es/skeleton/skeleton.js +1 -1
- package/es/skeleton/style/index.css +4 -4
- package/es/slider/index.d.ts +67 -67
- package/es/slider/slider-button.js +1 -1
- package/es/slider/slider-button.vue.d.ts +25 -25
- package/es/slider/slider-dots.js +1 -1
- package/es/slider/slider-input.js +1 -1
- package/es/slider/slider-input.vue.d.ts +7 -7
- package/es/slider/slider-marks.js +1 -1
- package/es/slider/slider-ticks.js +1 -1
- package/es/slider/slider.js +1 -1
- package/es/slider/slider.vue.d.ts +33 -33
- package/es/slider/style/index.css +18 -18
- package/es/space/index.d.ts +9 -9
- package/es/space/space.d.ts +2 -2
- package/es/spin/index.d.ts +1 -0
- package/es/spin/style/index.css +9 -9
- package/es/split/split.js +1 -1
- package/es/split/split.vue_vue_type_script_lang.js +1 -1
- package/es/split/style/index.css +2 -2
- package/es/statistic/countdown.js +1 -1
- package/es/statistic/countdown.vue.d.ts +1 -1
- package/es/statistic/countdown.vue_vue_type_script_lang.js +5 -5
- package/es/statistic/index.d.ts +1 -1
- package/es/statistic/statistic.js +1 -1
- package/es/statistic/statistic.vue_vue_type_script_lang.js +4 -4
- package/es/statistic/style/index.css +4 -4
- package/es/steps/index.d.ts +4 -4
- package/es/steps/step.js +1 -1
- package/es/steps/step.vue.d.ts +1 -1
- package/es/steps/steps.js +1 -1
- package/es/steps/steps.vue.d.ts +1 -1
- package/es/steps/style/index.css +79 -79
- package/es/style/color/colors.scss +1 -1
- package/es/style/theme/global.scss +8 -8
- package/es/style/theme/index.scss +4 -12
- package/es/style/theme/z-index.js +1 -2
- package/es/switch/style/index.css +30 -30
- package/es/switch/switch.js +1 -1
- package/es/switch/switch.vue_vue_type_script_lang.js +1 -1
- package/es/table/index.d.ts +14 -14
- package/es/table/style/index.css +65 -65
- package/es/table/table-operation-td.d.ts +23 -15
- package/es/table/table-operation-td.js +11 -14
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.d.ts +1 -1
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.d.ts +1 -1
- package/es/table/table-th.js +19 -8
- package/es/table/table.d.ts +5 -5
- package/es/table/table.js +45 -48
- package/es/table/utils.js +1 -1
- package/es/tabs/index.d.ts +9 -9
- package/es/tabs/style/index.css +56 -56
- package/es/tabs/tab-pane.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_lang.js +1 -1
- package/es/tabs/tabs-nav-ink.js +1 -1
- package/es/tabs/tabs-nav.d.ts +1 -1
- package/es/tabs/tabs-tab.js +1 -1
- package/es/tabs/tabs-tab.vue.d.ts +5 -3
- package/es/tabs/tabs.d.ts +3 -3
- package/es/tag/index.d.ts +66 -29688
- package/es/tag/interface.d.ts +2 -0
- package/es/tag/style/index.css +134 -134
- package/es/tag/style/index.scss +33 -13
- package/es/tag/tag.js +2 -64
- package/es/tag/tag.vue.d.ts +53 -11936
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +368 -0
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/textarea/index.d.ts +16 -12
- package/es/textarea/style/index.css +28 -28
- package/es/textarea/textarea.js +1 -1
- package/es/textarea/textarea.vue.d.ts +7 -5
- package/es/textarea/textarea.vue_vue_type_script_lang.js +1 -1
- package/es/time-picker/hooks/use-time-list.js +1 -1
- package/es/time-picker/index.d.ts +79 -71
- package/es/time-picker/panel.js +1 -1
- package/es/time-picker/panel.vue.d.ts +7 -7
- package/es/time-picker/range-panel.d.ts +7 -7
- package/es/time-picker/range-panel.js +6 -7
- package/es/time-picker/style/index.css +11 -11
- package/es/time-picker/time-column.js +1 -1
- package/es/time-picker/time-picker.js +2 -2
- package/es/time-picker/time-picker.vue.d.ts +38 -34
- package/es/time-picker/utils/index.d.ts +1 -1
- package/es/timeline/item.js +1 -1
- package/es/timeline/item.vue_vue_type_script_lang.js +1 -1
- package/es/timeline/style/index.css +11 -11
- package/es/tooltip/index.d.ts +24 -24
- package/es/tooltip/style/index.css +3 -3
- package/es/tooltip/tooltip.js +1 -1
- package/es/tooltip/tooltip.vue.d.ts +11 -11
- package/es/tooltip/tooltip.vue_vue_type_script_lang.js +1 -1
- package/es/tour/index.d.ts +664 -0
- package/es/tour/index.js +10 -0
- package/es/tour/style/css.js +1 -0
- package/es/tour/style/index.css +226 -0
- package/es/tour/style/index.d.ts +1 -0
- package/es/tour/style/index.js +1 -0
- package/es/tour/style/index.scss +218 -0
- package/es/tour/style/token.scss +27 -0
- package/es/tour/tour.js +5 -0
- package/es/tour/tour.vue.d.ts +411 -0
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +1219 -0
- package/es/tour/types.d.ts +143 -0
- package/es/transfer/index.d.ts +75 -57
- package/es/transfer/style/index.css +20 -20
- package/es/transfer/transfer-list-item.js +2 -5
- package/es/transfer/transfer-view.js +2 -3
- package/es/transfer/transfer-view.vue.d.ts +30 -21
- package/es/transfer/transfer-view.vue_vue_type_script_lang.js +1 -1
- package/es/transfer/transfer.js +1 -1
- package/es/transfer/transfer.vue.d.ts +37 -28
- package/es/tree/base-node.js +1 -1
- package/es/tree/base-node.vue.d.ts +10 -6
- package/es/tree/expand-transition.js +1 -1
- package/es/tree/interface.d.ts +1 -1
- package/es/tree/node.js +1 -1
- package/es/tree/style/index.css +25 -25
- package/es/tree/transition-node-list.js +1 -1
- package/es/tree/transition-node-list.vue.d.ts +10 -6
- package/es/tree/tree.js +1 -1
- package/es/tree/tree.vue.d.ts +14 -11
- package/es/tree/tree.vue_vue_type_script_lang.js +2 -2
- 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 +9 -10
- package/es/tree-select/style/index.css +5 -5
- package/es/tree-select/tree-select.js +2 -2
- package/es/tree-select/tree-select.vue.d.ts +22 -22
- package/es/tree-select/tree-select.vue_vue_type_script_lang.js +1 -1
- package/es/trigger/context.d.ts +3 -3
- package/es/trigger/index.d.ts +9 -9
- package/es/trigger/interface.d.ts +3 -2
- package/es/trigger/style/index.css +5 -5
- package/es/trigger/trigger.d.ts +3 -3
- package/es/trigger/trigger.js +18 -17
- package/es/trigger/utils.js +1 -1
- package/es/typography/base.d.ts +4 -4
- package/es/typography/base.js +3 -3
- package/es/typography/edit-content.js +1 -1
- package/es/typography/edit-content.vue.d.ts +40 -34
- package/es/typography/interface.d.ts +1 -1
- package/es/typography/operations.js +1 -1
- package/es/typography/operations.vue.d.ts +25 -25
- package/es/typography/style/index.css +22 -22
- package/es/typography/typography.js +1 -1
- package/es/upload/index.d.ts +6 -6
- package/es/upload/interfaces.d.ts +3 -3
- package/es/upload/style/index.css +51 -51
- package/es/upload/upload-button.d.ts +1 -1
- package/es/upload/upload-list.js +2 -5
- package/es/upload/upload.d.ts +2 -2
- package/es/upload/upload.js +6 -7
- package/es/verification-code/index.d.ts +3 -3
- package/es/verification-code/verification-code.d.ts +1 -1
- package/es/verification-code/verification-code.js +7 -6
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/watermark.js +1 -1
- package/json/vetur-attributes.json +125 -107
- package/json/vetur-tags.json +39 -36
- package/json/web-types.json +182 -163
- package/package.json +19 -15
- package/es/calendar/calendar.d.ts +0 -104
- package/es/calendar/calendar.js +0 -207
- package/es/calendar/header.d.ts +0 -104
- package/es/calendar/header.js +0 -131
- package/es/calendar/hooks/useCellClassName.d.ts +0 -19
- package/es/calendar/hooks/useCellClassName.js +0 -43
- package/es/calendar/month.d.ts +0 -83
- package/es/calendar/month.js +0 -149
- package/es/calendar/week.d.ts +0 -61
- package/es/calendar/week.js +0 -45
- package/es/calendar/year.d.ts +0 -69
- package/es/calendar/year.js +0 -101
- package/es/select/optgroup.js +0 -10
- package/es/select/optgroup.vue.d.ts +0 -13
- package/es/select/optgroup.vue_vue_type_script_lang.js +0 -23
- package/es/select/option.js +0 -51
- package/es/select/option.vue.d.ts +0 -299
- package/es/select/option.vue_vue_type_script_lang.js +0 -149
- package/es/tag/tag.vue_vue_type_script_lang.js +0 -264
|
@@ -22,6 +22,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22
22
|
"onAfterLeave"
|
|
23
23
|
]);
|
|
24
24
|
}
|
|
25
|
-
var expand_transition_default =
|
|
25
|
+
var expand_transition_default = /*#__PURE__*/ _plugin_vue_export_helper_default(expand_transition_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
26
26
|
//#endregion
|
|
27
27
|
export { expand_transition_default as default };
|
|
@@ -117,6 +117,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
117
117
|
_: 3
|
|
118
118
|
}, 16, ["class", "style"]))], 6);
|
|
119
119
|
}
|
|
120
|
-
var virtual_list_default =
|
|
120
|
+
var virtual_list_default = /*#__PURE__*/ _plugin_vue_export_helper_default(virtual_list_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
121
121
|
//#endregion
|
|
122
122
|
export { virtual_list_default as default };
|
|
@@ -210,14 +210,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
210
210
|
}>> & Readonly<{
|
|
211
211
|
onUpdate?: ((_startIndex: number, _endIndex: number, _visibleStartIndex: number, _visibleEndIndex: number) => any) | undefined;
|
|
212
212
|
onScroll?: ((_ev: Event) => any) | undefined;
|
|
213
|
-
onResize?: (() => any) | undefined;
|
|
214
213
|
onHidden?: (() => any) | undefined;
|
|
215
214
|
onVisible?: (() => any) | undefined;
|
|
215
|
+
onResize?: (() => any) | undefined;
|
|
216
216
|
onReachBottom?: ((_ev: Event) => any) | undefined;
|
|
217
217
|
onScrollStart?: (() => any) | undefined;
|
|
218
218
|
onScrollEnd?: (() => any) | undefined;
|
|
219
219
|
}> & {}>;
|
|
220
|
-
hostClassNames: import("vue").ComputedRef<
|
|
220
|
+
hostClassNames: import("vue").ComputedRef<string[]>;
|
|
221
221
|
scrollbarHostRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
222
222
|
scrollerRef: import("vue").Ref<ScrollerExpose | undefined, ScrollerExpose | undefined>;
|
|
223
223
|
viewportRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
@@ -372,14 +372,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
372
372
|
}>> & Readonly<{
|
|
373
373
|
onUpdate?: ((_startIndex: number, _endIndex: number, _visibleStartIndex: number, _visibleEndIndex: number) => any) | undefined;
|
|
374
374
|
onScroll?: ((_ev: Event) => any) | undefined;
|
|
375
|
-
onResize?: (() => any) | undefined;
|
|
376
375
|
onHidden?: (() => any) | undefined;
|
|
377
376
|
onVisible?: (() => any) | undefined;
|
|
377
|
+
onResize?: (() => any) | undefined;
|
|
378
378
|
onReachBottom?: ((_ev: Event) => any) | undefined;
|
|
379
379
|
onScrollStart?: (() => any) | undefined;
|
|
380
380
|
onScrollEnd?: (() => any) | undefined;
|
|
381
381
|
}>, {
|
|
382
382
|
shift: boolean;
|
|
383
|
+
scrollbar: boolean | ScrollbarProps;
|
|
384
|
+
enabled: boolean;
|
|
383
385
|
fixedSize: boolean;
|
|
384
386
|
estimatedSize: number;
|
|
385
387
|
emitUpdate: boolean;
|
|
@@ -394,7 +396,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
394
396
|
itemTag: string;
|
|
395
397
|
itemSize: ItemSizeValue<any>;
|
|
396
398
|
minItemSize: string | number | null;
|
|
397
|
-
enabled: boolean;
|
|
398
399
|
threshold: number;
|
|
399
400
|
component: Record<string, unknown> | keyof HTMLElementTagNameMap;
|
|
400
401
|
listAttrs: Record<string, unknown> | undefined;
|
|
@@ -402,7 +403,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
402
403
|
contentAttrs: Record<string, unknown> | undefined;
|
|
403
404
|
listStyle: CSSProperties | undefined;
|
|
404
405
|
paddingPosition: "content" | "list";
|
|
405
|
-
scrollbar: boolean | ScrollbarProps;
|
|
406
406
|
}, {}, {
|
|
407
407
|
RecycleScroller: <TItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
408
408
|
emit: ((evt: "visible") => void) & ((evt: "hidden") => void) & ((evt: "resize") => void) & ((evt: "update", startIndex: number, endIndex: number, visibleStartIndex: number, visibleEndIndex: number) => void) & ((evt: "scrollStart") => void) & ((evt: "scrollEnd") => void);
|
|
@@ -439,6 +439,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
439
439
|
typeField?: string | undefined;
|
|
440
440
|
buffer?: number | undefined;
|
|
441
441
|
pageMode?: boolean | undefined;
|
|
442
|
+
scrollParent?: (HTMLElement | Window) | undefined;
|
|
442
443
|
shift?: boolean | undefined;
|
|
443
444
|
cache?: CacheSnapshot | undefined;
|
|
444
445
|
prerender?: number | undefined;
|
|
@@ -499,6 +500,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
499
500
|
flowMode?: boolean | undefined;
|
|
500
501
|
hiddenPosition?: number | undefined;
|
|
501
502
|
enabled?: boolean | undefined;
|
|
503
|
+
pageMode?: boolean | undefined;
|
|
504
|
+
scrollParent?: (HTMLElement | Window) | undefined;
|
|
502
505
|
} & import("vue").PublicProps;
|
|
503
506
|
expose(exposed: import("vue").ShallowUnwrapRef<DynamicScrollerExposed<TItem>>): void;
|
|
504
507
|
attrs: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../../_utils/global-config.js";
|
|
3
3
|
import { isObject, isString } from "../../_utils/is.js";
|
|
4
4
|
import { useVirtualSize } from "./use-virtual-size.js";
|
|
5
|
-
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.
|
|
5
|
+
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
6
6
|
import { computed, defineComponent, nextTick, onBeforeUnmount, onMounted, onUpdated, ref, watch } from "vue";
|
|
7
7
|
import { OverlayScrollbars } from "overlayscrollbars";
|
|
8
8
|
import { DynamicScroller, DynamicScrollerItem, RecycleScroller } from "vue-virtual-scroller";
|
|
@@ -149,7 +149,6 @@ var virtual_list_vue_vue_type_script_lang_default = defineComponent({
|
|
|
149
149
|
return Boolean(props.contentWrapperAttrs || isObject(props.component) && props.component.item);
|
|
150
150
|
});
|
|
151
151
|
const resolvedScrollbarProps = computed(() => {
|
|
152
|
-
if (!props.scrollbar) return;
|
|
153
152
|
if (typeof props.scrollbar === "boolean") return { type: "embed" };
|
|
154
153
|
return _objectSpread2({ type: "embed" }, props.scrollbar);
|
|
155
154
|
});
|
|
@@ -157,9 +156,9 @@ var virtual_list_vue_vue_type_script_lang_default = defineComponent({
|
|
|
157
156
|
var _resolvedScrollbarPro;
|
|
158
157
|
return [
|
|
159
158
|
prefixCls,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
"sd-scrollbar",
|
|
160
|
+
`sd-scrollbar-type-${(_resolvedScrollbarPro = resolvedScrollbarProps.value.type) !== null && _resolvedScrollbarPro !== void 0 ? _resolvedScrollbarPro : "embed"}`,
|
|
161
|
+
`${prefixCls}-scrollbar`
|
|
163
162
|
];
|
|
164
163
|
});
|
|
165
164
|
const containerOuterStyle = computed(() => {
|
|
@@ -240,8 +239,8 @@ var virtual_list_vue_vue_type_script_lang_default = defineComponent({
|
|
|
240
239
|
});
|
|
241
240
|
const compatViewportStyle = computed(() => {
|
|
242
241
|
const style = { minHeight: 0 };
|
|
243
|
-
if (resolvedHeightValue.value !== void 0) style.height =
|
|
244
|
-
if (!
|
|
242
|
+
if (resolvedHeightValue.value !== void 0) style.height = resolvedHeightValue.value !== "auto" ? "100%" : resolvedHeightValue.value;
|
|
243
|
+
if (!overlayViewportReadyRef.value) if (props.direction === "horizontal") {
|
|
245
244
|
style.overflowX = "auto";
|
|
246
245
|
style.overflowY = "hidden";
|
|
247
246
|
} else {
|
|
@@ -320,8 +319,8 @@ var virtual_list_vue_vue_type_script_lang_default = defineComponent({
|
|
|
320
319
|
});
|
|
321
320
|
const scrollerStyle = computed(() => {
|
|
322
321
|
const style = { minHeight: 0 };
|
|
323
|
-
if (resolvedHeightValue.value !== void 0) style.height =
|
|
324
|
-
if (!
|
|
322
|
+
if (resolvedHeightValue.value !== void 0) style.height = "100%";
|
|
323
|
+
if (!overlayViewportReadyRef.value) if (props.direction === "horizontal") {
|
|
325
324
|
style.overflowX = "auto";
|
|
326
325
|
style.overflowY = "hidden";
|
|
327
326
|
} else {
|
|
@@ -333,7 +332,6 @@ var virtual_list_vue_vue_type_script_lang_default = defineComponent({
|
|
|
333
332
|
const resolvedOverlayOptions = computed(() => {
|
|
334
333
|
var _scrollbarProps$overl, _scrollbarProps$paddi, _scrollbarProps$showN, _scrollbarProps$updat;
|
|
335
334
|
const scrollbarProps = resolvedScrollbarProps.value;
|
|
336
|
-
if (!scrollbarProps) return null;
|
|
337
335
|
const overlayOptions = (_scrollbarProps$overl = scrollbarProps.overlayOptions) !== null && _scrollbarProps$overl !== void 0 ? _scrollbarProps$overl : {};
|
|
338
336
|
const isTrackType = scrollbarProps.type === "track";
|
|
339
337
|
return _objectSpread2(_objectSpread2({}, overlayOptions), {}, {
|
|
@@ -416,7 +414,6 @@ var virtual_list_vue_vue_type_script_lang_default = defineComponent({
|
|
|
416
414
|
const initOverlayScrollbar = function() {
|
|
417
415
|
var _ref2 = _asyncToGenerator(function* (waitForDom = true) {
|
|
418
416
|
destroyOverlayScrollbar();
|
|
419
|
-
if (!resolvedOverlayOptions.value) return;
|
|
420
417
|
if (waitForDom) yield nextTick();
|
|
421
418
|
const host = scrollbarHostRef.value;
|
|
422
419
|
const viewport = getScrollerElement();
|
|
@@ -449,10 +446,6 @@ var virtual_list_vue_vue_type_script_lang_default = defineComponent({
|
|
|
449
446
|
}
|
|
450
447
|
});
|
|
451
448
|
watch([currentScroller, resolvedOverlayOptions], _asyncToGenerator(function* () {
|
|
452
|
-
if (!resolvedOverlayOptions.value) {
|
|
453
|
-
destroyOverlayScrollbar();
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
449
|
yield nextTick();
|
|
457
450
|
const viewport = getScrollerElement();
|
|
458
451
|
const osInstance = resolveOSInstance();
|
|
@@ -8,7 +8,7 @@ export declare const useFormItem: ({ size, disabled, error, uninject, }?: {
|
|
|
8
8
|
uninject?: boolean;
|
|
9
9
|
}) => {
|
|
10
10
|
formItemCtx: FormItemContext;
|
|
11
|
-
mergedSize: import("vue").ComputedRef<"
|
|
11
|
+
mergedSize: import("vue").ComputedRef<"medium" | "large" | "small" | "mini" | undefined>;
|
|
12
12
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
13
13
|
mergedError: import("vue").ComputedRef<boolean>;
|
|
14
14
|
feedback: Ref<string | undefined, string | undefined>;
|
package/es/_hooks/use-input.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FormItemEventHandler } from '../form/interface';
|
|
|
4
4
|
export declare const useInput: ({ defaultValue, modelValue, emit, eventName, updateEventName, eventHandlers, }: {
|
|
5
5
|
defaultValue?: Ref<string>;
|
|
6
6
|
modelValue?: Ref<string>;
|
|
7
|
-
emit: EmitFn<
|
|
7
|
+
emit: EmitFn<string>;
|
|
8
8
|
eventName?: string;
|
|
9
9
|
updateEventName?: string;
|
|
10
10
|
eventHandlers?: Ref<FormItemEventHandler>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { PaginationProps } from '../pagination/interface';
|
|
2
|
+
export declare const usePagination: (props: {
|
|
3
|
+
pagination?: PaginationProps;
|
|
4
|
+
}, { emit }: {
|
|
5
|
+
emit: (event: string, ...args: unknown[]) => void;
|
|
3
6
|
}) => {
|
|
4
|
-
current: import("vue").ComputedRef<
|
|
5
|
-
pageSize: import("vue").ComputedRef<
|
|
7
|
+
current: import("vue").ComputedRef<number>;
|
|
8
|
+
pageSize: import("vue").ComputedRef<number>;
|
|
6
9
|
handlePageChange: (page: number) => void;
|
|
7
10
|
handlePageSizeChange: (pageSize: number) => void;
|
|
8
11
|
};
|
|
@@ -24,7 +24,8 @@ function usePopupOverflowHidden(props) {
|
|
|
24
24
|
if (container.value && needResetContainerStyle) {
|
|
25
25
|
const originStyle = originContainerStyle;
|
|
26
26
|
Object.keys(originStyle).forEach((i) => {
|
|
27
|
-
|
|
27
|
+
var _originStyle$i;
|
|
28
|
+
container.value.style[i] = (_originStyle$i = originStyle[i]) !== null && _originStyle$i !== void 0 ? _originStyle$i : "";
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
needResetContainerStyle = false;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ScrollbarProps } from '../scrollbar';
|
|
3
|
-
export declare const useScrollbar: (scrollbar: Ref<ScrollbarProps | boolean>) => {
|
|
4
|
-
|
|
5
|
-
scrollbarProps: import("vue").ComputedRef<ScrollbarProps | undefined>;
|
|
3
|
+
export declare const useScrollbar: (scrollbar: Ref<ScrollbarProps | boolean | undefined>) => {
|
|
4
|
+
scrollbarProps: import("vue").ComputedRef<ScrollbarProps>;
|
|
6
5
|
};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.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
|
|
5
5
|
var useScrollbar = (scrollbar) => {
|
|
6
|
-
return {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (!scrollbar.value) return void 0;
|
|
10
|
-
return _objectSpread2({ type: "embed" }, isBoolean(scrollbar.value) ? void 0 : scrollbar.value);
|
|
11
|
-
})
|
|
12
|
-
};
|
|
6
|
+
return { scrollbarProps: computed(() => {
|
|
7
|
+
return _objectSpread2({ type: "embed" }, isBoolean(scrollbar.value) ? void 0 : scrollbar.value);
|
|
8
|
+
}) };
|
|
13
9
|
};
|
|
14
10
|
//#endregion
|
|
15
11
|
export { useScrollbar };
|
package/es/_hooks/use-size.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { Size } from '../_utils/constant';
|
|
|
3
3
|
export declare const useSize: (size?: Ref<Size | undefined>, { defaultValue }?: {
|
|
4
4
|
defaultValue?: Size;
|
|
5
5
|
}) => {
|
|
6
|
-
mergedSize: import("vue").ComputedRef<"
|
|
6
|
+
mergedSize: import("vue").ComputedRef<"medium" | "large" | "small" | "mini">;
|
|
7
7
|
};
|
package/es/_utils/color.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export declare const gradientType: {
|
|
2
|
+
readonly linearGradient: "linear-gradient";
|
|
3
|
+
readonly repeatingLinearGradient: "repeating-linear-gradient";
|
|
4
|
+
readonly radialGradient: "radial-gradient";
|
|
5
|
+
readonly repeatingRadialGradient: "repeating-radial-gradient";
|
|
6
|
+
};
|
|
7
|
+
export type GradientType = (typeof gradientType)[keyof typeof gradientType];
|
|
8
|
+
export declare function isGradientString(gradientString?: string): boolean;
|
|
9
|
+
export declare function extractColorsFromGradient(gradientString?: string): string[];
|
|
1
10
|
export declare const hsvToRgb: (h: number, s: number, v: number) => {
|
|
2
11
|
r: number;
|
|
3
12
|
g: number;
|
package/es/_utils/color.js
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import { isString } from "./is.js";
|
|
2
3
|
//#region components/_utils/color.ts
|
|
4
|
+
var gradientType = {
|
|
5
|
+
linearGradient: "linear-gradient",
|
|
6
|
+
repeatingLinearGradient: "repeating-linear-gradient",
|
|
7
|
+
radialGradient: "radial-gradient",
|
|
8
|
+
repeatingRadialGradient: "repeating-radial-gradient"
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 检查是否为 CSS 渐变字符串
|
|
12
|
+
* @param gradientString CSS 渐变字符串
|
|
13
|
+
* @returns 是否为 CSS 渐变字符串
|
|
14
|
+
*/
|
|
15
|
+
function isGradientString(gradientString) {
|
|
16
|
+
if (!isString(gradientString)) return false;
|
|
17
|
+
const trimmed = gradientString.trim();
|
|
18
|
+
return Object.values(gradientType).some((type) => trimmed.startsWith(`${type}(`));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 从 CSS 渐变字符串中提取颜色
|
|
22
|
+
* @param gradientString CSS 渐变字符串
|
|
23
|
+
* @returns 颜色数组
|
|
24
|
+
*/
|
|
25
|
+
function extractColorsFromGradient(gradientString) {
|
|
26
|
+
if (!isGradientString(gradientString)) return [];
|
|
27
|
+
const trimmed = gradientString.trim();
|
|
28
|
+
const matchedType = Object.values(gradientType).find((type) => trimmed.startsWith(`${type}(`));
|
|
29
|
+
if (!matchedType) return [];
|
|
30
|
+
const startIndex = matchedType.length + 1;
|
|
31
|
+
if (!trimmed.endsWith(")")) return [];
|
|
32
|
+
const content = trimmed.slice(startIndex, -1);
|
|
33
|
+
const colorStopRegex = /(#[0-9A-Fa-f]{3,8}|rgba?\([^)]+\)|hsla?\([^)]+\)|hwb\([^)]+\)|lab\([^)]+\)|lch\([^)]+\)|oklab\([^)]+\)|oklch\([^)]+\))(?:\s+([\d.]+%?))?/g;
|
|
34
|
+
const colors = [];
|
|
35
|
+
let match;
|
|
36
|
+
while ((match = colorStopRegex.exec(content)) !== null) colors.push(match[1]);
|
|
37
|
+
return colors;
|
|
38
|
+
}
|
|
3
39
|
var hsvToRgb = (h, s, v) => {
|
|
4
40
|
const i = Math.floor(h * 6);
|
|
5
41
|
const f = h * 6 - i;
|
|
@@ -157,4 +193,4 @@ var rgbaToHex = (r, g, b, a) => {
|
|
|
157
193
|
].join("").toUpperCase();
|
|
158
194
|
};
|
|
159
195
|
//#endregion
|
|
160
|
-
export { formatInputToHSVA, hsvToRgb, rgbToHex, rgbToHsv, rgbaToHex };
|
|
196
|
+
export { extractColorsFromGradient, formatInputToHSVA, hsvToRgb, isGradientString, rgbToHex, rgbToHsv, rgbaToHex };
|
package/es/_utils/date.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import originDayjs, { Dayjs, OpUnitType, UnitType } from 'dayjs';
|
|
2
|
-
import 'dayjs/locale/zh-cn';
|
|
3
2
|
export declare const dayjs: typeof originDayjs;
|
|
4
3
|
export declare const methods: {
|
|
5
4
|
add(time: Dayjs, value: number, unit: UnitType): originDayjs.Dayjs;
|
|
@@ -28,6 +27,6 @@ export declare function getDateValue(value: (Dayjs | undefined)[]): (Date | unde
|
|
|
28
27
|
export declare function getDateValue(value: (Dayjs | undefined)[] | undefined): (Date | undefined)[] | undefined;
|
|
29
28
|
export declare function getDateValue(value: Dayjs | (Dayjs | undefined)[]): Date | (Date | undefined)[];
|
|
30
29
|
export declare function getDateValue(value: Dayjs | (Dayjs | undefined)[] | undefined): Date | (Date | undefined)[] | undefined;
|
|
31
|
-
export declare function initializeDateLocale(localeName: string, weekStart: number): void
|
|
30
|
+
export declare function initializeDateLocale(localeName: string, weekStart: number): Promise<void>;
|
|
32
31
|
export declare function pickDataAttributes<T extends Record<string, unknown>>(obj: T): Record<`data-${string}` | `aria-${string}`, unknown>;
|
|
33
32
|
export {};
|
package/es/_utils/date.js
CHANGED
|
@@ -1,14 +1,34 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isArray, isDayjs, isQuarter } from "./is.js";
|
|
3
|
-
import
|
|
3
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
4
|
+
import dayjs from "dayjs";
|
|
4
5
|
import AdvancedFormat from "dayjs/plugin/advancedFormat";
|
|
5
6
|
import customParseFormat from "dayjs/plugin/customParseFormat";
|
|
6
7
|
import isBetween from "dayjs/plugin/isBetween";
|
|
7
8
|
import QuarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
8
9
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
9
10
|
import weekYear from "dayjs/plugin/weekYear";
|
|
10
|
-
import "dayjs/locale/zh-cn";
|
|
11
11
|
//#region components/_utils/date.ts
|
|
12
|
+
var localeLoaders = {
|
|
13
|
+
"ar": () => import("dayjs/locale/ar"),
|
|
14
|
+
"de": () => import("dayjs/locale/de"),
|
|
15
|
+
"es": () => import("dayjs/locale/es"),
|
|
16
|
+
"fr": () => import("dayjs/locale/fr"),
|
|
17
|
+
"id": () => import("dayjs/locale/id"),
|
|
18
|
+
"it": () => import("dayjs/locale/it"),
|
|
19
|
+
"ja": () => import("dayjs/locale/ja"),
|
|
20
|
+
"km": () => import("dayjs/locale/km"),
|
|
21
|
+
"ko": () => import("dayjs/locale/ko"),
|
|
22
|
+
"ms": () => import("dayjs/locale/ms"),
|
|
23
|
+
"nl": () => import("dayjs/locale/nl"),
|
|
24
|
+
"pt": () => import("dayjs/locale/pt"),
|
|
25
|
+
"ru": () => import("dayjs/locale/ru"),
|
|
26
|
+
"th": () => import("dayjs/locale/th"),
|
|
27
|
+
"vi": () => import("dayjs/locale/vi"),
|
|
28
|
+
"zh-cn": () => import("dayjs/locale/zh-cn"),
|
|
29
|
+
"zh-tw": () => import("dayjs/locale/zh-tw")
|
|
30
|
+
};
|
|
31
|
+
var loadedLocales = /* @__PURE__ */ new Set();
|
|
12
32
|
var overwriteIsDayjs = (_, Dayjs, dayjs) => {
|
|
13
33
|
dayjs = function(date, c) {
|
|
14
34
|
if (isDayjs(date)) return date.clone();
|
|
@@ -26,14 +46,34 @@ var overwriteIsDayjs = (_, Dayjs, dayjs) => {
|
|
|
26
46
|
};
|
|
27
47
|
dayjs.isDayjs = isDayjs;
|
|
28
48
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var dayjs =
|
|
49
|
+
dayjs.extend(overwriteIsDayjs);
|
|
50
|
+
dayjs.extend(customParseFormat);
|
|
51
|
+
dayjs.extend(isBetween);
|
|
52
|
+
dayjs.extend(weekOfYear);
|
|
53
|
+
dayjs.extend(AdvancedFormat);
|
|
54
|
+
dayjs.extend(weekYear);
|
|
55
|
+
dayjs.extend(QuarterOfYear);
|
|
56
|
+
var dayjs$1 = dayjs;
|
|
57
|
+
var DAYJS_LOCALE_MAP = {
|
|
58
|
+
"ar-eg": "ar",
|
|
59
|
+
"de-de": "de",
|
|
60
|
+
"en-us": "en",
|
|
61
|
+
"es-es": "es",
|
|
62
|
+
"fr-fr": "fr",
|
|
63
|
+
"id-id": "id",
|
|
64
|
+
"it-it": "it",
|
|
65
|
+
"ja-jp": "ja",
|
|
66
|
+
"km-kh": "km",
|
|
67
|
+
"ko-kr": "ko",
|
|
68
|
+
"ms-my": "ms",
|
|
69
|
+
"nl-nl": "nl",
|
|
70
|
+
"pt-pt": "pt",
|
|
71
|
+
"ru-ru": "ru",
|
|
72
|
+
"th-th": "th",
|
|
73
|
+
"vi-vn": "vi",
|
|
74
|
+
"zh-cn": "zh-cn",
|
|
75
|
+
"zh-tw": "zh-tw"
|
|
76
|
+
};
|
|
37
77
|
var methods = {
|
|
38
78
|
add(time, value, unit) {
|
|
39
79
|
return time.add(value, unit);
|
|
@@ -72,7 +112,7 @@ var methods = {
|
|
|
72
112
|
}
|
|
73
113
|
};
|
|
74
114
|
function getNow() {
|
|
75
|
-
return dayjs();
|
|
115
|
+
return dayjs$1();
|
|
76
116
|
}
|
|
77
117
|
function getSortedDayjsArray(values) {
|
|
78
118
|
return [...values].sort((a, b) => a.valueOf() - b.valueOf());
|
|
@@ -103,10 +143,10 @@ function getDayjsValue(time, format) {
|
|
|
103
143
|
const formatValue = (value) => {
|
|
104
144
|
if (!value) return void 0;
|
|
105
145
|
if (typeof value === "string") {
|
|
106
|
-
if (isQuarter(format)) return dayjs(parseQuarterToMonth(value), format.replace(/\[Q]Q/, "MM"));
|
|
107
|
-
if (dayjs(value, format).isValid()) return dayjs(value, format);
|
|
146
|
+
if (isQuarter(format)) return dayjs$1(parseQuarterToMonth(value), format.replace(/\[Q]Q/, "MM"));
|
|
147
|
+
if (dayjs$1(value, format).isValid()) return dayjs$1(value, format);
|
|
108
148
|
}
|
|
109
|
-
return dayjs(value);
|
|
149
|
+
return dayjs$1(value);
|
|
110
150
|
};
|
|
111
151
|
if (isArray(time)) return time.map(formatValue);
|
|
112
152
|
return formatValue(time);
|
|
@@ -116,17 +156,26 @@ function getDateValue(value) {
|
|
|
116
156
|
if (isArray(value)) return value.map(formatValue);
|
|
117
157
|
return formatValue(value);
|
|
118
158
|
}
|
|
119
|
-
function initializeDateLocale(
|
|
120
|
-
|
|
159
|
+
function initializeDateLocale(_x, _x2) {
|
|
160
|
+
return _initializeDateLocale.apply(this, arguments);
|
|
121
161
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
if (
|
|
162
|
+
function _initializeDateLocale() {
|
|
163
|
+
_initializeDateLocale = _asyncToGenerator(function* (localeName, weekStart) {
|
|
164
|
+
var _DAYJS_LOCALE_MAP$nor, _dayjs$Ls$dayjsLocale;
|
|
165
|
+
const normalizedLocale = localeName.toLowerCase();
|
|
166
|
+
const dayjsLocaleName = (_DAYJS_LOCALE_MAP$nor = DAYJS_LOCALE_MAP[normalizedLocale]) !== null && _DAYJS_LOCALE_MAP$nor !== void 0 ? _DAYJS_LOCALE_MAP$nor : normalizedLocale;
|
|
167
|
+
if (dayjsLocaleName !== "en" && !loadedLocales.has(dayjsLocaleName)) {
|
|
168
|
+
const loader = localeLoaders[dayjsLocaleName];
|
|
169
|
+
if (loader) yield loader();
|
|
170
|
+
loadedLocales.add(dayjsLocaleName);
|
|
171
|
+
}
|
|
172
|
+
const baseLocale = (_dayjs$Ls$dayjsLocale = dayjs$1.Ls[dayjsLocaleName]) !== null && _dayjs$Ls$dayjsLocale !== void 0 ? _dayjs$Ls$dayjsLocale : dayjs$1.Ls.en;
|
|
173
|
+
dayjs$1.locale(_objectSpread2(_objectSpread2({}, baseLocale), {}, {
|
|
174
|
+
name: dayjsLocaleName,
|
|
175
|
+
weekStart
|
|
176
|
+
}));
|
|
128
177
|
});
|
|
129
|
-
return
|
|
178
|
+
return _initializeDateLocale.apply(this, arguments);
|
|
130
179
|
}
|
|
131
180
|
//#endregion
|
|
132
|
-
export { dayjs, getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initializeDateLocale, isValueChange, methods
|
|
181
|
+
export { dayjs$1 as dayjs, getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initializeDateLocale, isValueChange, methods };
|
package/es/_utils/debounce.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function debounce(callback: (...args:
|
|
1
|
+
export declare function debounce<T extends unknown[]>(callback: (...args: T) => void, delay: number): (...args: T) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Data } from './types';
|
|
2
|
-
export declare const getValueByPath: <T =
|
|
3
|
-
export declare const setValueByPath: (obj: Data | undefined, path: string | undefined, value:
|
|
2
|
+
export declare const getValueByPath: <T = Data>(obj: Data | undefined, path: string | undefined) => T | undefined;
|
|
3
|
+
export declare const setValueByPath: (obj: Data | undefined, path: string | undefined, value: Data[keyof Data], { addPath }?: {
|
|
4
4
|
addPath?: boolean;
|
|
5
5
|
}) => void;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
import type { SDOptions } from './types';
|
|
3
|
+
declare const CLASS_PREFIX = "sd";
|
|
3
4
|
export declare const getComponentPrefix: (options?: SDOptions) => string;
|
|
4
5
|
export declare const setGlobalConfig: (app: App, options?: SDOptions) => void;
|
|
5
6
|
export declare const getPrefixCls: (componentName?: string) => string;
|
|
7
|
+
type CssVarToken<T extends string> = T extends `--${infer Rest}` ? `--${typeof CLASS_PREFIX}-${Rest}` : `--${typeof CLASS_PREFIX}-${T}`;
|
|
8
|
+
export declare const getCssVarToken: <T extends string>(token: T) => CssVarToken<T>;
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.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";
|
|
@@ -20,5 +20,13 @@ var getPrefixCls = (componentName) => {
|
|
|
20
20
|
if (componentName) return `${prefix}-${componentName}`;
|
|
21
21
|
return prefix;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* 生成带组件库前缀的 CSS 变量名
|
|
25
|
+
* @example getCssVarToken('--color-text-2') // type: '--sd-color-text-2'
|
|
26
|
+
* @example getCssVarToken('color-text-2') // type: '--sd-color-text-2'
|
|
27
|
+
*/
|
|
28
|
+
var getCssVarToken = (token) => {
|
|
29
|
+
return `--${CLASS_PREFIX}-${token.replace(/^--/, "")}`;
|
|
30
|
+
};
|
|
23
31
|
//#endregion
|
|
24
|
-
export { getComponentPrefix, getPrefixCls, setGlobalConfig };
|
|
32
|
+
export { getComponentPrefix, getCssVarToken, getPrefixCls, setGlobalConfig };
|
package/es/_utils/is-equal.js
CHANGED
|
@@ -19,7 +19,7 @@ var isEqual = (a, b) => {
|
|
|
19
19
|
if (type === "[object Array]") return isEqualArray(a, b);
|
|
20
20
|
if (type === "[object Function]") {
|
|
21
21
|
if (a === b) return true;
|
|
22
|
-
return a
|
|
22
|
+
return String(a) === String(b);
|
|
23
23
|
}
|
|
24
24
|
return a === b;
|
|
25
25
|
};
|
package/es/_utils/is.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentPublicInstance, VNodeNormalizedChildren } from 'vue';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
|
-
export declare function isArray(obj: any): obj is
|
|
4
|
+
export declare function isArray(obj: any): obj is unknown[];
|
|
5
5
|
export declare function isNull(obj: any): obj is null;
|
|
6
6
|
export declare function isBoolean(obj: unknown): obj is boolean;
|
|
7
7
|
export declare function isObject<T extends unknown>(obj: T): obj is Extract<T, Record<string, any>>;
|
|
@@ -10,11 +10,11 @@ export declare function isString(obj: any): obj is string;
|
|
|
10
10
|
export declare function isNumber(obj: any): obj is number;
|
|
11
11
|
export declare function isRegExp(obj: any): boolean;
|
|
12
12
|
export declare function isDate(obj: any): boolean;
|
|
13
|
-
export declare function isColor(color:
|
|
13
|
+
export declare function isColor(color: string): boolean;
|
|
14
14
|
export declare function isUndefined(obj: any): obj is undefined;
|
|
15
15
|
export declare function isFunction(obj: any): obj is (...args: any[]) => any;
|
|
16
16
|
export declare function isEmptyObject(obj: any): boolean;
|
|
17
|
-
export declare function isExist(obj:
|
|
17
|
+
export declare function isExist(obj: unknown): boolean;
|
|
18
18
|
export declare function isWindow(el: any): el is Window;
|
|
19
19
|
export declare const isComponentInstance: (value: any) => value is ComponentPublicInstance;
|
|
20
20
|
export declare const isArrayChildren: (children: VNodeNormalizedChildren) => children is VNode[];
|
package/es/_utils/is.js
CHANGED
package/es/_utils/omit.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Data } from './types';
|
|
2
|
-
export declare const omit: <T extends Data, K extends keyof
|
|
2
|
+
export declare const omit: <T extends Data, K extends keyof T>(object: T, path: Array<K>) => Omit<T, K>;
|
package/es/_utils/omit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region components/_utils/omit.ts
|
|
3
3
|
var omit = (object, path) => {
|
|
4
4
|
const result = _objectSpread2({}, object);
|
package/es/_utils/pick.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function pick<T extends object, K extends keyof T>(obj: T, keys: Array<K
|
|
1
|
+
export default function pick<T extends object, K extends keyof T>(obj: T, keys: Array<K>): Pick<T, K>;
|
package/es/_utils/pick.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
//#region components/_utils/responsive-observe.ts
|
|
3
3
|
var responsiveArray = [
|
|
4
4
|
"xxl",
|
package/es/_utils/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface SDIconOptions {
|
|
|
10
10
|
export interface SDGlobalConfig {
|
|
11
11
|
classPrefix?: string;
|
|
12
12
|
}
|
|
13
|
-
type UnionToIntersection<U> = (U extends
|
|
13
|
+
type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
14
14
|
export type BaseType = string | number;
|
|
15
15
|
export type UnionType = BaseType | Record<string, any>;
|
|
16
16
|
export type Data = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.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) {
|