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