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,55 +1,55 @@
|
|
|
1
|
+
import { defineComponent as C, computed as r, ref as E, reactive as N, unref as f, watch as k, onBeforeUnmount as O, h as x, withModifiers as _ } from "vue";
|
|
1
2
|
import "../../scrollbar/index.js";
|
|
2
3
|
import "@vueuse/core";
|
|
3
4
|
import "@vft/utils";
|
|
4
5
|
import "../../../utils/ns-cover.js";
|
|
5
6
|
import "lodash-es";
|
|
6
|
-
import { cAF as
|
|
7
|
-
import { defineComponent as k, computed as a, ref as p, reactive as O, unref as d, watch as _, onBeforeUnmount as F, h as x, withModifiers as G } from "vue";
|
|
7
|
+
import { cAF as F, rAF as H } from "../../../utils/vue/raf.js";
|
|
8
8
|
import { useNamespace as L } from "../../../hooks/use-namespace/index.js";
|
|
9
9
|
import "../../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../../hooks/use-z-index/index.js";
|
|
12
|
-
import { ScrollbarDirKey as
|
|
12
|
+
import { ScrollbarDirKey as G, HORIZONTAL as R, SCROLLBAR_MIN_SIZE as V } from "../defaults.js";
|
|
13
13
|
import { virtualizedScrollbarProps as Z } from "../props.js";
|
|
14
14
|
import { renderThumbStyle as $ } from "../utils.js";
|
|
15
15
|
import { BAR_MAP as K } from "../../scrollbar/util.js";
|
|
16
|
-
const
|
|
16
|
+
const st = C({
|
|
17
17
|
name: "ElVirtualScrollBar",
|
|
18
18
|
props: Z,
|
|
19
19
|
emits: ["scroll", "start-move", "stop-move"],
|
|
20
20
|
setup(e, { emit: u }) {
|
|
21
|
-
const
|
|
22
|
-
let
|
|
23
|
-
const n =
|
|
21
|
+
const S = r(() => e.startGap + e.endGap), I = L("virtual-scrollbar"), A = L("scrollbar"), h = E(), a = E();
|
|
22
|
+
let M = null, g = null;
|
|
23
|
+
const n = N({
|
|
24
24
|
isDragging: !1,
|
|
25
25
|
traveled: 0
|
|
26
|
-
}), o =
|
|
26
|
+
}), o = r(() => K[e.layout]), s = r(() => e.clientSize - f(S)), B = r(() => ({
|
|
27
27
|
position: "absolute",
|
|
28
|
-
width: `${R === e.layout ?
|
|
29
|
-
height: `${R === e.layout ? e.scrollbarSize :
|
|
30
|
-
[
|
|
28
|
+
width: `${R === e.layout ? s.value : e.scrollbarSize}px`,
|
|
29
|
+
height: `${R === e.layout ? e.scrollbarSize : s.value}px`,
|
|
30
|
+
[G[e.layout]]: "2px",
|
|
31
31
|
right: "2px",
|
|
32
32
|
bottom: "2px",
|
|
33
33
|
borderRadius: "4px"
|
|
34
|
-
})),
|
|
35
|
-
const t = e.ratio
|
|
34
|
+
})), b = r(() => {
|
|
35
|
+
const t = e.ratio;
|
|
36
36
|
if (t >= 100)
|
|
37
37
|
return Number.POSITIVE_INFINITY;
|
|
38
38
|
if (t >= 50)
|
|
39
|
-
return t *
|
|
40
|
-
const
|
|
39
|
+
return t * s.value / 100;
|
|
40
|
+
const l = s.value / 3;
|
|
41
41
|
return Math.floor(
|
|
42
42
|
Math.min(
|
|
43
|
-
Math.max(t *
|
|
44
|
-
|
|
43
|
+
Math.max(t * s.value, V),
|
|
44
|
+
l
|
|
45
45
|
)
|
|
46
46
|
);
|
|
47
|
-
}),
|
|
48
|
-
if (!Number.isFinite(
|
|
47
|
+
}), T = r(() => {
|
|
48
|
+
if (!Number.isFinite(b.value))
|
|
49
49
|
return {
|
|
50
50
|
display: "none"
|
|
51
51
|
};
|
|
52
|
-
const t = `${
|
|
52
|
+
const t = `${b.value}px`;
|
|
53
53
|
return $(
|
|
54
54
|
{
|
|
55
55
|
bar: o.value,
|
|
@@ -58,71 +58,64 @@ const it = k({
|
|
|
58
58
|
},
|
|
59
59
|
e.layout
|
|
60
60
|
);
|
|
61
|
-
}),
|
|
62
|
-
() => Math.
|
|
63
|
-
),
|
|
64
|
-
window.addEventListener("mousemove",
|
|
65
|
-
const t =
|
|
66
|
-
t && (
|
|
67
|
-
},
|
|
68
|
-
window.removeEventListener("mousemove",
|
|
69
|
-
const t =
|
|
70
|
-
t && (t.removeEventListener("touchmove",
|
|
71
|
-
},
|
|
72
|
-
t.stopImmediatePropagation(), !(t.ctrlKey || [1, 2].includes(t.button)) && (n.isDragging = !0, n[o.value.axis] = t.currentTarget[o.value.offset] - (t[o.value.client] - t.currentTarget.getBoundingClientRect()[o.value.direction]), u("start-move"),
|
|
61
|
+
}), i = r(
|
|
62
|
+
() => Math.ceil(e.clientSize - b.value - f(S))
|
|
63
|
+
), z = () => {
|
|
64
|
+
window.addEventListener("mousemove", v), window.addEventListener("mouseup", c);
|
|
65
|
+
const t = f(a);
|
|
66
|
+
t && (g = document.onselectstart, document.onselectstart = () => !1, t.addEventListener("touchmove", v, { passive: !0 }), t.addEventListener("touchend", c));
|
|
67
|
+
}, p = () => {
|
|
68
|
+
window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", c), document.onselectstart = g, g = null;
|
|
69
|
+
const t = f(a);
|
|
70
|
+
t && (t.removeEventListener("touchmove", v), t.removeEventListener("touchend", c));
|
|
71
|
+
}, y = (t) => {
|
|
72
|
+
t.stopImmediatePropagation(), !(t.ctrlKey || [1, 2].includes(t.button)) && (n.isDragging = !0, n[o.value.axis] = t.currentTarget[o.value.offset] - (t[o.value.client] - t.currentTarget.getBoundingClientRect()[o.value.direction]), u("start-move"), z());
|
|
73
73
|
}, c = () => {
|
|
74
|
-
n.isDragging = !1, n[o.value.axis] = 0, u("stop-move"),
|
|
75
|
-
},
|
|
76
|
-
const { isDragging:
|
|
77
|
-
if (!
|
|
78
|
-
const
|
|
79
|
-
if (!
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
n.traveled = Math.max(
|
|
84
|
-
e.startGap,
|
|
85
|
-
Math.min(
|
|
86
|
-
E,
|
|
87
|
-
s.value
|
|
88
|
-
// 2 is the top value
|
|
89
|
-
)
|
|
90
|
-
), u("scroll", E, s.value);
|
|
74
|
+
n.isDragging = !1, n[o.value.axis] = 0, u("stop-move"), p();
|
|
75
|
+
}, v = (t) => {
|
|
76
|
+
const { isDragging: l } = n;
|
|
77
|
+
if (!l || !a.value || !h.value) return;
|
|
78
|
+
const m = n[o.value.axis];
|
|
79
|
+
if (!m) return;
|
|
80
|
+
F(M);
|
|
81
|
+
const d = (h.value.getBoundingClientRect()[o.value.direction] - t[o.value.client]) * -1, P = a.value[o.value.offset] - m, w = d - P;
|
|
82
|
+
M = H(() => {
|
|
83
|
+
n.traveled = Math.max(0, Math.min(w, i.value)), u("scroll", w, i.value);
|
|
91
84
|
});
|
|
92
85
|
}, D = (t) => {
|
|
93
|
-
const
|
|
86
|
+
const l = Math.abs(
|
|
94
87
|
t.target.getBoundingClientRect()[o.value.direction] - t[o.value.client]
|
|
95
|
-
),
|
|
96
|
-
n.traveled = Math.max(0, Math.min(
|
|
88
|
+
), m = a.value[o.value.offset] / 2, d = l - m;
|
|
89
|
+
n.traveled = Math.max(0, Math.min(d, i.value)), u("scroll", d, i.value);
|
|
97
90
|
};
|
|
98
|
-
return
|
|
91
|
+
return k(
|
|
99
92
|
() => e.scrollFrom,
|
|
100
93
|
(t) => {
|
|
101
|
-
n.isDragging || (n.traveled = Math.ceil(t *
|
|
94
|
+
n.isDragging || (n.traveled = Math.ceil(t * i.value));
|
|
102
95
|
}
|
|
103
|
-
),
|
|
104
|
-
|
|
96
|
+
), O(() => {
|
|
97
|
+
p();
|
|
105
98
|
}), () => x(
|
|
106
99
|
"div",
|
|
107
100
|
{
|
|
108
101
|
role: "presentation",
|
|
109
|
-
ref:
|
|
102
|
+
ref: h,
|
|
110
103
|
class: [
|
|
111
|
-
|
|
104
|
+
I.b(),
|
|
112
105
|
e.class,
|
|
113
106
|
(e.alwaysOn || n.isDragging) && "always-on"
|
|
114
107
|
],
|
|
115
|
-
style:
|
|
116
|
-
onMousedown:
|
|
117
|
-
onTouchstartPrevent:
|
|
108
|
+
style: B.value,
|
|
109
|
+
onMousedown: _(D, ["stop", "prevent"]),
|
|
110
|
+
onTouchstartPrevent: y
|
|
118
111
|
},
|
|
119
112
|
x(
|
|
120
113
|
"div",
|
|
121
114
|
{
|
|
122
|
-
ref:
|
|
123
|
-
class:
|
|
124
|
-
style:
|
|
125
|
-
onMousedown:
|
|
115
|
+
ref: a,
|
|
116
|
+
class: A.e("thumb"),
|
|
117
|
+
style: T.value,
|
|
118
|
+
onMousedown: y
|
|
126
119
|
},
|
|
127
120
|
[]
|
|
128
121
|
)
|
|
@@ -130,5 +123,5 @@ const it = k({
|
|
|
130
123
|
}
|
|
131
124
|
});
|
|
132
125
|
export {
|
|
133
|
-
|
|
126
|
+
st as default
|
|
134
127
|
};
|
|
@@ -15,10 +15,6 @@ export declare const RTL = "rtl";
|
|
|
15
15
|
export declare const RTL_OFFSET_NAG = "negative";
|
|
16
16
|
export declare const RTL_OFFSET_POS_ASC = "positive-ascending";
|
|
17
17
|
export declare const RTL_OFFSET_POS_DESC = "positive-descending";
|
|
18
|
-
export declare const PageKey: {
|
|
19
|
-
horizontal: string;
|
|
20
|
-
vertical: string;
|
|
21
|
-
};
|
|
22
18
|
export declare const ScrollbarSizeKey: {
|
|
23
19
|
horizontal: string;
|
|
24
20
|
vertical: string;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
const n = 50, c = "itemRendered", s = "scroll", T = "forward",
|
|
2
|
-
[t]: "pageX",
|
|
3
|
-
[o]: "pageY"
|
|
4
|
-
}, l = {
|
|
1
|
+
const n = 50, c = "itemRendered", s = "scroll", T = "forward", E = "backward", _ = "auto", e = "smart", R = "start", r = "center", A = "end", t = "horizontal", o = "vertical", L = "ltr", N = "rtl", S = "negative", i = "positive-ascending", I = "positive-descending", a = {
|
|
5
2
|
[t]: "height",
|
|
6
3
|
[o]: "width"
|
|
7
|
-
},
|
|
4
|
+
}, l = {
|
|
8
5
|
[t]: "left",
|
|
9
6
|
[o]: "top"
|
|
10
|
-
},
|
|
7
|
+
}, O = 20;
|
|
11
8
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
_ as AUTO_ALIGNMENT,
|
|
10
|
+
E as BACKWARD,
|
|
14
11
|
r as CENTERED_ALIGNMENT,
|
|
15
12
|
n as DEFAULT_DYNAMIC_LIST_ITEM_SIZE,
|
|
16
13
|
A as END_ALIGNMENT,
|
|
@@ -18,16 +15,15 @@ export {
|
|
|
18
15
|
t as HORIZONTAL,
|
|
19
16
|
c as ITEM_RENDER_EVT,
|
|
20
17
|
L as LTR,
|
|
21
|
-
I as PageKey,
|
|
22
18
|
N as RTL,
|
|
23
19
|
S as RTL_OFFSET_NAG,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
i as RTL_OFFSET_POS_ASC,
|
|
21
|
+
I as RTL_OFFSET_POS_DESC,
|
|
22
|
+
O as SCROLLBAR_MIN_SIZE,
|
|
27
23
|
s as SCROLL_EVT,
|
|
28
|
-
|
|
24
|
+
e as SMART_ALIGNMENT,
|
|
29
25
|
R as START_ALIGNMENT,
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
l as ScrollbarDirKey,
|
|
27
|
+
a as ScrollbarSizeKey,
|
|
32
28
|
o as VERTICAL
|
|
33
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useCache: () => import("vue").ComputedRef<any>;
|
|
1
|
+
export declare const useCache: <T>() => import("vue").ComputedRef<any>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { getCurrentInstance as r, computed as t } from "vue";
|
|
2
|
+
import { memoize as m } from "lodash-es";
|
|
3
|
+
import p from "memoize-one";
|
|
4
4
|
const a = () => {
|
|
5
|
-
const o =
|
|
6
|
-
return
|
|
5
|
+
const o = r().proxy.$props;
|
|
6
|
+
return t(() => {
|
|
7
7
|
const e = (c, s, _) => ({});
|
|
8
|
-
return o.perfMode ?
|
|
8
|
+
return o.perfMode ? m(e) : p(e);
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { DynamicSizeGridInstance, ResetAfterIndex, ResetAfterIndices, } from './components/dynamic-size-grid';
|
|
3
|
-
export { default as DynamicSizeGrid } from './components/dynamic-size-grid';
|
|
1
|
+
export { default as FixedSizeList } from './components/fixed-size-list';
|
|
4
2
|
export { default as DynamicSizeList } from './components/dynamic-size-list';
|
|
5
3
|
export { default as FixedSizeGrid } from './components/fixed-size-grid';
|
|
6
|
-
export { default as
|
|
4
|
+
export { default as DynamicSizeGrid } from './components/dynamic-size-grid';
|
|
7
5
|
export * from './props';
|
|
6
|
+
export type { FixedSizeListInstance } from './components/fixed-size-list';
|
|
7
|
+
export type { DynamicSizeListInstance } from './components/dynamic-size-list';
|
|
8
|
+
export type { GridInstance } from './builders/build-grid';
|
|
9
|
+
export type { DynamicSizeGridInstance, ResetAfterIndex, ResetAfterIndices, } from './components/dynamic-size-grid';
|
|
8
10
|
export * from './types';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { default as e } from "./components/
|
|
1
|
+
import { default as e } from "./components/fixed-size-list.js";
|
|
2
2
|
import { default as a } from "./components/dynamic-size-list.js";
|
|
3
3
|
import { default as d } from "./components/fixed-size-grid.js";
|
|
4
|
-
import { default as l } from "./components/
|
|
4
|
+
import { default as l } from "./components/dynamic-size-grid.js";
|
|
5
5
|
import { virtualizedGridProps as p, virtualizedListProps as u, virtualizedProps as z, virtualizedScrollbarProps as m } from "./props.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
l as DynamicSizeGrid,
|
|
8
8
|
a as DynamicSizeList,
|
|
9
9
|
d as FixedSizeGrid,
|
|
10
|
-
|
|
10
|
+
e as FixedSizeList,
|
|
11
11
|
p as virtualizedGridProps,
|
|
12
12
|
u as virtualizedListProps,
|
|
13
13
|
z as virtualizedProps,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractPropTypes, StyleValue } from 'vue';
|
|
1
|
+
import type { ExtractPropTypes, StyleValue, __ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
import type { GridItemKeyGetter, ItemSize } from './types';
|
|
3
3
|
export declare const virtualizedProps: {
|
|
4
4
|
readonly className: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -18,7 +18,7 @@ export declare const virtualizedProps: {
|
|
|
18
18
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
19
|
__epPropKey: true;
|
|
20
20
|
};
|
|
21
|
-
readonly useIsScrolling:
|
|
21
|
+
readonly useIsScrolling: BooleanConstructor;
|
|
22
22
|
readonly width: {
|
|
23
23
|
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
24
24
|
readonly required: false;
|
|
@@ -26,7 +26,7 @@ export declare const virtualizedProps: {
|
|
|
26
26
|
__epPropKey: true;
|
|
27
27
|
};
|
|
28
28
|
readonly perfMode: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
29
|
-
readonly scrollbarAlwaysOn:
|
|
29
|
+
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
30
30
|
};
|
|
31
31
|
export declare const virtualizedListProps: {
|
|
32
32
|
readonly className: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -46,7 +46,7 @@ export declare const virtualizedListProps: {
|
|
|
46
46
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
47
|
__epPropKey: true;
|
|
48
48
|
};
|
|
49
|
-
readonly useIsScrolling:
|
|
49
|
+
readonly useIsScrolling: BooleanConstructor;
|
|
50
50
|
readonly width: {
|
|
51
51
|
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
52
52
|
readonly required: false;
|
|
@@ -54,7 +54,7 @@ export declare const virtualizedListProps: {
|
|
|
54
54
|
__epPropKey: true;
|
|
55
55
|
};
|
|
56
56
|
readonly perfMode: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
57
|
-
readonly scrollbarAlwaysOn:
|
|
57
|
+
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
58
58
|
readonly cache: import("vft/es/utils").EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
59
59
|
readonly estimatedItemSize: {
|
|
60
60
|
readonly type: import("vue").PropType<number>;
|
|
@@ -95,7 +95,7 @@ export declare const virtualizedGridProps: {
|
|
|
95
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
96
|
__epPropKey: true;
|
|
97
97
|
};
|
|
98
|
-
readonly useIsScrolling:
|
|
98
|
+
readonly useIsScrolling: BooleanConstructor;
|
|
99
99
|
readonly width: {
|
|
100
100
|
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
101
101
|
readonly required: false;
|
|
@@ -103,7 +103,7 @@ export declare const virtualizedGridProps: {
|
|
|
103
103
|
__epPropKey: true;
|
|
104
104
|
};
|
|
105
105
|
readonly perfMode: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
106
|
-
readonly scrollbarAlwaysOn:
|
|
106
|
+
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
107
107
|
readonly columnCache: import("vft/es/utils").EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
108
108
|
readonly columnWidth: {
|
|
109
109
|
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => number | ItemSize) | (() => number | ItemSize) | (((new (...args: any[]) => number | ItemSize) | (() => number | ItemSize)) | null)[], never, never>>;
|
|
@@ -196,6 +196,10 @@ export declare const virtualizedScrollbarProps: {
|
|
|
196
196
|
readonly visible: BooleanConstructor;
|
|
197
197
|
};
|
|
198
198
|
export type VirtualizedProps = ExtractPropTypes<typeof virtualizedProps>;
|
|
199
|
+
export type VirtualizedPropsPublic = __ExtractPublicPropTypes<typeof virtualizedProps>;
|
|
199
200
|
export type VirtualizedListProps = ExtractPropTypes<typeof virtualizedListProps>;
|
|
201
|
+
export type VirtualizedListPropsPublic = __ExtractPublicPropTypes<typeof virtualizedListProps>;
|
|
200
202
|
export type VirtualizedGridProps = ExtractPropTypes<typeof virtualizedGridProps>;
|
|
203
|
+
export type VirtualizedGridPropsPublic = __ExtractPublicPropTypes<typeof virtualizedGridProps>;
|
|
201
204
|
export type VirtualizedScrollbarProps = ExtractPropTypes<typeof virtualizedScrollbarProps>;
|
|
205
|
+
export type VirtualizedScrollbarPropsPublic = __ExtractPublicPropTypes<typeof virtualizedScrollbarProps>;
|
|
@@ -2,18 +2,18 @@ import "@vueuse/core";
|
|
|
2
2
|
import "@vft/utils";
|
|
3
3
|
import "../../utils/ns-cover.js";
|
|
4
4
|
import { mutable as b } from "../../utils/typescript.js";
|
|
5
|
-
import { buildProp as e, definePropType as t, buildProps as
|
|
5
|
+
import { buildProp as e, definePropType as t, buildProps as o } from "../../utils/vue/props/runtime.js";
|
|
6
6
|
import "vue";
|
|
7
|
-
import { VERTICAL as
|
|
8
|
-
const
|
|
7
|
+
import { VERTICAL as S } from "./defaults.js";
|
|
8
|
+
const i = e({
|
|
9
9
|
type: t([Number, Function]),
|
|
10
10
|
required: !0
|
|
11
|
-
}),
|
|
11
|
+
}), l = e({
|
|
12
12
|
type: Number
|
|
13
13
|
}), a = e({
|
|
14
14
|
type: Number,
|
|
15
15
|
default: 2
|
|
16
|
-
}),
|
|
16
|
+
}), f = e({
|
|
17
17
|
type: String,
|
|
18
18
|
values: ["ltr", "rtl"],
|
|
19
19
|
default: "ltr"
|
|
@@ -26,8 +26,8 @@ const o = e({
|
|
|
26
26
|
}), p = e({
|
|
27
27
|
type: String,
|
|
28
28
|
values: ["horizontal", "vertical"],
|
|
29
|
-
default:
|
|
30
|
-
}),
|
|
29
|
+
default: S
|
|
30
|
+
}), c = o({
|
|
31
31
|
className: {
|
|
32
32
|
type: String,
|
|
33
33
|
default: ""
|
|
@@ -43,7 +43,7 @@ const o = e({
|
|
|
43
43
|
/**
|
|
44
44
|
* @description controls the horizontal direction.
|
|
45
45
|
*/
|
|
46
|
-
direction:
|
|
46
|
+
direction: f,
|
|
47
47
|
height: {
|
|
48
48
|
type: [String, Number],
|
|
49
49
|
required: !0
|
|
@@ -55,10 +55,7 @@ const o = e({
|
|
|
55
55
|
style: {
|
|
56
56
|
type: t([Object, String, Array])
|
|
57
57
|
},
|
|
58
|
-
useIsScrolling:
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !1
|
|
61
|
-
},
|
|
58
|
+
useIsScrolling: Boolean,
|
|
62
59
|
width: {
|
|
63
60
|
type: [Number, String],
|
|
64
61
|
required: !1
|
|
@@ -67,17 +64,14 @@ const o = e({
|
|
|
67
64
|
type: Boolean,
|
|
68
65
|
default: !0
|
|
69
66
|
},
|
|
70
|
-
scrollbarAlwaysOn:
|
|
71
|
-
|
|
72
|
-
default: !1
|
|
73
|
-
}
|
|
74
|
-
}), P = l({
|
|
67
|
+
scrollbarAlwaysOn: Boolean
|
|
68
|
+
}), P = o({
|
|
75
69
|
/**
|
|
76
70
|
* @description describes how many items should be pre rendered to the head
|
|
77
71
|
* and the tail of the window
|
|
78
72
|
*/
|
|
79
73
|
cache: a,
|
|
80
|
-
estimatedItemSize:
|
|
74
|
+
estimatedItemSize: l,
|
|
81
75
|
/**
|
|
82
76
|
* @description controls the list's orientation
|
|
83
77
|
*/
|
|
@@ -87,16 +81,16 @@ const o = e({
|
|
|
87
81
|
* @description describes the total number of the list.
|
|
88
82
|
*/
|
|
89
83
|
total: r,
|
|
90
|
-
itemSize:
|
|
91
|
-
...
|
|
84
|
+
itemSize: i,
|
|
85
|
+
...c
|
|
92
86
|
}), n = {
|
|
93
87
|
type: Number,
|
|
94
88
|
default: 6
|
|
95
|
-
},
|
|
89
|
+
}, s = { type: Number, default: 0 }, d = { type: Number, default: 2 }, O = o({
|
|
96
90
|
columnCache: a,
|
|
97
|
-
columnWidth:
|
|
98
|
-
estimatedColumnWidth:
|
|
99
|
-
estimatedRowHeight:
|
|
91
|
+
columnWidth: i,
|
|
92
|
+
estimatedColumnWidth: l,
|
|
93
|
+
estimatedRowHeight: l,
|
|
100
94
|
initScrollLeft: u,
|
|
101
95
|
initScrollTop: u,
|
|
102
96
|
itemKey: {
|
|
@@ -107,16 +101,16 @@ const o = e({
|
|
|
107
101
|
}) => `${y}:${m}`
|
|
108
102
|
},
|
|
109
103
|
rowCache: a,
|
|
110
|
-
rowHeight:
|
|
104
|
+
rowHeight: i,
|
|
111
105
|
totalColumn: r,
|
|
112
106
|
totalRow: r,
|
|
113
107
|
hScrollbarSize: n,
|
|
114
108
|
vScrollbarSize: n,
|
|
115
|
-
scrollbarStartGap:
|
|
109
|
+
scrollbarStartGap: s,
|
|
116
110
|
scrollbarEndGap: d,
|
|
117
111
|
role: String,
|
|
118
|
-
...
|
|
119
|
-
}), B =
|
|
112
|
+
...c
|
|
113
|
+
}), B = o({
|
|
120
114
|
alwaysOn: Boolean,
|
|
121
115
|
class: String,
|
|
122
116
|
layout: p,
|
|
@@ -134,13 +128,13 @@ const o = e({
|
|
|
134
128
|
required: !0
|
|
135
129
|
},
|
|
136
130
|
scrollbarSize: n,
|
|
137
|
-
startGap:
|
|
131
|
+
startGap: s,
|
|
138
132
|
endGap: d,
|
|
139
133
|
visible: Boolean
|
|
140
134
|
});
|
|
141
135
|
export {
|
|
142
136
|
O as virtualizedGridProps,
|
|
143
137
|
P as virtualizedListProps,
|
|
144
|
-
|
|
138
|
+
c as virtualizedProps,
|
|
145
139
|
B as virtualizedScrollbarProps
|
|
146
140
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CSSProperties, ComponentInternalInstance, Ref } from 'vue';
|
|
2
2
|
export type Instance = ComponentInternalInstance;
|
|
3
3
|
export type Alignment = 'auto' | 'smart' | 'center' | 'start' | 'end';
|
|
4
4
|
export type ItemSize = (idx: number) => number;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { CSSProperties } from 'vue';
|
|
2
|
-
import type { Direction,
|
|
2
|
+
import type { Direction, RTLOffsetType } from './types';
|
|
3
3
|
export declare const getScrollDir: (prev: number, cur: number) => "forward" | "backward";
|
|
4
4
|
export declare const isHorizontal: (dir: string) => dir is "horizontal" | "ltr" | "rtl";
|
|
5
5
|
export declare const isRTL: (dir: Direction) => dir is "rtl";
|
|
6
6
|
export declare function getRTLOffsetType(recalculate?: boolean): RTLOffsetType;
|
|
7
|
-
export declare const getRelativePos: (e: TouchEvent | MouseEvent, layout: LayoutDirection) => any;
|
|
8
7
|
type RenderThumbStyleParams = {
|
|
9
8
|
bar: {
|
|
10
9
|
size: 'height' | 'width';
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const p = (e, t) => e < t ?
|
|
3
|
-
let
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
6
|
-
const t = document.createElement("div"),
|
|
7
|
-
|
|
8
|
-
const r = document.createElement("div"),
|
|
9
|
-
return
|
|
1
|
+
import { LTR as c, RTL as i, HORIZONTAL as d, FORWARD as f, BACKWARD as h, RTL_OFFSET_POS_DESC as u, RTL_OFFSET_NAG as T, RTL_OFFSET_POS_ASC as a } from "./defaults.js";
|
|
2
|
+
const p = (e, t) => e < t ? f : h, L = (e) => e === c || e === i || e === d, m = (e) => e === i;
|
|
3
|
+
let o = null;
|
|
4
|
+
function S(e = !1) {
|
|
5
|
+
if (o === null || e) {
|
|
6
|
+
const t = document.createElement("div"), n = t.style;
|
|
7
|
+
n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
|
|
8
|
+
const r = document.createElement("div"), l = r.style;
|
|
9
|
+
return l.width = "100px", l.height = "100px", t.appendChild(r), document.body.appendChild(t), t.scrollLeft > 0 ? o = u : (t.scrollLeft = 1, t.scrollLeft === 0 ? o = T : o = a), document.body.removeChild(t), o;
|
|
10
10
|
}
|
|
11
|
-
return
|
|
11
|
+
return o;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return n[o.size] = t, n.transform = s, n.msTransform = s, n.webkitTransform = s, r === "horizontal" ? n.height = "100%" : n.width = "100%", n;
|
|
13
|
+
function y({ move: e, size: t, bar: n }, r) {
|
|
14
|
+
const l = {}, s = `translate${n.axis}(${e}px)`;
|
|
15
|
+
return l[n.size] = t, l.transform = s, r === "horizontal" ? l.height = "100%" : l.width = "100%", l;
|
|
17
16
|
}
|
|
18
17
|
export {
|
|
19
|
-
|
|
20
|
-
O as getRelativePos,
|
|
18
|
+
S as getRTLOffsetType,
|
|
21
19
|
p as getScrollDir,
|
|
22
20
|
L as isHorizontal,
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
m as isRTL,
|
|
22
|
+
y as renderThumbStyle
|
|
25
23
|
};
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './use-attrs';
|
|
2
|
-
export * from './use-delayed-toggle';
|
|
3
2
|
export * from './use-draggable';
|
|
4
3
|
export * from './use-focus';
|
|
5
4
|
export * from './use-forward-ref';
|
|
@@ -15,3 +14,6 @@ export * from './use-size';
|
|
|
15
14
|
export * from './use-throttle-render';
|
|
16
15
|
export * from './use-timeout';
|
|
17
16
|
export * from './use-z-index';
|
|
17
|
+
export * from './use-calc-input-width';
|
|
18
|
+
export * from './use-composition';
|
|
19
|
+
export * from './use-focus-controller';
|