vft 0.0.73 → 0.0.76
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/component.js +67 -48
- package/es/components/affix/affix.js +45 -0
- package/es/components/affix/affix.vue.js +4 -0
- package/es/components/affix/affix.vue2.js +83 -0
- package/es/components/affix/index.js +12 -0
- package/es/components/affix/style/css.js +2 -0
- package/es/components/affix/style/index.js +2 -0
- package/es/components/back-top/back-top.vue2.js +10 -2
- package/es/components/button/button.vue2.js +58 -59
- package/es/components/button/use-button.js +26 -20
- package/es/components/card/card.vue.js +4 -0
- package/es/components/card/card.vue2.js +44 -0
- package/es/components/card/index.js +12 -0
- package/es/components/card/instance.js +1 -0
- package/es/components/card/style/css.js +2 -0
- package/es/components/card/style/index.js +2 -0
- package/es/components/check-tag/check-tag.vue.js +4 -0
- package/es/components/check-tag/check-tag.vue2.js +35 -0
- package/es/components/check-tag/index.js +12 -0
- package/es/components/check-tag/style/css.js +2 -0
- package/es/components/check-tag/style/index.js +2 -0
- package/es/components/color-picker/color-picker.vue2.js +1 -1
- package/es/components/context-menu/context-menu.vue2.js +10 -2
- package/es/components/date-picker/composables/use-month-range-header.js +1 -1
- package/es/components/date-picker/constants.js +16 -2
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +37 -34
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +0 -1
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +177 -178
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +328 -336
- package/es/components/date-picker/date-picker.js +18 -18
- package/es/components/date-picker/index.js +5 -4
- package/es/components/date-picker/props/shared.js +1 -1
- package/es/components/date-time-select/date-time-select.vue2.js +59 -59
- package/es/components/dialog/dialog.vue2.js +12 -12
- package/es/components/dialog/hooks/use-dialog.js +4 -4
- package/es/components/dropdown/dropdown-menu.vue2.js +4 -4
- package/es/components/footer-layout/footer-layout.vue2.js +10 -2
- package/es/components/header-layout/header-layout.vue2.js +10 -2
- package/es/components/horizontal-menu/constants.js +4 -0
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +153 -86
- package/es/components/horizontal-menu/index.js +7 -5
- package/es/components/index.js +228 -194
- package/es/components/md-container/md-container.vue2.js +10 -2
- package/es/components/menu/menu-item.vue2.js +58 -58
- package/es/components/menu/menu.vue2.js +72 -68
- package/es/components/menu/sub-menu.vue2.js +139 -117
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -26
- package/es/components/option/style/css.js +2 -0
- package/es/components/option/style/index.js +2 -0
- package/es/components/option-group/style/css.js +2 -0
- package/es/components/option-group/style/index.js +2 -0
- package/es/components/popconfirm/index.js +12 -0
- package/es/components/popconfirm/popconfirm.vue.js +4 -0
- package/es/components/popconfirm/popconfirm.vue2.js +112 -0
- package/es/components/popconfirm/style/css.js +6 -0
- package/es/components/popconfirm/style/index.js +6 -0
- package/es/components/popover/style/index.js +1 -1
- package/es/components/result/result.vue2.js +10 -2
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +1 -1
- package/es/components/search/style/css.js +2 -0
- package/es/components/search/style/index.js +2 -0
- package/es/components/select/index.js +22 -0
- package/es/components/select/option-group.vue.js +25 -0
- package/es/components/select/option-group.vue2.js +53 -0
- package/es/components/select/option.vue.js +27 -0
- package/es/components/select/option.vue2.js +58 -0
- package/es/components/select/options.js +34 -0
- package/es/components/select/select-dropdown.vue.js +15 -0
- package/es/components/select/select-dropdown.vue2.js +32 -0
- package/es/components/select/select.vue.js +327 -0
- package/es/components/select/select.vue2.js +348 -0
- package/es/components/select/style/css.js +8 -0
- package/es/components/select/style/index.js +8 -0
- package/es/components/select/token.js +5 -0
- package/es/components/select/useOption.js +71 -0
- package/es/components/select/useSelect.js +414 -0
- package/es/components/select-v2/select-dropdown.js +1 -1
- package/es/components/select-v2/useSelect.js +269 -269
- package/es/components/side-menu/side-menu.vue2.js +153 -142
- package/es/components/skeleton/index.js +16 -0
- package/es/components/skeleton/skeleton-item.vue.js +4 -0
- package/es/components/skeleton/skeleton-item.vue2.js +31 -0
- package/es/components/skeleton/skeleton.vue.js +4 -0
- package/es/components/skeleton/skeleton.vue2.js +55 -0
- package/es/components/skeleton/style/css.js +3 -0
- package/es/components/skeleton/style/index.js +3 -0
- package/es/components/skeleton-item/style/css.js +2 -0
- package/es/components/skeleton-item/style/index.js +2 -0
- package/es/components/space/index.js +17 -0
- package/es/components/space/item.js +24 -0
- package/es/components/space/space.js +182 -0
- package/es/components/space/style/css.js +2 -0
- package/es/components/space/style/index.js +2 -0
- package/es/components/space/use-space.js +44 -0
- package/es/components/switch/switch.vue2.js +1 -1
- package/es/components/tabs/tab-nav.vue2.js +30 -22
- package/es/components/tabs/tabs.vue2.js +37 -37
- package/es/components/time-picker/common/picker.vue2.js +241 -257
- package/es/components/time-picker/common/props.js +10 -6
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +1 -1
- package/es/components/time-picker/time-picker.js +10 -10
- package/es/components/time-select/time-select.vue2.js +38 -42
- package/es/components/tooltip/content.vue2.js +1 -1
- package/es/components/tree/index.js +14 -0
- package/es/components/tree/model/node.js +248 -0
- package/es/components/tree/model/tree-store.js +197 -0
- package/es/components/tree/model/useDragNode.js +71 -0
- package/es/components/tree/model/useKeydown.js +81 -0
- package/es/components/tree/model/useNodeExpandEventBroadcast.js +19 -0
- package/es/components/tree/model/util.js +21 -0
- package/es/components/tree/style/css.js +3 -0
- package/es/components/tree/style/index.js +3 -0
- package/es/components/tree/tree-node-content.vue.js +4 -0
- package/es/components/tree/tree-node-content.vue2.js +28 -0
- package/es/components/tree/tree-node.vue.js +98 -0
- package/es/components/tree/tree-node.vue2.js +152 -0
- package/es/components/tree/tree.type.js +1 -0
- package/es/components/tree/tree.vue.js +48 -0
- package/es/components/tree/tree.vue2.js +268 -0
- package/es/components/tree-select/cache-options.js +32 -0
- package/es/components/tree-select/index.js +9 -0
- package/es/components/tree-select/select.js +38 -0
- package/es/components/tree-select/style/css.js +11 -0
- package/es/components/tree-select/style/index.js +11 -0
- package/es/components/tree-select/tree-select-option.js +21 -0
- package/es/components/tree-select/tree-select.vue.js +4 -0
- package/es/components/tree-select/tree-select.vue2.js +81 -0
- package/es/components/tree-select/tree.js +137 -0
- package/es/components/tree-select/utils.js +45 -0
- package/es/hooks/index.js +25 -21
- package/es/hooks/use-focus/index.js +9 -0
- package/es/hooks/use-throttle-render/index.js +21 -0
- package/es/index.js +408 -368
- package/es/package.json.js +1 -1
- package/es/utils/helper.js +5 -2
- package/es/utils/index.js +48 -46
- package/lib/component.cjs +1 -1
- package/lib/components/affix/affix.cjs +1 -0
- package/lib/components/affix/affix.vue.cjs +1 -0
- package/lib/components/affix/affix.vue2.cjs +1 -0
- package/lib/components/affix/index.cjs +1 -0
- package/lib/components/affix/style/css.cjs +1 -0
- package/lib/components/affix/style/index.cjs +1 -0
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/card/card.vue.cjs +1 -0
- package/lib/components/card/card.vue2.cjs +1 -0
- package/lib/components/card/index.cjs +1 -0
- package/lib/components/card/instance.cjs +1 -0
- package/lib/components/card/style/css.cjs +1 -0
- package/lib/components/card/style/index.cjs +1 -0
- package/lib/components/check-tag/check-tag.vue.cjs +1 -0
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -0
- package/lib/components/check-tag/index.cjs +1 -0
- package/lib/components/check-tag/style/css.cjs +1 -0
- package/lib/components/check-tag/style/index.cjs +1 -0
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
- package/lib/components/date-picker/constants.cjs +1 -1
- 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.vue2.cjs +1 -1
- 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.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/index.cjs +1 -1
- package/lib/components/date-picker/props/shared.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
- package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/constants.cjs +1 -0
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/index.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/option/style/css.cjs +1 -0
- package/lib/components/option/style/index.cjs +1 -0
- package/lib/components/option-group/style/css.cjs +1 -0
- package/lib/components/option-group/style/index.cjs +1 -0
- package/lib/components/popconfirm/index.cjs +1 -0
- package/lib/components/popconfirm/popconfirm.vue.cjs +1 -0
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -0
- package/lib/components/popconfirm/style/css.cjs +1 -0
- package/lib/components/popconfirm/style/index.cjs +1 -0
- package/lib/components/popover/style/index.cjs +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/search/style/css.cjs +1 -1
- package/lib/components/search/style/index.cjs +1 -1
- package/lib/components/select/index.cjs +1 -0
- package/lib/components/select/option-group.vue.cjs +1 -0
- package/lib/components/select/option-group.vue2.cjs +1 -0
- package/lib/components/select/option.vue.cjs +1 -0
- package/lib/components/select/option.vue2.cjs +1 -0
- package/lib/components/select/options.cjs +1 -0
- package/lib/components/select/select-dropdown.vue.cjs +1 -0
- package/lib/components/select/select-dropdown.vue2.cjs +1 -0
- package/lib/components/select/select.vue.cjs +1 -0
- package/lib/components/select/select.vue2.cjs +1 -0
- package/lib/components/select/style/css.cjs +1 -0
- package/lib/components/select/style/index.cjs +1 -0
- package/lib/components/select/token.cjs +1 -0
- package/lib/components/select/useOption.cjs +1 -0
- package/lib/components/select/useSelect.cjs +1 -0
- package/lib/components/select-v2/select-dropdown.cjs +1 -1
- package/lib/components/select-v2/useSelect.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/index.cjs +1 -0
- package/lib/components/skeleton/skeleton-item.vue.cjs +1 -0
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -0
- package/lib/components/skeleton/skeleton.vue.cjs +1 -0
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -0
- package/lib/components/skeleton/style/css.cjs +1 -0
- package/lib/components/skeleton/style/index.cjs +1 -0
- package/lib/components/skeleton-item/style/css.cjs +1 -0
- package/lib/components/skeleton-item/style/index.cjs +1 -0
- package/lib/components/space/index.cjs +1 -0
- package/lib/components/space/item.cjs +1 -0
- package/lib/components/space/space.cjs +1 -0
- package/lib/components/space/style/css.cjs +1 -0
- package/lib/components/space/style/index.cjs +1 -0
- package/lib/components/space/use-space.cjs +1 -0
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- 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/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tree/index.cjs +1 -0
- package/lib/components/tree/model/node.cjs +1 -0
- package/lib/components/tree/model/tree-store.cjs +1 -0
- package/lib/components/tree/model/useDragNode.cjs +1 -0
- package/lib/components/tree/model/useKeydown.cjs +1 -0
- package/lib/components/tree/model/useNodeExpandEventBroadcast.cjs +1 -0
- package/lib/components/tree/model/util.cjs +1 -0
- package/lib/components/tree/style/css.cjs +1 -0
- package/lib/components/tree/style/index.cjs +1 -0
- package/lib/components/tree/tree-node-content.vue.cjs +1 -0
- package/lib/components/tree/tree-node-content.vue2.cjs +1 -0
- package/lib/components/tree/tree-node.vue.cjs +1 -0
- package/lib/components/tree/tree-node.vue2.cjs +1 -0
- package/lib/components/tree/tree.type.cjs +1 -0
- package/lib/components/tree/tree.vue.cjs +1 -0
- package/lib/components/tree/tree.vue2.cjs +1 -0
- package/lib/components/tree-select/cache-options.cjs +1 -0
- package/lib/components/tree-select/index.cjs +1 -0
- package/lib/components/tree-select/select.cjs +1 -0
- package/lib/components/tree-select/style/css.cjs +1 -0
- package/lib/components/tree-select/style/index.cjs +1 -0
- package/lib/components/tree-select/tree-select-option.cjs +1 -0
- package/lib/components/tree-select/tree-select.vue.cjs +1 -0
- package/lib/components/tree-select/tree-select.vue2.cjs +1 -0
- package/lib/components/tree-select/tree.cjs +1 -0
- package/lib/components/tree-select/utils.cjs +1 -0
- package/lib/hooks/index.cjs +1 -1
- package/lib/hooks/use-focus/index.cjs +1 -0
- package/lib/hooks/use-throttle-render/index.cjs +1 -0
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/utils/helper.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/package.json +1 -1
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/alert.scss +1 -1
- package/theme-style/src/autocomplete.scss +2 -2
- package/theme-style/src/breadcrumb.scss +4 -4
- package/theme-style/src/calendar.scss +2 -2
- package/theme-style/src/card.scss +1 -1
- package/theme-style/src/carousel.scss +1 -1
- package/theme-style/src/cascader.scss +3 -3
- package/theme-style/src/check-tag.scss +3 -3
- package/theme-style/src/checkbox.scss +1 -1
- package/theme-style/src/color-picker.scss +2 -2
- package/theme-style/src/common/var.scss +527 -521
- package/theme-style/src/date-picker/date-picker.scss +1 -1
- package/theme-style/src/date-picker/date-range-picker.scss +2 -2
- package/theme-style/src/date-picker/date-table.scss +1 -1
- package/theme-style/src/date-picker/month-table.scss +2 -2
- package/theme-style/src/date-picker/picker-panel.scss +4 -5
- package/theme-style/src/date-picker/picker.scss +7 -9
- package/theme-style/src/date-picker/time-picker.scss +2 -2
- package/theme-style/src/date-picker/time-spinner.scss +6 -8
- package/theme-style/src/date-picker/year-table.scss +3 -3
- package/theme-style/src/date-time-select.scss +3 -4
- package/theme-style/src/descriptions-item.scss +4 -4
- package/theme-style/src/descriptions.scss +2 -2
- package/theme-style/src/header-layout.scss +1 -1
- package/theme-style/src/horizontal-menu.scss +27 -39
- package/theme-style/src/image-viewer.scss +1 -1
- package/theme-style/src/index.scss +3 -0
- package/theme-style/src/input-number.scss +1 -1
- package/theme-style/src/menu.scss +76 -66
- package/theme-style/src/mixins/_var.scss +2 -2
- package/theme-style/src/mixins/mixins.scss +2 -2
- package/theme-style/src/popconfirm.scss +16 -0
- package/theme-style/src/popper.scss +4 -2
- package/theme-style/src/progress.scss +1 -1
- package/theme-style/src/reset.scss +3 -3
- package/theme-style/src/result.scss +2 -2
- package/theme-style/src/select-dropdown-v2.scss +1 -1
- package/theme-style/src/select-dropdown.scss +1 -1
- package/theme-style/src/select-v2.scss +2 -2
- package/theme-style/src/select.scss +4 -5
- package/theme-style/src/side-menu.scss +0 -1
- package/theme-style/src/skeleton-item.scss +83 -0
- package/theme-style/src/skeleton.scss +44 -0
- package/theme-style/src/step.scss +10 -10
- package/theme-style/src/tabs.scss +15 -155
- package/theme-style/src/timeline-item.scss +2 -2
- package/theme-style/src/transfer.scss +5 -5
- package/theme-style/src/tree.scss +2 -5
- package/theme-style/src/upload.scss +11 -11
- package/theme-style/src/var.scss +1 -1
- package/theme-style/vft-alert.css +1 -1
- package/theme-style/vft-autocomplete.css +1 -1
- package/theme-style/vft-breadcrumb.css +1 -1
- package/theme-style/vft-calendar.css +1 -1
- package/theme-style/vft-card.css +1 -1
- package/theme-style/vft-carousel.css +1 -1
- package/theme-style/vft-cascader.css +1 -1
- package/theme-style/vft-check-tag.css +1 -1
- package/theme-style/vft-checkbox.css +1 -1
- package/theme-style/vft-color-picker.css +1 -1
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-date-time-select.css +1 -1
- package/theme-style/vft-descriptions-item.css +1 -1
- package/theme-style/vft-descriptions.css +1 -1
- package/theme-style/vft-header-layout.css +1 -1
- package/theme-style/vft-horizontal-menu.css +1 -1
- package/theme-style/vft-image-viewer.css +1 -1
- package/theme-style/vft-input-number.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-popconfirm.css +1 -0
- package/theme-style/vft-popper.css +1 -1
- package/theme-style/vft-progress.css +1 -1
- package/theme-style/vft-reset.css +1 -1
- package/theme-style/vft-result.css +1 -1
- package/theme-style/vft-select-dropdown-v2.css +1 -1
- package/theme-style/vft-select-dropdown.css +1 -1
- package/theme-style/vft-select-v2.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-skeleton-item.css +1 -0
- package/theme-style/vft-skeleton.css +1 -0
- package/theme-style/vft-step.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/theme-style/vft-timeline-item.css +1 -1
- package/theme-style/vft-transfer.css +1 -1
- package/theme-style/vft-tree.css +1 -1
- package/theme-style/vft-upload.css +1 -1
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isEqual as
|
|
3
|
-
import { onClickOutside as
|
|
4
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as ge, ref as v, inject as je, watch as qe, nextTick as j, computed as i, unref as l, provide as He, openBlock as I, createBlock as w, mergeProps as Le, withCtx as q, normalizeClass as m, normalizeStyle as pe, withModifiers as F, createCommentVNode as H, createElementBlock as We, createElementVNode as ee, renderSlot as de, toDisplayString as Je } from "vue";
|
|
2
|
+
import { isEqual as Ge } from "lodash";
|
|
3
|
+
import { onClickOutside as Qe } from "@vueuse/core";
|
|
4
|
+
import { useNamespace as ae } from "../../../hooks/use-namespace/index.js";
|
|
5
5
|
import "@popperjs/core";
|
|
6
6
|
import "../../../hooks/use-z-index/index.js";
|
|
7
|
-
import { isArray as
|
|
8
|
-
import { debugWarn as
|
|
7
|
+
import { isArray as y } from "@vft/utils";
|
|
8
|
+
import { debugWarn as fe } from "../../../utils/error.js";
|
|
9
|
+
import { EVENT_CODE as C } from "../../../constants/aria.js";
|
|
9
10
|
import "../../../utils/ns-cover.js";
|
|
10
11
|
import "../../form/index.js";
|
|
11
|
-
import { VftInput as
|
|
12
|
-
import { VftIcon as
|
|
13
|
-
import { VftTooltip as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
const aa = ["id", "name", "placeholder", "value", "disabled", "readonly"], la = ["id", "name", "placeholder", "value", "disabled", "readonly"], na = ye({
|
|
12
|
+
import { VftInput as Xe } from "../../input/index.js";
|
|
13
|
+
import { VftIcon as L } from "../../icon/index.js";
|
|
14
|
+
import { VftTooltip as Ye } from "../../tooltip/index.js";
|
|
15
|
+
import { valueEquals as ve, parseDate as me, formatter as he } from "../utils.js";
|
|
16
|
+
import { timePickerDefaultProps as Ze } from "./props.js";
|
|
17
|
+
import { useFormItem as _e } from "../../form/hooks/use-form-item.js";
|
|
18
|
+
import { useFormSize as xe } from "../../form/hooks/use-form-common-props.js";
|
|
19
|
+
const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa = ["id", "name", "placeholder", "value", "disabled", "readonly"], la = ge({
|
|
20
20
|
name: "Picker"
|
|
21
|
-
}),
|
|
22
|
-
...
|
|
23
|
-
props:
|
|
21
|
+
}), Ia = /* @__PURE__ */ ge({
|
|
22
|
+
...la,
|
|
23
|
+
props: Ze,
|
|
24
24
|
emits: [
|
|
25
25
|
"update:modelValue",
|
|
26
26
|
"change",
|
|
@@ -31,148 +31,148 @@ const aa = ["id", "name", "placeholder", "value", "disabled", "readonly"], la =
|
|
|
31
31
|
"visible-change",
|
|
32
32
|
"keydown"
|
|
33
33
|
],
|
|
34
|
-
setup(
|
|
35
|
-
const t =
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
e ?
|
|
39
|
-
e && (
|
|
40
|
-
}) : (n.value = null,
|
|
41
|
-
|
|
34
|
+
setup(ye, { expose: be, emit: p }) {
|
|
35
|
+
const t = ye, E = v("zh-cn"), h = ae("date"), D = ae("input"), g = ae("range"), { form: W, formItem: V } = _e(), ke = je("VftPopperOptions", {}), J = v(), b = v(), u = v(!1), G = v(!1), le = v(null);
|
|
36
|
+
let Q = !1, S = !1;
|
|
37
|
+
qe(u, (e) => {
|
|
38
|
+
e ? j(() => {
|
|
39
|
+
e && (le.value = t.modelValue);
|
|
40
|
+
}) : (n.value = null, j(() => {
|
|
41
|
+
X(t.modelValue);
|
|
42
42
|
}));
|
|
43
43
|
});
|
|
44
|
-
const
|
|
45
|
-
(a || !
|
|
46
|
-
},
|
|
47
|
-
if (!
|
|
44
|
+
const X = (e, a) => {
|
|
45
|
+
(a || !ve(e, le.value)) && (p("change", e), t.validateEvent && (V == null || V.validate("change").catch((o) => fe(o))));
|
|
46
|
+
}, k = (e) => {
|
|
47
|
+
if (!ve(t.modelValue, e)) {
|
|
48
48
|
let a;
|
|
49
|
-
|
|
50
|
-
(o) =>
|
|
51
|
-
) : e && (a =
|
|
49
|
+
y(e) ? a = e.map(
|
|
50
|
+
(o) => he(o, t.valueFormat, E.value)
|
|
51
|
+
) : e && (a = he(e, t.valueFormat, E.value)), p("update:modelValue", e && a, E.value);
|
|
52
52
|
}
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
if (
|
|
57
|
-
const e =
|
|
53
|
+
}, Ie = (e) => {
|
|
54
|
+
p("keydown", e);
|
|
55
|
+
}, T = i(() => {
|
|
56
|
+
if (b.value) {
|
|
57
|
+
const e = N.value ? b.value : b.value.$el;
|
|
58
58
|
return Array.from(e.querySelectorAll("input"));
|
|
59
59
|
}
|
|
60
60
|
return [];
|
|
61
|
-
}),
|
|
62
|
-
const r =
|
|
61
|
+
}), Ve = (e, a, o) => {
|
|
62
|
+
const r = T.value;
|
|
63
63
|
r.length && (!o || o === "min" ? (r[0].setSelectionRange(e, a), r[0].focus()) : o === "max" && (r[1].setSelectionRange(e, a), r[1].focus()));
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
}, Pe = () => {
|
|
65
|
+
Y(!0, !0), j(() => {
|
|
66
|
+
S = !1;
|
|
67
67
|
});
|
|
68
|
-
},
|
|
69
|
-
a || (
|
|
68
|
+
}, ne = (e = "", a = !1) => {
|
|
69
|
+
a || (S = !0), u.value = a;
|
|
70
70
|
let o;
|
|
71
|
-
|
|
71
|
+
y(e) ? o = e.map((r) => r.toDate()) : o = e && e.toDate(), n.value = null, k(o);
|
|
72
72
|
}, we = () => {
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
(e == null ? void 0 : e.key) ===
|
|
73
|
+
G.value = !0;
|
|
74
|
+
}, Ce = () => {
|
|
75
|
+
p("visible-change", !0);
|
|
76
|
+
}, Ee = (e) => {
|
|
77
|
+
(e == null ? void 0 : e.key) === C.esc && Y(!0, !0);
|
|
78
|
+
}, De = () => {
|
|
79
|
+
G.value = !1, u.value = !1, S = !1, p("visible-change", !1);
|
|
78
80
|
}, Se = () => {
|
|
79
|
-
Q.value = !1, u.value = !1, T = !1, f("visible-change", !1);
|
|
80
|
-
}, Te = () => {
|
|
81
81
|
u.value = !0;
|
|
82
|
-
},
|
|
82
|
+
}, Te = () => {
|
|
83
83
|
u.value = !1;
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
const [o, r] = l(
|
|
87
|
-
let
|
|
88
|
-
!e &&
|
|
89
|
-
},
|
|
90
|
-
t.readonly ||
|
|
84
|
+
}, Y = (e = !0, a = !1) => {
|
|
85
|
+
S = a;
|
|
86
|
+
const [o, r] = l(T);
|
|
87
|
+
let f = o;
|
|
88
|
+
!e && N.value && (f = r), f && f.focus();
|
|
89
|
+
}, R = (e) => {
|
|
90
|
+
t.readonly || c.value || u.value || S || (u.value = !0, p("focus", e));
|
|
91
91
|
};
|
|
92
|
-
let
|
|
93
|
-
const
|
|
92
|
+
let oe;
|
|
93
|
+
const B = (e) => {
|
|
94
94
|
const a = async () => {
|
|
95
95
|
setTimeout(() => {
|
|
96
96
|
var o;
|
|
97
|
-
|
|
97
|
+
oe === a && (!((o = J.value) != null && o.isFocusInsideContent() && !Q) && T.value.filter((r) => r.contains(document.activeElement)).length === 0 && (_(), u.value = !1, p("blur", e), t.validateEvent && (V == null || V.validate("blur").catch((r) => fe(r)))), Q = !1);
|
|
98
98
|
}, 0);
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
},
|
|
100
|
+
oe = a, a();
|
|
101
|
+
}, c = i(() => t.disabled || (W == null ? void 0 : W.disabled)), $ = i(() => {
|
|
102
102
|
let e;
|
|
103
|
-
if (
|
|
104
|
-
(a) =>
|
|
105
|
-
) : e =
|
|
103
|
+
if (K.value ? s.value.getDefaultValue && (e = s.value.getDefaultValue()) : y(t.modelValue) ? e = t.modelValue.map(
|
|
104
|
+
(a) => me(a, t.valueFormat, E.value)
|
|
105
|
+
) : e = me(t.modelValue, t.valueFormat, E.value), s.value.getRangeAvailableTime) {
|
|
106
106
|
const a = s.value.getRangeAvailableTime(
|
|
107
107
|
e
|
|
108
108
|
);
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
Ge(a, e) || (e = a, k(
|
|
110
|
+
y(e) ? e.map((o) => o.toDate()) : e.toDate()
|
|
111
111
|
));
|
|
112
112
|
}
|
|
113
|
-
return
|
|
114
|
-
}),
|
|
113
|
+
return y(e) && e.some((a) => !a) && (e = []), e;
|
|
114
|
+
}), d = i(() => {
|
|
115
115
|
if (!s.value.panelReady)
|
|
116
116
|
return "";
|
|
117
|
-
const e =
|
|
118
|
-
return
|
|
117
|
+
const e = x($.value);
|
|
118
|
+
return y(n.value) ? [
|
|
119
119
|
n.value[0] || e && e[0] || "",
|
|
120
120
|
n.value[1] || e && e[1] || ""
|
|
121
|
-
] : n.value !== null ? n.value : !
|
|
122
|
-
}),
|
|
123
|
-
() => t.prefixIcon || (
|
|
124
|
-
),
|
|
125
|
-
t.readonly ||
|
|
126
|
-
},
|
|
121
|
+
] : n.value !== null ? n.value : !Me.value && K.value || !u.value && K.value ? "" : e ? te.value ? e.join(", ") : e : "";
|
|
122
|
+
}), Re = i(() => t.type.includes("time")), Me = i(() => t.type.startsWith("time")), te = i(() => t.type === "dates"), O = i(
|
|
123
|
+
() => t.prefixIcon || (Re.value ? "ico-ep:clock" : "ico-ep:calendar")
|
|
124
|
+
), P = v(!1), ue = (e) => {
|
|
125
|
+
t.readonly || c.value || P.value && (e.stopPropagation(), Pe(), k(null), X(null, !0), P.value = !1, u.value = !1, s.value.handleClear && s.value.handleClear());
|
|
126
|
+
}, K = i(() => {
|
|
127
127
|
const { modelValue: e } = t;
|
|
128
|
-
return !e ||
|
|
129
|
-
}),
|
|
128
|
+
return !e || y(e) && !e.filter(Boolean).length;
|
|
129
|
+
}), M = async (e) => {
|
|
130
130
|
var a;
|
|
131
|
-
t.readonly ||
|
|
131
|
+
t.readonly || c.value || (((a = e.target) == null ? void 0 : a.tagName) !== "INPUT" || T.value.includes(document.activeElement)) && (u.value = !0);
|
|
132
|
+
}, re = () => {
|
|
133
|
+
t.readonly || c.value || !K.value && t.clearable && (P.value = !0);
|
|
132
134
|
}, se = () => {
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
w.value = !1;
|
|
136
|
-
}, N = (e) => {
|
|
135
|
+
P.value = !1;
|
|
136
|
+
}, z = (e) => {
|
|
137
137
|
var a;
|
|
138
|
-
t.readonly ||
|
|
139
|
-
},
|
|
138
|
+
t.readonly || c.value || (((a = e.touches[0].target) == null ? void 0 : a.tagName) !== "INPUT" || T.value.includes(document.activeElement)) && (u.value = !0);
|
|
139
|
+
}, N = i(() => t.type.includes("range")), Z = xe(), Fe = i(() => {
|
|
140
140
|
var e, a;
|
|
141
|
-
return (a = (e = l(
|
|
142
|
-
}),
|
|
141
|
+
return (a = (e = l(J)) == null ? void 0 : e.popperRef) == null ? void 0 : a.contentRef;
|
|
142
|
+
}), ie = i(() => {
|
|
143
143
|
var e;
|
|
144
|
-
return l(
|
|
144
|
+
return l(N) ? l(b) : (e = l(b)) == null ? void 0 : e.$el;
|
|
145
145
|
});
|
|
146
|
-
|
|
147
|
-
const a = l(
|
|
146
|
+
Qe(ie, (e) => {
|
|
147
|
+
const a = l(Fe), o = l(ie);
|
|
148
148
|
a && (e.target === a || e.composedPath().includes(a)) || e.target === o || e.composedPath().includes(o) || (u.value = !1);
|
|
149
149
|
});
|
|
150
|
-
const n =
|
|
150
|
+
const n = v(null), _ = () => {
|
|
151
151
|
if (n.value) {
|
|
152
|
-
const e =
|
|
153
|
-
e &&
|
|
154
|
-
|
|
152
|
+
const e = A(d.value);
|
|
153
|
+
e && U(e) && (k(
|
|
154
|
+
y(e) ? e.map((a) => a.toDate()) : e.toDate()
|
|
155
155
|
), n.value = null);
|
|
156
156
|
}
|
|
157
|
-
n.value === "" && (
|
|
158
|
-
},
|
|
159
|
-
if (t.readonly ||
|
|
157
|
+
n.value === "" && (k(null), X(null), n.value = null);
|
|
158
|
+
}, A = (e) => e ? s.value.parseUserInput(e) : null, x = (e) => e ? s.value.formatToString(e) : null, U = (e) => s.value.isValidValue(e), ce = async (e) => {
|
|
159
|
+
if (t.readonly || c.value)
|
|
160
160
|
return;
|
|
161
161
|
const { code: a } = e;
|
|
162
|
-
if (
|
|
162
|
+
if (Ie(e), a === C.esc) {
|
|
163
163
|
u.value === !0 && (u.value = !1, e.preventDefault(), e.stopPropagation());
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
|
-
if (a ===
|
|
166
|
+
if (a === C.down && (s.value.handleFocusPicker && (e.preventDefault(), e.stopPropagation()), u.value === !1 && (u.value = !0, await j()), s.value.handleFocusPicker)) {
|
|
167
167
|
s.value.handleFocusPicker();
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
|
-
if (a ===
|
|
171
|
-
|
|
170
|
+
if (a === C.tab) {
|
|
171
|
+
Q = !0;
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
|
-
if (a ===
|
|
175
|
-
(n.value === null || n.value === "" ||
|
|
174
|
+
if (a === C.enter || a === C.numpadEnter) {
|
|
175
|
+
(n.value === null || n.value === "" || U(A(d.value))) && (_(), u.value = !1), e.stopPropagation();
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
178
|
if (n.value) {
|
|
@@ -180,73 +180,73 @@ const aa = ["id", "name", "placeholder", "value", "disabled", "readonly"], la =
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
s.value.handleKeydownInput && s.value.handleKeydownInput(e);
|
|
183
|
-
},
|
|
183
|
+
}, Be = (e) => {
|
|
184
184
|
n.value = e, u.value || (u.value = !0);
|
|
185
|
-
},
|
|
185
|
+
}, $e = (e) => {
|
|
186
186
|
const a = e.target;
|
|
187
187
|
n.value ? n.value = [a.value, n.value[1]] : n.value = [a.value, null];
|
|
188
|
-
},
|
|
188
|
+
}, Oe = (e) => {
|
|
189
189
|
const a = e.target;
|
|
190
190
|
n.value ? n.value = [n.value[0], a.value] : n.value = [null, a.value];
|
|
191
|
-
},
|
|
191
|
+
}, Ke = () => {
|
|
192
192
|
var r;
|
|
193
|
-
const e = n.value, a =
|
|
193
|
+
const e = n.value, a = A(e && e[0]), o = l($);
|
|
194
194
|
if (a && a.isValid()) {
|
|
195
195
|
n.value = [
|
|
196
|
-
|
|
197
|
-
((r =
|
|
196
|
+
x(a),
|
|
197
|
+
((r = d.value) == null ? void 0 : r[1]) || null
|
|
198
198
|
];
|
|
199
|
-
const
|
|
200
|
-
|
|
199
|
+
const f = [a, o && (o[1] || null)];
|
|
200
|
+
U(f) && (k(f), n.value = null);
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, ze = () => {
|
|
203
203
|
var r;
|
|
204
|
-
const e = l(n), a =
|
|
204
|
+
const e = l(n), a = A(e && e[1]), o = l($);
|
|
205
205
|
if (a && a.isValid()) {
|
|
206
206
|
n.value = [
|
|
207
|
-
((r = l(
|
|
208
|
-
|
|
207
|
+
((r = l(d)) == null ? void 0 : r[0]) || null,
|
|
208
|
+
x(a)
|
|
209
209
|
];
|
|
210
|
-
const
|
|
211
|
-
|
|
210
|
+
const f = [o && o[0], a];
|
|
211
|
+
U(f) && (k(f), n.value = null);
|
|
212
212
|
}
|
|
213
|
-
}, s =
|
|
213
|
+
}, s = v({}), Ne = (e) => {
|
|
214
214
|
s.value[e[0]] = e[1], s.value.panelReady = !0;
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
},
|
|
218
|
-
|
|
215
|
+
}, Ae = (e) => {
|
|
216
|
+
p("calendar-change", e);
|
|
217
|
+
}, Ue = (e, a, o) => {
|
|
218
|
+
p("panel-change", e, a, o);
|
|
219
219
|
};
|
|
220
|
-
return
|
|
220
|
+
return He("EP_PICKER_BASE", {
|
|
221
221
|
props: t
|
|
222
|
-
}),
|
|
222
|
+
}), be({
|
|
223
223
|
/**
|
|
224
224
|
* @description focus input box.
|
|
225
225
|
*/
|
|
226
|
-
focus:
|
|
226
|
+
focus: Y,
|
|
227
227
|
/**
|
|
228
228
|
* @description emit focus event
|
|
229
229
|
*/
|
|
230
|
-
handleFocusInput:
|
|
230
|
+
handleFocusInput: R,
|
|
231
231
|
/**
|
|
232
232
|
* @description emit blur event
|
|
233
233
|
*/
|
|
234
|
-
handleBlurInput:
|
|
234
|
+
handleBlurInput: B,
|
|
235
235
|
/**
|
|
236
236
|
* @description opens picker
|
|
237
237
|
*/
|
|
238
|
-
handleOpen:
|
|
238
|
+
handleOpen: Se,
|
|
239
239
|
/**
|
|
240
240
|
* @description closes picker
|
|
241
241
|
*/
|
|
242
|
-
handleClose:
|
|
242
|
+
handleClose: Te,
|
|
243
243
|
/**
|
|
244
244
|
* @description pick item manually
|
|
245
245
|
*/
|
|
246
|
-
onPick:
|
|
247
|
-
}), (e, a) => (
|
|
246
|
+
onPick: ne
|
|
247
|
+
}), (e, a) => (I(), w(l(Ye), Le({
|
|
248
248
|
ref_key: "refPopper",
|
|
249
|
-
ref:
|
|
249
|
+
ref: J,
|
|
250
250
|
visible: u.value,
|
|
251
251
|
effect: "light",
|
|
252
252
|
pure: "",
|
|
@@ -254,178 +254,162 @@ const aa = ["id", "name", "placeholder", "value", "disabled", "readonly"], la =
|
|
|
254
254
|
}, e.$attrs, {
|
|
255
255
|
role: "dialog",
|
|
256
256
|
teleported: "",
|
|
257
|
-
transition: `${l(
|
|
258
|
-
"popper-class": [`${l(
|
|
259
|
-
"popper-options": l(
|
|
257
|
+
transition: `${l(h).namespace.value}-zoom-in-top`,
|
|
258
|
+
"popper-class": [`${l(h).namespace.value}-picker__popper`, e.popperClass],
|
|
259
|
+
"popper-options": l(ke),
|
|
260
260
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
261
261
|
"gpu-acceleration": !1,
|
|
262
262
|
"stop-popper-mouse-event": !1,
|
|
263
263
|
"hide-after": 0,
|
|
264
264
|
persistent: "",
|
|
265
265
|
onBeforeShow: we,
|
|
266
|
-
onShow:
|
|
267
|
-
onHide:
|
|
266
|
+
onShow: Ce,
|
|
267
|
+
onHide: De
|
|
268
268
|
}), {
|
|
269
|
-
default:
|
|
270
|
-
l(
|
|
269
|
+
default: q(() => [
|
|
270
|
+
l(N) ? (I(), We("div", {
|
|
271
271
|
key: 1,
|
|
272
272
|
ref_key: "inputRef",
|
|
273
|
-
ref:
|
|
274
|
-
class:
|
|
275
|
-
l(
|
|
276
|
-
l(
|
|
277
|
-
l(
|
|
278
|
-
l(
|
|
279
|
-
l(
|
|
280
|
-
l(
|
|
281
|
-
l(
|
|
273
|
+
ref: b,
|
|
274
|
+
class: m([
|
|
275
|
+
l(h).b("editor"),
|
|
276
|
+
l(h).bm("editor", e.type),
|
|
277
|
+
l(D).e("wrapper"),
|
|
278
|
+
l(h).is("disabled", l(c)),
|
|
279
|
+
l(h).is("active", u.value),
|
|
280
|
+
l(g).b("editor"),
|
|
281
|
+
l(Z) ? l(g).bm("editor", l(Z)) : "",
|
|
282
282
|
e.$attrs.class
|
|
283
283
|
]),
|
|
284
|
-
style:
|
|
285
|
-
onClick:
|
|
286
|
-
onMouseenter:
|
|
287
|
-
onMouseleave:
|
|
288
|
-
onTouchstart:
|
|
289
|
-
onKeydown:
|
|
284
|
+
style: pe(e.$attrs.style),
|
|
285
|
+
onClick: R,
|
|
286
|
+
onMouseenter: re,
|
|
287
|
+
onMouseleave: se,
|
|
288
|
+
onTouchstart: z,
|
|
289
|
+
onKeydown: ce
|
|
290
290
|
}, [
|
|
291
|
-
l(
|
|
291
|
+
l(O) ? (I(), w(l(L), {
|
|
292
292
|
key: 0,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
]),
|
|
300
|
-
_: 1
|
|
301
|
-
}, 8, ["class", "onMousedown"])) : L("", !0),
|
|
302
|
-
ae("input", {
|
|
293
|
+
icon: l(O),
|
|
294
|
+
class: m([l(D).e("icon"), l(g).e("icon")]),
|
|
295
|
+
onMousedown: F(M, ["prevent"]),
|
|
296
|
+
onTouchstart: z
|
|
297
|
+
}, null, 8, ["icon", "class", "onMousedown"])) : H("", !0),
|
|
298
|
+
ee("input", {
|
|
303
299
|
id: e.id && e.id[0],
|
|
304
300
|
autocomplete: "off",
|
|
305
301
|
name: e.name && e.name[0],
|
|
306
302
|
placeholder: e.startPlaceholder,
|
|
307
|
-
value: l(
|
|
308
|
-
disabled: l(
|
|
303
|
+
value: l(d) && l(d)[0],
|
|
304
|
+
disabled: l(c),
|
|
309
305
|
readonly: !e.editable || e.readonly,
|
|
310
|
-
class:
|
|
311
|
-
onMousedown:
|
|
312
|
-
onInput:
|
|
313
|
-
onChange:
|
|
314
|
-
onFocus:
|
|
315
|
-
onBlur:
|
|
316
|
-
}, null, 42,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
class:
|
|
320
|
-
},
|
|
306
|
+
class: m(l(g).b("input")),
|
|
307
|
+
onMousedown: M,
|
|
308
|
+
onInput: $e,
|
|
309
|
+
onChange: Ke,
|
|
310
|
+
onFocus: R,
|
|
311
|
+
onBlur: B
|
|
312
|
+
}, null, 42, ea),
|
|
313
|
+
de(e.$slots, "range-separator", {}, () => [
|
|
314
|
+
ee("span", {
|
|
315
|
+
class: m(l(g).b("separator"))
|
|
316
|
+
}, Je(e.rangeSeparator), 3)
|
|
321
317
|
]),
|
|
322
|
-
|
|
318
|
+
ee("input", {
|
|
323
319
|
id: e.id && e.id[1],
|
|
324
320
|
autocomplete: "off",
|
|
325
321
|
name: e.name && e.name[1],
|
|
326
322
|
placeholder: e.endPlaceholder,
|
|
327
|
-
value: l(
|
|
328
|
-
disabled: l(
|
|
323
|
+
value: l(d) && l(d)[1],
|
|
324
|
+
disabled: l(c),
|
|
329
325
|
readonly: !e.editable || e.readonly,
|
|
330
|
-
class:
|
|
331
|
-
onMousedown:
|
|
332
|
-
onFocus:
|
|
333
|
-
onBlur:
|
|
334
|
-
onInput:
|
|
335
|
-
onChange:
|
|
336
|
-
}, null, 42,
|
|
337
|
-
e.clearIcon ? (
|
|
326
|
+
class: m(l(g).b("input")),
|
|
327
|
+
onMousedown: M,
|
|
328
|
+
onFocus: R,
|
|
329
|
+
onBlur: B,
|
|
330
|
+
onInput: Oe,
|
|
331
|
+
onChange: ze
|
|
332
|
+
}, null, 42, aa),
|
|
333
|
+
e.clearIcon ? (I(), w(l(L), {
|
|
338
334
|
key: 1,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
l(
|
|
335
|
+
icon: e.clearIcon,
|
|
336
|
+
class: m([
|
|
337
|
+
l(D).e("icon"),
|
|
338
|
+
l(g).e("close-icon"),
|
|
342
339
|
{
|
|
343
|
-
[l(
|
|
340
|
+
[l(g).e("close-icon--hidden")]: !P.value
|
|
344
341
|
}
|
|
345
342
|
]),
|
|
346
|
-
onClick:
|
|
347
|
-
},
|
|
348
|
-
|
|
349
|
-
(c(), d(H(e.clearIcon)))
|
|
350
|
-
]),
|
|
351
|
-
_: 1
|
|
352
|
-
}, 8, ["class"])) : L("", !0)
|
|
353
|
-
], 38)) : (c(), d(l(Ye), {
|
|
343
|
+
onClick: ue
|
|
344
|
+
}, null, 8, ["icon", "class"])) : H("", !0)
|
|
345
|
+
], 38)) : (I(), w(l(Xe), {
|
|
354
346
|
key: 0,
|
|
355
347
|
id: e.id,
|
|
356
348
|
ref_key: "inputRef",
|
|
357
|
-
ref:
|
|
349
|
+
ref: b,
|
|
358
350
|
"container-role": "combobox",
|
|
359
|
-
"model-value": l(
|
|
351
|
+
"model-value": l(d),
|
|
360
352
|
name: e.name,
|
|
361
|
-
size: l(
|
|
362
|
-
disabled: l(
|
|
353
|
+
size: l(Z),
|
|
354
|
+
disabled: l(c),
|
|
363
355
|
placeholder: e.placeholder,
|
|
364
|
-
class:
|
|
365
|
-
style:
|
|
366
|
-
readonly: !e.editable || e.readonly || l(
|
|
356
|
+
class: m([l(h).b("editor"), l(h).bm("editor", e.type), e.$attrs.class]),
|
|
357
|
+
style: pe(e.$attrs.style),
|
|
358
|
+
readonly: !e.editable || e.readonly || l(te) || e.type === "week",
|
|
367
359
|
label: e.label,
|
|
368
360
|
tabindex: e.tabindex,
|
|
369
361
|
"validate-event": !1,
|
|
370
|
-
onInput:
|
|
371
|
-
onFocus:
|
|
372
|
-
onBlur:
|
|
362
|
+
onInput: Be,
|
|
363
|
+
onFocus: R,
|
|
364
|
+
onBlur: B,
|
|
373
365
|
onKeydown: (
|
|
374
366
|
//
|
|
375
|
-
|
|
367
|
+
ce
|
|
376
368
|
),
|
|
377
|
-
onChange:
|
|
378
|
-
onMousedown:
|
|
379
|
-
onMouseenter:
|
|
380
|
-
onMouseleave:
|
|
381
|
-
onTouchstart:
|
|
382
|
-
onClick: a[0] || (a[0] =
|
|
369
|
+
onChange: _,
|
|
370
|
+
onMousedown: M,
|
|
371
|
+
onMouseenter: re,
|
|
372
|
+
onMouseleave: se,
|
|
373
|
+
onTouchstart: z,
|
|
374
|
+
onClick: a[0] || (a[0] = F(() => {
|
|
383
375
|
}, ["stop"]))
|
|
384
376
|
}, {
|
|
385
|
-
prefix:
|
|
386
|
-
l(
|
|
377
|
+
prefix: q(() => [
|
|
378
|
+
l(O) ? (I(), w(l(L), {
|
|
387
379
|
key: 0,
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
(c(), d(H(l(K))))
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
}, 8, ["class", "onMousedown"])) : L("", !0)
|
|
380
|
+
icon: l(O),
|
|
381
|
+
class: m(l(D).e("icon")),
|
|
382
|
+
onMousedown: F(M, ["prevent"]),
|
|
383
|
+
onTouchstart: z
|
|
384
|
+
}, null, 8, ["icon", "class", "onMousedown"])) : H("", !0)
|
|
397
385
|
]),
|
|
398
|
-
suffix:
|
|
399
|
-
|
|
386
|
+
suffix: q(() => [
|
|
387
|
+
P.value && e.clearIcon ? (I(), w(l(L), {
|
|
400
388
|
key: 0,
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
(c(), d(H(e.clearIcon)))
|
|
406
|
-
]),
|
|
407
|
-
_: 1
|
|
408
|
-
}, 8, ["class", "onClick"])) : L("", !0)
|
|
389
|
+
icon: e.clearIcon,
|
|
390
|
+
class: m(`${l(D).e("icon")} clear-icon`),
|
|
391
|
+
onClick: F(ue, ["stop"])
|
|
392
|
+
}, null, 8, ["icon", "class", "onClick"])) : H("", !0)
|
|
409
393
|
]),
|
|
410
394
|
_: 1
|
|
411
395
|
}, 8, ["id", "model-value", "name", "size", "disabled", "placeholder", "class", "style", "readonly", "label", "tabindex", "onKeydown"]))
|
|
412
396
|
]),
|
|
413
|
-
content:
|
|
414
|
-
|
|
397
|
+
content: q(() => [
|
|
398
|
+
de(e.$slots, "default", {
|
|
415
399
|
visible: u.value,
|
|
416
|
-
actualVisible:
|
|
417
|
-
parsedValue: l(
|
|
400
|
+
actualVisible: G.value,
|
|
401
|
+
parsedValue: l($),
|
|
418
402
|
format: e.format,
|
|
419
403
|
unlinkPanels: e.unlinkPanels,
|
|
420
404
|
type: e.type,
|
|
421
405
|
defaultValue: e.defaultValue,
|
|
422
|
-
onPick:
|
|
423
|
-
onSelectRange:
|
|
424
|
-
onSetPickerOption:
|
|
425
|
-
onCalendarChange:
|
|
426
|
-
onPanelChange:
|
|
427
|
-
onKeydown:
|
|
428
|
-
onMousedown: a[1] || (a[1] =
|
|
406
|
+
onPick: ne,
|
|
407
|
+
onSelectRange: Ve,
|
|
408
|
+
onSetPickerOption: Ne,
|
|
409
|
+
onCalendarChange: Ae,
|
|
410
|
+
onPanelChange: Ue,
|
|
411
|
+
onKeydown: Ee,
|
|
412
|
+
onMousedown: a[1] || (a[1] = F(() => {
|
|
429
413
|
}, ["stop"]))
|
|
430
414
|
})
|
|
431
415
|
]),
|
|
@@ -434,5 +418,5 @@ const aa = ["id", "name", "placeholder", "value", "disabled", "readonly"], la =
|
|
|
434
418
|
}
|
|
435
419
|
});
|
|
436
420
|
export {
|
|
437
|
-
|
|
421
|
+
Ia as default
|
|
438
422
|
};
|