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,403 +1,544 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { VftInput as
|
|
1
|
+
import { defineComponent as sa, inject as we, toRef as te, ref as T, watch as da, computed as k, createElementBlock as h, openBlock as m, normalizeClass as r, unref as e, createElementVNode as s, createCommentVNode as p, renderSlot as va, Fragment as ma, renderList as ca, toDisplayString as K, withDirectives as S, createVNode as f, createBlock as I, vShow as H, withKeys as Q, withCtx as ye, createTextVNode as Ce } from "vue";
|
|
2
|
+
import z from "dayjs";
|
|
3
|
+
import { ClickOutside as Pe } from "@vft/directives";
|
|
4
|
+
import { isArray as fa } from "@vft/utils";
|
|
5
|
+
import { VftButton as Ve } from "../../button/index.js";
|
|
6
|
+
import { VftInput as X } from "../../input/index.js";
|
|
7
7
|
import "../../time-picker/index.js";
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { isValidRange as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
8
|
+
import { VftIcon as y } from "../../icon/index.js";
|
|
9
|
+
import { panelDateRangeProps as pa } from "../props/panel-date-range.js";
|
|
10
|
+
import { useRangePicker as ha } from "../composables/use-range-picker.js";
|
|
11
|
+
import { isValidRange as De, getDefaultValue as ba, correctlyParseUserInput as ka } from "../utils.js";
|
|
12
|
+
import { usePanelDateRange as ga } from "../composables/use-panel-date-range.js";
|
|
13
|
+
import { ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY as wa } from "../constants.js";
|
|
14
|
+
import Re from "./basic-year-table.vue2.js";
|
|
15
|
+
import xe from "./basic-month-table.vue2.js";
|
|
16
|
+
import Te from "./basic-date-table.vue2.js";
|
|
17
|
+
import Ie from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
18
|
+
import { PICKER_BASE_INJECTION_KEY as ya } from "../../time-picker/constants.js";
|
|
19
|
+
import { extractTimeFormat as Ca, extractDateFormat as Pa } from "../../time-picker/utils.js";
|
|
20
|
+
const Va = ["onClick"], Da = ["disabled"], Ra = ["disabled"], xa = ["disabled"], Ta = ["disabled"], Z = "month", Ha = /* @__PURE__ */ sa({
|
|
16
21
|
__name: "panel-date-range",
|
|
17
|
-
props:
|
|
22
|
+
props: pa,
|
|
18
23
|
emits: [
|
|
19
24
|
"pick",
|
|
20
25
|
"set-picker-option",
|
|
21
26
|
"calendar-change",
|
|
22
27
|
"panel-change"
|
|
23
28
|
],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
setup($e, { emit: Me }) {
|
|
30
|
+
const c = $e, D = Me, A = we(ya), Ne = we(
|
|
31
|
+
wa
|
|
32
|
+
), { disabledDate: b, cellClassName: ne, defaultTime: L, clearable: Se } = A.props, Y = te(A.props, "format"), oe = te(A.props, "shortcuts"), re = te(A.props, "defaultValue"), R = T("zh-cn"), i = T(z().locale(R.value)), u = T(z().locale(R.value).add(1, Z)), {
|
|
33
|
+
minDate: n,
|
|
34
|
+
maxDate: o,
|
|
35
|
+
rangeState: C,
|
|
36
|
+
ppNs: v,
|
|
37
|
+
drpNs: d,
|
|
38
|
+
handleChangeRange: ie,
|
|
39
|
+
handleRangeConfirm: ue,
|
|
40
|
+
handleShortcutClick: Ye,
|
|
41
|
+
onSelect: j,
|
|
42
|
+
onReset: Be
|
|
43
|
+
} = ha(c, {
|
|
44
|
+
defaultValue: re,
|
|
29
45
|
defaultTime: L,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} = Xe(f, {
|
|
43
|
-
defaultValue: J,
|
|
44
|
-
leftDate: n,
|
|
45
|
-
rightDate: o,
|
|
46
|
-
unit: A,
|
|
47
|
-
onParsedValueChanged: _e
|
|
48
|
-
}), M = V({
|
|
46
|
+
leftDate: i,
|
|
47
|
+
rightDate: u,
|
|
48
|
+
unit: Z,
|
|
49
|
+
onParsedValueChanged: ua
|
|
50
|
+
});
|
|
51
|
+
da(
|
|
52
|
+
() => c.visible,
|
|
53
|
+
(t) => {
|
|
54
|
+
!t && C.value.selecting && (Be(c.parsedValue), j(!1));
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
const $ = T({
|
|
49
58
|
min: null,
|
|
50
59
|
max: null
|
|
51
|
-
}),
|
|
60
|
+
}), P = T({
|
|
52
61
|
min: null,
|
|
53
62
|
max: null
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
63
|
+
}), {
|
|
64
|
+
leftCurrentView: w,
|
|
65
|
+
rightCurrentView: g,
|
|
66
|
+
leftCurrentViewRef: _,
|
|
67
|
+
rightCurrentViewRef: ee,
|
|
68
|
+
leftYear: se,
|
|
69
|
+
rightYear: de,
|
|
70
|
+
leftMonth: ae,
|
|
71
|
+
rightMonth: ve,
|
|
72
|
+
leftYearLabel: Fe,
|
|
73
|
+
rightYearLabel: Ee,
|
|
74
|
+
showLeftPicker: O,
|
|
75
|
+
showRightPicker: U,
|
|
76
|
+
handleLeftYearPick: Ke,
|
|
77
|
+
handleRightYearPick: ze,
|
|
78
|
+
handleLeftMonthPick: Ae,
|
|
79
|
+
handleRightMonthPick: Le,
|
|
80
|
+
handlePanelChange: V,
|
|
81
|
+
adjustDateByView: B
|
|
82
|
+
} = ga(c, D, i, u), me = k(() => !!oe.value.length), Oe = k(() => $.value.min !== null ? $.value.min : n.value ? n.value.format(le.value) : ""), Ue = k(() => $.value.max !== null ? $.value.max : o.value || n.value ? (o.value || n.value).format(le.value) : ""), Je = k(() => P.value.min !== null ? P.value.min : n.value ? n.value.format(F.value) : ""), We = k(() => P.value.max !== null ? P.value.max : o.value || n.value ? (o.value || n.value).format(F.value) : ""), F = k(() => c.timeFormat || Ca(Y.value)), le = k(() => c.dateFormat || Pa(Y.value)), qe = (t) => De(t) && (b ? !b(t[0].toDate()) && !b(t[1].toDate()) : !0), Ge = () => {
|
|
83
|
+
i.value = B(
|
|
84
|
+
w.value,
|
|
85
|
+
i.value,
|
|
86
|
+
!1
|
|
87
|
+
), c.unlinkPanels || (u.value = i.value.add(1, "month")), V("year");
|
|
88
|
+
}, He = () => {
|
|
89
|
+
i.value = i.value.subtract(1, "month"), c.unlinkPanels || (u.value = i.value.add(1, "month")), V("month");
|
|
90
|
+
}, Qe = () => {
|
|
91
|
+
c.unlinkPanels ? u.value = B(
|
|
92
|
+
g.value,
|
|
93
|
+
u.value,
|
|
94
|
+
!0
|
|
95
|
+
) : (i.value = B(
|
|
96
|
+
g.value,
|
|
97
|
+
i.value,
|
|
98
|
+
!0
|
|
99
|
+
), u.value = i.value.add(1, "month")), V("year");
|
|
100
|
+
}, Xe = () => {
|
|
101
|
+
c.unlinkPanels ? u.value = u.value.add(1, "month") : (i.value = i.value.add(1, "month"), u.value = i.value.add(1, "month")), V("month");
|
|
102
|
+
}, Ze = () => {
|
|
103
|
+
i.value = B(
|
|
104
|
+
w.value,
|
|
105
|
+
i.value,
|
|
106
|
+
!0
|
|
107
|
+
), V("year");
|
|
108
|
+
}, je = () => {
|
|
109
|
+
i.value = i.value.add(1, "month"), V("month");
|
|
110
|
+
}, _e = () => {
|
|
111
|
+
u.value = B(
|
|
112
|
+
g.value,
|
|
113
|
+
u.value,
|
|
114
|
+
!1
|
|
115
|
+
), V("year");
|
|
116
|
+
}, ea = () => {
|
|
117
|
+
u.value = u.value.subtract(1, "month"), V("month");
|
|
118
|
+
}, J = k(() => {
|
|
119
|
+
const t = (ae.value + 1) % 12, a = ae.value + 1 >= 12 ? 1 : 0;
|
|
120
|
+
return c.unlinkPanels && new Date(se.value + a, t) < new Date(de.value, ve.value);
|
|
121
|
+
}), W = k(() => c.unlinkPanels && de.value * 12 + ve.value - (se.value * 12 + ae.value + 1) >= 12), aa = k(() => !(n.value && o.value && !C.value.selecting && De([n.value, o.value]))), q = k(
|
|
122
|
+
() => c.type === "datetime" || c.type === "datetimerange"
|
|
123
|
+
), ce = (t, a) => {
|
|
82
124
|
if (t)
|
|
83
|
-
return L ?
|
|
125
|
+
return L ? z(
|
|
84
126
|
L[a] || L
|
|
85
|
-
).locale(
|
|
86
|
-
},
|
|
87
|
-
const l = t.minDate, x = t.maxDate,
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
const l =
|
|
127
|
+
).locale(R.value).year(t.year()).month(t.month()).date(t.date()) : t;
|
|
128
|
+
}, fe = (t, a = !0) => {
|
|
129
|
+
const l = t.minDate, x = t.maxDate, E = ce(l, 0), G = ce(x, 1);
|
|
130
|
+
o.value === G && n.value === E || (D("calendar-change", [l.toDate(), x && x.toDate()]), o.value = G, n.value = E, !(!a || q.value) && ue());
|
|
131
|
+
}, M = T(!1), N = T(!1), la = () => {
|
|
132
|
+
M.value = !1;
|
|
133
|
+
}, ta = () => {
|
|
134
|
+
N.value = !1;
|
|
135
|
+
}, pe = (t, a) => {
|
|
136
|
+
$.value[a] = t;
|
|
137
|
+
const l = z(t, le.value).locale(R.value);
|
|
96
138
|
if (l.isValid()) {
|
|
97
|
-
if (
|
|
139
|
+
if (b && b(l.toDate()))
|
|
98
140
|
return;
|
|
99
|
-
a === "min" ? (
|
|
141
|
+
a === "min" ? (i.value = l, n.value = (n.value || i.value).year(l.year()).month(l.month()).date(l.date()), !c.unlinkPanels && (!o.value || o.value.isBefore(n.value)) && (u.value = l.add(1, "month"), o.value = n.value.add(1, "month"))) : (u.value = l, o.value = (o.value || u.value).year(l.year()).month(l.month()).date(l.date()), !c.unlinkPanels && (!n.value || n.value.isAfter(o.value)) && (i.value = l.subtract(1, "month"), n.value = o.value.subtract(1, "month")));
|
|
100
142
|
}
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
const l =
|
|
106
|
-
l.isValid() && (a === "min" ? (
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
lang: e(
|
|
143
|
+
}, he = (t, a) => {
|
|
144
|
+
$.value[a] = null;
|
|
145
|
+
}, be = (t, a) => {
|
|
146
|
+
P.value[a] = t;
|
|
147
|
+
const l = z(t, F.value).locale(R.value);
|
|
148
|
+
l.isValid() && (a === "min" ? (M.value = !0, n.value = (n.value || i.value).hour(l.hour()).minute(l.minute()).second(l.second())) : (N.value = !0, o.value = (o.value || u.value).hour(l.hour()).minute(l.minute()).second(l.second()), u.value = o.value));
|
|
149
|
+
}, ke = (t, a) => {
|
|
150
|
+
P.value[a] = null, a === "min" ? (i.value = n.value, M.value = !1, (!o.value || o.value.isBefore(n.value)) && (o.value = n.value)) : (u.value = o.value, N.value = !1, o.value && o.value.isBefore(n.value) && (n.value = o.value));
|
|
151
|
+
}, na = (t, a, l) => {
|
|
152
|
+
P.value.min || (t && (i.value = t, n.value = (n.value || i.value).hour(t.hour()).minute(t.minute()).second(t.second())), l || (M.value = a), (!o.value || o.value.isBefore(n.value)) && (o.value = n.value, u.value = t));
|
|
153
|
+
}, oa = (t, a, l) => {
|
|
154
|
+
P.value.max || (t && (u.value = t, o.value = (o.value || u.value).hour(t.hour()).minute(t.minute()).second(t.second())), l || (N.value = a), o.value && o.value.isBefore(n.value) && (n.value = o.value));
|
|
155
|
+
}, ge = () => {
|
|
156
|
+
i.value = ba(e(re), {
|
|
157
|
+
lang: e(R),
|
|
116
158
|
unit: "month",
|
|
117
|
-
unlinkPanels:
|
|
118
|
-
})[0],
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
159
|
+
unlinkPanels: c.unlinkPanels
|
|
160
|
+
})[0], u.value = i.value.add(1, "month"), o.value = void 0, n.value = void 0, D("pick", null);
|
|
161
|
+
}, ra = (t) => fa(t) ? t.map((a) => a.format(Y.value)) : t.format(Y.value), ia = (t) => ka(
|
|
162
|
+
t,
|
|
163
|
+
Y.value,
|
|
164
|
+
R.value,
|
|
165
|
+
Ne
|
|
166
|
+
);
|
|
167
|
+
function ua(t, a) {
|
|
168
|
+
if (c.unlinkPanels && a) {
|
|
169
|
+
const l = t?.year() || 0, x = t?.month() || 0, E = a.year(), G = a.month();
|
|
170
|
+
u.value = l === E && x === G ? a.add(1, Z) : a;
|
|
124
171
|
} else
|
|
125
|
-
|
|
172
|
+
u.value = i.value.add(1, Z), a && (u.value = u.value.hour(a.hour()).minute(a.minute()).second(a.second()));
|
|
126
173
|
}
|
|
127
|
-
return
|
|
128
|
-
class:
|
|
129
|
-
e(
|
|
130
|
-
e(
|
|
174
|
+
return D("set-picker-option", ["isValidValue", qe]), D("set-picker-option", ["parseUserInput", ia]), D("set-picker-option", ["formatToString", ra]), D("set-picker-option", ["handleClear", ge]), (t, a) => (m(), h("div", {
|
|
175
|
+
class: r([
|
|
176
|
+
e(v).b(),
|
|
177
|
+
e(d).b(),
|
|
131
178
|
{
|
|
132
|
-
"has-sidebar": t.$slots.sidebar ||
|
|
133
|
-
"has-time":
|
|
179
|
+
"has-sidebar": t.$slots.sidebar || me.value,
|
|
180
|
+
"has-time": q.value
|
|
134
181
|
}
|
|
135
182
|
])
|
|
136
183
|
}, [
|
|
137
|
-
|
|
138
|
-
class:
|
|
184
|
+
s("div", {
|
|
185
|
+
class: r(e(v).e("body-wrapper"))
|
|
139
186
|
}, [
|
|
140
|
-
|
|
141
|
-
class:
|
|
187
|
+
va(t.$slots, "sidebar", {
|
|
188
|
+
class: r(e(v).e("sidebar"))
|
|
142
189
|
}),
|
|
143
|
-
|
|
190
|
+
me.value ? (m(), h("div", {
|
|
144
191
|
key: 0,
|
|
145
|
-
class:
|
|
192
|
+
class: r(e(v).e("sidebar"))
|
|
146
193
|
}, [
|
|
147
|
-
(
|
|
194
|
+
(m(!0), h(ma, null, ca(oe.value, (l, x) => (m(), h("button", {
|
|
148
195
|
key: x,
|
|
149
196
|
type: "button",
|
|
150
|
-
class:
|
|
151
|
-
onClick: (
|
|
152
|
-
},
|
|
153
|
-
], 2)) :
|
|
154
|
-
|
|
155
|
-
class:
|
|
197
|
+
class: r(e(v).e("shortcut")),
|
|
198
|
+
onClick: (E) => e(Ye)(l)
|
|
199
|
+
}, K(l.text), 11, Va))), 128))
|
|
200
|
+
], 2)) : p("", !0),
|
|
201
|
+
s("div", {
|
|
202
|
+
class: r(e(v).e("body"))
|
|
156
203
|
}, [
|
|
157
|
-
|
|
204
|
+
q.value ? (m(), h("div", {
|
|
158
205
|
key: 0,
|
|
159
|
-
class:
|
|
206
|
+
class: r(e(d).e("time-header"))
|
|
160
207
|
}, [
|
|
161
|
-
|
|
162
|
-
class:
|
|
208
|
+
s("span", {
|
|
209
|
+
class: r(e(d).e("editors-wrap"))
|
|
163
210
|
}, [
|
|
164
|
-
|
|
165
|
-
class:
|
|
211
|
+
s("span", {
|
|
212
|
+
class: r(e(d).e("time-picker-wrap"))
|
|
166
213
|
}, [
|
|
167
|
-
|
|
214
|
+
f(e(X), {
|
|
168
215
|
size: "small",
|
|
169
|
-
disabled: e(
|
|
216
|
+
disabled: e(C).selecting,
|
|
170
217
|
placeholder: "开始日期",
|
|
171
|
-
class:
|
|
172
|
-
"model-value":
|
|
218
|
+
class: r(e(d).e("editor")),
|
|
219
|
+
"model-value": Oe.value,
|
|
173
220
|
"validate-event": !1,
|
|
174
|
-
onInput: a[0] || (a[0] = (l) =>
|
|
175
|
-
onChange: a[1] || (a[1] = (l) =>
|
|
221
|
+
onInput: a[0] || (a[0] = (l) => pe(l, "min")),
|
|
222
|
+
onChange: a[1] || (a[1] = (l) => he(l, "min"))
|
|
176
223
|
}, null, 8, ["disabled", "class", "model-value"])
|
|
177
224
|
], 2),
|
|
178
|
-
|
|
179
|
-
class:
|
|
225
|
+
S((m(), h("span", {
|
|
226
|
+
class: r(e(d).e("time-picker-wrap"))
|
|
180
227
|
}, [
|
|
181
|
-
|
|
228
|
+
f(e(X), {
|
|
182
229
|
size: "small",
|
|
183
|
-
class:
|
|
184
|
-
disabled: e(
|
|
230
|
+
class: r(e(d).e("editor")),
|
|
231
|
+
disabled: e(C).selecting,
|
|
185
232
|
placeholder: "开始时间",
|
|
186
|
-
"model-value":
|
|
233
|
+
"model-value": Je.value,
|
|
187
234
|
"validate-event": !1,
|
|
188
|
-
onFocus: a[2] || (a[2] = (l) =>
|
|
189
|
-
onInput: a[3] || (a[3] = (l) =>
|
|
190
|
-
onChange: a[4] || (a[4] = (l) =>
|
|
235
|
+
onFocus: a[2] || (a[2] = (l) => M.value = !0),
|
|
236
|
+
onInput: a[3] || (a[3] = (l) => be(l, "min")),
|
|
237
|
+
onChange: a[4] || (a[4] = (l) => ke(l, "min"))
|
|
191
238
|
}, null, 8, ["class", "disabled", "model-value"]),
|
|
192
|
-
|
|
193
|
-
visible:
|
|
194
|
-
format:
|
|
239
|
+
f(e(Ie), {
|
|
240
|
+
visible: M.value,
|
|
241
|
+
format: F.value,
|
|
195
242
|
"datetime-role": "start",
|
|
196
|
-
"
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
|
|
243
|
+
"parsed-value": i.value,
|
|
244
|
+
onPick: na
|
|
245
|
+
}, null, 8, ["visible", "format", "parsed-value"])
|
|
200
246
|
], 2)), [
|
|
201
|
-
[e(
|
|
247
|
+
[e(Pe), la]
|
|
202
248
|
])
|
|
203
249
|
], 2),
|
|
204
|
-
|
|
205
|
-
|
|
250
|
+
s("span", null, [
|
|
251
|
+
f(e(y), { icon: "icon-arrow-right" })
|
|
206
252
|
]),
|
|
207
|
-
|
|
208
|
-
class:
|
|
253
|
+
s("span", {
|
|
254
|
+
class: r([e(d).e("editors-wrap"), "is-right"])
|
|
209
255
|
}, [
|
|
210
|
-
|
|
211
|
-
class:
|
|
256
|
+
s("span", {
|
|
257
|
+
class: r(e(d).e("time-picker-wrap"))
|
|
212
258
|
}, [
|
|
213
|
-
|
|
259
|
+
f(e(X), {
|
|
214
260
|
size: "small",
|
|
215
|
-
class:
|
|
216
|
-
disabled: e(
|
|
261
|
+
class: r(e(d).e("editor")),
|
|
262
|
+
disabled: e(C).selecting,
|
|
217
263
|
placeholder: "结束日期",
|
|
218
|
-
"model-value":
|
|
219
|
-
readonly: !e(
|
|
264
|
+
"model-value": Ue.value,
|
|
265
|
+
readonly: !e(n),
|
|
220
266
|
"validate-event": !1,
|
|
221
|
-
onInput: a[5] || (a[5] = (l) =>
|
|
222
|
-
onChange: a[6] || (a[6] = (l) =>
|
|
267
|
+
onInput: a[5] || (a[5] = (l) => pe(l, "max")),
|
|
268
|
+
onChange: a[6] || (a[6] = (l) => he(l, "max"))
|
|
223
269
|
}, null, 8, ["class", "disabled", "model-value", "readonly"])
|
|
224
270
|
], 2),
|
|
225
|
-
|
|
226
|
-
class:
|
|
271
|
+
S((m(), h("span", {
|
|
272
|
+
class: r(e(d).e("time-picker-wrap"))
|
|
227
273
|
}, [
|
|
228
|
-
|
|
274
|
+
f(e(X), {
|
|
229
275
|
size: "small",
|
|
230
|
-
class:
|
|
231
|
-
disabled: e(
|
|
276
|
+
class: r(e(d).e("editor")),
|
|
277
|
+
disabled: e(C).selecting,
|
|
232
278
|
placeholder: "结束时间",
|
|
233
|
-
"model-value":
|
|
234
|
-
readonly: !e(
|
|
279
|
+
"model-value": We.value,
|
|
280
|
+
readonly: !e(n),
|
|
235
281
|
"validate-event": !1,
|
|
236
|
-
onFocus: a[7] || (a[7] = (l) => e(
|
|
237
|
-
onInput: a[8] || (a[8] = (l) =>
|
|
238
|
-
onChange: a[9] || (a[9] = (l) =>
|
|
282
|
+
onFocus: a[7] || (a[7] = (l) => e(n) && (N.value = !0)),
|
|
283
|
+
onInput: a[8] || (a[8] = (l) => be(l, "max")),
|
|
284
|
+
onChange: a[9] || (a[9] = (l) => ke(l, "max"))
|
|
239
285
|
}, null, 8, ["class", "disabled", "model-value", "readonly"]),
|
|
240
|
-
|
|
286
|
+
f(e(Ie), {
|
|
241
287
|
"datetime-role": "end",
|
|
242
|
-
visible:
|
|
243
|
-
format:
|
|
244
|
-
"
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
|
|
288
|
+
visible: N.value,
|
|
289
|
+
format: F.value,
|
|
290
|
+
"parsed-value": u.value,
|
|
291
|
+
onPick: oa
|
|
292
|
+
}, null, 8, ["visible", "format", "parsed-value"])
|
|
248
293
|
], 2)), [
|
|
249
|
-
[e(
|
|
294
|
+
[e(Pe), ta]
|
|
250
295
|
])
|
|
251
296
|
], 2)
|
|
252
|
-
], 2)) :
|
|
253
|
-
|
|
254
|
-
class:
|
|
297
|
+
], 2)) : p("", !0),
|
|
298
|
+
s("div", {
|
|
299
|
+
class: r([[e(v).e("content"), e(d).e("content")], "is-left"])
|
|
255
300
|
}, [
|
|
256
|
-
|
|
257
|
-
class:
|
|
301
|
+
s("div", {
|
|
302
|
+
class: r(e(d).e("header"))
|
|
258
303
|
}, [
|
|
259
|
-
|
|
304
|
+
s("button", {
|
|
260
305
|
type: "button",
|
|
261
|
-
class:
|
|
262
|
-
onClick:
|
|
306
|
+
class: r([e(v).e("icon-btn"), "d-arrow-left"]),
|
|
307
|
+
onClick: Ge
|
|
263
308
|
}, [
|
|
264
|
-
|
|
309
|
+
f(e(y), { icon: "icon-d-arrow-left" })
|
|
265
310
|
], 2),
|
|
266
|
-
|
|
311
|
+
S(s("button", {
|
|
267
312
|
type: "button",
|
|
268
|
-
class:
|
|
269
|
-
onClick:
|
|
313
|
+
class: r([e(v).e("icon-btn"), "arrow-left"]),
|
|
314
|
+
onClick: He
|
|
270
315
|
}, [
|
|
271
|
-
|
|
272
|
-
], 2),
|
|
273
|
-
|
|
316
|
+
f(e(y), { icon: "icon-arrow-left" })
|
|
317
|
+
], 2), [
|
|
318
|
+
[H, e(w) === "date"]
|
|
319
|
+
]),
|
|
320
|
+
t.unlinkPanels ? (m(), h("button", {
|
|
274
321
|
key: 0,
|
|
275
322
|
type: "button",
|
|
276
|
-
disabled: !
|
|
277
|
-
class:
|
|
278
|
-
onClick:
|
|
323
|
+
disabled: !W.value,
|
|
324
|
+
class: r([[e(v).e("icon-btn"), { "is-disabled": !W.value }], "d-arrow-right"]),
|
|
325
|
+
onClick: Ze
|
|
279
326
|
}, [
|
|
280
|
-
|
|
281
|
-
], 10,
|
|
282
|
-
t.unlinkPanels ? (
|
|
327
|
+
f(e(y), { icon: "icon-d-arrow-right" })
|
|
328
|
+
], 10, Da)) : p("", !0),
|
|
329
|
+
t.unlinkPanels && e(w) === "date" ? (m(), h("button", {
|
|
283
330
|
key: 1,
|
|
284
331
|
type: "button",
|
|
285
|
-
disabled: !
|
|
286
|
-
class:
|
|
287
|
-
e(
|
|
288
|
-
{ "is-disabled": !
|
|
332
|
+
disabled: !J.value,
|
|
333
|
+
class: r([[
|
|
334
|
+
e(v).e("icon-btn"),
|
|
335
|
+
{ "is-disabled": !J.value }
|
|
289
336
|
], "arrow-right"]),
|
|
290
|
-
onClick:
|
|
337
|
+
onClick: je
|
|
291
338
|
}, [
|
|
292
|
-
|
|
293
|
-
], 10,
|
|
294
|
-
|
|
339
|
+
f(e(y), { icon: "icon-arrow-right" })
|
|
340
|
+
], 10, Ra)) : p("", !0),
|
|
341
|
+
s("div", null, [
|
|
342
|
+
s("span", {
|
|
343
|
+
role: "button",
|
|
344
|
+
class: r(e(d).e("header-label")),
|
|
345
|
+
"aria-live": "polite",
|
|
346
|
+
tabindex: "0",
|
|
347
|
+
onKeydown: a[10] || (a[10] = Q((l) => e(O)("year"), ["enter"])),
|
|
348
|
+
onClick: a[11] || (a[11] = (l) => e(O)("year"))
|
|
349
|
+
}, K(e(Fe)), 35),
|
|
350
|
+
S(s("span", {
|
|
351
|
+
role: "button",
|
|
352
|
+
"aria-live": "polite",
|
|
353
|
+
tabindex: "0",
|
|
354
|
+
class: r([
|
|
355
|
+
e(d).e("header-label"),
|
|
356
|
+
{ active: e(w) === "month" }
|
|
357
|
+
]),
|
|
358
|
+
onKeydown: a[12] || (a[12] = Q((l) => e(O)("month"), ["enter"])),
|
|
359
|
+
onClick: a[13] || (a[13] = (l) => e(O)("month"))
|
|
360
|
+
}, K(i.value.month() + 1), 35), [
|
|
361
|
+
[H, e(w) === "date"]
|
|
362
|
+
])
|
|
363
|
+
])
|
|
295
364
|
], 2),
|
|
296
|
-
|
|
365
|
+
e(w) === "date" ? (m(), I(Te, {
|
|
366
|
+
key: 0,
|
|
367
|
+
ref_key: "leftCurrentViewRef",
|
|
368
|
+
ref: _,
|
|
297
369
|
"selection-mode": "range",
|
|
298
|
-
date:
|
|
299
|
-
"min-date": e(
|
|
300
|
-
"max-date": e(
|
|
301
|
-
"range-state": e(
|
|
302
|
-
"disabled-date": e(
|
|
303
|
-
"cell-class-name": e(
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
370
|
+
date: i.value,
|
|
371
|
+
"min-date": e(n),
|
|
372
|
+
"max-date": e(o),
|
|
373
|
+
"range-state": e(C),
|
|
374
|
+
"disabled-date": e(b),
|
|
375
|
+
"cell-class-name": e(ne),
|
|
376
|
+
"show-week-number": t.showWeekNumber,
|
|
377
|
+
onChangerange: e(ie),
|
|
378
|
+
onPick: fe,
|
|
379
|
+
onSelect: e(j)
|
|
380
|
+
}, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "show-week-number", "onChangerange", "onSelect"])) : p("", !0),
|
|
381
|
+
e(w) === "year" ? (m(), I(Re, {
|
|
382
|
+
key: 1,
|
|
383
|
+
ref_key: "leftCurrentViewRef",
|
|
384
|
+
ref: _,
|
|
385
|
+
"selection-mode": "year",
|
|
386
|
+
date: i.value,
|
|
387
|
+
"disabled-date": e(b),
|
|
388
|
+
"parsed-value": t.parsedValue,
|
|
389
|
+
onPick: e(Ke)
|
|
390
|
+
}, null, 8, ["date", "disabled-date", "parsed-value", "onPick"])) : p("", !0),
|
|
391
|
+
e(w) === "month" ? (m(), I(xe, {
|
|
392
|
+
key: 2,
|
|
393
|
+
ref_key: "leftCurrentViewRef",
|
|
394
|
+
ref: _,
|
|
395
|
+
"selection-mode": "month",
|
|
396
|
+
date: i.value,
|
|
397
|
+
"parsed-value": t.parsedValue,
|
|
398
|
+
"disabled-date": e(b),
|
|
399
|
+
onPick: e(Ae)
|
|
400
|
+
}, null, 8, ["date", "parsed-value", "disabled-date", "onPick"])) : p("", !0)
|
|
308
401
|
], 2),
|
|
309
|
-
|
|
310
|
-
class:
|
|
402
|
+
s("div", {
|
|
403
|
+
class: r([[e(v).e("content"), e(d).e("content")], "is-right"])
|
|
311
404
|
}, [
|
|
312
|
-
|
|
313
|
-
class:
|
|
405
|
+
s("div", {
|
|
406
|
+
class: r(e(d).e("header"))
|
|
314
407
|
}, [
|
|
315
|
-
t.unlinkPanels ? (
|
|
408
|
+
t.unlinkPanels ? (m(), h("button", {
|
|
316
409
|
key: 0,
|
|
317
410
|
type: "button",
|
|
318
|
-
disabled: !
|
|
319
|
-
class:
|
|
320
|
-
onClick:
|
|
411
|
+
disabled: !W.value,
|
|
412
|
+
class: r([[e(v).e("icon-btn"), { "is-disabled": !W.value }], "d-arrow-left"]),
|
|
413
|
+
onClick: _e
|
|
321
414
|
}, [
|
|
322
|
-
|
|
323
|
-
], 10,
|
|
324
|
-
t.unlinkPanels ? (
|
|
415
|
+
f(e(y), { icon: "icon-d-arrow-left" })
|
|
416
|
+
], 10, xa)) : p("", !0),
|
|
417
|
+
t.unlinkPanels && e(g) === "date" ? (m(), h("button", {
|
|
325
418
|
key: 1,
|
|
326
419
|
type: "button",
|
|
327
|
-
disabled: !
|
|
328
|
-
class:
|
|
329
|
-
e(
|
|
330
|
-
{ "is-disabled": !
|
|
420
|
+
disabled: !J.value,
|
|
421
|
+
class: r([[
|
|
422
|
+
e(v).e("icon-btn"),
|
|
423
|
+
{ "is-disabled": !J.value }
|
|
331
424
|
], "arrow-left"]),
|
|
332
|
-
onClick:
|
|
425
|
+
onClick: ea
|
|
333
426
|
}, [
|
|
334
|
-
|
|
335
|
-
], 10,
|
|
336
|
-
|
|
427
|
+
f(e(y), { icon: "icon-arrow-left" })
|
|
428
|
+
], 10, Ta)) : p("", !0),
|
|
429
|
+
s("button", {
|
|
337
430
|
type: "button",
|
|
338
|
-
class:
|
|
339
|
-
onClick:
|
|
431
|
+
class: r([e(v).e("icon-btn"), "d-arrow-right"]),
|
|
432
|
+
onClick: Qe
|
|
340
433
|
}, [
|
|
341
|
-
|
|
434
|
+
f(e(y), { icon: "icon-d-arrow-right" })
|
|
342
435
|
], 2),
|
|
343
|
-
|
|
436
|
+
S(s("button", {
|
|
344
437
|
type: "button",
|
|
345
|
-
class:
|
|
346
|
-
onClick:
|
|
438
|
+
class: r([e(v).e("icon-btn"), "arrow-right"]),
|
|
439
|
+
onClick: Xe
|
|
347
440
|
}, [
|
|
348
|
-
|
|
349
|
-
], 2),
|
|
350
|
-
|
|
441
|
+
f(e(y), { icon: "icon-arrow-right" })
|
|
442
|
+
], 2), [
|
|
443
|
+
[H, e(g) === "date"]
|
|
444
|
+
]),
|
|
445
|
+
s("div", null, [
|
|
446
|
+
s("span", {
|
|
447
|
+
role: "button",
|
|
448
|
+
class: r(e(d).e("header-label")),
|
|
449
|
+
"aria-live": "polite",
|
|
450
|
+
tabindex: "0",
|
|
451
|
+
onKeydown: a[14] || (a[14] = Q((l) => e(U)("year"), ["enter"])),
|
|
452
|
+
onClick: a[15] || (a[15] = (l) => e(U)("year"))
|
|
453
|
+
}, K(e(Ee)), 35),
|
|
454
|
+
S(s("span", {
|
|
455
|
+
role: "button",
|
|
456
|
+
"aria-live": "polite",
|
|
457
|
+
tabindex: "0",
|
|
458
|
+
class: r([
|
|
459
|
+
e(d).e("header-label"),
|
|
460
|
+
{ active: e(g) === "month" }
|
|
461
|
+
]),
|
|
462
|
+
onKeydown: a[16] || (a[16] = Q((l) => e(U)("month"), ["enter"])),
|
|
463
|
+
onClick: a[17] || (a[17] = (l) => e(U)("month"))
|
|
464
|
+
}, K(u.value.month() + 1), 35), [
|
|
465
|
+
[H, e(g) === "date"]
|
|
466
|
+
])
|
|
467
|
+
])
|
|
351
468
|
], 2),
|
|
352
|
-
|
|
469
|
+
e(g) === "date" ? (m(), I(Te, {
|
|
470
|
+
key: 0,
|
|
471
|
+
ref_key: "rightCurrentViewRef",
|
|
472
|
+
ref: ee,
|
|
353
473
|
"selection-mode": "range",
|
|
354
|
-
date:
|
|
355
|
-
"min-date": e(
|
|
356
|
-
"max-date": e(
|
|
357
|
-
"range-state": e(
|
|
358
|
-
"disabled-date": e(
|
|
359
|
-
"cell-class-name": e(
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
474
|
+
date: u.value,
|
|
475
|
+
"min-date": e(n),
|
|
476
|
+
"max-date": e(o),
|
|
477
|
+
"range-state": e(C),
|
|
478
|
+
"disabled-date": e(b),
|
|
479
|
+
"cell-class-name": e(ne),
|
|
480
|
+
"show-week-number": t.showWeekNumber,
|
|
481
|
+
onChangerange: e(ie),
|
|
482
|
+
onPick: fe,
|
|
483
|
+
onSelect: e(j)
|
|
484
|
+
}, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "show-week-number", "onChangerange", "onSelect"])) : p("", !0),
|
|
485
|
+
e(g) === "year" ? (m(), I(Re, {
|
|
486
|
+
key: 1,
|
|
487
|
+
ref_key: "rightCurrentViewRef",
|
|
488
|
+
ref: ee,
|
|
489
|
+
"selection-mode": "year",
|
|
490
|
+
date: u.value,
|
|
491
|
+
"disabled-date": e(b),
|
|
492
|
+
"parsed-value": t.parsedValue,
|
|
493
|
+
onPick: e(ze)
|
|
494
|
+
}, null, 8, ["date", "disabled-date", "parsed-value", "onPick"])) : p("", !0),
|
|
495
|
+
e(g) === "month" ? (m(), I(xe, {
|
|
496
|
+
key: 2,
|
|
497
|
+
ref_key: "rightCurrentViewRef",
|
|
498
|
+
ref: ee,
|
|
499
|
+
"selection-mode": "month",
|
|
500
|
+
date: u.value,
|
|
501
|
+
"parsed-value": t.parsedValue,
|
|
502
|
+
"disabled-date": e(b),
|
|
503
|
+
onPick: e(Le)
|
|
504
|
+
}, null, 8, ["date", "parsed-value", "disabled-date", "onPick"])) : p("", !0)
|
|
364
505
|
], 2)
|
|
365
506
|
], 2)
|
|
366
507
|
], 2),
|
|
367
|
-
|
|
508
|
+
q.value ? (m(), h("div", {
|
|
368
509
|
key: 0,
|
|
369
|
-
class:
|
|
510
|
+
class: r(e(v).e("footer"))
|
|
370
511
|
}, [
|
|
371
|
-
e(
|
|
512
|
+
e(Se) ? (m(), I(e(Ve), {
|
|
372
513
|
key: 0,
|
|
373
514
|
text: "",
|
|
374
515
|
size: "small",
|
|
375
|
-
class:
|
|
376
|
-
onClick:
|
|
516
|
+
class: r(e(v).e("link-btn")),
|
|
517
|
+
onClick: ge
|
|
377
518
|
}, {
|
|
378
|
-
default:
|
|
379
|
-
|
|
519
|
+
default: ye(() => a[19] || (a[19] = [
|
|
520
|
+
Ce(" 清除 ")
|
|
380
521
|
])),
|
|
381
522
|
_: 1,
|
|
382
|
-
__: [
|
|
383
|
-
}, 8, ["class"])) :
|
|
384
|
-
|
|
523
|
+
__: [19]
|
|
524
|
+
}, 8, ["class"])) : p("", !0),
|
|
525
|
+
f(e(Ve), {
|
|
385
526
|
plain: "",
|
|
386
527
|
size: "small",
|
|
387
|
-
class:
|
|
388
|
-
disabled:
|
|
389
|
-
onClick: a[
|
|
528
|
+
class: r(e(v).e("link-btn")),
|
|
529
|
+
disabled: aa.value,
|
|
530
|
+
onClick: a[18] || (a[18] = (l) => e(ue)(!1))
|
|
390
531
|
}, {
|
|
391
|
-
default:
|
|
392
|
-
|
|
532
|
+
default: ye(() => a[20] || (a[20] = [
|
|
533
|
+
Ce(" 确认 ")
|
|
393
534
|
])),
|
|
394
535
|
_: 1,
|
|
395
|
-
__: [
|
|
536
|
+
__: [20]
|
|
396
537
|
}, 8, ["class", "disabled"])
|
|
397
|
-
], 2)) :
|
|
538
|
+
], 2)) : p("", !0)
|
|
398
539
|
], 2));
|
|
399
540
|
}
|
|
400
541
|
});
|
|
401
542
|
export {
|
|
402
|
-
|
|
543
|
+
Ha as default
|
|
403
544
|
};
|