vft 0.0.249 → 0.0.252
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/es/components/alert/alert.vue.d.ts +1 -11
- package/es/components/alert/alert.vue2.js +13 -65
- package/es/components/alert/index.d.ts +28 -76
- package/es/components/autocomplete/autocomplete.vue.d.ts +14 -14
- package/es/components/autocomplete/autocomplete.vue2.js +194 -199
- package/es/components/autocomplete/index.d.ts +42 -42
- package/es/components/backtop/backtop.vue.d.ts +1 -15
- package/es/components/backtop/backtop.vue2.js +17 -106
- package/es/components/backtop/index.d.ts +3 -9
- package/es/components/backtop/types.d.ts +14 -0
- package/es/components/backtop/types.js +1 -0
- package/es/components/button/button-custom.d.ts +1 -1
- package/es/components/button/button.vue.d.ts +3 -50
- package/es/components/button/button.vue2.js +1 -1
- package/es/components/button/index.d.ts +39 -40
- package/es/components/button/types.d.ts +47 -1
- package/es/components/button/use-button.d.ts +5 -5
- package/es/components/card/index.d.ts +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +18 -18
- package/es/components/carousel/use-carousel.js +2 -3
- package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +42 -42
- package/es/components/color-picker/components/hue-slider.vue.d.ts +3 -3
- package/es/components/color-picker/components/predefine.vue.d.ts +3 -3
- package/es/components/color-picker/components/sv-panel.vue.d.ts +3 -3
- package/es/components/config-provider/hooks/use-global-config.d.ts +3 -3
- package/es/components/context-menu/context-menu.vue2.js +36 -124
- package/es/components/context-menu/index.js +5 -101
- package/es/components/context-menu/types.d.ts +1 -1
- package/es/components/context-menu/types.js +1 -98
- package/es/components/date-picker/composables/use-basic-date-table.d.ts +188 -0
- package/es/components/date-picker/composables/use-basic-date-table.js +183 -0
- package/es/components/date-picker/composables/use-month-range-header.d.ts +1 -1
- package/es/components/date-picker/composables/use-panel-date-range.d.ts +29 -0
- package/es/components/date-picker/composables/use-panel-date-range.js +72 -0
- package/es/components/date-picker/composables/use-range-picker.d.ts +46 -42
- package/es/components/date-picker/composables/use-range-picker.js +65 -52
- package/es/components/date-picker/composables/use-shortcut.js +4 -4
- package/es/components/date-picker/composables/use-year-range-header.d.ts +16 -0
- package/es/components/date-picker/composables/use-year-range-header.js +35 -0
- package/es/components/date-picker/constants.d.ts +2 -15
- package/es/components/date-picker/constants.js +3 -16
- package/es/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -1
- package/es/components/date-picker/date-picker-com/basic-cell-render.js +16 -19
- package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +14 -23
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +73 -176
- package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +2 -2
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +93 -71
- package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +50 -9
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +108 -57
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +13 -3
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +329 -277
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +16 -3
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +422 -281
- package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -3
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +137 -113
- package/es/components/date-picker/date-picker-com/panel-year-range.vue.d.ts +35 -0
- package/es/components/date-picker/date-picker-com/panel-year-range.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +210 -0
- package/es/components/date-picker/date-picker.d.ts +70 -40
- package/es/components/date-picker/date-picker.js +59 -50
- package/es/components/date-picker/date-picker.type.d.ts +2 -1
- package/es/components/date-picker/index.d.ts +126 -68
- package/es/components/date-picker/index.js +7 -7
- package/es/components/date-picker/instance.d.ts +9 -0
- package/es/components/date-picker/instance.js +1 -0
- package/es/components/date-picker/panel-utils.d.ts +48 -0
- package/es/components/date-picker/panel-utils.js +9 -6
- package/es/components/date-picker/props/basic-cell.d.ts +2 -1
- package/es/components/date-picker/props/basic-date-table.d.ts +7 -2
- package/es/components/date-picker/props/basic-date-table.js +6 -5
- package/es/components/date-picker/props/basic-month-table.d.ts +3 -2
- package/es/components/date-picker/props/basic-year-table.d.ts +23 -5
- package/es/components/date-picker/props/basic-year-table.js +5 -6
- package/es/components/date-picker/props/date-picker.d.ts +26 -12
- package/es/components/date-picker/props/date-picker.js +3 -0
- package/es/components/date-picker/props/panel-date-pick.d.ts +6 -1
- package/es/components/date-picker/props/panel-date-range.d.ts +7 -1
- package/es/components/date-picker/props/panel-month-range.d.ts +3 -1
- package/es/components/date-picker/props/panel-month-range.js +7 -3
- package/es/components/date-picker/props/panel-year-range.d.ts +14 -0
- package/es/components/date-picker/props/panel-year-range.js +17 -0
- package/es/components/date-picker/props/shared.d.ts +9 -2
- package/es/components/date-picker/props/shared.js +29 -12
- package/es/components/date-picker/style/css.d.ts +4 -0
- package/es/components/date-picker/style/css.js +5 -0
- package/es/components/date-picker/utils.d.ts +9 -2
- package/es/components/date-picker/utils.js +66 -33
- package/es/components/date-time-select/date-time-select.vue2.js +1 -1
- package/es/components/date-time-select/index.d.ts +1 -0
- package/es/components/date-time-select/types.d.ts +4 -0
- package/es/components/dialog/dialog-content.vue2.js +2 -3
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
- package/es/components/dropdown/dropdown-item-impl.vue.js +12 -12
- package/es/components/dropdown/dropdown-item-impl.vue2.js +6 -6
- package/es/components/dropdown/dropdown.vue.d.ts +6 -29
- package/es/components/dropdown/dropdown.vue2.js +146 -149
- package/es/components/footer-layout/footer-layout.vue2.js +19 -108
- package/es/components/form/form-item.vue.d.ts +2 -3
- package/es/components/form/form-item.vue2.js +140 -135
- package/es/components/form/form-label-wrap.js +27 -27
- package/es/components/form/form.vue2.js +71 -65
- package/es/components/form/hooks/use-form-common-props.js +3 -4
- package/es/components/form/hooks/use-form-item.js +12 -13
- package/es/components/form/index.d.ts +75 -48
- package/es/components/form/types.d.ts +7 -1
- package/es/components/form/utils.d.ts +1 -1
- package/es/components/form/utils.js +33 -28
- package/es/components/header-layout/header-layout.vue2.js +26 -114
- package/es/components/icon/icon.vue2.js +20 -19
- package/es/components/icon/index.d.ts +0 -1
- package/es/components/icon/index.js +3 -4
- package/es/components/index.js +323 -319
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/link/index.d.ts +3 -3
- package/es/components/md-code-demo/md-code-demo.js +12 -13
- package/es/components/md-container/md-container.vue2.js +52 -138
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +17 -17
- package/es/components/menu/index.js +1 -1
- package/es/components/menu/menu-item.vue.d.ts +1 -1
- package/es/components/menu/menu-item.vue2.js +45 -132
- package/es/components/menu/sub-menu.vue.d.ts +2 -1
- package/es/components/menu/sub-menu.vue2.js +76 -163
- package/es/components/modal/index.d.ts +33 -45
- package/es/components/modal/modal-footer-action.vue2.js +26 -112
- package/es/components/modal/modal.vue.d.ts +2 -2
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +57 -144
- package/es/components/multiple-tabs/tab-content.vue2.js +19 -113
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +37 -132
- package/es/components/popconfirm/index.d.ts +24 -24
- package/es/components/popconfirm/popconfirm.vue.d.ts +2 -2
- package/es/components/popover/index.d.ts +5 -5
- package/es/components/popover/popover.vue.d.ts +2 -2
- package/es/components/popper/composables/use-content.js +2 -3
- package/es/components/popper/trigger.vue2.js +7 -8
- package/es/components/progress/index.d.ts +3 -3
- package/es/components/result/result.vue.d.ts +1 -1
- package/es/components/result/result.vue2.js +20 -109
- package/es/components/roving-focus-group/index.js +11 -11
- package/es/components/roving-focus-group/roving-focus-group.vue.js +5 -5
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -3
- package/es/components/scrollbar/index.js +9 -10
- package/es/components/select/defaults.d.ts +99 -15
- package/es/components/select/defaults.js +90 -12
- package/es/components/select/group-item.vue.d.ts +10 -5
- package/es/components/select/group-item.vue.js +9 -19
- package/es/components/select/group-item.vue2.js +4 -2
- package/es/components/select/index.d.ts +2782 -0
- package/es/components/select/index.js +2 -2
- package/es/components/select/option-item.vue.d.ts +40 -26
- package/es/components/select/option-item.vue.js +12 -12
- package/es/components/select/option-item.vue2.js +15 -12
- package/es/components/select/select-dropdown.d.ts +29 -3
- package/es/components/select/select-dropdown.js +120 -129
- package/es/components/select/select.types.d.ts +19 -11
- package/es/components/select/select.vue.d.ts +2778 -0
- package/es/components/select/select.vue.js +261 -251
- package/es/components/select/select.vue2.js +49 -45
- package/es/components/select/token.d.ts +10 -12
- package/es/components/select/token.js +4 -2
- package/es/components/select/useAllowCreate.d.ts +3 -3
- package/es/components/select/useAllowCreate.js +32 -29
- package/es/components/select/useOption.d.ts +3 -3
- package/es/components/select/useProps.d.ts +21 -0
- package/es/components/select/useProps.js +22 -0
- package/es/components/select/useSelect.d.ts +940 -121
- package/es/components/select/useSelect.js +396 -302
- package/es/components/side-menu/side-menu.vue2.js +77 -165
- package/es/components/steps/index.d.ts +12 -12
- package/es/components/super-form/component-map.js +52 -141
- package/es/components/super-form/style/css.js +4 -4
- package/es/components/super-form/super-form-action.vue2.js +39 -126
- package/es/components/super-form/super-form-item.vue2.js +161 -248
- package/es/components/super-form/super-form.vue.d.ts +1 -1
- package/es/components/super-form/super-form.vue2.js +116 -202
- package/es/components/super-form/types.d.ts +3 -1
- package/es/components/switch/index.d.ts +6 -6
- package/es/components/table/field.js +82 -176
- package/es/components/table/index.d.ts +24 -24
- package/es/components/table/table.vue.d.ts +1 -1
- package/es/components/tabs/tab-nav.vue.d.ts +2 -2
- package/es/components/tabs/tab-nav.vue2.js +98 -187
- package/es/components/tabs/tabs.vue.d.ts +2 -1
- package/es/components/time-picker/common/picker-range-trigger.vue.d.ts +84 -0
- package/es/components/time-picker/common/picker-range-trigger.vue.js +4 -0
- package/es/components/time-picker/common/picker-range-trigger.vue2.js +100 -0
- package/es/components/time-picker/common/picker.vue.d.ts +71 -41
- package/es/components/time-picker/common/picker.vue2.js +285 -289
- package/es/components/time-picker/common/props.d.ts +76 -12
- package/es/components/time-picker/common/props.js +78 -35
- package/es/components/time-picker/composables/use-time-panel.d.ts +4 -4
- package/es/components/time-picker/composables/use-time-picker.d.ts +28 -29
- package/es/components/time-picker/constants.d.ts +5 -0
- package/es/components/time-picker/constants.js +15 -10
- package/es/components/time-picker/index.d.ts +120 -74
- package/es/components/time-picker/index.js +28 -23
- package/es/components/time-picker/props/basic-time-spinner.d.ts +5 -4
- package/es/components/time-picker/props/panel-time-picker.d.ts +2 -1
- package/es/components/time-picker/props/panel-time-range.d.ts +2 -1
- package/es/components/time-picker/props/shared.d.ts +4 -5
- package/es/components/time-picker/style/css.d.ts +3 -0
- package/es/components/time-picker/style/css.js +3 -0
- package/es/components/time-picker/style/index.d.ts +3 -0
- package/es/components/time-picker/style/index.js +3 -0
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +135 -128
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +4 -4
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +36 -35
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +4 -4
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +109 -108
- package/es/components/time-picker/time-picker.d.ts +60 -37
- package/es/components/time-picker/time-picker.js +28 -30
- package/es/components/time-picker/utils.d.ts +5 -2
- package/es/components/time-picker/utils.js +17 -16
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/timeline/index.d.ts +6 -6
- package/es/components/tooltip/content.vue2.js +47 -48
- package/es/components/tooltip/index.d.ts +3 -3
- package/es/components/tooltip/tooltip.vue.d.ts +1 -1
- package/es/components/tooltip/tooltip.vue2.js +77 -78
- package/es/components/tooltip/utils.js +4 -5
- package/es/components/tree/tree-node.vue.d.ts +33 -33
- package/es/components/tree/tree-node.vue.js +11 -11
- package/es/components/tree/tree-node.vue2.js +15 -15
- package/es/components/upload/index.d.ts +15 -15
- package/es/components/upload/upload-content.vue.d.ts +1 -1
- package/es/components/upload/upload.vue.d.ts +1 -1
- package/es/components/virtual-list/builders/build-grid.d.ts +9 -9
- package/es/components/virtual-list/builders/build-grid.js +222 -214
- package/es/components/virtual-list/builders/build-list.d.ts +13 -13
- package/es/components/virtual-list/builders/build-list.js +206 -198
- package/es/components/virtual-list/components/dynamic-size-grid.d.ts +6 -6
- package/es/components/virtual-list/components/dynamic-size-grid.js +12 -12
- package/es/components/virtual-list/components/dynamic-size-list.d.ts +13 -12
- package/es/components/virtual-list/components/dynamic-size-list.js +7 -7
- package/es/components/virtual-list/components/fixed-size-grid.d.ts +6 -6
- package/es/components/virtual-list/components/fixed-size-list.d.ts +13 -12
- package/es/components/virtual-list/components/fixed-size-list.js +8 -8
- package/es/components/virtual-list/components/scrollbar.js +59 -66
- package/es/components/virtual-list/defaults.d.ts +0 -4
- package/es/components/virtual-list/defaults.js +11 -15
- package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/es/components/virtual-list/hooks/use-cache.js +6 -6
- package/es/components/virtual-list/hooks/use-wheel.js +1 -1
- package/es/components/virtual-list/index.d.ts +6 -4
- package/es/components/virtual-list/index.js +4 -4
- package/es/components/virtual-list/props.d.ts +11 -7
- package/es/components/virtual-list/props.js +24 -30
- package/es/components/virtual-list/types.d.ts +1 -1
- package/es/components/virtual-list/utils.d.ts +1 -2
- package/es/components/virtual-list/utils.js +16 -18
- package/es/hooks/index.d.ts +3 -1
- package/es/hooks/index.js +49 -46
- package/es/hooks/use-calc-input-width/index.d.ts +7 -0
- package/es/hooks/use-calc-input-width/index.js +17 -0
- package/es/hooks/use-composition/index.d.ts +12 -0
- package/es/hooks/use-composition/index.js +28 -0
- package/es/hooks/use-delayed-toggle/index.d.ts +8 -4
- package/es/hooks/use-delayed-toggle/index.js +52 -17
- package/es/hooks/use-empty-values/index.d.ts +16 -0
- package/es/hooks/use-empty-values/index.js +37 -0
- package/es/hooks/use-focus-controller/index.d.ts +27 -0
- package/es/hooks/use-focus-controller/index.js +38 -0
- package/es/hooks/use-id/index.d.ts +1 -1
- package/es/hooks/use-id/index.js +11 -11
- package/es/hooks/use-namespace/index.d.ts +5 -6
- package/es/hooks/use-namespace/index.js +13 -15
- package/es/index.js +459 -451
- package/es/package.json.d.ts +2 -2
- package/es/package.json.js +1 -1
- package/es/utils/helper.d.ts +1 -0
- package/es/utils/helper.js +3 -2
- package/es/utils/index.js +49 -48
- package/lib/components/alert/alert.vue.d.ts +1 -11
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/alert/index.d.ts +28 -76
- package/lib/components/autocomplete/autocomplete.vue.d.ts +14 -14
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/autocomplete/index.d.ts +42 -42
- package/lib/components/backtop/backtop.vue.d.ts +1 -15
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/backtop/index.d.ts +3 -9
- package/lib/components/backtop/types.cjs +1 -0
- package/lib/components/backtop/types.d.ts +14 -0
- package/lib/components/button/button-custom.d.ts +1 -1
- package/lib/components/button/button.vue.d.ts +3 -50
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/index.d.ts +39 -40
- package/lib/components/button/types.d.ts +47 -1
- package/lib/components/button/use-button.d.ts +5 -5
- package/lib/components/card/index.d.ts +3 -3
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +18 -18
- package/lib/components/carousel/use-carousel.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +42 -42
- package/lib/components/color-picker/components/hue-slider.vue.d.ts +3 -3
- package/lib/components/color-picker/components/predefine.vue.d.ts +3 -3
- package/lib/components/color-picker/components/sv-panel.vue.d.ts +3 -3
- package/lib/components/config-provider/hooks/use-global-config.d.ts +3 -3
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/context-menu/index.cjs +1 -1
- package/lib/components/context-menu/types.cjs +1 -1
- package/lib/components/context-menu/types.d.ts +1 -1
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -0
- package/lib/components/date-picker/composables/use-basic-date-table.d.ts +188 -0
- package/lib/components/date-picker/composables/use-month-range-header.d.ts +1 -1
- package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -0
- package/lib/components/date-picker/composables/use-panel-date-range.d.ts +29 -0
- package/lib/components/date-picker/composables/use-range-picker.cjs +1 -1
- package/lib/components/date-picker/composables/use-range-picker.d.ts +46 -42
- package/lib/components/date-picker/composables/use-shortcut.cjs +1 -1
- package/lib/components/date-picker/composables/use-year-range-header.cjs +1 -0
- package/lib/components/date-picker/composables/use-year-range-header.d.ts +16 -0
- package/lib/components/date-picker/constants.cjs +1 -1
- package/lib/components/date-picker/constants.d.ts +2 -15
- package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -1
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +14 -23
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +2 -2
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +50 -9
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +13 -3
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +16 -3
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -3
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-year-range.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-year-range.vue.d.ts +35 -0
- package/lib/components/date-picker/date-picker-com/panel-year-range.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +70 -40
- package/lib/components/date-picker/date-picker.type.d.ts +2 -1
- package/lib/components/date-picker/index.cjs +1 -1
- package/lib/components/date-picker/index.d.ts +126 -68
- package/lib/components/date-picker/instance.cjs +1 -0
- package/lib/components/date-picker/instance.d.ts +9 -0
- package/lib/components/date-picker/panel-utils.cjs +1 -1
- package/lib/components/date-picker/panel-utils.d.ts +48 -0
- package/lib/components/date-picker/props/basic-cell.d.ts +2 -1
- package/lib/components/date-picker/props/basic-date-table.cjs +1 -1
- package/lib/components/date-picker/props/basic-date-table.d.ts +7 -2
- package/lib/components/date-picker/props/basic-month-table.d.ts +3 -2
- package/lib/components/date-picker/props/basic-year-table.cjs +1 -1
- package/lib/components/date-picker/props/basic-year-table.d.ts +23 -5
- package/lib/components/date-picker/props/date-picker.d.ts +26 -12
- package/lib/components/date-picker/props/panel-date-pick.d.ts +6 -1
- package/lib/components/date-picker/props/panel-date-range.d.ts +7 -1
- package/lib/components/date-picker/props/panel-month-range.cjs +1 -1
- package/lib/components/date-picker/props/panel-month-range.d.ts +3 -1
- package/lib/components/date-picker/props/panel-year-range.cjs +1 -0
- package/lib/components/date-picker/props/panel-year-range.d.ts +14 -0
- package/lib/components/date-picker/props/shared.cjs +1 -1
- package/lib/components/date-picker/props/shared.d.ts +9 -2
- package/lib/components/date-picker/style/css.cjs +1 -1
- package/lib/components/date-picker/style/css.d.ts +4 -0
- package/lib/components/date-picker/utils.cjs +1 -1
- package/lib/components/date-picker/utils.d.ts +9 -2
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/date-time-select/index.d.ts +1 -0
- package/lib/components/date-time-select/types.d.ts +4 -0
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
- package/lib/components/dropdown/dropdown-item-impl.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +6 -29
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue.d.ts +2 -3
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form-label-wrap.cjs +1 -1
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/form/hooks/use-form-common-props.cjs +1 -1
- package/lib/components/form/hooks/use-form-item.cjs +1 -1
- package/lib/components/form/index.d.ts +75 -48
- package/lib/components/form/types.d.ts +7 -1
- package/lib/components/form/utils.cjs +1 -1
- package/lib/components/form/utils.d.ts +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.cjs +1 -1
- package/lib/components/icon/index.d.ts +0 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/link/index.d.ts +3 -3
- package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue.d.ts +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue.d.ts +2 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/modal/index.d.ts +33 -45
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +2 -2
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +24 -24
- package/lib/components/popconfirm/popconfirm.vue.d.ts +2 -2
- package/lib/components/popover/index.d.ts +5 -5
- package/lib/components/popover/popover.vue.d.ts +2 -2
- package/lib/components/popper/composables/use-content.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/progress/index.d.ts +3 -3
- package/lib/components/result/result.vue.d.ts +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
- package/lib/components/scrollbar/index.cjs +1 -1
- package/lib/components/select/defaults.cjs +1 -1
- package/lib/components/select/defaults.d.ts +99 -15
- package/lib/components/select/group-item.vue.cjs +1 -1
- package/lib/components/select/group-item.vue.d.ts +10 -5
- package/lib/components/select/group-item.vue2.cjs +1 -1
- package/lib/components/select/index.cjs +1 -1
- package/lib/components/select/index.d.ts +2782 -0
- package/lib/components/select/option-item.vue.cjs +1 -1
- package/lib/components/select/option-item.vue.d.ts +40 -26
- package/lib/components/select/option-item.vue2.cjs +1 -1
- package/lib/components/select/select-dropdown.cjs +1 -1
- package/lib/components/select/select-dropdown.d.ts +29 -3
- package/lib/components/select/select.types.d.ts +19 -11
- package/lib/components/select/select.vue.cjs +1 -1
- package/lib/components/select/select.vue.d.ts +2778 -0
- package/lib/components/select/select.vue2.cjs +1 -1
- package/lib/components/select/token.cjs +1 -1
- package/lib/components/select/token.d.ts +10 -12
- package/lib/components/select/useAllowCreate.cjs +1 -1
- package/lib/components/select/useAllowCreate.d.ts +3 -3
- package/lib/components/select/useOption.d.ts +3 -3
- package/lib/components/select/useProps.cjs +1 -0
- package/lib/components/select/useProps.d.ts +21 -0
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/select/useSelect.d.ts +940 -121
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/steps/index.d.ts +12 -12
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/style/css.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue.d.ts +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/types.d.ts +3 -1
- package/lib/components/switch/index.d.ts +6 -6
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.d.ts +24 -24
- package/lib/components/table/table.vue.d.ts +1 -1
- package/lib/components/tabs/tab-nav.vue.d.ts +2 -2
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +2 -1
- package/lib/components/time-picker/common/picker-range-trigger.vue.cjs +1 -0
- package/lib/components/time-picker/common/picker-range-trigger.vue.d.ts +84 -0
- package/lib/components/time-picker/common/picker-range-trigger.vue2.cjs +1 -0
- package/lib/components/time-picker/common/picker.vue.d.ts +71 -41
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.cjs +1 -1
- package/lib/components/time-picker/common/props.d.ts +76 -12
- package/lib/components/time-picker/composables/use-time-panel.d.ts +4 -4
- package/lib/components/time-picker/composables/use-time-picker.d.ts +28 -29
- package/lib/components/time-picker/constants.cjs +1 -1
- package/lib/components/time-picker/constants.d.ts +5 -0
- package/lib/components/time-picker/index.cjs +1 -1
- package/lib/components/time-picker/index.d.ts +120 -74
- package/lib/components/time-picker/props/basic-time-spinner.d.ts +5 -4
- package/lib/components/time-picker/props/panel-time-picker.d.ts +2 -1
- package/lib/components/time-picker/props/panel-time-range.d.ts +2 -1
- package/lib/components/time-picker/props/shared.d.ts +4 -5
- package/lib/components/time-picker/style/css.cjs +1 -1
- package/lib/components/time-picker/style/css.d.ts +3 -0
- package/lib/components/time-picker/style/index.cjs +1 -1
- package/lib/components/time-picker/style/index.d.ts +3 -0
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +4 -4
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +4 -4
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker.cjs +1 -1
- package/lib/components/time-picker/time-picker.d.ts +60 -37
- package/lib/components/time-picker/utils.cjs +1 -1
- package/lib/components/time-picker/utils.d.ts +5 -2
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/timeline/index.d.ts +6 -6
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +3 -3
- package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/utils.cjs +1 -1
- package/lib/components/tree/tree-node.vue.cjs +1 -1
- package/lib/components/tree/tree-node.vue.d.ts +33 -33
- package/lib/components/tree/tree-node.vue2.cjs +1 -1
- package/lib/components/upload/index.d.ts +15 -15
- package/lib/components/upload/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/upload.vue.d.ts +1 -1
- package/lib/components/virtual-list/builders/build-grid.cjs +1 -1
- package/lib/components/virtual-list/builders/build-grid.d.ts +9 -9
- package/lib/components/virtual-list/builders/build-list.cjs +1 -1
- package/lib/components/virtual-list/builders/build-list.d.ts +13 -13
- package/lib/components/virtual-list/components/dynamic-size-grid.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +6 -6
- package/lib/components/virtual-list/components/dynamic-size-list.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-list.d.ts +13 -12
- package/lib/components/virtual-list/components/fixed-size-grid.d.ts +6 -6
- package/lib/components/virtual-list/components/fixed-size-list.cjs +1 -1
- package/lib/components/virtual-list/components/fixed-size-list.d.ts +13 -12
- package/lib/components/virtual-list/components/scrollbar.cjs +1 -1
- package/lib/components/virtual-list/defaults.cjs +1 -1
- package/lib/components/virtual-list/defaults.d.ts +0 -4
- package/lib/components/virtual-list/hooks/use-cache.cjs +1 -1
- package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/lib/components/virtual-list/hooks/use-wheel.cjs +1 -1
- package/lib/components/virtual-list/index.cjs +1 -1
- package/lib/components/virtual-list/index.d.ts +6 -4
- package/lib/components/virtual-list/props.cjs +1 -1
- package/lib/components/virtual-list/props.d.ts +11 -7
- package/lib/components/virtual-list/types.d.ts +1 -1
- package/lib/components/virtual-list/utils.cjs +1 -1
- package/lib/components/virtual-list/utils.d.ts +1 -2
- package/lib/hooks/index.cjs +1 -1
- package/lib/hooks/index.d.ts +3 -1
- package/lib/hooks/use-calc-input-width/index.cjs +1 -0
- package/lib/hooks/use-calc-input-width/index.d.ts +7 -0
- package/lib/hooks/use-composition/index.cjs +1 -0
- package/lib/hooks/use-composition/index.d.ts +12 -0
- package/lib/hooks/use-delayed-toggle/index.cjs +1 -1
- package/lib/hooks/use-delayed-toggle/index.d.ts +8 -4
- package/lib/hooks/use-empty-values/index.cjs +1 -0
- package/lib/hooks/use-empty-values/index.d.ts +16 -0
- package/lib/hooks/use-focus-controller/index.cjs +1 -0
- package/lib/hooks/use-focus-controller/index.d.ts +27 -0
- package/lib/hooks/use-id/index.cjs +2 -2
- package/lib/hooks/use-id/index.d.ts +1 -1
- package/lib/hooks/use-namespace/index.cjs +1 -1
- package/lib/hooks/use-namespace/index.d.ts +5 -6
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +2 -2
- package/lib/utils/helper.cjs +1 -1
- package/lib/utils/helper.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +41 -0
- package/theme-style/src/date-picker/date-picker.scss +31 -31
- package/theme-style/src/date-picker/date-range-picker.scss +60 -37
- package/theme-style/src/date-picker/date-table.scss +20 -20
- package/theme-style/src/date-picker/month-table.scss +40 -25
- package/theme-style/src/date-picker/picker-panel.scss +27 -28
- package/theme-style/src/date-picker/picker.scss +60 -56
- package/theme-style/src/date-picker/time-picker.scss +21 -21
- package/theme-style/src/date-picker/time-range-picker.scss +6 -6
- package/theme-style/src/date-picker/time-spinner.scss +24 -22
- package/theme-style/src/date-picker/year-table.scss +61 -14
- package/theme-style/src/option-group.scss +7 -28
- package/theme-style/src/option.scss +46 -12
- package/theme-style/src/select-dropdown-v2.scss +31 -37
- package/theme-style/src/select.scss +136 -220
- package/theme-style/src/tabs.scss +6 -66
- package/theme-style/src/tabss.scss +4 -4
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-option-group.css +1 -1
- package/theme-style/vft-option.css +1 -1
- package/theme-style/vft-select-dropdown-v2.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/theme-style/vft-tabss.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/web-types.json +1 -1
- package/es/components/select/useInput.d.ts +0 -5
- package/es/components/select/useInput.js +0 -20
- package/es/components/select/util.d.ts +0 -2
- package/es/components/select/util.js +0 -18
- package/lib/components/select/useInput.cjs +0 -1
- package/lib/components/select/useInput.d.ts +0 -5
- package/lib/components/select/util.cjs +0 -1
- package/lib/components/select/util.d.ts +0 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Dayjs } from 'dayjs';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
2
|
readonly cellClassName: {
|
|
4
3
|
readonly type: import("vue").PropType<(date: Date) => string>;
|
|
@@ -9,31 +8,31 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9
8
|
readonly showWeekNumber: BooleanConstructor;
|
|
10
9
|
readonly selectionMode: import("vft/es/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
|
11
10
|
readonly disabledDate: {
|
|
12
|
-
readonly type: import("vue").PropType<(
|
|
11
|
+
readonly type: import("vue").PropType<import("../props/shared").DisabledDateType>;
|
|
13
12
|
readonly required: false;
|
|
14
13
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
14
|
__epPropKey: true;
|
|
16
15
|
};
|
|
17
16
|
readonly date: {
|
|
18
|
-
readonly type: import("vue").PropType<Dayjs>;
|
|
17
|
+
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
|
19
18
|
readonly required: true;
|
|
20
19
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
21
20
|
__epPropKey: true;
|
|
22
21
|
};
|
|
23
22
|
readonly minDate: {
|
|
24
|
-
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
|
|
23
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null) | (((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null)) | null)[], unknown, unknown>>;
|
|
25
24
|
readonly required: false;
|
|
26
25
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
26
|
__epPropKey: true;
|
|
28
27
|
};
|
|
29
28
|
readonly maxDate: {
|
|
30
|
-
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
|
|
29
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null) | (((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null)) | null)[], unknown, unknown>>;
|
|
31
30
|
readonly required: false;
|
|
32
31
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
33
32
|
__epPropKey: true;
|
|
34
33
|
};
|
|
35
34
|
readonly parsedValue: {
|
|
36
|
-
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[]) | (((new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[])) | null)[], unknown, unknown>>;
|
|
35
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | (() => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | (((new (...args: any[]) => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | (() => import("dayjs").Dayjs | import("dayjs").Dayjs[])) | null)[], unknown, unknown>>;
|
|
37
36
|
readonly required: false;
|
|
38
37
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
38
|
__epPropKey: true;
|
|
@@ -46,12 +45,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
45
|
/**
|
|
47
46
|
* @description focus on current cell
|
|
48
47
|
*/
|
|
49
|
-
focus: () => Promise<void>;
|
|
50
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
-
select: (...args: any[]) => void;
|
|
52
|
-
pick: (...args: any[]) => void;
|
|
53
|
-
changerange: (...args: any[]) => void;
|
|
54
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
focus: () => Promise<void | undefined>;
|
|
49
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
50
|
readonly cellClassName: {
|
|
56
51
|
readonly type: import("vue").PropType<(date: Date) => string>;
|
|
57
52
|
readonly required: false;
|
|
@@ -61,31 +56,31 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
56
|
readonly showWeekNumber: BooleanConstructor;
|
|
62
57
|
readonly selectionMode: import("vft/es/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
|
63
58
|
readonly disabledDate: {
|
|
64
|
-
readonly type: import("vue").PropType<(
|
|
59
|
+
readonly type: import("vue").PropType<import("../props/shared").DisabledDateType>;
|
|
65
60
|
readonly required: false;
|
|
66
61
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
62
|
__epPropKey: true;
|
|
68
63
|
};
|
|
69
64
|
readonly date: {
|
|
70
|
-
readonly type: import("vue").PropType<Dayjs>;
|
|
65
|
+
readonly type: import("vue").PropType<import("dayjs").Dayjs>;
|
|
71
66
|
readonly required: true;
|
|
72
67
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
68
|
__epPropKey: true;
|
|
74
69
|
};
|
|
75
70
|
readonly minDate: {
|
|
76
|
-
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
|
|
71
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null) | (((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null)) | null)[], unknown, unknown>>;
|
|
77
72
|
readonly required: false;
|
|
78
73
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
74
|
__epPropKey: true;
|
|
80
75
|
};
|
|
81
76
|
readonly maxDate: {
|
|
82
|
-
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
|
|
77
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null) | (((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null)) | null)[], unknown, unknown>>;
|
|
83
78
|
readonly required: false;
|
|
84
79
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
80
|
__epPropKey: true;
|
|
86
81
|
};
|
|
87
82
|
readonly parsedValue: {
|
|
88
|
-
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[]) | (((new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[])) | null)[], unknown, unknown>>;
|
|
83
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | (() => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | (((new (...args: any[]) => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | (() => import("dayjs").Dayjs | import("dayjs").Dayjs[])) | null)[], unknown, unknown>>;
|
|
89
84
|
readonly required: false;
|
|
90
85
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
91
86
|
__epPropKey: true;
|
|
@@ -94,13 +89,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
94
89
|
endDate: null;
|
|
95
90
|
selecting: boolean;
|
|
96
91
|
}, boolean>;
|
|
97
|
-
}>> & Readonly<{
|
|
98
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
99
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
100
|
-
onChangerange?: ((...args: any[]) => any) | undefined;
|
|
101
|
-
}>, {
|
|
102
|
-
readonly rangeState: import("../props/shared").RangeState;
|
|
92
|
+
}>> & Readonly<{}>, {
|
|
103
93
|
readonly showWeekNumber: boolean;
|
|
94
|
+
readonly rangeState: import("../props/shared").RangeState;
|
|
104
95
|
readonly selectionMode: string;
|
|
105
96
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
106
97
|
export default _default;
|
|
@@ -1,197 +1,94 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
import { flatten as le } from "lodash-es";
|
|
7
|
-
import { useNamespace as fe } from "../../../hooks/use-namespace/index.js";
|
|
8
|
-
import "../../../hooks/use-model-toggle/index.js";
|
|
9
|
-
import "@popperjs/core";
|
|
10
|
-
import "../../../hooks/use-z-index/index.js";
|
|
11
|
-
import $ from "dayjs";
|
|
12
|
-
import { basicDateTableProps as me } from "../props/basic-date-table.js";
|
|
13
|
-
import { castArray as N, buildPickerTable as pe } from "../utils.js";
|
|
14
|
-
import he from "./basic-cell-render.js";
|
|
15
|
-
const ye = {
|
|
16
|
-
key: 0,
|
|
17
|
-
scope: "col"
|
|
18
|
-
}, De = ["aria-label"], ke = ["aria-current", "aria-selected", "tabindex"], We = /* @__PURE__ */ se({
|
|
1
|
+
import { defineComponent as K, onBeforeUnmount as L, createElementBlock as s, openBlock as o, unref as e, withModifiers as $, normalizeClass as n, createElementVNode as M, createCommentVNode as z, Fragment as u, renderList as d, toDisplayString as A, createVNode as H } from "vue";
|
|
2
|
+
import { basicDateTableEmits as O, basicDateTableProps as j } from "../props/basic-date-table.js";
|
|
3
|
+
import { useBasicDateTable as q, useBasicDateTableDOM as G } from "../composables/use-basic-date-table.js";
|
|
4
|
+
import I from "./basic-cell-render.js";
|
|
5
|
+
const J = ["aria-label"], Q = ["aria-label"], X = ["aria-current", "aria-selected", "tabindex"], re = /* @__PURE__ */ K({
|
|
19
6
|
__name: "basic-date-table",
|
|
20
|
-
props:
|
|
21
|
-
emits:
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const { startOfMonthDay: i, dateCountOfMonth: u, dateCountOfLastMonth: r } = l(U), c = l(v);
|
|
41
|
-
if (s >= 0 && s <= 1) {
|
|
42
|
-
const o = i + c < 0 ? 7 + i + c : i + c;
|
|
43
|
-
if (n + s * 7 >= o)
|
|
44
|
-
return e.text = t, !0;
|
|
45
|
-
e.text = r - (o - n % 7) + 1 + s * 7, e.type = "prev-month";
|
|
46
|
-
} else
|
|
47
|
-
return t <= u ? e.text = t : (e.text = t - u, e.type = "next-month"), !0;
|
|
48
|
-
return !1;
|
|
49
|
-
}, q = (e, {
|
|
50
|
-
columnIndex: t,
|
|
51
|
-
rowIndex: s
|
|
52
|
-
}, n) => {
|
|
53
|
-
const { disabledDate: i, cellClassName: u } = a, r = l(G), c = Y(e, { count: n, rowIndex: s, columnIndex: t }), o = e.dayjs.toDate();
|
|
54
|
-
return e.selected = r.find(
|
|
55
|
-
(ae) => ae.valueOf() === e.dayjs.valueOf()
|
|
56
|
-
), e.isSelected = !!e.selected, e.isCurrent = W(e), e.disabled = i?.(o), e.customClass = u?.(o), c;
|
|
57
|
-
}, H = (e) => {
|
|
58
|
-
if (a.selectionMode === "week") {
|
|
59
|
-
const [t, s] = a.showWeekNumber ? [1, 7] : [0, 6], n = F(e[t + 1]);
|
|
60
|
-
e[t].inRange = n, e[t].start = n, e[s].inRange = n, e[s].end = n;
|
|
61
|
-
}
|
|
62
|
-
}, D = h(() => {
|
|
63
|
-
const { minDate: e, maxDate: t, rangeState: s, showWeekNumber: n } = a, i = v.value, u = B.value, r = "day";
|
|
64
|
-
let c = 1;
|
|
65
|
-
if (n)
|
|
66
|
-
for (let o = 0; o < 6; o++)
|
|
67
|
-
u[o][0] || (u[o][0] = {
|
|
68
|
-
type: "week",
|
|
69
|
-
text: g.value.add(o * 7 + 1, r).week()
|
|
70
|
-
});
|
|
71
|
-
return pe({ row: 6, column: 7 }, u, {
|
|
72
|
-
startDate: e,
|
|
73
|
-
columnIndexOffset: n ? 1 : 0,
|
|
74
|
-
nextEndDate: s.endDate || t || s.selecting && e || null,
|
|
75
|
-
now: $().locale(l(_)).startOf(r),
|
|
76
|
-
unit: r,
|
|
77
|
-
relativeDateGetter: (o) => g.value.add(o - i, r),
|
|
78
|
-
setCellMetadata: (...o) => {
|
|
79
|
-
q(...o, c) && (c += 1);
|
|
80
|
-
},
|
|
81
|
-
setRowMetadata: H
|
|
82
|
-
}), u;
|
|
7
|
+
props: j,
|
|
8
|
+
emits: O,
|
|
9
|
+
setup(g, { expose: y, emit: v }) {
|
|
10
|
+
const m = g, E = v, {
|
|
11
|
+
WEEKS: B,
|
|
12
|
+
rows: w,
|
|
13
|
+
tbodyRef: x,
|
|
14
|
+
currentCellRef: N,
|
|
15
|
+
focus: R,
|
|
16
|
+
isCurrent: T,
|
|
17
|
+
isWeekActive: h,
|
|
18
|
+
isSelectedCell: b,
|
|
19
|
+
handlePickDate: c,
|
|
20
|
+
handleMouseUp: p,
|
|
21
|
+
handleMouseDown: f,
|
|
22
|
+
handleMouseMove: C,
|
|
23
|
+
handleFocus: k
|
|
24
|
+
} = q(m, E), { tableLabel: F, tableKls: P, getCellClasses: S, getRowKls: U, weekHeaderClass: V } = G(m, {
|
|
25
|
+
isCurrent: T,
|
|
26
|
+
isWeekActive: h
|
|
83
27
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
const J = async () => {
|
|
91
|
-
k.value?.focus();
|
|
92
|
-
}, M = (e = "") => ["normal", "today"].includes(e), W = (e) => a.selectionMode === "date" && M(e.type) && K(e, a.parsedValue), K = (e, t) => t ? $(t).locale(_.value).isSame(a.date.date(Number(e.text)), "day") : !1, Q = (e) => {
|
|
93
|
-
const t = [];
|
|
94
|
-
return M(e.type) && !e.disabled ? (t.push("available"), e.type === "today" && t.push("today")) : t.push(e.type), W(e) && t.push("current"), e.inRange && (M(e.type) || a.selectionMode === "week") && (t.push("in-range"), e.start && t.push("start-date"), e.end && t.push("end-date")), e.disabled && t.push("disabled"), e.selected && t.push("selected"), e.customClass && t.push(e.customClass), t.join(" ");
|
|
95
|
-
}, A = (e, t) => {
|
|
96
|
-
const s = e * 7 + (t - (a.showWeekNumber ? 1 : 0)) - v.value;
|
|
97
|
-
return g.value.add(s, "day");
|
|
98
|
-
}, X = (e) => {
|
|
99
|
-
if (!a.rangeState.selecting) return;
|
|
100
|
-
let t = e.target;
|
|
101
|
-
if (t.tagName === "SPAN" && (t = t.parentNode?.parentNode), t.tagName === "DIV" && (t = t.parentNode), t.tagName !== "TD") return;
|
|
102
|
-
const s = t.parentNode.rowIndex - 1, n = t.cellIndex;
|
|
103
|
-
D.value[s][n].disabled || (s !== S.value || n !== R.value) && (S.value = s, R.value = n, d("changerange", {
|
|
104
|
-
selecting: !0,
|
|
105
|
-
endDate: A(s, n)
|
|
106
|
-
}));
|
|
107
|
-
}, I = (e) => !E.value && e?.text === 1 && e.type === "normal" || e.isCurrent, Z = (e) => {
|
|
108
|
-
b || E.value || a.selectionMode !== "date" || P(e, !0);
|
|
109
|
-
}, ee = (e) => {
|
|
110
|
-
e.target.closest("td") && (b = !0);
|
|
111
|
-
}, te = (e) => {
|
|
112
|
-
e.target.closest("td") && (b = !1);
|
|
113
|
-
}, P = (e, t = !1) => {
|
|
114
|
-
const s = e.target.closest("td");
|
|
115
|
-
if (!s) return;
|
|
116
|
-
const n = s.parentNode.rowIndex - 1, i = s.cellIndex, u = D.value[n][i];
|
|
117
|
-
if (u.disabled || u.type === "week") return;
|
|
118
|
-
const r = A(n, i);
|
|
119
|
-
if (a.selectionMode === "range")
|
|
120
|
-
!a.rangeState.selecting || !a.minDate ? (d("pick", { minDate: r, maxDate: null }), d("select", !0)) : (r >= a.minDate ? d("pick", { minDate: a.minDate, maxDate: r }) : d("pick", { minDate: r, maxDate: a.minDate }), d("select", !1));
|
|
121
|
-
else if (a.selectionMode === "date")
|
|
122
|
-
d("pick", r, t);
|
|
123
|
-
else if (a.selectionMode === "week") {
|
|
124
|
-
const c = r.week(), o = `${r.year()}w${c}`;
|
|
125
|
-
d("pick", {
|
|
126
|
-
year: r.year(),
|
|
127
|
-
week: c,
|
|
128
|
-
value: o,
|
|
129
|
-
date: r.startOf("week")
|
|
130
|
-
});
|
|
131
|
-
} else if (a.selectionMode === "dates") {
|
|
132
|
-
const c = u.selected ? N(a.parsedValue).filter(
|
|
133
|
-
(o) => o?.valueOf() !== r.valueOf()
|
|
134
|
-
) : N(a.parsedValue).concat([r]);
|
|
135
|
-
d("pick", c);
|
|
136
|
-
}
|
|
137
|
-
}, F = (e) => {
|
|
138
|
-
if (a.selectionMode !== "week") return !1;
|
|
139
|
-
let t = a.date.startOf("day");
|
|
140
|
-
if (e.type === "prev-month" && (t = t.subtract(1, "month")), e.type === "next-month" && (t = t.add(1, "month")), t = t.date(Number.parseInt(e.text, 10)), a.parsedValue && !Array.isArray(a.parsedValue)) {
|
|
141
|
-
const s = (a.parsedValue.day() - y + 7) % 7 - 1;
|
|
142
|
-
return a.parsedValue.subtract(s, "day").isSame(t, "day");
|
|
143
|
-
}
|
|
144
|
-
return !1;
|
|
145
|
-
};
|
|
146
|
-
return z({
|
|
28
|
+
let D = !1;
|
|
29
|
+
return L(() => {
|
|
30
|
+
D = !0;
|
|
31
|
+
}), y({
|
|
147
32
|
/**
|
|
148
33
|
* @description focus on current cell
|
|
149
34
|
*/
|
|
150
|
-
focus:
|
|
151
|
-
}), (
|
|
152
|
-
|
|
153
|
-
|
|
35
|
+
focus: R
|
|
36
|
+
}), (W, r) => (o(), s("table", {
|
|
37
|
+
"aria-label": e(F),
|
|
38
|
+
class: n(e(P)),
|
|
154
39
|
cellspacing: "0",
|
|
155
40
|
cellpadding: "0",
|
|
156
|
-
|
|
157
|
-
onClick:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
41
|
+
role: "grid",
|
|
42
|
+
onClick: r[1] || (r[1] = //@ts-ignore
|
|
43
|
+
(...t) => e(c) && e(c)(...t)),
|
|
44
|
+
onMousemove: r[2] || (r[2] = //@ts-ignore
|
|
45
|
+
(...t) => e(C) && e(C)(...t)),
|
|
46
|
+
onMousedown: r[3] || (r[3] = $(
|
|
47
|
+
//@ts-ignore
|
|
48
|
+
(...t) => e(f) && e(f)(...t),
|
|
49
|
+
["prevent"]
|
|
50
|
+
)),
|
|
51
|
+
onMouseup: r[4] || (r[4] = //@ts-ignore
|
|
52
|
+
(...t) => e(p) && e(p)(...t))
|
|
161
53
|
}, [
|
|
162
|
-
|
|
54
|
+
M("tbody", {
|
|
163
55
|
ref_key: "tbodyRef",
|
|
164
|
-
ref:
|
|
56
|
+
ref: x
|
|
165
57
|
}, [
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
key: n,
|
|
58
|
+
M("tr", null, [
|
|
59
|
+
W.showWeekNumber ? (o(), s("th", {
|
|
60
|
+
key: 0,
|
|
170
61
|
scope: "col",
|
|
171
|
-
|
|
172
|
-
},
|
|
62
|
+
class: n(e(V))
|
|
63
|
+
}, null, 2)) : z("", !0),
|
|
64
|
+
(o(!0), s(u, null, d(e(B), (t, a) => (o(), s("th", {
|
|
65
|
+
key: a,
|
|
66
|
+
"aria-label": t,
|
|
67
|
+
scope: "col"
|
|
68
|
+
}, A(t), 9, Q))), 128))
|
|
173
69
|
]),
|
|
174
|
-
(
|
|
175
|
-
key:
|
|
176
|
-
class:
|
|
70
|
+
(o(!0), s(u, null, d(e(w), (t, a) => (o(), s("tr", {
|
|
71
|
+
key: a,
|
|
72
|
+
class: n(e(U)(t[1]))
|
|
177
73
|
}, [
|
|
178
|
-
(
|
|
179
|
-
key: `${
|
|
74
|
+
(o(!0), s(u, null, d(t, (l, _) => (o(), s("td", {
|
|
75
|
+
key: `${a}.${_}`,
|
|
180
76
|
ref_for: !0,
|
|
181
|
-
ref: (
|
|
182
|
-
class:
|
|
183
|
-
"aria-current":
|
|
184
|
-
"aria-selected":
|
|
185
|
-
tabindex:
|
|
186
|
-
onFocus:
|
|
77
|
+
ref: (i) => !e(D) && e(b)(l) && (N.value = i),
|
|
78
|
+
class: n(e(S)(l)),
|
|
79
|
+
"aria-current": l.isCurrent ? "date" : void 0,
|
|
80
|
+
"aria-selected": l.isCurrent,
|
|
81
|
+
tabindex: e(b)(l) ? 0 : -1,
|
|
82
|
+
onFocus: r[0] || (r[0] = //@ts-ignore
|
|
83
|
+
(...i) => e(k) && e(k)(...i))
|
|
187
84
|
}, [
|
|
188
|
-
|
|
189
|
-
], 42,
|
|
85
|
+
H(e(I), { cell: l }, null, 8, ["cell"])
|
|
86
|
+
], 42, X))), 128))
|
|
190
87
|
], 2))), 128))
|
|
191
88
|
], 512)
|
|
192
|
-
],
|
|
89
|
+
], 42, J));
|
|
193
90
|
}
|
|
194
91
|
});
|
|
195
92
|
export {
|
|
196
|
-
|
|
93
|
+
re as default
|
|
197
94
|
};
|
|
@@ -2,7 +2,7 @@ import dayjs from 'dayjs';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
selectionMode: import("vft/es/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
|
4
4
|
disabledDate: {
|
|
5
|
-
readonly type: import("vue").PropType<(
|
|
5
|
+
readonly type: import("vue").PropType<import("../props/shared").DisabledDateType>;
|
|
6
6
|
readonly required: false;
|
|
7
7
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
8
|
__epPropKey: true;
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
47
47
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
48
|
selectionMode: import("vft/es/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
|
49
49
|
disabledDate: {
|
|
50
|
-
readonly type: import("vue").PropType<(
|
|
50
|
+
readonly type: import("vue").PropType<import("../props/shared").DisabledDateType>;
|
|
51
51
|
readonly required: false;
|
|
52
52
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
53
53
|
__epPropKey: true;
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import "../../time-picker/index.js";
|
|
1
|
+
import { defineComponent as P, ref as d, computed as F, watch as L, nextTick as Y, createElementBlock as f, openBlock as u, normalizeClass as k, unref as N, createElementVNode as $, Fragment as M, renderList as C, withKeys as O, withModifiers as _, createVNode as q } from "vue";
|
|
2
|
+
import b from "dayjs";
|
|
4
3
|
import "@vueuse/core";
|
|
4
|
+
import { hasClass as T } from "@vft/utils";
|
|
5
|
+
import { castArray as p } from "../../../utils/helper.js";
|
|
5
6
|
import "../../../utils/ns-cover.js";
|
|
6
7
|
import "lodash-es";
|
|
7
8
|
import { useNamespace as G } from "../../../hooks/use-namespace/index.js";
|
|
8
9
|
import "../../../hooks/use-model-toggle/index.js";
|
|
9
10
|
import "@popperjs/core";
|
|
10
11
|
import "../../../hooks/use-z-index/index.js";
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import { rangeArr as Q } from "../../time-picker/utils.js";
|
|
16
|
-
const U = ["aria-selected", "tabindex", "onKeydown"], W = { class: "cell" }, pe = /* @__PURE__ */ F({
|
|
12
|
+
import { basicMonthTableProps as H } from "../props/basic-month-table.js";
|
|
13
|
+
import { datesInMonth as J, getValidDateOfMonth as Q } from "../utils.js";
|
|
14
|
+
import U from "./basic-cell-render.js";
|
|
15
|
+
const W = ["aria-selected", "tabindex", "onKeydown"], ue = /* @__PURE__ */ P({
|
|
17
16
|
__name: "basic-month-table",
|
|
18
|
-
props:
|
|
17
|
+
props: H,
|
|
19
18
|
emits: ["changerange", "pick", "select"],
|
|
20
|
-
setup(
|
|
21
|
-
const E = (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, e = R, l = A, B = G("month-table"), b = c("zh-cn"), x = c(), p = c(), j = c([
|
|
19
|
+
setup(V, { expose: I, emit: R }) {
|
|
20
|
+
const e = V, c = R, E = G("month-table"), h = d("zh-cn"), w = d(), D = d(), A = d(
|
|
21
|
+
e.date.locale("zh-cn").localeData().monthsShort().map((r) => r.toLowerCase())
|
|
22
|
+
), B = d([
|
|
25
23
|
[],
|
|
26
24
|
[],
|
|
27
25
|
[]
|
|
28
|
-
]),
|
|
29
|
-
const
|
|
26
|
+
]), x = d(), v = d(), S = F(() => {
|
|
27
|
+
const r = B.value, t = b().locale(h.value).startOf("month");
|
|
30
28
|
for (let a = 0; a < 3; a++) {
|
|
31
|
-
const
|
|
32
|
-
for (let
|
|
33
|
-
const
|
|
29
|
+
const s = r[a];
|
|
30
|
+
for (let n = 0; n < 4; n++) {
|
|
31
|
+
const o = s[n] ||= {
|
|
34
32
|
row: a,
|
|
35
|
-
column:
|
|
33
|
+
column: n,
|
|
36
34
|
type: "normal",
|
|
37
35
|
inRange: !1,
|
|
38
36
|
start: !1,
|
|
@@ -40,84 +38,108 @@ const U = ["aria-selected", "tabindex", "onKeydown"], W = { class: "cell" }, pe
|
|
|
40
38
|
text: -1,
|
|
41
39
|
disabled: !1
|
|
42
40
|
};
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
41
|
+
o.type = "normal";
|
|
42
|
+
const m = a * 4 + n, i = e.date.startOf("year").month(m), l = e.rangeState.endDate || e.maxDate || e.rangeState.selecting && e.minDate || null;
|
|
43
|
+
o.inRange = !!(e.minDate && i.isSameOrAfter(e.minDate, "month") && l && i.isSameOrBefore(l, "month")) || !!(e.minDate && i.isSameOrBefore(e.minDate, "month") && l && i.isSameOrAfter(l, "month")), e.minDate?.isSameOrAfter(l) ? (o.start = !!(l && i.isSame(l, "month")), o.end = e.minDate && i.isSame(e.minDate, "month")) : (o.start = !!(e.minDate && i.isSame(e.minDate, "month")), o.end = !!(l && i.isSame(l, "month"))), t.isSame(i) && (o.type = "today"), o.text = m, o.disabled = e.disabledDate?.(i.toDate()) || !1;
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
|
-
return
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
const t = {}, a = e.date.year(),
|
|
53
|
-
return t.disabled = e.disabledDate ?
|
|
54
|
-
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
46
|
+
return r;
|
|
47
|
+
}), j = () => {
|
|
48
|
+
D.value?.focus();
|
|
49
|
+
}, z = (r) => {
|
|
50
|
+
const t = {}, a = e.date.year(), s = /* @__PURE__ */ new Date(), n = r.text;
|
|
51
|
+
return t.disabled = e.disabledDate ? J(e.date, a, n, h.value).every(
|
|
52
|
+
e.disabledDate
|
|
53
|
+
) : !1, t.current = p(e.parsedValue).findIndex(
|
|
54
|
+
(o) => b.isDayjs(o) && o.year() === a && o.month() === n
|
|
55
|
+
) >= 0, t.today = s.getFullYear() === a && s.getMonth() === n, r.inRange && (t["in-range"] = !0, r.start && (t["start-date"] = !0), r.end && (t["end-date"] = !0)), t;
|
|
56
|
+
}, y = (r) => {
|
|
57
|
+
const t = e.date.year(), a = r.text;
|
|
58
|
+
return p(e.date).findIndex(
|
|
59
|
+
(s) => s.year() === t && s.month() === a
|
|
60
60
|
) >= 0;
|
|
61
|
-
},
|
|
61
|
+
}, K = (r) => {
|
|
62
62
|
if (!e.rangeState.selecting) return;
|
|
63
|
-
let t =
|
|
64
|
-
if (t.tagName === "
|
|
65
|
-
const a = t.parentNode.rowIndex,
|
|
66
|
-
S.value[a][
|
|
63
|
+
let t = r.target;
|
|
64
|
+
if (t.tagName === "SPAN" && (t = t.parentNode?.parentNode), t.tagName === "DIV" && (t = t.parentNode), t.tagName !== "TD") return;
|
|
65
|
+
const a = t.parentNode.rowIndex, s = t.cellIndex;
|
|
66
|
+
S.value[a][s].disabled || (a !== x.value || s !== v.value) && (x.value = a, v.value = s, c("changerange", {
|
|
67
67
|
selecting: !0,
|
|
68
|
-
endDate: e.date.startOf("year").month(a * 4 +
|
|
68
|
+
endDate: e.date.startOf("year").month(a * 4 + s)
|
|
69
69
|
}));
|
|
70
|
-
},
|
|
71
|
-
const t =
|
|
70
|
+
}, g = (r) => {
|
|
71
|
+
const t = r.target?.closest(
|
|
72
72
|
"td"
|
|
73
73
|
);
|
|
74
|
-
if (t?.tagName !== "TD" ||
|
|
75
|
-
const a = t.cellIndex,
|
|
76
|
-
e.selectionMode === "
|
|
74
|
+
if (t?.tagName !== "TD" || T(t, "disabled")) return;
|
|
75
|
+
const a = t.cellIndex, n = t.parentNode.rowIndex * 4 + a, o = e.date.startOf("year").month(n);
|
|
76
|
+
if (e.selectionMode === "months") {
|
|
77
|
+
if (r.type === "keydown") {
|
|
78
|
+
c("pick", p(e.parsedValue), !1);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const m = Q(
|
|
82
|
+
e.date,
|
|
83
|
+
e.date.year(),
|
|
84
|
+
n,
|
|
85
|
+
h.value,
|
|
86
|
+
e.disabledDate
|
|
87
|
+
), i = T(t, "current") ? p(e.parsedValue).filter(
|
|
88
|
+
(l) => (
|
|
89
|
+
// Filter out the selected month only when both year and month match
|
|
90
|
+
// This allows remove same months from different years #20019
|
|
91
|
+
l?.year() !== m.year() || l?.month() !== m.month()
|
|
92
|
+
)
|
|
93
|
+
) : p(e.parsedValue).concat([b(m)]);
|
|
94
|
+
c("pick", i);
|
|
95
|
+
} else e.selectionMode === "range" ? e.rangeState.selecting ? (e.minDate && o >= e.minDate ? c("pick", { minDate: e.minDate, maxDate: o }) : c("pick", { minDate: o, maxDate: e.minDate }), c("select", !1)) : (c("pick", { minDate: o, maxDate: null }), c("select", !0)) : c("pick", n);
|
|
77
96
|
};
|
|
78
97
|
return L(
|
|
79
98
|
() => e.date,
|
|
80
99
|
async () => {
|
|
81
|
-
|
|
100
|
+
w.value?.contains(document.activeElement) && (await Y(), D.value?.focus());
|
|
82
101
|
}
|
|
83
|
-
),
|
|
102
|
+
), I({
|
|
84
103
|
/**
|
|
85
104
|
* @description focus current cell
|
|
86
105
|
*/
|
|
87
|
-
focus:
|
|
88
|
-
}), (
|
|
106
|
+
focus: j
|
|
107
|
+
}), (r, t) => (u(), f("table", {
|
|
89
108
|
role: "grid",
|
|
90
|
-
"aria-label": "使用方向键与 Enter
|
|
91
|
-
class: k(
|
|
92
|
-
onClick:
|
|
93
|
-
onMousemove:
|
|
109
|
+
"aria-label": "使用方向键与 Enter 键可选择月份",
|
|
110
|
+
class: k(N(E).b()),
|
|
111
|
+
onClick: g,
|
|
112
|
+
onMousemove: K
|
|
94
113
|
}, [
|
|
95
|
-
|
|
114
|
+
$("tbody", {
|
|
96
115
|
ref_key: "tbodyRef",
|
|
97
|
-
ref:
|
|
116
|
+
ref: w
|
|
98
117
|
}, [
|
|
99
|
-
(
|
|
100
|
-
(
|
|
101
|
-
key:
|
|
118
|
+
(u(!0), f(M, null, C(S.value, (a, s) => (u(), f("tr", { key: s }, [
|
|
119
|
+
(u(!0), f(M, null, C(a, (n, o) => (u(), f("td", {
|
|
120
|
+
key: o,
|
|
102
121
|
ref_for: !0,
|
|
103
|
-
ref: (
|
|
104
|
-
class: k(
|
|
105
|
-
"aria-selected": `${
|
|
106
|
-
tabindex:
|
|
122
|
+
ref: (m) => y(n) && (D.value = m),
|
|
123
|
+
class: k(z(n)),
|
|
124
|
+
"aria-selected": `${y(n)}`,
|
|
125
|
+
tabindex: y(n) ? 0 : -1,
|
|
107
126
|
onKeydown: [
|
|
108
|
-
|
|
109
|
-
|
|
127
|
+
O(_(g, ["prevent", "stop"]), ["space"]),
|
|
128
|
+
O(_(g, ["prevent", "stop"]), ["enter"])
|
|
110
129
|
]
|
|
111
130
|
}, [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
131
|
+
q(N(U), {
|
|
132
|
+
cell: {
|
|
133
|
+
...n,
|
|
134
|
+
renderText: A.value[n.text]
|
|
135
|
+
}
|
|
136
|
+
}, null, 8, ["cell"])
|
|
137
|
+
], 42, W))), 128))
|
|
116
138
|
]))), 128))
|
|
117
139
|
], 512)
|
|
118
140
|
], 34));
|
|
119
141
|
}
|
|
120
142
|
});
|
|
121
143
|
export {
|
|
122
|
-
|
|
144
|
+
ue as default
|
|
123
145
|
};
|