bkui-vue 2.0.1-beta.50 → 2.0.1-beta.50.select.1
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 +0 -15
- package/dist/index.cjs.js +162 -162
- package/dist/index.esm.js +29944 -31126
- package/dist/index.umd.js +162 -162
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -262
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.d.ts +12 -5
- package/lib/alert/alert.variable.css +1 -262
- package/lib/alert/index.d.ts +26 -11
- package/lib/alert/index.js +1 -0
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +4 -395
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -262
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -397
- package/lib/button/button.css +143 -273
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +1 -262
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +7 -6
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -396
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +26 -156
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +27 -418
- package/lib/cascader/index.js +37 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -139
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/checkbox.variable.css +1 -262
- package/lib/checkbox/index.d.ts +22 -11
- package/lib/checkbox/index.js +6 -14
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -262
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +1 -142
- package/lib/collapse/collapse.d.ts +0 -11
- package/lib/collapse/collapse.less +1 -15
- package/lib/collapse/collapse.variable.css +1 -273
- package/lib/collapse/index.d.ts +0 -23
- package/lib/collapse/index.js +3 -11
- package/lib/collapse/props.d.ts +0 -8
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -262
- package/lib/color-picker/color-picker.css +3 -133
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +4 -265
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +31 -32
- package/lib/components.js +30 -31
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -262
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -392
- package/lib/container/index.js +7 -6
- 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 +17 -147
- package/lib/date-picker/date-picker.d.ts +10 -0
- package/lib/date-picker/date-picker.variable.css +1 -262
- package/lib/date-picker/index.d.ts +22 -0
- package/lib/date-picker/index.js +223 -320
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +68 -6
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +10 -1
- package/lib/date-picker/panel/time.d.ts +10 -1
- package/lib/date-picker/props.d.ts +5 -1
- package/lib/date-picker/time-picker.d.ts +9 -0
- package/lib/date-picker/utils.d.ts +1 -5
- package/lib/dialog/dialog.css +88 -269
- package/lib/dialog/dialog.d.ts +146 -68
- package/lib/dialog/dialog.less +76 -9
- package/lib/dialog/dialog.variable.css +89 -531
- package/lib/dialog/index.d.ts +340 -159
- package/lib/dialog/index.js +221 -197
- package/lib/dialog/props.d.ts +52 -22
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +168 -170
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +4 -2
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +1 -262
- 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 +0 -130
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +1 -392
- package/lib/dropdown/index.d.ts +13 -13
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +1 -262
- 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 +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +16 -0
- package/lib/form/form.css +0 -130
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +1 -262
- package/lib/form/index.d.ts +11 -0
- package/lib/form/index.js +16 -14
- 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 +0 -130
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +1 -262
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -392
- package/lib/image/index.js +21 -20
- package/lib/index.d.ts +3 -9
- package/lib/index.js +29 -5
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +173 -326
- package/lib/info-box/info-box.css +7 -193
- package/lib/info-box/info-box.d.ts +23 -25
- package/lib/info-box/info-box.less +14 -76
- package/lib/info-box/info-box.variable.css +8 -325
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -26
- package/lib/input/input.css +72 -202
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +73 -464
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.css +16 -146
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +1 -262
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +17 -408
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu.css +18 -148
- package/lib/menu/menu.variable.css +19 -410
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -262
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.css +21 -151
- package/lib/message/message.variable.css +1 -262
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +343 -68
- package/lib/modal/index.js +701 -237
- package/lib/modal/modal.css +32 -261
- package/lib/modal/modal.d.ts +131 -26
- package/lib/modal/modal.less +29 -83
- package/lib/modal/modal.variable.css +33 -523
- package/lib/modal/props.mixin.d.ts +51 -10
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +1 -262
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -262
- package/lib/overflow-title/components/overflow-title.d.ts +16 -9
- package/lib/overflow-title/index.d.ts +34 -19
- package/lib/overflow-title/index.js +64 -107
- package/lib/overflow-title/props.d.ts +21 -18
- package/lib/pagination/index.d.ts +19 -0
- package/lib/pagination/index.js +23 -44
- package/lib/pagination/pagination.css +9 -139
- package/lib/pagination/pagination.d.ts +13 -0
- package/lib/pagination/pagination.less +13 -14
- package/lib/pagination/pagination.variable.css +9 -270
- 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 -18
- package/lib/pop-confirm/index.d.ts +43 -11
- package/lib/pop-confirm/index.js +28 -27
- package/lib/pop-confirm/pop-confirm.css +1 -133
- package/lib/pop-confirm/pop-confirm.d.ts +19 -5
- package/lib/pop-confirm/pop-confirm.less +1 -3
- package/lib/pop-confirm/pop-confirm.variable.css +2 -265
- package/lib/pop-confirm/props.d.ts +11 -5
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +20 -18
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.variable.css +1 -262
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +1 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -262
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +11 -10
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +5 -396
- package/lib/radio/index.d.ts +0 -29
- package/lib/radio/index.js +26 -55
- package/lib/radio/radio-button.d.ts +0 -10
- package/lib/radio/radio-group.d.ts +0 -10
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.d.ts +0 -10
- package/lib/radio/radio.variable.css +1 -262
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +0 -157
- package/lib/rate/rate.less +0 -33
- package/lib/rate/rate.variable.css +1 -289
- package/lib/rate/star.css +27 -0
- package/lib/rate/star.less +34 -0
- package/lib/{styles/themes/themes.variable.css → rate/star.variable.css} +28 -2
- package/lib/resize-layout/index.d.ts +11 -34
- package/lib/resize-layout/index.js +14 -29
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.d.ts +5 -16
- package/lib/resize-layout/resize-layout.variable.css +1 -262
- package/lib/search-select/index.d.ts +72 -40
- package/lib/search-select/index.js +130 -148
- package/lib/search-select/input.d.ts +4 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +33 -163
- package/lib/search-select/search-select.d.ts +39 -15
- package/lib/search-select/search-select.variable.css +34 -425
- package/lib/search-select/selected.d.ts +10 -12
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +93 -101
- package/lib/select/index.js +192 -235
- package/lib/select/option.d.ts +6 -5
- package/lib/select/select.css +45 -176
- package/lib/select/select.d.ts +36 -38
- package/lib/select/select.less +6 -8
- package/lib/select/select.variable.css +46 -438
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +11 -10
- package/lib/shared/index.d.ts +2 -2
- package/lib/shared/index.js +89 -108
- package/lib/shared/mask.d.ts +11 -0
- 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 +217 -75
- package/lib/sideslider/index.js +42 -68
- package/lib/sideslider/sideslider.css +92 -152
- package/lib/sideslider/sideslider.d.ts +103 -35
- package/lib/sideslider/sideslider.less +112 -31
- package/lib/sideslider/sideslider.variable.css +92 -283
- package/lib/slider/index.d.ts +0 -19
- package/lib/slider/index.js +26 -64
- package/lib/slider/slider.css +4 -148
- package/lib/slider/slider.d.ts +0 -9
- package/lib/slider/slider.less +0 -15
- package/lib/slider/slider.variable.css +1 -276
- package/lib/steps/index.d.ts +29 -14
- package/lib/steps/index.js +4 -3
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.d.ts +18 -8
- package/lib/steps/steps.variable.css +1 -262
- package/lib/styles/index.d.ts +1 -1
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -262
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -262
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -262
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -262
- package/lib/styles/themes/themes.less +129 -299
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -262
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +18 -409
- package/lib/tab/index.d.ts +114 -22
- package/lib/tab/index.js +29 -16
- package/lib/tab/props.d.ts +50 -15
- package/lib/tab/tab-nav.d.ts +55 -12
- package/lib/tab/tab.css +17 -147
- package/lib/tab/tab.d.ts +54 -10
- package/lib/tab/tab.variable.css +1 -262
- package/lib/table/components/table-cell.d.ts +2 -25
- package/lib/table/components/table-column.d.ts +239 -20
- package/lib/table/const.d.ts +13 -25
- package/lib/table/events.d.ts +112 -16
- package/lib/table/index.d.ts +738 -135
- package/lib/table/index.js +6037 -23581
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +4 -138
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +3 -6
- package/lib/table/plugins/head-filter.variable.css +5 -270
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -262
- package/lib/table/plugins/settings.css +0 -131
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +1 -263
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +21 -0
- package/lib/table/props.d.ts +64 -131
- package/lib/table/table.css +302 -562
- package/lib/table/table.d.ts +185 -62
- package/lib/table/table.less +148 -187
- package/lib/table/table.variable.css +303 -824
- package/lib/table/use-attributes.d.ts +61 -0
- package/lib/table/use-column.d.ts +276 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +21 -47
- package/lib/table-column/index.d.ts +579 -30
- package/lib/table-column/index.js +320 -17373
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +3 -2
- package/lib/tag/tag.css +6 -136
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -263
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.css +18 -148
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-input.variable.css +1 -262
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/time-picker/index.d.ts +19 -0
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -262
- package/lib/timeline/index.js +2 -2
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -262
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +28 -158
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +10 -271
- package/lib/tree/constant.d.ts +20 -24
- package/lib/tree/index.d.ts +24 -82
- package/lib/tree/index.js +90 -17657
- package/lib/tree/props.d.ts +10 -35
- package/lib/tree/tree.css +18 -248
- package/lib/tree/tree.d.ts +8 -34
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +19 -510
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +9 -10
- package/lib/tree/use-node-async.d.ts +1 -2
- package/lib/tree/use-node-attribute.d.ts +30 -47
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +5 -8
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +0 -23
- package/lib/upload/index.js +41 -71
- package/lib/upload/props.d.ts +1 -6
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +0 -11
- package/lib/upload/upload.type.d.ts +6 -12
- package/lib/upload/upload.variable.css +28 -419
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +46 -39
- package/lib/virtual-render/index.js +117 -17585
- package/lib/virtual-render/props.d.ts +9 -18
- package/lib/virtual-render/use-fix-top.d.ts +8 -3
- package/lib/virtual-render/v-virtual-render.d.ts +2 -7
- package/lib/virtual-render/virtual-render.css +9 -239
- package/lib/virtual-render/virtual-render.d.ts +22 -19
- package/lib/virtual-render/virtual-render.less +10 -1
- package/lib/virtual-render/virtual-render.variable.css +10 -501
- package/lib/volar.components.d.ts +0 -2
- package/package.json +55 -17
- package/lib/info-box/render-component.d.ts +0 -4
- package/lib/modal/mask.d.ts +0 -6
- package/lib/scrollbar/css/scrollbar.css +0 -239
- package/lib/scrollbar/css/scrollbar.less +0 -139
- package/lib/scrollbar/css/scrollbar.variable.css +0 -499
- package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
- package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
- package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
- package/lib/scrollbar/handlers/touch.d.ts +0 -4
- package/lib/scrollbar/helper/class-names.d.ts +0 -21
- package/lib/scrollbar/helper/css.d.ts +0 -3
- package/lib/scrollbar/helper/dom.d.ts +0 -4
- package/lib/scrollbar/helper/event-manager.d.ts +0 -20
- package/lib/scrollbar/helper/util.d.ts +0 -11
- package/lib/scrollbar/index.d.ts +0 -135
- package/lib/scrollbar/index.js +0 -1657
- package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
- package/lib/scrollbar/update-geometry.d.ts +0 -8
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.css +0 -130
- package/lib/table/components/ghost-body.d.ts +0 -2
- package/lib/table/hooks/use-cell.d.ts +0 -20
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-column-template.d.ts +0 -5
- package/lib/table/hooks/use-columns.d.ts +0 -69
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -16
- package/lib/table/hooks/use-layout.d.ts +0 -24
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -23
- package/lib/table/hooks/use-rows.d.ts +0 -27
- package/lib/table/hooks/use-settings.d.ts +0 -130
- package/lib/table/hooks/use-shift-key.d.ts +0 -15
- package/lib/tree/use-intersection-observer.d.ts +0 -27
- package/lib/virtual-render/use-scrollbar.d.ts +0 -10
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/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, ["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 });
|
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, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["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, ["
|
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 });
|
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
|
-
"style": this.styles,
|
435
434
|
"class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
|
435
|
+
"style": this.styles,
|
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",
|
452
451
|
"x": "0px",
|
453
|
-
"y": "0px"
|
452
|
+
"y": "0px",
|
453
|
+
"viewBox": "0 0 1024 1024"
|
454
454
|
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
455
455
|
"id": "date"
|
456
456
|
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
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
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
460
|
-
"width": "192",
|
461
|
-
"height": "64",
|
462
457
|
"fill": "#c4c6cc",
|
463
|
-
"
|
464
|
-
"y": "128"
|
458
|
+
"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"
|
465
459
|
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
466
|
-
"
|
467
|
-
"
|
460
|
+
"x": "416",
|
461
|
+
"y": "128",
|
468
462
|
"fill": "#c4c6cc",
|
469
|
-
"
|
470
|
-
"
|
463
|
+
"width": "192",
|
464
|
+
"height": "64"
|
471
465
|
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
472
|
-
"
|
473
|
-
"
|
466
|
+
"x": "288",
|
467
|
+
"y": "96",
|
474
468
|
"fill": "#c4c6cc",
|
469
|
+
"width": "64",
|
470
|
+
"height": "128"
|
471
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
475
472
|
"x": "672",
|
476
|
-
"y": "96"
|
473
|
+
"y": "96",
|
474
|
+
"fill": "#c4c6cc",
|
475
|
+
"width": "64",
|
476
|
+
"height": "128"
|
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",
|
484
483
|
"x": "0px",
|
485
|
-
"y": "0px"
|
484
|
+
"y": "0px",
|
485
|
+
"viewBox": "0 0 1024 1024"
|
486
486
|
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
487
487
|
"id": "time"
|
488
488
|
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
489
|
-
"
|
490
|
-
"
|
489
|
+
"fill": "#c4c6cc",
|
490
|
+
"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"
|
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
|
-
"ref": "elRef",
|
607
606
|
"class": this.resolveClassName('picker-confirm'),
|
607
|
+
"ref": "elRef",
|
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",
|
613
615
|
"class": this.resolveClassName('picker-confirm-time'),
|
614
616
|
"disabled": this.timeDisabled,
|
615
|
-
"theme": "primary",
|
616
|
-
"text": true,
|
617
617
|
"onClick": this.handleToggleTime
|
618
618
|
}, {
|
619
619
|
"default": function _default() {
|
@@ -625,13 +625,12 @@ 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
|
-
"class": "confirm",
|
628
|
+
}, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", {
|
630
629
|
"href": "javascript: void(0);",
|
631
|
-
"
|
632
|
-
|
633
|
-
onKeydown_enter: this.handleSuccess
|
634
|
-
}
|
630
|
+
"class": "confirm",
|
631
|
+
"onClick": this.handleSuccess,
|
632
|
+
"onKeydown_enter": this.handleSuccess
|
633
|
+
}, [this.labels.ok])])]);
|
635
634
|
}
|
636
635
|
}));
|
637
636
|
;// CONCATENATED MODULE: external "js-calendar"
|
@@ -668,6 +667,7 @@ const external_date_fns_namespaceObject = external_date_fns_x({ ["format"]: () =
|
|
668
667
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
669
668
|
* IN THE SOFTWARE.
|
670
669
|
*/
|
670
|
+
/* eslint-disable no-param-reassign, no-multi-assign */
|
671
671
|
/**
|
672
672
|
* @file fecha
|
673
673
|
* https://github.com/taylorhakes/fecha
|
@@ -677,6 +677,7 @@ 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
|
680
681
|
var word = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
|
681
682
|
var noop = function noop() {};
|
682
683
|
function shorten(arr, sLen) {
|
@@ -1098,10 +1099,6 @@ var typeValueResolver = {
|
|
1098
1099
|
return src_fecha.parse(text, format || 'yyyy-MM-dd');
|
1099
1100
|
}
|
1100
1101
|
},
|
1101
|
-
yearrange: {
|
1102
|
-
formatter: rangeFormatter,
|
1103
|
-
parser: rangeParser
|
1104
|
-
},
|
1105
1102
|
multiple: {
|
1106
1103
|
formatter: function formatter(value, format) {
|
1107
1104
|
return value.filter(Boolean).map(function (date) {
|
@@ -1196,7 +1193,6 @@ var DEFAULT_FORMATS = {
|
|
1196
1193
|
month: 'yyyy-MM',
|
1197
1194
|
monthrange: 'yyyy-MM',
|
1198
1195
|
year: 'yyyy',
|
1199
|
-
yearrange: 'yyyy',
|
1200
1196
|
datetime: 'yyyy-MM-dd HH:mm:ss',
|
1201
1197
|
time: 'HH:mm:ss',
|
1202
1198
|
timerange: 'HH:mm:ss',
|
@@ -1275,9 +1271,7 @@ var timePickerKey = Symbol('time-picker');
|
|
1275
1271
|
// }
|
1276
1272
|
function iconBtnCls(direction) {
|
1277
1273
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
1278
|
-
|
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))];
|
1274
|
+
return [(0,shared_namespaceObject.resolveClassName)('picker-panel-icon-btn'), (0,shared_namespaceObject.resolveClassName)("date-picker-".concat(direction, "-btn")), (0,shared_namespaceObject.resolveClassName)("date-picker-".concat(direction, "-btn-arrow").concat(type))];
|
1281
1275
|
}
|
1282
1276
|
var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
|
1283
1277
|
return new Date(year, month + 1, 0).getDate();
|
@@ -1369,15 +1363,7 @@ var isInRange = function isInRange(time, a, b) {
|
|
1369
1363
|
if (!a || !b) {
|
1370
1364
|
return false;
|
1371
1365
|
}
|
1372
|
-
var _sort = [a, b].sort(
|
1373
|
-
if (x - y > 0) {
|
1374
|
-
return 1;
|
1375
|
-
}
|
1376
|
-
if (x - y < 0) {
|
1377
|
-
return -1;
|
1378
|
-
}
|
1379
|
-
return 0;
|
1380
|
-
}),
|
1366
|
+
var _sort = [a, b].sort(),
|
1381
1367
|
_sort2 = _slicedToArray(_sort, 2),
|
1382
1368
|
start = _sort2[0],
|
1383
1369
|
end = _sort2[1];
|
@@ -1684,8 +1670,6 @@ var monthTableProps = {
|
|
1684
1670
|
maxDay = _dates$value$map2[1];
|
1685
1671
|
var rangeStart = props.rangeState.from && clearHours(props.rangeState.from);
|
1686
1672
|
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));
|
1689
1673
|
for (var i = 0; i < 12; i++) {
|
1690
1674
|
var cell = JSON.parse(JSON.stringify(cellTmpl));
|
1691
1675
|
cell.date = new Date(tableYear, i, 1);
|
@@ -1698,7 +1682,6 @@ var monthTableProps = {
|
|
1698
1682
|
cell.start = isRange && time === minDay;
|
1699
1683
|
cell.end = isRange && time === maxDay;
|
1700
1684
|
cell.focused = day === focusedDate;
|
1701
|
-
cell.isCurrentMonth = day === currentMonth;
|
1702
1685
|
cells.push(cell);
|
1703
1686
|
}
|
1704
1687
|
return cells;
|
@@ -1709,7 +1692,7 @@ var monthTableProps = {
|
|
1709
1692
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1710
1693
|
resolveClassName = _usePrefix.resolveClassName;
|
1711
1694
|
var getCellCls = function getCellCls(cell) {
|
1712
|
-
return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty(
|
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'),
|
1713
1696
|
// {
|
1714
1697
|
// [resolveClassName('date-picker-cells-cell-today')]: cell.type === 'today',
|
1715
1698
|
// [resolveClassName('date-picker-cells-cell-range')]: cell.range && !cell.start && !cell.end,
|
@@ -1762,7 +1745,6 @@ var monthTableProps = {
|
|
1762
1745
|
;// CONCATENATED MODULE: ../../packages/date-picker/src/base/year-table.tsx
|
1763
1746
|
|
1764
1747
|
|
1765
|
-
|
1766
1748
|
/*
|
1767
1749
|
* Tencent is pleased to support the open source community by making
|
1768
1750
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1835,7 +1817,7 @@ var yearTableProps = {
|
|
1835
1817
|
/* harmony default export */ const year_table = ((0,external_vue_namespaceObject.defineComponent)({
|
1836
1818
|
name: 'YearTable',
|
1837
1819
|
props: yearTableProps,
|
1838
|
-
emits: ['pick', 'pick-click', '
|
1820
|
+
emits: ['pick', 'pick-click', 'change-range'],
|
1839
1821
|
setup: function setup(props, _ref) {
|
1840
1822
|
var emit = _ref.emit;
|
1841
1823
|
var dates = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -1845,7 +1827,6 @@ var yearTableProps = {
|
|
1845
1827
|
var rangeSelecting = selectionMode === 'range' && rangeState.selecting;
|
1846
1828
|
return rangeSelecting ? [rangeState.from] : modelValue;
|
1847
1829
|
});
|
1848
|
-
var isRange = props.selectionMode === 'range';
|
1849
1830
|
var startYear = (0,external_vue_namespaceObject.computed)(function () {
|
1850
1831
|
return Math.floor(props.tableDate.getFullYear() / 10) * 10;
|
1851
1832
|
});
|
@@ -1860,25 +1841,13 @@ var yearTableProps = {
|
|
1860
1841
|
return clearHours(new Date(date.getFullYear(), 0, 1));
|
1861
1842
|
});
|
1862
1843
|
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);
|
1870
1844
|
for (var i = 0; i < 10; i++) {
|
1871
1845
|
var cell = JSON.parse(JSON.stringify(cellTmpl));
|
1872
1846
|
cell.date = new Date(startYear.value + i, 0, 1);
|
1873
|
-
cell.disabled = typeof props.disabledDate === 'function' && props.disabledDate(cell.date);
|
1847
|
+
cell.disabled = typeof props.disabledDate === 'function' && props.disabledDate(cell.date) && props.selectionMode === 'year';
|
1874
1848
|
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;
|
1879
1849
|
cell.selected = selectedDays.includes(day);
|
1880
1850
|
cell.focused = day === focusedDate;
|
1881
|
-
cell.isCurrent = day === currentYear;
|
1882
1851
|
cells.push(cell);
|
1883
1852
|
}
|
1884
1853
|
return cells;
|
@@ -1886,7 +1855,7 @@ var yearTableProps = {
|
|
1886
1855
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1887
1856
|
resolveClassName = _usePrefix.resolveClassName;
|
1888
1857
|
var getCellCls = function getCellCls(cell) {
|
1889
|
-
return [resolveClassName('date-picker-cells-cell'), _defineProperty(_defineProperty(_defineProperty(
|
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)];
|
1890
1859
|
};
|
1891
1860
|
var handleClick = function handleClick(cell) {
|
1892
1861
|
if (cell.disabled || cell.type === 'weekLabel') {
|
@@ -1904,7 +1873,7 @@ var yearTableProps = {
|
|
1904
1873
|
return;
|
1905
1874
|
}
|
1906
1875
|
var newDate = cell.date;
|
1907
|
-
emit('
|
1876
|
+
emit('change-range', newDate);
|
1908
1877
|
};
|
1909
1878
|
return {
|
1910
1879
|
cells: cells,
|
@@ -1973,7 +1942,7 @@ var datePickerProps = {
|
|
1973
1942
|
type: String,
|
1974
1943
|
"default": 'date',
|
1975
1944
|
validator: function validator(value) {
|
1976
|
-
var validList = ['year', '
|
1945
|
+
var validList = ['year', 'month', 'monthrange', 'date', 'daterange', 'datetime', 'datetimerange', 'time', 'timerange'];
|
1977
1946
|
if (validList.indexOf(value) < 0) {
|
1978
1947
|
console.error("type property is not valid: '".concat(value, "'"));
|
1979
1948
|
return false;
|
@@ -2039,6 +2008,10 @@ var datePickerProps = {
|
|
2039
2008
|
return true;
|
2040
2009
|
}
|
2041
2010
|
},
|
2011
|
+
transfer: {
|
2012
|
+
type: Boolean,
|
2013
|
+
"default": false
|
2014
|
+
},
|
2042
2015
|
appendToBody: {
|
2043
2016
|
type: Boolean,
|
2044
2017
|
"default": false
|
@@ -2539,18 +2512,18 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2539
2512
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2540
2513
|
"class": this.resolveClassName('time-picker-cells-title-wrapper')
|
2541
2514
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2542
|
-
"
|
2543
|
-
"
|
2515
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 0 ? 'active' : ''],
|
2516
|
+
"style": this.styles
|
2544
2517
|
}, [this.t.hour]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2545
|
-
"
|
2546
|
-
"
|
2518
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 1 ? 'active' : ''],
|
2519
|
+
"style": this.styles
|
2547
2520
|
}, [this.t.min]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2548
|
-
"
|
2549
|
-
"
|
2521
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 2 ? 'active' : ''],
|
2522
|
+
"style": this.styles
|
2550
2523
|
}, [this.t.sec]), [[external_vue_namespaceObject.vShow, this.showSeconds]])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2524
|
+
"class": this.resolveClassName('time-picker-cells-list'),
|
2551
2525
|
"ref": "hoursRef",
|
2552
|
-
"style": this.styles
|
2553
|
-
"class": this.resolveClassName('time-picker-cells-list')
|
2526
|
+
"style": this.styles
|
2554
2527
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2555
2528
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2556
2529
|
}, [this.hoursList.map(function (item) {
|
@@ -2561,9 +2534,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2561
2534
|
}
|
2562
2535
|
}, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
|
2563
2536
|
})])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2537
|
+
"class": this.resolveClassName('time-picker-cells-list'),
|
2564
2538
|
"ref": "minutesRef",
|
2565
|
-
"style": this.styles
|
2566
|
-
"class": this.resolveClassName('time-picker-cells-list')
|
2539
|
+
"style": this.styles
|
2567
2540
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2568
2541
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2569
2542
|
}, [this.minutesList.map(function (item) {
|
@@ -2574,9 +2547,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2574
2547
|
}
|
2575
2548
|
}, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
|
2576
2549
|
})])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2550
|
+
"class": this.resolveClassName('time-picker-cells-list'),
|
2577
2551
|
"ref": "secondsRef",
|
2578
|
-
"style": this.styles
|
2579
|
-
"class": this.resolveClassName('time-picker-cells-list')
|
2552
|
+
"style": this.styles
|
2580
2553
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2581
2554
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2582
2555
|
}, [this.secondsList.map(function (item) {
|
@@ -2785,27 +2758,27 @@ var timeProps = {
|
|
2785
2758
|
e.preventDefault();
|
2786
2759
|
}
|
2787
2760
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2761
|
+
"class": this.resolveClassName('picker-panel-body'),
|
2788
2762
|
"style": {
|
2789
2763
|
width: "".concat(this.width, "px")
|
2790
|
-
}
|
2791
|
-
"class": this.resolveClassName('picker-panel-body')
|
2764
|
+
}
|
2792
2765
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
2793
2766
|
"class": this.resolveClassName('time-picker-header')
|
2794
2767
|
}, [this.visibleDate]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
2795
2768
|
"class": this.resolveClassName('picker-panel-content')
|
2796
2769
|
}, [(0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
2797
2770
|
"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],
|
2798
2776
|
"disabledHours": this.disabledHMS.disabledHours,
|
2799
2777
|
"disabledMinutes": this.disabledHMS.disabledMinutes,
|
2800
2778
|
"disabledSeconds": this.disabledHMS.disabledSeconds,
|
2801
2779
|
"hideDisabledOptions": this.hideDisabledOptions,
|
2802
|
-
"
|
2803
|
-
"
|
2804
|
-
"seconds": this.timeSlots[2],
|
2805
|
-
"showSeconds": this.showSeconds,
|
2806
|
-
"steps": this.steps,
|
2807
|
-
"onChange": this.handleChange,
|
2808
|
-
"onPick-click": this.handlePickClick
|
2780
|
+
"onPick-click": this.handlePickClick,
|
2781
|
+
"onChange": this.handleChange
|
2809
2782
|
}, null)])])]);
|
2810
2783
|
}
|
2811
2784
|
}));
|
@@ -2839,7 +2812,6 @@ function date_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2839
2812
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2840
2813
|
* IN THE SOFTWARE.
|
2841
2814
|
*/
|
2842
|
-
// import type { Placement } from '@popperjs/core';
|
2843
2815
|
|
2844
2816
|
|
2845
2817
|
|
@@ -3125,8 +3097,8 @@ var datePanelProps = {
|
|
3125
3097
|
}
|
3126
3098
|
}, [shortcut.text]);
|
3127
3099
|
})]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
3128
|
-
"
|
3129
|
-
"
|
3100
|
+
"class": this.resolveClassName('picker-panel-body'),
|
3101
|
+
"style": "width: 261px;"
|
3130
3102
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
3131
3103
|
"class": this.resolveClassName('date-picker-header')
|
3132
3104
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -3189,29 +3161,29 @@ var datePanelProps = {
|
|
3189
3161
|
switch (_this2.pickerTable) {
|
3190
3162
|
case 'date-table':
|
3191
3163
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
3164
|
+
"tableDate": _this2.panelDate,
|
3192
3165
|
"disabledDate": _this2.disabledDate,
|
3193
|
-
"focusedDate": _this2.focusedDate,
|
3194
|
-
"modelValue": _this2.dates,
|
3195
3166
|
"selectionMode": _this2.selectionMode,
|
3196
|
-
"
|
3167
|
+
"modelValue": _this2.dates,
|
3168
|
+
"focusedDate": _this2.focusedDate,
|
3197
3169
|
"onPick": _this2.panelPickerHandlers
|
3198
3170
|
}, null);
|
3199
3171
|
case 'year-table':
|
3200
3172
|
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
3173
|
+
"tableDate": _this2.panelDate,
|
3201
3174
|
"disabledDate": _this2.disabledDate,
|
3202
|
-
"focusedDate": _this2.focusedDate,
|
3203
|
-
"modelValue": _this2.dates,
|
3204
3175
|
"selectionMode": _this2.selectionMode,
|
3205
|
-
"
|
3176
|
+
"modelValue": _this2.dates,
|
3177
|
+
"focusedDate": _this2.focusedDate,
|
3206
3178
|
"onPick": _this2.panelPickerHandlers
|
3207
3179
|
}, null);
|
3208
3180
|
case 'month-table':
|
3209
3181
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
3182
|
+
"tableDate": _this2.panelDate,
|
3210
3183
|
"disabledDate": _this2.disabledDate,
|
3211
|
-
"focusedDate": _this2.focusedDate,
|
3212
|
-
"modelValue": _this2.dates,
|
3213
3184
|
"selectionMode": _this2.selectionMode,
|
3214
|
-
"
|
3185
|
+
"modelValue": _this2.dates,
|
3186
|
+
"focusedDate": _this2.focusedDate,
|
3215
3187
|
"onPick": _this2.panelPickerHandlers
|
3216
3188
|
}, null);
|
3217
3189
|
default:
|
@@ -3219,23 +3191,23 @@ var datePanelProps = {
|
|
3219
3191
|
}
|
3220
3192
|
}() : (0,external_vue_namespaceObject.createVNode)(time, {
|
3221
3193
|
"ref": "timePickerRef",
|
3222
|
-
"
|
3194
|
+
"value": this.dates,
|
3223
3195
|
"format": this.format,
|
3224
3196
|
"selectionMode": this.selectionMode,
|
3225
|
-
"
|
3197
|
+
"disabledDate": this.disabledDate,
|
3226
3198
|
"onPick": this.handlePick,
|
3227
|
-
"onPick-clear": this.handlePickClear,
|
3228
3199
|
"onPick-click": this.handlePickClick,
|
3200
|
+
"onPick-clear": this.handlePickClear,
|
3229
3201
|
"onPick-success": this.handlePickSuccess,
|
3230
3202
|
"onPick-toggle-time": this.handleToggleTime
|
3231
3203
|
}, null)]), this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
|
3232
3204
|
"clearable": this.clearable,
|
3233
|
-
"isTime": this.isTime,
|
3234
3205
|
"showTime": this.showTime,
|
3235
3206
|
"timeDisabled": this.timeDisabled,
|
3207
|
+
"isTime": this.isTime,
|
3208
|
+
"onPick-toggle-time": this.handleToggleTime,
|
3236
3209
|
"onPick-clear": this.handlePickClear,
|
3237
|
-
"onPick-success": this.handlePickSuccess
|
3238
|
-
"onPick-toggle-time": this.handleToggleTime
|
3210
|
+
"onPick-success": this.handlePickSuccess
|
3239
3211
|
}, this.$slots) : '']), this.hasShortcuts ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3240
3212
|
"class": this.resolveClassName('picker-panel-sidebar')
|
3241
3213
|
}, [(_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]);
|
@@ -3458,48 +3430,48 @@ var timeRangeProps = {
|
|
3458
3430
|
e.preventDefault();
|
3459
3431
|
}
|
3460
3432
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3433
|
+
"class": this.resolveClassName('picker-panel-body'),
|
3461
3434
|
"style": {
|
3462
3435
|
width: "".concat(this.width * 2, "px")
|
3463
|
-
}
|
3464
|
-
"class": this.resolveClassName('picker-panel-body')
|
3436
|
+
}
|
3465
3437
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3438
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')],
|
3466
3439
|
"style": {
|
3467
3440
|
width: "".concat(this.width, "px")
|
3468
|
-
}
|
3469
|
-
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
|
3441
|
+
}
|
3470
3442
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3471
3443
|
"class": "".concat(this.resolveClassName('time-picker-header'))
|
3472
3444
|
}, [this.leftDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
3473
3445
|
"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(),
|
3474
3451
|
"disabledHours": this.disabledHours,
|
3475
3452
|
"disabledMinutes": this.disabledMinutes,
|
3476
3453
|
"disabledSeconds": this.disabledSeconds,
|
3477
3454
|
"hideDisabledOptions": this.hideDisabledOptions,
|
3478
|
-
"hours": this.value[0] && this.dateStart.getHours(),
|
3479
|
-
"minutes": this.value[0] && this.dateStart.getMinutes(),
|
3480
|
-
"seconds": this.value[0] && this.dateStart.getSeconds(),
|
3481
|
-
"showSeconds": this.showSeconds,
|
3482
|
-
"steps": this.steps,
|
3483
3455
|
"onChange": this.handleStartChange,
|
3484
3456
|
"onPick-click": this.handlePickClick
|
3485
3457
|
}, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3458
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')],
|
3486
3459
|
"style": {
|
3487
3460
|
width: "".concat(this.width, "px")
|
3488
|
-
}
|
3489
|
-
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
|
3461
|
+
}
|
3490
3462
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3491
3463
|
"class": this.resolveClassName('time-picker-header')
|
3492
3464
|
}, [this.rightDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
3493
3465
|
"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(),
|
3494
3471
|
"disabledHours": this.disabledHours,
|
3495
3472
|
"disabledMinutes": this.disabledMinutes,
|
3496
3473
|
"disabledSeconds": this.disabledSeconds,
|
3497
3474
|
"hideDisabledOptions": this.hideDisabledOptions,
|
3498
|
-
"hours": this.value[1] && this.dateEnd.getHours(),
|
3499
|
-
"minutes": this.value[1] && this.dateEnd.getMinutes(),
|
3500
|
-
"seconds": this.value[1] && this.dateEnd.getSeconds(),
|
3501
|
-
"showSeconds": this.showSeconds,
|
3502
|
-
"steps": this.steps,
|
3503
3475
|
"onChange": this.handleEndChange,
|
3504
3476
|
"onPick-click": this.handlePickClick
|
3505
3477
|
}, null)])])]);
|
@@ -3511,7 +3483,6 @@ var timeRangeProps = {
|
|
3511
3483
|
|
3512
3484
|
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; }
|
3513
3485
|
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; }
|
3514
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3515
3486
|
/*
|
3516
3487
|
* Tencent is pleased to support the open source community by making
|
3517
3488
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3538,9 +3509,9 @@ function date_range_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
3538
3509
|
* IN THE SOFTWARE.
|
3539
3510
|
*/
|
3540
3511
|
// import type { Placement } from '@popperjs/core';
|
3512
|
+
// import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
|
3541
3513
|
|
3542
3514
|
|
3543
|
-
// import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
|
3544
3515
|
|
3545
3516
|
|
3546
3517
|
|
@@ -3558,7 +3529,7 @@ var dateRangePanelProps = {
|
|
3558
3529
|
type: String,
|
3559
3530
|
"default": 'date',
|
3560
3531
|
validator: function validator(value) {
|
3561
|
-
var validList = ['year', '
|
3532
|
+
var validList = ['year', 'month', 'monthrange', 'date', 'daterange', 'datetime', 'datetimerange', 'time', 'timerange'];
|
3562
3533
|
if (validList.indexOf(value) < 0) {
|
3563
3534
|
console.error("type property is not valid: '".concat(value, "'"));
|
3564
3535
|
return false;
|
@@ -3646,14 +3617,7 @@ var dateRangePanelProps = {
|
|
3646
3617
|
minDate = _props$modelValue$map2[0],
|
3647
3618
|
maxDate = _props$modelValue$map2[1];
|
3648
3619
|
var leftPanelDate = props.startDate ? props.startDate : minDate;
|
3649
|
-
var rightPanelDate;
|
3650
|
-
if (props.type === 'monthrange') {
|
3651
|
-
rightPanelDate = new Date(leftPanelDate.getFullYear() + 1, leftPanelDate.getMonth(), 1);
|
3652
|
-
} else if (props.type === 'yearrange') {
|
3653
|
-
rightPanelDate = new Date(leftPanelDate.getFullYear() + 10, leftPanelDate.getMonth(), 1);
|
3654
|
-
} else {
|
3655
|
-
rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1);
|
3656
|
-
}
|
3620
|
+
var rightPanelDate = props.type === 'monthrange' ? new Date(leftPanelDate.getFullYear() + 1, leftPanelDate.getMonth(), 1) : new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1);
|
3657
3621
|
var state = (0,external_vue_namespaceObject.reactive)({
|
3658
3622
|
currentView: props.selectionMode || 'date',
|
3659
3623
|
leftPickerTable: "".concat(props.selectionMode, "-table"),
|
@@ -3710,22 +3674,10 @@ var dateRangePanelProps = {
|
|
3710
3674
|
if (props.splitPanels) {
|
3711
3675
|
var otherPanel = panel === 'left' ? 'right' : 'left';
|
3712
3676
|
if (panel === 'left' && state.leftPanelDate >= state.rightPanelDate) {
|
3713
|
-
|
3714
|
-
if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
|
3715
|
-
changePanelDate(otherPanel, type, 10);
|
3716
|
-
}
|
3717
|
-
} else {
|
3718
|
-
changePanelDate(otherPanel, type, 1);
|
3719
|
-
}
|
3677
|
+
changePanelDate(otherPanel, type, 1);
|
3720
3678
|
}
|
3721
3679
|
if (panel === 'right' && state.rightPanelDate <= state.leftPanelDate) {
|
3722
|
-
|
3723
|
-
if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
|
3724
|
-
changePanelDate(otherPanel, type, -10);
|
3725
|
-
}
|
3726
|
-
} else {
|
3727
|
-
changePanelDate(otherPanel, type, -1);
|
3728
|
-
}
|
3680
|
+
changePanelDate(otherPanel, type, -1);
|
3729
3681
|
}
|
3730
3682
|
} else {
|
3731
3683
|
var _otherPanel = panel === 'left' ? 'right' : 'left';
|
@@ -3893,15 +3845,7 @@ var dateRangePanelProps = {
|
|
3893
3845
|
};
|
3894
3846
|
function setPanelDates(leftPanelDate) {
|
3895
3847
|
state.leftPanelDate = leftPanelDate;
|
3896
|
-
|
3897
|
-
var rightPanelDate;
|
3898
|
-
if (props.type === 'monthrange') {
|
3899
|
-
rightPanelDate = new Date(leftPanelDate.getFullYear() + 1, leftPanelDate.getMonth(), 1);
|
3900
|
-
} else if (props.type === 'yearrange') {
|
3901
|
-
rightPanelDate = new Date(leftPanelDate.getFullYear() + 10, leftPanelDate.getMonth(), 1);
|
3902
|
-
} else {
|
3903
|
-
rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1);
|
3904
|
-
}
|
3848
|
+
var rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1);
|
3905
3849
|
var splitRightPanelDate = state.dates[1] ? state.dates[1].getTime() : state.dates[1];
|
3906
3850
|
state.rightPanelDate = props.splitPanels ? new Date(Math.max(splitRightPanelDate, rightPanelDate.getTime())) : rightPanelDate;
|
3907
3851
|
}
|
@@ -4081,8 +4025,8 @@ var dateRangePanelProps = {
|
|
4081
4025
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
4082
4026
|
"class": [this.resolveClassName('picker-panel-body'), this.showTime ? this.resolveClassName('picker-panel-body-time') : this.resolveClassName('picker-panel-body-date')]
|
4083
4027
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4084
|
-
"
|
4085
|
-
"
|
4028
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')],
|
4029
|
+
"style": "width: 261px;"
|
4086
4030
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4087
4031
|
"class": this.resolveClassName('date-picker-header')
|
4088
4032
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -4112,12 +4056,12 @@ var dateRangePanelProps = {
|
|
4112
4056
|
"onClick": function onClick() {
|
4113
4057
|
return _this.leftDatePanelLabel.labels[0].handler;
|
4114
4058
|
}
|
4115
|
-
}, [this.
|
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", {
|
4116
4060
|
"class": this.resolveClassName('date-picker-header-label'),
|
4117
4061
|
"onClick": function onClick() {
|
4118
4062
|
return _this.leftDatePanelLabel.labels[1].handler;
|
4119
4063
|
}
|
4120
|
-
}, [this.leftDatePanelLabel.labels[1].label]), [[external_vue_namespaceObject.vShow, this.leftShowLabelSecond]])]) : '', this.splitPanels || this.leftPickerTable !== 'date-table' && this.leftPickerTable !== 'month-table'
|
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", {
|
4121
4065
|
"class": iconBtnCls('next', '-double'),
|
4122
4066
|
"onClick": function onClick() {
|
4123
4067
|
return _this.nextYear('left');
|
@@ -4143,34 +4087,23 @@ var dateRangePanelProps = {
|
|
4143
4087
|
switch (_this.leftPickerTable) {
|
4144
4088
|
case 'date-table':
|
4145
4089
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
4146
|
-
"disabledDate": _this.disabledDate,
|
4147
|
-
"focusedDate": _this.focusedDate,
|
4148
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4149
|
-
"rangeState": _this.rangeState,
|
4150
4090
|
"selectionMode": "range",
|
4151
4091
|
"tableDate": _this.leftPanelDate,
|
4092
|
+
"disabledDate": _this.disabledDate,
|
4093
|
+
"rangeState": _this.rangeState,
|
4094
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4095
|
+
"focusedDate": _this.focusedDate,
|
4152
4096
|
"onChangeRange": _this.handleChangeRange,
|
4153
4097
|
"onPick": _this.panelPickerHandlers.left
|
4154
4098
|
}, null);
|
4155
4099
|
case 'month-table':
|
4156
4100
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
4157
|
-
"disabledDate": _this.disabledDate,
|
4158
|
-
"focusedDate": _this.focusedDate,
|
4159
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4160
|
-
"rangeState": _this.rangeState,
|
4161
4101
|
"selectionMode": "range",
|
4162
4102
|
"tableDate": _this.leftPanelDate,
|
4163
|
-
"onChangeRange": _this.handleChangeRange,
|
4164
|
-
"onPick": _this.panelPickerHandlers.left
|
4165
|
-
}, null);
|
4166
|
-
case 'year-table':
|
4167
|
-
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
4168
4103
|
"disabledDate": _this.disabledDate,
|
4169
|
-
"focusedDate": _this.focusedDate,
|
4170
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4171
4104
|
"rangeState": _this.rangeState,
|
4172
|
-
"
|
4173
|
-
"
|
4105
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4106
|
+
"focusedDate": _this.focusedDate,
|
4174
4107
|
"onChangeRange": _this.handleChangeRange,
|
4175
4108
|
"onPick": _this.panelPickerHandlers.left
|
4176
4109
|
}, null);
|
@@ -4178,11 +4111,11 @@ var dateRangePanelProps = {
|
|
4178
4111
|
return null;
|
4179
4112
|
}
|
4180
4113
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4181
|
-
"
|
4182
|
-
"
|
4114
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')],
|
4115
|
+
"style": "width: 261px;"
|
4183
4116
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4184
4117
|
"class": this.resolveClassName('date-picker-header')
|
4185
|
-
}, [this.splitPanels || this.rightPickerTable !== 'date-table' && this.rightPickerTable !== 'month-table'
|
4118
|
+
}, [this.splitPanels || this.rightPickerTable !== 'date-table' && this.rightPickerTable !== 'month-table' ? (0,external_vue_namespaceObject.createVNode)("span", {
|
4186
4119
|
"class": iconBtnCls('prev', '-double'),
|
4187
4120
|
"onClick": function onClick() {
|
4188
4121
|
return _this.prevYear('right');
|
@@ -4209,7 +4142,7 @@ var dateRangePanelProps = {
|
|
4209
4142
|
"onClick": function onClick() {
|
4210
4143
|
return _this.rightDatePanelLabel.labels[0].handler;
|
4211
4144
|
}
|
4212
|
-
}, [this.
|
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", {
|
4213
4146
|
"class": this.resolveClassName('date-picker-header-label'),
|
4214
4147
|
"onClick": function onClick() {
|
4215
4148
|
return _this.rightDatePanelLabel.labels[1].handler;
|
@@ -4252,34 +4185,23 @@ var dateRangePanelProps = {
|
|
4252
4185
|
switch (_this.rightPickerTable) {
|
4253
4186
|
case 'date-table':
|
4254
4187
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
4255
|
-
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4256
|
-
"disabledDate": _this.disabledDate,
|
4257
|
-
"focusedDate": _this.focusedDate,
|
4258
|
-
"rangeState": _this.rangeState,
|
4259
4188
|
"selectionMode": "range",
|
4260
4189
|
"tableDate": _this.rightPanelDate,
|
4190
|
+
"disabledDate": _this.disabledDate,
|
4191
|
+
"rangeState": _this.rangeState,
|
4192
|
+
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4193
|
+
"focusedDate": _this.focusedDate,
|
4261
4194
|
"onChangeRange": _this.handleChangeRange,
|
4262
4195
|
"onPick": _this.panelPickerHandlers.right
|
4263
4196
|
}, null);
|
4264
4197
|
case 'month-table':
|
4265
4198
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
4266
|
-
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4267
|
-
"disabledDate": _this.disabledDate,
|
4268
|
-
"focusedDate": _this.focusedDate,
|
4269
|
-
"rangeState": _this.rangeState,
|
4270
4199
|
"selectionMode": "range",
|
4271
4200
|
"tableDate": _this.rightPanelDate,
|
4272
|
-
"onChangeRange": _this.handleChangeRange,
|
4273
|
-
"onPick": _this.panelPickerHandlers.right
|
4274
|
-
}, null);
|
4275
|
-
case 'year-table':
|
4276
|
-
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
4277
|
-
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4278
4201
|
"disabledDate": _this.disabledDate,
|
4279
|
-
"focusedDate": _this.focusedDate,
|
4280
4202
|
"rangeState": _this.rangeState,
|
4281
|
-
"
|
4282
|
-
"
|
4203
|
+
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4204
|
+
"focusedDate": _this.focusedDate,
|
4283
4205
|
"onChangeRange": _this.handleChangeRange,
|
4284
4206
|
"onPick": _this.panelPickerHandlers.right
|
4285
4207
|
}, null);
|
@@ -4288,24 +4210,23 @@ var dateRangePanelProps = {
|
|
4288
4210
|
}
|
4289
4211
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), this.isTime ? (0,external_vue_namespaceObject.createVNode)(time_range, {
|
4290
4212
|
"ref": "timePickerRef",
|
4291
|
-
"allowCrossDay": !!this.timePickerOptions.allowCrossDay,
|
4292
|
-
"disabledDate": this.disabledDate,
|
4293
|
-
"format": this.format,
|
4294
4213
|
"selectionMode": this.selectionMode,
|
4295
4214
|
"value": this.dates,
|
4215
|
+
"format": this.format,
|
4216
|
+
"disabledDate": this.disabledDate,
|
4296
4217
|
"onPick": this.handleRangePick,
|
4297
|
-
"onPick-clear": this.handlePickClear,
|
4298
4218
|
"onPick-click": this.handlePickClick,
|
4219
|
+
"onPick-clear": this.handlePickClear,
|
4299
4220
|
"onPick-success": this.handlePickSuccess,
|
4300
4221
|
"onPick-toggle-time": this.handleToggleTime
|
4301
4222
|
}, null) : '', this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
|
4302
4223
|
"clearable": this.clearable,
|
4303
|
-
"isTime": this.isTime,
|
4304
4224
|
"showTime": this.showTime,
|
4305
4225
|
"timeDisabled": this.timeDisabled,
|
4226
|
+
"isTime": this.isTime,
|
4227
|
+
"onPick-toggle-time": this.handleToggleTime,
|
4306
4228
|
"onPick-clear": this.handlePickClear,
|
4307
|
-
"onPick-success": this.handlePickSuccess
|
4308
|
-
"onPick-toggle-time": this.handleToggleTime
|
4229
|
+
"onPick-success": this.handlePickSuccess
|
4309
4230
|
}, this.$slots) : '']), shortcuts]);
|
4310
4231
|
}
|
4311
4232
|
}));
|
@@ -4349,7 +4270,6 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4349
4270
|
|
4350
4271
|
|
4351
4272
|
|
4352
|
-
// import VueTypes, { toType, toValidableType } from 'vue-types';
|
4353
4273
|
|
4354
4274
|
|
4355
4275
|
|
@@ -4416,10 +4336,6 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4416
4336
|
if (_type.match(/^month/)) {
|
4417
4337
|
type = 'month';
|
4418
4338
|
}
|
4419
|
-
// 增加了 yearrange
|
4420
|
-
if (_type.match(/^year/)) {
|
4421
|
-
type = 'year';
|
4422
|
-
}
|
4423
4339
|
// return ['year', 'month', 'date', 'time'].indexOf(type) > -1 && type;
|
4424
4340
|
state.selectionMode = ['year', 'month', 'date', 'time'].indexOf(type) > -1 && type;
|
4425
4341
|
return state.selectionMode;
|
@@ -4451,7 +4367,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4451
4367
|
}) : formatDate(publicVModelValue.value, props.type, props.multiple, props.format);
|
4452
4368
|
});
|
4453
4369
|
var panel = (0,external_vue_namespaceObject.computed)(function () {
|
4454
|
-
var isRange = props.type === 'daterange' || props.type === 'datetimerange' || props.type === 'monthrange'
|
4370
|
+
var isRange = props.type === 'daterange' || props.type === 'datetimerange' || props.type === 'monthrange';
|
4455
4371
|
return isRange ? 'DateRangePanel' : 'DatePanel';
|
4456
4372
|
});
|
4457
4373
|
var opened = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -4513,16 +4429,9 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4513
4429
|
return props.options;
|
4514
4430
|
});
|
4515
4431
|
// 限制 allow-cross-day 属性只在 time-picker 组件 type 为 timerange 时生效
|
4516
|
-
|
4517
|
-
|
4518
|
-
|
4519
|
-
// return props.allowCrossDay;
|
4520
|
-
// }
|
4521
|
-
// if (panel.value === 'DateRangePanel') {
|
4522
|
-
// return (props?.timePickerOptions as any)?.allowCrossDay;
|
4523
|
-
// }
|
4524
|
-
// return false;
|
4525
|
-
// });
|
4432
|
+
var allowCrossDayProp = (0,external_vue_namespaceObject.computed)(function () {
|
4433
|
+
return panel.value === 'RangeTimePickerPanel' ? props.allowCrossDay : false;
|
4434
|
+
});
|
4526
4435
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
4527
4436
|
var inputFocus = function inputFocus() {
|
4528
4437
|
var _inputRef$value;
|
@@ -4617,7 +4526,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4617
4526
|
if (state.visible) {
|
4618
4527
|
var _pickerPanelRef$value;
|
4619
4528
|
var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
|
4620
|
-
if (e && pickerPanel
|
4529
|
+
if (e && pickerPanel && pickerPanel.contains(e.target)) {
|
4621
4530
|
return;
|
4622
4531
|
}
|
4623
4532
|
state.visible = false;
|
@@ -4640,18 +4549,14 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4640
4549
|
if (visualValue !== null && visualValue !== void 0 && visualValue.value) {
|
4641
4550
|
state.showClose = true;
|
4642
4551
|
}
|
4643
|
-
|
4644
|
-
// console.error('enterenterenterenterenterenterenterenter', e, state.internalValue);
|
4552
|
+
state.internalValue = state.tmpValue;
|
4645
4553
|
};
|
4646
4554
|
var handleInputMouseleave = function handleInputMouseleave(_e) {
|
4647
4555
|
// if (e.toElement?.classList.contains('clear-action')) {
|
4648
4556
|
// return;
|
4649
4557
|
// }
|
4650
4558
|
state.showClose = false;
|
4651
|
-
|
4652
|
-
if (state.internalValue !== state.tmpValue) {
|
4653
|
-
handleInputChange(_e);
|
4654
|
-
}
|
4559
|
+
state.internalValue = state.tmpValue;
|
4655
4560
|
};
|
4656
4561
|
var emitChange = function emitChange(type) {
|
4657
4562
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
@@ -4673,7 +4578,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4673
4578
|
var newValue = e.target.value;
|
4674
4579
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
4675
4580
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
4676
|
-
var isDisabled =
|
4581
|
+
var isDisabled = (_props$disabledDate = props.disabledDate) === null || _props$disabledDate === void 0 ? void 0 : _props$disabledDate.call(props, valueToTest);
|
4677
4582
|
var isValidDate = newDate.reduce(function (valid, date) {
|
4678
4583
|
return valid && date instanceof Date;
|
4679
4584
|
}, true);
|
@@ -4691,7 +4596,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4691
4596
|
var newValue = e.target.value;
|
4692
4597
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
4693
4598
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
4694
|
-
var isDisabled =
|
4599
|
+
var isDisabled = (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
|
4695
4600
|
var isValidDate = newDate.reduce(function (valid, date) {
|
4696
4601
|
return valid && date instanceof Date;
|
4697
4602
|
}, true);
|
@@ -4887,7 +4792,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4887
4792
|
fontSizeCls: fontSizeCls,
|
4888
4793
|
longWidthCls: longWidthCls,
|
4889
4794
|
localReadonly: localReadonly,
|
4890
|
-
|
4795
|
+
allowCrossDayProp: allowCrossDayProp,
|
4891
4796
|
ownPickerProps: ownPickerProps,
|
4892
4797
|
teleportTo: teleportTo,
|
4893
4798
|
pickerDropdownRef: pickerDropdownRef,
|
@@ -4926,23 +4831,23 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4926
4831
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
4927
4832
|
"onClick": this.handleIconClick
|
4928
4833
|
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
4929
|
-
"
|
4930
|
-
"ref": "inputRef",
|
4834
|
+
"type": "text",
|
4931
4835
|
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4836
|
+
"ref": "inputRef",
|
4837
|
+
"key": this.forceInputRerender,
|
4838
|
+
"readonly": this.localReadonly,
|
4932
4839
|
"disabled": this.disabled,
|
4933
4840
|
"placeholder": this.placeholder,
|
4934
|
-
"readonly": this.localReadonly,
|
4935
|
-
"type": "text",
|
4936
4841
|
"value": this.displayValue,
|
4842
|
+
"onFocus": this.handleFocus,
|
4843
|
+
"onClick": this.handleFocus,
|
4937
4844
|
"onBlur": this.handleBlur,
|
4845
|
+
"onKeydown": this.handleKeydown,
|
4938
4846
|
"onChange": this.handleInputChange,
|
4939
|
-
"
|
4940
|
-
"onFocus": this.handleFocus,
|
4941
|
-
"onInput": this.handleInputInput,
|
4942
|
-
"onKeydown": this.handleKeydown
|
4847
|
+
"onInput": this.handleInputInput
|
4943
4848
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
4944
|
-
"
|
4945
|
-
"
|
4849
|
+
"onClick": this.handleClear,
|
4850
|
+
"class": "clear-action"
|
4946
4851
|
}, null) : '']);
|
4947
4852
|
// const shortcutsSlot = this.hasShortcuts ? { shortcuts: () => this.$slots.shortcuts?.() || null } : {};
|
4948
4853
|
var shortcutsSlot = this.hasShortcuts ? {
|
@@ -4965,8 +4870,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4965
4870
|
"onMouseenter": this.handleInputMouseenter,
|
4966
4871
|
"onMouseleave": this.handleInputMouseleave
|
4967
4872
|
}, [(_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, {
|
4968
|
-
"
|
4969
|
-
"
|
4873
|
+
"to": this.teleportTo,
|
4874
|
+
"disabled": !this.appendToBody
|
4970
4875
|
}, {
|
4971
4876
|
"default": function _default() {
|
4972
4877
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
@@ -4974,48 +4879,48 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4974
4879
|
}, {
|
4975
4880
|
"default": function _default() {
|
4976
4881
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
|
4977
|
-
"ref": "pickerDropdownRef",
|
4978
4882
|
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
4979
|
-
"
|
4980
|
-
"
|
4883
|
+
"ref": "pickerDropdownRef",
|
4884
|
+
"triggerRef": _this.triggerRef,
|
4981
4885
|
"placement": _this.placement,
|
4982
|
-
"
|
4886
|
+
"extPopoverCls": _this.extPopoverCls,
|
4887
|
+
"appendToBody": _this.appendToBody
|
4983
4888
|
}, {
|
4984
4889
|
"default": function _default() {
|
4985
4890
|
return [_this.hasHeader ? (0,external_vue_namespaceObject.createVNode)("div", {
|
4986
4891
|
"class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
|
4987
4892
|
}, [(_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, {
|
4988
4893
|
"ref": "pickerPanelRef",
|
4894
|
+
"type": _this.type,
|
4895
|
+
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4989
4896
|
"confirm": _this.isConfirm,
|
4990
|
-
"
|
4991
|
-
"
|
4897
|
+
"shortcuts": _this.shortcuts,
|
4898
|
+
"shortcutClose": _this.shortcutClose,
|
4992
4899
|
"modelValue": _this.internalValue,
|
4993
4900
|
"selectionMode": _this.selectionMode,
|
4994
|
-
"shortcutClose": _this.shortcutClose,
|
4995
|
-
"shortcutSelectedIndex": _this.shortcutSelectedIndex,
|
4996
|
-
"shortcuts": _this.shortcuts,
|
4997
|
-
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4998
4901
|
"startDate": _this.startDate,
|
4902
|
+
"disabledDate": _this.disabledDate,
|
4903
|
+
"focusedDate": _this.focusedDate,
|
4999
4904
|
"timePickerOptions": _this.timePickerOptions,
|
5000
|
-
"type": _this.type,
|
5001
4905
|
"onPick": _this.onPick,
|
5002
4906
|
"onPick-clear": _this.handleClear,
|
5003
|
-
"onPick-first": _this.onPickFirst,
|
5004
4907
|
"onPick-success": _this.onPickSuccess,
|
5005
|
-
"onSelection-mode-change": _this.onSelectionModeChange
|
4908
|
+
"onSelection-mode-change": _this.onSelectionModeChange,
|
4909
|
+
"shortcutSelectedIndex": _this.shortcutSelectedIndex,
|
4910
|
+
"onPick-first": _this.onPickFirst
|
5006
4911
|
}, slots) : (0,external_vue_namespaceObject.createVNode)(date, {
|
5007
4912
|
"ref": "pickerPanelRef",
|
5008
4913
|
"clearable": _this.clearable,
|
4914
|
+
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
5009
4915
|
"confirm": _this.isConfirm,
|
5010
|
-
"
|
5011
|
-
"focusedDate": _this.focusedDate,
|
5012
|
-
"modelValue": _this.internalValue,
|
4916
|
+
"shortcuts": _this.shortcuts,
|
5013
4917
|
"multiple": _this.multiple,
|
5014
|
-
"selectionMode": _this.selectionMode,
|
5015
4918
|
"shortcutClose": _this.shortcutClose,
|
5016
|
-
"
|
5017
|
-
"
|
4919
|
+
"selectionMode": _this.selectionMode,
|
4920
|
+
"modelValue": _this.internalValue,
|
5018
4921
|
"startDate": _this.startDate,
|
4922
|
+
"disabledDate": _this.disabledDate,
|
4923
|
+
"focusedDate": _this.focusedDate,
|
5019
4924
|
"timePickerOptions": _this.timePickerOptions,
|
5020
4925
|
"onPick": _this.onPick,
|
5021
4926
|
"onPick-clear": _this.handleClear,
|
@@ -5072,7 +4977,6 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5072
4977
|
|
5073
4978
|
|
5074
4979
|
|
5075
|
-
// import VueTypes, { toType, toValidableType } from 'vue-types';
|
5076
4980
|
|
5077
4981
|
|
5078
4982
|
|
@@ -5230,9 +5134,10 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5230
5134
|
return panel.value === 'RangeTimePickerPanel' ? props.allowCrossDay : false;
|
5231
5135
|
});
|
5232
5136
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
5233
|
-
|
5234
|
-
|
5235
|
-
|
5137
|
+
var inputFocus = function inputFocus() {
|
5138
|
+
var _inputRef$value;
|
5139
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
5140
|
+
};
|
5236
5141
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
5237
5142
|
proxy = _getCurrentInstance.proxy;
|
5238
5143
|
var pickerDropdownRef = (0,external_vue_namespaceObject.ref)(null);
|
@@ -5300,14 +5205,12 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5300
5205
|
state.visible = props.open;
|
5301
5206
|
}
|
5302
5207
|
// this.$on('focus-input', () => this.focus())
|
5303
|
-
|
5304
|
-
|
5305
|
-
|
5306
|
-
|
5307
|
-
|
5308
|
-
|
5309
|
-
panelDate: state.focusedDate,
|
5310
|
-
parentName: proxy.$options.name
|
5208
|
+
(0,external_vue_namespaceObject.provide)(datePickerKey, {
|
5209
|
+
props: props,
|
5210
|
+
focus: function focus() {
|
5211
|
+
return inputFocus();
|
5212
|
+
}
|
5213
|
+
});
|
5311
5214
|
});
|
5312
5215
|
var pickerPanelRef = (0,external_vue_namespaceObject.ref)(null);
|
5313
5216
|
var handleClose = function handleClose(e) {
|
@@ -5323,7 +5226,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5323
5226
|
if (state.visible) {
|
5324
5227
|
var _pickerPanelRef$value;
|
5325
5228
|
var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
|
5326
|
-
if (e && pickerPanel
|
5229
|
+
if (e && pickerPanel && pickerPanel.contains(e.target)) {
|
5327
5230
|
return;
|
5328
5231
|
}
|
5329
5232
|
state.visible = false;
|
@@ -5335,9 +5238,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5335
5238
|
state.disableClickOutSide = false;
|
5336
5239
|
};
|
5337
5240
|
var handleIconClick = function handleIconClick() {
|
5338
|
-
var _inputRef$
|
5339
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5340
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5241
|
+
var _inputRef$value2, _inputRef$value3;
|
5242
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
|
5243
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 || _inputRef$value3.click();
|
5341
5244
|
};
|
5342
5245
|
var handleInputMouseenter = function handleInputMouseenter() {
|
5343
5246
|
if (props.readonly || props.disabled) {
|
@@ -5363,8 +5266,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5363
5266
|
emit('change', publicStringValue.value, type);
|
5364
5267
|
// this.dispatch('bk-form-item', 'form-change');
|
5365
5268
|
if (props.type.indexOf('time') < 0) {
|
5366
|
-
var _inputRef$
|
5367
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5269
|
+
var _inputRef$value4;
|
5270
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 || _inputRef$value4.blur();
|
5368
5271
|
}
|
5369
5272
|
});
|
5370
5273
|
};
|
@@ -5514,14 +5417,14 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5514
5417
|
}
|
5515
5418
|
};
|
5516
5419
|
var onPickSuccess = function onPickSuccess() {
|
5517
|
-
var _inputRef$
|
5420
|
+
var _inputRef$value5;
|
5518
5421
|
state.visible = false;
|
5519
5422
|
// 点击 shortcuts 会关闭弹层时,如果不在 nextTick 里触发 pick-success,那么会导致触发 pick-success 的时候,
|
5520
5423
|
// v-model 的值还是之前的值
|
5521
5424
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
5522
5425
|
emit('pick-success');
|
5523
5426
|
});
|
5524
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5427
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value5 = inputRef.value) === null || _inputRef$value5 === void 0 || _inputRef$value5.blur();
|
5525
5428
|
reset();
|
5526
5429
|
};
|
5527
5430
|
var onPick = function onPick(_dates) {
|
@@ -5625,23 +5528,23 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5625
5528
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
5626
5529
|
"onClick": this.handleIconClick
|
5627
5530
|
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
5628
|
-
"
|
5629
|
-
"ref": "inputRef",
|
5531
|
+
"type": "text",
|
5630
5532
|
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5533
|
+
"ref": "inputRef",
|
5534
|
+
"key": this.forceInputRerender,
|
5535
|
+
"readonly": this.localReadonly,
|
5631
5536
|
"disabled": this.disabled,
|
5632
5537
|
"placeholder": this.placeholder,
|
5633
|
-
"readonly": this.localReadonly,
|
5634
|
-
"type": "text",
|
5635
5538
|
"value": this.displayValue,
|
5539
|
+
"onFocus": this.handleFocus,
|
5540
|
+
"onClick": this.handleFocus,
|
5636
5541
|
"onBlur": this.handleBlur,
|
5542
|
+
"onKeydown": this.handleKeydown,
|
5637
5543
|
"onChange": this.handleInputChange,
|
5638
|
-
"
|
5639
|
-
"onFocus": this.handleFocus,
|
5640
|
-
"onInput": this.handleInputInput,
|
5641
|
-
"onKeydown": this.handleKeydown
|
5544
|
+
"onInput": this.handleInputInput
|
5642
5545
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
5643
|
-
"
|
5644
|
-
"
|
5546
|
+
"onClick": this.handleClear,
|
5547
|
+
"class": "clear-action"
|
5645
5548
|
}, null) : '']);
|
5646
5549
|
var shortcutsSlot = this.hasShortcuts ? {
|
5647
5550
|
shortcuts: function shortcuts() {
|
@@ -5657,8 +5560,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5657
5560
|
"onMouseenter": this.handleInputMouseenter,
|
5658
5561
|
"onMouseleave": this.handleInputMouseleave
|
5659
5562
|
}, [(_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, {
|
5660
|
-
"
|
5661
|
-
"
|
5563
|
+
"to": this.teleportTo,
|
5564
|
+
"disabled": !this.appendToBody
|
5662
5565
|
}, {
|
5663
5566
|
"default": function _default() {
|
5664
5567
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
@@ -5666,12 +5569,12 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5666
5569
|
}, {
|
5667
5570
|
"default": function _default() {
|
5668
5571
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
|
5669
|
-
"ref": "pickerDropdownRef",
|
5670
5572
|
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
5671
|
-
"
|
5672
|
-
"extPopoverCls": _this.extPopoverCls,
|
5673
|
-
"placement": _this.placement,
|
5573
|
+
"ref": "pickerDropdownRef",
|
5674
5574
|
"triggerRef": _this.triggerRef,
|
5575
|
+
"placement": _this.placement,
|
5576
|
+
"extPopoverCls": _this.extPopoverCls,
|
5577
|
+
"appendToBody": _this.appendToBody,
|
5675
5578
|
"onClick": _this.handleTransferClick
|
5676
5579
|
}, {
|
5677
5580
|
"default": function _default() {
|
@@ -5679,38 +5582,38 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5679
5582
|
"class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
|
5680
5583
|
}, [(_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, {
|
5681
5584
|
"ref": "pickerPanelRef",
|
5682
|
-
"allowCrossDay": _this.allowCrossDayProp,
|
5683
5585
|
"clearable": _this.clearable,
|
5684
|
-
"
|
5685
|
-
"disabledHours": _this.ownPickerProps.disabledHours,
|
5686
|
-
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5687
|
-
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5688
|
-
"format": _this.format,
|
5586
|
+
"shortcuts": _this.shortcuts,
|
5689
5587
|
"multiple": _this.multiple,
|
5690
5588
|
"shortcutClose": _this.shortcutClose,
|
5691
|
-
"shortcuts": _this.shortcuts,
|
5692
|
-
"startDate": _this.startDate,
|
5693
5589
|
"value": _this.internalValue,
|
5590
|
+
"startDate": _this.startDate,
|
5591
|
+
"disabledDate": _this.disabledDate,
|
5694
5592
|
"onPick": _this.onPick,
|
5695
5593
|
"onPick-clear": _this.handleClear,
|
5696
|
-
"onPick-success": _this.onPickSuccess
|
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
|
5697
5600
|
}, shortcutsSlot) : (0,external_vue_namespaceObject.createVNode)(time, {
|
5698
5601
|
"ref": "pickerPanelRef",
|
5699
5602
|
"clearable": _this.clearable,
|
5700
5603
|
"confirm": _this.isConfirm,
|
5701
|
-
"
|
5702
|
-
"disabledHours": _this.ownPickerProps.disabledHours,
|
5703
|
-
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5704
|
-
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5705
|
-
"format": _this.format,
|
5604
|
+
"shortcuts": _this.shortcuts,
|
5706
5605
|
"multiple": _this.multiple,
|
5707
5606
|
"shortcutClose": _this.shortcutClose,
|
5708
|
-
"shortcuts": _this.shortcuts,
|
5709
|
-
"startDate": _this.startDate,
|
5710
5607
|
"value": _this.internalValue,
|
5608
|
+
"startDate": _this.startDate,
|
5609
|
+
"disabledDate": _this.disabledDate,
|
5711
5610
|
"onPick": _this.onPick,
|
5712
5611
|
"onPick-clear": _this.handleClear,
|
5713
|
-
"onPick-success": _this.onPickSuccess
|
5612
|
+
"onPick-success": _this.onPickSuccess,
|
5613
|
+
"disabledHours": _this.ownPickerProps.disabledHours,
|
5614
|
+
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5615
|
+
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5616
|
+
"format": _this.format
|
5714
5617
|
}, shortcutsSlot), _this.hasFooter ? (0,external_vue_namespaceObject.createVNode)("div", {
|
5715
5618
|
"class": [_this.resolveClassName('date-picker-footer-wrapper'), _this.footerSlotCls]
|
5716
5619
|
}, [(_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];
|