vft 0.0.239 → 0.0.241
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/es/components/affix/affix.vue.d.ts +11 -9
- package/es/components/affix/index.d.ts +17 -28
- package/es/components/alert/alert.vue.d.ts +8 -6
- package/es/components/alert/index.d.ts +12 -39
- package/es/components/autocomplete/autocomplete.vue.d.ts +355 -83
- package/es/components/autocomplete/autocomplete.vue2.js +35 -39
- package/es/components/autocomplete/index.d.ts +1040 -287
- package/es/components/avatar/avatar.vue.d.ts +7 -5
- package/es/components/avatar/avatar.vue2.js +28 -31
- package/es/components/avatar/index.d.ts +15 -36
- package/es/components/backtop/backtop.vue.d.ts +7 -5
- package/es/components/backtop/backtop.vue2.js +19 -22
- package/es/components/backtop/index.d.ts +15 -36
- package/es/components/backtop/use-backtop.d.ts +1 -1
- package/es/components/backtop/use-backtop.js +12 -12
- package/es/components/button/button-group.vue.d.ts +4 -2
- package/es/components/button/button.vue.d.ts +13 -11
- package/es/components/button/button.vue2.js +33 -36
- package/es/components/button/index.d.ts +50 -134
- package/es/components/button/use-button.d.ts +1 -1
- package/es/components/button/use-button.js +30 -34
- package/es/components/card/card.vue.d.ts +4 -2
- package/es/components/card/index.d.ts +7 -17
- package/es/components/carousel/carousel-item.vue.d.ts +4 -2
- package/es/components/carousel/carousel.vue.d.ts +15 -13
- package/es/components/carousel/index.d.ts +44 -105
- package/es/components/carousel/use-carousel-item.d.ts +10 -10
- package/es/components/carousel/use-carousel-item.js +8 -9
- package/es/components/carousel/use-carousel.d.ts +5 -5
- package/es/components/carousel/use-carousel.js +89 -93
- package/es/components/check-tag/check-tag.vue.d.ts +7 -5
- package/es/components/check-tag/index.d.ts +12 -19
- package/es/components/checkbox/checkbox-button.vue.d.ts +8 -6
- package/es/components/checkbox/checkbox-button.vue2.js +44 -45
- package/es/components/checkbox/checkbox-group.vue.d.ts +10 -8
- package/es/components/checkbox/checkbox-group.vue2.js +51 -54
- package/es/components/checkbox/checkbox.vue.d.ts +10 -8
- package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-disabled.js +14 -15
- package/es/components/checkbox/composables/use-checkbox-event.d.ts +1 -1
- package/es/components/checkbox/composables/use-checkbox-event.js +27 -27
- package/es/components/checkbox/composables/use-checkbox-model.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox-model.js +13 -15
- package/es/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
- package/es/components/checkbox/composables/use-checkbox-status.js +16 -22
- package/es/components/checkbox/composables/use-checkbox.d.ts +4 -4
- package/es/components/checkbox/index.d.ts +94 -328
- package/es/components/clamp/clamp.vue.d.ts +12 -10
- package/es/components/clamp/clamp.vue2.js +4 -6
- package/es/components/clamp/index.d.ts +14 -40
- package/es/components/clamp-toggle/clamp-toggle.vue.d.ts +1 -1
- package/es/components/clamp-toggle/index.d.ts +3 -3
- package/es/components/clamp-tooltip/clamp-tooltip.vue.d.ts +1 -1
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +29 -32
- package/es/components/clamp-tooltip/index.d.ts +5 -5
- package/es/components/col/col.vue.d.ts +8 -6
- package/es/components/col/index.d.ts +9 -45
- package/es/components/collapse-transition/index.d.ts +8 -23
- package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +4 -2
- package/es/components/collection/collection-item.vue.d.ts +4 -2
- package/es/components/collection/collection.vue.d.ts +4 -2
- package/es/components/color-picker/color-picker.vue.d.ts +8 -8
- package/es/components/color-picker/color-picker.vue2.js +90 -89
- package/es/components/color-picker/components/alpha-slider.vue.d.ts +4 -4
- package/es/components/color-picker/components/hue-slider.vue.d.ts +16 -16
- package/es/components/color-picker/components/predefine.vue.d.ts +12 -12
- package/es/components/color-picker/components/sv-panel.vue.d.ts +14 -14
- package/es/components/color-picker/components/sv-panel.vue.js +15 -16
- package/es/components/color-picker/composables/use-alpha-slider.d.ts +3 -3
- package/es/components/color-picker/index.d.ts +14 -14
- package/es/components/color-picker/utils/color.js +48 -51
- package/es/components/color-picker/utils/draggable.js +12 -15
- package/es/components/config-provider/config-provider.vue.d.ts +4 -2
- package/es/components/config-provider/hooks/use-global-config.d.ts +7 -7
- package/es/components/config-provider/hooks/use-global-config.js +29 -38
- package/es/components/config-provider/index.d.ts +13 -47
- package/es/components/container/aside.vue.d.ts +4 -2
- package/es/components/container/container.vue.d.ts +4 -2
- package/es/components/container/footer.vue.d.ts +4 -2
- package/es/components/container/header.vue.d.ts +4 -2
- package/es/components/container/index.d.ts +61 -89
- package/es/components/container/main.vue.d.ts +4 -2
- package/es/components/context-menu/context-menu.vue.d.ts +1 -1
- package/es/components/context-menu/context-menu.vue2.js +20 -21
- package/es/components/context-menu/createContextMenu.js +6 -6
- package/es/components/context-menu/types.d.ts +23 -0
- package/es/components/context-menu/useContextMenu.js +1 -1
- package/es/components/date-picker/composables/use-range-picker.d.ts +100 -27
- package/es/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -3
- package/es/components/date-picker/date-picker-com/basic-cell-render.js +14 -14
- package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +16 -16
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +50 -53
- package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +16 -16
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +73 -78
- package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +7 -7
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +23 -25
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +20 -18
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +144 -143
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +14 -12
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +80 -78
- package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +10 -10
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +19 -19
- package/es/components/date-picker/date-picker.d.ts +64 -64
- package/es/components/date-picker/date-picker.js +32 -35
- package/es/components/date-picker/index.d.ts +128 -128
- package/es/components/date-picker/panel-utils.d.ts +56 -111
- package/es/components/date-picker/props/basic-date-table.d.ts +4 -4
- package/es/components/date-picker/props/basic-month-table.d.ts +4 -4
- package/es/components/date-picker/props/basic-year-table.d.ts +1 -1
- package/es/components/date-picker/props/date-picker.d.ts +10 -10
- package/es/components/date-picker/props/panel-date-pick.d.ts +2 -2
- package/es/components/date-picker/props/panel-date-range.d.ts +1 -1
- package/es/components/date-picker/props/shared.d.ts +5 -5
- package/es/components/date-picker/utils.js +35 -35
- package/es/components/date-time-select/date-time-select.vue.d.ts +3 -3
- package/es/components/date-time-select/date-time-select.vue2.js +16 -19
- package/es/components/date-time-select/index.d.ts +4 -4
- package/es/components/descriptions/description-item.vue.d.ts +4 -2
- package/es/components/descriptions/description.vue.d.ts +4 -2
- package/es/components/descriptions/description.vue2.js +43 -48
- package/es/components/descriptions/descriptions-cell.d.ts +4 -4
- package/es/components/descriptions/descriptions-cell.js +31 -32
- package/es/components/descriptions/descriptions-row.vue.d.ts +1 -1
- package/es/components/descriptions/index.d.ts +21 -90
- package/es/components/dialog/dialog-content.vue.d.ts +8 -6
- package/es/components/dialog/dialog.vue.d.ts +20 -18
- package/es/components/dialog/dialog.vue2.js +111 -107
- package/es/components/dialog/hooks/use-dialog.d.ts +6 -6
- package/es/components/dialog/hooks/use-dialog.js +55 -56
- package/es/components/dialog/index.d.ts +31 -109
- package/es/components/divider/divider.vue.d.ts +4 -2
- package/es/components/divider/index.d.ts +7 -26
- package/es/components/drawer/drawer.vue.d.ts +18 -16
- package/es/components/drawer/drawer.vue2.js +117 -113
- package/es/components/drawer/index.d.ts +25 -115
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +62 -14
- package/es/components/dropdown/dropdown-item.vue2.js +39 -43
- package/es/components/dropdown/dropdown-menu.vue.d.ts +6 -6
- package/es/components/dropdown/dropdown-menu.vue2.js +39 -40
- package/es/components/dropdown/dropdown.vue.d.ts +15 -13
- package/es/components/dropdown/dropdown.vue2.js +133 -142
- package/es/components/dropdown/useDropdown.js +29 -31
- package/es/components/empty/empty.vue.d.ts +4 -2
- package/es/components/empty/empty.vue2.js +54 -57
- package/es/components/empty/index.d.ts +7 -20
- package/es/components/exception/exception.vue.d.ts +1 -1
- package/es/components/exception/index.d.ts +3 -3
- package/es/components/focus-trap/focus-trap.vue.d.ts +8 -8
- package/es/components/focus-trap/focus-trap.vue2.js +60 -61
- package/es/components/focus-trap/utils.d.ts +4 -4
- package/es/components/focus-trap/utils.js +41 -36
- package/es/components/footer-layout/footer-layout.vue.d.ts +4 -2
- package/es/components/footer-layout/index.d.ts +6 -6
- package/es/components/form/form-item.vue.d.ts +19 -17
- package/es/components/form/form-item.vue2.js +171 -175
- package/es/components/form/form-label-wrap.d.ts +4 -4
- package/es/components/form/form-label-wrap.js +41 -46
- package/es/components/form/form.vue.d.ts +12 -10
- package/es/components/form/form.vue2.js +68 -69
- package/es/components/form/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/form/hooks/use-form-common-props.js +10 -10
- package/es/components/form/hooks/use-form-item.d.ts +4 -4
- package/es/components/form/hooks/use-form-item.js +27 -30
- package/es/components/form/index.d.ts +74 -202
- package/es/components/full-screen/full-screen.vue.d.ts +1 -1
- package/es/components/full-screen/index.d.ts +7 -7
- package/es/components/header-layout/header-layout.vue.d.ts +4 -2
- package/es/components/header-layout/index.d.ts +10 -14
- package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +4 -4
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +92 -113
- package/es/components/horizontal-menu/index.d.ts +17 -17
- package/es/components/icon/icon.vue.d.ts +1 -1
- package/es/components/icon/icon.vue2.js +25 -30
- package/es/components/icon/index.d.ts +3 -3
- package/es/components/icon-text/icon-text.vue.d.ts +1 -1
- package/es/components/icon-text/icon-text.vue2.js +26 -29
- package/es/components/icon-text/index.d.ts +7 -7
- package/es/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
- package/es/components/iframe-layout/iframe-page.vue.d.ts +1 -1
- package/es/components/iframe-layout/index.d.ts +3 -3
- package/es/components/image/image.vue.d.ts +10 -8
- package/es/components/image/image.vue2.js +37 -37
- package/es/components/image/index.d.ts +22 -65
- package/es/components/image/p-image.vue.d.ts +3 -3
- package/es/components/image-viewer/image-viewer.vue.d.ts +9 -7
- package/es/components/image-viewer/image-viewer.vue2.js +148 -146
- package/es/components/image-viewer/index.d.ts +17 -45
- package/es/components/infinite-scroll/index.d.ts +5 -15
- package/es/components/infinite-scroll/infinite-scroll.js +30 -30
- package/es/components/input/index.d.ts +54 -146
- package/es/components/input/input.vue.d.ts +20 -18
- package/es/components/input/input.vue2.js +291 -302
- package/es/components/input/utils.js +12 -13
- package/es/components/input-number/index.d.ts +8 -8
- package/es/components/input-number/input-number.vue.d.ts +7 -7
- package/es/components/input-number/input-number.vue2.js +122 -129
- package/es/components/link/index.d.ts +15 -36
- package/es/components/link/link.vue.d.ts +7 -5
- package/es/components/link/link.vue2.js +30 -33
- package/es/components/list-cell/index.d.ts +4 -4
- package/es/components/list-cell/list-cell.vue.d.ts +3 -3
- package/es/components/list-cell/list-cell.vue2.js +17 -17
- package/es/components/loading/directive.js +29 -32
- package/es/components/loading/index.d.ts +1 -4
- package/es/components/loading/loading.js +28 -30
- package/es/components/loading/service.js +13 -14
- package/es/components/logo/index.d.ts +3 -3
- package/es/components/logo/logo.vue.d.ts +1 -1
- package/es/components/md-code-demo/code-demo/code.js +38 -43
- package/es/components/md-code-demo/code-demo/utils.js +8 -9
- package/es/components/md-code-demo/index.d.ts +6 -8
- package/es/components/md-code-demo/md-code-demo.d.ts +6 -6
- package/es/components/md-code-demo/md-code-demo.js +155 -158
- package/es/components/md-code-demo/utils.js +1 -2
- package/es/components/md-code-tabs/index.d.ts +6 -8
- package/es/components/md-code-tabs/md-code-tabs.d.ts +4 -4
- package/es/components/md-code-tabs/md-code-tabs.js +44 -45
- package/es/components/md-comment/index.d.ts +1 -1
- package/es/components/md-comment/md-comment.vue.d.ts +1 -1
- package/es/components/md-container/index.d.ts +7 -11
- package/es/components/md-container/md-container.vue.d.ts +4 -2
- package/es/components/md-container/md-container.vue2.js +105 -111
- package/es/components/md-container/toc.d.ts +4 -4
- package/es/components/md-container/toc.js +10 -11
- package/es/components/md-container/use/useActiveHeaderLinks.js +19 -20
- package/es/components/md-tabs/index.d.ts +4 -6
- package/es/components/md-tabs/md-tabs.d.ts +4 -4
- package/es/components/md-tabs/md-tabs.js +32 -33
- package/es/components/md-vue-playground/index.d.ts +3 -3
- package/es/components/md-vue-playground/md-vue-playground.vue.d.ts +1 -1
- package/es/components/menu/index.d.ts +88 -160
- package/es/components/menu/menu-collapse-transition.vue.d.ts +1 -1
- package/es/components/menu/menu-item-group.vue.d.ts +4 -2
- package/es/components/menu/menu-item.vue.d.ts +8 -6
- package/es/components/menu/menu-item.vue2.js +86 -92
- package/es/components/menu/menu.vue.d.ts +12 -11
- package/es/components/menu/menu.vue2.js +111 -112
- package/es/components/menu/sub-menu.vue.d.ts +4 -4
- package/es/components/menu/sub-menu.vue2.js +124 -136
- package/es/components/menu/types.d.ts +0 -1
- package/es/components/menu/utils/menu-item.js +15 -18
- package/es/components/menu/utils/submenu.js +22 -25
- package/es/components/message/message.vue.d.ts +9 -7
- package/es/components/message/message.vue2.js +79 -82
- package/es/components/message/method.js +25 -28
- package/es/components/modal/index.d.ts +32 -153
- package/es/components/modal/modal-footer-action.vue.d.ts +4 -2
- package/es/components/modal/modal.vue.d.ts +9 -9
- package/es/components/modal/modal.vue2.js +1 -1
- package/es/components/modal/use/use-modal.js +48 -57
- package/es/components/multiple-tabs/index.d.ts +1 -33
- package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -11
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +17 -137
- package/es/components/multiple-tabs/tab-content.vue.d.ts +2 -2
- package/es/components/multiple-tabs/tab-content.vue2.js +17 -24
- package/es/components/multiple-tabs/use/use-multiple-tabs.js +30 -36
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +15 -15
- package/es/components/overlay/index.d.ts +4 -4
- package/es/components/overlay/overlay.vue.d.ts +3 -3
- package/es/components/page-wrapper/index.d.ts +7 -11
- package/es/components/page-wrapper/page-wrapper.vue.d.ts +4 -2
- package/es/components/pagination/components/jumper.vue.d.ts +1 -1
- package/es/components/pagination/components/jumper.vue2.js +18 -18
- package/es/components/pagination/components/next.vue.d.ts +3 -3
- package/es/components/pagination/components/pager.vue.d.ts +3 -3
- package/es/components/pagination/components/prev.vue.d.ts +3 -3
- package/es/components/pagination/components/sizes.vue.d.ts +3 -3
- package/es/components/pagination/components/sizes.vue2.js +7 -8
- package/es/components/pagination/components/total.vue.d.ts +1 -1
- package/es/components/pagination/index.d.ts +8 -8
- package/es/components/pagination/pagination.vue.d.ts +3 -3
- package/es/components/pagination/pagination.vue2.js +60 -61
- package/es/components/popconfirm/index.d.ts +37 -85
- package/es/components/popconfirm/popconfirm.vue.d.ts +10 -8
- package/es/components/popconfirm/popconfirm.vue2.js +37 -38
- package/es/components/popover/directive.d.ts +1 -1
- package/es/components/popover/directive.js +11 -11
- package/es/components/popover/index.d.ts +44 -87
- package/es/components/popover/popover.vue.d.ts +9 -9
- package/es/components/popover/popover.vue2.js +44 -43
- package/es/components/popover/types.d.ts +3 -0
- package/es/components/popper/arrow.vue.d.ts +3 -3
- package/es/components/popper/composables/use-content-dom.d.ts +2 -2
- package/es/components/popper/composables/use-content-dom.js +14 -12
- package/es/components/popper/composables/use-content.d.ts +12 -12
- package/es/components/popper/composables/use-content.js +9 -12
- package/es/components/popper/composables/use-focus-trap.d.ts +2 -2
- package/es/components/popper/composables/use-focus-trap.js +5 -6
- package/es/components/popper/constants.d.ts +0 -1
- package/es/components/popper/content.vue.d.ts +9 -7
- package/es/components/popper/content.vue2.js +78 -73
- package/es/components/popper/index.d.ts +9 -13
- package/es/components/popper/popper.vue.d.ts +6 -4
- package/es/components/popper/trigger.vue.d.ts +7 -5
- package/es/components/popper/trigger.vue2.js +55 -57
- package/es/components/popper/utils.js +16 -16
- package/es/components/progress/index.d.ts +10 -53
- package/es/components/progress/progress.vue.d.ts +4 -2
- package/es/components/progress/progress.vue2.js +35 -39
- package/es/components/progress-i/index.d.ts +1 -1
- package/es/components/progress-i/progress-i.vue.d.ts +1 -1
- package/es/components/qrcode/index.d.ts +8 -12
- package/es/components/qrcode/qrcode.vue.d.ts +4 -4
- package/es/components/radio/index.d.ts +80 -230
- package/es/components/radio/radio-button.vue.d.ts +7 -5
- package/es/components/radio/radio-button.vue2.js +49 -52
- package/es/components/radio/radio-group.vue.d.ts +10 -8
- package/es/components/radio/radio-group.vue2.js +49 -52
- package/es/components/radio/radio.vue.d.ts +7 -5
- package/es/components/radio/radio.vue2.js +57 -60
- package/es/components/radio/use-radio.d.ts +3 -3
- package/es/components/radio/use-radio.js +17 -17
- package/es/components/result/index.d.ts +5 -5
- package/es/components/result/result.vue.d.ts +1 -1
- package/es/components/result/result.vue2.js +25 -29
- package/es/components/router-view-content/index.d.ts +3 -3
- package/es/components/router-view-content/router-view-content.vue.d.ts +1 -1
- package/es/components/router-view-content/router-view-content.vue2.js +45 -46
- package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +5 -5
- package/es/components/roving-focus-group/roving-focus-group-impl.vue2.js +61 -64
- package/es/components/row/index.d.ts +7 -20
- package/es/components/row/row.vue.d.ts +4 -2
- package/es/components/scrollbar/bar.vue.d.ts +2 -2
- package/es/components/scrollbar/index.d.ts +20 -59
- package/es/components/scrollbar/scrollbar.vue.d.ts +9 -7
- package/es/components/scrollbar/scrollbar.vue2.js +44 -46
- package/es/components/scrollbar/thumb.vue.d.ts +1 -1
- package/es/components/scrollbar/thumb.vue2.js +26 -27
- package/es/components/scrollbar/util.d.ts +1 -1
- package/es/components/search/index.d.ts +44 -91
- package/es/components/search/search.vue.d.ts +18 -16
- package/es/components/search/search.vue2.js +45 -48
- package/es/components/select/defaults.d.ts +5 -4
- package/es/components/select/group-item.vue.d.ts +11 -11
- package/es/components/select/option-item.vue.d.ts +13 -13
- package/es/components/select/select-dropdown.d.ts +3 -3
- package/es/components/select/select-dropdown.js +107 -112
- package/es/components/select/select.vue.js +2 -2
- package/es/components/select/useSelect.d.ts +353 -83
- package/es/components/select/useSelect.js +194 -210
- package/es/components/side-menu/index.d.ts +14 -14
- package/es/components/side-menu/side-menu.vue.d.ts +10 -10
- package/es/components/side-menu/side-menu.vue2.js +145 -160
- package/es/components/side-menu/use-drag-line.js +27 -32
- package/es/components/skeleton/index.d.ts +18 -34
- package/es/components/skeleton/skeleton-item.vue.d.ts +1 -1
- package/es/components/skeleton/skeleton.vue.d.ts +7 -5
- package/es/components/slider/button.vue.d.ts +6 -6
- package/es/components/slider/composables/use-lifecycle.d.ts +1 -1
- package/es/components/slider/composables/use-slide.d.ts +100 -28
- package/es/components/slider/composables/use-slide.js +59 -61
- package/es/components/slider/composables/use-slider-button.d.ts +4 -4
- package/es/components/slider/composables/use-watch.d.ts +1 -1
- package/es/components/slider/composables/use-watch.js +23 -24
- package/es/components/slider/index.d.ts +10 -10
- package/es/components/slider/marker.d.ts +5 -5
- package/es/components/slider/slider.vue.d.ts +10 -10
- package/es/components/slider/slider.vue2.js +162 -165
- package/es/components/slot/only-child.d.ts +1 -1
- package/es/components/slot/only-child.js +32 -33
- package/es/components/space/index.d.ts +20 -14
- package/es/components/space/item.d.ts +4 -4
- package/es/components/space/space.d.ts +25 -17
- package/es/components/space/use-space.d.ts +1 -1
- package/es/components/steps/index.d.ts +42 -96
- package/es/components/steps/item.vue.d.ts +4 -2
- package/es/components/steps/item.vue2.js +59 -62
- package/es/components/steps/steps.vue.d.ts +12 -10
- package/es/components/super-form/index.d.ts +255 -48
- package/es/components/super-form/super-form-action.vue.d.ts +4 -2
- package/es/components/super-form/super-form-item.vue.d.ts +1 -1
- package/es/components/super-form/super-form-item.vue2.js +99 -100
- package/es/components/super-form/super-form.vue.d.ts +23 -11
- package/es/components/super-form/super-form.vue2.js +151 -162
- package/es/components/super-form/use/use-auto-focus.js +9 -9
- package/es/components/super-form/use/use-form-events.js +143 -147
- package/es/components/super-form/use/use-form-values.js +13 -13
- package/es/components/super-form/use/use-form.js +4 -12
- package/es/components/switch/index.d.ts +25 -25
- package/es/components/switch/switch.vue.d.ts +13 -13
- package/es/components/switch/switch.vue2.js +128 -133
- package/es/components/table/field.d.ts +1 -1
- package/es/components/table/field.js +70 -71
- package/es/components/table/index.d.ts +77 -513
- package/es/components/table/table.vue.d.ts +23 -21
- package/es/components/table/table.vue2.js +100 -105
- package/es/components/table/use/use-data-source.d.ts +2 -2
- package/es/components/table/use/use-data-source.js +84 -86
- package/es/components/table/use/use-table.js +9 -12
- package/es/components/table/utils.js +11 -14
- package/es/components/tabs/index.d.ts +44 -80
- package/es/components/tabs/tab-bar.vue.d.ts +4 -3
- package/es/components/tabs/tab-bar.vue2.js +43 -34
- package/es/components/tabs/tab-nav.vue.d.ts +10 -5
- package/es/components/tabs/tab-nav.vue2.js +137 -130
- package/es/components/tabs/tab-pane.vue.d.ts +4 -2
- package/es/components/tabs/tab-pane.vue2.js +33 -27
- package/es/components/tabs/tabs.vue.d.ts +23 -26
- package/es/components/tabs/tabs.vue2.js +82 -67
- package/es/components/tabs/types.d.ts +8 -5
- package/es/components/tag/index.d.ts +4 -4
- package/es/components/tag/tag.vue.d.ts +3 -3
- package/es/components/tag/tag.vue2.js +20 -23
- package/es/components/teleport/index.d.ts +43 -0
- package/es/components/teleport/index.js +12 -0
- package/es/components/teleport/style/css.d.ts +1 -0
- package/es/components/teleport/style/css.js +2 -0
- package/es/components/teleport/style/index.d.ts +1 -0
- package/es/components/teleport/style/index.js +2 -0
- package/es/components/teleport/teleport.vue.d.ts +21 -0
- package/es/components/teleport/teleport.vue.js +4 -0
- package/es/components/teleport/teleport.vue2.js +19 -0
- package/es/components/teleport/types.d.ts +4 -0
- package/es/components/teleport/types.js +1 -0
- package/es/components/time-picker/common/picker.vue.d.ts +54 -52
- package/es/components/time-picker/common/picker.vue2.js +199 -210
- package/es/components/time-picker/common/props.d.ts +9 -9
- package/es/components/time-picker/composables/use-time-panel.js +33 -33
- package/es/components/time-picker/composables/use-time-picker.d.ts +160 -20
- package/es/components/time-picker/composables/use-time-picker.js +21 -21
- package/es/components/time-picker/index.d.ts +120 -120
- package/es/components/time-picker/props/basic-time-spinner.d.ts +1 -1
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +11 -11
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -4
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +10 -10
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +10 -10
- package/es/components/time-picker/time-picker.d.ts +60 -60
- package/es/components/time-picker/time-picker.js +14 -18
- package/es/components/time-picker/utils.js +18 -18
- package/es/components/time-select/time-select.d.ts +3 -3
- package/es/components/time-select/time-select.vue.d.ts +30 -30
- package/es/components/time-select/time-select.vue2.js +2 -4
- package/es/components/timeline/index.d.ts +21 -77
- package/es/components/timeline/timeline-item.vue.d.ts +4 -2
- package/es/components/timeline/timeline.vue.d.ts +1 -1
- package/es/components/tooltip/content.vue.d.ts +8 -5
- package/es/components/tooltip/content.vue2.js +114 -108
- package/es/components/tooltip/index.d.ts +38 -187
- package/es/components/tooltip/tooltip.vue.d.ts +16 -14
- package/es/components/tooltip/tooltip.vue2.js +70 -72
- package/es/components/tooltip/trigger.vue.d.ts +9 -4
- package/es/components/tooltip/types.d.ts +1 -0
- package/es/components/tooltip/utils.d.ts +2 -2
- package/es/components/tree/index.d.ts +74 -722
- package/es/components/tree/model/node.js +73 -76
- package/es/components/tree/model/tree-store.js +49 -52
- package/es/components/tree/model/useDragNode.d.ts +12 -0
- package/es/components/tree/model/useDragNode.js +6 -6
- package/es/components/tree/model/useKeydown.js +20 -21
- package/es/components/tree/model/util.d.ts +1 -1
- package/es/components/tree/tree-node-content.vue.d.ts +3 -3
- package/es/components/tree/tree-node.vue.d.ts +610 -18
- package/es/components/tree/tree.vue.d.ts +26 -24
- package/es/components/upload/ajax.js +32 -36
- package/es/components/upload/index.d.ts +26 -117
- package/es/components/upload/upload-content.vue.d.ts +10 -8
- package/es/components/upload/upload-dragger.vue.d.ts +7 -5
- package/es/components/upload/upload-list.vue.d.ts +13 -11
- package/es/components/upload/upload.vue.d.ts +15 -13
- package/es/components/upload/upload.vue2.js +1 -1
- package/es/components/upload/use-handlers.d.ts +24 -2
- package/es/components/upload/use-handlers.js +58 -69
- package/es/components/verify-code/index.d.ts +6 -6
- package/es/components/verify-code/useImageVerify.d.ts +2 -2
- package/es/components/verify-code/verify-code.vue.d.ts +5 -5
- package/es/components/virtual-list/builders/build-grid.d.ts +21 -21
- package/es/components/virtual-list/builders/build-grid.js +233 -235
- package/es/components/virtual-list/builders/build-list.d.ts +68 -54
- package/es/components/virtual-list/builders/build-list.js +176 -178
- package/es/components/virtual-list/components/dynamic-size-grid.d.ts +21 -21
- package/es/components/virtual-list/components/dynamic-size-grid.js +1 -2
- package/es/components/virtual-list/components/dynamic-size-list.d.ts +39 -25
- package/es/components/virtual-list/components/dynamic-size-list.js +18 -19
- package/es/components/virtual-list/components/fixed-size-grid.d.ts +28 -28
- package/es/components/virtual-list/components/fixed-size-list.d.ts +40 -26
- package/es/components/virtual-list/components/scrollbar.d.ts +6 -6
- package/es/components/virtual-list/props.d.ts +14 -14
- package/es/components/virtual-list/utils.d.ts +2 -2
- package/es/defaults.d.ts +1 -1
- package/es/hooks/index.js +24 -23
- package/es/hooks/use-attrs/index.js +14 -17
- package/es/hooks/use-focus/index.js +3 -4
- package/es/hooks/use-lockscreen/index.js +1 -1
- package/es/hooks/use-namespace/index.d.ts +1 -1
- package/es/hooks/use-ordered-children/index.d.ts +9 -5
- package/es/hooks/use-ordered-children/index.js +41 -23
- package/es/hooks/use-popper/index.d.ts +10 -10
- package/es/hooks/use-popper/index.js +27 -36
- package/es/hooks/use-same-target/index.d.ts +1 -1
- package/es/hooks/use-throttle-render/index.d.ts +1 -1
- package/es/hooks/use-z-index/index.d.ts +4 -0
- package/es/hooks/use-z-index/index.js +25 -14
- package/es/index.d.ts +1 -1
- package/es/index.js +282 -272
- package/es/package.json.d.ts +2 -2
- package/es/package.json.js +1 -1
- package/es/utils/dom/aria.d.ts +30 -0
- package/es/utils/dom/aria.js +42 -0
- package/es/utils/dom/index.d.ts +1 -0
- package/es/utils/dom/index.js +19 -10
- package/es/utils/dom/scroll.js +10 -11
- package/es/utils/event.d.ts +1 -1
- package/es/utils/event.js +7 -7
- package/es/utils/helper.d.ts +1 -1
- package/es/utils/index.js +68 -59
- package/es/utils/ns-cover.d.ts +2 -2
- package/es/utils/typescript.d.ts +1 -1
- package/es/utils/vue/install.d.ts +1 -1
- package/es/utils/vue/props/runtime.d.ts +4 -4
- package/es/utils/vue/props/runtime.js +1 -1
- package/es/utils/vue/vnode.d.ts +1 -1
- package/es/utils/vue/vnode.js +24 -25
- package/lib/components/affix/affix.vue.d.ts +11 -9
- package/lib/components/affix/index.d.ts +17 -28
- package/lib/components/alert/alert.vue.d.ts +8 -6
- package/lib/components/alert/index.d.ts +12 -39
- package/lib/components/autocomplete/autocomplete.vue.d.ts +355 -83
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/autocomplete/index.d.ts +1040 -287
- package/lib/components/avatar/avatar.vue.d.ts +7 -5
- package/lib/components/avatar/avatar.vue2.cjs +1 -1
- package/lib/components/avatar/index.d.ts +15 -36
- package/lib/components/backtop/backtop.vue.d.ts +7 -5
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/backtop/index.d.ts +15 -36
- package/lib/components/backtop/use-backtop.cjs +1 -1
- package/lib/components/backtop/use-backtop.d.ts +1 -1
- package/lib/components/button/button-group.vue.d.ts +4 -2
- package/lib/components/button/button.vue.d.ts +13 -11
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/index.d.ts +50 -134
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/button/use-button.d.ts +1 -1
- package/lib/components/card/card.vue.d.ts +4 -2
- package/lib/components/card/index.d.ts +7 -17
- package/lib/components/carousel/carousel-item.vue.d.ts +4 -2
- package/lib/components/carousel/carousel.vue.d.ts +15 -13
- package/lib/components/carousel/index.d.ts +44 -105
- package/lib/components/carousel/use-carousel-item.cjs +1 -1
- package/lib/components/carousel/use-carousel-item.d.ts +10 -10
- package/lib/components/carousel/use-carousel.cjs +1 -1
- package/lib/components/carousel/use-carousel.d.ts +5 -5
- package/lib/components/check-tag/check-tag.vue.d.ts +7 -5
- package/lib/components/check-tag/index.d.ts +12 -19
- package/lib/components/checkbox/checkbox-button.vue.d.ts +8 -6
- package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +10 -8
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +10 -8
- package/lib/components/checkbox/composables/use-checkbox-disabled.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-event.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-event.d.ts +1 -1
- package/lib/components/checkbox/composables/use-checkbox-model.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-model.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox-status.cjs +1 -1
- package/lib/components/checkbox/composables/use-checkbox-status.d.ts +2 -2
- package/lib/components/checkbox/composables/use-checkbox.d.ts +4 -4
- package/lib/components/checkbox/index.d.ts +94 -328
- package/lib/components/clamp/clamp.vue.d.ts +12 -10
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp/index.d.ts +14 -40
- package/lib/components/clamp-toggle/clamp-toggle.vue.d.ts +1 -1
- package/lib/components/clamp-toggle/index.d.ts +3 -3
- package/lib/components/clamp-tooltip/clamp-tooltip.vue.d.ts +1 -1
- package/lib/components/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -1
- package/lib/components/clamp-tooltip/index.d.ts +5 -5
- package/lib/components/col/col.vue.d.ts +8 -6
- package/lib/components/col/index.d.ts +9 -45
- package/lib/components/collapse-transition/index.d.ts +8 -23
- package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +4 -2
- package/lib/components/collection/collection-item.vue.d.ts +4 -2
- package/lib/components/collection/collection.vue.d.ts +4 -2
- package/lib/components/color-picker/color-picker.vue.d.ts +8 -8
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/alpha-slider.vue.d.ts +4 -4
- package/lib/components/color-picker/components/hue-slider.vue.d.ts +16 -16
- package/lib/components/color-picker/components/predefine.vue.d.ts +12 -12
- package/lib/components/color-picker/components/sv-panel.vue.cjs +1 -1
- package/lib/components/color-picker/components/sv-panel.vue.d.ts +14 -14
- package/lib/components/color-picker/composables/use-alpha-slider.d.ts +3 -3
- package/lib/components/color-picker/index.d.ts +14 -14
- package/lib/components/color-picker/utils/color.cjs +1 -1
- package/lib/components/color-picker/utils/draggable.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue.d.ts +4 -2
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/hooks/use-global-config.d.ts +7 -7
- package/lib/components/config-provider/index.d.ts +13 -47
- package/lib/components/container/aside.vue.d.ts +4 -2
- package/lib/components/container/container.vue.d.ts +4 -2
- package/lib/components/container/footer.vue.d.ts +4 -2
- package/lib/components/container/header.vue.d.ts +4 -2
- package/lib/components/container/index.d.ts +61 -89
- package/lib/components/container/main.vue.d.ts +4 -2
- package/lib/components/context-menu/context-menu.vue.d.ts +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/context-menu/createContextMenu.cjs +1 -1
- package/lib/components/context-menu/types.d.ts +23 -0
- package/lib/components/date-picker/composables/use-range-picker.d.ts +100 -27
- 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 -3
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +16 -16
- 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 +16 -16
- 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 +7 -7
- 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 +20 -18
- 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 +14 -12
- 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 +10 -10
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +64 -64
- package/lib/components/date-picker/index.d.ts +128 -128
- package/lib/components/date-picker/panel-utils.d.ts +56 -111
- package/lib/components/date-picker/props/basic-date-table.d.ts +4 -4
- package/lib/components/date-picker/props/basic-month-table.d.ts +4 -4
- package/lib/components/date-picker/props/basic-year-table.d.ts +1 -1
- package/lib/components/date-picker/props/date-picker.d.ts +10 -10
- package/lib/components/date-picker/props/panel-date-pick.d.ts +2 -2
- package/lib/components/date-picker/props/panel-date-range.d.ts +1 -1
- package/lib/components/date-picker/props/shared.d.ts +5 -5
- package/lib/components/date-picker/utils.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue.d.ts +3 -3
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/date-time-select/index.d.ts +4 -4
- package/lib/components/descriptions/description-item.vue.d.ts +4 -2
- package/lib/components/descriptions/description.vue.d.ts +4 -2
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/descriptions-cell.cjs +1 -1
- package/lib/components/descriptions/descriptions-cell.d.ts +4 -4
- package/lib/components/descriptions/descriptions-row.vue.d.ts +1 -1
- package/lib/components/descriptions/index.d.ts +21 -90
- package/lib/components/dialog/dialog-content.vue.d.ts +8 -6
- package/lib/components/dialog/dialog.vue.d.ts +20 -18
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
- package/lib/components/dialog/hooks/use-dialog.d.ts +6 -6
- package/lib/components/dialog/index.d.ts +31 -109
- package/lib/components/divider/divider.vue.d.ts +4 -2
- package/lib/components/divider/index.d.ts +7 -26
- package/lib/components/drawer/drawer.vue.d.ts +18 -16
- package/lib/components/drawer/drawer.vue2.cjs +1 -1
- package/lib/components/drawer/index.d.ts +25 -115
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +62 -14
- package/lib/components/dropdown/dropdown-item.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-menu.vue.d.ts +6 -6
- package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +15 -13
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/useDropdown.cjs +1 -1
- package/lib/components/empty/empty.vue.d.ts +4 -2
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/empty/index.d.ts +7 -20
- package/lib/components/exception/exception.vue.d.ts +1 -1
- package/lib/components/exception/index.d.ts +3 -3
- package/lib/components/focus-trap/focus-trap.vue.d.ts +8 -8
- package/lib/components/focus-trap/focus-trap.vue2.cjs +1 -1
- package/lib/components/focus-trap/utils.cjs +1 -1
- package/lib/components/focus-trap/utils.d.ts +4 -4
- package/lib/components/footer-layout/footer-layout.vue.d.ts +4 -2
- package/lib/components/footer-layout/index.d.ts +6 -6
- package/lib/components/form/form-item.vue.d.ts +19 -17
- 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-label-wrap.d.ts +4 -4
- package/lib/components/form/form.vue.d.ts +12 -10
- 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-common-props.d.ts +2 -2
- package/lib/components/form/hooks/use-form-item.cjs +1 -1
- package/lib/components/form/hooks/use-form-item.d.ts +4 -4
- package/lib/components/form/index.d.ts +74 -202
- package/lib/components/full-screen/full-screen.vue.d.ts +1 -1
- package/lib/components/full-screen/index.d.ts +7 -7
- package/lib/components/header-layout/header-layout.vue.d.ts +4 -2
- package/lib/components/header-layout/index.d.ts +10 -14
- package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +4 -4
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/index.d.ts +17 -17
- package/lib/components/icon/icon.vue.d.ts +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.d.ts +3 -3
- package/lib/components/icon-text/icon-text.vue.d.ts +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/icon-text/index.d.ts +7 -7
- package/lib/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
- package/lib/components/iframe-layout/iframe-page.vue.d.ts +1 -1
- package/lib/components/iframe-layout/index.d.ts +3 -3
- package/lib/components/image/image.vue.d.ts +10 -8
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image/index.d.ts +22 -65
- package/lib/components/image/p-image.vue.d.ts +3 -3
- package/lib/components/image-viewer/image-viewer.vue.d.ts +9 -7
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/image-viewer/index.d.ts +17 -45
- package/lib/components/infinite-scroll/index.d.ts +5 -15
- package/lib/components/infinite-scroll/infinite-scroll.cjs +1 -1
- package/lib/components/input/index.d.ts +54 -146
- package/lib/components/input/input.vue.d.ts +20 -18
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/input/utils.cjs +2 -2
- package/lib/components/input-number/index.d.ts +8 -8
- package/lib/components/input-number/input-number.vue.d.ts +7 -7
- package/lib/components/input-number/input-number.vue2.cjs +1 -1
- package/lib/components/link/index.d.ts +15 -36
- package/lib/components/link/link.vue.d.ts +7 -5
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/index.d.ts +4 -4
- package/lib/components/list-cell/list-cell.vue.d.ts +3 -3
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/loading/directive.cjs +1 -1
- package/lib/components/loading/index.d.ts +1 -4
- package/lib/components/loading/loading.cjs +1 -1
- package/lib/components/loading/service.cjs +1 -1
- package/lib/components/logo/index.d.ts +3 -3
- package/lib/components/logo/logo.vue.d.ts +1 -1
- package/lib/components/md-code-demo/code-demo/code.cjs +4 -4
- package/lib/components/md-code-demo/code-demo/utils.cjs +2 -2
- package/lib/components/md-code-demo/index.d.ts +6 -8
- package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
- package/lib/components/md-code-demo/md-code-demo.d.ts +6 -6
- package/lib/components/md-code-demo/utils.cjs +2 -2
- package/lib/components/md-code-tabs/index.d.ts +6 -8
- package/lib/components/md-code-tabs/md-code-tabs.cjs +1 -1
- package/lib/components/md-code-tabs/md-code-tabs.d.ts +4 -4
- package/lib/components/md-comment/index.d.ts +1 -1
- package/lib/components/md-comment/md-comment.vue.d.ts +1 -1
- package/lib/components/md-container/index.d.ts +7 -11
- package/lib/components/md-container/md-container.vue.d.ts +4 -2
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/md-container/toc.d.ts +4 -4
- package/lib/components/md-container/use/useActiveHeaderLinks.cjs +1 -1
- package/lib/components/md-tabs/index.d.ts +4 -6
- package/lib/components/md-tabs/md-tabs.cjs +1 -1
- package/lib/components/md-tabs/md-tabs.d.ts +4 -4
- package/lib/components/md-vue-playground/index.d.ts +3 -3
- package/lib/components/md-vue-playground/md-vue-playground.vue.d.ts +1 -1
- package/lib/components/menu/index.d.ts +88 -160
- package/lib/components/menu/menu-collapse-transition.vue.d.ts +1 -1
- package/lib/components/menu/menu-item-group.vue.d.ts +4 -2
- package/lib/components/menu/menu-item.vue.d.ts +8 -6
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue.d.ts +12 -11
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue.d.ts +4 -4
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/menu/types.d.ts +0 -1
- package/lib/components/menu/utils/menu-item.cjs +1 -1
- package/lib/components/menu/utils/submenu.cjs +1 -1
- package/lib/components/message/message.vue.d.ts +9 -7
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/message/method.cjs +1 -1
- package/lib/components/modal/index.d.ts +32 -153
- package/lib/components/modal/modal-footer-action.vue.d.ts +4 -2
- package/lib/components/modal/modal.vue.d.ts +9 -9
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/modal/use/use-modal.cjs +1 -1
- package/lib/components/multiple-tabs/index.d.ts +1 -33
- package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -11
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue.d.ts +2 -2
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-multiple-tabs.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/overlay/index.d.ts +4 -4
- package/lib/components/overlay/overlay.vue.d.ts +3 -3
- package/lib/components/page-wrapper/index.d.ts +7 -11
- package/lib/components/page-wrapper/page-wrapper.vue.d.ts +4 -2
- package/lib/components/pagination/components/jumper.vue.d.ts +1 -1
- package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
- package/lib/components/pagination/components/next.vue.d.ts +3 -3
- package/lib/components/pagination/components/pager.vue.d.ts +3 -3
- package/lib/components/pagination/components/prev.vue.d.ts +3 -3
- package/lib/components/pagination/components/sizes.vue.d.ts +3 -3
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.vue.d.ts +1 -1
- package/lib/components/pagination/index.d.ts +8 -8
- package/lib/components/pagination/pagination.vue.d.ts +3 -3
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +37 -85
- package/lib/components/popconfirm/popconfirm.vue.d.ts +10 -8
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/directive.cjs +1 -1
- package/lib/components/popover/directive.d.ts +1 -1
- package/lib/components/popover/index.d.ts +44 -87
- package/lib/components/popover/popover.vue.d.ts +9 -9
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popover/types.d.ts +3 -0
- package/lib/components/popper/arrow.vue.d.ts +3 -3
- package/lib/components/popper/composables/use-content-dom.cjs +1 -1
- package/lib/components/popper/composables/use-content-dom.d.ts +2 -2
- package/lib/components/popper/composables/use-content.cjs +1 -1
- package/lib/components/popper/composables/use-content.d.ts +12 -12
- package/lib/components/popper/composables/use-focus-trap.cjs +1 -1
- package/lib/components/popper/composables/use-focus-trap.d.ts +2 -2
- package/lib/components/popper/constants.d.ts +0 -1
- package/lib/components/popper/content.vue.d.ts +9 -7
- package/lib/components/popper/content.vue2.cjs +1 -1
- package/lib/components/popper/index.d.ts +9 -13
- package/lib/components/popper/popper.vue.d.ts +6 -4
- package/lib/components/popper/trigger.vue.d.ts +7 -5
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/popper/utils.cjs +1 -1
- package/lib/components/progress/index.d.ts +10 -53
- package/lib/components/progress/progress.vue.d.ts +4 -2
- package/lib/components/progress/progress.vue2.cjs +2 -2
- package/lib/components/progress-i/index.d.ts +1 -1
- package/lib/components/progress-i/progress-i.vue.d.ts +1 -1
- package/lib/components/qrcode/index.d.ts +8 -12
- package/lib/components/qrcode/qrcode.vue.d.ts +4 -4
- package/lib/components/radio/index.d.ts +80 -230
- package/lib/components/radio/radio-button.vue.d.ts +7 -5
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue.d.ts +10 -8
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.vue.d.ts +7 -5
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/radio/use-radio.cjs +1 -1
- package/lib/components/radio/use-radio.d.ts +3 -3
- package/lib/components/result/index.d.ts +5 -5
- package/lib/components/result/result.vue.d.ts +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/index.d.ts +3 -3
- package/lib/components/router-view-content/router-view-content.vue.d.ts +1 -1
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +5 -5
- package/lib/components/roving-focus-group/roving-focus-group-impl.vue2.cjs +1 -1
- package/lib/components/row/index.d.ts +7 -20
- package/lib/components/row/row.vue.d.ts +4 -2
- package/lib/components/scrollbar/bar.vue.d.ts +2 -2
- package/lib/components/scrollbar/index.d.ts +20 -59
- package/lib/components/scrollbar/scrollbar.vue.d.ts +9 -7
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/scrollbar/thumb.vue.d.ts +1 -1
- package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
- package/lib/components/scrollbar/util.d.ts +1 -1
- package/lib/components/search/index.d.ts +44 -91
- package/lib/components/search/search.vue.d.ts +18 -16
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/defaults.d.ts +5 -4
- package/lib/components/select/group-item.vue.d.ts +11 -11
- package/lib/components/select/option-item.vue.d.ts +13 -13
- package/lib/components/select/select-dropdown.cjs +1 -1
- package/lib/components/select/select-dropdown.d.ts +3 -3
- package/lib/components/select/select.vue.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/select/useSelect.d.ts +353 -83
- package/lib/components/side-menu/index.d.ts +14 -14
- package/lib/components/side-menu/side-menu.vue.d.ts +10 -10
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/side-menu/use-drag-line.cjs +1 -1
- package/lib/components/skeleton/index.d.ts +18 -34
- package/lib/components/skeleton/skeleton-item.vue.d.ts +1 -1
- package/lib/components/skeleton/skeleton.vue.d.ts +7 -5
- package/lib/components/slider/button.vue.d.ts +6 -6
- package/lib/components/slider/composables/use-lifecycle.d.ts +1 -1
- package/lib/components/slider/composables/use-slide.cjs +1 -1
- package/lib/components/slider/composables/use-slide.d.ts +100 -28
- package/lib/components/slider/composables/use-slider-button.d.ts +4 -4
- package/lib/components/slider/composables/use-watch.cjs +1 -1
- package/lib/components/slider/composables/use-watch.d.ts +1 -1
- package/lib/components/slider/index.d.ts +10 -10
- package/lib/components/slider/marker.d.ts +5 -5
- package/lib/components/slider/slider.vue.d.ts +10 -10
- package/lib/components/slider/slider.vue2.cjs +1 -1
- package/lib/components/slot/only-child.cjs +1 -1
- package/lib/components/slot/only-child.d.ts +1 -1
- package/lib/components/space/index.d.ts +20 -14
- package/lib/components/space/item.d.ts +4 -4
- package/lib/components/space/space.d.ts +25 -17
- package/lib/components/space/use-space.d.ts +1 -1
- package/lib/components/steps/index.d.ts +42 -96
- package/lib/components/steps/item.vue.d.ts +4 -2
- package/lib/components/steps/item.vue2.cjs +1 -1
- package/lib/components/steps/steps.vue.d.ts +12 -10
- package/lib/components/super-form/index.d.ts +255 -48
- package/lib/components/super-form/super-form-action.vue.d.ts +4 -2
- package/lib/components/super-form/super-form-item.vue.d.ts +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue.d.ts +23 -11
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/use/use-auto-focus.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/super-form/use/use-form-values.cjs +1 -1
- package/lib/components/super-form/use/use-form.cjs +1 -1
- package/lib/components/switch/index.d.ts +25 -25
- package/lib/components/switch/switch.vue.d.ts +13 -13
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/field.d.ts +1 -1
- package/lib/components/table/index.d.ts +77 -513
- package/lib/components/table/table.vue.d.ts +23 -21
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/table/use/use-data-source.d.ts +2 -2
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/components/table/utils.cjs +1 -1
- package/lib/components/tabs/index.d.ts +44 -80
- package/lib/components/tabs/tab-bar.vue.d.ts +4 -3
- package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue.d.ts +10 -5
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue.d.ts +4 -2
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +23 -26
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/tabs/types.d.ts +8 -5
- package/lib/components/tag/index.d.ts +4 -4
- package/lib/components/tag/tag.vue.d.ts +3 -3
- package/lib/components/tag/tag.vue2.cjs +1 -1
- package/lib/components/teleport/index.cjs +1 -0
- package/lib/components/teleport/index.d.ts +43 -0
- package/lib/components/teleport/style/css.cjs +1 -0
- package/lib/components/teleport/style/css.d.ts +1 -0
- package/lib/components/teleport/style/index.cjs +1 -0
- package/lib/components/teleport/style/index.d.ts +1 -0
- package/lib/components/teleport/teleport.vue.cjs +1 -0
- package/lib/components/teleport/teleport.vue.d.ts +21 -0
- package/lib/components/teleport/teleport.vue2.cjs +1 -0
- package/lib/components/teleport/types.cjs +1 -0
- package/lib/components/teleport/types.d.ts +4 -0
- package/lib/components/time-picker/common/picker.vue.d.ts +54 -52
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.d.ts +9 -9
- package/lib/components/time-picker/composables/use-time-panel.cjs +1 -1
- package/lib/components/time-picker/composables/use-time-picker.cjs +1 -1
- package/lib/components/time-picker/composables/use-time-picker.d.ts +160 -20
- package/lib/components/time-picker/index.d.ts +120 -120
- package/lib/components/time-picker/props/basic-time-spinner.d.ts +1 -1
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +11 -11
- 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 +10 -10
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +10 -10
- package/lib/components/time-picker/time-picker.cjs +1 -1
- package/lib/components/time-picker/time-picker.d.ts +60 -60
- package/lib/components/time-picker/utils.cjs +1 -1
- package/lib/components/time-select/time-select.d.ts +3 -3
- package/lib/components/time-select/time-select.vue.d.ts +30 -30
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/timeline/index.d.ts +21 -77
- package/lib/components/timeline/timeline-item.vue.d.ts +4 -2
- package/lib/components/timeline/timeline.vue.d.ts +1 -1
- package/lib/components/tooltip/content.vue.d.ts +8 -5
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +38 -187
- package/lib/components/tooltip/tooltip.vue.d.ts +16 -14
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue.d.ts +9 -4
- package/lib/components/tooltip/types.d.ts +1 -0
- package/lib/components/tooltip/utils.d.ts +2 -2
- package/lib/components/tree/index.d.ts +74 -722
- package/lib/components/tree/model/node.cjs +1 -1
- package/lib/components/tree/model/tree-store.cjs +1 -1
- package/lib/components/tree/model/useDragNode.cjs +1 -1
- package/lib/components/tree/model/useDragNode.d.ts +12 -0
- package/lib/components/tree/model/useKeydown.cjs +1 -1
- package/lib/components/tree/model/util.d.ts +1 -1
- package/lib/components/tree/tree-node-content.vue.d.ts +3 -3
- package/lib/components/tree/tree-node.vue.d.ts +610 -18
- package/lib/components/tree/tree.vue.d.ts +26 -24
- package/lib/components/upload/ajax.cjs +1 -1
- package/lib/components/upload/index.d.ts +26 -117
- package/lib/components/upload/upload-content.vue.d.ts +10 -8
- package/lib/components/upload/upload-dragger.vue.d.ts +7 -5
- package/lib/components/upload/upload-list.vue.d.ts +13 -11
- package/lib/components/upload/upload.vue.d.ts +15 -13
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/components/upload/use-handlers.cjs +1 -1
- package/lib/components/upload/use-handlers.d.ts +24 -2
- package/lib/components/verify-code/index.d.ts +6 -6
- package/lib/components/verify-code/useImageVerify.d.ts +2 -2
- package/lib/components/verify-code/verify-code.vue.d.ts +5 -5
- package/lib/components/virtual-list/builders/build-grid.cjs +1 -1
- package/lib/components/virtual-list/builders/build-grid.d.ts +21 -21
- package/lib/components/virtual-list/builders/build-list.cjs +1 -1
- package/lib/components/virtual-list/builders/build-list.d.ts +68 -54
- package/lib/components/virtual-list/components/dynamic-size-grid.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +21 -21
- package/lib/components/virtual-list/components/dynamic-size-list.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-list.d.ts +39 -25
- package/lib/components/virtual-list/components/fixed-size-grid.d.ts +28 -28
- package/lib/components/virtual-list/components/fixed-size-list.d.ts +40 -26
- package/lib/components/virtual-list/components/scrollbar.d.ts +6 -6
- package/lib/components/virtual-list/props.d.ts +14 -14
- package/lib/components/virtual-list/utils.d.ts +2 -2
- package/lib/defaults.d.ts +1 -1
- package/lib/hooks/index.cjs +1 -1
- package/lib/hooks/use-attrs/index.cjs +1 -1
- package/lib/hooks/use-focus/index.cjs +1 -1
- package/lib/hooks/use-lockscreen/index.cjs +1 -1
- package/lib/hooks/use-namespace/index.d.ts +1 -1
- package/lib/hooks/use-ordered-children/index.cjs +1 -1
- package/lib/hooks/use-ordered-children/index.d.ts +9 -5
- package/lib/hooks/use-popper/index.cjs +1 -1
- package/lib/hooks/use-popper/index.d.ts +10 -10
- package/lib/hooks/use-same-target/index.d.ts +1 -1
- package/lib/hooks/use-throttle-render/index.d.ts +1 -1
- package/lib/hooks/use-z-index/index.cjs +2 -1
- package/lib/hooks/use-z-index/index.d.ts +4 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +2 -2
- package/lib/utils/dom/aria.cjs +1 -0
- package/lib/utils/dom/aria.d.ts +30 -0
- package/lib/utils/dom/index.cjs +1 -1
- package/lib/utils/dom/index.d.ts +1 -0
- package/lib/utils/dom/scroll.cjs +1 -1
- package/lib/utils/event.cjs +1 -1
- package/lib/utils/event.d.ts +1 -1
- package/lib/utils/helper.d.ts +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/ns-cover.d.ts +2 -2
- package/lib/utils/typescript.d.ts +1 -1
- package/lib/utils/vue/install.d.ts +1 -1
- package/lib/utils/vue/props/runtime.cjs +1 -1
- package/lib/utils/vue/props/runtime.d.ts +4 -4
- package/lib/utils/vue/vnode.cjs +1 -1
- package/lib/utils/vue/vnode.d.ts +1 -1
- package/package.json +7 -7
- package/web-types.json +1 -1
- package/es/components/dropdown/dropdown-item.vue.d.ts +0 -43
- package/es/components/dropdown/index.d.ts +0 -509
- package/es/components/roving-focus-group/roving-focus-group.vue.d.ts +0 -2
- package/es/components/roving-focus-group/roving-focus-item.vue.d.ts +0 -32
- package/es/components/select/index.d.ts +0 -1875
- package/es/components/select/select.vue.d.ts +0 -937
- package/lib/components/dropdown/dropdown-item.vue.d.ts +0 -43
- package/lib/components/dropdown/index.d.ts +0 -509
- package/lib/components/roving-focus-group/roving-focus-group.vue.d.ts +0 -2
- package/lib/components/roving-focus-group/roving-focus-item.vue.d.ts +0 -32
- package/lib/components/select/index.d.ts +0 -1875
- package/lib/components/select/select.vue.d.ts +0 -937
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dayjs } from 'dayjs';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
readonly cellClassName: {
|
|
4
4
|
readonly type: import("vue").PropType<(date: Date) => string>;
|
|
5
5
|
readonly required: false;
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
__epPropKey: true;
|
|
8
8
|
};
|
|
9
9
|
readonly showWeekNumber: BooleanConstructor;
|
|
10
|
-
readonly selectionMode: import("
|
|
10
|
+
readonly selectionMode: import("vft/es/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
|
11
11
|
readonly disabledDate: {
|
|
12
12
|
readonly type: import("vue").PropType<(date: Date) => boolean>;
|
|
13
13
|
readonly required: false;
|
|
@@ -21,33 +21,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
__epPropKey: true;
|
|
22
22
|
};
|
|
23
23
|
readonly minDate: {
|
|
24
|
-
readonly type: import("vue").PropType<import("
|
|
24
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
|
|
25
25
|
readonly required: false;
|
|
26
26
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
27
|
__epPropKey: true;
|
|
28
28
|
};
|
|
29
29
|
readonly maxDate: {
|
|
30
|
-
readonly type: import("vue").PropType<import("
|
|
30
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
|
|
31
31
|
readonly required: false;
|
|
32
32
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
33
33
|
__epPropKey: true;
|
|
34
34
|
};
|
|
35
35
|
readonly parsedValue: {
|
|
36
|
-
readonly type: import("vue").PropType<import("
|
|
36
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[]) | (((new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[])) | null)[], unknown, unknown>>;
|
|
37
37
|
readonly required: false;
|
|
38
38
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
39
|
__epPropKey: true;
|
|
40
40
|
};
|
|
41
|
-
readonly rangeState: import("
|
|
41
|
+
readonly rangeState: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => import("../props/shared").RangeState) | (() => import("../props/shared").RangeState) | (((new (...args: any[]) => import("../props/shared").RangeState) | (() => import("../props/shared").RangeState)) | null)[], unknown, unknown, () => {
|
|
42
42
|
endDate: null;
|
|
43
43
|
selecting: boolean;
|
|
44
44
|
}, boolean>;
|
|
45
|
-
}
|
|
45
|
+
}>, {
|
|
46
46
|
/**
|
|
47
47
|
* @description focus on current cell
|
|
48
48
|
*/
|
|
49
49
|
focus: () => Promise<void>;
|
|
50
|
-
},
|
|
50
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
51
|
select: (...args: any[]) => void;
|
|
52
52
|
pick: (...args: any[]) => void;
|
|
53
53
|
changerange: (...args: any[]) => void;
|
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
__epPropKey: true;
|
|
60
60
|
};
|
|
61
61
|
readonly showWeekNumber: BooleanConstructor;
|
|
62
|
-
readonly selectionMode: import("
|
|
62
|
+
readonly selectionMode: import("vft/es/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
|
63
63
|
readonly disabledDate: {
|
|
64
64
|
readonly type: import("vue").PropType<(date: Date) => boolean>;
|
|
65
65
|
readonly required: false;
|
|
@@ -73,34 +73,34 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
__epPropKey: true;
|
|
74
74
|
};
|
|
75
75
|
readonly minDate: {
|
|
76
|
-
readonly type: import("vue").PropType<import("
|
|
76
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
|
|
77
77
|
readonly required: false;
|
|
78
78
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
79
|
__epPropKey: true;
|
|
80
80
|
};
|
|
81
81
|
readonly maxDate: {
|
|
82
|
-
readonly type: import("vue").PropType<import("
|
|
82
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs) | (() => Dayjs | null) | (((new (...args: any[]) => Dayjs) | (() => Dayjs | null)) | null)[], unknown, unknown>>;
|
|
83
83
|
readonly required: false;
|
|
84
84
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
85
|
__epPropKey: true;
|
|
86
86
|
};
|
|
87
87
|
readonly parsedValue: {
|
|
88
|
-
readonly type: import("vue").PropType<import("
|
|
88
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[]) | (((new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[])) | null)[], unknown, unknown>>;
|
|
89
89
|
readonly required: false;
|
|
90
90
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
91
91
|
__epPropKey: true;
|
|
92
92
|
};
|
|
93
|
-
readonly rangeState: import("
|
|
93
|
+
readonly rangeState: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => import("../props/shared").RangeState) | (() => import("../props/shared").RangeState) | (((new (...args: any[]) => import("../props/shared").RangeState) | (() => import("../props/shared").RangeState)) | null)[], unknown, unknown, () => {
|
|
94
94
|
endDate: null;
|
|
95
95
|
selecting: boolean;
|
|
96
96
|
}, boolean>;
|
|
97
|
-
}>> & {
|
|
97
|
+
}>> & Readonly<{
|
|
98
98
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
onChangerange?: ((...args: any[]) => any) | undefined;
|
|
101
|
-
}
|
|
101
|
+
}>, {
|
|
102
102
|
readonly rangeState: import("../props/shared").RangeState;
|
|
103
103
|
readonly showWeekNumber: boolean;
|
|
104
104
|
readonly selectionMode: string;
|
|
105
|
-
}, {}>;
|
|
105
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
106
106
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),J=require("../../../constants/date.cjs");require("@vueuse/core");require("@vft/utils");require("../../../utils/ns-cover.cjs");const K=require("lodash-es"),Q=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const q=require("dayjs"),X=require("../props/basic-date-table.cjs"),p=require("../utils.cjs"),Z=require("./basic-cell-render.cjs"),ee={key:0,scope:"col"},te=["aria-label"],ae=["aria-current","aria-selected","tabindex"],ne=a.defineComponent({__name:"basic-date-table",props:X.basicDateTableProps,emits:["changerange","pick","select"],setup(S,{expose:V,emit:R}){const n=S,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),J=require("../../../constants/date.cjs");require("@vueuse/core");require("@vft/utils");require("../../../utils/ns-cover.cjs");const K=require("lodash-es"),Q=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const q=require("dayjs"),X=require("../props/basic-date-table.cjs"),p=require("../utils.cjs"),Z=require("./basic-cell-render.cjs"),ee={key:0,scope:"col"},te=["aria-label"],ae=["aria-current","aria-selected","tabindex"],ne=a.defineComponent({__name:"basic-date-table",props:X.basicDateTableProps,emits:["changerange","pick","select"],setup(S,{expose:V,emit:R}){const n=S,d=R,g=Q.useNamespace("date-table"),v=a.ref("zh-cn"),M=a.ref(),y=a.ref(),w=a.ref(),C=a.ref(),A=a.ref([[],[],[],[],[],[]]);let h=!1;const f=n.date.$locale("zh-cn").weekStart||7,k=a.computed(()=>f>3?7-f:-f),D=a.computed(()=>{const e=n.date.startOf("month");return e.subtract(e.day()||7,"day")}),N=a.computed(()=>K.flatten(m.value).some(e=>e.isCurrent)),W=a.computed(()=>{const e=n.date.startOf("month"),t=e.day()||7,s=e.daysInMonth(),r=e.subtract(1,"month").daysInMonth();return{startOfMonthDay:t,dateCountOfMonth:s,dateCountOfLastMonth:r}}),F=a.computed(()=>n.selectionMode==="dates"?p.castArray(n.parsedValue):[]),I=(e,{count:t,rowIndex:s,columnIndex:r})=>{const{startOfMonthDay:u,dateCountOfMonth:i,dateCountOfLastMonth:o}=a.unref(W),l=a.unref(k);if(s>=0&&s<=1){const c=u+l<0?7+u+l:u+l;if(r+s*7>=c)return e.text=t,!0;e.text=o-(c-r%7)+1+s*7,e.type="prev-month"}else return t<=i?e.text=t:(e.text=t-i,e.type="next-month"),!0;return!1},T=(e,{columnIndex:t,rowIndex:s},r)=>{const{disabledDate:u,cellClassName:i}=n,o=a.unref(F),l=I(e,{count:r,rowIndex:s,columnIndex:t}),c=e.dayjs.toDate();return e.selected=o.find(H=>H.valueOf()===e.dayjs.valueOf()),e.isSelected=!!e.selected,e.isCurrent=O(e),e.disabled=u?.(c),e.customClass=i?.(c),l},P=e=>{if(n.selectionMode==="week"){const[t,s]=n.showWeekNumber?[1,7]:[0,6],r=E(e[t+1]);e[t].inRange=r,e[t].start=r,e[s].inRange=r,e[s].end=r}},m=a.computed(()=>{const{minDate:e,maxDate:t,rangeState:s,showWeekNumber:r}=n,u=k.value,i=A.value,o="day";let l=1;if(r)for(let c=0;c<6;c++)i[c][0]||(i[c][0]={type:"week",text:D.value.add(c*7+1,o).week()});return p.buildPickerTable({row:6,column:7},i,{startDate:e,columnIndexOffset:r?1:0,nextEndDate:s.endDate||t||s.selecting&&e||null,now:q().locale(a.unref(v)).startOf(o),unit:o,relativeDateGetter:c=>D.value.add(c-u,o),setCellMetadata:(...c)=>{T(...c,l)&&(l+=1)},setRowMetadata:P}),i});a.watch(()=>n.date,async()=>{M.value?.contains(document.activeElement)&&(await a.nextTick(),y.value?.focus())});const j=async()=>{y.value?.focus()},b=(e="")=>["normal","today"].includes(e),O=e=>n.selectionMode==="date"&&b(e.type)&&z(e,n.parsedValue),z=(e,t)=>t?q(t).locale(v.value).isSame(n.date.date(Number(e.text)),"day"):!1,L=e=>{const t=[];return b(e.type)&&!e.disabled?(t.push("available"),e.type==="today"&&t.push("today")):t.push(e.type),O(e)&&t.push("current"),e.inRange&&(b(e.type)||n.selectionMode==="week")&&(t.push("in-range"),e.start&&t.push("start-date"),e.end&&t.push("end-date")),e.disabled&&t.push("disabled"),e.selected&&t.push("selected"),e.customClass&&t.push(e.customClass),t.join(" ")},x=(e,t)=>{const s=e*7+(t-(n.showWeekNumber?1:0))-k.value;return D.value.add(s,"day")},$=e=>{if(!n.rangeState.selecting)return;let t=e.target;if(t.tagName==="SPAN"&&(t=t.parentNode?.parentNode),t.tagName==="DIV"&&(t=t.parentNode),t.tagName!=="TD")return;const s=t.parentNode.rowIndex-1,r=t.cellIndex;m.value[s][r].disabled||(s!==w.value||r!==C.value)&&(w.value=s,C.value=r,d("changerange",{selecting:!0,endDate:x(s,r)}))},_=e=>!N.value&&e?.text===1&&e.type==="normal"||e.isCurrent,U=e=>{h||N.value||n.selectionMode!=="date"||B(e,!0)},G=e=>{e.target.closest("td")&&(h=!0)},Y=e=>{e.target.closest("td")&&(h=!1)},B=(e,t=!1)=>{const s=e.target.closest("td");if(!s)return;const r=s.parentNode.rowIndex-1,u=s.cellIndex,i=m.value[r][u];if(i.disabled||i.type==="week")return;const o=x(r,u);if(n.selectionMode==="range")!n.rangeState.selecting||!n.minDate?(d("pick",{minDate:o,maxDate:null}),d("select",!0)):(o>=n.minDate?d("pick",{minDate:n.minDate,maxDate:o}):d("pick",{minDate:o,maxDate:n.minDate}),d("select",!1));else if(n.selectionMode==="date")d("pick",o,t);else if(n.selectionMode==="week"){const l=o.week(),c=`${o.year()}w${l}`;d("pick",{year:o.year(),week:l,value:c,date:o.startOf("week")})}else if(n.selectionMode==="dates"){const l=i.selected?p.castArray(n.parsedValue).filter(c=>c?.valueOf()!==o.valueOf()):p.castArray(n.parsedValue).concat([o]);d("pick",l)}},E=e=>{if(n.selectionMode!=="week")return!1;let t=n.date.startOf("day");if(e.type==="prev-month"&&(t=t.subtract(1,"month")),e.type==="next-month"&&(t=t.add(1,"month")),t=t.date(Number.parseInt(e.text,10)),n.parsedValue&&!Array.isArray(n.parsedValue)){const s=(n.parsedValue.day()-f+7)%7-1;return n.parsedValue.subtract(s,"day").isSame(t,"day")}return!1};return V({focus:j}),(e,t)=>(a.openBlock(),a.createElementBlock("table",{role:"grid","aria-label":"使用方向键与 Enter 键以选择日期",cellspacing:"0",cellpadding:"0",class:a.normalizeClass([a.unref(g).b(),{"is-week-mode":e.selectionMode==="week"}]),onClick:B,onMousemove:$,onMousedown:a.withModifiers(G,["prevent"]),onMouseup:Y},[a.createElementVNode("tbody",{ref_key:"tbodyRef",ref:M},[a.createElementVNode("tr",null,[e.showWeekNumber?(a.openBlock(),a.createElementBlock("th",ee,"周")):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(J.WEEK_DAYS),(s,r)=>(a.openBlock(),a.createElementBlock("th",{key:r,scope:"col","aria-label":"星期"+s},a.toDisplayString(s),9,te))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,(s,r)=>(a.openBlock(),a.createElementBlock("tr",{key:r,class:a.normalizeClass([a.unref(g).e("row"),{current:E(s[1])}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s,(u,i)=>(a.openBlock(),a.createElementBlock("td",{key:`${r}.${i}`,ref_for:!0,ref:o=>_(u)&&(y.value=o),class:a.normalizeClass(L(u)),"aria-current":u.isCurrent?"date":void 0,"aria-selected":u.isCurrent,tabindex:_(u)?0:-1,onFocus:U},[a.createVNode(a.unref(Z.default),{cell:u},null,8,["cell"])],42,ae))),128))],2))),128))],512)],34))}});exports.default=ne;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
selectionMode: import("
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
selectionMode: import("vft/es/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
|
4
4
|
disabledDate: {
|
|
5
5
|
readonly type: import("vue").PropType<(date: Date) => boolean>;
|
|
6
6
|
readonly required: false;
|
|
@@ -14,38 +14,38 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
__epPropKey: true;
|
|
15
15
|
};
|
|
16
16
|
minDate: {
|
|
17
|
-
readonly type: import("vue").PropType<import("
|
|
17
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs) | (() => dayjs.Dayjs | null) | (((new (...args: any[]) => dayjs.Dayjs) | (() => dayjs.Dayjs | null)) | null)[], unknown, unknown>>;
|
|
18
18
|
readonly required: false;
|
|
19
19
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
20
|
__epPropKey: true;
|
|
21
21
|
};
|
|
22
22
|
maxDate: {
|
|
23
|
-
readonly type: import("vue").PropType<import("
|
|
23
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs) | (() => dayjs.Dayjs | null) | (((new (...args: any[]) => dayjs.Dayjs) | (() => dayjs.Dayjs | null)) | null)[], unknown, unknown>>;
|
|
24
24
|
readonly required: false;
|
|
25
25
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
26
|
__epPropKey: true;
|
|
27
27
|
};
|
|
28
28
|
parsedValue: {
|
|
29
|
-
readonly type: import("vue").PropType<import("
|
|
29
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs | dayjs.Dayjs[]) | (() => dayjs.Dayjs | dayjs.Dayjs[]) | (((new (...args: any[]) => dayjs.Dayjs | dayjs.Dayjs[]) | (() => dayjs.Dayjs | dayjs.Dayjs[])) | null)[], unknown, unknown>>;
|
|
30
30
|
readonly required: false;
|
|
31
31
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
32
|
__epPropKey: true;
|
|
33
33
|
};
|
|
34
|
-
rangeState: import("
|
|
34
|
+
rangeState: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => import("../props/shared").RangeState) | (() => import("../props/shared").RangeState) | (((new (...args: any[]) => import("../props/shared").RangeState) | (() => import("../props/shared").RangeState)) | null)[], unknown, unknown, () => {
|
|
35
35
|
endDate: null;
|
|
36
36
|
selecting: boolean;
|
|
37
37
|
}, boolean>;
|
|
38
|
-
}
|
|
38
|
+
}>, {
|
|
39
39
|
/**
|
|
40
40
|
* @description focus current cell
|
|
41
41
|
*/
|
|
42
42
|
focus: () => void;
|
|
43
|
-
},
|
|
43
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
44
|
select: (...args: any[]) => void;
|
|
45
45
|
pick: (...args: any[]) => void;
|
|
46
46
|
changerange: (...args: any[]) => void;
|
|
47
47
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
-
selectionMode: import("
|
|
48
|
+
selectionMode: import("vft/es/utils").EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
|
49
49
|
disabledDate: {
|
|
50
50
|
readonly type: import("vue").PropType<(date: Date) => boolean>;
|
|
51
51
|
readonly required: false;
|
|
@@ -59,33 +59,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
__epPropKey: true;
|
|
60
60
|
};
|
|
61
61
|
minDate: {
|
|
62
|
-
readonly type: import("vue").PropType<import("
|
|
62
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs) | (() => dayjs.Dayjs | null) | (((new (...args: any[]) => dayjs.Dayjs) | (() => dayjs.Dayjs | null)) | null)[], unknown, unknown>>;
|
|
63
63
|
readonly required: false;
|
|
64
64
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
65
65
|
__epPropKey: true;
|
|
66
66
|
};
|
|
67
67
|
maxDate: {
|
|
68
|
-
readonly type: import("vue").PropType<import("
|
|
68
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs) | (() => dayjs.Dayjs | null) | (((new (...args: any[]) => dayjs.Dayjs) | (() => dayjs.Dayjs | null)) | null)[], unknown, unknown>>;
|
|
69
69
|
readonly required: false;
|
|
70
70
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
71
|
__epPropKey: true;
|
|
72
72
|
};
|
|
73
73
|
parsedValue: {
|
|
74
|
-
readonly type: import("vue").PropType<import("
|
|
74
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs | dayjs.Dayjs[]) | (() => dayjs.Dayjs | dayjs.Dayjs[]) | (((new (...args: any[]) => dayjs.Dayjs | dayjs.Dayjs[]) | (() => dayjs.Dayjs | dayjs.Dayjs[])) | null)[], unknown, unknown>>;
|
|
75
75
|
readonly required: false;
|
|
76
76
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
77
77
|
__epPropKey: true;
|
|
78
78
|
};
|
|
79
|
-
rangeState: import("
|
|
79
|
+
rangeState: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => import("../props/shared").RangeState) | (() => import("../props/shared").RangeState) | (((new (...args: any[]) => import("../props/shared").RangeState) | (() => import("../props/shared").RangeState)) | null)[], unknown, unknown, () => {
|
|
80
80
|
endDate: null;
|
|
81
81
|
selecting: boolean;
|
|
82
82
|
}, boolean>;
|
|
83
|
-
}>> & {
|
|
83
|
+
}>> & Readonly<{
|
|
84
84
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
85
85
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
86
86
|
onChangerange?: ((...args: any[]) => any) | undefined;
|
|
87
|
-
}
|
|
87
|
+
}>, {
|
|
88
88
|
rangeState: import("../props/shared").RangeState;
|
|
89
89
|
selectionMode: string;
|
|
90
|
-
}, {}>;
|
|
90
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
91
91
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("@vft/utils");require("../../time-picker/index.cjs");require("@vueuse/core");require("../../../utils/ns-cover.cjs");require("lodash-es");const E=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const y=require("dayjs"),T=require("../constants.cjs"),I=require("../props/basic-month-table.cjs"),w=require("../utils.cjs"),R=require("../../time-picker/utils.cjs"),A=["aria-selected","tabindex","onKeydown"],V={class:"cell"},j=e.defineComponent({__name:"basic-month-table",props:I.basicMonthTableProps,emits:["changerange","pick","select"],setup(x,{expose:k,emit:S}){const q=(i,n,a)=>{const s=y().locale(a).startOf("month").month(n).year(i),o=s.daysInMonth();return R.rangeArr(o).map(r=>s.add(r,"day").toDate())},t=x,d=S,M=E.useNamespace("month-table"),p=e.ref("zh-cn"),D=e.ref(),u=e.ref(),_=e.ref([[],[],[]]),g=e.ref(),b=e.ref(),v=e.computed(()=>{const i=_.value,n=y().locale(p.value).startOf("month");for(let a=0;a<3;a++){const s=i[a];for(let o=0;o<4;o++){const r=s[o]||={row:a,column:o,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1};r.type="normal";const m=a*4+o,l=t.date.startOf("year").month(m),c=t.rangeState.endDate||t.maxDate||t.rangeState.selecting&&t.minDate||null;r.inRange=!!(t.minDate&&l.isSameOrAfter(t.minDate,"month")&&c&&l.isSameOrBefore(c,"month"))||!!(t.minDate&&l.isSameOrBefore(t.minDate,"month")&&c&&l.isSameOrAfter(c,"month")),t.minDate?.isSameOrAfter(c)?(r.start=!!(c&&l.isSame(c,"month")),r.end=t.minDate&&l.isSame(t.minDate,"month")):(r.start=!!(t.minDate&&l.isSame(t.minDate,"month")),r.end=!!(c&&l.isSame(c,"month"))),n.isSame(l)&&(r.type="today"),r.text=m,r.disabled=t.disabledDate?.(l.toDate())||!1}}return i}),N=()=>{u.value?.focus()},B=i=>{const n={},a=t.date.year(),s=new Date,o=i.text;return n.disabled=t.disabledDate?q(a,o,p.value).every(t.disabledDate):!1,n.current=w.castArray(t.parsedValue).findIndex(r=>y.isDayjs(r)&&r.year()===a&&r.month()===o)>=0,n.today=s.getFullYear()===a&&s.getMonth()===o,i.inRange&&(n["in-range"]=!0,i.start&&(n["start-date"]=!0),i.end&&(n["end-date"]=!0)),n},f=i=>{const n=t.date.year(),a=i.text;return w.castArray(t.date).findIndex(s=>s.year()===n&&s.month()===a)>=0},O=i=>{if(!t.rangeState.selecting)return;let n=i.target;if(n.tagName==="A"&&(n=n.parentNode?.parentNode),n.tagName==="DIV"&&(n=n.parentNode),n.tagName!=="TD")return;const a=n.parentNode.rowIndex,s=n.cellIndex;v.value[a][s].disabled||(a!==g.value||s!==b.value)&&(g.value=a,b.value=s,d("changerange",{selecting:!0,endDate:t.date.startOf("year").month(a*4+s)}))},h=i=>{const n=i.target?.closest("td");if(n?.tagName!=="TD"||C.hasClass(n,"disabled"))return;const a=n.cellIndex,o=n.parentNode.rowIndex*4+a,r=t.date.startOf("year").month(o);t.selectionMode==="range"?t.rangeState.selecting?(t.minDate&&r>=t.minDate?d("pick",{minDate:t.minDate,maxDate:r}):d("pick",{minDate:r,maxDate:t.minDate}),d("select",!1)):(d("pick",{minDate:r,maxDate:null}),d("select",!0)):d("pick",o)};return e.watch(()=>t.date,async()=>{D.value?.contains(document.activeElement)&&(await e.nextTick(),u.value?.focus())}),k({focus:N}),(i,n)=>(e.openBlock(),e.createElementBlock("table",{role:"grid","aria-label":"使用方向键与 Enter 键以选择月份",class:e.normalizeClass(e.unref(M).b()),onClick:h,onMousemove:O},[e.createElementVNode("tbody",{ref_key:"tbodyRef",ref:D},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(a,s)=>(e.openBlock(),e.createElementBlock("tr",{key:s},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(o,r)=>(e.openBlock(),e.createElementBlock("td",{key:r,ref_for:!0,ref:m=>f(o)&&(u.value=m),class:e.normalizeClass(B(o)),"aria-selected":`${f(o)}`,tabindex:f(o)?0:-1,onKeydown:[e.withKeys(e.withModifiers(h,["prevent","stop"]),["space"]),e.withKeys(e.withModifiers(h,["prevent","stop"]),["enter"])]},[e.createElementVNode("div",null,[e.createElementVNode("span",V,e.toDisplayString(e.unref(T.datePickerConfig)["month"+(o.text+1)]),1)])],42,A))),128))]))),128))],512)],34))}});exports.default=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
date: {
|
|
4
4
|
readonly type: import("vue").PropType<dayjs.Dayjs>;
|
|
5
5
|
readonly required: true;
|
|
@@ -13,17 +13,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
__epPropKey: true;
|
|
14
14
|
};
|
|
15
15
|
parsedValue: {
|
|
16
|
-
readonly type: import("vue").PropType<import("
|
|
16
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs | dayjs.Dayjs[]) | (() => dayjs.Dayjs | dayjs.Dayjs[]) | (((new (...args: any[]) => dayjs.Dayjs | dayjs.Dayjs[]) | (() => dayjs.Dayjs | dayjs.Dayjs[])) | null)[], unknown, unknown>>;
|
|
17
17
|
readonly required: false;
|
|
18
18
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
19
|
__epPropKey: true;
|
|
20
20
|
};
|
|
21
|
-
}
|
|
21
|
+
}>, {
|
|
22
22
|
/**
|
|
23
23
|
* @description focus on the current cell
|
|
24
24
|
*/
|
|
25
25
|
focus: () => void;
|
|
26
|
-
},
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
27
|
pick: (...args: any[]) => void;
|
|
28
28
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
date: {
|
|
@@ -39,12 +39,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
__epPropKey: true;
|
|
40
40
|
};
|
|
41
41
|
parsedValue: {
|
|
42
|
-
readonly type: import("vue").PropType<import("
|
|
42
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => dayjs.Dayjs | dayjs.Dayjs[]) | (() => dayjs.Dayjs | dayjs.Dayjs[]) | (((new (...args: any[]) => dayjs.Dayjs | dayjs.Dayjs[]) | (() => dayjs.Dayjs | dayjs.Dayjs[])) | null)[], unknown, unknown>>;
|
|
43
43
|
readonly required: false;
|
|
44
44
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
45
45
|
__epPropKey: true;
|
|
46
46
|
};
|
|
47
|
-
}>> & {
|
|
47
|
+
}>> & Readonly<{
|
|
48
48
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
}, {}, {}>;
|
|
49
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
50
50
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("@vft/utils");require("../../time-picker/index.cjs");require("@vueuse/core");require("../../../utils/ns-cover.cjs");require("lodash-es");const E=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const m=require("dayjs"),w=require("../props/basic-year-table.cjs"),p=require("../utils.cjs"),D=require("../../time-picker/utils.cjs"),T=["aria-selected","tabindex","onKeydown"],Y={class:"cell"},K={key:1},M=e.defineComponent({__name:"basic-year-table",props:w.basicYearTableProps,emits:["pick"],setup(k,{expose:b,emit:v}){const _=(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("@vft/utils");require("../../time-picker/index.cjs");require("@vueuse/core");require("../../../utils/ns-cover.cjs");require("lodash-es");const E=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const m=require("dayjs"),w=require("../props/basic-year-table.cjs"),p=require("../utils.cjs"),D=require("../../time-picker/utils.cjs"),T=["aria-selected","tabindex","onKeydown"],Y={class:"cell"},K={key:1},M=e.defineComponent({__name:"basic-year-table",props:w.basicYearTableProps,emits:["pick"],setup(k,{expose:b,emit:v}){const _=(a,n)=>{const r=m(String(a)).locale(n).startOf("year"),f=r.endOf("year").dayOfYear();return D.rangeArr(f).map(s=>r.add(s,"day").toDate())},l=k,g=v,q=E.useNamespace("year-table"),d=e.ref("zh-cn"),y=e.ref(),c=e.ref(),o=e.computed(()=>Math.floor(l.date.year()/10)*10),h=()=>{c.value?.focus()},B=a=>{const n={},r=m().locale(d.value);return n.disabled=l.disabledDate?_(a,d.value).every(l.disabledDate):!1,n.current=p.castArray(l.parsedValue).findIndex(t=>t.year()===a)>=0,n.today=r.year()===a,n},i=a=>a===o.value&&l.date.year()<o.value&&l.date.year()>o.value+9||p.castArray(l.date).findIndex(n=>n.year()===a)>=0,u=a=>{const r=a.target.closest("td");if(r&&r.textContent){if(C.hasClass(r,"disabled"))return;const t=r.textContent||r.innerText;g("pick",Number(t))}};return e.watch(()=>l.date,async()=>{y.value?.contains(document.activeElement)&&(await e.nextTick(),c.value?.focus())}),b({focus:h}),(a,n)=>(e.openBlock(),e.createElementBlock("table",{role:"grid","aria-label":"使用方向键与 Enter 键以选择年份",class:e.normalizeClass(e.unref(q).b()),onClick:u},[e.createElementVNode("tbody",{ref_key:"tbodyRef",ref:y},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,(r,t)=>e.createElementVNode("tr",{key:t},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(f,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t+"_"+s},[t*4+s<10?(e.openBlock(),e.createElementBlock("td",{key:0,ref_for:!0,ref:x=>i(o.value+t*4+s)&&(c.value=x),class:e.normalizeClass(["available",B(o.value+t*4+s)]),"aria-selected":`${i(o.value+t*4+s)}`,tabindex:i(o.value+t*4+s)?0:-1,onKeydown:[e.withKeys(e.withModifiers(u,["prevent","stop"]),["space"]),e.withKeys(e.withModifiers(u,["prevent","stop"]),["enter"])]},[e.createElementVNode("span",Y,e.toDisplayString(o.value+t*4+s),1)],42,T)):(e.openBlock(),e.createElementBlock("td",K))],64))),64))])),64))],512)],2))}});exports.default=M;
|
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
import type { Dayjs } from 'dayjs';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
sidebar?(_: {
|
|
4
|
+
class: string;
|
|
5
|
+
}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
8
|
readonly parsedValue: {
|
|
4
|
-
readonly type: import("vue").PropType<import("
|
|
9
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[]) | (((new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[])) | null)[], unknown, unknown>>;
|
|
5
10
|
readonly required: false;
|
|
6
11
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
12
|
__epPropKey: true;
|
|
8
13
|
};
|
|
9
14
|
readonly visible: {
|
|
10
|
-
readonly type: import("vue").PropType<import("
|
|
15
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
11
16
|
readonly required: false;
|
|
12
17
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
18
|
__epPropKey: true;
|
|
14
19
|
};
|
|
15
|
-
readonly format: import("
|
|
20
|
+
readonly format: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
16
21
|
readonly type: {
|
|
17
|
-
readonly type: import("vue").PropType<import("
|
|
22
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (((new (...args: any[]) => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange")) | null)[], "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange", unknown>>;
|
|
18
23
|
readonly required: true;
|
|
19
24
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
25
|
__epPropKey: true;
|
|
21
26
|
};
|
|
22
|
-
}
|
|
27
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
28
|
"panel-change": (...args: any[]) => void;
|
|
24
29
|
pick: (...args: any[]) => void;
|
|
25
30
|
"set-picker-option": (...args: any[]) => void;
|
|
26
31
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
32
|
readonly parsedValue: {
|
|
28
|
-
readonly type: import("vue").PropType<import("
|
|
33
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[]) | (((new (...args: any[]) => Dayjs | Dayjs[]) | (() => Dayjs | Dayjs[])) | null)[], unknown, unknown>>;
|
|
29
34
|
readonly required: false;
|
|
30
35
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
31
36
|
__epPropKey: true;
|
|
32
37
|
};
|
|
33
38
|
readonly visible: {
|
|
34
|
-
readonly type: import("vue").PropType<import("
|
|
39
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
35
40
|
readonly required: false;
|
|
36
41
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
42
|
__epPropKey: true;
|
|
38
43
|
};
|
|
39
|
-
readonly format: import("
|
|
44
|
+
readonly format: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
40
45
|
readonly type: {
|
|
41
|
-
readonly type: import("vue").PropType<import("
|
|
46
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (((new (...args: any[]) => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange")) | null)[], "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange", unknown>>;
|
|
42
47
|
readonly required: true;
|
|
43
48
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
49
|
__epPropKey: true;
|
|
45
50
|
};
|
|
46
|
-
}>> & {
|
|
47
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>> & Readonly<{
|
|
48
52
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
49
54
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
}
|
|
55
|
+
}>, {
|
|
51
56
|
readonly format: string;
|
|
52
|
-
}, {}
|
|
53
|
-
|
|
54
|
-
class: string;
|
|
55
|
-
}): any;
|
|
56
|
-
}>;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
57
59
|
export default _default;
|
|
58
60
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
61
|
new (): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$e=require("@vft/directives"),R=require("@vft/utils"),Z=require("../../button/index.cjs"),P=require("../../icon/index.cjs"),ee=require("../../input/index.cjs");require("../../time-picker/index.cjs");require("../../tooltip/index.cjs");const d=require("../../../constants/aria.cjs");require("@vueuse/core");require("../../../utils/ns-cover.cjs");require("lodash-es");const te=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const v=require("dayjs"),Oe=require("../constants.cjs"),Se=require("../props/panel-date-pick.cjs"),Ie=require("./basic-date-table.vue2.cjs"),xe=require("./basic-month-table.vue2.cjs"),Fe=require("./basic-year-table.vue2.cjs"),Me=require("../../tooltip/constants.cjs"),ae=require("../../time-picker/utils.cjs"),Ke=require("../../time-picker/time-picker-com/panel-time-pick.vue2.cjs"),Re=["onClick"],Ye=e.defineComponent({__name:"panel-date-pick",props:Se.panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup(ne,{emit:le}){const re=(t,a,l)=>!0,u=ne,k=le,c=te.useNamespace("picker-panel"),V=te.useNamespace("date-picker"),oe=e.useAttrs(),ue=e.useSlots(),m=e.ref("zh-cn"),Y=e.inject("EP_PICKER_BASE"),q=e.inject(Me.TOOLTIP_INJECTION_KEY),{shortcuts:A,disabledDate:p,cellClassName:se,defaultTime:B,arrowControl:ie}=Y.props,E=e.toRef(Y.props,"defaultValue"),N=e.ref(),n=e.ref(v().locale(m.value)),$=e.ref(!1),U=e.computed(()=>v(B).locale(m.value)),ce=e.computed(()=>n.value.month()),L=e.computed(()=>n.value.year()),O=e.ref([]),w=e.ref(null),C=e.ref(null),S=t=>O.value.length>0?re(t,O.value,u.format||"HH:mm:ss"):!0,H=t=>B&&!Q.value&&!$.value?U.value.year(t.year()).month(t.month()).date(t.date()):b.value?t.millisecond(0):t.startOf("day"),i=(t,...a)=>{if(!t)k("pick",t,...a);else if(R.isArray(t)){const l=t.map(H);k("pick",l,...a)}else k("pick",H(t),...a);w.value=null,C.value=null,$.value=!1},de=(t,a)=>{if(s.value==="date"){t=t;let l=u.parsedValue?u.parsedValue.year(t.year()).month(t.month()).date(t.date()):t;S(l)||(l=O.value[0][0].year(t.year()).month(t.month()).date(t.date())),n.value=l,i(l,b.value||a)}else s.value==="week"?i(t.date):s.value==="dates"&&i(t,!0)},W=t=>{const a=t?"add":"subtract";n.value=n.value[a](1,"month"),z("month")},j=t=>{const a=n.value,l=t?"add":"subtract";n.value=o.value==="year"?a[l](10,"year"):a[l](1,"year"),z("year")},o=e.ref("date"),ve=e.computed(()=>{const t="年";if(o.value==="year"){const a=Math.floor(L.value/10)*10;return`${a} ${t} - ${a+9} ${t}`}return`${L.value} ${t}`}),me=t=>{const a=R.isFunction(t.value)?t.value():t.value;if(a){i(v(a).locale(m.value));return}t.onClick&&t.onClick({attrs:oe,slots:ue,emit:k})},s=e.computed(()=>{const{type:t}=u;return["week","month","year","dates"].includes(t)?t:"date"}),fe=e.computed(()=>s.value==="date"?o.value:s.value),J=e.computed(()=>!!A.length),pe=async t=>{n.value=n.value.startOf("month").month(t),s.value==="month"?i(n.value,!1):(o.value="date",["month","year","date","week"].includes(s.value)&&(i(n.value,!0),await e.nextTick(),_())),z("month")},he=async t=>{s.value==="year"?(n.value=n.value.startOf("year").year(t),i(n.value,!1)):(n.value=n.value.year(t),o.value="month",["month","year","date","week"].includes(s.value)&&(i(n.value,!0),await e.nextTick(),_())),z("year")},T=async t=>{o.value=t,await e.nextTick(),_()},b=e.computed(()=>u.type==="datetime"||u.type==="datetimerange"),ke=e.computed(()=>b.value||s.value==="dates"),Ve=()=>{if(s.value==="dates")i(u.parsedValue);else{let t=u.parsedValue;if(!t){const a=v(B).locale(m.value),l=F();t=a.year(l.year()).month(l.month()).date(l.date())}n.value=t,i(t)}},ye=()=>{const a=v().locale(m.value).toDate();$.value=!0,(!p||!p(a))&&S(a)&&(n.value=v().locale(m.value),i(n.value))},I=e.computed(()=>ae.extractTimeFormat(u.format)),G=e.computed(()=>ae.extractDateFormat(u.format)),Q=e.computed(()=>{if(C.value)return C.value;if(!(!u.parsedValue&&!E.value))return(u.parsedValue||n.value).format(I.value)}),we=e.computed(()=>{if(w.value)return w.value;if(!(!u.parsedValue&&!E.value))return(u.parsedValue||n.value).format(G.value)}),D=e.ref(!1),Ce=()=>{D.value=!0},Ee=()=>{D.value=!1},x=t=>({hour:t.hour(),minute:t.minute(),second:t.second(),year:t.year(),month:t.month(),date:t.date()}),be=(t,a,l)=>{const{hour:f,minute:h,second:M}=x(t),K=u.parsedValue?u.parsedValue.hour(f).minute(h).second(M):t;n.value=K,i(n.value,!0),l||(D.value=a)},De=t=>{const a=v(t,I.value).locale(m.value);if(a.isValid()&&S(a)){const{year:l,month:f,date:h}=x(n.value);n.value=a.year(l).month(f).date(h),C.value=null,D.value=!1,i(n.value,!0)}},ge=t=>{const a=v(t,G.value).locale(m.value);if(a.isValid()){if(p&&p(a.toDate()))return;const{hour:l,minute:f,second:h}=x(n.value);n.value=a.hour(l).minute(f).second(h),w.value=null,i(n.value,!0)}},Ne=t=>v.isDayjs(t)&&t.isValid()&&(p?!p(t.toDate()):!0),Te=t=>s.value==="dates"?t.map(a=>a.format(u.format)):t.format(u.format),_e=t=>v(t,u.format).locale(m.value),F=()=>{const t=v(E.value).locale(m.value);if(!E.value){const a=U.value;return v().hour(a.hour()).minute(a.minute()).second(a.second()).locale(m.value)}return t},_=async()=>{var t;["week","month","year","date"].includes(s.value)&&((t=N.value)==null||t.focus(),s.value==="week"&&X(d.EVENT_CODE.down))},ze=t=>{const{code:a}=t;[d.EVENT_CODE.up,d.EVENT_CODE.down,d.EVENT_CODE.left,d.EVENT_CODE.right,d.EVENT_CODE.home,d.EVENT_CODE.end,d.EVENT_CODE.pageUp,d.EVENT_CODE.pageDown].includes(a)&&(X(a),t.stopPropagation(),t.preventDefault()),[d.EVENT_CODE.enter,d.EVENT_CODE.space,d.EVENT_CODE.numpadEnter].includes(a)&&w.value===null&&C.value===null&&(t.preventDefault(),i(n.value,!1))},X=t=>{const{up:a,down:l,left:f,right:h,home:M,end:K,pageUp:Pe,pageDown:qe}=d.EVENT_CODE,Be={year:{[a]:-4,[l]:4,[f]:-1,[h]:1,offset:(r,y)=>r.setFullYear(r.getFullYear()+y)},month:{[a]:-4,[l]:4,[f]:-1,[h]:1,offset:(r,y)=>r.setMonth(r.getMonth()+y)},week:{[a]:-1,[l]:1,[f]:-1,[h]:1,offset:(r,y)=>r.setDate(r.getDate()+y*7)},date:{[a]:-7,[l]:7,[f]:-1,[h]:1,[M]:r=>-r.getDay(),[K]:r=>-r.getDay()+6,[Pe]:r=>-new Date(r.getFullYear(),r.getMonth(),0).getDate(),[qe]:r=>new Date(r.getFullYear(),r.getMonth()+1,0).getDate(),offset:(r,y)=>r.setDate(r.getDate()+y)}},g=n.value.toDate();for(;Math.abs(n.value.diff(g,"year",!0))<1;){const r=Be[fe.value];if(!r)return;if(r.offset(g,R.isFunction(r[t])?r[t](g):r[t]??0),p&&p(g))break;const y=v(g).locale(m.value);n.value=y,k("pick",y,!0);break}},z=t=>{k("panel-change",n.value.toDate(),t,o.value)};return e.watch(()=>s.value,t=>{if(["month","year"].includes(t)){o.value=t;return}o.value="date"},{immediate:!0}),e.watch(()=>o.value,()=>{q==null||q.updatePopper()}),e.watch(()=>E.value,t=>{t&&(n.value=F())},{immediate:!0}),e.watch(()=>u.parsedValue,t=>{if(t){if(s.value==="dates"||Array.isArray(t))return;n.value=t}else n.value=F()},{immediate:!0}),k("set-picker-option",["isValidValue",Ne]),k("set-picker-option",["formatToString",Te]),k("set-picker-option",["parseUserInput",_e]),k("set-picker-option",["handleFocusPicker",_]),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c).b(),e.unref(V).b(),{"has-sidebar":t.$slots.sidebar||J.value,"has-time":b.value}])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("body-wrapper"))},[e.renderSlot(t.$slots,"sidebar",{class:e.normalizeClass(e.unref(c).e("sidebar"))}),J.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c).e("sidebar"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(A),(l,f)=>(e.openBlock(),e.createElementBlock("button",{key:f,type:"button",class:e.normalizeClass(e.unref(c).e("shortcut")),onClick:h=>me(l)},e.toDisplayString(l.text),11,Re))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("body"))},[b.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(V).e("time-header"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(V).e("editor-wrap"))},[e.createVNode(e.unref(ee.VftInput),{placeholder:"选择日期","model-value":we.value,size:"small","validate-event":!1,onInput:a[0]||(a[0]=l=>w.value=l),onChange:ge},null,8,["model-value"])],2),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(V).e("editor-wrap"))},[e.createVNode(e.unref(ee.VftInput),{placeholder:"选择时间","model-value":Q.value,size:"small","validate-event":!1,onFocus:Ce,onInput:a[1]||(a[1]=l=>C.value=l),onChange:De},null,8,["model-value"]),e.createVNode(e.unref(Ke.default),{visible:D.value,format:I.value,"time-arrow-control":e.unref(ie),"parsed-value":n.value,onPick:be},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[e.unref($e.ClickOutside),Ee]])],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(V).e("header"),(o.value==="year"||o.value==="month")&&e.unref(V).e("header--bordered")])},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(V).e("prev-btn"))},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["d-arrow-left",e.unref(c).e("icon-btn")]),onClick:a[2]||(a[2]=l=>j(!1))},[e.createVNode(e.unref(P.VftIcon),{icon:"icon-d-arrow-left"})],2),e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(c).e("icon-btn"),"arrow-left"]),onClick:a[3]||(a[3]=l=>W(!1))},[e.createVNode(e.unref(P.VftIcon),{icon:"icon-arrow-left"})],2),[[e.vShow,o.value==="date"]])],2),e.createElementVNode("span",{role:"button",class:e.normalizeClass(e.unref(V).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:a[4]||(a[4]=e.withKeys(l=>T("year"),["enter"])),onClick:a[5]||(a[5]=l=>T("year"))},e.toDisplayString(ve.value),35),e.withDirectives(e.createElementVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:e.normalizeClass([e.unref(V).e("header-label"),{active:o.value==="month"}]),onKeydown:a[6]||(a[6]=e.withKeys(l=>T("month"),["enter"])),onClick:a[7]||(a[7]=l=>T("month"))},e.toDisplayString(e.unref(Oe.datePickerConfig)["month"+(ce.value+1)]),35),[[e.vShow,o.value==="date"]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(V).e("next-btn"))},[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(c).e("icon-btn"),"arrow-right"]),onClick:a[8]||(a[8]=l=>W(!0))},[e.createVNode(e.unref(P.VftIcon),{icon:"icon-arrow-right"})],2),[[e.vShow,o.value==="date"]]),e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(c).e("icon-btn"),"d-arrow-right"]),onClick:a[9]||(a[9]=l=>j(!0))},[e.createVNode(e.unref(P.VftIcon),{icon:"icon-d-arrow-right"})],2)],2)],2),[[e.vShow,o.value!=="time"]]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("content")),onKeydown:ze},[o.value==="date"?(e.openBlock(),e.createBlock(Ie.default,{key:0,ref_key:"currentViewRef",ref:N,"selection-mode":s.value,date:n.value,"parsed-value":t.parsedValue,"disabled-date":e.unref(p),"cell-class-name":e.unref(se),onPick:de},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):e.createCommentVNode("",!0),o.value==="year"?(e.openBlock(),e.createBlock(Fe.default,{key:1,ref_key:"currentViewRef",ref:N,date:n.value,"disabled-date":e.unref(p),"parsed-value":t.parsedValue,onPick:he},null,8,["date","disabled-date","parsed-value"])):e.createCommentVNode("",!0),o.value==="month"?(e.openBlock(),e.createBlock(xe.default,{key:2,ref_key:"currentViewRef",ref:N,date:n.value,"parsed-value":t.parsedValue,"disabled-date":e.unref(p),onPick:pe},null,8,["date","parsed-value","disabled-date"])):e.createCommentVNode("",!0)],34)],2)],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("footer"))},[e.withDirectives(e.createVNode(e.unref(Z.VftButton),{text:"",size:"small",class:e.normalizeClass(e.unref(c).e("link-btn")),onClick:ye},{default:e.withCtx(()=>[e.createTextVNode(" 现在 ")]),_:1},8,["class"]),[[e.vShow,s.value!=="dates"]]),e.createVNode(e.unref(Z.VftButton),{plain:"",size:"small",class:e.normalizeClass(e.unref(c).e("link-btn")),onClick:Ve},{default:e.withCtx(()=>[e.createTextVNode(" 确认 ")]),_:1},8,["class"])],2),[[e.vShow,ke.value&&o.value==="date"]])],2))}});exports.default=Ye;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$e=require("@vft/directives"),M=require("@vft/utils"),X=require("../../button/index.cjs"),P=require("../../icon/index.cjs"),Z=require("../../input/index.cjs");require("../../time-picker/index.cjs");require("../../tooltip/index.cjs");const d=require("../../../constants/aria.cjs");require("@vueuse/core");require("../../../utils/ns-cover.cjs");require("lodash-es");const ee=require("../../../hooks/use-namespace/index.cjs");require("../../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../../hooks/use-z-index/index.cjs");const v=require("dayjs"),Oe=require("../constants.cjs"),Se=require("../props/panel-date-pick.cjs"),Ie=require("./basic-date-table.vue2.cjs"),xe=require("./basic-month-table.vue2.cjs"),Fe=require("./basic-year-table.vue2.cjs"),Me=require("../../tooltip/constants.cjs"),te=require("../../time-picker/utils.cjs"),Ke=require("../../time-picker/time-picker-com/panel-time-pick.vue2.cjs"),Re=["onClick"],Ye=e.defineComponent({__name:"panel-date-pick",props:Se.panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup(ae,{emit:ne}){const le=(t,a,l)=>!0,u=ae,k=ne,c=ee.useNamespace("picker-panel"),V=ee.useNamespace("date-picker"),re=e.useAttrs(),oe=e.useSlots(),m=e.ref("zh-cn"),K=e.inject("EP_PICKER_BASE"),ue=e.inject(Me.TOOLTIP_INJECTION_KEY),{shortcuts:R,disabledDate:p,cellClassName:se,defaultTime:q,arrowControl:ie}=K.props,E=e.toRef(K.props,"defaultValue"),N=e.ref(),n=e.ref(v().locale(m.value)),B=e.ref(!1),Y=e.computed(()=>v(q).locale(m.value)),ce=e.computed(()=>n.value.month()),A=e.computed(()=>n.value.year()),U=e.ref([]),w=e.ref(null),C=e.ref(null),$=t=>U.value.length>0?le(t,U.value,u.format||"HH:mm:ss"):!0,L=t=>q&&!G.value&&!B.value?Y.value.year(t.year()).month(t.month()).date(t.date()):b.value?t.millisecond(0):t.startOf("day"),i=(t,...a)=>{if(!t)k("pick",t,...a);else if(M.isArray(t)){const l=t.map(L);k("pick",l,...a)}else k("pick",L(t),...a);w.value=null,C.value=null,B.value=!1},de=(t,a)=>{if(s.value==="date"){t=t;let l=u.parsedValue?u.parsedValue.year(t.year()).month(t.month()).date(t.date()):t;$(l),n.value=l,i(l,b.value||a)}else s.value==="week"?i(t.date):s.value==="dates"&&i(t,!0)},H=t=>{const a=t?"add":"subtract";n.value=n.value[a](1,"month"),z("month")},W=t=>{const a=n.value,l=t?"add":"subtract";n.value=o.value==="year"?a[l](10,"year"):a[l](1,"year"),z("year")},o=e.ref("date"),ve=e.computed(()=>{const t="年";if(o.value==="year"){const a=Math.floor(A.value/10)*10;return`${a} ${t} - ${a+9} ${t}`}return`${A.value} ${t}`}),me=t=>{const a=M.isFunction(t.value)?t.value():t.value;if(a){i(v(a).locale(m.value));return}t.onClick&&t.onClick({attrs:re,slots:oe,emit:k})},s=e.computed(()=>{const{type:t}=u;return["week","month","year","dates"].includes(t)?t:"date"}),fe=e.computed(()=>s.value==="date"?o.value:s.value),j=e.computed(()=>!!R.length),pe=async t=>{n.value=n.value.startOf("month").month(t),s.value==="month"?i(n.value,!1):(o.value="date",["month","year","date","week"].includes(s.value)&&(i(n.value,!0),await e.nextTick(),_())),z("month")},he=async t=>{s.value==="year"?(n.value=n.value.startOf("year").year(t),i(n.value,!1)):(n.value=n.value.year(t),o.value="month",["month","year","date","week"].includes(s.value)&&(i(n.value,!0),await e.nextTick(),_())),z("year")},T=async t=>{o.value=t,await e.nextTick(),_()},b=e.computed(()=>u.type==="datetime"||u.type==="datetimerange"),ke=e.computed(()=>b.value||s.value==="dates"),Ve=()=>{if(s.value==="dates")i(u.parsedValue);else{let t=u.parsedValue;if(!t){const a=v(q).locale(m.value),l=I();t=a.year(l.year()).month(l.month()).date(l.date())}n.value=t,i(t)}},ye=()=>{const a=v().locale(m.value).toDate();B.value=!0,(!p||!p(a))&&$(a)&&(n.value=v().locale(m.value),i(n.value))},O=e.computed(()=>te.extractTimeFormat(u.format)),J=e.computed(()=>te.extractDateFormat(u.format)),G=e.computed(()=>{if(C.value)return C.value;if(!(!u.parsedValue&&!E.value))return(u.parsedValue||n.value).format(O.value)}),we=e.computed(()=>{if(w.value)return w.value;if(!(!u.parsedValue&&!E.value))return(u.parsedValue||n.value).format(J.value)}),D=e.ref(!1),Ce=()=>{D.value=!0},Ee=()=>{D.value=!1},S=t=>({hour:t.hour(),minute:t.minute(),second:t.second(),year:t.year(),month:t.month(),date:t.date()}),be=(t,a,l)=>{const{hour:f,minute:h,second:x}=S(t),F=u.parsedValue?u.parsedValue.hour(f).minute(h).second(x):t;n.value=F,i(n.value,!0),l||(D.value=a)},De=t=>{const a=v(t,O.value).locale(m.value);if(a.isValid()&&$(a)){const{year:l,month:f,date:h}=S(n.value);n.value=a.year(l).month(f).date(h),C.value=null,D.value=!1,i(n.value,!0)}},ge=t=>{const a=v(t,J.value).locale(m.value);if(a.isValid()){if(p&&p(a.toDate()))return;const{hour:l,minute:f,second:h}=S(n.value);n.value=a.hour(l).minute(f).second(h),w.value=null,i(n.value,!0)}},Ne=t=>v.isDayjs(t)&&t.isValid()&&(p?!p(t.toDate()):!0),Te=t=>s.value==="dates"?t.map(a=>a.format(u.format)):t.format(u.format),_e=t=>v(t,u.format).locale(m.value),I=()=>{const t=v(E.value).locale(m.value);if(!E.value){const a=Y.value;return v().hour(a.hour()).minute(a.minute()).second(a.second()).locale(m.value)}return t},_=async()=>{["week","month","year","date"].includes(s.value)&&(N.value?.focus(),s.value==="week"&&Q(d.EVENT_CODE.down))},ze=t=>{const{code:a}=t;[d.EVENT_CODE.up,d.EVENT_CODE.down,d.EVENT_CODE.left,d.EVENT_CODE.right,d.EVENT_CODE.home,d.EVENT_CODE.end,d.EVENT_CODE.pageUp,d.EVENT_CODE.pageDown].includes(a)&&(Q(a),t.stopPropagation(),t.preventDefault()),[d.EVENT_CODE.enter,d.EVENT_CODE.space,d.EVENT_CODE.numpadEnter].includes(a)&&w.value===null&&C.value===null&&(t.preventDefault(),i(n.value,!1))},Q=t=>{const{up:a,down:l,left:f,right:h,home:x,end:F,pageUp:Pe,pageDown:qe}=d.EVENT_CODE,Be={year:{[a]:-4,[l]:4,[f]:-1,[h]:1,offset:(r,y)=>r.setFullYear(r.getFullYear()+y)},month:{[a]:-4,[l]:4,[f]:-1,[h]:1,offset:(r,y)=>r.setMonth(r.getMonth()+y)},week:{[a]:-1,[l]:1,[f]:-1,[h]:1,offset:(r,y)=>r.setDate(r.getDate()+y*7)},date:{[a]:-7,[l]:7,[f]:-1,[h]:1,[x]:r=>-r.getDay(),[F]:r=>-r.getDay()+6,[Pe]:r=>-new Date(r.getFullYear(),r.getMonth(),0).getDate(),[qe]:r=>new Date(r.getFullYear(),r.getMonth()+1,0).getDate(),offset:(r,y)=>r.setDate(r.getDate()+y)}},g=n.value.toDate();for(;Math.abs(n.value.diff(g,"year",!0))<1;){const r=Be[fe.value];if(!r)return;if(r.offset(g,M.isFunction(r[t])?r[t](g):r[t]??0),p&&p(g))break;const y=v(g).locale(m.value);n.value=y,k("pick",y,!0);break}},z=t=>{k("panel-change",n.value.toDate(),t,o.value)};return e.watch(()=>s.value,t=>{if(["month","year"].includes(t)){o.value=t;return}o.value="date"},{immediate:!0}),e.watch(()=>o.value,()=>{ue?.updatePopper()}),e.watch(()=>E.value,t=>{t&&(n.value=I())},{immediate:!0}),e.watch(()=>u.parsedValue,t=>{if(t){if(s.value==="dates"||Array.isArray(t))return;n.value=t}else n.value=I()},{immediate:!0}),k("set-picker-option",["isValidValue",Ne]),k("set-picker-option",["formatToString",Te]),k("set-picker-option",["parseUserInput",_e]),k("set-picker-option",["handleFocusPicker",_]),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c).b(),e.unref(V).b(),{"has-sidebar":t.$slots.sidebar||j.value,"has-time":b.value}])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("body-wrapper"))},[e.renderSlot(t.$slots,"sidebar",{class:e.normalizeClass(e.unref(c).e("sidebar"))}),j.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c).e("sidebar"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R),(l,f)=>(e.openBlock(),e.createElementBlock("button",{key:f,type:"button",class:e.normalizeClass(e.unref(c).e("shortcut")),onClick:h=>me(l)},e.toDisplayString(l.text),11,Re))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("body"))},[b.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(V).e("time-header"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(V).e("editor-wrap"))},[e.createVNode(e.unref(Z.VftInput),{placeholder:"选择日期","model-value":we.value,size:"small","validate-event":!1,onInput:a[0]||(a[0]=l=>w.value=l),onChange:ge},null,8,["model-value"])],2),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(V).e("editor-wrap"))},[e.createVNode(e.unref(Z.VftInput),{placeholder:"选择时间","model-value":G.value,size:"small","validate-event":!1,onFocus:Ce,onInput:a[1]||(a[1]=l=>C.value=l),onChange:De},null,8,["model-value"]),e.createVNode(e.unref(Ke.default),{visible:D.value,format:O.value,"time-arrow-control":e.unref(ie),"parsed-value":n.value,onPick:be},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[e.unref($e.ClickOutside),Ee]])],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(V).e("header"),(o.value==="year"||o.value==="month")&&e.unref(V).e("header--bordered")])},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(V).e("prev-btn"))},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["d-arrow-left",e.unref(c).e("icon-btn")]),onClick:a[2]||(a[2]=l=>W(!1))},[e.createVNode(e.unref(P.VftIcon),{icon:"icon-d-arrow-left"})],2),e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(c).e("icon-btn"),"arrow-left"]),onClick:a[3]||(a[3]=l=>H(!1))},[e.createVNode(e.unref(P.VftIcon),{icon:"icon-arrow-left"})],2),[[e.vShow,o.value==="date"]])],2),e.createElementVNode("span",{role:"button",class:e.normalizeClass(e.unref(V).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:a[4]||(a[4]=e.withKeys(l=>T("year"),["enter"])),onClick:a[5]||(a[5]=l=>T("year"))},e.toDisplayString(ve.value),35),e.withDirectives(e.createElementVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:e.normalizeClass([e.unref(V).e("header-label"),{active:o.value==="month"}]),onKeydown:a[6]||(a[6]=e.withKeys(l=>T("month"),["enter"])),onClick:a[7]||(a[7]=l=>T("month"))},e.toDisplayString(e.unref(Oe.datePickerConfig)["month"+(ce.value+1)]),35),[[e.vShow,o.value==="date"]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(V).e("next-btn"))},[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(c).e("icon-btn"),"arrow-right"]),onClick:a[8]||(a[8]=l=>H(!0))},[e.createVNode(e.unref(P.VftIcon),{icon:"icon-arrow-right"})],2),[[e.vShow,o.value==="date"]]),e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(c).e("icon-btn"),"d-arrow-right"]),onClick:a[9]||(a[9]=l=>W(!0))},[e.createVNode(e.unref(P.VftIcon),{icon:"icon-d-arrow-right"})],2)],2)],2),[[e.vShow,o.value!=="time"]]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("content")),onKeydown:ze},[o.value==="date"?(e.openBlock(),e.createBlock(Ie.default,{key:0,ref_key:"currentViewRef",ref:N,"selection-mode":s.value,date:n.value,"parsed-value":t.parsedValue,"disabled-date":e.unref(p),"cell-class-name":e.unref(se),onPick:de},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):e.createCommentVNode("",!0),o.value==="year"?(e.openBlock(),e.createBlock(Fe.default,{key:1,ref_key:"currentViewRef",ref:N,date:n.value,"disabled-date":e.unref(p),"parsed-value":t.parsedValue,onPick:he},null,8,["date","disabled-date","parsed-value"])):e.createCommentVNode("",!0),o.value==="month"?(e.openBlock(),e.createBlock(xe.default,{key:2,ref_key:"currentViewRef",ref:N,date:n.value,"parsed-value":t.parsedValue,"disabled-date":e.unref(p),onPick:pe},null,8,["date","parsed-value","disabled-date"])):e.createCommentVNode("",!0)],34)],2)],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("footer"))},[e.withDirectives(e.createVNode(e.unref(X.VftButton),{text:"",size:"small",class:e.normalizeClass(e.unref(c).e("link-btn")),onClick:ye},{default:e.withCtx(()=>a[10]||(a[10]=[e.createTextVNode(" 现在 ")])),_:1,__:[10]},8,["class"]),[[e.vShow,s.value!=="dates"]]),e.createVNode(e.unref(X.VftButton),{plain:"",size:"small",class:e.normalizeClass(e.unref(c).e("link-btn")),onClick:Ve},{default:e.withCtx(()=>a[11]||(a[11]=[e.createTextVNode(" 确认 ")])),_:1,__:[11]},8,["class"])],2),[[e.vShow,ke.value&&o.value==="date"]])],2))}});exports.default=Ye;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Dayjs } from 'dayjs';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
sidebar?(_: {
|
|
4
|
+
class: string;
|
|
5
|
+
}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
8
|
readonly unlinkPanels: BooleanConstructor;
|
|
4
9
|
readonly parsedValue: {
|
|
5
10
|
readonly type: import("vue").PropType<Dayjs[]>;
|
|
@@ -8,12 +13,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
8
13
|
__epPropKey: true;
|
|
9
14
|
};
|
|
10
15
|
readonly type: {
|
|
11
|
-
readonly type: import("vue").PropType<import("
|
|
16
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (((new (...args: any[]) => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange")) | null)[], "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange", unknown>>;
|
|
12
17
|
readonly required: true;
|
|
13
18
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
19
|
__epPropKey: true;
|
|
15
20
|
};
|
|
16
|
-
}
|
|
21
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
22
|
"calendar-change": (...args: any[]) => void;
|
|
18
23
|
"panel-change": (...args: any[]) => void;
|
|
19
24
|
pick: (...args: any[]) => void;
|
|
@@ -27,23 +32,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
27
32
|
__epPropKey: true;
|
|
28
33
|
};
|
|
29
34
|
readonly type: {
|
|
30
|
-
readonly type: import("vue").PropType<import("
|
|
35
|
+
readonly type: import("vue").PropType<import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (((new (...args: any[]) => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange")) | null)[], "year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange", unknown>>;
|
|
31
36
|
readonly required: true;
|
|
32
37
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
33
38
|
__epPropKey: true;
|
|
34
39
|
};
|
|
35
|
-
}>> & {
|
|
36
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}>> & Readonly<{
|
|
37
41
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
38
42
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
39
44
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
40
|
-
}
|
|
45
|
+
}>, {
|
|
41
46
|
readonly unlinkPanels: boolean;
|
|
42
|
-
}, {}
|
|
43
|
-
|
|
44
|
-
class: string;
|
|
45
|
-
}): any;
|
|
46
|
-
}>;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
47
49
|
export default _default;
|
|
48
50
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
51
|
new (): {
|