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
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import "@vft/utils";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { buildProps as t, definePropType as e } from "../../../utils/vue/props/runtime.js";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "../../../utils/ns-cover.js";
|
|
6
|
+
import "lodash";
|
|
7
|
+
import { disabledTimeListsProps as a } from "../props/shared.js";
|
|
8
|
+
const u = t({
|
|
9
|
+
/**
|
|
10
|
+
* @description same as `id` in native input
|
|
11
|
+
*/
|
|
12
|
+
id: {
|
|
13
|
+
type: e([Array, String])
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* @description same as `name` in native input
|
|
17
|
+
*/
|
|
18
|
+
name: {
|
|
19
|
+
type: e([Array, String]),
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* @description custom class name for TimePicker's dropdown
|
|
24
|
+
*/
|
|
25
|
+
popperClass: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* @description format of the displayed value in the input box
|
|
31
|
+
*/
|
|
32
|
+
format: String,
|
|
33
|
+
/**
|
|
34
|
+
* @description optional, format of binding value. If not specified, the binding value will be a Date object
|
|
35
|
+
*/
|
|
36
|
+
valueFormat: String,
|
|
37
|
+
/**
|
|
38
|
+
* @description type of the picker
|
|
39
|
+
*/
|
|
40
|
+
type: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* @description whether to show clear button
|
|
46
|
+
*/
|
|
47
|
+
clearable: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @description Custom clear icon component
|
|
53
|
+
*/
|
|
54
|
+
clearIcon: {
|
|
55
|
+
type: e([String, Object])
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* @description whether the input is editable
|
|
59
|
+
*/
|
|
60
|
+
editable: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !0
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* @description Custom prefix icon component
|
|
66
|
+
*/
|
|
67
|
+
prefixIcon: {
|
|
68
|
+
type: e([String, Object]),
|
|
69
|
+
default: ""
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* @description size of Input
|
|
73
|
+
*/
|
|
74
|
+
size: {
|
|
75
|
+
type: Object
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* @description whether TimePicker is read only
|
|
79
|
+
*/
|
|
80
|
+
readonly: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !1
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* @description whether TimePicker is disabled
|
|
86
|
+
*/
|
|
87
|
+
disabled: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !1
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* @description placeholder in non-range mode
|
|
93
|
+
*/
|
|
94
|
+
placeholder: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: ""
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* @description [popper.js](https://popper.js.org/docs/v2/) parameters
|
|
100
|
+
*/
|
|
101
|
+
popperOptions: {
|
|
102
|
+
type: e(Object),
|
|
103
|
+
default: () => ({})
|
|
104
|
+
},
|
|
105
|
+
/**
|
|
106
|
+
* @description binding value, if it is an array, the length should be 2
|
|
107
|
+
*/
|
|
108
|
+
modelValue: {
|
|
109
|
+
type: e([Date, Array, String, Number]),
|
|
110
|
+
default: ""
|
|
111
|
+
},
|
|
112
|
+
/**
|
|
113
|
+
* @description range separator
|
|
114
|
+
*/
|
|
115
|
+
rangeSeparator: {
|
|
116
|
+
type: String,
|
|
117
|
+
default: "-"
|
|
118
|
+
},
|
|
119
|
+
/**
|
|
120
|
+
* @description placeholder for the start date in range mode
|
|
121
|
+
*/
|
|
122
|
+
startPlaceholder: String,
|
|
123
|
+
/**
|
|
124
|
+
* @description placeholder for the end date in range mode
|
|
125
|
+
*/
|
|
126
|
+
endPlaceholder: String,
|
|
127
|
+
/**
|
|
128
|
+
* @description optional, default date of the calendar
|
|
129
|
+
*/
|
|
130
|
+
defaultValue: {
|
|
131
|
+
type: e([Date, Array])
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* @description optional, the time value to use when selecting date range
|
|
135
|
+
*/
|
|
136
|
+
defaultTime: {
|
|
137
|
+
type: e([Date, Array])
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* @description whether to pick a time range
|
|
141
|
+
*/
|
|
142
|
+
isRange: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: !1
|
|
145
|
+
},
|
|
146
|
+
...a,
|
|
147
|
+
/**
|
|
148
|
+
* @description a function determining if a date is disabled with that date as its parameter. Should return a Boolean
|
|
149
|
+
*/
|
|
150
|
+
disabledDate: {
|
|
151
|
+
type: Function
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
* @description set custom className
|
|
155
|
+
*/
|
|
156
|
+
cellClassName: {
|
|
157
|
+
type: Function
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* @description an object array to set shortcut options
|
|
161
|
+
*/
|
|
162
|
+
shortcuts: {
|
|
163
|
+
type: Array,
|
|
164
|
+
default: () => []
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* @description whether to pick time using arrow buttons
|
|
168
|
+
*/
|
|
169
|
+
arrowControl: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
default: !1
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* @description same as `aria-label` in native input
|
|
175
|
+
*/
|
|
176
|
+
label: {
|
|
177
|
+
type: String,
|
|
178
|
+
default: void 0
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
* @description input tabindex
|
|
182
|
+
*/
|
|
183
|
+
tabindex: {
|
|
184
|
+
type: e([String, Number]),
|
|
185
|
+
default: 0
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* @description whether to trigger form validation
|
|
189
|
+
*/
|
|
190
|
+
validateEvent: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: !0
|
|
193
|
+
},
|
|
194
|
+
/**
|
|
195
|
+
* @description unlink two date-panels in range-picker
|
|
196
|
+
*/
|
|
197
|
+
unlinkPanels: Boolean
|
|
198
|
+
});
|
|
199
|
+
export {
|
|
200
|
+
u as timePickerDefaultProps
|
|
201
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const k = ({
|
|
2
|
+
getAvailableHours: h,
|
|
3
|
+
getAvailableMinutes: l,
|
|
4
|
+
getAvailableSeconds: a
|
|
5
|
+
}) => {
|
|
6
|
+
const d = (s, t, m, i) => {
|
|
7
|
+
const r = {
|
|
8
|
+
hour: h,
|
|
9
|
+
minute: l,
|
|
10
|
+
second: a
|
|
11
|
+
};
|
|
12
|
+
let n = s;
|
|
13
|
+
return ["hour", "minute", "second"].forEach((o) => {
|
|
14
|
+
if (r[o]) {
|
|
15
|
+
let e;
|
|
16
|
+
const c = r[o];
|
|
17
|
+
switch (o) {
|
|
18
|
+
case "minute": {
|
|
19
|
+
e = c(
|
|
20
|
+
n.hour(),
|
|
21
|
+
t,
|
|
22
|
+
i
|
|
23
|
+
);
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
case "second": {
|
|
27
|
+
e = c(
|
|
28
|
+
n.hour(),
|
|
29
|
+
n.minute(),
|
|
30
|
+
t,
|
|
31
|
+
i
|
|
32
|
+
);
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
default: {
|
|
36
|
+
e = c(
|
|
37
|
+
t,
|
|
38
|
+
i
|
|
39
|
+
);
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (e != null && e.length && !e.includes(n[o]())) {
|
|
44
|
+
const b = m ? 0 : e.length - 1;
|
|
45
|
+
n = n[o](e[b]);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}), n;
|
|
49
|
+
}, u = {};
|
|
50
|
+
return {
|
|
51
|
+
timePickerOptions: u,
|
|
52
|
+
getAvailableTime: d,
|
|
53
|
+
onSetOption: ([s, t]) => {
|
|
54
|
+
u[s] = t;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
k as useTimePanel
|
|
60
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ref as A, watch as f } from "vue";
|
|
2
|
+
import { makeList as l } from "../utils.js";
|
|
3
|
+
const m = (t) => {
|
|
4
|
+
const e = (u, i) => u || i, r = (u) => u !== !0;
|
|
5
|
+
return t.map(e).filter(r);
|
|
6
|
+
}, V = (t, e, r) => ({
|
|
7
|
+
getHoursList: (o, g) => l(24, t && (() => t == null ? void 0 : t(o, g))),
|
|
8
|
+
getMinutesList: (o, g, s) => l(
|
|
9
|
+
60,
|
|
10
|
+
e && (() => e == null ? void 0 : e(o, g, s))
|
|
11
|
+
),
|
|
12
|
+
getSecondsList: (o, g, s, n) => l(
|
|
13
|
+
60,
|
|
14
|
+
r && (() => r == null ? void 0 : r(o, g, s, n))
|
|
15
|
+
)
|
|
16
|
+
}), N = (t, e, r) => {
|
|
17
|
+
const { getHoursList: u, getMinutesList: i, getSecondsList: L } = V(
|
|
18
|
+
t,
|
|
19
|
+
e,
|
|
20
|
+
r
|
|
21
|
+
);
|
|
22
|
+
return {
|
|
23
|
+
getAvailableHours: (n, c) => m(u(n, c)),
|
|
24
|
+
getAvailableMinutes: (n, c, a) => m(i(n, c, a)),
|
|
25
|
+
getAvailableSeconds: (n, c, a, v) => m(L(n, c, a, v))
|
|
26
|
+
};
|
|
27
|
+
}, O = (t) => {
|
|
28
|
+
const e = A(t.parsedValue);
|
|
29
|
+
return f(
|
|
30
|
+
() => t.visible,
|
|
31
|
+
(r) => {
|
|
32
|
+
r || (e.value = t.parsedValue);
|
|
33
|
+
}
|
|
34
|
+
), e;
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
N as buildAvailableTimeSlotGetter,
|
|
38
|
+
V as getTimeLists,
|
|
39
|
+
O as useOldValue
|
|
40
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const Y = ["hours", "minutes", "seconds"], t = "HH:mm:ss", e = "YYYY-MM-DD", n = {
|
|
2
|
+
date: e,
|
|
3
|
+
dates: e,
|
|
4
|
+
week: "gggg[w]ww",
|
|
5
|
+
year: "YYYY",
|
|
6
|
+
month: "YYYY-MM",
|
|
7
|
+
datetime: `${e} ${t}`,
|
|
8
|
+
monthrange: "YYYY-MM",
|
|
9
|
+
daterange: e,
|
|
10
|
+
datetimerange: `${e} ${t}`
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
e as DEFAULT_FORMATS_DATE,
|
|
14
|
+
n as DEFAULT_FORMATS_DATEPICKER,
|
|
15
|
+
t as DEFAULT_FORMATS_TIME,
|
|
16
|
+
Y as timeUnits
|
|
17
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import r from "./time-picker.js";
|
|
2
|
+
import { default as T } from "./common/picker.vue2.js";
|
|
3
|
+
import { default as f } from "./time-picker-com/panel-time-pick.vue2.js";
|
|
4
|
+
import { buildTimeList as l, dateEquals as n, extractDateFormat as p, extractTimeFormat as A, formatter as E, makeList as P, parseDate as u, rangeArr as x, valueEquals as D } from "./utils.js";
|
|
5
|
+
import { DEFAULT_FORMATS_DATE as k, DEFAULT_FORMATS_DATEPICKER as _, DEFAULT_FORMATS_TIME as d, timeUnits as L } from "./constants.js";
|
|
6
|
+
import { timePickerDefaultProps as R } from "./common/props.js";
|
|
7
|
+
const e = r;
|
|
8
|
+
e.install = (t) => {
|
|
9
|
+
t.component(e.name, e);
|
|
10
|
+
};
|
|
11
|
+
const m = e;
|
|
12
|
+
export {
|
|
13
|
+
T as CommonPicker,
|
|
14
|
+
k as DEFAULT_FORMATS_DATE,
|
|
15
|
+
_ as DEFAULT_FORMATS_DATEPICKER,
|
|
16
|
+
d as DEFAULT_FORMATS_TIME,
|
|
17
|
+
f as TimePickPanel,
|
|
18
|
+
m as VftTimePicker,
|
|
19
|
+
l as buildTimeList,
|
|
20
|
+
n as dateEquals,
|
|
21
|
+
e as default,
|
|
22
|
+
p as extractDateFormat,
|
|
23
|
+
A as extractTimeFormat,
|
|
24
|
+
E as formatter,
|
|
25
|
+
P as makeList,
|
|
26
|
+
u as parseDate,
|
|
27
|
+
x as rangeArr,
|
|
28
|
+
R as timePickerDefaultProps,
|
|
29
|
+
L as timeUnits,
|
|
30
|
+
D as valueEquals
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "@vft/utils";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { buildProps as r, definePropType as e } from "../../../utils/vue/props/runtime.js";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "../../../utils/ns-cover.js";
|
|
6
|
+
import "lodash";
|
|
7
|
+
import { disabledTimeListsProps as o } from "./shared.js";
|
|
8
|
+
const a = r({
|
|
9
|
+
role: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: !0
|
|
12
|
+
},
|
|
13
|
+
spinnerDate: {
|
|
14
|
+
type: e(Object),
|
|
15
|
+
required: !0
|
|
16
|
+
},
|
|
17
|
+
showSeconds: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
arrowControl: Boolean,
|
|
22
|
+
amPmMode: {
|
|
23
|
+
// 'a': am/pm; 'A': AM/PM
|
|
24
|
+
type: e(String),
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
...o
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
a as basicTimeSpinnerProps
|
|
31
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "@vft/utils";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { buildProps as r, definePropType as e } from "../../../utils/vue/props/runtime.js";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "../../../utils/ns-cover.js";
|
|
6
|
+
import "lodash";
|
|
7
|
+
import { timePanelSharedProps as o } from "./shared.js";
|
|
8
|
+
const l = r({
|
|
9
|
+
...o,
|
|
10
|
+
datetimeRole: String,
|
|
11
|
+
parsedValue: {
|
|
12
|
+
type: e(Object)
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
l as panelTimePickerProps
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "@vft/utils";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { buildProps as r, definePropType as p } from "../../../utils/vue/props/runtime.js";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "../../../utils/ns-cover.js";
|
|
6
|
+
import "lodash";
|
|
7
|
+
import { timePanelSharedProps as o } from "./shared.js";
|
|
8
|
+
const P = r({
|
|
9
|
+
...o,
|
|
10
|
+
parsedValue: {
|
|
11
|
+
type: p(Array)
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
P as panelTimeRangeProps
|
|
16
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import "@vft/utils";
|
|
2
|
+
import "vue";
|
|
3
|
+
import { buildProps as i, definePropType as e } from "../../../utils/vue/props/runtime.js";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "../../../utils/ns-cover.js";
|
|
6
|
+
import "lodash";
|
|
7
|
+
const n = i({
|
|
8
|
+
/**
|
|
9
|
+
* @description To specify the array of hours that cannot be selected
|
|
10
|
+
*/
|
|
11
|
+
disabledHours: {
|
|
12
|
+
type: e(Function)
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* @description To specify the array of minutes that cannot be selected
|
|
16
|
+
*/
|
|
17
|
+
disabledMinutes: {
|
|
18
|
+
type: e(Function)
|
|
19
|
+
},
|
|
20
|
+
/**
|
|
21
|
+
* @description To specify the array of seconds that cannot be selected
|
|
22
|
+
*/
|
|
23
|
+
disabledSeconds: {
|
|
24
|
+
type: e(Function)
|
|
25
|
+
}
|
|
26
|
+
}), a = i({
|
|
27
|
+
visible: Boolean,
|
|
28
|
+
actualVisible: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: void 0
|
|
31
|
+
},
|
|
32
|
+
format: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
n as disabledTimeListsProps,
|
|
39
|
+
a as timePanelSharedProps
|
|
40
|
+
};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { defineComponent as ie, ref as k, computed as C, unref as n, onMounted as le, nextTick as F, watch as ae, openBlock as l, createElementBlock as a, normalizeClass as m, Fragment as u, renderList as D, createBlock as ue, withCtx as me, createTextVNode as $, toDisplayString as f, createCommentVNode as N, withDirectives as I, createVNode as j, createElementVNode as de } from "vue";
|
|
2
|
+
import { debounce as pe } from "lodash";
|
|
3
|
+
import { vRepeatClick as U } from "@vft/directives";
|
|
4
|
+
import { VftScrollbar as he } from "../../scrollbar/index.js";
|
|
5
|
+
import { VftIcon as q } from "../../icon/index.js";
|
|
6
|
+
import { useNamespace as fe } from "../../../hooks/use-namespace/index.js";
|
|
7
|
+
import "@popperjs/core";
|
|
8
|
+
import "../../../hooks/use-z-index/index.js";
|
|
9
|
+
import "@vueuse/core";
|
|
10
|
+
import "@vft/utils";
|
|
11
|
+
import "../../../utils/ns-cover.js";
|
|
12
|
+
import { timeUnits as z } from "../constants.js";
|
|
13
|
+
import { buildTimeList as V } from "../utils.js";
|
|
14
|
+
import { basicTimeSpinnerProps as be } from "../props/basic-time-spinner.js";
|
|
15
|
+
import { getTimeLists as we } from "../composables/use-time-picker.js";
|
|
16
|
+
const ge = ["onClick"], Se = ["onMouseenter"], Ae = /* @__PURE__ */ ie({
|
|
17
|
+
__name: "basic-time-spinner",
|
|
18
|
+
props: be,
|
|
19
|
+
emits: ["change", "select-range", "set-option"],
|
|
20
|
+
setup(G, { emit: g }) {
|
|
21
|
+
const c = G, i = fe("time"), { getHoursList: J, getMinutesList: K, getSecondsList: O } = we(
|
|
22
|
+
c.disabledHours,
|
|
23
|
+
c.disabledMinutes,
|
|
24
|
+
c.disabledSeconds
|
|
25
|
+
);
|
|
26
|
+
let _ = !1;
|
|
27
|
+
const S = k(), Q = k(), W = k(), X = k(), h = {
|
|
28
|
+
hours: Q,
|
|
29
|
+
minutes: W,
|
|
30
|
+
seconds: X
|
|
31
|
+
}, x = C(() => c.showSeconds ? z : z.slice(0, 2)), d = C(() => {
|
|
32
|
+
const { spinnerDate: e } = c, s = e.hour(), o = e.minute(), r = e.second();
|
|
33
|
+
return { hours: s, minutes: o, seconds: r };
|
|
34
|
+
}), v = C(() => {
|
|
35
|
+
const { hours: e, minutes: s } = n(d);
|
|
36
|
+
return {
|
|
37
|
+
hours: J(c.role),
|
|
38
|
+
minutes: K(e, c.role),
|
|
39
|
+
seconds: O(e, s, c.role)
|
|
40
|
+
};
|
|
41
|
+
}), Y = C(() => {
|
|
42
|
+
const { hours: e, minutes: s, seconds: o } = n(d);
|
|
43
|
+
return {
|
|
44
|
+
hours: V(e, 23),
|
|
45
|
+
minutes: V(s, 59),
|
|
46
|
+
seconds: V(o, 59)
|
|
47
|
+
};
|
|
48
|
+
}), Z = pe((e) => {
|
|
49
|
+
_ = !1, b(e);
|
|
50
|
+
}, 200), A = (e) => {
|
|
51
|
+
if (!!!c.amPmMode)
|
|
52
|
+
return "";
|
|
53
|
+
const o = c.amPmMode === "A";
|
|
54
|
+
let r = e < 12 ? " am" : " pm";
|
|
55
|
+
return o && (r = r.toUpperCase()), r;
|
|
56
|
+
}, p = (e) => {
|
|
57
|
+
let s;
|
|
58
|
+
switch (e) {
|
|
59
|
+
case "hours":
|
|
60
|
+
s = [0, 2];
|
|
61
|
+
break;
|
|
62
|
+
case "minutes":
|
|
63
|
+
s = [3, 5];
|
|
64
|
+
break;
|
|
65
|
+
case "seconds":
|
|
66
|
+
s = [6, 8];
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
const [o, r] = s;
|
|
70
|
+
g("select-range", o, r), S.value = e;
|
|
71
|
+
}, b = (e) => {
|
|
72
|
+
R(e, n(d)[e]);
|
|
73
|
+
}, B = () => {
|
|
74
|
+
b("hours"), b("minutes"), b("seconds");
|
|
75
|
+
}, P = (e) => e.querySelector(`.${i.namespace.value}-scrollbar__wrap`), R = (e, s) => {
|
|
76
|
+
if (c.arrowControl)
|
|
77
|
+
return;
|
|
78
|
+
const o = n(h[e]);
|
|
79
|
+
o && o.$el && (P(o.$el).scrollTop = Math.max(
|
|
80
|
+
0,
|
|
81
|
+
s * T(e)
|
|
82
|
+
));
|
|
83
|
+
}, T = (e) => {
|
|
84
|
+
const s = n(h[e]);
|
|
85
|
+
return (s == null ? void 0 : s.$el.querySelector("li").offsetHeight) || 0;
|
|
86
|
+
}, y = () => {
|
|
87
|
+
L(1);
|
|
88
|
+
}, ee = () => {
|
|
89
|
+
L(-1);
|
|
90
|
+
}, L = (e) => {
|
|
91
|
+
S.value || p("hours");
|
|
92
|
+
const s = S.value, o = n(d)[s], r = S.value === "hours" ? 24 : 60, t = se(s, o, e, r);
|
|
93
|
+
H(s, t), R(s, t), F(() => p(s));
|
|
94
|
+
}, se = (e, s, o, r) => {
|
|
95
|
+
let t = (s + o + r) % r;
|
|
96
|
+
const w = n(v)[e];
|
|
97
|
+
for (; w[t] && t !== s; )
|
|
98
|
+
t = (t + o + r) % r;
|
|
99
|
+
return t;
|
|
100
|
+
}, H = (e, s) => {
|
|
101
|
+
if (n(v)[e][s])
|
|
102
|
+
return;
|
|
103
|
+
const { hours: t, minutes: w, seconds: E } = n(d);
|
|
104
|
+
let M;
|
|
105
|
+
switch (e) {
|
|
106
|
+
case "hours":
|
|
107
|
+
M = c.spinnerDate.hour(s).minute(w).second(E);
|
|
108
|
+
break;
|
|
109
|
+
case "minutes":
|
|
110
|
+
M = c.spinnerDate.hour(t).minute(s).second(E);
|
|
111
|
+
break;
|
|
112
|
+
case "seconds":
|
|
113
|
+
M = c.spinnerDate.hour(t).minute(w).second(s);
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
g("change", M);
|
|
117
|
+
}, oe = (e, { value: s, disabled: o }) => {
|
|
118
|
+
o || (H(e, s), p(e), R(e, s));
|
|
119
|
+
}, ne = (e) => {
|
|
120
|
+
_ = !0, Z(e);
|
|
121
|
+
const s = Math.min(
|
|
122
|
+
Math.round(
|
|
123
|
+
(P(n(h[e]).$el).scrollTop - (re(e) * 0.5 - 10) / T(e) + 3) / T(e)
|
|
124
|
+
),
|
|
125
|
+
e === "hours" ? 23 : 59
|
|
126
|
+
);
|
|
127
|
+
H(e, s);
|
|
128
|
+
}, re = (e) => n(h[e]).$el.offsetHeight, te = () => {
|
|
129
|
+
const e = (s) => {
|
|
130
|
+
const o = n(h[s]);
|
|
131
|
+
o && o.$el && (P(o.$el).onscroll = () => {
|
|
132
|
+
ne(s);
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
e("hours"), e("minutes"), e("seconds");
|
|
136
|
+
};
|
|
137
|
+
le(() => {
|
|
138
|
+
F(() => {
|
|
139
|
+
!c.arrowControl && te(), B(), c.role === "start" && p("hours");
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
const ce = (e, s) => {
|
|
143
|
+
h[s].value = e;
|
|
144
|
+
};
|
|
145
|
+
return g("set-option", [`${c.role}_scrollDown`, L]), g("set-option", [`${c.role}_emitSelectRange`, p]), ae(
|
|
146
|
+
() => c.spinnerDate,
|
|
147
|
+
() => {
|
|
148
|
+
_ || B();
|
|
149
|
+
}
|
|
150
|
+
), (e, s) => (l(), a("div", {
|
|
151
|
+
class: m([n(i).b("spinner"), { "has-seconds": e.showSeconds }])
|
|
152
|
+
}, [
|
|
153
|
+
e.arrowControl ? N("", !0) : (l(!0), a(u, { key: 0 }, D(n(x), (o) => (l(), ue(n(he), {
|
|
154
|
+
key: o,
|
|
155
|
+
ref_for: !0,
|
|
156
|
+
ref: (r) => ce(r, o),
|
|
157
|
+
class: m(n(i).be("spinner", "wrapper")),
|
|
158
|
+
"wrap-style": "max-height: inherit;",
|
|
159
|
+
"view-class": n(i).be("spinner", "list"),
|
|
160
|
+
noresize: "",
|
|
161
|
+
tag: "ul",
|
|
162
|
+
onMouseenter: (r) => p(o),
|
|
163
|
+
onMousemove: (r) => b(o)
|
|
164
|
+
}, {
|
|
165
|
+
default: me(() => [
|
|
166
|
+
(l(!0), a(u, null, D(n(v)[o], (r, t) => (l(), a("li", {
|
|
167
|
+
key: t,
|
|
168
|
+
class: m([
|
|
169
|
+
n(i).be("spinner", "item"),
|
|
170
|
+
n(i).is("active", t === n(d)[o]),
|
|
171
|
+
n(i).is("disabled", r)
|
|
172
|
+
]),
|
|
173
|
+
onClick: (w) => oe(o, { value: t, disabled: r })
|
|
174
|
+
}, [
|
|
175
|
+
o === "hours" ? (l(), a(u, { key: 0 }, [
|
|
176
|
+
$(f(("0" + (e.amPmMode ? t % 12 || 12 : t)).slice(-2)) + f(A(t)), 1)
|
|
177
|
+
], 64)) : (l(), a(u, { key: 1 }, [
|
|
178
|
+
$(f(("0" + t).slice(-2)), 1)
|
|
179
|
+
], 64))
|
|
180
|
+
], 10, ge))), 128))
|
|
181
|
+
]),
|
|
182
|
+
_: 2
|
|
183
|
+
}, 1032, ["class", "view-class", "onMouseenter", "onMousemove"]))), 128)),
|
|
184
|
+
e.arrowControl ? (l(!0), a(u, { key: 1 }, D(n(x), (o) => (l(), a("div", {
|
|
185
|
+
key: o,
|
|
186
|
+
class: m([n(i).be("spinner", "wrapper"), n(i).is("arrow")]),
|
|
187
|
+
onMouseenter: (r) => p(o)
|
|
188
|
+
}, [
|
|
189
|
+
I(j(n(q), {
|
|
190
|
+
icon: "ico-ep:arrow-up",
|
|
191
|
+
class: m(["arrow-up", n(i).be("spinner", "arrow")])
|
|
192
|
+
}, null, 8, ["class"]), [
|
|
193
|
+
[n(U), ee]
|
|
194
|
+
]),
|
|
195
|
+
I(j(n(q), {
|
|
196
|
+
icon: "ico-ep:arrow-down",
|
|
197
|
+
class: m(["arrow-down", n(i).be("spinner", "arrow")])
|
|
198
|
+
}, null, 8, ["class"]), [
|
|
199
|
+
[n(U), y]
|
|
200
|
+
]),
|
|
201
|
+
de("ul", {
|
|
202
|
+
class: m(n(i).be("spinner", "list"))
|
|
203
|
+
}, [
|
|
204
|
+
(l(!0), a(u, null, D(n(Y)[o], (r, t) => (l(), a("li", {
|
|
205
|
+
key: t,
|
|
206
|
+
class: m([
|
|
207
|
+
n(i).be("spinner", "item"),
|
|
208
|
+
n(i).is("active", r === n(d)[o]),
|
|
209
|
+
n(i).is("disabled", n(v)[o][r])
|
|
210
|
+
])
|
|
211
|
+
}, [
|
|
212
|
+
typeof r == "number" ? (l(), a(u, { key: 0 }, [
|
|
213
|
+
o === "hours" ? (l(), a(u, { key: 0 }, [
|
|
214
|
+
$(f(("0" + (e.amPmMode ? r % 12 || 12 : r)).slice(-2)) + f(A(r)), 1)
|
|
215
|
+
], 64)) : (l(), a(u, { key: 1 }, [
|
|
216
|
+
$(f(("0" + r).slice(-2)), 1)
|
|
217
|
+
], 64))
|
|
218
|
+
], 64)) : N("", !0)
|
|
219
|
+
], 2))), 128))
|
|
220
|
+
], 2)
|
|
221
|
+
], 42, Se))), 128)) : N("", !0)
|
|
222
|
+
], 2));
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
export {
|
|
226
|
+
Ae as default
|
|
227
|
+
};
|