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
|
@@ -27,10 +27,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
27
27
|
tabindex: {
|
|
28
28
|
type: import("vue").PropType<string | number>;
|
|
29
29
|
};
|
|
30
|
-
validateEvent: {
|
|
31
|
-
type: import("vue").PropType<boolean>;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
30
|
checked: {
|
|
35
31
|
type: import("vue").PropType<boolean>;
|
|
36
32
|
};
|
|
@@ -46,6 +42,10 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
46
42
|
controls: {
|
|
47
43
|
type: import("vue").PropType<string>;
|
|
48
44
|
};
|
|
45
|
+
validateEvent: {
|
|
46
|
+
type: import("vue").PropType<boolean>;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
49
|
}>> & Readonly<{
|
|
50
50
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -89,10 +89,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
89
89
|
tabindex: {
|
|
90
90
|
type: import("vue").PropType<string | number>;
|
|
91
91
|
};
|
|
92
|
-
validateEvent: {
|
|
93
|
-
type: import("vue").PropType<boolean>;
|
|
94
|
-
default: boolean;
|
|
95
|
-
};
|
|
96
92
|
checked: {
|
|
97
93
|
type: import("vue").PropType<boolean>;
|
|
98
94
|
};
|
|
@@ -108,6 +104,10 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
108
104
|
controls: {
|
|
109
105
|
type: import("vue").PropType<string>;
|
|
110
106
|
};
|
|
107
|
+
validateEvent: {
|
|
108
|
+
type: import("vue").PropType<boolean>;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
111
|
}>> & Readonly<{
|
|
112
112
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
113
113
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -145,10 +145,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
145
145
|
tabindex: {
|
|
146
146
|
type: import("vue").PropType<string | number>;
|
|
147
147
|
};
|
|
148
|
-
validateEvent: {
|
|
149
|
-
type: import("vue").PropType<boolean>;
|
|
150
|
-
default: boolean;
|
|
151
|
-
};
|
|
152
148
|
checked: {
|
|
153
149
|
type: import("vue").PropType<boolean>;
|
|
154
150
|
};
|
|
@@ -164,6 +160,10 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
164
160
|
controls: {
|
|
165
161
|
type: import("vue").PropType<string>;
|
|
166
162
|
};
|
|
163
|
+
validateEvent: {
|
|
164
|
+
type: import("vue").PropType<boolean>;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
167
167
|
}>> & Readonly<{
|
|
168
168
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
169
169
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -374,10 +374,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
374
374
|
max: {
|
|
375
375
|
type: import("vue").PropType<number>;
|
|
376
376
|
};
|
|
377
|
-
tag: {
|
|
378
|
-
type: import("vue").PropType<string>;
|
|
379
|
-
default: string;
|
|
380
|
-
};
|
|
381
377
|
validateEvent: {
|
|
382
378
|
type: import("vue").PropType<boolean>;
|
|
383
379
|
default: boolean;
|
|
@@ -385,6 +381,10 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
385
381
|
textColor: {
|
|
386
382
|
type: import("vue").PropType<string>;
|
|
387
383
|
};
|
|
384
|
+
tag: {
|
|
385
|
+
type: import("vue").PropType<string>;
|
|
386
|
+
default: string;
|
|
387
|
+
};
|
|
388
388
|
useButton: {
|
|
389
389
|
type: import("vue").PropType<boolean>;
|
|
390
390
|
};
|
|
@@ -396,8 +396,8 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
396
396
|
"update:modelValue": (...args: any[]) => void;
|
|
397
397
|
}, import("vue").PublicProps, {
|
|
398
398
|
modelValue: import("./types").CheckboxGroupValueType;
|
|
399
|
-
tag: string;
|
|
400
399
|
validateEvent: boolean;
|
|
400
|
+
tag: string;
|
|
401
401
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
402
402
|
P: {};
|
|
403
403
|
B: {};
|
|
@@ -431,10 +431,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
431
431
|
max: {
|
|
432
432
|
type: import("vue").PropType<number>;
|
|
433
433
|
};
|
|
434
|
-
tag: {
|
|
435
|
-
type: import("vue").PropType<string>;
|
|
436
|
-
default: string;
|
|
437
|
-
};
|
|
438
434
|
validateEvent: {
|
|
439
435
|
type: import("vue").PropType<boolean>;
|
|
440
436
|
default: boolean;
|
|
@@ -442,6 +438,10 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
442
438
|
textColor: {
|
|
443
439
|
type: import("vue").PropType<string>;
|
|
444
440
|
};
|
|
441
|
+
tag: {
|
|
442
|
+
type: import("vue").PropType<string>;
|
|
443
|
+
default: string;
|
|
444
|
+
};
|
|
445
445
|
useButton: {
|
|
446
446
|
type: import("vue").PropType<boolean>;
|
|
447
447
|
};
|
|
@@ -450,8 +450,8 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
450
450
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
451
451
|
}>, {}, {}, {}, {}, {
|
|
452
452
|
modelValue: import("./types").CheckboxGroupValueType;
|
|
453
|
-
tag: string;
|
|
454
453
|
validateEvent: boolean;
|
|
454
|
+
tag: string;
|
|
455
455
|
}>;
|
|
456
456
|
__isFragment?: never;
|
|
457
457
|
__isTeleport?: never;
|
|
@@ -482,10 +482,6 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
482
482
|
max: {
|
|
483
483
|
type: import("vue").PropType<number>;
|
|
484
484
|
};
|
|
485
|
-
tag: {
|
|
486
|
-
type: import("vue").PropType<string>;
|
|
487
|
-
default: string;
|
|
488
|
-
};
|
|
489
485
|
validateEvent: {
|
|
490
486
|
type: import("vue").PropType<boolean>;
|
|
491
487
|
default: boolean;
|
|
@@ -493,6 +489,10 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
493
489
|
textColor: {
|
|
494
490
|
type: import("vue").PropType<string>;
|
|
495
491
|
};
|
|
492
|
+
tag: {
|
|
493
|
+
type: import("vue").PropType<string>;
|
|
494
|
+
default: string;
|
|
495
|
+
};
|
|
496
496
|
useButton: {
|
|
497
497
|
type: import("vue").PropType<boolean>;
|
|
498
498
|
};
|
|
@@ -504,8 +504,8 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
|
|
|
504
504
|
"update:modelValue": (...args: any[]) => void;
|
|
505
505
|
}, string, {
|
|
506
506
|
modelValue: import("./types").CheckboxGroupValueType;
|
|
507
|
-
tag: string;
|
|
508
507
|
validateEvent: boolean;
|
|
508
|
+
tag: string;
|
|
509
509
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
510
510
|
$slots: {
|
|
511
511
|
default?(_: {}): any;
|
|
@@ -710,10 +710,6 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
710
710
|
max: {
|
|
711
711
|
type: import("vue").PropType<number>;
|
|
712
712
|
};
|
|
713
|
-
tag: {
|
|
714
|
-
type: import("vue").PropType<string>;
|
|
715
|
-
default: string;
|
|
716
|
-
};
|
|
717
713
|
validateEvent: {
|
|
718
714
|
type: import("vue").PropType<boolean>;
|
|
719
715
|
default: boolean;
|
|
@@ -721,6 +717,10 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
721
717
|
textColor: {
|
|
722
718
|
type: import("vue").PropType<string>;
|
|
723
719
|
};
|
|
720
|
+
tag: {
|
|
721
|
+
type: import("vue").PropType<string>;
|
|
722
|
+
default: string;
|
|
723
|
+
};
|
|
724
724
|
useButton: {
|
|
725
725
|
type: import("vue").PropType<boolean>;
|
|
726
726
|
};
|
|
@@ -732,8 +732,8 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
732
732
|
"update:modelValue": (...args: any[]) => void;
|
|
733
733
|
}, import("vue").PublicProps, {
|
|
734
734
|
modelValue: import("./types").CheckboxGroupValueType;
|
|
735
|
-
tag: string;
|
|
736
735
|
validateEvent: boolean;
|
|
736
|
+
tag: string;
|
|
737
737
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
738
738
|
P: {};
|
|
739
739
|
B: {};
|
|
@@ -767,10 +767,6 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
767
767
|
max: {
|
|
768
768
|
type: import("vue").PropType<number>;
|
|
769
769
|
};
|
|
770
|
-
tag: {
|
|
771
|
-
type: import("vue").PropType<string>;
|
|
772
|
-
default: string;
|
|
773
|
-
};
|
|
774
770
|
validateEvent: {
|
|
775
771
|
type: import("vue").PropType<boolean>;
|
|
776
772
|
default: boolean;
|
|
@@ -778,6 +774,10 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
778
774
|
textColor: {
|
|
779
775
|
type: import("vue").PropType<string>;
|
|
780
776
|
};
|
|
777
|
+
tag: {
|
|
778
|
+
type: import("vue").PropType<string>;
|
|
779
|
+
default: string;
|
|
780
|
+
};
|
|
781
781
|
useButton: {
|
|
782
782
|
type: import("vue").PropType<boolean>;
|
|
783
783
|
};
|
|
@@ -786,8 +786,8 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
786
786
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
787
787
|
}>, {}, {}, {}, {}, {
|
|
788
788
|
modelValue: import("./types").CheckboxGroupValueType;
|
|
789
|
-
tag: string;
|
|
790
789
|
validateEvent: boolean;
|
|
790
|
+
tag: string;
|
|
791
791
|
}>;
|
|
792
792
|
__isFragment?: never;
|
|
793
793
|
__isTeleport?: never;
|
|
@@ -818,10 +818,6 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
818
818
|
max: {
|
|
819
819
|
type: import("vue").PropType<number>;
|
|
820
820
|
};
|
|
821
|
-
tag: {
|
|
822
|
-
type: import("vue").PropType<string>;
|
|
823
|
-
default: string;
|
|
824
|
-
};
|
|
825
821
|
validateEvent: {
|
|
826
822
|
type: import("vue").PropType<boolean>;
|
|
827
823
|
default: boolean;
|
|
@@ -829,6 +825,10 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
829
825
|
textColor: {
|
|
830
826
|
type: import("vue").PropType<string>;
|
|
831
827
|
};
|
|
828
|
+
tag: {
|
|
829
|
+
type: import("vue").PropType<string>;
|
|
830
|
+
default: string;
|
|
831
|
+
};
|
|
832
832
|
useButton: {
|
|
833
833
|
type: import("vue").PropType<boolean>;
|
|
834
834
|
};
|
|
@@ -840,8 +840,8 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
|
|
|
840
840
|
"update:modelValue": (...args: any[]) => void;
|
|
841
841
|
}, string, {
|
|
842
842
|
modelValue: import("./types").CheckboxGroupValueType;
|
|
843
|
-
tag: string;
|
|
844
843
|
validateEvent: boolean;
|
|
844
|
+
tag: string;
|
|
845
845
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
846
846
|
$slots: {
|
|
847
847
|
default?(_: {}): any;
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
15
15
|
handleClick: (event: MouseEvent | TouchEvent) => void;
|
|
16
16
|
update: () => void;
|
|
17
17
|
ns: {
|
|
18
|
-
namespace: import("vue").
|
|
18
|
+
namespace: import("vue").ComputedRef<string>;
|
|
19
19
|
b: (blockSuffix?: string) => string;
|
|
20
20
|
e: (element?: string) => string;
|
|
21
21
|
m: (modifier?: string) => string;
|
|
@@ -27,9 +27,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
27
|
(name: string, state: boolean | undefined): string;
|
|
28
28
|
(name: string): string;
|
|
29
29
|
};
|
|
30
|
-
cssVar: (object: Record<string, string
|
|
30
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
31
31
|
cssVarName: (name: string) => string;
|
|
32
|
-
cssVarBlock: (object: Record<string, string
|
|
32
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
33
33
|
cssVarBlockName: (name: string) => string;
|
|
34
34
|
};
|
|
35
35
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13
13
|
rgbaColors: Ref<Color[], Color[]>;
|
|
14
14
|
handleSelect: (index: number) => void;
|
|
15
15
|
ns: {
|
|
16
|
-
namespace:
|
|
16
|
+
namespace: import("vue").ComputedRef<string>;
|
|
17
17
|
b: (blockSuffix?: string) => string;
|
|
18
18
|
e: (element?: string) => string;
|
|
19
19
|
m: (modifier?: string) => string;
|
|
@@ -25,9 +25,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
(name: string, state: boolean | undefined): string;
|
|
26
26
|
(name: string): string;
|
|
27
27
|
};
|
|
28
|
-
cssVar: (object: Record<string, string
|
|
28
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
29
29
|
cssVarName: (name: string) => string;
|
|
30
|
-
cssVarBlock: (object: Record<string, string
|
|
30
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
31
31
|
cssVarBlockName: (name: string) => string;
|
|
32
32
|
};
|
|
33
33
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
16
|
handleDrag: (event: MouseEvent | TouchEvent) => void;
|
|
17
17
|
update: () => void;
|
|
18
18
|
ns: {
|
|
19
|
-
namespace: import("vue").
|
|
19
|
+
namespace: import("vue").ComputedRef<string>;
|
|
20
20
|
b: (blockSuffix?: string) => string;
|
|
21
21
|
e: (element?: string) => string;
|
|
22
22
|
m: (modifier?: string) => string;
|
|
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
(name: string, state: boolean | undefined): string;
|
|
29
29
|
(name: string): string;
|
|
30
30
|
};
|
|
31
|
-
cssVar: (object: Record<string, string
|
|
31
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
32
32
|
cssVarName: (name: string) => string;
|
|
33
|
-
cssVarBlock: (object: Record<string, string
|
|
33
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
34
34
|
cssVarBlockName: (name: string) => string;
|
|
35
35
|
};
|
|
36
36
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -5,7 +5,7 @@ export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D
|
|
|
5
5
|
export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
|
|
6
6
|
export declare function useGlobalComponentSettings(block: string): {
|
|
7
7
|
ns: {
|
|
8
|
-
namespace:
|
|
8
|
+
namespace: import("vue").ComputedRef<string>;
|
|
9
9
|
b: (blockSuffix?: string) => string;
|
|
10
10
|
e: (element?: string) => string;
|
|
11
11
|
m: (modifier?: string) => string;
|
|
@@ -17,9 +17,9 @@ export declare function useGlobalComponentSettings(block: string): {
|
|
|
17
17
|
(name: string, state: boolean | undefined): string;
|
|
18
18
|
(name: string): string;
|
|
19
19
|
};
|
|
20
|
-
cssVar: (object: Record<string, string
|
|
20
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
21
21
|
cssVarName: (name: string) => string;
|
|
22
|
-
cssVarBlock: (object: Record<string, string
|
|
22
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
23
23
|
cssVarBlockName: (name: string) => string;
|
|
24
24
|
};
|
|
25
25
|
zIndex: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@vft/use"),x=require("../menu/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash-es");const h=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const p={class:"vft-sub-menu"},w=e.defineComponent({name:"vft-context-menu"}),k=e.defineComponent({...w,props:{axis:{},styles:{},width:{},items:{}},setup(o){const d=h.useNamespace("context-menu");let c=e.ref();const a=e.computed(()=>{const{x:n,y:r}=o.axis||{x:0,y:0},t=(o.items||[]).length*40,s=o.width||0,u=document.body,v=u.clientWidth<n+s?n-s:n,m=u.clientHeight<r+t?r-t:r;return{zIndex:3e3,...o.styles,position:"fixed",width:`${o.width}px`,left:`${v+1}px`,top:`${m+1}px`}});let i=e.ref(!1);l.useTimeoutFn(()=>{i.value=!0},0),l.useClickAway(c,()=>{i.value=!1},{listenerOptions:{capture:!0}}),l.useEventListener(window,"scroll",()=>{i.value=!1},{capture:!0}),l.useEventListener(window,"drag",()=>{i.value=!1},{capture:!0});function f(n){n?.disabled||(n.handler?.(),i.value=!1)}return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"vft-zoom-in-top"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"contextMenuRef",ref:c,style:e.normalizeStyle(a.value),onClick:r[0]||(r[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass([e.unref(d).b(),"vft-menu"])},[e.createElementVNode("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(t,s)=>(e.openBlock(),e.createBlock(e.unref(x.VftMenuItem),{onClick:u=>f(t),index:s+t.text,title:t.text,divider:t.divider,disabled:t.disabled,icon:t.iconCfg,"is-alone-use":"",key:s},null,8,["onClick","index","title","divider","disabled","icon"]))),128))])],6),[[e.vShow,e.unref(i)]])]),_:1}))}});exports.default=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./createContextMenu.cjs");require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./createContextMenu.cjs");require("../icon/index.cjs");require("vue");const t=require("./useContextMenu.cjs");exports.createContextMenu=e.createContextMenu;exports.destroyContextMenu=e.destroyContextMenu;exports.useContextMenu=t.useContextMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("../
|
|
1
|
+
"use strict";require("../icon/index.cjs");require("vue");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),W=require("dayjs"),A=require("lodash-es");require("@vueuse/core");require("@vft/utils");const C=require("../../../utils/helper.cjs");require("../../../utils/ns-cover.cjs");const X=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const Y=require("../utils.cjs"),O=(a="")=>["normal","today"].includes(a),Z=(a,f)=>{const h=n.ref("zh-cn"),y=n.ref(),k=n.ref(),D=n.ref(),b=n.ref(),w=n.ref([[],[],[],[],[],[]]);let o=!1;const c=a.date.$locale().weekStart||7,x=a.date.locale("zh-cn").localeData().weekdaysShort().map(e=>e.toLowerCase()),M=n.computed(()=>c>3?7-c:-c),N=n.computed(()=>{const e=a.date.startOf("month");return e.subtract(e.day()||7,"day")}),E=n.computed(()=>x.concat(x).slice(c,c+7)),S=n.computed(()=>A.flatten(n.unref(g)).some(e=>e.isCurrent)),P=n.computed(()=>{const e=a.date.startOf("month"),t=e.day()||7,s=e.daysInMonth(),r=e.subtract(1,"month").daysInMonth();return{startOfMonthDay:t,dateCountOfMonth:s,dateCountOfLastMonth:r}}),j=n.computed(()=>a.selectionMode==="dates"?C.castArray(a.parsedValue):[]),I=(e,{count:t,rowIndex:s,columnIndex:r})=>{const{startOfMonthDay:l,dateCountOfMonth:d,dateCountOfLastMonth:i}=n.unref(P),m=n.unref(M);if(s>=0&&s<=1){const u=l+m<0?7+l+m:l+m;if(r+s*7>=u)return e.text=t,!0;e.text=i-(u-r%7)+1+s*7,e.type="prev-month"}else return t<=d?e.text=t:(e.text=t-d,e.type="next-month"),!0;return!1},B=(e,{columnIndex:t,rowIndex:s},r)=>{const{disabledDate:l,cellClassName:d}=a,i=n.unref(j),m=I(e,{count:r,rowIndex:s,columnIndex:t}),u=e.dayjs.toDate();return e.selected=i.find(Q=>Q.isSame(e.dayjs,"day")),e.isSelected=!!e.selected,e.isCurrent=q(e),e.disabled=l?.(u),e.customClass=d?.(u),m},K=e=>{if(a.selectionMode==="week"){const[t,s]=a.showWeekNumber?[1,7]:[0,6],r=V(e[t+1]);e[t].inRange=r,e[t].start=r,e[s].inRange=r,e[s].end=r}},g=n.computed(()=>{const{minDate:e,maxDate:t,rangeState:s,showWeekNumber:r}=a,l=n.unref(M),d=n.unref(w),i="day";let m=1;if(Y.buildPickerTable({row:6,column:7},d,{startDate:e,columnIndexOffset:r?1:0,nextEndDate:s.endDate||t||s.selecting&&e||null,now:W().locale(n.unref(h)).startOf(i),unit:i,relativeDateGetter:u=>n.unref(N).add(u-l,i),setCellMetadata:(...u)=>{B(...u,m)&&(m+=1)},setRowMetadata:K}),r)for(let u=0;u<6;u++)d[u][1].dayjs&&(d[u][0]={type:"week",text:d[u][1].dayjs.week()});return d});n.watch(()=>a.date,async()=>{n.unref(y)?.contains(document.activeElement)&&(await n.nextTick(),await v())});const v=async()=>n.unref(k)?.focus(),q=e=>a.selectionMode==="date"&&O(e.type)&&L(e,a.parsedValue),L=(e,t)=>t?W(t).locale(n.unref(h)).isSame(a.date.date(Number(e.text)),"day"):!1,T=(e,t)=>{const s=e*7+(t-(a.showWeekNumber?1:0))-n.unref(M);return n.unref(N).add(s,"day")},F=e=>{if(!a.rangeState.selecting)return;let t=e.target;if(t.tagName==="SPAN"&&(t=t.parentNode?.parentNode),t.tagName==="DIV"&&(t=t.parentNode),t.tagName!=="TD")return;const s=t.parentNode.rowIndex-1,r=t.cellIndex;n.unref(g)[s][r].disabled||(s!==n.unref(D)||r!==n.unref(b))&&(D.value=s,b.value=r,f("changerange",{selecting:!0,endDate:T(s,r)}))},_=e=>!n.unref(S)&&e?.text===1&&e.type==="normal"||e.isCurrent,$=e=>{o||n.unref(S)||a.selectionMode!=="date"||R(e,!0)},z=e=>{e.target.closest("td")&&(o=!0)},U=e=>{e.target.closest("td")&&(o=!1)},G=e=>{!a.rangeState.selecting||!a.minDate?(f("pick",{minDate:e,maxDate:null}),f("select",!0)):(e>=a.minDate?f("pick",{minDate:a.minDate,maxDate:e}):f("pick",{minDate:e,maxDate:a.minDate}),f("select",!1))},H=e=>{const t=e.week(),s=`${e.year()}w${t}`;f("pick",{year:e.year(),week:t,value:s,date:e.startOf("week")})},J=(e,t)=>{const s=t?C.castArray(a.parsedValue).filter(r=>r?.valueOf()!==e.valueOf()):C.castArray(a.parsedValue).concat([e]);f("pick",s)},R=(e,t=!1)=>{const s=e.target.closest("td");if(!s)return;const r=s.parentNode.rowIndex-1,l=s.cellIndex,d=n.unref(g)[r][l];if(d.disabled||d.type==="week")return;const i=T(r,l);switch(a.selectionMode){case"range":{G(i);break}case"date":{f("pick",i,t);break}case"week":{H(i);break}case"dates":{J(i,!!d.selected);break}}},V=e=>{if(a.selectionMode!=="week")return!1;let t=a.date.startOf("day");if(e.type==="prev-month"&&(t=t.subtract(1,"month")),e.type==="next-month"&&(t=t.add(1,"month")),t=t.date(Number.parseInt(e.text,10)),a.parsedValue&&!A.isArray(a.parsedValue)){const s=(a.parsedValue.day()-c+7)%7-1;return a.parsedValue.subtract(s,"day").isSame(t,"day")}return!1};return{WEEKS:E,rows:g,tbodyRef:y,currentCellRef:k,focus:v,isCurrent:q,isWeekActive:V,isSelectedCell:_,handlePickDate:R,handleMouseUp:U,handleMouseDown:z,handleMouseMove:F,handleFocus:$}},p=(a,{isCurrent:f,isWeekActive:h})=>{const y=X.useNamespace("date-table"),k=n.computed(()=>[y.b(),{"is-week-mode":a.selectionMode==="week"}]),D=n.computed(()=>"使用方向键与 Enter 键可选择日期"),b=o=>{const c=[];return O(o.type)&&!o.disabled?(c.push("available"),o.type==="today"&&c.push("today")):c.push(o.type),f(o)&&c.push("current"),o.inRange&&(O(o.type)||a.selectionMode==="week")&&(c.push("in-range"),o.start&&c.push("start-date"),o.end&&c.push("end-date")),o.disabled&&c.push("disabled"),o.selected&&c.push("selected"),o.customClass&&c.push(o.customClass),c.join(" ")},w=o=>[y.e("row"),{current:h(o)}];return{tableKls:k,tableLabel:D,weekHeaderClass:y.e("week-header"),getCellClasses:b,getRowKls:w}};exports.useBasicDateTable=Z;exports.useBasicDateTableDOM=p;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import type { SetupContext } from 'vue';
|
|
3
|
+
import type { Dayjs } from 'dayjs';
|
|
4
|
+
import type { DateCell } from '../date-picker.type';
|
|
5
|
+
import type { BasicDateTableEmits, BasicDateTableProps } from '../props/basic-date-table';
|
|
6
|
+
export declare const useBasicDateTable: (props: BasicDateTableProps, emit: SetupContext<BasicDateTableEmits>["emit"]) => {
|
|
7
|
+
WEEKS: import("vue").ComputedRef<string[]>;
|
|
8
|
+
rows: import("vue").ComputedRef<DateCell[][] | {
|
|
9
|
+
column?: number | undefined;
|
|
10
|
+
customClass?: string | undefined;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
end?: boolean | undefined;
|
|
13
|
+
inRange?: boolean | undefined;
|
|
14
|
+
row?: number | undefined;
|
|
15
|
+
selected?: {
|
|
16
|
+
clone: () => Dayjs;
|
|
17
|
+
isValid: () => boolean;
|
|
18
|
+
year: {
|
|
19
|
+
(): number;
|
|
20
|
+
(value: number): Dayjs;
|
|
21
|
+
};
|
|
22
|
+
month: {
|
|
23
|
+
(): number;
|
|
24
|
+
(value: number): Dayjs;
|
|
25
|
+
};
|
|
26
|
+
date: {
|
|
27
|
+
(): number;
|
|
28
|
+
(value: number): Dayjs;
|
|
29
|
+
};
|
|
30
|
+
day: {
|
|
31
|
+
(): number;
|
|
32
|
+
(value: number): Dayjs;
|
|
33
|
+
};
|
|
34
|
+
hour: {
|
|
35
|
+
(): number;
|
|
36
|
+
(value: number): Dayjs;
|
|
37
|
+
};
|
|
38
|
+
minute: {
|
|
39
|
+
(): number;
|
|
40
|
+
(value: number): Dayjs;
|
|
41
|
+
};
|
|
42
|
+
second: {
|
|
43
|
+
(): number;
|
|
44
|
+
(value: number): Dayjs;
|
|
45
|
+
};
|
|
46
|
+
millisecond: {
|
|
47
|
+
(): number;
|
|
48
|
+
(value: number): Dayjs;
|
|
49
|
+
};
|
|
50
|
+
set: (unit: dayjs.UnitType, value: number) => Dayjs;
|
|
51
|
+
get: (unit: dayjs.UnitType) => number;
|
|
52
|
+
add: (value: number, unit?: dayjs.ManipulateType) => Dayjs;
|
|
53
|
+
subtract: (value: number, unit?: dayjs.ManipulateType) => Dayjs;
|
|
54
|
+
startOf: (unit: dayjs.OpUnitType) => Dayjs;
|
|
55
|
+
endOf: (unit: dayjs.OpUnitType) => Dayjs;
|
|
56
|
+
format: (template?: string) => string;
|
|
57
|
+
diff: (date?: dayjs.ConfigType, unit?: dayjs.QUnitType | dayjs.OpUnitType, float?: boolean) => number;
|
|
58
|
+
valueOf: () => number;
|
|
59
|
+
unix: () => number;
|
|
60
|
+
daysInMonth: () => number;
|
|
61
|
+
toDate: () => Date;
|
|
62
|
+
toJSON: () => string;
|
|
63
|
+
toISOString: () => string;
|
|
64
|
+
toString: () => string;
|
|
65
|
+
utcOffset: () => number;
|
|
66
|
+
isBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
67
|
+
isSame: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
68
|
+
isAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
69
|
+
locale: {
|
|
70
|
+
(): string;
|
|
71
|
+
(preset: string | ILocale, object?: Partial<ILocale>): Dayjs;
|
|
72
|
+
};
|
|
73
|
+
localeData: () => dayjs.InstanceLocaleDataReturn;
|
|
74
|
+
week: {
|
|
75
|
+
(): number;
|
|
76
|
+
(value: number): Dayjs;
|
|
77
|
+
};
|
|
78
|
+
weekYear: () => number;
|
|
79
|
+
dayOfYear: {
|
|
80
|
+
(): number;
|
|
81
|
+
(value: number): Dayjs;
|
|
82
|
+
};
|
|
83
|
+
isSameOrAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
84
|
+
isSameOrBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
85
|
+
} | undefined;
|
|
86
|
+
isCurrent?: boolean | undefined;
|
|
87
|
+
isSelected?: boolean | undefined;
|
|
88
|
+
start?: boolean | undefined;
|
|
89
|
+
text?: number | undefined;
|
|
90
|
+
renderText?: string | undefined;
|
|
91
|
+
timestamp?: number | undefined;
|
|
92
|
+
date?: Date | undefined;
|
|
93
|
+
dayjs?: {
|
|
94
|
+
clone: () => Dayjs;
|
|
95
|
+
isValid: () => boolean;
|
|
96
|
+
year: {
|
|
97
|
+
(): number;
|
|
98
|
+
(value: number): Dayjs;
|
|
99
|
+
};
|
|
100
|
+
month: {
|
|
101
|
+
(): number;
|
|
102
|
+
(value: number): Dayjs;
|
|
103
|
+
};
|
|
104
|
+
date: {
|
|
105
|
+
(): number;
|
|
106
|
+
(value: number): Dayjs;
|
|
107
|
+
};
|
|
108
|
+
day: {
|
|
109
|
+
(): number;
|
|
110
|
+
(value: number): Dayjs;
|
|
111
|
+
};
|
|
112
|
+
hour: {
|
|
113
|
+
(): number;
|
|
114
|
+
(value: number): Dayjs;
|
|
115
|
+
};
|
|
116
|
+
minute: {
|
|
117
|
+
(): number;
|
|
118
|
+
(value: number): Dayjs;
|
|
119
|
+
};
|
|
120
|
+
second: {
|
|
121
|
+
(): number;
|
|
122
|
+
(value: number): Dayjs;
|
|
123
|
+
};
|
|
124
|
+
millisecond: {
|
|
125
|
+
(): number;
|
|
126
|
+
(value: number): Dayjs;
|
|
127
|
+
};
|
|
128
|
+
set: (unit: dayjs.UnitType, value: number) => Dayjs;
|
|
129
|
+
get: (unit: dayjs.UnitType) => number;
|
|
130
|
+
add: (value: number, unit?: dayjs.ManipulateType) => Dayjs;
|
|
131
|
+
subtract: (value: number, unit?: dayjs.ManipulateType) => Dayjs;
|
|
132
|
+
startOf: (unit: dayjs.OpUnitType) => Dayjs;
|
|
133
|
+
endOf: (unit: dayjs.OpUnitType) => Dayjs;
|
|
134
|
+
format: (template?: string) => string;
|
|
135
|
+
diff: (date?: dayjs.ConfigType, unit?: dayjs.QUnitType | dayjs.OpUnitType, float?: boolean) => number;
|
|
136
|
+
valueOf: () => number;
|
|
137
|
+
unix: () => number;
|
|
138
|
+
daysInMonth: () => number;
|
|
139
|
+
toDate: () => Date;
|
|
140
|
+
toJSON: () => string;
|
|
141
|
+
toISOString: () => string;
|
|
142
|
+
toString: () => string;
|
|
143
|
+
utcOffset: () => number;
|
|
144
|
+
isBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
145
|
+
isSame: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
146
|
+
isAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
147
|
+
locale: {
|
|
148
|
+
(): string;
|
|
149
|
+
(preset: string | ILocale, object?: Partial<ILocale>): Dayjs;
|
|
150
|
+
};
|
|
151
|
+
localeData: () => dayjs.InstanceLocaleDataReturn;
|
|
152
|
+
week: {
|
|
153
|
+
(): number;
|
|
154
|
+
(value: number): Dayjs;
|
|
155
|
+
};
|
|
156
|
+
weekYear: () => number;
|
|
157
|
+
dayOfYear: {
|
|
158
|
+
(): number;
|
|
159
|
+
(value: number): Dayjs;
|
|
160
|
+
};
|
|
161
|
+
isSameOrAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
162
|
+
isSameOrBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
|
|
163
|
+
} | undefined;
|
|
164
|
+
type?: ("week" | "normal" | "today" | "next-month" | "prev-month") | undefined;
|
|
165
|
+
}[][]>;
|
|
166
|
+
tbodyRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
167
|
+
currentCellRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
168
|
+
focus: () => Promise<void | undefined>;
|
|
169
|
+
isCurrent: (cell: DateCell) => boolean;
|
|
170
|
+
isWeekActive: (cell: DateCell) => any;
|
|
171
|
+
isSelectedCell: (cell: DateCell) => boolean | undefined;
|
|
172
|
+
handlePickDate: (event: FocusEvent | MouseEvent, isKeyboardMovement?: boolean) => void;
|
|
173
|
+
handleMouseUp: (event: MouseEvent) => void;
|
|
174
|
+
handleMouseDown: (event: MouseEvent) => void;
|
|
175
|
+
handleMouseMove: (event: MouseEvent) => void;
|
|
176
|
+
handleFocus: (event: FocusEvent) => void;
|
|
177
|
+
};
|
|
178
|
+
export declare const useBasicDateTableDOM: (props: BasicDateTableProps, { isCurrent, isWeekActive, }: Pick<ReturnType<typeof useBasicDateTable>, "isCurrent" | "isWeekActive">) => {
|
|
179
|
+
tableKls: import("vue").ComputedRef<(string | {
|
|
180
|
+
'is-week-mode': boolean;
|
|
181
|
+
})[]>;
|
|
182
|
+
tableLabel: import("vue").ComputedRef<string>;
|
|
183
|
+
weekHeaderClass: string;
|
|
184
|
+
getCellClasses: (cell: DateCell) => string;
|
|
185
|
+
getRowKls: (cell: DateCell) => (string | {
|
|
186
|
+
current: any;
|
|
187
|
+
})[];
|
|
188
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("../../time-picker/index.cjs");const R=require("../utils.cjs"),O=require("../../time-picker/constants.cjs"),j=(V,Y,u,o)=>{const i=n.ref("date"),f=n.ref(),l=n.ref("date"),h=n.ref(),b=n.inject(O.PICKER_BASE_INJECTION_KEY),{disabledDate:d}=b.props,v=n.ref("zh-cn"),g=n.computed(()=>u.value.year()),p=n.computed(()=>u.value.month()),P=n.computed(()=>o.value.year()),$=n.computed(()=>o.value.month());function y(e,r){const a="年";if(e.value==="year"){const t=Math.floor(r.value/10)*10;return a?`${t} ${a} - ${t+9} ${a}`:`${t} - ${t+9}`}return`${r.value} ${a}`}function w(e){e?.focus()}async function m(e,r){const a=e==="left"?i:l,t=e==="left"?f:h;a.value=r,await n.nextTick(),w(t.value)}async function s(e,r,a){const t=r==="left",c=t?u:o,L=t?o:u,M=t?i:l,q=t?f:h;if(e==="year"){const E=c.value.year(a);c.value=R.getValidDateOfYear(E,v.value,d)}e==="month"&&(c.value=R.getValidDateOfMonth(c.value,c.value.year(),a,v.value,d)),V.unlinkPanels||(L.value=r==="left"?c.value.add(1,"month"):c.value.subtract(1,"month")),M.value=e==="year"?"month":"date",await n.nextTick(),w(q.value),k(e)}function k(e){Y("panel-change",[u.value.toDate(),o.value.toDate()],e)}function C(e,r,a){const t=a?"add":"subtract";return e==="year"?r[t](10,"year"):r[t](1,"year")}return{leftCurrentView:i,rightCurrentView:l,leftCurrentViewRef:f,rightCurrentViewRef:h,leftYear:g,rightYear:P,leftMonth:p,rightMonth:$,leftYearLabel:n.computed(()=>y(i,g)),rightYearLabel:n.computed(()=>y(l,P)),showLeftPicker:e=>m("left",e),showRightPicker:e=>m("right",e),handleLeftYearPick:e=>s("year","left",e),handleRightYearPick:e=>s("year","right",e),handleLeftMonthPick:e=>s("month","left",e),handleRightMonthPick:e=>s("month","right",e),handlePanelChange:k,adjustDateByView:C}};exports.usePanelDateRange=j;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PanelDateRangeProps } from '../props/panel-date-range';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
4
|
+
type CurrentView = 'date' | 'year' | 'month';
|
|
5
|
+
type CurrentViewRef = {
|
|
6
|
+
focus: () => void;
|
|
7
|
+
};
|
|
8
|
+
export type Emits = (event: 'pick' | 'set-picker-option' | 'calendar-change' | 'panel-change', ...args: any[]) => void;
|
|
9
|
+
export declare const usePanelDateRange: (props: PanelDateRangeProps, emit: Emits, leftDate: Ref<Dayjs>, rightDate: Ref<Dayjs>) => {
|
|
10
|
+
leftCurrentView: Ref<CurrentView, CurrentView>;
|
|
11
|
+
rightCurrentView: Ref<CurrentView, CurrentView>;
|
|
12
|
+
leftCurrentViewRef: Ref<CurrentViewRef | undefined, CurrentViewRef | undefined>;
|
|
13
|
+
rightCurrentViewRef: Ref<CurrentViewRef | undefined, CurrentViewRef | undefined>;
|
|
14
|
+
leftYear: ComputedRef<number>;
|
|
15
|
+
rightYear: ComputedRef<number>;
|
|
16
|
+
leftMonth: ComputedRef<number>;
|
|
17
|
+
rightMonth: ComputedRef<number>;
|
|
18
|
+
leftYearLabel: ComputedRef<string>;
|
|
19
|
+
rightYearLabel: ComputedRef<string>;
|
|
20
|
+
showLeftPicker: (view: "month" | "year") => Promise<void>;
|
|
21
|
+
showRightPicker: (view: "month" | "year") => Promise<void>;
|
|
22
|
+
handleLeftYearPick: (year: number) => Promise<void>;
|
|
23
|
+
handleRightYearPick: (year: number) => Promise<void>;
|
|
24
|
+
handleLeftMonthPick: (month: number) => Promise<void>;
|
|
25
|
+
handleRightMonthPick: (month: number) => Promise<void>;
|
|
26
|
+
handlePanelChange: (mode: "month" | "year") => void;
|
|
27
|
+
adjustDateByView: (currentView: CurrentView, date: Dayjs, forward: boolean) => Dayjs;
|
|
28
|
+
};
|
|
29
|
+
export {};
|