vft 0.0.74 → 0.0.77
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/horizontal-menu/style/css.js +3 -0
- package/es/components/horizontal-menu/style/index.js +3 -0
- 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/style/css.js +3 -0
- package/es/components/menu/style/index.js +3 -0
- 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/result/result.vue2.js +10 -2
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +1 -1
- 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/side-menu/style/css.js +3 -0
- package/es/components/side-menu/style/index.js +3 -0
- 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/horizontal-menu/style/css.cjs +1 -1
- package/lib/components/horizontal-menu/style/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/style/css.cjs +1 -1
- package/lib/components/menu/style/index.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/result/result.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-item.vue2.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/side-menu/style/css.cjs +1 -1
- package/lib/components/side-menu/style/index.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 +2 -2
- 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/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-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,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as c, provide as p, reactive as u, toRef as O, ref as P, createVNode as n, mergeProps as
|
|
1
|
+
import { defineComponent as c, provide as p, reactive as u, toRef as O, ref as P, createVNode as n, mergeProps as x } from "vue";
|
|
2
2
|
import r from "dayjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import _ from "dayjs/plugin/customParseFormat.js";
|
|
4
|
+
import k from "dayjs/plugin/advancedFormat.js";
|
|
5
|
+
import E from "dayjs/plugin/localeData.js";
|
|
6
6
|
import T from "dayjs/plugin/weekOfYear.js";
|
|
7
7
|
import A from "dayjs/plugin/weekYear.js";
|
|
8
8
|
import C from "dayjs/plugin/dayOfYear.js";
|
|
9
9
|
import D from "dayjs/plugin/isSameOrAfter.js";
|
|
10
|
-
import
|
|
11
|
-
import { useNamespace as
|
|
10
|
+
import V from "dayjs/plugin/isSameOrBefore.js";
|
|
11
|
+
import { useNamespace as v } from "../../hooks/use-namespace/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "lodash";
|
|
14
14
|
import "../../hooks/use-z-index/index.js";
|
|
@@ -16,31 +16,31 @@ import "@vueuse/core";
|
|
|
16
16
|
import "@vft/utils";
|
|
17
17
|
import "../../utils/ns-cover.js";
|
|
18
18
|
import "../time-picker/index.js";
|
|
19
|
-
import { ROOT_PICKER_INJECTION_KEY as
|
|
20
|
-
import { datePickerProps as
|
|
21
|
-
import { getPanel as
|
|
22
|
-
import { DEFAULT_FORMATS_DATEPICKER as
|
|
19
|
+
import { ROOT_PICKER_INJECTION_KEY as y } from "./constants.js";
|
|
20
|
+
import { datePickerProps as F } from "./props/date-picker.js";
|
|
21
|
+
import { getPanel as R } from "./panel-utils.js";
|
|
22
|
+
import { DEFAULT_FORMATS_DATEPICKER as N, DEFAULT_FORMATS_DATE as g } from "../time-picker/constants.js";
|
|
23
23
|
import h from "../time-picker/common/picker.vue2.js";
|
|
24
|
+
r.extend(E);
|
|
24
25
|
r.extend(k);
|
|
25
26
|
r.extend(_);
|
|
26
|
-
r.extend(x);
|
|
27
27
|
r.extend(T);
|
|
28
28
|
r.extend(A);
|
|
29
29
|
r.extend(C);
|
|
30
30
|
r.extend(D);
|
|
31
|
-
r.extend(
|
|
31
|
+
r.extend(V);
|
|
32
32
|
const te = /* @__PURE__ */ c({
|
|
33
|
-
name: "
|
|
33
|
+
name: "VftDatePicker",
|
|
34
34
|
install: null,
|
|
35
|
-
props:
|
|
35
|
+
props: F,
|
|
36
36
|
emits: ["update:modelValue"],
|
|
37
37
|
setup(o, {
|
|
38
38
|
expose: i,
|
|
39
39
|
emit: f,
|
|
40
40
|
slots: a
|
|
41
41
|
}) {
|
|
42
|
-
const d =
|
|
43
|
-
p("
|
|
42
|
+
const d = v("picker-panel");
|
|
43
|
+
p("VftPopperOptions", u(O(o, "popperOptions"))), p(y, {
|
|
44
44
|
slots: a,
|
|
45
45
|
pickerNs: d
|
|
46
46
|
});
|
|
@@ -63,8 +63,8 @@ const te = /* @__PURE__ */ c({
|
|
|
63
63
|
f("update:modelValue", e);
|
|
64
64
|
};
|
|
65
65
|
return () => {
|
|
66
|
-
const e = o.format ?? (
|
|
67
|
-
return n(h,
|
|
66
|
+
const e = o.format ?? (N[o.type] || g), m = R(o.type);
|
|
67
|
+
return n(h, x(o, {
|
|
68
68
|
format: e,
|
|
69
69
|
type: o.type,
|
|
70
70
|
ref: t,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import o from "./date-picker.js";
|
|
2
|
-
import { ROOT_PICKER_INJECTION_KEY as
|
|
3
|
-
import { datePickerProps as
|
|
2
|
+
import { ROOT_PICKER_INJECTION_KEY as n, datePickerConfig as P } from "./constants.js";
|
|
3
|
+
import { datePickerProps as m } from "./props/date-picker.js";
|
|
4
4
|
const e = o;
|
|
5
5
|
e.install = (t) => {
|
|
6
6
|
t.component(e.name, e);
|
|
7
7
|
};
|
|
8
8
|
const a = e;
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
n as ROOT_PICKER_INJECTION_KEY,
|
|
11
11
|
a as VftDatePicker,
|
|
12
|
-
|
|
12
|
+
P as datePickerConfig,
|
|
13
|
+
m as datePickerProps,
|
|
13
14
|
e as default
|
|
14
15
|
};
|
|
@@ -2,9 +2,9 @@ import { isArray as a } from "@vft/utils";
|
|
|
2
2
|
import "vue";
|
|
3
3
|
import { buildProps as r, definePropType as e } from "../../../utils/vue/props/runtime.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
|
+
import { datePickTypes as o } from "../../../constants/date.js";
|
|
5
6
|
import "../../../utils/ns-cover.js";
|
|
6
7
|
import "lodash";
|
|
7
|
-
import { datePickTypes as o } from "../../../constants/date.js";
|
|
8
8
|
const p = ["date", "dates", "year", "month", "week", "range"], y = r({
|
|
9
9
|
disabledDate: {
|
|
10
10
|
type: e(Function)
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as F, ref as u, computed as A, createVNode as e, Fragment as E } from "vue";
|
|
2
|
+
import { useNamespace as S } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import { isArray as
|
|
7
|
+
import { isArray as Y } from "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
9
|
import v from "dayjs";
|
|
10
|
-
import { VftIcon as
|
|
11
|
-
import { VftDropdown as
|
|
12
|
-
import
|
|
10
|
+
import { VftIcon as k } from "../icon/index.js";
|
|
11
|
+
import { VftDropdown as q } from "../dropdown/index.js";
|
|
12
|
+
import z from "../date-picker/index.js";
|
|
13
13
|
const n = (
|
|
14
14
|
/* hoist-static*/
|
|
15
|
-
|
|
16
|
-
),
|
|
15
|
+
S("date-time-select")
|
|
16
|
+
), B = F({
|
|
17
17
|
name: n.b()
|
|
18
|
-
}),
|
|
19
|
-
...
|
|
18
|
+
}), ae = /* @__PURE__ */ F({
|
|
19
|
+
...B,
|
|
20
20
|
props: {
|
|
21
21
|
dateList: {
|
|
22
22
|
default: []
|
|
@@ -26,89 +26,89 @@ const n = (
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
emits: ["change"],
|
|
29
|
-
setup(
|
|
30
|
-
emit:
|
|
29
|
+
setup(d, {
|
|
30
|
+
emit: b
|
|
31
31
|
}) {
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const C = u(!1), g = u(), x = u("请选择时间"), t = u("");
|
|
33
|
+
function H(a) {
|
|
34
34
|
const {
|
|
35
|
-
count:
|
|
36
|
-
type:
|
|
37
|
-
format:
|
|
38
|
-
dateRange:
|
|
35
|
+
count: r,
|
|
36
|
+
type: h,
|
|
37
|
+
format: f,
|
|
38
|
+
dateRange: o = !0,
|
|
39
39
|
startOfType: O,
|
|
40
40
|
endOfType: V
|
|
41
41
|
} = a;
|
|
42
|
-
let m,
|
|
43
|
-
const p =
|
|
44
|
-
let
|
|
45
|
-
const R = (
|
|
46
|
-
let
|
|
47
|
-
return
|
|
42
|
+
let m, l, L;
|
|
43
|
+
const p = f || d.defaultFormat;
|
|
44
|
+
let s = v().format(p);
|
|
45
|
+
const R = (i, j = !0) => {
|
|
46
|
+
let D, T = j ? "startOf" : "endOf";
|
|
47
|
+
return i === "week" ? D = v().add(r, i)[T](i).add(1, "day").format(p) : D = v().add(r, i)[T](i).format(p), D;
|
|
48
48
|
};
|
|
49
|
-
O && (m = R(O)), V && (
|
|
50
|
-
let c = m ||
|
|
51
|
-
return
|
|
49
|
+
O && (m = R(O)), V && (l = R(V, !1)), L = v().add(r, h).format(p);
|
|
50
|
+
let c = m || l || L;
|
|
51
|
+
return o ? m && l ? [c, l] : r > 0 ? [c !== l && l || s, c] : r === 0 ? [m || s, l || s] : [c, c !== l && l || s] : c;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
53
|
+
function I(a, r) {
|
|
54
|
+
g.value = a, y.value.handleClose(), t.value = H(r), b("change", t.value);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function M() {
|
|
57
57
|
t.value = "";
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const w = A(() => {
|
|
60
60
|
var a;
|
|
61
|
-
return
|
|
62
|
-
}), y =
|
|
63
|
-
function
|
|
64
|
-
|
|
61
|
+
return Y(t.value) && ((a = t.value) != null && a.length) ? t.value[0] + " - " + t.value[1] : t.value;
|
|
62
|
+
}), y = u();
|
|
63
|
+
function N(a) {
|
|
64
|
+
C.value = a;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
const a = b(f.dateList[0]) ? f.dateList : [f.dateList];
|
|
66
|
+
const P = () => {
|
|
67
|
+
const a = Y(d.dateList[0]) ? d.dateList : [d.dateList];
|
|
69
68
|
return e("div", {
|
|
70
69
|
class: n.e("content")
|
|
71
|
-
}, [e(
|
|
72
|
-
key:
|
|
70
|
+
}, [e(E, null, [a.map((r, h) => e("div", {
|
|
71
|
+
key: h,
|
|
73
72
|
class: n.e("item-container")
|
|
74
|
-
}, [
|
|
75
|
-
class: [n.e("item"), n.is("active",
|
|
76
|
-
onClick: () =>
|
|
73
|
+
}, [r.map((f, o) => e("div", {
|
|
74
|
+
class: [n.e("item"), n.is("active", g.value === o)],
|
|
75
|
+
onClick: () => I(o, f)
|
|
77
76
|
}, [e("span", {
|
|
78
|
-
key:
|
|
79
|
-
}, [
|
|
77
|
+
key: o
|
|
78
|
+
}, [f.text]), g.value === o ? e(k, {
|
|
80
79
|
icon: "ico-ep:check"
|
|
81
|
-
}, null) : null])), e(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
placeholder: "
|
|
80
|
+
}, null) : null])), e(z, {
|
|
81
|
+
type: "daterange",
|
|
82
|
+
"range-separator": "To",
|
|
83
|
+
"start-placeholder": "Start date",
|
|
84
|
+
"end-placeholder": "End date"
|
|
85
85
|
}, null)]))])]);
|
|
86
86
|
};
|
|
87
|
-
return () => e(
|
|
87
|
+
return () => e(q, {
|
|
88
88
|
ref: y,
|
|
89
89
|
trigger: "click",
|
|
90
90
|
teleported: !1,
|
|
91
91
|
class: n.b(),
|
|
92
|
-
onVisibleChange:
|
|
92
|
+
onVisibleChange: N
|
|
93
93
|
}, {
|
|
94
94
|
default: () => [e("span", {
|
|
95
95
|
class: [n.e("trigger"), "cursor-pointer"]
|
|
96
96
|
}, [e("span", {
|
|
97
|
-
class: [
|
|
98
|
-
}, [
|
|
99
|
-
onClick:
|
|
97
|
+
class: [w.value ? "text" : "placeholder"]
|
|
98
|
+
}, [w.value || x.value]), t.value ? e(k, {
|
|
99
|
+
onClick: M,
|
|
100
100
|
icon: "ico-ep:circle-close",
|
|
101
101
|
class: "hover:text-black"
|
|
102
|
-
}, null)
|
|
102
|
+
}, null) : null, t.value ? e(k, {
|
|
103
103
|
icon: "ico-ep:arrow-down",
|
|
104
104
|
class: [{
|
|
105
|
-
"rotate-180":
|
|
105
|
+
"rotate-180": C.value
|
|
106
106
|
}]
|
|
107
|
-
}, null)
|
|
108
|
-
dropdown: () =>
|
|
107
|
+
}, null) : null])],
|
|
108
|
+
dropdown: () => P()
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
export {
|
|
113
|
-
|
|
113
|
+
ae as default
|
|
114
114
|
};
|
|
@@ -6,14 +6,14 @@ import "lodash";
|
|
|
6
6
|
import "../../hooks/use-z-index/index.js";
|
|
7
7
|
import "@vueuse/core";
|
|
8
8
|
import { isBoolean as Y } from "@vft/utils";
|
|
9
|
+
import { UPDATE_MODEL_EVENT as Z } from "../../constants/event.js";
|
|
9
10
|
import "../../utils/ns-cover.js";
|
|
10
|
-
import { useSameTarget as
|
|
11
|
-
import
|
|
11
|
+
import { useSameTarget as _ } from "../../hooks/use-same-target/index.js";
|
|
12
|
+
import ee from "../focus-trap/focus-trap.vue.js";
|
|
12
13
|
import "../focus-trap/utils.js";
|
|
13
|
-
import
|
|
14
|
-
import { dialogInjectionKey as
|
|
15
|
-
import { useDialog as
|
|
16
|
-
import { UPDATE_MODEL_EVENT as le } from "../../constants/event.js";
|
|
14
|
+
import oe from "./dialog-content.vue2.js";
|
|
15
|
+
import { dialogInjectionKey as te } from "./constants.js";
|
|
16
|
+
import { useDialog as le } from "./hooks/use-dialog.js";
|
|
17
17
|
const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
18
18
|
/* hoist-static*/
|
|
19
19
|
X("dialog")
|
|
@@ -48,7 +48,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
48
48
|
trapFocus: { type: Boolean, default: !1 }
|
|
49
49
|
},
|
|
50
50
|
emits: {
|
|
51
|
-
[
|
|
51
|
+
[Z]: (o) => Y(o),
|
|
52
52
|
open: () => !0,
|
|
53
53
|
opened: () => !0,
|
|
54
54
|
close: () => !0,
|
|
@@ -74,8 +74,8 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
74
74
|
onCloseAutoFocus: D,
|
|
75
75
|
onCloseRequested: L,
|
|
76
76
|
onFocusoutPrevented: S
|
|
77
|
-
} =
|
|
78
|
-
O(
|
|
77
|
+
} = le(F.props, c);
|
|
78
|
+
O(te, {
|
|
79
79
|
dialogRef: c,
|
|
80
80
|
headerRef: A,
|
|
81
81
|
bodyId: y,
|
|
@@ -83,7 +83,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
83
83
|
rendered: C,
|
|
84
84
|
style: w
|
|
85
85
|
});
|
|
86
|
-
const l =
|
|
86
|
+
const l = _(M), V = P(() => o.draggable && !o.fullscreen);
|
|
87
87
|
return k({
|
|
88
88
|
/** @description whether the dialog is visible */
|
|
89
89
|
visible: u,
|
|
@@ -121,7 +121,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
121
121
|
onMouseup: a[2] || (a[2] = //@ts-ignore
|
|
122
122
|
(...s) => e(l).onMouseup && e(l).onMouseup(...s))
|
|
123
123
|
}, [
|
|
124
|
-
f(e(
|
|
124
|
+
f(e(ee), {
|
|
125
125
|
loop: "",
|
|
126
126
|
trapped: e(u),
|
|
127
127
|
"focus-start-el": "container",
|
|
@@ -131,7 +131,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
|
|
|
131
131
|
onReleaseRequested: e(L)
|
|
132
132
|
}, {
|
|
133
133
|
default: n(() => [
|
|
134
|
-
e(C) ? (v(), b(
|
|
134
|
+
e(C) ? (v(), b(oe, G({
|
|
135
135
|
key: 0,
|
|
136
136
|
ref_key: "dialogContentRef",
|
|
137
137
|
ref: m
|
|
@@ -6,9 +6,9 @@ import "lodash";
|
|
|
6
6
|
import { useZIndex as G } from "../../../hooks/use-z-index/index.js";
|
|
7
7
|
import { useId as E } from "../../../hooks/use-id/index.js";
|
|
8
8
|
import { addUnit as j } from "@vft/utils";
|
|
9
|
+
import { UPDATE_MODEL_EVENT as B } from "../../../constants/event.js";
|
|
9
10
|
import "../../../utils/ns-cover.js";
|
|
10
|
-
import { useLockscreen as
|
|
11
|
-
import { UPDATE_MODEL_EVENT as H } from "../../../constants/event.js";
|
|
11
|
+
import { useLockscreen as H } from "../../../hooks/use-lockscreen/index.js";
|
|
12
12
|
import "../../config-provider/index.js";
|
|
13
13
|
import { useGlobalConfig as J } from "../../config-provider/hooks/use-global-config.js";
|
|
14
14
|
const ue = (e, a) => {
|
|
@@ -24,7 +24,7 @@ const ue = (e, a) => {
|
|
|
24
24
|
n("opened");
|
|
25
25
|
}
|
|
26
26
|
function L() {
|
|
27
|
-
n("closed"), n(
|
|
27
|
+
n("closed"), n(B, !1), e.destroyOnClose && (f.value = !1);
|
|
28
28
|
}
|
|
29
29
|
function M() {
|
|
30
30
|
n("close");
|
|
@@ -60,7 +60,7 @@ const ue = (e, a) => {
|
|
|
60
60
|
var u;
|
|
61
61
|
((u = o.detail) == null ? void 0 : u.focusReason) === "pointer" && o.preventDefault();
|
|
62
62
|
}
|
|
63
|
-
e.lockScroll &&
|
|
63
|
+
e.lockScroll && H(t);
|
|
64
64
|
function N() {
|
|
65
65
|
e.closeOnPressEscape && m();
|
|
66
66
|
}
|
|
@@ -3,9 +3,9 @@ import "@vft/utils";
|
|
|
3
3
|
import { composeRefs as Y } from "../../utils/vue/refs.js";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "@vueuse/core";
|
|
6
|
-
import {
|
|
6
|
+
import { EVENT_CODE as y } from "../../constants/aria.js";
|
|
7
|
+
import { composeEventHandlers as J } from "../../utils/event.js";
|
|
7
8
|
import "../../utils/ns-cover.js";
|
|
8
|
-
import { EVENT_CODE as J } from "../../constants/aria.js";
|
|
9
9
|
import "../focus-trap/focus-trap.vue2.js";
|
|
10
10
|
import { FOCUS_TRAP_INJECTION_KEY as G } from "../focus-trap/tokens.js";
|
|
11
11
|
import "../focus-trap/utils.js";
|
|
@@ -54,7 +54,7 @@ const Io = F({
|
|
|
54
54
|
u,
|
|
55
55
|
E,
|
|
56
56
|
w
|
|
57
|
-
), g =
|
|
57
|
+
), g = J(
|
|
58
58
|
(o) => {
|
|
59
59
|
var r;
|
|
60
60
|
(r = n.onKeydown) == null || r.call(n, o);
|
|
@@ -63,7 +63,7 @@ const Io = F({
|
|
|
63
63
|
const { currentTarget: r, code: i, target: c } = o;
|
|
64
64
|
if (r.contains(
|
|
65
65
|
c
|
|
66
|
-
),
|
|
66
|
+
), y.tab === i && o.stopImmediatePropagation(), o.preventDefault(), c !== D(p) || !h.includes(i))
|
|
67
67
|
return;
|
|
68
68
|
const d = l().filter(
|
|
69
69
|
(m) => !m.disabled
|
|
@@ -57,6 +57,8 @@ import "../virtual-list/components/fixed-size-grid.js";
|
|
|
57
57
|
import "../virtual-list/components/dynamic-size-grid.js";
|
|
58
58
|
import "../virtual-list/props.js";
|
|
59
59
|
import "../select-v2/index.js";
|
|
60
|
+
import "../select/index.js";
|
|
61
|
+
import "../tree-select/index.js";
|
|
60
62
|
import "../verify-code/index.js";
|
|
61
63
|
import "../table/index.js";
|
|
62
64
|
import "../image-viewer/index.js";
|
|
@@ -68,6 +70,12 @@ import "../row/index.js";
|
|
|
68
70
|
import "../horizontal-menu/index.js";
|
|
69
71
|
import "../time-picker/index.js";
|
|
70
72
|
import "../date-picker/index.js";
|
|
73
|
+
import "../check-tag/index.js";
|
|
74
|
+
import "../tree/index.js";
|
|
75
|
+
import "../skeleton/index.js";
|
|
76
|
+
import "../space/index.js";
|
|
77
|
+
import "../card/index.js";
|
|
78
|
+
import "../popconfirm/index.js";
|
|
71
79
|
import "../md-container/index.js";
|
|
72
80
|
import "../md-comment/index.js";
|
|
73
81
|
import "../md-tabs/index.js";
|
|
@@ -80,7 +88,7 @@ const o = (
|
|
|
80
88
|
h("footer-layout")
|
|
81
89
|
), _ = s({
|
|
82
90
|
name: o.b()
|
|
83
|
-
}),
|
|
91
|
+
}), Wt = /* @__PURE__ */ s({
|
|
84
92
|
..._,
|
|
85
93
|
props: {
|
|
86
94
|
leftDistance: null
|
|
@@ -116,5 +124,5 @@ const o = (
|
|
|
116
124
|
}
|
|
117
125
|
});
|
|
118
126
|
export {
|
|
119
|
-
|
|
127
|
+
Wt as default
|
|
120
128
|
};
|
|
@@ -57,6 +57,8 @@ import "../virtual-list/components/fixed-size-grid.js";
|
|
|
57
57
|
import "../virtual-list/components/dynamic-size-grid.js";
|
|
58
58
|
import "../virtual-list/props.js";
|
|
59
59
|
import "../select-v2/index.js";
|
|
60
|
+
import "../select/index.js";
|
|
61
|
+
import "../tree-select/index.js";
|
|
60
62
|
import "../verify-code/index.js";
|
|
61
63
|
import "../table/index.js";
|
|
62
64
|
import "../image-viewer/index.js";
|
|
@@ -68,6 +70,12 @@ import "../row/index.js";
|
|
|
68
70
|
import "../horizontal-menu/index.js";
|
|
69
71
|
import "../time-picker/index.js";
|
|
70
72
|
import "../date-picker/index.js";
|
|
73
|
+
import "../check-tag/index.js";
|
|
74
|
+
import "../tree/index.js";
|
|
75
|
+
import "../skeleton/index.js";
|
|
76
|
+
import "../space/index.js";
|
|
77
|
+
import "../card/index.js";
|
|
78
|
+
import "../popconfirm/index.js";
|
|
71
79
|
import "../md-container/index.js";
|
|
72
80
|
import "../md-comment/index.js";
|
|
73
81
|
import "../md-tabs/index.js";
|
|
@@ -86,7 +94,7 @@ const y = { class: "content" }, b = {
|
|
|
86
94
|
h("header-layout")
|
|
87
95
|
), v = c({
|
|
88
96
|
name: p.b()
|
|
89
|
-
}),
|
|
97
|
+
}), mo = /* @__PURE__ */ c({
|
|
90
98
|
...v,
|
|
91
99
|
props: {
|
|
92
100
|
logoCfg: null
|
|
@@ -132,5 +140,5 @@ const y = { class: "content" }, b = {
|
|
|
132
140
|
}
|
|
133
141
|
});
|
|
134
142
|
export {
|
|
135
|
-
|
|
143
|
+
mo as default
|
|
136
144
|
};
|