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,191 +1,192 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as ve, ref as j, inject as be, computed as d, createElementBlock as ge, createCommentVNode as he, openBlock as ke, normalizeClass as u, unref as s, createElementVNode as m, createVNode as z } from "vue";
|
|
2
|
+
import S from "dayjs";
|
|
3
|
+
import { union as A } from "lodash-es";
|
|
4
4
|
import "@vueuse/core";
|
|
5
|
+
import { isArray as M } from "@vft/utils";
|
|
6
|
+
import { EVENT_CODE as Se } from "../../../constants/aria.js";
|
|
5
7
|
import "../../../utils/ns-cover.js";
|
|
6
|
-
import { union as M } from "lodash-es";
|
|
7
8
|
import { useNamespace as U } 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
|
-
import {
|
|
12
|
+
import { PICKER_BASE_INJECTION_KEY as Ce } from "../constants.js";
|
|
13
|
+
import { panelTimeRangeProps as De } from "../props/panel-time-range.js";
|
|
14
|
+
import { useTimePanel as we } from "../composables/use-time-panel.js";
|
|
15
|
+
import { useOldValue as Ve, buildAvailableTimeSlotGetter as _e } from "../composables/use-time-picker.js";
|
|
15
16
|
import G from "./basic-time-spinner.vue2.js";
|
|
16
|
-
const
|
|
17
|
+
const Re = ["disabled"], Ue = /* @__PURE__ */ ve({
|
|
17
18
|
__name: "panel-time-range",
|
|
18
|
-
props:
|
|
19
|
+
props: De,
|
|
19
20
|
emits: ["pick", "select-range", "set-picker-option"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
21
|
+
setup(J, { emit: Y }) {
|
|
22
|
+
const i = J, c = Y, g = (e, t) => {
|
|
22
23
|
const n = [];
|
|
23
|
-
for (let
|
|
24
|
-
n.push(
|
|
24
|
+
for (let o = e; o <= t; o++)
|
|
25
|
+
n.push(o);
|
|
25
26
|
return n;
|
|
26
|
-
}, k = j("zh-cn"),
|
|
27
|
-
arrowControl:
|
|
27
|
+
}, k = j("zh-cn"), a = U("time"), q = U("picker"), F = be(Ce), {
|
|
28
|
+
arrowControl: C,
|
|
28
29
|
disabledHours: O,
|
|
29
30
|
disabledMinutes: E,
|
|
30
|
-
disabledSeconds:
|
|
31
|
-
defaultValue:
|
|
32
|
-
} =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
disabledSeconds: N,
|
|
32
|
+
defaultValue: w
|
|
33
|
+
} = F.props, L = d(() => [
|
|
34
|
+
a.be("range-picker", "body"),
|
|
35
|
+
a.be("panel", "content"),
|
|
36
|
+
a.is("arrow", C),
|
|
37
|
+
b.value ? "has-seconds" : ""
|
|
38
|
+
]), Q = d(() => [
|
|
39
|
+
a.be("range-picker", "body"),
|
|
40
|
+
a.be("panel", "content"),
|
|
41
|
+
a.is("arrow", C),
|
|
42
|
+
b.value ? "has-seconds" : ""
|
|
43
|
+
]), f = d(() => i.parsedValue[0]), v = d(() => i.parsedValue[1]), W = Ve(i), X = () => {
|
|
44
|
+
c("pick", W.value, !1);
|
|
45
|
+
}, b = d(() => i.format.includes("ss")), H = d(() => i.format.includes("A") ? "A" : i.format.includes("a") ? "a" : ""), Z = (e = !1) => {
|
|
46
|
+
c("pick", [f.value, v.value], e);
|
|
40
47
|
}, ee = (e) => {
|
|
41
|
-
|
|
48
|
+
I(e.millisecond(0), v.value);
|
|
49
|
+
}, te = (e) => {
|
|
50
|
+
I(f.value, e.millisecond(0));
|
|
51
|
+
}, ne = (e) => {
|
|
52
|
+
const t = e.map((o) => S(o).locale(k.value)), n = P(t);
|
|
42
53
|
return t[0].isSame(n[0]) && t[1].isSame(n[1]);
|
|
43
|
-
},
|
|
44
|
-
i("pick", [e, t], !0);
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
const n =
|
|
50
|
-
|
|
51
|
-
},
|
|
54
|
+
}, I = (e, t) => {
|
|
55
|
+
i.visible && c("pick", [e, t], !0);
|
|
56
|
+
}, oe = d(() => f.value > v.value), D = j([0, 2]), ae = (e, t) => {
|
|
57
|
+
c("select-range", e, t, "min"), D.value = [e, t];
|
|
58
|
+
}, K = d(() => b.value ? 11 : 8), se = (e, t) => {
|
|
59
|
+
c("select-range", e, t, "max");
|
|
60
|
+
const n = s(K);
|
|
61
|
+
D.value = [e + n, t + n];
|
|
62
|
+
}, re = (e) => {
|
|
52
63
|
const t = b.value ? [0, 3, 6, 11, 14, 17] : [0, 3, 8, 11], n = ["hours", "minutes"].concat(
|
|
53
64
|
b.value ? ["seconds"] : []
|
|
54
|
-
), r = (t.indexOf(
|
|
55
|
-
r < l ?
|
|
56
|
-
},
|
|
57
|
-
const t = e.code, { left: n, right:
|
|
58
|
-
if ([n,
|
|
59
|
-
|
|
65
|
+
), r = (t.indexOf(D.value[0]) + e + t.length) % t.length, l = t.length / 2;
|
|
66
|
+
r < l ? T.start_emitSelectRange(n[r]) : T.end_emitSelectRange(n[r - l]);
|
|
67
|
+
}, le = (e) => {
|
|
68
|
+
const t = e.code, { left: n, right: o, up: r, down: l } = Se;
|
|
69
|
+
if ([n, o].includes(t)) {
|
|
70
|
+
re(t === n ? -1 : 1), e.preventDefault();
|
|
60
71
|
return;
|
|
61
72
|
}
|
|
62
73
|
if ([r, l].includes(t)) {
|
|
63
|
-
const p = t === r ? -1 : 1,
|
|
64
|
-
|
|
74
|
+
const p = t === r ? -1 : 1, h = D.value[0] < K.value ? "start" : "end";
|
|
75
|
+
T[`${h}_scrollDown`](p), e.preventDefault();
|
|
65
76
|
return;
|
|
66
77
|
}
|
|
67
78
|
}, V = (e, t) => {
|
|
68
|
-
const n = O ? O(e) : [],
|
|
69
|
-
return
|
|
79
|
+
const n = O ? O(e) : [], o = e === "start", l = (t || (o ? v.value : f.value)).hour(), p = o ? g(l + 1, 23) : g(0, l - 1);
|
|
80
|
+
return A(n, p);
|
|
70
81
|
}, _ = (e, t, n) => {
|
|
71
|
-
const
|
|
82
|
+
const o = E ? E(e, t) : [], r = t === "start", l = n || (r ? v.value : f.value), p = l.hour();
|
|
72
83
|
if (e !== p)
|
|
73
|
-
return
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
-
}, R = (e, t, n,
|
|
77
|
-
const r =
|
|
78
|
-
if (e !==
|
|
84
|
+
return o;
|
|
85
|
+
const h = l.minute(), x = r ? g(h + 1, 59) : g(0, h - 1);
|
|
86
|
+
return A(o, x);
|
|
87
|
+
}, R = (e, t, n, o) => {
|
|
88
|
+
const r = N ? N(e, t, n) : [], l = n === "start", p = o || (l ? v.value : f.value), h = p.hour(), x = p.minute();
|
|
89
|
+
if (e !== h || t !== x)
|
|
79
90
|
return r;
|
|
80
|
-
const
|
|
81
|
-
return
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
], { getAvailableHours:
|
|
91
|
+
const $ = p.second(), fe = l ? g($ + 1, 59) : g(0, $ - 1);
|
|
92
|
+
return A(r, fe);
|
|
93
|
+
}, P = ([e, t]) => [
|
|
94
|
+
y(e, "start", !0, t),
|
|
95
|
+
y(t, "end", !1, e)
|
|
96
|
+
], { getAvailableHours: ie, getAvailableMinutes: ce, getAvailableSeconds: ue } = _e(
|
|
86
97
|
V,
|
|
87
98
|
_,
|
|
88
99
|
R
|
|
89
100
|
), {
|
|
90
|
-
timePickerOptions:
|
|
91
|
-
getAvailableTime:
|
|
92
|
-
onSetOption:
|
|
93
|
-
} =
|
|
94
|
-
getAvailableHours:
|
|
95
|
-
getAvailableMinutes:
|
|
96
|
-
getAvailableSeconds:
|
|
97
|
-
}),
|
|
98
|
-
if (
|
|
99
|
-
return
|
|
100
|
-
const e = S(
|
|
101
|
+
timePickerOptions: T,
|
|
102
|
+
getAvailableTime: y,
|
|
103
|
+
onSetOption: B
|
|
104
|
+
} = we({
|
|
105
|
+
getAvailableHours: ie,
|
|
106
|
+
getAvailableMinutes: ce,
|
|
107
|
+
getAvailableSeconds: ue
|
|
108
|
+
}), pe = (e) => e ? M(e) ? e.map((t) => S(t, i.format).locale(k.value)) : S(e, i.format).locale(k.value) : null, me = (e) => e ? M(e) ? e.map((t) => t.format(i.format)) : e.format(i.format) : null, de = () => {
|
|
109
|
+
if (M(w))
|
|
110
|
+
return w.map((t) => S(t).locale(k.value));
|
|
111
|
+
const e = S(w).locale(k.value);
|
|
101
112
|
return [e, e.add(60, "m")];
|
|
102
113
|
};
|
|
103
|
-
return
|
|
114
|
+
return c("set-picker-option", ["formatToString", me]), c("set-picker-option", ["parseUserInput", pe]), c("set-picker-option", ["isValidValue", ne]), c("set-picker-option", ["handleKeydownInput", le]), c("set-picker-option", ["getDefaultValue", de]), c("set-picker-option", ["getRangeAvailableTime", P]), (e, t) => e.actualVisible ? (ke(), ge("div", {
|
|
104
115
|
key: 0,
|
|
105
|
-
class:
|
|
116
|
+
class: u([s(a).b("range-picker"), s(q).b("panel")])
|
|
106
117
|
}, [
|
|
107
118
|
m("div", {
|
|
108
|
-
class:
|
|
119
|
+
class: u(s(a).be("range-picker", "content"))
|
|
109
120
|
}, [
|
|
110
121
|
m("div", {
|
|
111
|
-
class:
|
|
122
|
+
class: u(s(a).be("range-picker", "cell"))
|
|
112
123
|
}, [
|
|
113
124
|
m("div", {
|
|
114
|
-
class:
|
|
125
|
+
class: u(s(a).be("range-picker", "header"))
|
|
115
126
|
}, "开始时间", 2),
|
|
116
127
|
m("div", {
|
|
117
|
-
class:
|
|
118
|
-
o(s).be("range-picker", "body"),
|
|
119
|
-
o(s).be("panel", "content"),
|
|
120
|
-
o(s).is("arrow", o(D)),
|
|
121
|
-
{ "has-seconds": b.value }
|
|
122
|
-
])
|
|
128
|
+
class: u(L.value)
|
|
123
129
|
}, [
|
|
124
130
|
z(G, {
|
|
125
131
|
ref: "minSpinner",
|
|
126
132
|
role: "start",
|
|
127
133
|
"show-seconds": b.value,
|
|
128
134
|
"am-pm-mode": H.value,
|
|
129
|
-
"arrow-control":
|
|
130
|
-
"spinner-date":
|
|
135
|
+
"arrow-control": s(C),
|
|
136
|
+
"spinner-date": f.value,
|
|
131
137
|
"disabled-hours": V,
|
|
132
138
|
"disabled-minutes": _,
|
|
133
139
|
"disabled-seconds": R,
|
|
134
|
-
onChange:
|
|
135
|
-
onSetOption:
|
|
136
|
-
onSelectRange:
|
|
140
|
+
onChange: ee,
|
|
141
|
+
onSetOption: s(B),
|
|
142
|
+
onSelectRange: ae
|
|
137
143
|
}, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "onSetOption"])
|
|
138
144
|
], 2)
|
|
139
145
|
], 2),
|
|
140
146
|
m("div", {
|
|
141
|
-
class:
|
|
147
|
+
class: u(s(a).be("range-picker", "cell"))
|
|
142
148
|
}, [
|
|
143
149
|
m("div", {
|
|
144
|
-
class:
|
|
150
|
+
class: u(s(a).be("range-picker", "header"))
|
|
145
151
|
}, "结束时间", 2),
|
|
146
152
|
m("div", {
|
|
147
|
-
class:
|
|
148
|
-
o(s).be("range-picker", "body"),
|
|
149
|
-
o(s).be("panel", "content"),
|
|
150
|
-
o(s).is("arrow", o(D)),
|
|
151
|
-
{ "has-seconds": b.value }
|
|
152
|
-
])
|
|
153
|
+
class: u(Q.value)
|
|
153
154
|
}, [
|
|
154
155
|
z(G, {
|
|
155
156
|
ref: "maxSpinner",
|
|
156
157
|
role: "end",
|
|
157
158
|
"show-seconds": b.value,
|
|
158
159
|
"am-pm-mode": H.value,
|
|
159
|
-
"arrow-control":
|
|
160
|
-
"spinner-date":
|
|
160
|
+
"arrow-control": s(C),
|
|
161
|
+
"spinner-date": v.value,
|
|
161
162
|
"disabled-hours": V,
|
|
162
163
|
"disabled-minutes": _,
|
|
163
164
|
"disabled-seconds": R,
|
|
164
|
-
onChange:
|
|
165
|
-
onSetOption:
|
|
166
|
-
onSelectRange:
|
|
165
|
+
onChange: te,
|
|
166
|
+
onSetOption: s(B),
|
|
167
|
+
onSelectRange: se
|
|
167
168
|
}, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "onSetOption"])
|
|
168
169
|
], 2)
|
|
169
170
|
], 2)
|
|
170
171
|
], 2),
|
|
171
172
|
m("div", {
|
|
172
|
-
class:
|
|
173
|
+
class: u(s(a).be("panel", "footer"))
|
|
173
174
|
}, [
|
|
174
175
|
m("button", {
|
|
175
176
|
type: "button",
|
|
176
|
-
class:
|
|
177
|
-
onClick: t[0] || (t[0] = (n) =>
|
|
177
|
+
class: u([s(a).be("panel", "btn"), "cancel"]),
|
|
178
|
+
onClick: t[0] || (t[0] = (n) => X())
|
|
178
179
|
}, " 取消 ", 2),
|
|
179
180
|
m("button", {
|
|
180
181
|
type: "button",
|
|
181
|
-
class:
|
|
182
|
-
disabled:
|
|
183
|
-
onClick: t[1] || (t[1] = (n) =>
|
|
184
|
-
}, " 确认 ", 10,
|
|
182
|
+
class: u([s(a).be("panel", "btn"), "confirm"]),
|
|
183
|
+
disabled: oe.value,
|
|
184
|
+
onClick: t[1] || (t[1] = (n) => Z())
|
|
185
|
+
}, " 确认 ", 10, Re)
|
|
185
186
|
], 2)
|
|
186
|
-
], 2)) :
|
|
187
|
+
], 2)) : he("", !0);
|
|
187
188
|
}
|
|
188
189
|
});
|
|
189
190
|
export {
|
|
190
|
-
|
|
191
|
+
Ue as default
|
|
191
192
|
};
|
|
@@ -2,10 +2,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2
2
|
/**
|
|
3
3
|
* @description whether to pick a time range
|
|
4
4
|
*/
|
|
5
|
-
isRange:
|
|
6
|
-
type: BooleanConstructor;
|
|
7
|
-
default: boolean;
|
|
8
|
-
};
|
|
5
|
+
isRange: BooleanConstructor;
|
|
9
6
|
disabledDate: {
|
|
10
7
|
readonly type: import("vue").PropType<Function>;
|
|
11
8
|
readonly required: false;
|
|
@@ -19,25 +16,31 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
16
|
__epPropKey: true;
|
|
20
17
|
};
|
|
21
18
|
shortcuts: import("vft/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
22
|
-
arrowControl:
|
|
23
|
-
label: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
19
|
+
arrowControl: BooleanConstructor;
|
|
24
20
|
tabindex: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, 0, boolean>;
|
|
25
21
|
validateEvent: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
26
22
|
unlinkPanels: BooleanConstructor;
|
|
23
|
+
placement: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown, "bottom", boolean>;
|
|
24
|
+
fallbackPlacements: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => import("@popperjs/core").Placement[]) | (() => import("@popperjs/core").Placement[]) | (((new (...args: any[]) => import("@popperjs/core").Placement[]) | (() => import("@popperjs/core").Placement[])) | null)[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
25
|
+
emptyValues: ArrayConstructor;
|
|
26
|
+
valueOnClear: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
|
27
|
+
ariaLabel: StringConstructor;
|
|
28
|
+
showNow: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
29
|
+
showWeekNumber: BooleanConstructor;
|
|
27
30
|
disabledHours: {
|
|
28
|
-
readonly type: import("vue").PropType<import("./props
|
|
31
|
+
readonly type: import("vue").PropType<import("./common/props").GetDisabledHours>;
|
|
29
32
|
readonly required: false;
|
|
30
33
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
31
34
|
__epPropKey: true;
|
|
32
35
|
};
|
|
33
36
|
disabledMinutes: {
|
|
34
|
-
readonly type: import("vue").PropType<import("./props
|
|
37
|
+
readonly type: import("vue").PropType<import("./common/props").GetDisabledMinutes>;
|
|
35
38
|
readonly required: false;
|
|
36
39
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
40
|
__epPropKey: true;
|
|
38
41
|
};
|
|
39
42
|
disabledSeconds: {
|
|
40
|
-
readonly type: import("vue").PropType<import("./props
|
|
43
|
+
readonly type: import("vue").PropType<import("./common/props").GetDisabledSeconds>;
|
|
41
44
|
readonly required: false;
|
|
42
45
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
46
|
__epPropKey: true;
|
|
@@ -48,10 +51,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
48
51
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
49
52
|
__epPropKey: true;
|
|
50
53
|
};
|
|
51
|
-
name:
|
|
54
|
+
name: {
|
|
55
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
};
|
|
52
60
|
popperClass: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
53
61
|
format: StringConstructor;
|
|
54
62
|
valueFormat: StringConstructor;
|
|
63
|
+
dateFormat: StringConstructor;
|
|
64
|
+
timeFormat: StringConstructor;
|
|
55
65
|
type: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
56
66
|
clearable: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
57
67
|
clearIcon: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, "icon-circle-close", boolean>;
|
|
@@ -63,11 +73,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
63
73
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
74
|
__epPropKey: true;
|
|
65
75
|
};
|
|
66
|
-
readonly:
|
|
67
|
-
disabled:
|
|
76
|
+
readonly: BooleanConstructor;
|
|
77
|
+
disabled: BooleanConstructor;
|
|
68
78
|
placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
69
79
|
popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | (((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
70
|
-
modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown, "", boolean>;
|
|
80
|
+
modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown, "", boolean>;
|
|
71
81
|
rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
72
82
|
startPlaceholder: StringConstructor;
|
|
73
83
|
endPlaceholder: StringConstructor;
|
|
@@ -87,10 +97,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
87
97
|
/**
|
|
88
98
|
* @description whether to pick a time range
|
|
89
99
|
*/
|
|
90
|
-
isRange:
|
|
91
|
-
type: BooleanConstructor;
|
|
92
|
-
default: boolean;
|
|
93
|
-
};
|
|
100
|
+
isRange: BooleanConstructor;
|
|
94
101
|
disabledDate: {
|
|
95
102
|
readonly type: import("vue").PropType<Function>;
|
|
96
103
|
readonly required: false;
|
|
@@ -104,25 +111,31 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
104
111
|
__epPropKey: true;
|
|
105
112
|
};
|
|
106
113
|
shortcuts: import("vft/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
107
|
-
arrowControl:
|
|
108
|
-
label: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
114
|
+
arrowControl: BooleanConstructor;
|
|
109
115
|
tabindex: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, 0, boolean>;
|
|
110
116
|
validateEvent: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
111
117
|
unlinkPanels: BooleanConstructor;
|
|
118
|
+
placement: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown, "bottom", boolean>;
|
|
119
|
+
fallbackPlacements: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => import("@popperjs/core").Placement[]) | (() => import("@popperjs/core").Placement[]) | (((new (...args: any[]) => import("@popperjs/core").Placement[]) | (() => import("@popperjs/core").Placement[])) | null)[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
120
|
+
emptyValues: ArrayConstructor;
|
|
121
|
+
valueOnClear: import("vft/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
|
122
|
+
ariaLabel: StringConstructor;
|
|
123
|
+
showNow: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
124
|
+
showWeekNumber: BooleanConstructor;
|
|
112
125
|
disabledHours: {
|
|
113
|
-
readonly type: import("vue").PropType<import("./props
|
|
126
|
+
readonly type: import("vue").PropType<import("./common/props").GetDisabledHours>;
|
|
114
127
|
readonly required: false;
|
|
115
128
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
129
|
__epPropKey: true;
|
|
117
130
|
};
|
|
118
131
|
disabledMinutes: {
|
|
119
|
-
readonly type: import("vue").PropType<import("./props
|
|
132
|
+
readonly type: import("vue").PropType<import("./common/props").GetDisabledMinutes>;
|
|
120
133
|
readonly required: false;
|
|
121
134
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
122
135
|
__epPropKey: true;
|
|
123
136
|
};
|
|
124
137
|
disabledSeconds: {
|
|
125
|
-
readonly type: import("vue").PropType<import("./props
|
|
138
|
+
readonly type: import("vue").PropType<import("./common/props").GetDisabledSeconds>;
|
|
126
139
|
readonly required: false;
|
|
127
140
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
128
141
|
__epPropKey: true;
|
|
@@ -133,10 +146,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
133
146
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
147
|
__epPropKey: true;
|
|
135
148
|
};
|
|
136
|
-
name:
|
|
149
|
+
name: {
|
|
150
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
151
|
+
readonly required: false;
|
|
152
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
|
+
__epPropKey: true;
|
|
154
|
+
};
|
|
137
155
|
popperClass: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
138
156
|
format: StringConstructor;
|
|
139
157
|
valueFormat: StringConstructor;
|
|
158
|
+
dateFormat: StringConstructor;
|
|
159
|
+
timeFormat: StringConstructor;
|
|
140
160
|
type: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
141
161
|
clearable: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
142
162
|
clearIcon: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, "icon-circle-close", boolean>;
|
|
@@ -148,11 +168,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
148
168
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
149
169
|
__epPropKey: true;
|
|
150
170
|
};
|
|
151
|
-
readonly:
|
|
152
|
-
disabled:
|
|
171
|
+
readonly: BooleanConstructor;
|
|
172
|
+
disabled: BooleanConstructor;
|
|
153
173
|
placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
154
174
|
popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | (((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
155
|
-
modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown, "", boolean>;
|
|
175
|
+
modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown, "", boolean>;
|
|
156
176
|
rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
157
177
|
startPlaceholder: StringConstructor;
|
|
158
178
|
endPlaceholder: StringConstructor;
|
|
@@ -171,25 +191,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
171
191
|
}>> & Readonly<{
|
|
172
192
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
173
193
|
}>, {
|
|
174
|
-
label: string;
|
|
175
|
-
name: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("./common/props").SingleOrRange<string>)) | null)[], unknown, unknown>;
|
|
176
194
|
type: string;
|
|
177
|
-
disabled:
|
|
178
|
-
modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown>;
|
|
179
|
-
|
|
180
|
-
placeholder: string;
|
|
181
|
-
clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
182
|
-
prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
183
|
-
clearIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
195
|
+
disabled: boolean;
|
|
196
|
+
modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType) | (((new (...args: any[]) => string | number | string[] | Date | [import("./common/props").DateModelType, import("./common/props").DateModelType]) | (() => import("./common/props").ModelValueType)) | null)[], unknown, unknown>;
|
|
197
|
+
placement: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@popperjs/core").Placement)) | null)[], import("@popperjs/core").Placement, unknown>;
|
|
184
198
|
tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
199
|
+
readonly: boolean;
|
|
200
|
+
placeholder: string;
|
|
185
201
|
validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
202
|
+
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
186
203
|
popperOptions: Partial<import("@popperjs/core").Options>;
|
|
187
204
|
popperClass: string;
|
|
205
|
+
clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
206
|
+
prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
207
|
+
clearIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
208
|
+
valueOnClear: import("vft/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown>;
|
|
188
209
|
editable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
189
210
|
rangeSeparator: string;
|
|
190
|
-
isRange: boolean;
|
|
191
211
|
shortcuts: unknown[];
|
|
192
|
-
|
|
212
|
+
showNow: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
213
|
+
arrowControl: boolean;
|
|
193
214
|
unlinkPanels: boolean;
|
|
215
|
+
showWeekNumber: boolean;
|
|
216
|
+
isRange: boolean;
|
|
194
217
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
195
218
|
export default _default;
|
|
@@ -1,66 +1,64 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, ref as p, provide as u, createVNode as t, mergeProps as c } from "vue";
|
|
2
2
|
import d from "dayjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import P from "dayjs/plugin/customParseFormat.js";
|
|
4
|
+
import { UPDATE_MODEL_EVENT as a } from "../../constants/event.js";
|
|
5
|
+
import { PICKER_POPPER_OPTIONS_INJECTION_KEY as _, DEFAULT_FORMATS_TIME as E } from "./constants.js";
|
|
6
|
+
import O from "./common/picker.vue2.js";
|
|
7
|
+
import T from "./time-picker-com/panel-time-pick.vue2.js";
|
|
8
8
|
import v from "./time-picker-com/panel-time-range.vue2.js";
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
import { timePickerDefaultProps as C } from "./common/props.js";
|
|
10
|
+
d.extend(P);
|
|
11
|
+
const y = /* @__PURE__ */ s({
|
|
11
12
|
name: "VftTimePicker",
|
|
12
13
|
install: null,
|
|
13
14
|
props: {
|
|
14
|
-
...
|
|
15
|
+
...C,
|
|
15
16
|
/**
|
|
16
17
|
* @description whether to pick a time range
|
|
17
18
|
*/
|
|
18
|
-
isRange:
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !1
|
|
21
|
-
}
|
|
19
|
+
isRange: Boolean
|
|
22
20
|
},
|
|
23
|
-
emits: [
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
return
|
|
21
|
+
emits: [a],
|
|
22
|
+
setup(o, m) {
|
|
23
|
+
const e = p(), [n, i] = o.isRange ? ["timerange", v] : ["time", T], l = (r) => m.emit(a, r);
|
|
24
|
+
return u(_, o.popperOptions), m.expose({
|
|
27
25
|
/**
|
|
28
26
|
* @description focus the Input component
|
|
29
27
|
*/
|
|
30
|
-
focus: (
|
|
31
|
-
|
|
28
|
+
focus: () => {
|
|
29
|
+
e.value?.focus();
|
|
32
30
|
},
|
|
33
31
|
/**
|
|
34
32
|
* @description blur the Input component
|
|
35
33
|
*/
|
|
36
|
-
blur: (
|
|
37
|
-
|
|
34
|
+
blur: () => {
|
|
35
|
+
e.value?.blur();
|
|
38
36
|
},
|
|
39
37
|
/**
|
|
40
38
|
* @description open the TimePicker popper
|
|
41
39
|
*/
|
|
42
40
|
handleOpen: () => {
|
|
43
|
-
|
|
41
|
+
e.value?.handleOpen();
|
|
44
42
|
},
|
|
45
43
|
/**
|
|
46
44
|
* @description close the TimePicker popper
|
|
47
45
|
*/
|
|
48
46
|
handleClose: () => {
|
|
49
|
-
|
|
47
|
+
e.value?.handleClose();
|
|
50
48
|
}
|
|
51
49
|
}), () => {
|
|
52
|
-
const
|
|
53
|
-
return
|
|
54
|
-
ref:
|
|
55
|
-
type:
|
|
56
|
-
format:
|
|
50
|
+
const r = o.format ?? E;
|
|
51
|
+
return t(O, c(o, {
|
|
52
|
+
ref: e,
|
|
53
|
+
type: n,
|
|
54
|
+
format: r,
|
|
57
55
|
"onUpdate:modelValue": l
|
|
58
56
|
}), {
|
|
59
|
-
default: (
|
|
57
|
+
default: (f) => t(i, f, null)
|
|
60
58
|
});
|
|
61
59
|
};
|
|
62
60
|
}
|
|
63
61
|
});
|
|
64
62
|
export {
|
|
65
|
-
|
|
63
|
+
y as default
|
|
66
64
|
};
|