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,349 +1,443 @@
|
|
|
1
|
-
import { isArray as H, isObject as N, isFunction as ae } from "@vft/utils";
|
|
2
1
|
import "../form/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { EVENT_CODE as xt } from "../../constants/aria.js";
|
|
3
|
+
import { UPDATE_MODEL_EVENT as Ot, CHANGE_EVENT as It } from "../../constants/event.js";
|
|
4
|
+
import { useResizeObserver as p } from "@vueuse/core";
|
|
5
|
+
import { isArray as w, isFunction as z, isObject as ee, isNumber as pt, isUndefined as wt } from "@vft/utils";
|
|
6
|
+
import { debugWarn as te } from "../../utils/error.js";
|
|
6
7
|
import "../../utils/ns-cover.js";
|
|
7
|
-
import { escapeStringRegexp as
|
|
8
|
-
import {
|
|
9
|
-
import { reactive as
|
|
10
|
-
import { useNamespace as
|
|
8
|
+
import { escapeStringRegexp as yt } from "../../utils/vue/data-helper.js";
|
|
9
|
+
import { debounce as Ct, get as A, isEqual as _, findLastIndex as Et } from "lodash-es";
|
|
10
|
+
import { reactive as Tt, ref as m, computed as o, toRaw as St, watch as T, nextTick as h, watchEffect as Se, onMounted as Rt } from "vue";
|
|
11
|
+
import { useNamespace as Re } from "../../hooks/use-namespace/index.js";
|
|
11
12
|
import "../../hooks/use-model-toggle/index.js";
|
|
12
13
|
import "@popperjs/core";
|
|
13
14
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
inputValue:
|
|
26
|
-
displayInputValue: se,
|
|
27
|
-
calculatedWidth: 0,
|
|
28
|
-
cachedPlaceholder: "",
|
|
15
|
+
import { useComposition as Mt } from "../../hooks/use-composition/index.js";
|
|
16
|
+
import { useFocusController as Wt } from "../../hooks/use-focus-controller/index.js";
|
|
17
|
+
import { useEmptyValues as Ft } from "../../hooks/use-empty-values/index.js";
|
|
18
|
+
import { useAllowCreate as Lt } from "./useAllowCreate.js";
|
|
19
|
+
import { useProps as Nt } from "./useProps.js";
|
|
20
|
+
import { useFormItem as Dt, useFormItemInputId as Ht } from "../form/hooks/use-form-item.js";
|
|
21
|
+
import { useFormSize as Bt } from "../form/hooks/use-form-common-props.js";
|
|
22
|
+
const il = (t, v) => {
|
|
23
|
+
const $ = Re("select"), Me = Re("input"), { form: le, formItem: S } = Dt(), { inputId: We } = Ht(t, {
|
|
24
|
+
formItemContext: S
|
|
25
|
+
}), { aliasProps: ne, getLabel: g, getValue: d, getDisabled: R, getOptions: Fe } = Nt(t), { valueOnClear: Le, isEmptyValue: ae } = Ft(t), l = Tt({
|
|
26
|
+
inputValue: "",
|
|
29
27
|
cachedOptions: [],
|
|
30
28
|
createdOptions: [],
|
|
31
|
-
createdLabel: "",
|
|
32
|
-
createdSelected: !1,
|
|
33
|
-
currentPlaceholder: "",
|
|
34
29
|
hoveringIndex: -1,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
isComposing: !1,
|
|
39
|
-
inputLength: 20,
|
|
40
|
-
selectWidth: 200,
|
|
41
|
-
initialInputHeight: 0,
|
|
30
|
+
inputHovering: !1,
|
|
31
|
+
selectionWidth: 0,
|
|
32
|
+
collapseItemWidth: 0,
|
|
42
33
|
previousQuery: null,
|
|
43
34
|
previousValue: void 0,
|
|
44
|
-
query: "",
|
|
45
35
|
selectedLabel: "",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
()
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
), be = i(() => {
|
|
86
|
-
const e = S.value, n = K.value || "default", u = e ? Number.parseInt(getComputedStyle(e).paddingLeft) : 0, a = e ? Number.parseInt(getComputedStyle(e).paddingRight) : 0;
|
|
87
|
-
return t.selectWidth - a - u - nt[n];
|
|
88
|
-
}), U = () => {
|
|
89
|
-
B.value = x.value?.offsetWidth || 200;
|
|
90
|
-
}, ye = i(() => ({
|
|
91
|
-
width: `${t.calculatedWidth === 0 ? ce : Math.ceil(t.calculatedWidth) + ce}px`
|
|
92
|
-
})), xe = i(() => H(l.modelValue) ? l.modelValue.length === 0 && !t.displayInputValue : l.filterable ? t.displayInputValue.length === 0 : !0), Se = i(() => {
|
|
93
|
-
const e = l.placeholder || "请选择";
|
|
94
|
-
return l.multiple || ue(l.modelValue) ? e : t.selectedLabel;
|
|
95
|
-
}), Ce = i(() => g.value?.popperRef?.contentRef), Q = i(() => {
|
|
96
|
-
if (l.multiple) {
|
|
97
|
-
const e = l.modelValue.length;
|
|
98
|
-
if (l.modelValue.length > 0)
|
|
99
|
-
return s.value.findIndex(
|
|
100
|
-
(n) => n.value === l.modelValue[e - 1]
|
|
36
|
+
menuVisibleOnFocus: !1,
|
|
37
|
+
isBeforeHide: !1
|
|
38
|
+
}), M = m(-1), G = m(), y = m(), W = m(), Q = m(), V = m(), Ne = m(), De = m(), b = m(), ie = m(), F = m(), {
|
|
39
|
+
isComposing: oe,
|
|
40
|
+
handleCompositionStart: He,
|
|
41
|
+
handleCompositionEnd: Be,
|
|
42
|
+
handleCompositionUpdate: Pe
|
|
43
|
+
} = Mt({
|
|
44
|
+
afterComposition: (e) => Ee(e)
|
|
45
|
+
}), x = o(() => t.disabled || !!le?.disabled), { wrapperRef: ue, isFocused: se, handleBlur: Ke } = Wt(V, {
|
|
46
|
+
disabled: x,
|
|
47
|
+
afterFocus() {
|
|
48
|
+
t.automaticDropdown && !u.value && (u.value = !0, l.menuVisibleOnFocus = !0);
|
|
49
|
+
},
|
|
50
|
+
beforeBlur(e) {
|
|
51
|
+
return W.value?.isFocusInsideContent(e) || Q.value?.isFocusInsideContent(e);
|
|
52
|
+
},
|
|
53
|
+
afterBlur() {
|
|
54
|
+
u.value = !1, l.menuVisibleOnFocus = !1, t.validateEvent && S?.validate?.("blur").catch((e) => te(e));
|
|
55
|
+
}
|
|
56
|
+
}), ce = o(() => me("")), L = o(() => t.loading ? !1 : t.options.length > 0 || l.createdOptions.length > 0), s = m([]), u = m(!1), ke = o(() => le?.statusIcon ?? !1), ze = o(() => {
|
|
57
|
+
const e = s.value.length * t.itemHeight;
|
|
58
|
+
return e > t.height ? t.height : e;
|
|
59
|
+
}), N = o(() => t.multiple ? w(t.modelValue) && t.modelValue.length > 0 : !ae(t.modelValue)), Ae = o(() => t.clearable && !x.value && l.inputHovering && N.value), de = o(
|
|
60
|
+
() => t.remote && t.filterable ? "" : "ico-ep:arrow-down"
|
|
61
|
+
), _e = o(
|
|
62
|
+
() => de.value && $.is("reverse", u.value)
|
|
63
|
+
), $e = o(() => S?.validateState || ""), Ge = "validateIcon", re = o(() => t.remote ? 300 : 0), fe = o(() => t.loading ? t.loadingText || "加载中" : t.remote && !l.inputValue && !L.value ? !1 : t.filterable && l.inputValue && L.value && s.value.length === 0 ? t.noMatchText || "无匹配数据" : L.value ? null : t.noDataText || "暂无数据"), me = (e) => {
|
|
64
|
+
const n = new RegExp(yt(e), "i"), { filterMethod: a, remoteMethod: i } = St(t), c = t.filterable && z(a), f = t.filterable && t.remote && z(i), P = (O) => c || f ? !0 : e ? n.test(g(O) || "") : !0;
|
|
65
|
+
return t.loading ? [] : [...l.createdOptions, ...t.options].reduce((O, I) => {
|
|
66
|
+
const K = Fe(I);
|
|
67
|
+
if (w(K)) {
|
|
68
|
+
const k = K.filter(P);
|
|
69
|
+
k.length > 0 && O.push(
|
|
70
|
+
{
|
|
71
|
+
label: g(I),
|
|
72
|
+
type: "Group"
|
|
73
|
+
},
|
|
74
|
+
...k
|
|
101
75
|
);
|
|
102
|
-
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
76
|
+
} else (t.remote || P(I)) && O.push(I);
|
|
77
|
+
return O;
|
|
78
|
+
}, []);
|
|
79
|
+
}, he = () => {
|
|
80
|
+
s.value = me(l.inputValue);
|
|
81
|
+
}, ve = o(() => {
|
|
82
|
+
const e = /* @__PURE__ */ new Map();
|
|
83
|
+
return ce.value.forEach((n, a) => {
|
|
84
|
+
e.set(r(d(n)), { option: n, index: a });
|
|
85
|
+
}), e;
|
|
86
|
+
}), D = o(() => {
|
|
87
|
+
const e = /* @__PURE__ */ new Map();
|
|
88
|
+
return s.value.forEach((n, a) => {
|
|
89
|
+
e.set(r(d(n)), { option: n, index: a });
|
|
90
|
+
}), e;
|
|
91
|
+
}), Qe = o(
|
|
92
|
+
() => s.value.every((e) => R(e))
|
|
93
|
+
), ge = Bt(), Ue = o(
|
|
94
|
+
() => ge.value === "small" ? "small" : "default"
|
|
95
|
+
), C = () => {
|
|
96
|
+
if (pt(t.fitInputWidth)) {
|
|
97
|
+
M.value = t.fitInputWidth;
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const e = G.value?.offsetWidth || 200;
|
|
101
|
+
!t.fitInputWidth && L.value ? h(() => {
|
|
102
|
+
M.value = Math.max(e, je());
|
|
103
|
+
}) : M.value = e;
|
|
104
|
+
}, je = () => {
|
|
105
|
+
const n = document.createElement("canvas").getContext("2d"), a = $.be("dropdown", "item"), c = (b.value?.listRef?.innerRef || document).querySelector(`.${a}`);
|
|
106
|
+
if (c === null || n === null) return 0;
|
|
107
|
+
const f = getComputedStyle(c), P = Number.parseFloat(f.paddingLeft) + Number.parseFloat(f.paddingRight);
|
|
108
|
+
return n.font = `bold ${f.font.replace(
|
|
109
|
+
new RegExp(`\\b${f.fontWeight}\\b`),
|
|
110
|
+
""
|
|
111
|
+
)}`, s.value.reduce((I, K) => {
|
|
112
|
+
const k = n.measureText(g(K));
|
|
113
|
+
return Math.max(k.width, I);
|
|
114
|
+
}, 0) + P;
|
|
115
|
+
}, qe = () => {
|
|
116
|
+
if (!y.value) return 0;
|
|
117
|
+
const e = window.getComputedStyle(y.value);
|
|
118
|
+
return Number.parseFloat(e.gap || "6px");
|
|
119
|
+
}, Je = o(() => {
|
|
120
|
+
const e = qe();
|
|
121
|
+
return { maxWidth: `${F.value && t.maxCollapseTags === 1 ? l.selectionWidth - l.collapseItemWidth - e : l.selectionWidth}px` };
|
|
122
|
+
}), Xe = o(() => ({ maxWidth: `${l.selectionWidth}px` })), Ye = o(() => w(t.modelValue) ? t.modelValue.length === 0 && !l.inputValue : t.filterable ? !l.inputValue : !0), Ze = o(() => {
|
|
123
|
+
const e = t.placeholder || "请选择";
|
|
124
|
+
return t.multiple || !N.value ? e : l.selectedLabel;
|
|
125
|
+
}), et = o(() => W.value?.popperRef?.contentRef), tt = o(() => {
|
|
126
|
+
if (t.multiple) {
|
|
127
|
+
const e = t.modelValue.length;
|
|
128
|
+
if (t.modelValue.length > 0 && D.value.has(t.modelValue[e - 1])) {
|
|
129
|
+
const { index: n } = D.value.get(
|
|
130
|
+
t.modelValue[e - 1]
|
|
131
|
+
);
|
|
132
|
+
return n;
|
|
133
|
+
}
|
|
134
|
+
} else if (!ae(t.modelValue) && D.value.has(t.modelValue)) {
|
|
135
|
+
const { index: e } = D.value.get(t.modelValue);
|
|
136
|
+
return e;
|
|
137
|
+
}
|
|
106
138
|
return -1;
|
|
107
|
-
}),
|
|
139
|
+
}), lt = o({
|
|
108
140
|
get() {
|
|
109
|
-
return
|
|
141
|
+
return u.value && fe.value !== !1;
|
|
110
142
|
},
|
|
111
143
|
set(e) {
|
|
112
|
-
|
|
144
|
+
u.value = e;
|
|
113
145
|
}
|
|
114
|
-
}),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
146
|
+
}), nt = o(() => t.multiple ? t.collapseTags ? l.cachedOptions.slice(0, t.maxCollapseTags) : l.cachedOptions : []), at = o(() => t.multiple ? t.collapseTags ? l.cachedOptions.slice(t.maxCollapseTags) : [] : []), {
|
|
147
|
+
createNewOption: Ve,
|
|
148
|
+
removeNewOption: U,
|
|
149
|
+
selectNewOption: be,
|
|
150
|
+
clearAllNewOption: j
|
|
151
|
+
} = Lt(t, l), q = () => {
|
|
152
|
+
x.value || (l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : u.value = !u.value);
|
|
153
|
+
}, xe = () => {
|
|
154
|
+
l.inputValue.length > 0 && !u.value && (u.value = !0), Ve(l.inputValue), h(() => {
|
|
155
|
+
J(l.inputValue);
|
|
156
|
+
});
|
|
157
|
+
}, Oe = Ct(xe, re.value), J = (e) => {
|
|
158
|
+
l.previousQuery === e || oe.value || (l.previousQuery = e, t.filterable && z(t.filterMethod) ? t.filterMethod(e) : t.filterable && t.remote && z(t.remoteMethod) && t.remoteMethod(e), t.defaultFirstOption && (t.filterable || t.remote) && s.value.length ? h(it) : h(gt));
|
|
159
|
+
}, it = () => {
|
|
160
|
+
const e = s.value.filter(
|
|
161
|
+
(i) => !i.disabled && i.type !== "Group"
|
|
162
|
+
), n = e.find((i) => i.created), a = e[0];
|
|
163
|
+
l.hoveringIndex = X(
|
|
164
|
+
s.value,
|
|
165
|
+
n || a
|
|
166
|
+
);
|
|
167
|
+
}, ot = (e) => {
|
|
168
|
+
_(t.modelValue, e) || v(It, e);
|
|
169
|
+
}, E = (e) => {
|
|
170
|
+
v(Ot, e), ot(e), l.previousValue = t.multiple ? String(e) : e, h(() => {
|
|
171
|
+
if (t.multiple && w(t.modelValue)) {
|
|
172
|
+
const n = l.cachedOptions.slice(), a = t.modelValue.map(
|
|
173
|
+
(i) => Te(i, n)
|
|
174
|
+
);
|
|
175
|
+
_(l.cachedOptions, a) || (l.cachedOptions = a);
|
|
176
|
+
} else
|
|
177
|
+
B(!0);
|
|
178
|
+
});
|
|
179
|
+
}, X = (e = [], n) => {
|
|
180
|
+
if (!ee(n))
|
|
144
181
|
return e.indexOf(n);
|
|
145
|
-
const
|
|
146
|
-
let
|
|
147
|
-
return e.some((c,
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
182
|
+
const a = t.valueKey;
|
|
183
|
+
let i = -1;
|
|
184
|
+
return e.some((c, f) => A(c, a) === A(n, a) ? (i = f, !0) : !1), i;
|
|
185
|
+
}, r = (e) => ee(e) ? A(e, t.valueKey) : e, Ie = () => {
|
|
186
|
+
C();
|
|
187
|
+
}, pe = () => {
|
|
188
|
+
l.selectionWidth = Number.parseFloat(
|
|
189
|
+
window.getComputedStyle(y.value).width
|
|
190
|
+
);
|
|
191
|
+
}, ut = () => {
|
|
192
|
+
l.collapseItemWidth = F.value.getBoundingClientRect().width;
|
|
193
|
+
}, Y = () => {
|
|
194
|
+
W.value?.updatePopper?.();
|
|
195
|
+
}, we = () => {
|
|
196
|
+
Q.value?.updatePopper?.();
|
|
197
|
+
}, ye = (e) => {
|
|
198
|
+
if (t.multiple) {
|
|
199
|
+
let n = t.modelValue.slice();
|
|
200
|
+
const a = X(n, d(e));
|
|
201
|
+
a > -1 ? (n = [
|
|
202
|
+
...n.slice(0, a),
|
|
203
|
+
...n.slice(a + 1)
|
|
204
|
+
], l.cachedOptions.splice(a, 1), U(e)) : (t.multipleLimit <= 0 || n.length < t.multipleLimit) && (n = [...n, d(e)], l.cachedOptions.push(e), be(e)), E(n), e.created && J(""), t.filterable && !t.reserveKeyword && (l.inputValue = "");
|
|
166
205
|
} else
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
206
|
+
l.selectedLabel = g(e), E(d(e)), u.value = !1, be(e), e.created || j();
|
|
207
|
+
H();
|
|
208
|
+
}, st = (e, n) => {
|
|
209
|
+
let a = t.modelValue.slice();
|
|
210
|
+
const i = X(a, d(n));
|
|
211
|
+
i > -1 && !x.value && (a = [
|
|
212
|
+
...t.modelValue.slice(0, i),
|
|
213
|
+
...t.modelValue.slice(i + 1)
|
|
214
|
+
], l.cachedOptions.splice(i, 1), E(a), v("remove-tag", d(n)), U(n)), e.stopPropagation(), H();
|
|
215
|
+
}, H = () => {
|
|
216
|
+
V.value?.focus();
|
|
217
|
+
}, ct = () => {
|
|
218
|
+
if (u.value) {
|
|
219
|
+
u.value = !1, h(() => V.value?.blur());
|
|
220
|
+
return;
|
|
176
221
|
}
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
if (t.
|
|
222
|
+
V.value?.blur();
|
|
223
|
+
}, dt = () => {
|
|
224
|
+
l.inputValue.length > 0 ? l.inputValue = "" : u.value = !1;
|
|
225
|
+
}, rt = (e) => Et(
|
|
226
|
+
e,
|
|
227
|
+
(n) => !l.cachedOptions.some(
|
|
228
|
+
(a) => d(a) === n && R(a)
|
|
229
|
+
)
|
|
230
|
+
), ft = (e) => {
|
|
231
|
+
if (t.multiple && e.code !== xt.delete && l.inputValue.length === 0) {
|
|
187
232
|
e.preventDefault();
|
|
188
|
-
const n =
|
|
189
|
-
|
|
233
|
+
const n = t.modelValue.slice(), a = rt(n);
|
|
234
|
+
if (a < 0) return;
|
|
235
|
+
const i = n[a];
|
|
236
|
+
n.splice(a, 1);
|
|
237
|
+
const c = l.cachedOptions[a];
|
|
238
|
+
l.cachedOptions.splice(a, 1), U(c), E(n), v("remove-tag", i);
|
|
190
239
|
}
|
|
191
|
-
},
|
|
240
|
+
}, mt = () => {
|
|
192
241
|
let e;
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
const u = s.value;
|
|
198
|
-
if (!["forward", "backward"].includes(e) || I.value || u.length <= 0 || pe.value)
|
|
242
|
+
w(t.modelValue) ? e = [] : e = Le.value, l.selectedLabel = "", u.value = !1, E(e), v("clear"), j(), H();
|
|
243
|
+
}, Ce = (e, n = void 0) => {
|
|
244
|
+
const a = s.value;
|
|
245
|
+
if (!["forward", "backward"].includes(e) || x.value || a.length <= 0 || Qe.value || oe.value)
|
|
199
246
|
return;
|
|
200
|
-
if (!
|
|
201
|
-
return
|
|
202
|
-
n
|
|
203
|
-
let
|
|
204
|
-
e === "forward" ? (
|
|
205
|
-
const c =
|
|
206
|
-
if (c
|
|
207
|
-
return
|
|
208
|
-
|
|
209
|
-
},
|
|
210
|
-
if (
|
|
211
|
-
~
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}, ne = (e) => {
|
|
225
|
-
const n = e.target.value;
|
|
226
|
-
if (C(n), t.displayInputValue.length > 0 && !o.value && (o.value = !0), t.calculatedWidth = V.value.getBoundingClientRect().width, l.multiple && M(), l.remote)
|
|
227
|
-
J();
|
|
247
|
+
if (!u.value)
|
|
248
|
+
return q();
|
|
249
|
+
wt(n) && (n = l.hoveringIndex);
|
|
250
|
+
let i = -1;
|
|
251
|
+
e === "forward" ? (i = n + 1, i >= a.length && (i = 0)) : e === "backward" && (i = n - 1, (i < 0 || i >= a.length) && (i = a.length - 1));
|
|
252
|
+
const c = a[i];
|
|
253
|
+
if (R(c) || c.type === "Group")
|
|
254
|
+
return Ce(e, i);
|
|
255
|
+
l.hoveringIndex = i, Z(i);
|
|
256
|
+
}, ht = () => {
|
|
257
|
+
if (u.value)
|
|
258
|
+
~l.hoveringIndex && s.value[l.hoveringIndex] && ye(s.value[l.hoveringIndex]);
|
|
259
|
+
else return q();
|
|
260
|
+
}, vt = (e) => {
|
|
261
|
+
l.hoveringIndex = e ?? -1;
|
|
262
|
+
}, gt = () => {
|
|
263
|
+
t.multiple ? l.hoveringIndex = s.value.findIndex(
|
|
264
|
+
(e) => t.modelValue.some(
|
|
265
|
+
(n) => r(n) === r(d(e))
|
|
266
|
+
)
|
|
267
|
+
) : l.hoveringIndex = s.value.findIndex((e) => r(d(e)) === r(t.modelValue));
|
|
268
|
+
}, Ee = (e) => {
|
|
269
|
+
if (l.inputValue = e.target.value, t.remote)
|
|
270
|
+
Oe();
|
|
228
271
|
else
|
|
229
|
-
return
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
272
|
+
return xe();
|
|
273
|
+
}, Vt = (e) => {
|
|
274
|
+
if (u.value = !1, se.value) {
|
|
275
|
+
const n = new FocusEvent("focus", e);
|
|
276
|
+
Ke(n);
|
|
277
|
+
}
|
|
278
|
+
}, bt = () => (l.isBeforeHide = !1, h(() => {
|
|
279
|
+
~tt.value && Z(l.hoveringIndex);
|
|
280
|
+
})), Z = (e) => {
|
|
281
|
+
b.value.scrollToItem(e);
|
|
282
|
+
}, Te = (e, n) => {
|
|
283
|
+
const a = r(e);
|
|
284
|
+
if (ve.value.has(a)) {
|
|
285
|
+
const { option: i } = ve.value.get(a);
|
|
286
|
+
return i;
|
|
287
|
+
}
|
|
288
|
+
if (n && n.length) {
|
|
289
|
+
const i = n.find(
|
|
290
|
+
(c) => r(d(c)) === a
|
|
291
|
+
);
|
|
292
|
+
if (i)
|
|
293
|
+
return i;
|
|
294
|
+
}
|
|
295
|
+
return {
|
|
296
|
+
[ne.value.value]: e,
|
|
297
|
+
[ne.value.label]: e
|
|
298
|
+
};
|
|
299
|
+
}, B = (e = !1) => {
|
|
300
|
+
if (t.multiple)
|
|
301
|
+
if (t.modelValue.length > 0) {
|
|
302
|
+
const n = l.cachedOptions.slice();
|
|
303
|
+
l.cachedOptions.length = 0, l.previousValue = t.modelValue.toString();
|
|
304
|
+
for (const a of t.modelValue) {
|
|
305
|
+
const i = Te(a, n);
|
|
306
|
+
l.cachedOptions.push(i);
|
|
307
|
+
}
|
|
246
308
|
} else
|
|
247
|
-
|
|
248
|
-
else if (
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
(
|
|
309
|
+
l.cachedOptions = [], l.previousValue = void 0;
|
|
310
|
+
else if (N.value) {
|
|
311
|
+
l.previousValue = t.modelValue;
|
|
312
|
+
const n = s.value, a = n.findIndex(
|
|
313
|
+
(i) => r(d(i)) === r(t.modelValue)
|
|
252
314
|
);
|
|
253
|
-
~
|
|
315
|
+
~a ? l.selectedLabel = g(n[a]) : (!l.selectedLabel || e) && (l.selectedLabel = r(t.modelValue));
|
|
254
316
|
} else
|
|
255
|
-
|
|
256
|
-
|
|
317
|
+
l.selectedLabel = "", l.previousValue = void 0;
|
|
318
|
+
j(), C();
|
|
257
319
|
};
|
|
258
|
-
return
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
320
|
+
return T(
|
|
321
|
+
() => t.fitInputWidth,
|
|
322
|
+
() => {
|
|
323
|
+
C();
|
|
324
|
+
}
|
|
325
|
+
), T(u, (e) => {
|
|
326
|
+
e ? (t.persistent || C(), J("")) : (l.inputValue = "", l.previousQuery = null, l.isBeforeHide = !0, Ve("")), v("visible-change", e);
|
|
327
|
+
}), T(
|
|
328
|
+
() => t.modelValue,
|
|
262
329
|
(e, n) => {
|
|
263
|
-
(!e || e.toString()
|
|
330
|
+
(!e || w(e) && e.length === 0 || t.multiple && !_(e.toString(), l.previousValue) || !t.multiple && r(e) !== r(l.previousValue)) && B(!0), !_(e, n) && t.validateEvent && S?.validate?.("change").catch((i) => te(i));
|
|
264
331
|
},
|
|
265
332
|
{
|
|
266
333
|
deep: !0
|
|
267
334
|
}
|
|
268
|
-
),
|
|
269
|
-
() =>
|
|
335
|
+
), T(
|
|
336
|
+
() => t.options,
|
|
270
337
|
() => {
|
|
271
|
-
const e =
|
|
272
|
-
(!e || e && document.activeElement !== e) &&
|
|
338
|
+
const e = V.value;
|
|
339
|
+
(!e || e && document.activeElement !== e) && B();
|
|
273
340
|
},
|
|
274
341
|
{
|
|
275
|
-
deep: !0
|
|
342
|
+
deep: !0,
|
|
343
|
+
flush: "post"
|
|
276
344
|
}
|
|
277
|
-
),
|
|
278
|
-
() =>
|
|
279
|
-
(
|
|
280
|
-
|
|
345
|
+
), T(
|
|
346
|
+
() => s.value,
|
|
347
|
+
() => (C(), b.value && h(b.value.resetScrollTop))
|
|
348
|
+
), Se(() => {
|
|
349
|
+
l.isBeforeHide || he();
|
|
350
|
+
}), Se(() => {
|
|
351
|
+
const { valueKey: e, options: n } = t, a = /* @__PURE__ */ new Map();
|
|
352
|
+
for (const i of n) {
|
|
353
|
+
const c = d(i);
|
|
354
|
+
let f = c;
|
|
355
|
+
if (ee(f) && (f = A(c, e)), a.get(f)) {
|
|
356
|
+
te(
|
|
357
|
+
"ElSelectV2",
|
|
358
|
+
"The option values you provided seem to be duplicated, which may cause some problems, please check."
|
|
359
|
+
);
|
|
360
|
+
break;
|
|
361
|
+
} else
|
|
362
|
+
a.set(f, !0);
|
|
281
363
|
}
|
|
282
|
-
),
|
|
283
|
-
|
|
284
|
-
}),
|
|
364
|
+
}), Rt(() => {
|
|
365
|
+
B();
|
|
366
|
+
}), p(G, Ie), p(y, pe), p(b, Y), p(ue, Y), p(ie, we), p(F, ut), {
|
|
285
367
|
// data exports
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
368
|
+
inputId: We,
|
|
369
|
+
collapseTagSize: Ue,
|
|
370
|
+
currentPlaceholder: Ze,
|
|
371
|
+
expanded: u,
|
|
372
|
+
emptyText: fe,
|
|
373
|
+
popupHeight: ze,
|
|
374
|
+
debounce: re,
|
|
375
|
+
allOptions: ce,
|
|
292
376
|
filteredOptions: s,
|
|
293
|
-
iconComponent:
|
|
294
|
-
iconReverse:
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
shouldShowPlaceholder:
|
|
301
|
-
selectDisabled:
|
|
302
|
-
selectSize:
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
377
|
+
iconComponent: de,
|
|
378
|
+
iconReverse: _e,
|
|
379
|
+
tagStyle: Je,
|
|
380
|
+
collapseTagStyle: Xe,
|
|
381
|
+
popperSize: M,
|
|
382
|
+
dropdownMenuVisible: lt,
|
|
383
|
+
hasModelValue: N,
|
|
384
|
+
shouldShowPlaceholder: Ye,
|
|
385
|
+
selectDisabled: x,
|
|
386
|
+
selectSize: ge,
|
|
387
|
+
needStatusIcon: ke,
|
|
388
|
+
showClearBtn: Ae,
|
|
389
|
+
states: l,
|
|
390
|
+
isFocused: se,
|
|
391
|
+
nsSelect: $,
|
|
392
|
+
nsInput: Me,
|
|
308
393
|
// refs items exports
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
selectRef:
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
394
|
+
inputRef: V,
|
|
395
|
+
menuRef: b,
|
|
396
|
+
tagMenuRef: ie,
|
|
397
|
+
tooltipRef: W,
|
|
398
|
+
tagTooltipRef: Q,
|
|
399
|
+
selectRef: G,
|
|
400
|
+
wrapperRef: ue,
|
|
401
|
+
selectionRef: y,
|
|
402
|
+
prefixRef: Ne,
|
|
403
|
+
suffixRef: De,
|
|
404
|
+
collapseItemRef: F,
|
|
405
|
+
popperRef: et,
|
|
406
|
+
validateState: $e,
|
|
407
|
+
validateIcon: Ge,
|
|
408
|
+
showTagList: nt,
|
|
409
|
+
collapseTagList: at,
|
|
321
410
|
// methods exports
|
|
322
|
-
debouncedOnInputChange:
|
|
323
|
-
deleteTag:
|
|
324
|
-
getLabel:
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
411
|
+
debouncedOnInputChange: Oe,
|
|
412
|
+
deleteTag: st,
|
|
413
|
+
getLabel: g,
|
|
414
|
+
getValue: d,
|
|
415
|
+
getDisabled: R,
|
|
416
|
+
getValueKey: r,
|
|
417
|
+
handleClear: mt,
|
|
418
|
+
handleClickOutside: Vt,
|
|
419
|
+
handleDel: ft,
|
|
420
|
+
handleEsc: dt,
|
|
421
|
+
focus: H,
|
|
422
|
+
blur: ct,
|
|
423
|
+
handleMenuEnter: bt,
|
|
424
|
+
handleResize: Ie,
|
|
425
|
+
resetSelectionWidth: pe,
|
|
426
|
+
updateTooltip: Y,
|
|
427
|
+
updateTagTooltip: we,
|
|
428
|
+
updateOptions: he,
|
|
429
|
+
toggleMenu: q,
|
|
430
|
+
scrollTo: Z,
|
|
431
|
+
onInput: Ee,
|
|
432
|
+
onKeyboardNavigate: Ce,
|
|
433
|
+
onKeyboardSelect: ht,
|
|
434
|
+
onSelect: ye,
|
|
435
|
+
onHover: vt,
|
|
436
|
+
handleCompositionStart: He,
|
|
437
|
+
handleCompositionEnd: Be,
|
|
438
|
+
handleCompositionUpdate: Pe
|
|
345
439
|
};
|
|
346
440
|
};
|
|
347
441
|
export {
|
|
348
|
-
|
|
442
|
+
il as default
|
|
349
443
|
};
|