vft 0.0.71 → 0.0.73
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 +69 -63
- 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,39 @@
|
|
|
1
|
+
import { defineComponent as r, computed as p, openBlock as a, createElementBlock as m, normalizeClass as i, unref as o, normalizeStyle as c, renderSlot as u } from "vue";
|
|
2
|
+
import { useNamespace as h } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@vft/utils";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
const e = (
|
|
10
|
+
/* hoist-static*/
|
|
11
|
+
h("header")
|
|
12
|
+
), d = r({
|
|
13
|
+
name: e.b()
|
|
14
|
+
}), C = /* @__PURE__ */ r({
|
|
15
|
+
...d,
|
|
16
|
+
props: {
|
|
17
|
+
/**
|
|
18
|
+
* @description height of the header
|
|
19
|
+
*/
|
|
20
|
+
height: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: null
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(s) {
|
|
26
|
+
const t = s, n = p(() => t.height ? e.cssVarBlock({
|
|
27
|
+
height: t.height
|
|
28
|
+
}) : {});
|
|
29
|
+
return (l, f) => (a(), m("header", {
|
|
30
|
+
class: i(o(e).b()),
|
|
31
|
+
style: c(o(n))
|
|
32
|
+
}, [
|
|
33
|
+
u(l.$slots, "default")
|
|
34
|
+
], 6));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
C as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { withInstall as f, withNoopInstall as o } from "../../utils/vue/install.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "@vft/utils";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "../../utils/ns-cover.js";
|
|
7
|
+
import n from "./container.vue2.js";
|
|
8
|
+
import t from "./aside.vue2.js";
|
|
9
|
+
import i from "./footer.vue2.js";
|
|
10
|
+
import r from "./header.vue2.js";
|
|
11
|
+
import m from "./main.vue2.js";
|
|
12
|
+
const w = f(n, {
|
|
13
|
+
Aside: t,
|
|
14
|
+
Footer: i,
|
|
15
|
+
Header: r,
|
|
16
|
+
Main: m
|
|
17
|
+
}), A = o(t), F = o(i), H = o(r), I = o(m);
|
|
18
|
+
export {
|
|
19
|
+
A as VftAside,
|
|
20
|
+
w as VftContainer,
|
|
21
|
+
F as VftFooter,
|
|
22
|
+
H as VftHeader,
|
|
23
|
+
I as VftMain,
|
|
24
|
+
w as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as e, openBlock as r, createElementBlock as m, normalizeClass as n, unref as s, renderSlot as a } from "vue";
|
|
2
|
+
import { useNamespace as p } from "../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@vft/utils";
|
|
8
|
+
import "../../utils/ns-cover.js";
|
|
9
|
+
const o = (
|
|
10
|
+
/* hoist-static*/
|
|
11
|
+
p("main")
|
|
12
|
+
), i = e({
|
|
13
|
+
name: o.b()
|
|
14
|
+
}), h = /* @__PURE__ */ e({
|
|
15
|
+
...i,
|
|
16
|
+
setup(c) {
|
|
17
|
+
return (t, l) => (r(), m("main", {
|
|
18
|
+
class: n(s(o).b())
|
|
19
|
+
}, [
|
|
20
|
+
a(t.$slots, "default")
|
|
21
|
+
], 2));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
h as default
|
|
26
|
+
};
|
|
@@ -25,6 +25,7 @@ import "../iframe-layout/index.js";
|
|
|
25
25
|
import "../router-view-content/index.js";
|
|
26
26
|
import "../logo/index.js";
|
|
27
27
|
import "../back-top/index.js";
|
|
28
|
+
import "../container/index.js";
|
|
28
29
|
import "../config-provider/index.js";
|
|
29
30
|
import "../descriptions/index.js";
|
|
30
31
|
import "../full-screen/index.js";
|
|
@@ -62,6 +63,11 @@ import "../image-viewer/index.js";
|
|
|
62
63
|
import "../list-cell/index.js";
|
|
63
64
|
import "../dialog/index.js";
|
|
64
65
|
import "../date-time-select/index.js";
|
|
66
|
+
import "../col/index.js";
|
|
67
|
+
import "../row/index.js";
|
|
68
|
+
import "../horizontal-menu/index.js";
|
|
69
|
+
import "../time-picker/index.js";
|
|
70
|
+
import "../date-picker/index.js";
|
|
65
71
|
import "../md-container/index.js";
|
|
66
72
|
import "../md-comment/index.js";
|
|
67
73
|
import "../md-tabs/index.js";
|
|
@@ -74,7 +80,7 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
74
80
|
F("context-menu")
|
|
75
81
|
), R = f({
|
|
76
82
|
name: x.b()
|
|
77
|
-
}),
|
|
83
|
+
}), po = /* @__PURE__ */ f({
|
|
78
84
|
...R,
|
|
79
85
|
props: {
|
|
80
86
|
axis: null,
|
|
@@ -82,40 +88,40 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
82
88
|
width: null,
|
|
83
89
|
items: null
|
|
84
90
|
},
|
|
85
|
-
setup(
|
|
91
|
+
setup(r) {
|
|
86
92
|
let s = u();
|
|
87
93
|
const v = k(() => {
|
|
88
|
-
const { x: t, y: o } =
|
|
94
|
+
const { x: t, y: o } = r.axis || { x: 0, y: 0 }, i = (r.items || []).length * 40, m = r.width || 0, n = document.body, w = n.clientWidth < t + m ? t - m : t, y = n.clientHeight < o + i ? o - i : o;
|
|
89
95
|
return {
|
|
90
96
|
zIndex: 3e3,
|
|
91
|
-
...
|
|
97
|
+
...r.styles,
|
|
92
98
|
position: "fixed",
|
|
93
|
-
width: `${
|
|
99
|
+
width: `${r.width}px`,
|
|
94
100
|
left: `${w + 1}px`,
|
|
95
101
|
top: `${y + 1}px`
|
|
96
102
|
};
|
|
97
103
|
});
|
|
98
|
-
let
|
|
104
|
+
let e = u(!1);
|
|
99
105
|
H(() => {
|
|
100
|
-
|
|
106
|
+
e.value = !0;
|
|
101
107
|
}, 0), I(s, () => {
|
|
102
|
-
|
|
108
|
+
e.value = !1;
|
|
103
109
|
}, {
|
|
104
110
|
listenerOptions: {
|
|
105
111
|
capture: !0
|
|
106
112
|
}
|
|
107
113
|
}), c(window, "scroll", () => {
|
|
108
|
-
|
|
114
|
+
e.value = !1;
|
|
109
115
|
}, {
|
|
110
116
|
capture: !0
|
|
111
117
|
}), c(window, "drag", () => {
|
|
112
|
-
|
|
118
|
+
e.value = !1;
|
|
113
119
|
}, {
|
|
114
120
|
capture: !0
|
|
115
121
|
});
|
|
116
122
|
function h(t) {
|
|
117
123
|
var o;
|
|
118
|
-
t != null && t.disabled || ((o = t.handler) == null || o.call(t),
|
|
124
|
+
t != null && t.disabled || ((o = t.handler) == null || o.call(t), e.value = !1);
|
|
119
125
|
}
|
|
120
126
|
return (t, o) => (l(), d(b, { name: "vft-zoom-in-top" }, {
|
|
121
127
|
default: C(() => [
|
|
@@ -128,7 +134,7 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
128
134
|
class: $([p(x).b(), "vft-menu"])
|
|
129
135
|
}, [
|
|
130
136
|
a("div", N, [
|
|
131
|
-
(l(!0), B(E, null, S(
|
|
137
|
+
(l(!0), B(E, null, S(r.items, (i, m) => (l(), d(p(L), {
|
|
132
138
|
onClick: (n) => h(i),
|
|
133
139
|
index: m + i.text,
|
|
134
140
|
title: i.text,
|
|
@@ -140,7 +146,7 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
140
146
|
}, null, 8, ["onClick", "index", "title", "divider", "disabled", "icon"]))), 128))
|
|
141
147
|
])
|
|
142
148
|
], 6), [
|
|
143
|
-
[A, p(
|
|
149
|
+
[A, p(e)]
|
|
144
150
|
])
|
|
145
151
|
]),
|
|
146
152
|
_: 1
|
|
@@ -148,5 +154,5 @@ const N = { class: "vft-sub-menu" }, x = (
|
|
|
148
154
|
}
|
|
149
155
|
});
|
|
150
156
|
export {
|
|
151
|
-
|
|
157
|
+
po as default
|
|
152
158
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { computed as a } from "vue";
|
|
2
|
+
const b = ({
|
|
3
|
+
unlinkPanels: u,
|
|
4
|
+
leftDate: e,
|
|
5
|
+
rightDate: r
|
|
6
|
+
}) => {
|
|
7
|
+
const v = () => {
|
|
8
|
+
e.value = e.value.subtract(1, "year"), u.value || (r.value = r.value.subtract(1, "year"));
|
|
9
|
+
}, l = () => {
|
|
10
|
+
u.value || (e.value = e.value.add(1, "year")), r.value = r.value.add(1, "year");
|
|
11
|
+
}, o = () => {
|
|
12
|
+
e.value = e.value.add(1, "year");
|
|
13
|
+
}, c = () => {
|
|
14
|
+
r.value = r.value.subtract(1, "year");
|
|
15
|
+
}, n = a(() => `${e.value.year()} 年}`), y = a(() => `${r.value.year()} 年}`), s = a(() => e.value.year()), d = a(() => r.value.year() === e.value.year() ? e.value.year() + 1 : r.value.year());
|
|
16
|
+
return {
|
|
17
|
+
leftPrevYear: v,
|
|
18
|
+
rightNextYear: l,
|
|
19
|
+
leftNextYear: o,
|
|
20
|
+
rightPrevYear: c,
|
|
21
|
+
leftLabel: n,
|
|
22
|
+
rightLabel: y,
|
|
23
|
+
leftYear: s,
|
|
24
|
+
rightYear: d
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
b as useMonthRangeHeader
|
|
29
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { getCurrentInstance as I, ref as s, inject as P, watch as f, unref as n } from "vue";
|
|
2
|
+
import { isArray as S } from "@vft/utils";
|
|
3
|
+
import { useNamespace as x } from "../../../hooks/use-namespace/index.js";
|
|
4
|
+
import "@popperjs/core";
|
|
5
|
+
import "lodash";
|
|
6
|
+
import "../../../hooks/use-z-index/index.js";
|
|
7
|
+
import "@vueuse/core";
|
|
8
|
+
import "../../../utils/ns-cover.js";
|
|
9
|
+
import { isValidRange as E, getDefaultValue as O } from "../utils.js";
|
|
10
|
+
import { ROOT_PICKER_INJECTION_KEY as K } from "../constants.js";
|
|
11
|
+
import { useShortcut as T } from "./use-shortcut.js";
|
|
12
|
+
const G = (l, {
|
|
13
|
+
defaultValue: m,
|
|
14
|
+
leftDate: u,
|
|
15
|
+
rightDate: g,
|
|
16
|
+
unit: d,
|
|
17
|
+
onParsedValueChanged: v
|
|
18
|
+
}) => {
|
|
19
|
+
const { emit: h } = I(), c = s("zh-cn"), { pickerNs: k } = P(K), D = x("date-range-picker"), C = T(c), a = s(), o = s(), r = s({
|
|
20
|
+
endDate: null,
|
|
21
|
+
selecting: !1
|
|
22
|
+
}), N = (e) => {
|
|
23
|
+
r.value = e;
|
|
24
|
+
}, R = (e = !1) => {
|
|
25
|
+
const t = n(a), i = n(o);
|
|
26
|
+
E([t, i]) && h("pick", [t, i], e);
|
|
27
|
+
}, _ = (e) => {
|
|
28
|
+
r.value.selecting = e, e || (r.value.endDate = null);
|
|
29
|
+
}, p = () => {
|
|
30
|
+
const [e, t] = O(n(m), {
|
|
31
|
+
lang: n(c),
|
|
32
|
+
unit: d,
|
|
33
|
+
unlinkPanels: l.unlinkPanels
|
|
34
|
+
});
|
|
35
|
+
a.value = void 0, o.value = void 0, u.value = e, g.value = t;
|
|
36
|
+
};
|
|
37
|
+
return f(
|
|
38
|
+
m,
|
|
39
|
+
(e) => {
|
|
40
|
+
e && p();
|
|
41
|
+
},
|
|
42
|
+
{ immediate: !0 }
|
|
43
|
+
), f(
|
|
44
|
+
() => l.parsedValue,
|
|
45
|
+
(e) => {
|
|
46
|
+
if (S(e) && e.length === 2) {
|
|
47
|
+
const [t, i] = e;
|
|
48
|
+
a.value = t, u.value = t, o.value = i, v(n(a), n(o));
|
|
49
|
+
} else
|
|
50
|
+
p();
|
|
51
|
+
},
|
|
52
|
+
{ immediate: !0 }
|
|
53
|
+
), {
|
|
54
|
+
minDate: a,
|
|
55
|
+
maxDate: o,
|
|
56
|
+
rangeState: r,
|
|
57
|
+
lang: c,
|
|
58
|
+
ppNs: k,
|
|
59
|
+
drpNs: D,
|
|
60
|
+
handleChangeRange: N,
|
|
61
|
+
handleRangeConfirm: R,
|
|
62
|
+
handleShortcutClick: C,
|
|
63
|
+
onSelect: _
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
G as useRangePicker
|
|
68
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getCurrentInstance as s, useAttrs as i, useSlots as u } from "vue";
|
|
2
|
+
import n from "dayjs";
|
|
3
|
+
import { isFunction as a } from "@vft/utils";
|
|
4
|
+
const v = (o) => {
|
|
5
|
+
const { emit: l } = s(), c = i(), r = u();
|
|
6
|
+
return (t) => {
|
|
7
|
+
const e = a(t.value) ? t.value() : t.value;
|
|
8
|
+
if (e) {
|
|
9
|
+
l("pick", [
|
|
10
|
+
n(e[0]).locale(o.value),
|
|
11
|
+
n(e[1]).locale(o.value)
|
|
12
|
+
]);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
t.onClick && t.onClick({
|
|
16
|
+
attrs: c,
|
|
17
|
+
slots: r,
|
|
18
|
+
emit: l
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
v as useShortcut
|
|
24
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as p, inject as m, createVNode as i } from "vue";
|
|
2
|
+
import { useNamespace as n } from "../../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@popperjs/core";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import "../../../hooks/use-z-index/index.js";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@vft/utils";
|
|
8
|
+
import "../../../utils/ns-cover.js";
|
|
9
|
+
import { ROOT_PICKER_INJECTION_KEY as a } from "../constants.js";
|
|
10
|
+
import { basicCellProps as c } from "../props/basic-cell.js";
|
|
11
|
+
const I = /* @__PURE__ */ p({
|
|
12
|
+
name: "ElDatePickerCell",
|
|
13
|
+
props: c,
|
|
14
|
+
setup(l) {
|
|
15
|
+
const e = n("date-table-cell"), {
|
|
16
|
+
slots: r
|
|
17
|
+
} = m(a);
|
|
18
|
+
return () => {
|
|
19
|
+
const {
|
|
20
|
+
cell: t
|
|
21
|
+
} = l;
|
|
22
|
+
if (r.default) {
|
|
23
|
+
const o = r.default(t).filter((s) => s.patchFlag !== -2 && s.type.toString() !== "Symbol(Comment)");
|
|
24
|
+
if (o.length)
|
|
25
|
+
return o;
|
|
26
|
+
}
|
|
27
|
+
return i("div", {
|
|
28
|
+
class: e.b()
|
|
29
|
+
}, [i("span", {
|
|
30
|
+
class: e.e("text")
|
|
31
|
+
}, [t == null ? void 0 : t.text])]);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
I as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { defineComponent as ne, ref as y, computed as m, unref as l, watch as re, nextTick as oe, openBlock as f, createElementBlock as p, normalizeClass as M, withModifiers as ue, createElementVNode as $, createCommentVNode as ie, Fragment as C, renderList as O, toDisplayString as ce, createVNode as de } from "vue";
|
|
2
|
+
import j from "dayjs";
|
|
3
|
+
import { flatten as le } from "lodash";
|
|
4
|
+
import { useNamespace as fe } from "../../../hooks/use-namespace/index.js";
|
|
5
|
+
import "@popperjs/core";
|
|
6
|
+
import "../../../hooks/use-z-index/index.js";
|
|
7
|
+
import "@vueuse/core";
|
|
8
|
+
import "@vft/utils";
|
|
9
|
+
import "../../../utils/ns-cover.js";
|
|
10
|
+
import { basicDateTableProps as pe } from "../props/basic-date-table.js";
|
|
11
|
+
import { castArray as N, buildPickerTable as me } from "../utils.js";
|
|
12
|
+
import he from "./basic-cell-render.js";
|
|
13
|
+
const ye = ["onMousedown"], De = {
|
|
14
|
+
key: 0,
|
|
15
|
+
scope: "col"
|
|
16
|
+
}, ke = ["aria-label"], ge = ["aria-current", "aria-selected", "tabindex"], Re = /* @__PURE__ */ ne({
|
|
17
|
+
__name: "basic-date-table",
|
|
18
|
+
props: pe,
|
|
19
|
+
emits: ["changerange", "pick", "select"],
|
|
20
|
+
setup(L, { expose: z, emit: d }) {
|
|
21
|
+
const a = L, x = fe("date-table"), _ = y("zh-cn"), S = y(), k = y(), V = y(), E = y(), B = y([[], [], [], [], [], []]);
|
|
22
|
+
let g = !1;
|
|
23
|
+
const h = a.date.$locale().weekStart || 7, R = a.date.locale("en").localeData().weekdaysShort().map((e) => e.toLowerCase()), v = m(() => h > 3 ? 7 - h : -h), b = m(() => {
|
|
24
|
+
const e = a.date.startOf("month");
|
|
25
|
+
return e.subtract(e.day() || 7, "day");
|
|
26
|
+
}), U = m(() => R.concat(R).slice(
|
|
27
|
+
h,
|
|
28
|
+
h + 7
|
|
29
|
+
)), W = m(() => le(D.value).some((e) => e.isCurrent)), G = m(() => {
|
|
30
|
+
const e = a.date.startOf("month"), t = e.day() || 7, s = e.daysInMonth(), n = e.subtract(1, "month").daysInMonth();
|
|
31
|
+
return {
|
|
32
|
+
startOfMonthDay: t,
|
|
33
|
+
dateCountOfMonth: s,
|
|
34
|
+
dateCountOfLastMonth: n
|
|
35
|
+
};
|
|
36
|
+
}), K = m(() => a.selectionMode === "dates" ? N(a.parsedValue) : []), q = (e, {
|
|
37
|
+
count: t,
|
|
38
|
+
rowIndex: s,
|
|
39
|
+
columnIndex: n
|
|
40
|
+
}) => {
|
|
41
|
+
const { startOfMonthDay: r, dateCountOfMonth: i, dateCountOfLastMonth: o } = l(G), c = l(v);
|
|
42
|
+
if (s >= 0 && s <= 1) {
|
|
43
|
+
const u = r + c < 0 ? 7 + r + c : r + c;
|
|
44
|
+
if (n + s * 7 >= u)
|
|
45
|
+
return e.text = t, !0;
|
|
46
|
+
e.text = o - (u - n % 7) + 1 + s * 7, e.type = "prev-month";
|
|
47
|
+
} else
|
|
48
|
+
return t <= i ? e.text = t : (e.text = t - i, e.type = "next-month"), !0;
|
|
49
|
+
return !1;
|
|
50
|
+
}, H = (e, {
|
|
51
|
+
columnIndex: t,
|
|
52
|
+
rowIndex: s
|
|
53
|
+
}, n) => {
|
|
54
|
+
const { disabledDate: r, cellClassName: i } = a, o = l(K), c = q(e, { count: n, rowIndex: s, columnIndex: t }), u = e.dayjs.toDate();
|
|
55
|
+
return e.selected = o.find(
|
|
56
|
+
(se) => se.valueOf() === e.dayjs.valueOf()
|
|
57
|
+
), e.isSelected = !!e.selected, e.isCurrent = A(e), e.disabled = r == null ? void 0 : r(u), e.customClass = i == null ? void 0 : i(u), c;
|
|
58
|
+
}, J = (e) => {
|
|
59
|
+
if (a.selectionMode === "week") {
|
|
60
|
+
const [t, s] = a.showWeekNumber ? [1, 7] : [0, 6], n = F(e[t + 1]);
|
|
61
|
+
e[t].inRange = n, e[t].start = n, e[s].inRange = n, e[s].end = n;
|
|
62
|
+
}
|
|
63
|
+
}, D = m(() => {
|
|
64
|
+
const { minDate: e, maxDate: t, rangeState: s, showWeekNumber: n } = a, r = v.value, i = B.value, o = "day";
|
|
65
|
+
let c = 1;
|
|
66
|
+
if (n)
|
|
67
|
+
for (let u = 0; u < 6; u++)
|
|
68
|
+
i[u][0] || (i[u][0] = {
|
|
69
|
+
type: "week",
|
|
70
|
+
text: b.value.add(u * 7 + 1, o).week()
|
|
71
|
+
});
|
|
72
|
+
return me({ row: 6, column: 7 }, i, {
|
|
73
|
+
startDate: e,
|
|
74
|
+
columnIndexOffset: n ? 1 : 0,
|
|
75
|
+
nextEndDate: s.endDate || t || s.selecting && e || null,
|
|
76
|
+
now: j().locale(l(_)).startOf(o),
|
|
77
|
+
unit: o,
|
|
78
|
+
relativeDateGetter: (u) => b.value.add(u - r, o),
|
|
79
|
+
setCellMetadata: (...u) => {
|
|
80
|
+
H(...u, c) && (c += 1);
|
|
81
|
+
},
|
|
82
|
+
setRowMetadata: J
|
|
83
|
+
}), i;
|
|
84
|
+
});
|
|
85
|
+
re(
|
|
86
|
+
() => a.date,
|
|
87
|
+
async () => {
|
|
88
|
+
var e, t;
|
|
89
|
+
(e = S.value) != null && e.contains(document.activeElement) && (await oe(), (t = k.value) == null || t.focus());
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
const Q = async () => {
|
|
93
|
+
var e;
|
|
94
|
+
(e = k.value) == null || e.focus();
|
|
95
|
+
}, w = (e = "") => ["normal", "today"].includes(e), A = (e) => a.selectionMode === "date" && w(e.type) && X(e, a.parsedValue), X = (e, t) => t ? j(t).locale(_.value).isSame(a.date.date(Number(e.text)), "day") : !1, Y = (e) => {
|
|
96
|
+
const t = [];
|
|
97
|
+
return w(e.type) && !e.disabled ? (t.push("available"), e.type === "today" && t.push("today")) : t.push(e.type), A(e) && t.push("current"), e.inRange && (w(e.type) || a.selectionMode === "week") && (t.push("in-range"), e.start && t.push("start-date"), e.end && t.push("end-date")), e.disabled && t.push("disabled"), e.selected && t.push("selected"), e.customClass && t.push(e.customClass), t.join(" ");
|
|
98
|
+
}, I = (e, t) => {
|
|
99
|
+
const s = e * 7 + (t - (a.showWeekNumber ? 1 : 0)) - v.value;
|
|
100
|
+
return b.value.add(s, "day");
|
|
101
|
+
}, Z = (e) => {
|
|
102
|
+
var r;
|
|
103
|
+
if (!a.rangeState.selecting)
|
|
104
|
+
return;
|
|
105
|
+
let t = e.target;
|
|
106
|
+
if (t.tagName === "SPAN" && (t = (r = t.parentNode) == null ? void 0 : r.parentNode), t.tagName === "DIV" && (t = t.parentNode), t.tagName !== "TD")
|
|
107
|
+
return;
|
|
108
|
+
const s = t.parentNode.rowIndex - 1, n = t.cellIndex;
|
|
109
|
+
D.value[s][n].disabled || (s !== V.value || n !== E.value) && (V.value = s, E.value = n, d("changerange", {
|
|
110
|
+
selecting: !0,
|
|
111
|
+
endDate: I(s, n)
|
|
112
|
+
}));
|
|
113
|
+
}, T = (e) => !W.value && (e == null ? void 0 : e.text) === 1 && e.type === "normal" || e.isCurrent, ee = (e) => {
|
|
114
|
+
g || W.value || a.selectionMode !== "date" || P(e, !0);
|
|
115
|
+
}, te = (e) => {
|
|
116
|
+
e.target.closest("td") && (g = !0);
|
|
117
|
+
}, ae = (e) => {
|
|
118
|
+
e.target.closest("td") && (g = !1);
|
|
119
|
+
}, P = (e, t = !1) => {
|
|
120
|
+
const s = e.target.closest("td");
|
|
121
|
+
if (!s)
|
|
122
|
+
return;
|
|
123
|
+
const n = s.parentNode.rowIndex - 1, r = s.cellIndex, i = D.value[n][r];
|
|
124
|
+
if (i.disabled || i.type === "week")
|
|
125
|
+
return;
|
|
126
|
+
const o = I(n, r);
|
|
127
|
+
if (a.selectionMode === "range")
|
|
128
|
+
!a.rangeState.selecting || !a.minDate ? (d("pick", { minDate: o, maxDate: null }), d("select", !0)) : (o >= a.minDate ? d("pick", { minDate: a.minDate, maxDate: o }) : d("pick", { minDate: o, maxDate: a.minDate }), d("select", !1));
|
|
129
|
+
else if (a.selectionMode === "date")
|
|
130
|
+
d("pick", o, t);
|
|
131
|
+
else if (a.selectionMode === "week") {
|
|
132
|
+
const c = o.week(), u = `${o.year()}w${c}`;
|
|
133
|
+
d("pick", {
|
|
134
|
+
year: o.year(),
|
|
135
|
+
week: c,
|
|
136
|
+
value: u,
|
|
137
|
+
date: o.startOf("week")
|
|
138
|
+
});
|
|
139
|
+
} else if (a.selectionMode === "dates") {
|
|
140
|
+
const c = i.selected ? N(a.parsedValue).filter(
|
|
141
|
+
(u) => (u == null ? void 0 : u.valueOf()) !== o.valueOf()
|
|
142
|
+
) : N(a.parsedValue).concat([o]);
|
|
143
|
+
d("pick", c);
|
|
144
|
+
}
|
|
145
|
+
}, F = (e) => {
|
|
146
|
+
if (a.selectionMode !== "week")
|
|
147
|
+
return !1;
|
|
148
|
+
let t = a.date.startOf("day");
|
|
149
|
+
if (e.type === "prev-month" && (t = t.subtract(1, "month")), e.type === "next-month" && (t = t.add(1, "month")), t = t.date(Number.parseInt(e.text, 10)), a.parsedValue && !Array.isArray(a.parsedValue)) {
|
|
150
|
+
const s = (a.parsedValue.day() - h + 7) % 7 - 1;
|
|
151
|
+
return a.parsedValue.subtract(s, "day").isSame(t, "day");
|
|
152
|
+
}
|
|
153
|
+
return !1;
|
|
154
|
+
};
|
|
155
|
+
return z({
|
|
156
|
+
/**
|
|
157
|
+
* @description focus on current cell
|
|
158
|
+
*/
|
|
159
|
+
focus: Q
|
|
160
|
+
}), (e, t) => (f(), p("table", {
|
|
161
|
+
role: "grid",
|
|
162
|
+
"aria-label": "使用方向鍵與 Enter 鍵以選擇日期",
|
|
163
|
+
cellspacing: "0",
|
|
164
|
+
cellpadding: "0",
|
|
165
|
+
class: M([l(x).b(), { "is-week-mode": e.selectionMode === "week" }]),
|
|
166
|
+
onClick: P,
|
|
167
|
+
onMousemove: Z,
|
|
168
|
+
onMousedown: ue(te, ["prevent"]),
|
|
169
|
+
onMouseup: ae
|
|
170
|
+
}, [
|
|
171
|
+
$("tbody", {
|
|
172
|
+
ref_key: "tbodyRef",
|
|
173
|
+
ref: S
|
|
174
|
+
}, [
|
|
175
|
+
$("tr", null, [
|
|
176
|
+
e.showWeekNumber ? (f(), p("th", De, "周")) : ie("", !0),
|
|
177
|
+
(f(!0), p(C, null, O(l(U), (s, n) => (f(), p("th", {
|
|
178
|
+
key: n,
|
|
179
|
+
scope: "col",
|
|
180
|
+
"aria-label": "星期" + s
|
|
181
|
+
}, ce(s), 9, ke))), 128))
|
|
182
|
+
]),
|
|
183
|
+
(f(!0), p(C, null, O(l(D), (s, n) => (f(), p("tr", {
|
|
184
|
+
key: n,
|
|
185
|
+
class: M([l(x).e("row"), { current: F(s[1]) }])
|
|
186
|
+
}, [
|
|
187
|
+
(f(!0), p(C, null, O(s, (r, i) => (f(), p("td", {
|
|
188
|
+
key: `${n}.${i}`,
|
|
189
|
+
ref_for: !0,
|
|
190
|
+
ref: (o) => T(r) && (k.value = o),
|
|
191
|
+
class: M(Y(r)),
|
|
192
|
+
"aria-current": r.isCurrent ? "date" : void 0,
|
|
193
|
+
"aria-selected": r.isCurrent,
|
|
194
|
+
tabindex: T(r) ? 0 : -1,
|
|
195
|
+
onFocus: ee
|
|
196
|
+
}, [
|
|
197
|
+
de(l(he), { cell: r }, null, 8, ["cell"])
|
|
198
|
+
], 42, ge))), 128))
|
|
199
|
+
], 2))), 128))
|
|
200
|
+
], 512)
|
|
201
|
+
], 42, ye));
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
export {
|
|
205
|
+
Re as default
|
|
206
|
+
};
|