bkui-vue 2.0.1-beta.70.search.1 → 2.0.1-beta.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/README.md +15 -0
- package/dist/index.cjs.js +167 -167
- package/dist/index.esm.js +32433 -30994
- package/dist/index.umd.js +167 -167
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +130 -0
- package/lib/affix/affix.variable.css +262 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.d.ts +5 -12
- package/lib/alert/alert.variable.css +262 -1
- package/lib/alert/index.d.ts +11 -26
- package/lib/alert/index.js +6 -6
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +395 -4
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +262 -1
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +397 -6
- package/lib/button/button.css +273 -143
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +262 -1
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -7
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +396 -5
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +156 -26
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +418 -27
- package/lib/cascader/index.js +43 -42
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +0 -16
- package/lib/checkbox/checkbox.css +147 -9
- package/lib/checkbox/checkbox.d.ts +39 -7
- package/lib/checkbox/checkbox.less +12 -0
- package/lib/checkbox/checkbox.variable.css +270 -1
- package/lib/checkbox/index.d.ts +57 -22
- package/lib/checkbox/index.js +21 -8
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +262 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +142 -1
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +273 -1
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +262 -1
- package/lib/color-picker/color-picker.css +133 -3
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +265 -4
- package/lib/color-picker/index.d.ts +23 -0
- package/lib/color-picker/index.js +53 -46
- package/lib/components.d.ts +32 -31
- package/lib/components.js +31 -30
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +262 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/container.css +130 -0
- package/lib/container/container.variable.css +392 -1
- package/lib/container/index.js +6 -7
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.d.ts +0 -10
- package/lib/date-picker/date-picker.variable.css +262 -1
- package/lib/date-picker/index.d.ts +0 -22
- package/lib/date-picker/index.js +346 -234
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +6 -68
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -10
- package/lib/date-picker/panel/time.d.ts +2 -11
- package/lib/date-picker/props.d.ts +1 -5
- package/lib/date-picker/time-picker.d.ts +0 -9
- package/lib/date-picker/utils.d.ts +5 -1
- package/lib/dialog/dialog.css +269 -88
- package/lib/dialog/dialog.d.ts +74 -152
- package/lib/dialog/dialog.less +9 -76
- package/lib/dialog/dialog.variable.css +531 -89
- package/lib/dialog/index.d.ts +171 -352
- package/lib/dialog/index.js +200 -222
- package/lib/dialog/props.d.ts +25 -55
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +178 -172
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +262 -1
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +392 -1
- package/lib/dropdown/index.d.ts +13 -13
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +262 -1
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +6 -18
- package/lib/form/form.css +130 -0
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +262 -1
- package/lib/form/index.d.ts +6 -13
- package/lib/form/index.js +22 -21
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.css +130 -0
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +262 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +392 -1
- package/lib/image/index.js +20 -21
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +326 -173
- package/lib/info-box/info-box.css +193 -7
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +76 -14
- package/lib/info-box/info-box.variable.css +325 -8
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +65 -517
- package/lib/input/input.css +225 -73
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.less +30 -1
- package/lib/input/input.variable.css +487 -74
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.css +146 -16
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +262 -1
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +408 -17
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.css +148 -18
- package/lib/menu/menu.variable.css +410 -19
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.variable.css +262 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.css +153 -22
- package/lib/message/message.less +3 -2
- package/lib/message/message.variable.css +264 -2
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +68 -343
- package/lib/modal/index.js +265 -696
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +261 -32
- package/lib/modal/modal.d.ts +26 -131
- package/lib/modal/modal.less +83 -29
- package/lib/modal/modal.variable.css +523 -33
- package/lib/modal/props.mixin.d.ts +10 -51
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +262 -1
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +262 -1
- package/lib/overflow-title/components/overflow-title.d.ts +9 -16
- package/lib/overflow-title/index.d.ts +19 -34
- package/lib/overflow-title/index.js +107 -64
- package/lib/overflow-title/props.d.ts +18 -21
- package/lib/pagination/index.d.ts +0 -19
- package/lib/pagination/index.js +61 -23
- package/lib/pagination/pagination.css +139 -9
- package/lib/pagination/pagination.d.ts +0 -13
- package/lib/pagination/pagination.less +14 -13
- package/lib/pagination/pagination.variable.css +270 -9
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +20 -21
- package/lib/pop-confirm/index.d.ts +11 -43
- package/lib/pop-confirm/index.js +27 -28
- package/lib/pop-confirm/pop-confirm.css +133 -1
- package/lib/pop-confirm/pop-confirm.d.ts +5 -19
- package/lib/pop-confirm/pop-confirm.less +3 -1
- package/lib/pop-confirm/pop-confirm.variable.css +265 -2
- package/lib/pop-confirm/props.d.ts +5 -11
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +20 -21
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.variable.css +262 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +262 -1
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -11
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +396 -5
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +55 -26
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +262 -1
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +157 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +289 -1
- package/lib/resize-layout/index.d.ts +34 -11
- package/lib/resize-layout/index.js +33 -14
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.d.ts +16 -5
- package/lib/resize-layout/resize-layout.variable.css +262 -1
- package/lib/scrollbar/css/scrollbar.css +239 -0
- package/lib/scrollbar/css/scrollbar.less +139 -0
- package/lib/scrollbar/css/scrollbar.variable.css +499 -0
- package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
- package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
- package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
- package/lib/scrollbar/handlers/touch.d.ts +4 -0
- package/lib/scrollbar/helper/class-names.d.ts +21 -0
- package/lib/scrollbar/helper/css.d.ts +3 -0
- package/lib/scrollbar/helper/dom.d.ts +4 -0
- package/lib/scrollbar/helper/event-manager.d.ts +20 -0
- package/lib/scrollbar/helper/util.d.ts +11 -0
- package/lib/scrollbar/index.d.ts +135 -0
- package/lib/scrollbar/index.js +1661 -0
- package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
- package/lib/scrollbar/update-geometry.d.ts +8 -0
- package/lib/search-select/index.d.ts +42 -0
- package/lib/search-select/index.js +33 -3
- package/lib/search-select/input.d.ts +11 -1
- package/lib/search-select/menu.d.ts +12 -0
- package/lib/search-select/search-select.css +163 -34
- package/lib/search-select/search-select.d.ts +14 -0
- package/lib/search-select/search-select.less +1 -1
- package/lib/search-select/search-select.variable.css +425 -35
- package/lib/search-select/selected.d.ts +23 -0
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +107 -74
- package/lib/select/index.js +262 -183
- package/lib/select/option.d.ts +5 -6
- package/lib/select/select.css +176 -45
- package/lib/select/select.d.ts +40 -27
- package/lib/select/select.less +8 -6
- package/lib/select/select.variable.css +438 -46
- package/lib/select/selectTagInput.d.ts +7 -6
- package/lib/select/type.d.ts +10 -11
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +2 -2
- package/lib/shared/index.js +108 -89
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +75 -217
- package/lib/sideslider/index.js +68 -42
- package/lib/sideslider/sideslider.css +152 -92
- package/lib/sideslider/sideslider.d.ts +35 -103
- package/lib/sideslider/sideslider.less +31 -112
- package/lib/sideslider/sideslider.variable.css +283 -92
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +148 -4
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +276 -1
- package/lib/steps/index.d.ts +14 -29
- package/lib/steps/index.js +3 -4
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.d.ts +8 -18
- package/lib/steps/steps.variable.css +262 -1
- package/lib/styles/index.d.ts +1 -1
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +262 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +262 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +262 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +262 -1
- package/lib/{rate/star.variable.css → styles/themes/themes.css} +2 -28
- package/lib/styles/themes/themes.less +299 -129
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +262 -1
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +409 -18
- package/lib/tab/index.d.ts +44 -114
- package/lib/tab/index.js +47 -38
- package/lib/tab/props.d.ts +25 -50
- package/lib/tab/tab-nav.d.ts +24 -57
- package/lib/tab/tab-panel.d.ts +22 -0
- package/lib/tab/tab.css +211 -17
- package/lib/tab/tab.d.ts +10 -54
- package/lib/tab/tab.less +91 -4
- package/lib/tab/tab.variable.css +326 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-cell.d.ts +25 -2
- package/lib/table/components/table-column.d.ts +20 -239
- package/lib/table/const.d.ts +26 -13
- package/lib/table/events.d.ts +16 -112
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +69 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +16 -0
- package/lib/table/hooks/use-layout.d.ts +25 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +21 -0
- package/lib/table/hooks/use-rows.d.ts +30 -0
- package/lib/table/hooks/use-settings.d.ts +136 -0
- package/lib/table/hooks/use-shift-key.d.ts +15 -0
- package/lib/table/index.d.ts +135 -738
- package/lib/table/index.js +21679 -3905
- package/lib/table/plugins/head-filter.css +139 -4
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.less +7 -3
- package/lib/table/plugins/head-filter.variable.css +271 -5
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +262 -1
- package/lib/table/plugins/settings.css +131 -0
- package/lib/table/plugins/settings.less +1 -0
- package/lib/table/plugins/settings.variable.css +263 -1
- package/lib/table/props.d.ts +135 -64
- package/lib/table/table.css +637 -303
- package/lib/table/table.d.ts +62 -185
- package/lib/table/table.less +265 -148
- package/lib/table/table.variable.css +907 -312
- package/lib/table/utils.d.ts +49 -21
- package/lib/table-column/index.d.ts +30 -579
- package/lib/table-column/index.js +17398 -317
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -3
- package/lib/tag/tag.css +136 -6
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +263 -2
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +37 -33
- package/lib/tag-input/tag-input.css +148 -18
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-input.variable.css +262 -1
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/time-picker/index.d.ts +0 -19
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +262 -1
- package/lib/timeline/index.js +2 -2
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +262 -1
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +158 -28
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +271 -10
- package/lib/tree/constant.d.ts +24 -20
- package/lib/tree/index.d.ts +82 -24
- package/lib/tree/index.js +17660 -90
- package/lib/tree/props.d.ts +35 -10
- package/lib/tree/tree.css +256 -18
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +518 -19
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +10 -9
- package/lib/tree/use-node-async.d.ts +2 -1
- package/lib/tree/use-node-attribute.d.ts +47 -30
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +8 -5
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +27 -4
- package/lib/upload/index.js +102 -51
- package/lib/upload/props.d.ts +7 -2
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.d.ts +13 -2
- package/lib/upload/upload.type.d.ts +13 -7
- package/lib/upload/upload.variable.css +419 -28
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +39 -46
- package/lib/virtual-render/index.js +17665 -130
- package/lib/virtual-render/props.d.ts +18 -9
- package/lib/virtual-render/use-fix-top.d.ts +3 -8
- package/lib/virtual-render/use-scrollbar.d.ts +11 -0
- package/lib/virtual-render/v-virtual-render.d.ts +9 -2
- package/lib/virtual-render/virtual-render.css +239 -9
- package/lib/virtual-render/virtual-render.d.ts +19 -22
- package/lib/virtual-render/virtual-render.less +1 -10
- package/lib/virtual-render/virtual-render.variable.css +501 -10
- package/lib/volar.components.d.ts +2 -0
- package/package.json +17 -55
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -21
- package/lib/table/use-attributes.d.ts +0 -61
- package/lib/table/use-column.d.ts +0 -276
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
package/lib/date-picker/index.js
CHANGED
@@ -43,7 +43,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
43
43
|
;// CONCATENATED MODULE: external "../shared"
|
44
44
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
45
45
|
var y = x => () => x
|
46
|
-
const shared_namespaceObject = x({ ["BKPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.BKPopover, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["capitalize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.capitalize, ["getFullscreenRoot"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.getFullscreenRoot, ["
|
46
|
+
const shared_namespaceObject = x({ ["BKPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.BKPopover, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["capitalize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.capitalize, ["getFullscreenRoot"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.getFullscreenRoot, ["scrollTop"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.scrollTop, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
47
47
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
48
48
|
function _typeof(o) {
|
49
49
|
"@babel/helpers - typeof";
|
@@ -173,7 +173,7 @@ function _toConsumableArray(arr) {
|
|
173
173
|
;// CONCATENATED MODULE: external "vue"
|
174
174
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
175
175
|
var external_vue_y = x => () => x
|
176
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
176
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
177
177
|
;// CONCATENATED MODULE: external "../config-provider"
|
178
178
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
179
179
|
var config_provider_y = x => () => x
|
@@ -431,8 +431,8 @@ var pickerDropdownProps = {
|
|
431
431
|
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
432
432
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
433
433
|
"ref": "refContentRef",
|
434
|
-
"class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
|
435
434
|
"style": this.styles,
|
435
|
+
"class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
|
436
436
|
"onClick": this.onClick
|
437
437
|
}, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '']);
|
438
438
|
}
|
@@ -448,46 +448,46 @@ var pickerDropdownProps = {
|
|
448
448
|
*/
|
449
449
|
var dateIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
450
450
|
"class": "picker-icon",
|
451
|
+
"viewBox": "0 0 1024 1024",
|
451
452
|
"x": "0px",
|
452
|
-
"y": "0px"
|
453
|
-
"viewBox": "0 0 1024 1024"
|
453
|
+
"y": "0px"
|
454
454
|
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
455
455
|
"id": "date"
|
456
456
|
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
457
|
-
"
|
458
|
-
"
|
457
|
+
"d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z",
|
458
|
+
"fill": "#c4c6cc"
|
459
459
|
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
460
|
-
"x": "416",
|
461
|
-
"y": "128",
|
462
|
-
"fill": "#c4c6cc",
|
463
460
|
"width": "192",
|
464
|
-
"height": "64"
|
465
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
466
|
-
"x": "288",
|
467
|
-
"y": "96",
|
461
|
+
"height": "64",
|
468
462
|
"fill": "#c4c6cc",
|
469
|
-
"
|
470
|
-
"
|
463
|
+
"x": "416",
|
464
|
+
"y": "128"
|
471
465
|
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
472
|
-
"
|
473
|
-
"
|
466
|
+
"width": "64",
|
467
|
+
"height": "128",
|
474
468
|
"fill": "#c4c6cc",
|
469
|
+
"x": "288",
|
470
|
+
"y": "96"
|
471
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
475
472
|
"width": "64",
|
476
|
-
"height": "128"
|
473
|
+
"height": "128",
|
474
|
+
"fill": "#c4c6cc",
|
475
|
+
"x": "672",
|
476
|
+
"y": "96"
|
477
477
|
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
478
478
|
"fill": "#c4c6cc",
|
479
479
|
"points": "403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"
|
480
480
|
}, null)])])]);
|
481
481
|
var timeIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
482
482
|
"class": "picker-icon",
|
483
|
+
"viewBox": "0 0 1024 1024",
|
483
484
|
"x": "0px",
|
484
|
-
"y": "0px"
|
485
|
-
"viewBox": "0 0 1024 1024"
|
485
|
+
"y": "0px"
|
486
486
|
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
487
487
|
"id": "time"
|
488
488
|
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
489
|
-
"
|
490
|
-
"
|
489
|
+
"d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z",
|
490
|
+
"fill": "#c4c6cc"
|
491
491
|
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
492
492
|
"fill": "#c4c6cc",
|
493
493
|
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
@@ -603,17 +603,17 @@ var confirmProps = {
|
|
603
603
|
_this$$slots$confirm2,
|
604
604
|
_this$$slots;
|
605
605
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
606
|
-
"class": this.resolveClassName('picker-confirm'),
|
607
606
|
"ref": "elRef",
|
607
|
+
"class": this.resolveClassName('picker-confirm'),
|
608
608
|
"onKeydown": this.handleTab
|
609
609
|
}, [this.showTime ? // <a href="javascript: void(0);" class="bk-picker-confirm-time" disabled onClick={this.handleToggleTime}>
|
610
610
|
// {this.labels.time}
|
611
611
|
// </a>
|
612
612
|
(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
613
|
-
"text": true,
|
614
|
-
"theme": "primary",
|
615
613
|
"class": this.resolveClassName('picker-confirm-time'),
|
616
614
|
"disabled": this.timeDisabled,
|
615
|
+
"theme": "primary",
|
616
|
+
"text": true,
|
617
617
|
"onClick": this.handleToggleTime
|
618
618
|
}, {
|
619
619
|
"default": function _default() {
|
@@ -625,12 +625,13 @@ var confirmProps = {
|
|
625
625
|
"href": "javascript: void(0);",
|
626
626
|
"onClick": this.handleClear,
|
627
627
|
"onKeydown": this.handleClear
|
628
|
-
}, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", {
|
629
|
-
"href": "javascript: void(0);",
|
628
|
+
}, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", (0,external_vue_namespaceObject.mergeProps)({
|
630
629
|
"class": "confirm",
|
631
|
-
"
|
632
|
-
"
|
633
|
-
},
|
630
|
+
"href": "javascript: void(0);",
|
631
|
+
"onClick": this.handleSuccess
|
632
|
+
}, {
|
633
|
+
onKeydown_enter: this.handleSuccess
|
634
|
+
}), [this.labels.ok])])]);
|
634
635
|
}
|
635
636
|
}));
|
636
637
|
;// CONCATENATED MODULE: external "js-calendar"
|
@@ -667,7 +668,6 @@ const external_date_fns_namespaceObject = external_date_fns_x({ ["format"]: () =
|
|
667
668
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
668
669
|
* IN THE SOFTWARE.
|
669
670
|
*/
|
670
|
-
/* eslint-disable no-param-reassign, no-multi-assign */
|
671
671
|
/**
|
672
672
|
* @file fecha
|
673
673
|
* https://github.com/taylorhakes/fecha
|
@@ -677,7 +677,6 @@ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^
|
|
677
677
|
var twoDigits = /\d\d?/;
|
678
678
|
var threeDigits = /\d{3}/;
|
679
679
|
var fourDigits = /\d{4}/;
|
680
|
-
// eslint-disable-next-line max-len
|
681
680
|
var word = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
|
682
681
|
var noop = function noop() {};
|
683
682
|
function shorten(arr, sLen) {
|
@@ -1099,6 +1098,10 @@ var typeValueResolver = {
|
|
1099
1098
|
return src_fecha.parse(text, format || 'yyyy-MM-dd');
|
1100
1099
|
}
|
1101
1100
|
},
|
1101
|
+
yearrange: {
|
1102
|
+
formatter: rangeFormatter,
|
1103
|
+
parser: rangeParser
|
1104
|
+
},
|
1102
1105
|
multiple: {
|
1103
1106
|
formatter: function formatter(value, format) {
|
1104
1107
|
return value.filter(Boolean).map(function (date) {
|
@@ -1193,6 +1196,7 @@ var DEFAULT_FORMATS = {
|
|
1193
1196
|
month: 'yyyy-MM',
|
1194
1197
|
monthrange: 'yyyy-MM',
|
1195
1198
|
year: 'yyyy',
|
1199
|
+
yearrange: 'yyyy',
|
1196
1200
|
datetime: 'yyyy-MM-dd HH:mm:ss',
|
1197
1201
|
time: 'HH:mm:ss',
|
1198
1202
|
timerange: 'HH:mm:ss',
|
@@ -1271,7 +1275,9 @@ var timePickerKey = Symbol('time-picker');
|
|
1271
1275
|
// }
|
1272
1276
|
function iconBtnCls(direction) {
|
1273
1277
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
1274
|
-
|
1278
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1279
|
+
resolveClassName = _usePrefix.resolveClassName;
|
1280
|
+
return [resolveClassName('picker-panel-icon-btn'), resolveClassName("date-picker-".concat(direction, "-btn")), resolveClassName("date-picker-".concat(direction, "-btn-arrow").concat(type))];
|
1275
1281
|
}
|
1276
1282
|
var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
|
1277
1283
|
return new Date(year, month + 1, 0).getDate();
|
@@ -1363,7 +1369,15 @@ var isInRange = function isInRange(time, a, b) {
|
|
1363
1369
|
if (!a || !b) {
|
1364
1370
|
return false;
|
1365
1371
|
}
|
1366
|
-
var _sort = [a, b].sort()
|
1372
|
+
var _sort = [a, b].sort(function (x, y) {
|
1373
|
+
if (x - y > 0) {
|
1374
|
+
return 1;
|
1375
|
+
}
|
1376
|
+
if (x - y < 0) {
|
1377
|
+
return -1;
|
1378
|
+
}
|
1379
|
+
return 0;
|
1380
|
+
}),
|
1367
1381
|
_sort2 = _slicedToArray(_sort, 2),
|
1368
1382
|
start = _sort2[0],
|
1369
1383
|
end = _sort2[1];
|
@@ -1670,6 +1684,8 @@ var monthTableProps = {
|
|
1670
1684
|
maxDay = _dates$value$map2[1];
|
1671
1685
|
var rangeStart = props.rangeState.from && clearHours(props.rangeState.from);
|
1672
1686
|
var rangeEnd = props.rangeState.to && clearHours(props.rangeState.to);
|
1687
|
+
var now = new Date();
|
1688
|
+
var currentMonth = clearHours(new Date(now.getFullYear(), now.getMonth(), 1));
|
1673
1689
|
for (var i = 0; i < 12; i++) {
|
1674
1690
|
var cell = JSON.parse(JSON.stringify(cellTmpl));
|
1675
1691
|
cell.date = new Date(tableYear, i, 1);
|
@@ -1682,6 +1698,7 @@ var monthTableProps = {
|
|
1682
1698
|
cell.start = isRange && time === minDay;
|
1683
1699
|
cell.end = isRange && time === maxDay;
|
1684
1700
|
cell.focused = day === focusedDate;
|
1701
|
+
cell.isCurrentMonth = day === currentMonth;
|
1685
1702
|
cells.push(cell);
|
1686
1703
|
}
|
1687
1704
|
return cells;
|
@@ -1692,7 +1709,7 @@ var monthTableProps = {
|
|
1692
1709
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1693
1710
|
resolveClassName = _usePrefix.resolveClassName;
|
1694
1711
|
var getCellCls = function getCellCls(cell) {
|
1695
|
-
return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty({}, resolveClassName('date-picker-cells-cell-selected'), cell.selected), resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end) // resolveClassName('date-picker-cells-cell'),
|
1712
|
+
return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, resolveClassName('date-picker-cells-cell-selected'), cell.selected), resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), resolveClassName('date-picker-cells-cell-today'), cell.isCurrentMonth), resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end) // resolveClassName('date-picker-cells-cell'),
|
1696
1713
|
// {
|
1697
1714
|
// [resolveClassName('date-picker-cells-cell-today')]: cell.type === 'today',
|
1698
1715
|
// [resolveClassName('date-picker-cells-cell-range')]: cell.range && !cell.start && !cell.end,
|
@@ -1745,6 +1762,7 @@ var monthTableProps = {
|
|
1745
1762
|
;// CONCATENATED MODULE: ../../packages/date-picker/src/base/year-table.tsx
|
1746
1763
|
|
1747
1764
|
|
1765
|
+
|
1748
1766
|
/*
|
1749
1767
|
* Tencent is pleased to support the open source community by making
|
1750
1768
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1817,7 +1835,7 @@ var yearTableProps = {
|
|
1817
1835
|
/* harmony default export */ const year_table = ((0,external_vue_namespaceObject.defineComponent)({
|
1818
1836
|
name: 'YearTable',
|
1819
1837
|
props: yearTableProps,
|
1820
|
-
emits: ['pick', 'pick-click', '
|
1838
|
+
emits: ['pick', 'pick-click', 'changeRange'],
|
1821
1839
|
setup: function setup(props, _ref) {
|
1822
1840
|
var emit = _ref.emit;
|
1823
1841
|
var dates = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -1827,6 +1845,7 @@ var yearTableProps = {
|
|
1827
1845
|
var rangeSelecting = selectionMode === 'range' && rangeState.selecting;
|
1828
1846
|
return rangeSelecting ? [rangeState.from] : modelValue;
|
1829
1847
|
});
|
1848
|
+
var isRange = props.selectionMode === 'range';
|
1830
1849
|
var startYear = (0,external_vue_namespaceObject.computed)(function () {
|
1831
1850
|
return Math.floor(props.tableDate.getFullYear() / 10) * 10;
|
1832
1851
|
});
|
@@ -1841,13 +1860,25 @@ var yearTableProps = {
|
|
1841
1860
|
return clearHours(new Date(date.getFullYear(), 0, 1));
|
1842
1861
|
});
|
1843
1862
|
var focusedDate = clearHours(new Date(props.focusedDate.getFullYear(), 0, 1));
|
1863
|
+
var currentYear = clearHours(new Date(new Date().getFullYear(), 0, 1));
|
1864
|
+
var _dates$value$map = dates.value.map(clearHours),
|
1865
|
+
_dates$value$map2 = _slicedToArray(_dates$value$map, 2),
|
1866
|
+
minDay = _dates$value$map2[0],
|
1867
|
+
maxDay = _dates$value$map2[1];
|
1868
|
+
var rangeStart = props.rangeState.from && clearHours(props.rangeState.from);
|
1869
|
+
var rangeEnd = props.rangeState.to && clearHours(props.rangeState.to);
|
1844
1870
|
for (var i = 0; i < 10; i++) {
|
1845
1871
|
var cell = JSON.parse(JSON.stringify(cellTmpl));
|
1846
1872
|
cell.date = new Date(startYear.value + i, 0, 1);
|
1847
|
-
cell.disabled = typeof props.disabledDate === 'function' && props.disabledDate(cell.date)
|
1873
|
+
cell.disabled = typeof props.disabledDate === 'function' && props.disabledDate(cell.date);
|
1848
1874
|
var day = clearHours(cell.date);
|
1875
|
+
var time = cell.date && clearHours(cell.date);
|
1876
|
+
cell.range = isRange && isInRange(time, rangeStart, rangeEnd);
|
1877
|
+
cell.start = isRange && time === minDay;
|
1878
|
+
cell.end = isRange && time === maxDay;
|
1849
1879
|
cell.selected = selectedDays.includes(day);
|
1850
1880
|
cell.focused = day === focusedDate;
|
1881
|
+
cell.isCurrent = day === currentYear;
|
1851
1882
|
cells.push(cell);
|
1852
1883
|
}
|
1853
1884
|
return cells;
|
@@ -1855,7 +1886,7 @@ var yearTableProps = {
|
|
1855
1886
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1856
1887
|
resolveClassName = _usePrefix.resolveClassName;
|
1857
1888
|
var getCellCls = function getCellCls(cell) {
|
1858
|
-
return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty({}, resolveClassName('date-picker-cells-cell-selected'), cell.selected), resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end)];
|
1889
|
+
return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, resolveClassName('date-picker-cells-cell-selected'), cell.selected), resolveClassName('date-picker-cells-cell-disabled'), cell.disabled), resolveClassName('date-picker-cells-cell-today'), cell.isCurrent), resolveClassName('date-picker-cells-cell-range'), cell.range && !cell.start && !cell.end)];
|
1859
1890
|
};
|
1860
1891
|
var handleClick = function handleClick(cell) {
|
1861
1892
|
if (cell.disabled || cell.type === 'weekLabel') {
|
@@ -1873,7 +1904,7 @@ var yearTableProps = {
|
|
1873
1904
|
return;
|
1874
1905
|
}
|
1875
1906
|
var newDate = cell.date;
|
1876
|
-
emit('
|
1907
|
+
emit('changeRange', newDate);
|
1877
1908
|
};
|
1878
1909
|
return {
|
1879
1910
|
cells: cells,
|
@@ -1942,7 +1973,7 @@ var datePickerProps = {
|
|
1942
1973
|
type: String,
|
1943
1974
|
"default": 'date',
|
1944
1975
|
validator: function validator(value) {
|
1945
|
-
var validList = ['year', 'month', 'monthrange', 'date', 'daterange', 'datetime', 'datetimerange', 'time', 'timerange'];
|
1976
|
+
var validList = ['year', 'yearrange', 'month', 'monthrange', 'date', 'daterange', 'datetime', 'datetimerange', 'time', 'timerange'];
|
1946
1977
|
if (validList.indexOf(value) < 0) {
|
1947
1978
|
console.error("type property is not valid: '".concat(value, "'"));
|
1948
1979
|
return false;
|
@@ -2008,10 +2039,6 @@ var datePickerProps = {
|
|
2008
2039
|
return true;
|
2009
2040
|
}
|
2010
2041
|
},
|
2011
|
-
transfer: {
|
2012
|
-
type: Boolean,
|
2013
|
-
"default": false
|
2014
|
-
},
|
2015
2042
|
appendToBody: {
|
2016
2043
|
type: Boolean,
|
2017
2044
|
"default": false
|
@@ -2512,18 +2539,18 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2512
2539
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2513
2540
|
"class": this.resolveClassName('time-picker-cells-title-wrapper')
|
2514
2541
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2515
|
-
"
|
2516
|
-
"
|
2542
|
+
"style": this.styles,
|
2543
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 0 ? 'active' : '']
|
2517
2544
|
}, [this.t.hour]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2518
|
-
"
|
2519
|
-
"
|
2545
|
+
"style": this.styles,
|
2546
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 1 ? 'active' : '']
|
2520
2547
|
}, [this.t.min]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2521
|
-
"
|
2522
|
-
"
|
2548
|
+
"style": this.styles,
|
2549
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 2 ? 'active' : '']
|
2523
2550
|
}, [this.t.sec]), [[external_vue_namespaceObject.vShow, this.showSeconds]])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2524
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2525
2551
|
"ref": "hoursRef",
|
2526
|
-
"style": this.styles
|
2552
|
+
"style": this.styles,
|
2553
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2527
2554
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2528
2555
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2529
2556
|
}, [this.hoursList.map(function (item) {
|
@@ -2534,9 +2561,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2534
2561
|
}
|
2535
2562
|
}, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
|
2536
2563
|
})])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2537
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2538
2564
|
"ref": "minutesRef",
|
2539
|
-
"style": this.styles
|
2565
|
+
"style": this.styles,
|
2566
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2540
2567
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2541
2568
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2542
2569
|
}, [this.minutesList.map(function (item) {
|
@@ -2547,9 +2574,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2547
2574
|
}
|
2548
2575
|
}, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
|
2549
2576
|
})])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2550
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2551
2577
|
"ref": "secondsRef",
|
2552
|
-
"style": this.styles
|
2578
|
+
"style": this.styles,
|
2579
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2553
2580
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2554
2581
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2555
2582
|
}, [this.secondsList.map(function (item) {
|
@@ -2659,12 +2686,10 @@ var timeProps = {
|
|
2659
2686
|
// const parentProvide = injectStrict(timePickerKey);
|
2660
2687
|
var parentProvide = (0,external_vue_namespaceObject.inject)(timePickerKey);
|
2661
2688
|
var timeSpinnerRef = (0,external_vue_namespaceObject.ref)(null);
|
2689
|
+
var visibleDate = (0,external_vue_namespaceObject.ref)(src_fecha.format(parentProvide.panelDate, props.format));
|
2662
2690
|
var showSeconds = (0,external_vue_namespaceObject.computed)(function () {
|
2663
2691
|
return !(props.format || '').match(/mm$/);
|
2664
2692
|
});
|
2665
|
-
var visibleDate = (0,external_vue_namespaceObject.computed)(function () {
|
2666
|
-
return src_fecha.format(parentProvide.panelDate, props.format);
|
2667
|
-
});
|
2668
2693
|
var timeSlots = (0,external_vue_namespaceObject.computed)(function () {
|
2669
2694
|
if (!props.value[0]) {
|
2670
2695
|
return [];
|
@@ -2718,6 +2743,10 @@ var timeProps = {
|
|
2718
2743
|
var newVal = dates[0] || initTime();
|
2719
2744
|
newVal = new Date(newVal);
|
2720
2745
|
state.date = newVal;
|
2746
|
+
parentProvide.panelDate = newVal;
|
2747
|
+
visibleDate.value = src_fecha.format(parentProvide.panelDate, props.format);
|
2748
|
+
}, {
|
2749
|
+
immediate: true
|
2721
2750
|
});
|
2722
2751
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
2723
2752
|
if (parentProvide && parentProvide.parentName === 'DatePanel') {
|
@@ -2758,27 +2787,27 @@ var timeProps = {
|
|
2758
2787
|
e.preventDefault();
|
2759
2788
|
}
|
2760
2789
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2761
|
-
"class": this.resolveClassName('picker-panel-body'),
|
2762
2790
|
"style": {
|
2763
2791
|
width: "".concat(this.width, "px")
|
2764
|
-
}
|
2792
|
+
},
|
2793
|
+
"class": this.resolveClassName('picker-panel-body')
|
2765
2794
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
2766
2795
|
"class": this.resolveClassName('time-picker-header')
|
2767
2796
|
}, [this.visibleDate]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
2768
2797
|
"class": this.resolveClassName('picker-panel-content')
|
2769
2798
|
}, [(0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
2770
2799
|
"ref": "timeSpinnerRef",
|
2771
|
-
"showSeconds": this.showSeconds,
|
2772
|
-
"steps": this.steps,
|
2773
|
-
"hours": this.timeSlots[0],
|
2774
|
-
"minutes": this.timeSlots[1],
|
2775
|
-
"seconds": this.timeSlots[2],
|
2776
2800
|
"disabledHours": this.disabledHMS.disabledHours,
|
2777
2801
|
"disabledMinutes": this.disabledHMS.disabledMinutes,
|
2778
2802
|
"disabledSeconds": this.disabledHMS.disabledSeconds,
|
2779
2803
|
"hideDisabledOptions": this.hideDisabledOptions,
|
2780
|
-
"
|
2781
|
-
"
|
2804
|
+
"hours": this.timeSlots[0],
|
2805
|
+
"minutes": this.timeSlots[1],
|
2806
|
+
"seconds": this.timeSlots[2],
|
2807
|
+
"showSeconds": this.showSeconds,
|
2808
|
+
"steps": this.steps,
|
2809
|
+
"onChange": this.handleChange,
|
2810
|
+
"onPick-click": this.handlePickClick
|
2782
2811
|
}, null)])])]);
|
2783
2812
|
}
|
2784
2813
|
}));
|
@@ -2812,6 +2841,7 @@ function date_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2812
2841
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2813
2842
|
* IN THE SOFTWARE.
|
2814
2843
|
*/
|
2844
|
+
// import type { Placement } from '@popperjs/core';
|
2815
2845
|
|
2816
2846
|
|
2817
2847
|
|
@@ -3097,8 +3127,8 @@ var datePanelProps = {
|
|
3097
3127
|
}
|
3098
3128
|
}, [shortcut.text]);
|
3099
3129
|
})]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
3100
|
-
"
|
3101
|
-
"
|
3130
|
+
"style": "width: 261px;",
|
3131
|
+
"class": this.resolveClassName('picker-panel-body')
|
3102
3132
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
3103
3133
|
"class": this.resolveClassName('date-picker-header')
|
3104
3134
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -3161,29 +3191,29 @@ var datePanelProps = {
|
|
3161
3191
|
switch (_this2.pickerTable) {
|
3162
3192
|
case 'date-table':
|
3163
3193
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
3164
|
-
"tableDate": _this2.panelDate,
|
3165
3194
|
"disabledDate": _this2.disabledDate,
|
3166
|
-
"selectionMode": _this2.selectionMode,
|
3167
|
-
"modelValue": _this2.dates,
|
3168
3195
|
"focusedDate": _this2.focusedDate,
|
3196
|
+
"modelValue": _this2.dates,
|
3197
|
+
"selectionMode": _this2.selectionMode,
|
3198
|
+
"tableDate": _this2.panelDate,
|
3169
3199
|
"onPick": _this2.panelPickerHandlers
|
3170
3200
|
}, null);
|
3171
3201
|
case 'year-table':
|
3172
3202
|
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
3173
|
-
"tableDate": _this2.panelDate,
|
3174
3203
|
"disabledDate": _this2.disabledDate,
|
3175
|
-
"selectionMode": _this2.selectionMode,
|
3176
|
-
"modelValue": _this2.dates,
|
3177
3204
|
"focusedDate": _this2.focusedDate,
|
3205
|
+
"modelValue": _this2.dates,
|
3206
|
+
"selectionMode": _this2.selectionMode,
|
3207
|
+
"tableDate": _this2.panelDate,
|
3178
3208
|
"onPick": _this2.panelPickerHandlers
|
3179
3209
|
}, null);
|
3180
3210
|
case 'month-table':
|
3181
3211
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
3182
|
-
"tableDate": _this2.panelDate,
|
3183
3212
|
"disabledDate": _this2.disabledDate,
|
3184
|
-
"selectionMode": _this2.selectionMode,
|
3185
|
-
"modelValue": _this2.dates,
|
3186
3213
|
"focusedDate": _this2.focusedDate,
|
3214
|
+
"modelValue": _this2.dates,
|
3215
|
+
"selectionMode": _this2.selectionMode,
|
3216
|
+
"tableDate": _this2.panelDate,
|
3187
3217
|
"onPick": _this2.panelPickerHandlers
|
3188
3218
|
}, null);
|
3189
3219
|
default:
|
@@ -3191,23 +3221,23 @@ var datePanelProps = {
|
|
3191
3221
|
}
|
3192
3222
|
}() : (0,external_vue_namespaceObject.createVNode)(time, {
|
3193
3223
|
"ref": "timePickerRef",
|
3194
|
-
"
|
3224
|
+
"disabledDate": this.disabledDate,
|
3195
3225
|
"format": this.format,
|
3196
3226
|
"selectionMode": this.selectionMode,
|
3197
|
-
"
|
3227
|
+
"value": this.dates,
|
3198
3228
|
"onPick": this.handlePick,
|
3199
|
-
"onPick-click": this.handlePickClick,
|
3200
3229
|
"onPick-clear": this.handlePickClear,
|
3230
|
+
"onPick-click": this.handlePickClick,
|
3201
3231
|
"onPick-success": this.handlePickSuccess,
|
3202
3232
|
"onPick-toggle-time": this.handleToggleTime
|
3203
3233
|
}, null)]), this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
|
3204
3234
|
"clearable": this.clearable,
|
3235
|
+
"isTime": this.isTime,
|
3205
3236
|
"showTime": this.showTime,
|
3206
3237
|
"timeDisabled": this.timeDisabled,
|
3207
|
-
"isTime": this.isTime,
|
3208
|
-
"onPick-toggle-time": this.handleToggleTime,
|
3209
3238
|
"onPick-clear": this.handlePickClear,
|
3210
|
-
"onPick-success": this.handlePickSuccess
|
3239
|
+
"onPick-success": this.handlePickSuccess,
|
3240
|
+
"onPick-toggle-time": this.handleToggleTime
|
3211
3241
|
}, this.$slots) : '']), this.hasShortcuts ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3212
3242
|
"class": this.resolveClassName('picker-panel-sidebar')
|
3213
3243
|
}, [(_this$$slots$shortcut = (_this$$slots$shortcut2 = (_this$$slots = this.$slots).shortcuts) === null || _this$$slots$shortcut2 === void 0 ? void 0 : _this$$slots$shortcut2.call(_this$$slots)) !== null && _this$$slots$shortcut !== void 0 ? _this$$slots$shortcut : null]) : null]);
|
@@ -3430,48 +3460,48 @@ var timeRangeProps = {
|
|
3430
3460
|
e.preventDefault();
|
3431
3461
|
}
|
3432
3462
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3433
|
-
"class": this.resolveClassName('picker-panel-body'),
|
3434
3463
|
"style": {
|
3435
3464
|
width: "".concat(this.width * 2, "px")
|
3436
|
-
}
|
3465
|
+
},
|
3466
|
+
"class": this.resolveClassName('picker-panel-body')
|
3437
3467
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3438
|
-
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')],
|
3439
3468
|
"style": {
|
3440
3469
|
width: "".concat(this.width, "px")
|
3441
|
-
}
|
3470
|
+
},
|
3471
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
|
3442
3472
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3443
3473
|
"class": "".concat(this.resolveClassName('time-picker-header'))
|
3444
3474
|
}, [this.leftDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
3445
3475
|
"ref": "timeSpinnerRef",
|
3446
|
-
"steps": this.steps,
|
3447
|
-
"showSeconds": this.showSeconds,
|
3448
|
-
"hours": this.value[0] && this.dateStart.getHours(),
|
3449
|
-
"minutes": this.value[0] && this.dateStart.getMinutes(),
|
3450
|
-
"seconds": this.value[0] && this.dateStart.getSeconds(),
|
3451
3476
|
"disabledHours": this.disabledHours,
|
3452
3477
|
"disabledMinutes": this.disabledMinutes,
|
3453
3478
|
"disabledSeconds": this.disabledSeconds,
|
3454
3479
|
"hideDisabledOptions": this.hideDisabledOptions,
|
3480
|
+
"hours": this.value[0] && this.dateStart.getHours(),
|
3481
|
+
"minutes": this.value[0] && this.dateStart.getMinutes(),
|
3482
|
+
"seconds": this.value[0] && this.dateStart.getSeconds(),
|
3483
|
+
"showSeconds": this.showSeconds,
|
3484
|
+
"steps": this.steps,
|
3455
3485
|
"onChange": this.handleStartChange,
|
3456
3486
|
"onPick-click": this.handlePickClick
|
3457
3487
|
}, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3458
|
-
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')],
|
3459
3488
|
"style": {
|
3460
3489
|
width: "".concat(this.width, "px")
|
3461
|
-
}
|
3490
|
+
},
|
3491
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
|
3462
3492
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3463
3493
|
"class": this.resolveClassName('time-picker-header')
|
3464
3494
|
}, [this.rightDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
3465
3495
|
"ref": "timeSpinnerEndRef",
|
3466
|
-
"steps": this.steps,
|
3467
|
-
"showSeconds": this.showSeconds,
|
3468
|
-
"hours": this.value[1] && this.dateEnd.getHours(),
|
3469
|
-
"minutes": this.value[1] && this.dateEnd.getMinutes(),
|
3470
|
-
"seconds": this.value[1] && this.dateEnd.getSeconds(),
|
3471
3496
|
"disabledHours": this.disabledHours,
|
3472
3497
|
"disabledMinutes": this.disabledMinutes,
|
3473
3498
|
"disabledSeconds": this.disabledSeconds,
|
3474
3499
|
"hideDisabledOptions": this.hideDisabledOptions,
|
3500
|
+
"hours": this.value[1] && this.dateEnd.getHours(),
|
3501
|
+
"minutes": this.value[1] && this.dateEnd.getMinutes(),
|
3502
|
+
"seconds": this.value[1] && this.dateEnd.getSeconds(),
|
3503
|
+
"showSeconds": this.showSeconds,
|
3504
|
+
"steps": this.steps,
|
3475
3505
|
"onChange": this.handleEndChange,
|
3476
3506
|
"onPick-click": this.handlePickClick
|
3477
3507
|
}, null)])])]);
|
@@ -3483,6 +3513,7 @@ var timeRangeProps = {
|
|
3483
3513
|
|
3484
3514
|
function date_range_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3485
3515
|
function date_range_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? date_range_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : date_range_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
3516
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3486
3517
|
/*
|
3487
3518
|
* Tencent is pleased to support the open source community by making
|
3488
3519
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3509,9 +3540,9 @@ function date_range_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
3509
3540
|
* IN THE SOFTWARE.
|
3510
3541
|
*/
|
3511
3542
|
// import type { Placement } from '@popperjs/core';
|
3512
|
-
// import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
|
3513
3543
|
|
3514
3544
|
|
3545
|
+
// import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
|
3515
3546
|
|
3516
3547
|
|
3517
3548
|
|
@@ -3529,7 +3560,7 @@ var dateRangePanelProps = {
|
|
3529
3560
|
type: String,
|
3530
3561
|
"default": 'date',
|
3531
3562
|
validator: function validator(value) {
|
3532
|
-
var validList = ['year', 'month', 'monthrange', 'date', 'daterange', 'datetime', 'datetimerange', 'time', 'timerange'];
|
3563
|
+
var validList = ['year', 'yearrange', 'month', 'monthrange', 'date', 'daterange', 'datetime', 'datetimerange', 'time', 'timerange'];
|
3533
3564
|
if (validList.indexOf(value) < 0) {
|
3534
3565
|
console.error("type property is not valid: '".concat(value, "'"));
|
3535
3566
|
return false;
|
@@ -3617,7 +3648,14 @@ var dateRangePanelProps = {
|
|
3617
3648
|
minDate = _props$modelValue$map2[0],
|
3618
3649
|
maxDate = _props$modelValue$map2[1];
|
3619
3650
|
var leftPanelDate = props.startDate ? props.startDate : minDate;
|
3620
|
-
var rightPanelDate
|
3651
|
+
var rightPanelDate;
|
3652
|
+
if (props.type === 'monthrange') {
|
3653
|
+
rightPanelDate = new Date(leftPanelDate.getFullYear() + 1, leftPanelDate.getMonth(), 1);
|
3654
|
+
} else if (props.type === 'yearrange') {
|
3655
|
+
rightPanelDate = new Date(leftPanelDate.getFullYear() + 10, leftPanelDate.getMonth(), 1);
|
3656
|
+
} else {
|
3657
|
+
rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1);
|
3658
|
+
}
|
3621
3659
|
var state = (0,external_vue_namespaceObject.reactive)({
|
3622
3660
|
currentView: props.selectionMode || 'date',
|
3623
3661
|
leftPickerTable: "".concat(props.selectionMode, "-table"),
|
@@ -3674,10 +3712,22 @@ var dateRangePanelProps = {
|
|
3674
3712
|
if (props.splitPanels) {
|
3675
3713
|
var otherPanel = panel === 'left' ? 'right' : 'left';
|
3676
3714
|
if (panel === 'left' && state.leftPanelDate >= state.rightPanelDate) {
|
3677
|
-
|
3715
|
+
if (state.currentView === 'year') {
|
3716
|
+
if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
|
3717
|
+
changePanelDate(otherPanel, type, 10);
|
3718
|
+
}
|
3719
|
+
} else {
|
3720
|
+
changePanelDate(otherPanel, type, 1);
|
3721
|
+
}
|
3678
3722
|
}
|
3679
3723
|
if (panel === 'right' && state.rightPanelDate <= state.leftPanelDate) {
|
3680
|
-
|
3724
|
+
if (state.currentView === 'year') {
|
3725
|
+
if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
|
3726
|
+
changePanelDate(otherPanel, type, -10);
|
3727
|
+
}
|
3728
|
+
} else {
|
3729
|
+
changePanelDate(otherPanel, type, -1);
|
3730
|
+
}
|
3681
3731
|
}
|
3682
3732
|
} else {
|
3683
3733
|
var _otherPanel = panel === 'left' ? 'right' : 'left';
|
@@ -3845,7 +3895,15 @@ var dateRangePanelProps = {
|
|
3845
3895
|
};
|
3846
3896
|
function setPanelDates(leftPanelDate) {
|
3847
3897
|
state.leftPanelDate = leftPanelDate;
|
3848
|
-
|
3898
|
+
// const rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1);
|
3899
|
+
var rightPanelDate;
|
3900
|
+
if (props.type === 'monthrange') {
|
3901
|
+
rightPanelDate = new Date(leftPanelDate.getFullYear() + 1, leftPanelDate.getMonth(), 1);
|
3902
|
+
} else if (props.type === 'yearrange') {
|
3903
|
+
rightPanelDate = new Date(leftPanelDate.getFullYear() + 10, leftPanelDate.getMonth(), 1);
|
3904
|
+
} else {
|
3905
|
+
rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1);
|
3906
|
+
}
|
3849
3907
|
var splitRightPanelDate = state.dates[1] ? state.dates[1].getTime() : state.dates[1];
|
3850
3908
|
state.rightPanelDate = props.splitPanels ? new Date(Math.max(splitRightPanelDate, rightPanelDate.getTime())) : rightPanelDate;
|
3851
3909
|
}
|
@@ -4025,8 +4083,8 @@ var dateRangePanelProps = {
|
|
4025
4083
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
4026
4084
|
"class": [this.resolveClassName('picker-panel-body'), this.showTime ? this.resolveClassName('picker-panel-body-time') : this.resolveClassName('picker-panel-body-date')]
|
4027
4085
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4028
|
-
"
|
4029
|
-
"
|
4086
|
+
"style": "width: 261px;",
|
4087
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
|
4030
4088
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4031
4089
|
"class": this.resolveClassName('date-picker-header')
|
4032
4090
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -4056,12 +4114,12 @@ var dateRangePanelProps = {
|
|
4056
4114
|
"onClick": function onClick() {
|
4057
4115
|
return _this.leftDatePanelLabel.labels[0].handler;
|
4058
4116
|
}
|
4059
|
-
}, [this.leftDatePanelLabel.labels[0].label]), [[external_vue_namespaceObject.vShow, this.leftShowLabelFirst]]), this.leftDatePanelView === 'date' ? " ".concat(this.leftDatePanelLabel.separator, " ") : ' ', (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("span", {
|
4117
|
+
}, [this.type === 'yearrange' ? "".concat(Math.floor(this.leftDatePanelLabel.labels[0].label / 10) * 10, " - ").concat(Math.ceil(this.leftDatePanelLabel.labels[0].label / 10) * 10 - 1) : this.leftDatePanelLabel.labels[0].label]), [[external_vue_namespaceObject.vShow, this.leftShowLabelFirst]]), this.leftDatePanelView === 'date' ? " ".concat(this.leftDatePanelLabel.separator, " ") : ' ', (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("span", {
|
4060
4118
|
"class": this.resolveClassName('date-picker-header-label'),
|
4061
4119
|
"onClick": function onClick() {
|
4062
4120
|
return _this.leftDatePanelLabel.labels[1].handler;
|
4063
4121
|
}
|
4064
|
-
}, [this.leftDatePanelLabel.labels[1].label]), [[external_vue_namespaceObject.vShow, this.leftShowLabelSecond]])]) : '', this.splitPanels || this.leftPickerTable !== 'date-table' && this.leftPickerTable !== 'month-table' ? (0,external_vue_namespaceObject.createVNode)("span", {
|
4122
|
+
}, [this.leftDatePanelLabel.labels[1].label]), [[external_vue_namespaceObject.vShow, this.leftShowLabelSecond]])]) : '', this.splitPanels || this.leftPickerTable !== 'date-table' && this.leftPickerTable !== 'month-table' && this.leftPickerTable !== 'year-table' ? (0,external_vue_namespaceObject.createVNode)("span", {
|
4065
4123
|
"class": iconBtnCls('next', '-double'),
|
4066
4124
|
"onClick": function onClick() {
|
4067
4125
|
return _this.nextYear('left');
|
@@ -4087,23 +4145,34 @@ var dateRangePanelProps = {
|
|
4087
4145
|
switch (_this.leftPickerTable) {
|
4088
4146
|
case 'date-table':
|
4089
4147
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
4090
|
-
"selectionMode": "range",
|
4091
|
-
"tableDate": _this.leftPanelDate,
|
4092
4148
|
"disabledDate": _this.disabledDate,
|
4093
|
-
"rangeState": _this.rangeState,
|
4094
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4095
4149
|
"focusedDate": _this.focusedDate,
|
4150
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4151
|
+
"rangeState": _this.rangeState,
|
4152
|
+
"selectionMode": "range",
|
4153
|
+
"tableDate": _this.leftPanelDate,
|
4096
4154
|
"onChangeRange": _this.handleChangeRange,
|
4097
4155
|
"onPick": _this.panelPickerHandlers.left
|
4098
4156
|
}, null);
|
4099
4157
|
case 'month-table':
|
4100
4158
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
4159
|
+
"disabledDate": _this.disabledDate,
|
4160
|
+
"focusedDate": _this.focusedDate,
|
4161
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4162
|
+
"rangeState": _this.rangeState,
|
4101
4163
|
"selectionMode": "range",
|
4102
4164
|
"tableDate": _this.leftPanelDate,
|
4165
|
+
"onChangeRange": _this.handleChangeRange,
|
4166
|
+
"onPick": _this.panelPickerHandlers.left
|
4167
|
+
}, null);
|
4168
|
+
case 'year-table':
|
4169
|
+
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
4103
4170
|
"disabledDate": _this.disabledDate,
|
4104
|
-
"rangeState": _this.rangeState,
|
4105
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4106
4171
|
"focusedDate": _this.focusedDate,
|
4172
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4173
|
+
"rangeState": _this.rangeState,
|
4174
|
+
"selectionMode": "range",
|
4175
|
+
"tableDate": _this.leftPanelDate,
|
4107
4176
|
"onChangeRange": _this.handleChangeRange,
|
4108
4177
|
"onPick": _this.panelPickerHandlers.left
|
4109
4178
|
}, null);
|
@@ -4111,11 +4180,11 @@ var dateRangePanelProps = {
|
|
4111
4180
|
return null;
|
4112
4181
|
}
|
4113
4182
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4114
|
-
"
|
4115
|
-
"
|
4183
|
+
"style": "width: 261px;",
|
4184
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
|
4116
4185
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4117
4186
|
"class": this.resolveClassName('date-picker-header')
|
4118
|
-
}, [this.splitPanels || this.rightPickerTable !== 'date-table' && this.rightPickerTable !== 'month-table' ? (0,external_vue_namespaceObject.createVNode)("span", {
|
4187
|
+
}, [this.splitPanels || this.rightPickerTable !== 'date-table' && this.rightPickerTable !== 'month-table' && this.rightPickerTable !== 'year-table' ? (0,external_vue_namespaceObject.createVNode)("span", {
|
4119
4188
|
"class": iconBtnCls('prev', '-double'),
|
4120
4189
|
"onClick": function onClick() {
|
4121
4190
|
return _this.prevYear('right');
|
@@ -4142,7 +4211,7 @@ var dateRangePanelProps = {
|
|
4142
4211
|
"onClick": function onClick() {
|
4143
4212
|
return _this.rightDatePanelLabel.labels[0].handler;
|
4144
4213
|
}
|
4145
|
-
}, [this.rightDatePanelLabel.labels[0].label]), [[external_vue_namespaceObject.vShow, this.rightShowLabelFirst]]), this.rightDatePanelView === 'date' ? " ".concat(this.rightDatePanelLabel.separator, " ") : ' ', (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("span", {
|
4214
|
+
}, [this.type === 'yearrange' ? "".concat(Math.floor(this.rightDatePanelLabel.labels[0].label / 10) * 10, " - ").concat(Math.ceil(this.rightDatePanelLabel.labels[0].label / 10) * 10 - 1) : this.rightDatePanelLabel.labels[0].label]), [[external_vue_namespaceObject.vShow, this.rightShowLabelFirst]]), this.rightDatePanelView === 'date' ? " ".concat(this.rightDatePanelLabel.separator, " ") : ' ', (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("span", {
|
4146
4215
|
"class": this.resolveClassName('date-picker-header-label'),
|
4147
4216
|
"onClick": function onClick() {
|
4148
4217
|
return _this.rightDatePanelLabel.labels[1].handler;
|
@@ -4185,23 +4254,34 @@ var dateRangePanelProps = {
|
|
4185
4254
|
switch (_this.rightPickerTable) {
|
4186
4255
|
case 'date-table':
|
4187
4256
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
4188
|
-
"selectionMode": "range",
|
4189
|
-
"tableDate": _this.rightPanelDate,
|
4190
|
-
"disabledDate": _this.disabledDate,
|
4191
|
-
"rangeState": _this.rangeState,
|
4192
4257
|
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4258
|
+
"disabledDate": _this.disabledDate,
|
4193
4259
|
"focusedDate": _this.focusedDate,
|
4260
|
+
"rangeState": _this.rangeState,
|
4261
|
+
"selectionMode": "range",
|
4262
|
+
"tableDate": _this.rightPanelDate,
|
4194
4263
|
"onChangeRange": _this.handleChangeRange,
|
4195
4264
|
"onPick": _this.panelPickerHandlers.right
|
4196
4265
|
}, null);
|
4197
4266
|
case 'month-table':
|
4198
4267
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
4199
|
-
"
|
4200
|
-
"tableDate": _this.rightPanelDate,
|
4268
|
+
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4201
4269
|
"disabledDate": _this.disabledDate,
|
4270
|
+
"focusedDate": _this.focusedDate,
|
4202
4271
|
"rangeState": _this.rangeState,
|
4272
|
+
"selectionMode": "range",
|
4273
|
+
"tableDate": _this.rightPanelDate,
|
4274
|
+
"onChangeRange": _this.handleChangeRange,
|
4275
|
+
"onPick": _this.panelPickerHandlers.right
|
4276
|
+
}, null);
|
4277
|
+
case 'year-table':
|
4278
|
+
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
4203
4279
|
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4280
|
+
"disabledDate": _this.disabledDate,
|
4204
4281
|
"focusedDate": _this.focusedDate,
|
4282
|
+
"rangeState": _this.rangeState,
|
4283
|
+
"selectionMode": "range",
|
4284
|
+
"tableDate": _this.rightPanelDate,
|
4205
4285
|
"onChangeRange": _this.handleChangeRange,
|
4206
4286
|
"onPick": _this.panelPickerHandlers.right
|
4207
4287
|
}, null);
|
@@ -4210,23 +4290,24 @@ var dateRangePanelProps = {
|
|
4210
4290
|
}
|
4211
4291
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), this.isTime ? (0,external_vue_namespaceObject.createVNode)(time_range, {
|
4212
4292
|
"ref": "timePickerRef",
|
4293
|
+
"allowCrossDay": !!this.timePickerOptions.allowCrossDay,
|
4294
|
+
"disabledDate": this.disabledDate,
|
4295
|
+
"format": this.format,
|
4213
4296
|
"selectionMode": this.selectionMode,
|
4214
4297
|
"value": this.dates,
|
4215
|
-
"format": this.format,
|
4216
|
-
"disabledDate": this.disabledDate,
|
4217
4298
|
"onPick": this.handleRangePick,
|
4218
|
-
"onPick-click": this.handlePickClick,
|
4219
4299
|
"onPick-clear": this.handlePickClear,
|
4300
|
+
"onPick-click": this.handlePickClick,
|
4220
4301
|
"onPick-success": this.handlePickSuccess,
|
4221
4302
|
"onPick-toggle-time": this.handleToggleTime
|
4222
4303
|
}, null) : '', this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
|
4223
4304
|
"clearable": this.clearable,
|
4305
|
+
"isTime": this.isTime,
|
4224
4306
|
"showTime": this.showTime,
|
4225
4307
|
"timeDisabled": this.timeDisabled,
|
4226
|
-
"isTime": this.isTime,
|
4227
|
-
"onPick-toggle-time": this.handleToggleTime,
|
4228
4308
|
"onPick-clear": this.handlePickClear,
|
4229
|
-
"onPick-success": this.handlePickSuccess
|
4309
|
+
"onPick-success": this.handlePickSuccess,
|
4310
|
+
"onPick-toggle-time": this.handleToggleTime
|
4230
4311
|
}, this.$slots) : '']), shortcuts]);
|
4231
4312
|
}
|
4232
4313
|
}));
|
@@ -4270,6 +4351,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4270
4351
|
|
4271
4352
|
|
4272
4353
|
|
4354
|
+
// import VueTypes, { toType, toValidableType } from 'vue-types';
|
4273
4355
|
|
4274
4356
|
|
4275
4357
|
|
@@ -4336,6 +4418,10 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4336
4418
|
if (_type.match(/^month/)) {
|
4337
4419
|
type = 'month';
|
4338
4420
|
}
|
4421
|
+
// 增加了 yearrange
|
4422
|
+
if (_type.match(/^year/)) {
|
4423
|
+
type = 'year';
|
4424
|
+
}
|
4339
4425
|
// return ['year', 'month', 'date', 'time'].indexOf(type) > -1 && type;
|
4340
4426
|
state.selectionMode = ['year', 'month', 'date', 'time'].indexOf(type) > -1 && type;
|
4341
4427
|
return state.selectionMode;
|
@@ -4367,7 +4453,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4367
4453
|
}) : formatDate(publicVModelValue.value, props.type, props.multiple, props.format);
|
4368
4454
|
});
|
4369
4455
|
var panel = (0,external_vue_namespaceObject.computed)(function () {
|
4370
|
-
var isRange = props.type === 'daterange' || props.type === 'datetimerange' || props.type === 'monthrange';
|
4456
|
+
var isRange = props.type === 'daterange' || props.type === 'datetimerange' || props.type === 'monthrange' || props.type === 'yearrange';
|
4371
4457
|
return isRange ? 'DateRangePanel' : 'DatePanel';
|
4372
4458
|
});
|
4373
4459
|
var opened = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -4429,9 +4515,16 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4429
4515
|
return props.options;
|
4430
4516
|
});
|
4431
4517
|
// 限制 allow-cross-day 属性只在 time-picker 组件 type 为 timerange 时生效
|
4432
|
-
|
4433
|
-
|
4434
|
-
|
4518
|
+
// const allowCrossDayProp = computed(() => (panel.value === 'RangeTimePickerPanel' ? props.allowCrossDay : false));
|
4519
|
+
// const allowCrossDayProp = computed(() => {
|
4520
|
+
// if (panel.value === 'RangeTimePickerPanel') {
|
4521
|
+
// return props.allowCrossDay;
|
4522
|
+
// }
|
4523
|
+
// if (panel.value === 'DateRangePanel') {
|
4524
|
+
// return (props?.timePickerOptions as any)?.allowCrossDay;
|
4525
|
+
// }
|
4526
|
+
// return false;
|
4527
|
+
// });
|
4435
4528
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
4436
4529
|
var inputFocus = function inputFocus() {
|
4437
4530
|
var _inputRef$value;
|
@@ -4526,7 +4619,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4526
4619
|
if (state.visible) {
|
4527
4620
|
var _pickerPanelRef$value;
|
4528
4621
|
var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
|
4529
|
-
if (e && pickerPanel && pickerPanel.contains(e.target)) {
|
4622
|
+
if (e && pickerPanel !== null && pickerPanel !== void 0 && pickerPanel.contains(e.target)) {
|
4530
4623
|
return;
|
4531
4624
|
}
|
4532
4625
|
state.visible = false;
|
@@ -4549,14 +4642,18 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4549
4642
|
if (visualValue !== null && visualValue !== void 0 && visualValue.value) {
|
4550
4643
|
state.showClose = true;
|
4551
4644
|
}
|
4552
|
-
state.internalValue = state.tmpValue;
|
4645
|
+
// state.internalValue = state.tmpValue;
|
4646
|
+
// console.error('enterenterenterenterenterenterenterenter', e, state.internalValue);
|
4553
4647
|
};
|
4554
4648
|
var handleInputMouseleave = function handleInputMouseleave(_e) {
|
4555
4649
|
// if (e.toElement?.classList.contains('clear-action')) {
|
4556
4650
|
// return;
|
4557
4651
|
// }
|
4558
4652
|
state.showClose = false;
|
4559
|
-
state.internalValue = state.tmpValue;
|
4653
|
+
// state.internalValue = state.tmpValue;
|
4654
|
+
if (state.internalValue !== state.tmpValue) {
|
4655
|
+
handleInputChange(_e);
|
4656
|
+
}
|
4560
4657
|
};
|
4561
4658
|
var emitChange = function emitChange(type) {
|
4562
4659
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
@@ -4578,7 +4675,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4578
4675
|
var newValue = e.target.value;
|
4579
4676
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
4580
4677
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
4581
|
-
var isDisabled = (_props$disabledDate = props.disabledDate) === null || _props$disabledDate === void 0 ? void 0 : _props$disabledDate.call(props, valueToTest);
|
4678
|
+
var isDisabled = !valueToTest ? false : (_props$disabledDate = props.disabledDate) === null || _props$disabledDate === void 0 ? void 0 : _props$disabledDate.call(props, valueToTest);
|
4582
4679
|
var isValidDate = newDate.reduce(function (valid, date) {
|
4583
4680
|
return valid && date instanceof Date;
|
4584
4681
|
}, true);
|
@@ -4596,7 +4693,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4596
4693
|
var newValue = e.target.value;
|
4597
4694
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
4598
4695
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
4599
|
-
var isDisabled = (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
|
4696
|
+
var isDisabled = !valueToTest ? false : (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
|
4600
4697
|
var isValidDate = newDate.reduce(function (valid, date) {
|
4601
4698
|
return valid && date instanceof Date;
|
4602
4699
|
}, true);
|
@@ -4792,7 +4889,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4792
4889
|
fontSizeCls: fontSizeCls,
|
4793
4890
|
longWidthCls: longWidthCls,
|
4794
4891
|
localReadonly: localReadonly,
|
4795
|
-
|
4892
|
+
// allowCrossDayProp,
|
4796
4893
|
ownPickerProps: ownPickerProps,
|
4797
4894
|
teleportTo: teleportTo,
|
4798
4895
|
pickerDropdownRef: pickerDropdownRef,
|
@@ -4831,23 +4928,23 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4831
4928
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
4832
4929
|
"onClick": this.handleIconClick
|
4833
4930
|
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
4834
|
-
"type": "text",
|
4835
|
-
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4836
|
-
"ref": "inputRef",
|
4837
4931
|
"key": this.forceInputRerender,
|
4838
|
-
"
|
4932
|
+
"ref": "inputRef",
|
4933
|
+
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4839
4934
|
"disabled": this.disabled,
|
4840
4935
|
"placeholder": this.placeholder,
|
4936
|
+
"readonly": this.localReadonly,
|
4937
|
+
"type": "text",
|
4841
4938
|
"value": this.displayValue,
|
4842
|
-
"onFocus": this.handleFocus,
|
4843
|
-
"onClick": this.handleFocus,
|
4844
4939
|
"onBlur": this.handleBlur,
|
4845
|
-
"onKeydown": this.handleKeydown,
|
4846
4940
|
"onChange": this.handleInputChange,
|
4847
|
-
"
|
4941
|
+
"onClick": this.handleFocus,
|
4942
|
+
"onFocus": this.handleFocus,
|
4943
|
+
"onInput": this.handleInputInput,
|
4944
|
+
"onKeydown": this.handleKeydown
|
4848
4945
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
4849
|
-
"
|
4850
|
-
"
|
4946
|
+
"class": "clear-action",
|
4947
|
+
"onClick": this.handleClear
|
4851
4948
|
}, null) : '']);
|
4852
4949
|
// const shortcutsSlot = this.hasShortcuts ? { shortcuts: () => this.$slots.shortcuts?.() || null } : {};
|
4853
4950
|
var shortcutsSlot = this.hasShortcuts ? {
|
@@ -4870,8 +4967,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4870
4967
|
"onMouseenter": this.handleInputMouseenter,
|
4871
4968
|
"onMouseleave": this.handleInputMouseleave
|
4872
4969
|
}, [(_this$$slots$trigger = (_this$$slots$trigger2 = (_this$$slots2 = this.$slots).trigger) === null || _this$$slots$trigger2 === void 0 ? void 0 : _this$$slots$trigger2.call(_this$$slots2, this.displayValue)) !== null && _this$$slots$trigger !== void 0 ? _this$$slots$trigger : defaultTrigger]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
4873
|
-
"
|
4874
|
-
"
|
4970
|
+
"disabled": !this.appendToBody,
|
4971
|
+
"to": this.teleportTo
|
4875
4972
|
}, {
|
4876
4973
|
"default": function _default() {
|
4877
4974
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
@@ -4879,48 +4976,48 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4879
4976
|
}, {
|
4880
4977
|
"default": function _default() {
|
4881
4978
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
|
4882
|
-
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
4883
4979
|
"ref": "pickerDropdownRef",
|
4884
|
-
"
|
4885
|
-
"
|
4980
|
+
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
4981
|
+
"appendToBody": _this.appendToBody,
|
4886
4982
|
"extPopoverCls": _this.extPopoverCls,
|
4887
|
-
"
|
4983
|
+
"placement": _this.placement,
|
4984
|
+
"triggerRef": _this.triggerRef
|
4888
4985
|
}, {
|
4889
4986
|
"default": function _default() {
|
4890
4987
|
return [_this.hasHeader ? (0,external_vue_namespaceObject.createVNode)("div", {
|
4891
4988
|
"class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
|
4892
4989
|
}, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots3 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots3)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : null]) : null, _this.panel === 'DateRangePanel' ? (0,external_vue_namespaceObject.createVNode)(date_range, {
|
4893
4990
|
"ref": "pickerPanelRef",
|
4894
|
-
"type": _this.type,
|
4895
|
-
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4896
4991
|
"confirm": _this.isConfirm,
|
4897
|
-
"
|
4898
|
-
"
|
4992
|
+
"disabledDate": _this.disabledDate,
|
4993
|
+
"focusedDate": _this.focusedDate,
|
4899
4994
|
"modelValue": _this.internalValue,
|
4900
4995
|
"selectionMode": _this.selectionMode,
|
4996
|
+
"shortcutClose": _this.shortcutClose,
|
4997
|
+
"shortcutSelectedIndex": _this.shortcutSelectedIndex,
|
4998
|
+
"shortcuts": _this.shortcuts,
|
4999
|
+
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4901
5000
|
"startDate": _this.startDate,
|
4902
|
-
"disabledDate": _this.disabledDate,
|
4903
|
-
"focusedDate": _this.focusedDate,
|
4904
5001
|
"timePickerOptions": _this.timePickerOptions,
|
5002
|
+
"type": _this.type,
|
4905
5003
|
"onPick": _this.onPick,
|
4906
5004
|
"onPick-clear": _this.handleClear,
|
5005
|
+
"onPick-first": _this.onPickFirst,
|
4907
5006
|
"onPick-success": _this.onPickSuccess,
|
4908
|
-
"onSelection-mode-change": _this.onSelectionModeChange
|
4909
|
-
"shortcutSelectedIndex": _this.shortcutSelectedIndex,
|
4910
|
-
"onPick-first": _this.onPickFirst
|
5007
|
+
"onSelection-mode-change": _this.onSelectionModeChange
|
4911
5008
|
}, slots) : (0,external_vue_namespaceObject.createVNode)(date, {
|
4912
5009
|
"ref": "pickerPanelRef",
|
4913
5010
|
"clearable": _this.clearable,
|
4914
|
-
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4915
5011
|
"confirm": _this.isConfirm,
|
4916
|
-
"
|
5012
|
+
"disabledDate": _this.disabledDate,
|
5013
|
+
"focusedDate": _this.focusedDate,
|
5014
|
+
"modelValue": _this.internalValue,
|
4917
5015
|
"multiple": _this.multiple,
|
4918
|
-
"shortcutClose": _this.shortcutClose,
|
4919
5016
|
"selectionMode": _this.selectionMode,
|
4920
|
-
"
|
5017
|
+
"shortcutClose": _this.shortcutClose,
|
5018
|
+
"shortcuts": _this.shortcuts,
|
5019
|
+
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4921
5020
|
"startDate": _this.startDate,
|
4922
|
-
"disabledDate": _this.disabledDate,
|
4923
|
-
"focusedDate": _this.focusedDate,
|
4924
5021
|
"timePickerOptions": _this.timePickerOptions,
|
4925
5022
|
"onPick": _this.onPick,
|
4926
5023
|
"onPick-clear": _this.handleClear,
|
@@ -4977,6 +5074,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4977
5074
|
|
4978
5075
|
|
4979
5076
|
|
5077
|
+
// import VueTypes, { toType, toValidableType } from 'vue-types';
|
4980
5078
|
|
4981
5079
|
|
4982
5080
|
|
@@ -5134,10 +5232,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5134
5232
|
return panel.value === 'RangeTimePickerPanel' ? props.allowCrossDay : false;
|
5135
5233
|
});
|
5136
5234
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
5137
|
-
|
5138
|
-
|
5139
|
-
|
5140
|
-
};
|
5235
|
+
// const inputFocus = () => {
|
5236
|
+
// inputRef?.value?.focus();
|
5237
|
+
// };
|
5141
5238
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
5142
5239
|
proxy = _getCurrentInstance.proxy;
|
5143
5240
|
var pickerDropdownRef = (0,external_vue_namespaceObject.ref)(null);
|
@@ -5205,15 +5302,28 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5205
5302
|
state.visible = props.open;
|
5206
5303
|
}
|
5207
5304
|
// this.$on('focus-input', () => this.focus())
|
5208
|
-
|
5209
|
-
|
5210
|
-
|
5211
|
-
|
5212
|
-
|
5213
|
-
|
5305
|
+
// provide(datePickerKey, {
|
5306
|
+
// props,
|
5307
|
+
// focus: () => inputFocus(),
|
5308
|
+
// });
|
5309
|
+
});
|
5310
|
+
(0,external_vue_namespaceObject.provide)(timePickerKey, {
|
5311
|
+
panelDate: state.focusedDate,
|
5312
|
+
parentName: proxy.$options.name
|
5214
5313
|
});
|
5215
5314
|
var pickerPanelRef = (0,external_vue_namespaceObject.ref)(null);
|
5216
5315
|
var handleClose = function handleClose(e) {
|
5316
|
+
if (props.appendToBody) {
|
5317
|
+
var _pickerPanelRef$value;
|
5318
|
+
state.disableCloseUnderTransfer = true;
|
5319
|
+
var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
|
5320
|
+
if (e && pickerPanel !== null && pickerPanel !== void 0 && pickerPanel.contains(e.target)) {
|
5321
|
+
return;
|
5322
|
+
}
|
5323
|
+
state.visible = false;
|
5324
|
+
e === null || e === void 0 || e.preventDefault();
|
5325
|
+
e === null || e === void 0 || e.stopPropagation();
|
5326
|
+
}
|
5217
5327
|
if (state.disableCloseUnderTransfer) {
|
5218
5328
|
state.disableCloseUnderTransfer = false;
|
5219
5329
|
return false;
|
@@ -5224,9 +5334,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5224
5334
|
return;
|
5225
5335
|
}
|
5226
5336
|
if (state.visible) {
|
5227
|
-
var _pickerPanelRef$
|
5228
|
-
var
|
5229
|
-
if (e &&
|
5337
|
+
var _pickerPanelRef$value2;
|
5338
|
+
var _pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value2 = pickerPanelRef.value) === null || _pickerPanelRef$value2 === void 0 ? void 0 : _pickerPanelRef$value2.$el;
|
5339
|
+
if (e && _pickerPanel !== null && _pickerPanel !== void 0 && _pickerPanel.contains(e.target)) {
|
5230
5340
|
return;
|
5231
5341
|
}
|
5232
5342
|
state.visible = false;
|
@@ -5238,9 +5348,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5238
5348
|
state.disableClickOutSide = false;
|
5239
5349
|
};
|
5240
5350
|
var handleIconClick = function handleIconClick() {
|
5241
|
-
var _inputRef$
|
5242
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5243
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5351
|
+
var _inputRef$value, _inputRef$value2;
|
5352
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
5353
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.click();
|
5244
5354
|
};
|
5245
5355
|
var handleInputMouseenter = function handleInputMouseenter() {
|
5246
5356
|
if (props.readonly || props.disabled) {
|
@@ -5266,15 +5376,15 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5266
5376
|
emit('change', publicStringValue.value, type);
|
5267
5377
|
// this.dispatch('bk-form-item', 'form-change');
|
5268
5378
|
if (props.type.indexOf('time') < 0) {
|
5269
|
-
var _inputRef$
|
5270
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5379
|
+
var _inputRef$value3;
|
5380
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 || _inputRef$value3.blur();
|
5271
5381
|
}
|
5272
5382
|
});
|
5273
5383
|
};
|
5274
5384
|
var handleInputChange = function handleInputChange(e) {
|
5275
5385
|
var _props$disabledDate;
|
5276
5386
|
var isArrayValue = props.type.includes('range') || props.multiple;
|
5277
|
-
|
5387
|
+
// const oldValue = visualValue.value;
|
5278
5388
|
var newValue = e.target.value;
|
5279
5389
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
5280
5390
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
@@ -5282,7 +5392,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5282
5392
|
var isValidDate = newDate.reduce(function (valid, date) {
|
5283
5393
|
return valid && date instanceof Date;
|
5284
5394
|
}, true);
|
5285
|
-
|
5395
|
+
// 这里不需要进行新旧数据对比是因为input输入的时候visualValue的computed依赖始终是最新的
|
5396
|
+
// if (newValue !== oldValue && !isDisabled && isValidDate) {
|
5397
|
+
if (!isDisabled && isValidDate) {
|
5286
5398
|
emitChange(props.type);
|
5287
5399
|
state.internalValue = newDate;
|
5288
5400
|
} else {
|
@@ -5319,11 +5431,11 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5319
5431
|
}
|
5320
5432
|
};
|
5321
5433
|
var reset = function reset() {
|
5322
|
-
var _pickerPanelRef$
|
5323
|
-
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$
|
5434
|
+
var _pickerPanelRef$value3, _pickerPanelRef$value4;
|
5435
|
+
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value3 = pickerPanelRef.value) === null || _pickerPanelRef$value3 === void 0 || (_pickerPanelRef$value4 = _pickerPanelRef$value3.reset) === null || _pickerPanelRef$value4 === void 0 || _pickerPanelRef$value4.call(_pickerPanelRef$value3);
|
5324
5436
|
};
|
5325
5437
|
var handleBlur = function handleBlur(e) {
|
5326
|
-
var _pickerPanelRef$
|
5438
|
+
var _pickerPanelRef$value5, _formItem$validate2;
|
5327
5439
|
if (state.internalFocus) {
|
5328
5440
|
state.internalFocus = false;
|
5329
5441
|
return;
|
@@ -5336,7 +5448,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5336
5448
|
onSelectionModeChange(props.type);
|
5337
5449
|
state.internalValue = state.internalValue.slice();
|
5338
5450
|
reset();
|
5339
|
-
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$
|
5451
|
+
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value5 = pickerPanelRef.value) === null || _pickerPanelRef$value5 === void 0 || _pickerPanelRef$value5.onToggleVisibility(false);
|
5340
5452
|
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
|
5341
5453
|
};
|
5342
5454
|
var handleKeydown = function handleKeydown(e) {
|
@@ -5417,14 +5529,14 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5417
5529
|
}
|
5418
5530
|
};
|
5419
5531
|
var onPickSuccess = function onPickSuccess() {
|
5420
|
-
var _inputRef$
|
5532
|
+
var _inputRef$value4;
|
5421
5533
|
state.visible = false;
|
5422
5534
|
// 点击 shortcuts 会关闭弹层时,如果不在 nextTick 里触发 pick-success,那么会导致触发 pick-success 的时候,
|
5423
5535
|
// v-model 的值还是之前的值
|
5424
5536
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
5425
5537
|
emit('pick-success');
|
5426
5538
|
});
|
5427
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5539
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 || _inputRef$value4.blur();
|
5428
5540
|
reset();
|
5429
5541
|
};
|
5430
5542
|
var onPick = function onPick(_dates) {
|
@@ -5528,23 +5640,23 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5528
5640
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
5529
5641
|
"onClick": this.handleIconClick
|
5530
5642
|
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
5531
|
-
"type": "text",
|
5532
|
-
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5533
|
-
"ref": "inputRef",
|
5534
5643
|
"key": this.forceInputRerender,
|
5535
|
-
"
|
5644
|
+
"ref": "inputRef",
|
5645
|
+
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5536
5646
|
"disabled": this.disabled,
|
5537
5647
|
"placeholder": this.placeholder,
|
5648
|
+
"readonly": this.localReadonly,
|
5649
|
+
"type": "text",
|
5538
5650
|
"value": this.displayValue,
|
5539
|
-
"onFocus": this.handleFocus,
|
5540
|
-
"onClick": this.handleFocus,
|
5541
5651
|
"onBlur": this.handleBlur,
|
5542
|
-
"onKeydown": this.handleKeydown,
|
5543
5652
|
"onChange": this.handleInputChange,
|
5544
|
-
"
|
5653
|
+
"onClick": this.handleFocus,
|
5654
|
+
"onFocus": this.handleFocus,
|
5655
|
+
"onInput": this.handleInputInput,
|
5656
|
+
"onKeydown": this.handleKeydown
|
5545
5657
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
5546
|
-
"
|
5547
|
-
"
|
5658
|
+
"class": "clear-action",
|
5659
|
+
"onClick": this.handleClear
|
5548
5660
|
}, null) : '']);
|
5549
5661
|
var shortcutsSlot = this.hasShortcuts ? {
|
5550
5662
|
shortcuts: function shortcuts() {
|
@@ -5560,8 +5672,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5560
5672
|
"onMouseenter": this.handleInputMouseenter,
|
5561
5673
|
"onMouseleave": this.handleInputMouseleave
|
5562
5674
|
}, [(_this$$slots$trigger = (_this$$slots$trigger2 = (_this$$slots2 = this.$slots).trigger) === null || _this$$slots$trigger2 === void 0 ? void 0 : _this$$slots$trigger2.call(_this$$slots2, this.displayValue)) !== null && _this$$slots$trigger !== void 0 ? _this$$slots$trigger : defaultTrigger]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
5563
|
-
"
|
5564
|
-
"
|
5675
|
+
"disabled": !this.appendToBody,
|
5676
|
+
"to": this.teleportTo
|
5565
5677
|
}, {
|
5566
5678
|
"default": function _default() {
|
5567
5679
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
@@ -5569,12 +5681,12 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5569
5681
|
}, {
|
5570
5682
|
"default": function _default() {
|
5571
5683
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
|
5572
|
-
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
5573
5684
|
"ref": "pickerDropdownRef",
|
5574
|
-
"
|
5575
|
-
"placement": _this.placement,
|
5576
|
-
"extPopoverCls": _this.extPopoverCls,
|
5685
|
+
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
5577
5686
|
"appendToBody": _this.appendToBody,
|
5687
|
+
"extPopoverCls": _this.extPopoverCls,
|
5688
|
+
"placement": _this.placement,
|
5689
|
+
"triggerRef": _this.triggerRef,
|
5578
5690
|
"onClick": _this.handleTransferClick
|
5579
5691
|
}, {
|
5580
5692
|
"default": function _default() {
|
@@ -5582,38 +5694,38 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5582
5694
|
"class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
|
5583
5695
|
}, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots3 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots3)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : null]) : null, _this.panel === 'RangeTimePickerPanel' ? (0,external_vue_namespaceObject.createVNode)(time_range, {
|
5584
5696
|
"ref": "pickerPanelRef",
|
5697
|
+
"allowCrossDay": _this.allowCrossDayProp,
|
5585
5698
|
"clearable": _this.clearable,
|
5586
|
-
"
|
5699
|
+
"disabledDate": _this.disabledDate,
|
5700
|
+
"disabledHours": _this.ownPickerProps.disabledHours,
|
5701
|
+
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5702
|
+
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5703
|
+
"format": _this.format,
|
5587
5704
|
"multiple": _this.multiple,
|
5588
5705
|
"shortcutClose": _this.shortcutClose,
|
5589
|
-
"
|
5706
|
+
"shortcuts": _this.shortcuts,
|
5590
5707
|
"startDate": _this.startDate,
|
5591
|
-
"
|
5708
|
+
"value": _this.internalValue,
|
5592
5709
|
"onPick": _this.onPick,
|
5593
5710
|
"onPick-clear": _this.handleClear,
|
5594
|
-
"onPick-success": _this.onPickSuccess
|
5595
|
-
"disabledHours": _this.ownPickerProps.disabledHours,
|
5596
|
-
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5597
|
-
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5598
|
-
"allowCrossDay": _this.allowCrossDayProp,
|
5599
|
-
"format": _this.format
|
5711
|
+
"onPick-success": _this.onPickSuccess
|
5600
5712
|
}, shortcutsSlot) : (0,external_vue_namespaceObject.createVNode)(time, {
|
5601
5713
|
"ref": "pickerPanelRef",
|
5602
5714
|
"clearable": _this.clearable,
|
5603
5715
|
"confirm": _this.isConfirm,
|
5604
|
-
"
|
5716
|
+
"disabledDate": _this.disabledDate,
|
5717
|
+
"disabledHours": _this.ownPickerProps.disabledHours,
|
5718
|
+
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5719
|
+
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5720
|
+
"format": _this.format,
|
5605
5721
|
"multiple": _this.multiple,
|
5606
5722
|
"shortcutClose": _this.shortcutClose,
|
5607
|
-
"
|
5723
|
+
"shortcuts": _this.shortcuts,
|
5608
5724
|
"startDate": _this.startDate,
|
5609
|
-
"
|
5725
|
+
"value": _this.internalValue,
|
5610
5726
|
"onPick": _this.onPick,
|
5611
5727
|
"onPick-clear": _this.handleClear,
|
5612
|
-
"onPick-success": _this.onPickSuccess
|
5613
|
-
"disabledHours": _this.ownPickerProps.disabledHours,
|
5614
|
-
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5615
|
-
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5616
|
-
"format": _this.format
|
5728
|
+
"onPick-success": _this.onPickSuccess
|
5617
5729
|
}, shortcutsSlot), _this.hasFooter ? (0,external_vue_namespaceObject.createVNode)("div", {
|
5618
5730
|
"class": [_this.resolveClassName('date-picker-footer-wrapper'), _this.footerSlotCls]
|
5619
5731
|
}, [(_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : null]) : null];
|