@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
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { weekdays } from '../core/config';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {Date} start
|
|
5
|
+
* @param {Date} end
|
|
6
|
+
* @param {number|string|undefined|null} schedule
|
|
7
|
+
* @param {{ hasAny: boolean, byWeekday: Record<string, { default?: { from: number, to: number }[], schedules?: Record<string, { from: number, to: number }[]> }> }} disallowed
|
|
8
|
+
* @param {boolean} hasSchedules
|
|
9
|
+
* @returns {boolean} true if [start, end) overlaps any disallowed segment
|
|
10
|
+
*/
|
|
11
|
+
export const eventRangeViolatesAllowEvents = ({
|
|
12
|
+
start,
|
|
13
|
+
end,
|
|
14
|
+
schedule,
|
|
15
|
+
disallowed,
|
|
16
|
+
hasSchedules,
|
|
17
|
+
}) => {
|
|
18
|
+
if (!disallowed?.hasAny || !start || !end) return false;
|
|
19
|
+
|
|
20
|
+
const byWeekday = disallowed.byWeekday;
|
|
21
|
+
const startMs = start.getTime();
|
|
22
|
+
const endMs = end.getTime();
|
|
23
|
+
if (endMs <= startMs) return false;
|
|
24
|
+
|
|
25
|
+
const d = new Date(start);
|
|
26
|
+
d.setHours(0, 0, 0, 0);
|
|
27
|
+
const endDay = new Date(end);
|
|
28
|
+
endDay.setHours(0, 0, 0, 0);
|
|
29
|
+
|
|
30
|
+
while (d.getTime() <= endDay.getTime()) {
|
|
31
|
+
const weekday = weekdays[d.getDay()];
|
|
32
|
+
const dayBlock = byWeekday[weekday];
|
|
33
|
+
if (dayBlock) {
|
|
34
|
+
let ranges = dayBlock.default;
|
|
35
|
+
if (hasSchedules && schedule !== undefined && schedule !== null && dayBlock.schedules) {
|
|
36
|
+
const sk = String(schedule);
|
|
37
|
+
if (Object.hasOwn(dayBlock.schedules, sk)) ranges = dayBlock.schedules[sk];
|
|
38
|
+
}
|
|
39
|
+
if (!ranges || !ranges.length) {
|
|
40
|
+
d.setDate(d.getDate() + 1);
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
const day0 = d.getTime();
|
|
44
|
+
for (let i = 0; i < ranges.length; i++) {
|
|
45
|
+
const { from, to } = ranges[i];
|
|
46
|
+
const absB0 = day0 + from * 60000;
|
|
47
|
+
const absB1 = day0 + to * 60000;
|
|
48
|
+
if (startMs < absB1 && endMs > absB0) return true;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
d.setDate(d.getDate() + 1);
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const MIN_STEP_MS = 60000;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Largest end in (start, endCandidate] such that [start, end) is allowed; falls back toward start if needed.
|
|
60
|
+
*/
|
|
61
|
+
export const maxValidEndForFixedStart = (
|
|
62
|
+
start,
|
|
63
|
+
endCandidate,
|
|
64
|
+
schedule,
|
|
65
|
+
disallowed,
|
|
66
|
+
hasSchedules,
|
|
67
|
+
) => {
|
|
68
|
+
if (!disallowed?.hasAny) return endCandidate;
|
|
69
|
+
const sMs = start.getTime();
|
|
70
|
+
const eMs = endCandidate.getTime();
|
|
71
|
+
if (eMs <= sMs) return endCandidate;
|
|
72
|
+
if (
|
|
73
|
+
!eventRangeViolatesAllowEvents({ start, end: endCandidate, schedule, disallowed, hasSchedules })
|
|
74
|
+
)
|
|
75
|
+
return endCandidate;
|
|
76
|
+
let lo = sMs + MIN_STEP_MS;
|
|
77
|
+
let hi = eMs;
|
|
78
|
+
let best = sMs;
|
|
79
|
+
while (lo <= hi) {
|
|
80
|
+
const mid = Math.floor((lo + hi + 1) / 2);
|
|
81
|
+
if (
|
|
82
|
+
!eventRangeViolatesAllowEvents({
|
|
83
|
+
start,
|
|
84
|
+
end: new Date(mid),
|
|
85
|
+
schedule,
|
|
86
|
+
disallowed,
|
|
87
|
+
hasSchedules,
|
|
88
|
+
})
|
|
89
|
+
) {
|
|
90
|
+
best = mid;
|
|
91
|
+
lo = mid + 1;
|
|
92
|
+
} else hi = mid - 1;
|
|
93
|
+
}
|
|
94
|
+
return new Date(best);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Smallest start in [startCandidate, end) such that [start, end) is allowed; returns startCandidate if none found in range.
|
|
99
|
+
*/
|
|
100
|
+
export const minValidStartForFixedEnd = (
|
|
101
|
+
end,
|
|
102
|
+
startCandidate,
|
|
103
|
+
schedule,
|
|
104
|
+
disallowed,
|
|
105
|
+
hasSchedules,
|
|
106
|
+
) => {
|
|
107
|
+
if (!disallowed?.hasAny) return startCandidate;
|
|
108
|
+
const eMs = end.getTime();
|
|
109
|
+
const sMs = startCandidate.getTime();
|
|
110
|
+
if (eMs <= sMs) return startCandidate;
|
|
111
|
+
if (
|
|
112
|
+
!eventRangeViolatesAllowEvents({
|
|
113
|
+
start: startCandidate,
|
|
114
|
+
end,
|
|
115
|
+
schedule,
|
|
116
|
+
disallowed,
|
|
117
|
+
hasSchedules,
|
|
118
|
+
})
|
|
119
|
+
)
|
|
120
|
+
return startCandidate;
|
|
121
|
+
let lo = sMs;
|
|
122
|
+
let hi = eMs - MIN_STEP_MS;
|
|
123
|
+
let ans = sMs;
|
|
124
|
+
while (lo <= hi) {
|
|
125
|
+
const mid = Math.floor((lo + hi) / 2);
|
|
126
|
+
if (
|
|
127
|
+
!eventRangeViolatesAllowEvents({
|
|
128
|
+
start: new Date(mid),
|
|
129
|
+
end,
|
|
130
|
+
schedule,
|
|
131
|
+
disallowed,
|
|
132
|
+
hasSchedules,
|
|
133
|
+
})
|
|
134
|
+
) {
|
|
135
|
+
ans = mid;
|
|
136
|
+
hi = mid - 1;
|
|
137
|
+
} else lo = mid + 1;
|
|
138
|
+
}
|
|
139
|
+
return new Date(ans);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Clamps [snappedLow, snappedHigh] day minutes (same calendar day as cellDate) so the range does not overlap disallowed special hours.
|
|
144
|
+
* Uses raw anchor/cursor minutes only to know which side follows the pointer.
|
|
145
|
+
*/
|
|
146
|
+
export const clampDragCreateDayMinutes = ({
|
|
147
|
+
anchorDayMinutes,
|
|
148
|
+
cursorDayMinutes,
|
|
149
|
+
snappedLow,
|
|
150
|
+
snappedHigh,
|
|
151
|
+
cellDate,
|
|
152
|
+
schedule,
|
|
153
|
+
disallowed,
|
|
154
|
+
hasSchedules,
|
|
155
|
+
}) => {
|
|
156
|
+
let low = snappedLow;
|
|
157
|
+
let high = snappedHigh;
|
|
158
|
+
if (!disallowed?.hasAny || high <= low) return { low, high };
|
|
159
|
+
|
|
160
|
+
const day0 = new Date(cellDate);
|
|
161
|
+
day0.setHours(0, 0, 0, 0);
|
|
162
|
+
const at = (m) => {
|
|
163
|
+
const d = new Date(day0);
|
|
164
|
+
d.setMinutes(m);
|
|
165
|
+
return d;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
const start = at(low);
|
|
169
|
+
const end = at(high);
|
|
170
|
+
if (!eventRangeViolatesAllowEvents({ start, end, schedule, disallowed, hasSchedules }))
|
|
171
|
+
return { low, high };
|
|
172
|
+
|
|
173
|
+
const dayMs = day0.getTime();
|
|
174
|
+
const toDayMinutes = (dt) => Math.round((dt.getTime() - dayMs) / 60000);
|
|
175
|
+
|
|
176
|
+
if (anchorDayMinutes <= cursorDayMinutes) {
|
|
177
|
+
const maxEnd = maxValidEndForFixedStart(start, end, schedule, disallowed, hasSchedules);
|
|
178
|
+
high = toDayMinutes(maxEnd);
|
|
179
|
+
} else {
|
|
180
|
+
const minStart = minValidStartForFixedEnd(end, start, schedule, disallowed, hasSchedules);
|
|
181
|
+
low = toDayMinutes(minStart);
|
|
182
|
+
}
|
|
183
|
+
return { low, high };
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* After an external resize proposal, clamp so the range stays within allowEvents:true segments.
|
|
188
|
+
* Uses previous start/end to detect which edge is being dragged when both timestamps change (flip).
|
|
189
|
+
*/
|
|
190
|
+
export const clampResizeProposedRange = ({
|
|
191
|
+
proposedStart,
|
|
192
|
+
proposedEnd,
|
|
193
|
+
prevStart,
|
|
194
|
+
prevEnd,
|
|
195
|
+
schedule,
|
|
196
|
+
disallowed,
|
|
197
|
+
hasSchedules,
|
|
198
|
+
}) => {
|
|
199
|
+
if (!disallowed?.hasAny) return { start: proposedStart, end: proposedEnd };
|
|
200
|
+
|
|
201
|
+
let s = proposedStart;
|
|
202
|
+
let e = proposedEnd;
|
|
203
|
+
if (e.getTime() <= s.getTime()) return { start: s, end: e };
|
|
204
|
+
|
|
205
|
+
if (!eventRangeViolatesAllowEvents({ start: s, end: e, schedule, disallowed, hasSchedules }))
|
|
206
|
+
return { start: s, end: e };
|
|
207
|
+
|
|
208
|
+
const pS = prevStart.getTime();
|
|
209
|
+
const pE = prevEnd.getTime();
|
|
210
|
+
const nS = s.getTime();
|
|
211
|
+
const nE = e.getTime();
|
|
212
|
+
const endMoved = nE !== pE;
|
|
213
|
+
const startMoved = nS !== pS;
|
|
214
|
+
|
|
215
|
+
if (endMoved && !startMoved) {
|
|
216
|
+
e = maxValidEndForFixedStart(s, e, schedule, disallowed, hasSchedules);
|
|
217
|
+
return { start: s, end: e };
|
|
218
|
+
}
|
|
219
|
+
if (startMoved && !endMoved) {
|
|
220
|
+
s = minValidStartForFixedEnd(e, s, schedule, disallowed, hasSchedules);
|
|
221
|
+
return { start: s, end: e };
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const e2 = maxValidEndForFixedStart(s, e, schedule, disallowed, hasSchedules);
|
|
225
|
+
if (!eventRangeViolatesAllowEvents({ start: s, end: e2, schedule, disallowed, hasSchedules }))
|
|
226
|
+
return { start: s, end: e2 };
|
|
227
|
+
|
|
228
|
+
s = minValidStartForFixedEnd(e, s, schedule, disallowed, hasSchedules);
|
|
229
|
+
return { start: s, end: e };
|
|
230
|
+
};
|
package/es/card/card-grid.js
CHANGED
|
@@ -5,6 +5,6 @@ import { createElementBlock, normalizeClass, openBlock, renderSlot } from "vue";
|
|
|
5
5
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6
6
|
return openBlock(), createElementBlock("div", { class: normalizeClass(_ctx.cls) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
7
7
|
}
|
|
8
|
-
var card_grid_default =
|
|
8
|
+
var card_grid_default = /*#__PURE__*/ _plugin_vue_export_helper_default(card_grid_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
9
9
|
//#endregion
|
|
10
10
|
export { card_grid_default as default };
|
package/es/card/style/index.css
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
/********* icon hover *********/
|
|
18
18
|
.sd-card {
|
|
19
19
|
position: relative;
|
|
20
|
-
background: var(--color-bg-2);
|
|
21
|
-
border-radius: var(--border-radius-none);
|
|
20
|
+
background: var(--sd-color-bg-2);
|
|
21
|
+
border-radius: var(--sd-border-radius-none);
|
|
22
22
|
transition: box-shadow 0.2s cubic-bezier(0, 0, 1, 1);
|
|
23
23
|
}
|
|
24
24
|
.sd-card-header {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
box-sizing: border-box;
|
|
30
30
|
overflow: hidden;
|
|
31
|
-
border-bottom: 1px solid var(--color-neutral-3);
|
|
31
|
+
border-bottom: 1px solid var(--sd-color-neutral-3);
|
|
32
32
|
}
|
|
33
33
|
.sd-card-header-no-title::before {
|
|
34
34
|
display: block;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
.sd-card-header-title {
|
|
38
38
|
flex: 1;
|
|
39
|
-
color: var(--color-text-1);
|
|
39
|
+
color: var(--sd-color-text-1);
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
line-height: 1.5715;
|
|
42
42
|
overflow: hidden;
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
text-overflow: ellipsis;
|
|
45
45
|
}
|
|
46
46
|
.sd-card-header-extra {
|
|
47
|
-
color: rgb(var(--primary-6));
|
|
47
|
+
color: rgb(var(--sd-primary-6));
|
|
48
48
|
overflow: hidden;
|
|
49
49
|
white-space: nowrap;
|
|
50
50
|
text-overflow: ellipsis;
|
|
51
51
|
}
|
|
52
52
|
.sd-card-body {
|
|
53
|
-
color: var(--color-text-2);
|
|
53
|
+
color: var(--sd-color-text-2);
|
|
54
54
|
}
|
|
55
55
|
.sd-card-cover {
|
|
56
56
|
overflow: hidden;
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
justify-content: center;
|
|
80
|
-
color: var(--color-text-2);
|
|
80
|
+
color: var(--sd-color-text-2);
|
|
81
81
|
cursor: pointer;
|
|
82
82
|
transition: color 0.2s cubic-bezier(0, 0, 1, 1);
|
|
83
83
|
overflow: hidden;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
text-overflow: ellipsis;
|
|
86
86
|
}
|
|
87
87
|
.sd-card-actions-item:hover {
|
|
88
|
-
color: rgb(var(--primary-6));
|
|
88
|
+
color: rgb(var(--sd-primary-6));
|
|
89
89
|
}
|
|
90
90
|
.sd-card-actions-item:not(:last-child) {
|
|
91
91
|
margin-right: 12px;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
margin-top: 0;
|
|
107
107
|
}
|
|
108
108
|
.sd-card-meta-title {
|
|
109
|
-
color: var(--color-text-1);
|
|
109
|
+
color: var(--sd-color-text-1);
|
|
110
110
|
font-weight: 500;
|
|
111
111
|
overflow: hidden;
|
|
112
112
|
white-space: nowrap;
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
position: relative;
|
|
120
120
|
box-sizing: border-box;
|
|
121
121
|
width: 33.33%;
|
|
122
|
-
box-shadow: 1px 0 0 0 var(--color-neutral-3), 0 1px 0 0 var(--color-neutral-3), 1px 1px 0 0 var(--color-neutral-3), 1px 0 0 0 var(--color-neutral-3) inset, 0 1px 0 0 var(--color-neutral-3) inset;
|
|
122
|
+
box-shadow: 1px 0 0 0 var(--sd-color-neutral-3), 0 1px 0 0 var(--sd-color-neutral-3), 1px 1px 0 0 var(--sd-color-neutral-3), 1px 0 0 0 var(--sd-color-neutral-3) inset, 0 1px 0 0 var(--sd-color-neutral-3) inset;
|
|
123
123
|
}
|
|
124
124
|
.sd-card-grid::before {
|
|
125
125
|
position: absolute;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
z-index: 1;
|
|
133
133
|
}
|
|
134
134
|
.sd-card-grid-hoverable:hover::before {
|
|
135
|
-
box-shadow: 0 4px 10px rgb(var(--gray-2));
|
|
135
|
+
box-shadow: 0 4px 10px rgb(var(--sd-gray-2));
|
|
136
136
|
}
|
|
137
137
|
.sd-card-grid .sd-card {
|
|
138
138
|
background: none;
|
|
@@ -145,14 +145,14 @@
|
|
|
145
145
|
padding: 0;
|
|
146
146
|
}
|
|
147
147
|
.sd-card-hoverable:hover {
|
|
148
|
-
box-shadow: 0 4px 10px rgb(var(--gray-2));
|
|
148
|
+
box-shadow: 0 4px 10px rgb(var(--sd-gray-2));
|
|
149
149
|
}
|
|
150
150
|
.sd-card-bordered {
|
|
151
|
-
border: 1px solid var(--color-neutral-3);
|
|
152
|
-
border-radius: var(--border-radius-small);
|
|
151
|
+
border: 1px solid var(--sd-color-neutral-3);
|
|
152
|
+
border-radius: var(--sd-border-radius-small);
|
|
153
153
|
}
|
|
154
154
|
.sd-card-bordered .sd-card-cover {
|
|
155
|
-
border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
|
|
155
|
+
border-radius: var(--sd-border-radius-small) var(--sd-border-radius-small) 0 0;
|
|
156
156
|
}
|
|
157
157
|
.sd-card-loading .sd-card-body {
|
|
158
158
|
overflow: hidden;
|
|
@@ -195,5 +195,5 @@
|
|
|
195
195
|
|
|
196
196
|
:where(body, [sd-theme])[sd-theme=dark] .sd-card-grid-hoverable:hover::before,
|
|
197
197
|
:where(body, [sd-theme])[sd-theme=dark] .sd-card-hoverable:hover {
|
|
198
|
-
box-shadow: 0 4px 10px rgb(var(--gray-1), 40%);
|
|
198
|
+
box-shadow: 0 4px 10px rgb(var(--sd-gray-1), 40%);
|
|
199
199
|
}
|
|
@@ -15,6 +15,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15
15
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onNextClick && _ctx.onNextClick(...args))
|
|
16
16
|
}, [_ctx.direction === "horizontal" ? (openBlock(), createBlock(_component_IconRight, { key: 0 })) : (openBlock(), createBlock(_component_IconDown, { key: 1 }))], 2)], 2);
|
|
17
17
|
}
|
|
18
|
-
var carousel_arrow_default =
|
|
18
|
+
var carousel_arrow_default = /*#__PURE__*/ _plugin_vue_export_helper_default(carousel_arrow_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
19
19
|
//#endregion
|
|
20
20
|
export { carousel_arrow_default as default };
|
|
@@ -16,6 +16,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16
16
|
}, null, 10, _hoisted_1);
|
|
17
17
|
}), 128))], 16);
|
|
18
18
|
}
|
|
19
|
-
var carousel_indicator_default =
|
|
19
|
+
var carousel_indicator_default = /*#__PURE__*/ _plugin_vue_export_helper_default(carousel_indicator_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
20
20
|
//#endregion
|
|
21
21
|
export { carousel_indicator_default as default };
|
|
@@ -62,8 +62,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
62
62
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
type: CarouselIndicatorType;
|
|
65
|
-
trigger: CarouselTriggerEvent;
|
|
66
65
|
position: CarouselIndicatorPosition;
|
|
66
|
+
trigger: CarouselTriggerEvent;
|
|
67
67
|
count: number;
|
|
68
68
|
activeIndex: number;
|
|
69
69
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -10,6 +10,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10
10
|
style: normalizeStyle(_ctx.animationStyle)
|
|
11
11
|
}, [renderSlot(_ctx.$slots, "default")], 14, _hoisted_1);
|
|
12
12
|
}
|
|
13
|
-
var carousel_item_default =
|
|
13
|
+
var carousel_item_default = /*#__PURE__*/ _plugin_vue_export_helper_default(carousel_item_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
14
14
|
//#endregion
|
|
15
15
|
export { carousel_item_default as default };
|
package/es/carousel/carousel.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
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isNumber, isObject } from "../_utils/is.js";
|
|
4
4
|
import { useChildrenComponents } from "../_hooks/use-children-components.js";
|
|
@@ -337,22 +337,22 @@
|
|
|
337
337
|
.sd-carousel-indicator-outer.sd-carousel-indicator-slider {
|
|
338
338
|
bottom: -20px;
|
|
339
339
|
padding: 0;
|
|
340
|
-
background-color: rgb(var(--gray-4), 0.5);
|
|
340
|
+
background-color: rgb(var(--sd-gray-4), 0.5);
|
|
341
341
|
}
|
|
342
342
|
.sd-carousel-indicator-outer .sd-carousel-indicator-item {
|
|
343
|
-
background-color: rgb(var(--gray-4), 0.5);
|
|
343
|
+
background-color: rgb(var(--sd-gray-4), 0.5);
|
|
344
344
|
}
|
|
345
345
|
.sd-carousel-indicator-outer .sd-carousel-indicator-item:hover, .sd-carousel-indicator-outer .sd-carousel-indicator-item-active {
|
|
346
|
-
background-color: var(--color-fill-4);
|
|
346
|
+
background-color: var(--sd-color-fill-4);
|
|
347
347
|
}
|
|
348
348
|
.sd-carousel-indicator-item {
|
|
349
349
|
display: inline-block;
|
|
350
350
|
background-color: rgba(255, 255, 255, 0.3);
|
|
351
|
-
border-radius: var(--border-radius-medium);
|
|
351
|
+
border-radius: var(--sd-border-radius-medium);
|
|
352
352
|
cursor: pointer;
|
|
353
353
|
}
|
|
354
354
|
.sd-carousel-indicator-item:hover, .sd-carousel-indicator-item-active {
|
|
355
|
-
background-color: var(--color-white);
|
|
355
|
+
background-color: var(--sd-color-white);
|
|
356
356
|
}
|
|
357
357
|
.sd-carousel-indicator-dot .sd-carousel-indicator-item {
|
|
358
358
|
width: 6px;
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
width: 48px;
|
|
374
374
|
height: 4px;
|
|
375
375
|
background-color: rgba(255, 255, 255, 0.3);
|
|
376
|
-
border-radius: var(--border-radius-medium);
|
|
376
|
+
border-radius: var(--sd-border-radius-medium);
|
|
377
377
|
cursor: pointer;
|
|
378
378
|
}
|
|
379
379
|
.sd-carousel-indicator-slider .sd-carousel-indicator-item {
|
|
@@ -390,13 +390,13 @@
|
|
|
390
390
|
justify-content: center;
|
|
391
391
|
width: 24px;
|
|
392
392
|
height: 24px;
|
|
393
|
-
color: var(--color-white);
|
|
393
|
+
color: var(--sd-color-white);
|
|
394
394
|
background-color: rgba(255, 255, 255, 0.3);
|
|
395
395
|
border-radius: 50%;
|
|
396
396
|
cursor: pointer;
|
|
397
397
|
}
|
|
398
398
|
.sd-carousel-arrow > div > svg {
|
|
399
|
-
color: var(--color-white);
|
|
399
|
+
color: var(--sd-color-white);
|
|
400
400
|
font-size: 14px;
|
|
401
401
|
}
|
|
402
402
|
.sd-carousel-arrow > div:hover {
|
|
@@ -442,12 +442,12 @@
|
|
|
442
442
|
}
|
|
443
443
|
:where(body, [sd-theme])[sd-theme=dark] .sd-carousel-indicator-item-active,
|
|
444
444
|
:where(body, [sd-theme])[sd-theme=dark] .sd-carousel-indicator-item:hover {
|
|
445
|
-
background-color: var(--color-white);
|
|
445
|
+
background-color: var(--sd-color-white);
|
|
446
446
|
}
|
|
447
447
|
:where(body, [sd-theme])[sd-theme=dark] .sd-carousel-indicator-outer.sd-carousel-indicator-slider {
|
|
448
|
-
background-color: rgb(var(--gray-4), 0.5);
|
|
448
|
+
background-color: rgb(var(--sd-gray-4), 0.5);
|
|
449
449
|
}
|
|
450
450
|
:where(body, [sd-theme])[sd-theme=dark] .sd-carousel-indicator-outer .sd-carousel-indicator-item:hover,
|
|
451
451
|
:where(body, [sd-theme])[sd-theme=dark] .sd-carousel-indicator-outer .sd-carousel-indicator-item-active {
|
|
452
|
-
background-color: var(--color-fill-4);
|
|
452
|
+
background-color: var(--sd-color-fill-4);
|
|
453
453
|
}
|
|
@@ -3,7 +3,7 @@ import { getPrefixCls } from "../_utils/global-config.js";
|
|
|
3
3
|
import Empty from "../empty/index.js";
|
|
4
4
|
import Spin from "../spin/index.js";
|
|
5
5
|
import cascader_column_default from "./cascader-column.js";
|
|
6
|
-
import { TransitionGroup, createVNode, defineComponent, inject, isVNode } from "vue";
|
|
6
|
+
import { TransitionGroup, createVNode, defineComponent, inject, isVNode, mergeProps } from "vue";
|
|
7
7
|
//#region components/cascader/base-cascader-panel.tsx
|
|
8
8
|
function _isSlot(s) {
|
|
9
9
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -60,11 +60,10 @@ var base_cascader_panel_default = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
};
|
|
61
61
|
return () => {
|
|
62
62
|
let _slot;
|
|
63
|
-
return createVNode(TransitionGroup, {
|
|
63
|
+
return createVNode(TransitionGroup, mergeProps({
|
|
64
64
|
"tag": "div",
|
|
65
|
-
"name": "cascader-slide"
|
|
66
|
-
|
|
67
|
-
}, _isSlot(_slot = renderContent()) ? _slot : { default: () => [_slot] });
|
|
65
|
+
"name": "cascader-slide"
|
|
66
|
+
}, { class: [`${prefixCls}-panel`, { [`${prefixCls}-dropdown-panel`]: props.dropdown }] }), _isSlot(_slot = renderContent()) ? _slot : { default: () => [_slot] });
|
|
68
67
|
};
|
|
69
68
|
}
|
|
70
69
|
});
|
|
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
searchOption: BooleanConstructor;
|
|
22
22
|
pathLabel: BooleanConstructor;
|
|
23
23
|
}>> & Readonly<{}>, {
|
|
24
|
-
active: boolean;
|
|
25
24
|
multiple: boolean;
|
|
25
|
+
active: boolean;
|
|
26
26
|
checkStrictly: boolean;
|
|
27
27
|
searchOption: boolean;
|
|
28
28
|
pathLabel: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
2
|
import { isFunction } from "../_utils/is.js";
|
|
3
3
|
import IconLoading from "../icon/icon-loading/index.js";
|
|
4
|
-
import Checkbox from "../checkbox/index.js";
|
|
5
4
|
import IconRight from "../icon/icon-right/index.js";
|
|
5
|
+
import Checkbox from "../checkbox/index.js";
|
|
6
6
|
import Radio from "../radio/index.js";
|
|
7
7
|
import { cascaderInjectionKey } from "./context.js";
|
|
8
8
|
import { getCheckedStatus, getOptionLabel } from "./utils.js";
|
|
@@ -102,7 +102,7 @@ var cascader_option_default = /* @__PURE__ */ defineComponent({
|
|
|
102
102
|
"title": props.option.label,
|
|
103
103
|
"class": cls.value
|
|
104
104
|
}, events), [
|
|
105
|
-
props.multiple && createVNode(Checkbox, {
|
|
105
|
+
props.multiple && createVNode(Checkbox, mergeProps({
|
|
106
106
|
"modelValue": checkedStatus.value.checked,
|
|
107
107
|
"indeterminate": checkedStatus.value.indeterminate,
|
|
108
108
|
"disabled": props.option.disabled || props.option.selectionDisabled,
|
|
@@ -112,10 +112,9 @@ var cascader_option_default = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
ev.stopPropagation();
|
|
113
113
|
handlePathChange(ev);
|
|
114
114
|
(_cascaderCtx$onClickO2 = cascaderCtx.onClickOption) === null || _cascaderCtx$onClickO2 === void 0 || _cascaderCtx$onClickO2.call(cascaderCtx, props.option, !checkedStatus.value.checked);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
props.checkStrictly && !props.multiple && createVNode(Radio, {
|
|
115
|
+
}
|
|
116
|
+
}, { onClick: (ev) => ev.stopPropagation() }), null),
|
|
117
|
+
props.checkStrictly && !props.multiple && createVNode(Radio, mergeProps({
|
|
119
118
|
"modelValue": (_cascaderCtx$valueMap2 = cascaderCtx.valueMap) === null || _cascaderCtx$valueMap2 === void 0 ? void 0 : _cascaderCtx$valueMap2.has(props.option.key),
|
|
120
119
|
"disabled": props.option.disabled,
|
|
121
120
|
"uninjectGroupContext": true,
|
|
@@ -124,9 +123,8 @@ var cascader_option_default = /* @__PURE__ */ defineComponent({
|
|
|
124
123
|
ev.stopPropagation();
|
|
125
124
|
handlePathChange(ev);
|
|
126
125
|
(_cascaderCtx$onClickO3 = cascaderCtx.onClickOption) === null || _cascaderCtx$onClickO3 === void 0 || _cascaderCtx$onClickO3.call(cascaderCtx, props.option, true);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
}, null),
|
|
126
|
+
}
|
|
127
|
+
}, { onClick: (ev) => ev.stopPropagation() }), null),
|
|
130
128
|
createVNode("div", { "class": `${prefixCls}-label` }, [renderLabelContent(), renderIcon()])
|
|
131
129
|
])]);
|
|
132
130
|
};
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<CascaderPanelProps, {},
|
|
|
13
13
|
"onUpdate:modelValue"?: ((value: CascaderModelValue) => any) | undefined;
|
|
14
14
|
"onUpdate:value"?: ((value: CascaderModelValue) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
options: CascaderOption[];
|
|
17
16
|
multiple: boolean;
|
|
17
|
+
options: CascaderOption[];
|
|
18
18
|
valueKey: string;
|
|
19
19
|
expandTrigger: import("./types").CascaderExpandTrigger;
|
|
20
20
|
checkStrictly: boolean;
|
|
@@ -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
|
import { isNull, isUndefined } from "../_utils/is.js";
|
|
3
3
|
import { KEYBOARD_KEY, getKeyDownHandler } from "../_utils/keyboard.js";
|
|
4
4
|
import { cascaderInjectionKey } from "./context.js";
|
|
@@ -7,7 +7,7 @@ import base_cascader_panel_default from "./base-cascader-panel.js";
|
|
|
7
7
|
import { useSelectedPath } from "./hooks/use-selected-path.js";
|
|
8
8
|
import { computed, createBlock, createSlots, defineComponent, openBlock, provide, reactive, ref, renderSlot, toRefs, unref, useSlots, watch, withCtx } from "vue";
|
|
9
9
|
//#region components/cascader/cascader-panel.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var cascader_panel_vue_vue_type_script_setup_true_lang_default =
|
|
10
|
+
var cascader_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "CascaderPanel" }), {}, {
|
|
11
11
|
__name: "cascader-panel",
|
|
12
12
|
props: {
|
|
13
13
|
pathMode: {
|
|
@@ -17,9 +17,9 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
empty?: (props: typeof __VLS_55) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<CascaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
clear: () => any;
|
|
20
21
|
search: (value: string) => any;
|
|
21
22
|
focus: (ev: FocusEvent) => any;
|
|
22
|
-
clear: () => any;
|
|
23
23
|
blur: (ev: FocusEvent) => any;
|
|
24
24
|
change: (value: CascaderModelValue) => any;
|
|
25
25
|
"update:popupVisible": (visible: boolean) => any;
|
|
@@ -30,9 +30,9 @@ declare const __VLS_base: import("vue").DefineComponent<CascaderProps, {}, {}, {
|
|
|
30
30
|
"update:show": (visible: boolean) => any;
|
|
31
31
|
showChange: (visible: boolean) => any;
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<CascaderProps> & Readonly<{
|
|
33
|
+
onClear?: (() => any) | undefined;
|
|
33
34
|
onSearch?: ((value: string) => any) | undefined;
|
|
34
35
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
|
35
|
-
onClear?: (() => any) | undefined;
|
|
36
36
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
37
37
|
onChange?: ((value: CascaderModelValue) => any) | undefined;
|
|
38
38
|
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
|
|
@@ -43,12 +43,12 @@ declare const __VLS_base: import("vue").DefineComponent<CascaderProps, {}, {}, {
|
|
|
43
43
|
"onUpdate:show"?: ((visible: boolean) => any) | undefined;
|
|
44
44
|
onShowChange?: ((visible: boolean) => any) | undefined;
|
|
45
45
|
}>, {
|
|
46
|
+
separator: string;
|
|
47
|
+
multiple: boolean;
|
|
48
|
+
disabled: boolean;
|
|
46
49
|
options: CascaderOption[];
|
|
47
50
|
error: boolean;
|
|
48
51
|
defaultPopupVisible: boolean;
|
|
49
|
-
disabled: boolean;
|
|
50
|
-
separator: string;
|
|
51
|
-
multiple: boolean;
|
|
52
52
|
allowClear: boolean;
|
|
53
53
|
loading: boolean;
|
|
54
54
|
valueKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.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 { isArray, isFunction, isNull, isUndefined } from "../_utils/is.js";
|
|
4
4
|
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
5
5
|
import { useDropdownVirtualListProps } from "../_hooks/use-dropdown-virtual-list-props.js";
|
|
@@ -7,18 +7,18 @@ import { resolveDropdownVirtualListProps } from "../_utils/virtual-dropdown.js";
|
|
|
7
7
|
import { KEYBOARD_KEY, getKeyDownHandler } from "../_utils/keyboard.js";
|
|
8
8
|
import Trigger from "../trigger/index.js";
|
|
9
9
|
import { useTrigger } from "../_hooks/use-trigger.js";
|
|
10
|
-
import select_view_default from "../_components/select-view/select-view.js";
|
|
11
|
-
import { useAllowSearch } from "../_hooks/use-allow-search.js";
|
|
12
|
-
import { debounce } from "../_utils/debounce.js";
|
|
13
10
|
import { cascaderInjectionKey } from "./context.js";
|
|
14
11
|
import { getCheckedStatus, getLeafOptionInfos, getLeafOptionKeys, getOptionInfos, getOptionLabel, getValidValues, getValueKey } from "./utils.js";
|
|
15
12
|
import base_cascader_panel_default from "./base-cascader-panel.js";
|
|
16
13
|
import { useSelectedPath } from "./hooks/use-selected-path.js";
|
|
14
|
+
import select_view_default from "../_components/select-view/select-view.js";
|
|
15
|
+
import { useAllowSearch } from "../_hooks/use-allow-search.js";
|
|
16
|
+
import { debounce } from "../_utils/debounce.js";
|
|
17
17
|
import cascader_search_panel_default from "./cascader-search-panel.js";
|
|
18
18
|
import { computed, createBlock, createSlots, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, mergeProps, normalizeProps, openBlock, provide, reactive, ref, renderSlot, toRefs, unref, useAttrs, useSlots, watch, withCtx } from "vue";
|
|
19
19
|
//#region components/cascader/cascader.vue?vue&type=script&setup=true&lang.ts
|
|
20
20
|
var DEFAULT_CASCADER_VIRTUAL_ITEM_SIZE = 36;
|
|
21
|
-
var cascader_vue_vue_type_script_setup_true_lang_default =
|
|
21
|
+
var cascader_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
22
22
|
name: "Cascader",
|
|
23
23
|
inheritAttrs: false
|
|
24
24
|
}), {}, {
|