bkui-vue 0.0.2-beta.98 → 0.0.2-modal-refactor.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/dist/index.cjs.js +48 -48
- package/dist/index.esm.js +12578 -12295
- package/dist/index.umd.js +34 -34
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -122
- package/lib/affix/affix.variable.css +5 -245
- package/lib/alert/alert.css +3 -125
- package/lib/alert/alert.variable.css +5 -245
- package/lib/backtop/backtop.css +3 -125
- package/lib/backtop/backtop.variable.css +8 -370
- package/lib/badge/badge.css +34 -150
- package/lib/badge/badge.less +8 -4
- package/lib/badge/badge.variable.css +13 -247
- package/lib/breadcrumb/breadcrumb.css +5 -127
- package/lib/breadcrumb/breadcrumb.variable.css +10 -372
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +137 -256
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.less +98 -93
- package/lib/button/button.variable.css +23 -260
- package/lib/button/index.d.ts +5 -5
- package/lib/card/card.css +11 -133
- package/lib/card/card.less +7 -7
- package/lib/card/card.variable.css +16 -378
- package/lib/cascader/cascader-panel.d.ts +1 -0
- package/lib/cascader/cascader.css +26 -148
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/cascader.less +4 -6
- package/lib/cascader/cascader.variable.css +31 -393
- package/lib/cascader/index.d.ts +4 -0
- package/lib/cascader/index.js +31 -14
- package/lib/checkbox/checkbox.css +22 -132
- package/lib/checkbox/checkbox.d.ts +9 -8
- package/lib/checkbox/checkbox.less +15 -1
- package/lib/checkbox/checkbox.variable.css +18 -246
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +15 -12
- package/lib/checkbox/index.js +33 -9
- package/lib/code-diff/code-diff.css +0 -122
- package/lib/code-diff/code-diff.variable.css +5 -245
- package/lib/collapse/collapse.css +1 -123
- package/lib/collapse/collapse.variable.css +5 -245
- package/lib/collapse-transition/collapse-transition.css +0 -122
- package/lib/collapse-transition/collapse-transition.variable.css +5 -245
- package/lib/color-picker/color-picker.css +0 -122
- package/lib/color-picker/color-picker.variable.css +5 -245
- package/lib/config-provider/config-provider.css +0 -122
- package/lib/config-provider/config-provider.d.ts +18 -0
- package/lib/config-provider/config-provider.variable.css +5 -245
- package/lib/config-provider/index.d.ts +24 -0
- package/lib/config-provider/token.d.ts +6 -0
- package/lib/container/container.css +0 -122
- package/lib/container/container.variable.css +5 -367
- package/lib/date-picker/common.d.ts +2 -0
- package/lib/date-picker/date-picker.css +17 -139
- package/lib/date-picker/date-picker.d.ts +2 -0
- package/lib/date-picker/date-picker.variable.css +5 -245
- package/lib/date-picker/index.d.ts +6 -0
- package/lib/date-picker/index.js +184 -110
- package/lib/date-picker/panel/date.d.ts +2 -2
- package/lib/date-picker/panel/time-range.d.ts +17 -0
- package/lib/date-picker/panel/time.d.ts +17 -1
- package/lib/date-picker/time-picker.d.ts +2 -0
- package/lib/dialog/dialog.css +66 -162
- package/lib/dialog/dialog.d.ts +16 -7
- package/lib/dialog/dialog.less +9 -8
- package/lib/dialog/dialog.variable.css +71 -407
- package/lib/dialog/index.d.ts +28 -12
- package/lib/dialog/index.js +4 -7
- package/lib/dialog/props.d.ts +7 -3
- package/lib/directives/index.js +15 -4
- package/lib/divider/divider.css +3 -125
- package/lib/divider/divider.variable.css +5 -245
- package/lib/dropdown/dropdown.css +1 -123
- package/lib/dropdown/dropdown.variable.css +6 -368
- package/lib/dropdown/index.js +2 -2
- package/lib/exception/exception.css +0 -122
- package/lib/exception/exception.variable.css +5 -245
- package/lib/fixed-navbar/fixed-navbar.css +4 -126
- package/lib/fixed-navbar/fixed-navbar.variable.css +5 -245
- package/lib/form/form.css +2 -123
- package/lib/form/form.less +3 -2
- package/lib/form/form.variable.css +7 -246
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +58 -25
- package/lib/icon/loading.d.ts +4 -0
- package/lib/icon/loading.js +276 -0
- package/lib/image/image-viewer.css +0 -122
- package/lib/image/image-viewer.variable.css +5 -245
- package/lib/image/image.css +0 -122
- package/lib/image/image.variable.css +5 -367
- package/lib/info-box/index.js +4 -7
- package/lib/info-box/info-box.css +0 -122
- package/lib/info-box/info-box.d.ts +4 -0
- package/lib/info-box/info-box.variable.css +5 -245
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +12 -5
- package/lib/input/input.css +84 -190
- package/lib/input/input.d.ts +3 -3
- package/lib/input/input.less +19 -0
- package/lib/input/input.variable.css +89 -435
- package/lib/link/link.css +16 -138
- package/lib/link/link.variable.css +5 -245
- package/lib/loading/index.d.ts +3 -3
- package/lib/loading/loading.css +25 -147
- package/lib/loading/loading.d.ts +1 -1
- package/lib/loading/loading.less +14 -9
- package/lib/loading/loading.variable.css +30 -392
- package/lib/locale/index.js +14 -2
- package/lib/locale/lang/en.d.ts +6 -0
- package/lib/menu/menu.css +18 -140
- package/lib/menu/menu.variable.css +23 -385
- package/lib/menu/submenu.css +0 -122
- package/lib/menu/submenu.variable.css +5 -245
- package/lib/message/message.css +21 -143
- package/lib/message/message.variable.css +5 -245
- package/lib/modal/index.d.ts +97 -54
- package/lib/modal/index.js +131 -103
- package/lib/modal/modal.css +25 -122
- package/lib/modal/modal.d.ts +36 -18
- package/lib/modal/modal.less +33 -0
- package/lib/modal/modal.variable.css +30 -367
- package/lib/modal/props.mixin.d.ts +7 -3
- package/lib/navigation/navigation.css +2 -124
- package/lib/navigation/navigation.variable.css +5 -245
- package/lib/notify/notify.css +13 -135
- package/lib/notify/notify.less +6 -6
- package/lib/notify/notify.variable.css +11 -251
- package/lib/overflow-title/components/overflow-title.d.ts +0 -1
- package/lib/overflow-title/index.js +2 -178
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/pagination.css +2 -123
- package/lib/pagination/pagination.d.ts +3 -3
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +6 -245
- package/lib/plugin-popover/index.js +31 -103
- package/lib/pop-confirm/index.d.ts +42 -3
- package/lib/pop-confirm/index.js +55 -47
- package/lib/pop-confirm/pop-confirm.css +4 -126
- package/lib/pop-confirm/pop-confirm.d.ts +14 -1
- package/lib/pop-confirm/pop-confirm.less +4 -4
- package/lib/pop-confirm/pop-confirm.variable.css +9 -249
- package/lib/popover/index.js +31 -103
- package/lib/popover/popover.css +1 -123
- package/lib/popover/popover.less +1 -1
- package/lib/popover/popover.variable.css +6 -246
- package/lib/preset.d.ts +12 -0
- package/lib/process/process.css +13 -135
- package/lib/process/process.variable.css +5 -245
- package/lib/progress/index.d.ts +4 -4
- package/lib/progress/progress.css +11 -129
- package/lib/progress/progress.d.ts +3 -3
- package/lib/progress/progress.less +8 -3
- package/lib/progress/progress.variable.css +16 -374
- package/lib/radio/common.d.ts +1 -0
- package/lib/radio/index.d.ts +8 -2
- package/lib/radio/index.js +11 -3
- package/lib/radio/radio-button.d.ts +4 -3
- package/lib/radio/radio-group.d.ts +3 -0
- package/lib/radio/radio.css +49 -157
- package/lib/radio/radio.d.ts +1 -0
- package/lib/radio/radio.less +42 -8
- package/lib/radio/radio.variable.css +25 -251
- package/lib/rate/index.d.ts +4 -4
- package/lib/rate/index.js +22 -6
- package/lib/rate/rate.css +0 -122
- package/lib/rate/rate.d.ts +2 -2
- package/lib/rate/rate.variable.css +5 -245
- package/lib/rate/star.css +3 -122
- package/lib/rate/star.less +3 -0
- package/lib/rate/star.variable.css +8 -245
- package/lib/resize-layout/index.d.ts +3 -3
- package/lib/resize-layout/resize-layout.css +2 -124
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +2 -2
- package/lib/resize-layout/resize-layout.variable.css +7 -247
- package/lib/search-select/index.js +6 -6
- package/lib/search-select/search-select.css +34 -156
- package/lib/search-select/search-select.less +9 -9
- package/lib/search-select/search-select.variable.css +39 -401
- package/lib/select/common.d.ts +3 -1
- package/lib/select/index.d.ts +92 -21
- package/lib/select/index.js +193 -63
- package/lib/select/option.d.ts +1 -0
- package/lib/select/select.css +27 -146
- package/lib/select/select.d.ts +38 -9
- package/lib/select/select.less +3 -0
- package/lib/select/select.variable.css +32 -391
- package/lib/select/selectTagInput.d.ts +2 -0
- package/lib/select/type.d.ts +3 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +50 -5
- package/lib/shared/mask.d.ts +11 -0
- package/lib/shared/vue-types.d.ts +1 -1
- package/lib/sideslider/index.d.ts +28 -12
- package/lib/sideslider/index.js +0 -11
- package/lib/sideslider/sideslider.css +12 -134
- package/lib/sideslider/sideslider.d.ts +16 -7
- package/lib/sideslider/sideslider.less +80 -77
- package/lib/sideslider/sideslider.variable.css +16 -256
- package/lib/slider/index.js +7 -1
- package/lib/slider/slider.css +6 -126
- package/lib/slider/slider.less +2 -0
- package/lib/slider/slider.variable.css +7 -245
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +53 -163
- package/lib/steps/steps.d.ts +3 -3
- package/lib/steps/steps.less +26 -5
- package/lib/steps/steps.variable.css +23 -251
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.css +0 -122
- package/lib/styles/mixins/animate.variable.css +5 -245
- package/lib/styles/mixins/mixins.css +0 -122
- package/lib/styles/mixins/mixins.variable.css +0 -122
- package/lib/styles/mixins/popper.css +0 -122
- package/lib/styles/mixins/popper.variable.css +5 -245
- package/lib/styles/mixins/scroll.css +0 -122
- package/lib/styles/mixins/scroll.variable.css +5 -245
- package/lib/styles/reset.css +0 -122
- package/lib/styles/reset.variable.css +5 -245
- package/lib/styles/themes/themes.less +124 -289
- package/lib/swiper/swiper.css +0 -122
- package/lib/swiper/swiper.variable.css +5 -245
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/switcher.css +17 -139
- package/lib/switcher/switcher.d.ts +3 -3
- package/lib/switcher/switcher.variable.css +22 -384
- package/lib/tab/tab.css +17 -139
- package/lib/tab/tab.variable.css +5 -245
- package/lib/table/components/table-column.d.ts +5 -4
- package/lib/table/index.d.ts +8 -7
- package/lib/table/index.js +877 -630
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/head-filter.css +1 -150
- package/lib/table/plugins/head-filter.less +2 -34
- package/lib/table/plugins/head-filter.variable.css +6 -273
- package/lib/table/plugins/head-sort.css +0 -122
- package/lib/table/plugins/head-sort.variable.css +5 -245
- package/lib/table/plugins/settings.css +0 -122
- package/lib/table/plugins/settings.d.ts +0 -7
- package/lib/table/plugins/settings.variable.css +5 -245
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +2 -1
- package/lib/table/props.d.ts +3 -1
- package/lib/table/table.css +207 -337
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +27 -21
- package/lib/table/table.variable.css +212 -582
- package/lib/table/use-attributes.d.ts +5 -1
- package/lib/table/use-column.d.ts +3 -0
- package/lib/table/use-common.d.ts +0 -1
- package/lib/table/utils.d.ts +6 -4
- package/lib/table-column/index.d.ts +13 -10
- package/lib/tag/tag.css +5 -127
- package/lib/tag/tag.variable.css +5 -245
- package/lib/tag-input/index.js +17 -13
- package/lib/tag-input/list-tag-render.d.ts +11 -0
- package/lib/tag-input/tag-input.css +18 -140
- package/lib/tag-input/tag-input.d.ts +14 -2
- package/lib/tag-input/tag-input.variable.css +5 -245
- package/lib/time-picker/index.d.ts +6 -0
- package/lib/time-picker/time-picker.css +4 -125
- package/lib/time-picker/time-picker.less +5 -9
- package/lib/time-picker/time-picker.variable.css +9 -248
- package/lib/timeline/timeline.css +19 -141
- package/lib/timeline/timeline.variable.css +5 -245
- package/lib/transfer/transfer.css +21 -143
- package/lib/transfer/transfer.less +2 -2
- package/lib/transfer/transfer.variable.css +7 -247
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/index.js +54 -8
- package/lib/tree/tree.css +22 -132
- package/lib/tree/tree.d.ts +5 -1
- package/lib/tree/tree.variable.css +27 -377
- package/lib/tree/use-empty.d.ts +1 -3
- package/lib/upload/index.js +2 -2
- package/lib/upload/upload.css +27 -149
- package/lib/upload/upload.variable.css +32 -394
- package/lib/virtual-render/index.js +71 -30
- package/lib/virtual-render/use-fix-top.d.ts +18 -0
- package/lib/virtual-render/v-virtual-render.d.ts +5 -0
- package/lib/virtual-render/virtual-render.css +0 -122
- package/lib/virtual-render/virtual-render.variable.css +5 -367
- package/package.json +4 -3
- package/lib/styles/themes/themes.css +0 -122
- package/lib/styles/themes/themes.variable.css +0 -122
- package/lib/table/render.d.ts +0 -130
- /package/lib/overflow-title/{overflow.css → overflow-title.css} +0 -0
- /package/lib/overflow-title/{overflow.less → overflow-title.less} +0 -0
- /package/lib/overflow-title/{overflow.variable.css → overflow-title.variable.css} +0 -0
package/lib/date-picker/index.js
CHANGED
@@ -170,7 +170,7 @@ function _toConsumableArray(arr) {
|
|
170
170
|
;// CONCATENATED MODULE: external "vue"
|
171
171
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
172
172
|
var external_vue_y = x => () => x
|
173
|
-
const external_vue_namespaceObject = external_vue_x({ ["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 });
|
173
|
+
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 });
|
174
174
|
;// CONCATENATED MODULE: external "../config-provider"
|
175
175
|
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
176
176
|
var external_config_provider_y = x => () => x
|
@@ -435,6 +435,79 @@ var pickerDropdownProps = {
|
|
435
435
|
}, [(_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 : '']);
|
436
436
|
}
|
437
437
|
}));
|
438
|
+
;// CONCATENATED MODULE: ../../packages/date-picker/src/common.tsx
|
439
|
+
|
440
|
+
/*
|
441
|
+
* Tencent is pleased to support the open source community by making
|
442
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
443
|
+
*
|
444
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
445
|
+
*
|
446
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
447
|
+
*
|
448
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
449
|
+
*
|
450
|
+
* ---------------------------------------------------
|
451
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
452
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
453
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
454
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
455
|
+
*
|
456
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
457
|
+
* the Software.
|
458
|
+
*
|
459
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
460
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
461
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
462
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
463
|
+
* IN THE SOFTWARE.
|
464
|
+
*/
|
465
|
+
var dateIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
466
|
+
"class": "picker-icon",
|
467
|
+
"x": "0px",
|
468
|
+
"y": "0px",
|
469
|
+
"viewBox": "0 0 1024 1024"
|
470
|
+
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
471
|
+
"id": "date"
|
472
|
+
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
473
|
+
"fill": "#c4c6cc",
|
474
|
+
"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"
|
475
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
476
|
+
"x": "416",
|
477
|
+
"y": "128",
|
478
|
+
"fill": "#c4c6cc",
|
479
|
+
"width": "192",
|
480
|
+
"height": "64"
|
481
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
482
|
+
"x": "288",
|
483
|
+
"y": "96",
|
484
|
+
"fill": "#c4c6cc",
|
485
|
+
"width": "64",
|
486
|
+
"height": "128"
|
487
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
488
|
+
"x": "672",
|
489
|
+
"y": "96",
|
490
|
+
"fill": "#c4c6cc",
|
491
|
+
"width": "64",
|
492
|
+
"height": "128"
|
493
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
494
|
+
"fill": "#c4c6cc",
|
495
|
+
"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"
|
496
|
+
}, null)])])]);
|
497
|
+
var timeIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
498
|
+
"class": "picker-icon",
|
499
|
+
"x": "0px",
|
500
|
+
"y": "0px",
|
501
|
+
"viewBox": "0 0 1024 1024"
|
502
|
+
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
503
|
+
"id": "time"
|
504
|
+
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
505
|
+
"fill": "#c4c6cc",
|
506
|
+
"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"
|
507
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
508
|
+
"fill": "#c4c6cc",
|
509
|
+
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
510
|
+
}, null)])])]);
|
438
511
|
;// CONCATENATED MODULE: external "../button"
|
439
512
|
var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
440
513
|
var external_button_y = x => () => x
|
@@ -2303,20 +2376,22 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2303
2376
|
var bindFunction = function bindFunction(type) {
|
2304
2377
|
var domRef = getDomRef(type);
|
2305
2378
|
domRef.addEventListener('wheel', (0,debounce_namespaceObject["default"])(function () {
|
2379
|
+
// handleWheel(type);
|
2306
2380
|
if (wheelStart.value === true) {
|
2307
2381
|
// console.log('滚动了');
|
2308
2382
|
wheelStart.value = false;
|
2309
2383
|
wheelEnd.value = true;
|
2310
2384
|
// 这里写开始滚动时调用的方法
|
2311
|
-
handleWheel(type);
|
2312
2385
|
wheelTimer.value = setTimeout(function () {
|
2386
|
+
handleWheel(type);
|
2313
2387
|
stopWheel(domRef);
|
2314
|
-
},
|
2388
|
+
}, 200);
|
2315
2389
|
} else {
|
2316
|
-
clearTimeout(wheelTimer);
|
2390
|
+
clearTimeout(wheelTimer.value);
|
2317
2391
|
wheelTimer.value = setTimeout(function () {
|
2392
|
+
handleWheel(type);
|
2318
2393
|
stopWheel(domRef);
|
2319
|
-
},
|
2394
|
+
}, 300);
|
2320
2395
|
}
|
2321
2396
|
}, 32), {
|
2322
2397
|
passive: true
|
@@ -2545,6 +2620,17 @@ var timeProps = {
|
|
2545
2620
|
confirm: {
|
2546
2621
|
type: Boolean,
|
2547
2622
|
"default": false
|
2623
|
+
},
|
2624
|
+
selectionMode: {
|
2625
|
+
type: String,
|
2626
|
+
"default": 'date',
|
2627
|
+
validator: function validator(v) {
|
2628
|
+
if (['year', 'month', 'date', 'time'].indexOf(v) < 0) {
|
2629
|
+
console.error("selectionMode property is not valid: '".concat(v, "'"));
|
2630
|
+
return false;
|
2631
|
+
}
|
2632
|
+
return true;
|
2633
|
+
}
|
2548
2634
|
}
|
2549
2635
|
};
|
2550
2636
|
// function injectStrict<T>(key: InjectionKey<T>, fallback?: T) {
|
@@ -2640,7 +2726,8 @@ var timeProps = {
|
|
2640
2726
|
return newDate["set".concat((0,external_shared_namespaceObject.capitalize)(type))](date[type]);
|
2641
2727
|
});
|
2642
2728
|
if (isEmit) {
|
2643
|
-
|
2729
|
+
// pick 参数:dates, visible, type, isUseShortCut
|
2730
|
+
emit('pick', newDate, true, props.selectionMode);
|
2644
2731
|
}
|
2645
2732
|
}
|
2646
2733
|
function handlePickClick() {
|
@@ -2859,7 +2946,10 @@ var datePanelProps = {
|
|
2859
2946
|
state.pickerTable = getTableType(state.currentView);
|
2860
2947
|
}
|
2861
2948
|
};
|
2862
|
-
var handlePick = function handlePick(value
|
2949
|
+
var handlePick = function handlePick(value) {
|
2950
|
+
var _visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
2951
|
+
var type = arguments.length > 2 ? arguments[2] : undefined;
|
2952
|
+
var _shortcut = arguments.length > 3 ? arguments[3] : undefined;
|
2863
2953
|
var val = value;
|
2864
2954
|
if (props.selectionMode === 'year') {
|
2865
2955
|
val = new Date(value.getFullYear(), 0, 1);
|
@@ -2869,6 +2959,7 @@ var datePanelProps = {
|
|
2869
2959
|
val = new Date(value);
|
2870
2960
|
}
|
2871
2961
|
state.dates = [val];
|
2962
|
+
// pick 参数:dates, visible, type, isUseShortCut
|
2872
2963
|
emit('pick', val, false, type || props.selectionMode);
|
2873
2964
|
};
|
2874
2965
|
var handlePickSuccess = function handlePickSuccess() {
|
@@ -2882,7 +2973,7 @@ var datePanelProps = {
|
|
2882
2973
|
var handleShortcutClick = function handleShortcutClick(shortcut) {
|
2883
2974
|
if (shortcut.value) {
|
2884
2975
|
// pick 参数:dates, visible, type, isUseShortCut
|
2885
|
-
emit('pick', shortcut.value(), false,
|
2976
|
+
emit('pick', shortcut.value(), false, props.selectionMode, shortcut);
|
2886
2977
|
}
|
2887
2978
|
if (shortcut.onClick) {
|
2888
2979
|
shortcut.onClick(_this);
|
@@ -3097,6 +3188,7 @@ var datePanelProps = {
|
|
3097
3188
|
"ref": "timePickerRef",
|
3098
3189
|
"value": this.dates,
|
3099
3190
|
"format": this.format,
|
3191
|
+
"selectionMode": this.selectionMode,
|
3100
3192
|
"disabledDate": this.disabledDate,
|
3101
3193
|
"onPick": this.handlePick,
|
3102
3194
|
"onPick-click": this.handlePickClick,
|
@@ -3173,6 +3265,17 @@ var timeRangeProps = {
|
|
3173
3265
|
allowCrossDay: {
|
3174
3266
|
type: Boolean,
|
3175
3267
|
"default": false
|
3268
|
+
},
|
3269
|
+
selectionMode: {
|
3270
|
+
type: String,
|
3271
|
+
"default": 'date',
|
3272
|
+
validator: function validator(v) {
|
3273
|
+
if (['year', 'month', 'date', 'time'].indexOf(v) < 0) {
|
3274
|
+
console.error("selectionMode property is not valid: '".concat(v, "'"));
|
3275
|
+
return false;
|
3276
|
+
}
|
3277
|
+
return true;
|
3278
|
+
}
|
3176
3279
|
}
|
3177
3280
|
};
|
3178
3281
|
/* harmony default export */ const time_range = ((0,external_vue_namespaceObject.defineComponent)({
|
@@ -3195,10 +3298,10 @@ var timeRangeProps = {
|
|
3195
3298
|
return !(props.format || '').match(/mm$/);
|
3196
3299
|
});
|
3197
3300
|
var leftDatePanelLabel = (0,external_vue_namespaceObject.computed)(function () {
|
3198
|
-
return src_fecha.format(
|
3301
|
+
return src_fecha.format(dateStart, props.format);
|
3199
3302
|
});
|
3200
3303
|
var rightDatePanelLabel = (0,external_vue_namespaceObject.computed)(function () {
|
3201
|
-
return src_fecha.format(
|
3304
|
+
return src_fecha.format(dateEnd, props.format);
|
3202
3305
|
});
|
3203
3306
|
(0,external_vue_namespaceObject.watch)(function () {
|
3204
3307
|
return props.value;
|
@@ -3211,7 +3314,7 @@ var timeRangeProps = {
|
|
3211
3314
|
state.dateEnd = dateEnd || initTime();
|
3212
3315
|
});
|
3213
3316
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
3214
|
-
if (parentProvide && parentProvide.parentName === 'DatePanel') {
|
3317
|
+
if (parentProvide && (parentProvide.parentName === 'DatePanel' || parentProvide.parentName === 'DateRangePanel')) {
|
3215
3318
|
state.showDate = true;
|
3216
3319
|
}
|
3217
3320
|
});
|
@@ -3283,7 +3386,8 @@ var timeRangeProps = {
|
|
3283
3386
|
}
|
3284
3387
|
}
|
3285
3388
|
if (isEmit) {
|
3286
|
-
|
3389
|
+
// pick 参数:dates, visible, type, isUseShortCut
|
3390
|
+
emit('pick', [dateStart, dateEnd], true, props.selectionMode);
|
3287
3391
|
}
|
3288
3392
|
}
|
3289
3393
|
function handleStartChange(date) {
|
@@ -3648,6 +3752,7 @@ var dateRangePanelProps = {
|
|
3648
3752
|
* handleConfirm
|
3649
3753
|
*/
|
3650
3754
|
var handleConfirm = function handleConfirm(visible, type) {
|
3755
|
+
// pick 参数:dates, visible, type, isUseShortCut
|
3651
3756
|
emit('pick', state.dates, visible, type || props.type);
|
3652
3757
|
};
|
3653
3758
|
/**
|
@@ -3678,7 +3783,7 @@ var dateRangePanelProps = {
|
|
3678
3783
|
selecting: false
|
3679
3784
|
};
|
3680
3785
|
}
|
3681
|
-
handleConfirm(false, type ||
|
3786
|
+
handleConfirm(false, type || props.selectionMode);
|
3682
3787
|
} else {
|
3683
3788
|
state.upToNowEnable = new Date(val).getTime() < new Date().getTime();
|
3684
3789
|
state.rangeState = {
|
@@ -3724,6 +3829,7 @@ var dateRangePanelProps = {
|
|
3724
3829
|
state.rangeState.to = to;
|
3725
3830
|
state.dates = [form, to];
|
3726
3831
|
state.selectedIndex = index;
|
3832
|
+
// pick 参数:dates, visible, type, isUseShortCut
|
3727
3833
|
emit('pick', value, false, 'shortcut', shortcut);
|
3728
3834
|
if (props.shortcutClose) {
|
3729
3835
|
emit('pick-success');
|
@@ -4077,6 +4183,7 @@ var dateRangePanelProps = {
|
|
4077
4183
|
}
|
4078
4184
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), this.isTime ? (0,external_vue_namespaceObject.createVNode)(time_range, {
|
4079
4185
|
"ref": "timePickerRef",
|
4186
|
+
"selectionMode": this.selectionMode,
|
4080
4187
|
"value": this.dates,
|
4081
4188
|
"format": this.format,
|
4082
4189
|
"disabledDate": this.disabledDate,
|
@@ -4139,6 +4246,7 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4139
4246
|
|
4140
4247
|
|
4141
4248
|
|
4249
|
+
|
4142
4250
|
/* harmony default export */ const date_picker = ((0,external_vue_namespaceObject.defineComponent)({
|
4143
4251
|
name: 'DatePicker',
|
4144
4252
|
directives: {
|
@@ -4160,7 +4268,8 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4160
4268
|
if (props.shortcutSelectedIndex !== -1) {
|
4161
4269
|
shortcut = props.shortcuts[props.shortcutSelectedIndex] || null;
|
4162
4270
|
if (shortcut) {
|
4163
|
-
|
4271
|
+
var v = shortcut.value();
|
4272
|
+
initialValue = Array.isArray(v) ? v : [v];
|
4164
4273
|
}
|
4165
4274
|
}
|
4166
4275
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
@@ -4185,7 +4294,9 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4185
4294
|
internalFocus: false,
|
4186
4295
|
timeEnterMode: true,
|
4187
4296
|
shortcut: shortcut,
|
4188
|
-
onSelectionModeChange: onSelectionModeChange
|
4297
|
+
onSelectionModeChange: onSelectionModeChange,
|
4298
|
+
// for 编辑时,mouseleave 事件中缓存的 value
|
4299
|
+
tmpValue: initialValue
|
4189
4300
|
});
|
4190
4301
|
onSelectionModeChange(props.type);
|
4191
4302
|
function onSelectionModeChange(_type) {
|
@@ -4339,6 +4450,11 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4339
4450
|
emit('input', now);
|
4340
4451
|
}
|
4341
4452
|
});
|
4453
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
4454
|
+
return state.internalValue;
|
4455
|
+
}, function (v) {
|
4456
|
+
state.tmpValue = v;
|
4457
|
+
});
|
4342
4458
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
4343
4459
|
// 如果是 date-picker 那么 time-picker 就是回车模式
|
4344
4460
|
if (props.type.indexOf('date') > -1) {
|
@@ -4401,12 +4517,14 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4401
4517
|
if (visualValue !== null && visualValue !== void 0 && visualValue.value) {
|
4402
4518
|
state.showClose = true;
|
4403
4519
|
}
|
4520
|
+
state.internalValue = state.tmpValue;
|
4404
4521
|
};
|
4405
4522
|
var handleInputMouseleave = function handleInputMouseleave(_e) {
|
4406
4523
|
// if (e.toElement?.classList.contains('clear-action')) {
|
4407
4524
|
// return;
|
4408
4525
|
// }
|
4409
4526
|
state.showClose = false;
|
4527
|
+
state.internalValue = state.tmpValue;
|
4410
4528
|
};
|
4411
4529
|
var emitChange = function emitChange(type) {
|
4412
4530
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
@@ -4439,6 +4557,21 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4439
4557
|
state.forceInputRerender = state.forceInputRerender + 1;
|
4440
4558
|
}
|
4441
4559
|
};
|
4560
|
+
var handleInputInput = function handleInputInput(e) {
|
4561
|
+
var _props$disabledDate2;
|
4562
|
+
var isArrayValue = props.type.includes('range') || props.multiple;
|
4563
|
+
var oldValue = visualValue.value;
|
4564
|
+
var newValue = e.target.value;
|
4565
|
+
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
4566
|
+
var valueToTest = isArrayValue ? newDate : newDate[0];
|
4567
|
+
var isDisabled = (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
|
4568
|
+
var isValidDate = newDate.reduce(function (valid, date) {
|
4569
|
+
return valid && date instanceof Date;
|
4570
|
+
}, true);
|
4571
|
+
if (newValue !== oldValue && !isDisabled && isValidDate) {
|
4572
|
+
state.tmpValue = newDate;
|
4573
|
+
}
|
4574
|
+
};
|
4442
4575
|
var handleFocus = function handleFocus(e) {
|
4443
4576
|
if (props.readonly) {
|
4444
4577
|
return;
|
@@ -4584,8 +4717,8 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4584
4717
|
if (state.internalValue[0]) {
|
4585
4718
|
// state.focusedDate = state.internalValue[0];
|
4586
4719
|
var _state$internalValue = _slicedToArray(state.internalValue, 1),
|
4587
|
-
|
4588
|
-
state.focusedDate =
|
4720
|
+
_v = _state$internalValue[0];
|
4721
|
+
state.focusedDate = _v;
|
4589
4722
|
}
|
4590
4723
|
state.focusedTime = date_picker_objectSpread(date_picker_objectSpread({}, state.focusedTime), {}, {
|
4591
4724
|
time: state.internalValue.map(extractTime)
|
@@ -4642,6 +4775,7 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4642
4775
|
handleBlur: handleBlur,
|
4643
4776
|
handleKeydown: handleKeydown,
|
4644
4777
|
handleInputChange: handleInputChange,
|
4778
|
+
handleInputInput: handleInputInput,
|
4645
4779
|
handleClear: handleClear,
|
4646
4780
|
onPick: onPick,
|
4647
4781
|
onPickSuccess: onPickSuccess,
|
@@ -4664,51 +4798,7 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4664
4798
|
var defaultTrigger = (0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)("span", {
|
4665
4799
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
4666
4800
|
"onClick": this.handleIconClick
|
4667
|
-
}, [this.type === 'time' || this.type === 'timerange' ? (0,external_vue_namespaceObject.createVNode)("
|
4668
|
-
"class": "picker-icon",
|
4669
|
-
"x": "0px",
|
4670
|
-
"y": "0px",
|
4671
|
-
"viewBox": "0 0 1024 1024"
|
4672
|
-
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
4673
|
-
"id": "time"
|
4674
|
-
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
4675
|
-
"fill": "#c4c6cc",
|
4676
|
-
"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"
|
4677
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
4678
|
-
"fill": "#c4c6cc",
|
4679
|
-
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
4680
|
-
}, null)])]) : (0,external_vue_namespaceObject.createVNode)("svg", {
|
4681
|
-
"class": "picker-icon",
|
4682
|
-
"x": "0px",
|
4683
|
-
"y": "0px",
|
4684
|
-
"viewBox": "0 0 1024 1024"
|
4685
|
-
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
4686
|
-
"id": "date"
|
4687
|
-
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
4688
|
-
"fill": "#c4c6cc",
|
4689
|
-
"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"
|
4690
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
4691
|
-
"x": "416",
|
4692
|
-
"y": "128",
|
4693
|
-
"fill": "#c4c6cc",
|
4694
|
-
"width": "192",
|
4695
|
-
"height": "64"
|
4696
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
4697
|
-
"x": "288",
|
4698
|
-
"y": "96",
|
4699
|
-
"fill": "#c4c6cc",
|
4700
|
-
"width": "64",
|
4701
|
-
"height": "128"
|
4702
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
4703
|
-
"x": "672",
|
4704
|
-
"y": "96",
|
4705
|
-
"fill": "#c4c6cc",
|
4706
|
-
"width": "64",
|
4707
|
-
"height": "128"
|
4708
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
4709
|
-
"fill": "#c4c6cc",
|
4710
|
-
"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"
|
4711
|
-
}, null)])])]), (0,external_vue_namespaceObject.createVNode)("input", {
|
4801
|
+
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
4712
4802
|
"type": "text",
|
4713
4803
|
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4714
4804
|
"ref": "inputRef",
|
@@ -4721,7 +4811,8 @@ function date_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4721
4811
|
"onClick": this.handleFocus,
|
4722
4812
|
"onBlur": this.handleBlur,
|
4723
4813
|
"onKeydown": this.handleKeydown,
|
4724
|
-
"onChange": this.handleInputChange
|
4814
|
+
"onChange": this.handleInputChange,
|
4815
|
+
"onInput": this.handleInputInput
|
4725
4816
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
4726
4817
|
"onClick": this.handleClear,
|
4727
4818
|
"class": "clear-action"
|
@@ -4857,6 +4948,7 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4857
4948
|
|
4858
4949
|
|
4859
4950
|
|
4951
|
+
|
4860
4952
|
/* harmony default export */ const time_picker = ((0,external_vue_namespaceObject.defineComponent)({
|
4861
4953
|
name: 'TimePicker',
|
4862
4954
|
directives: {
|
@@ -4901,7 +4993,9 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
4901
4993
|
internalFocus: false,
|
4902
4994
|
timeEnterMode: true,
|
4903
4995
|
shortcut: shortcut,
|
4904
|
-
onSelectionModeChange: onSelectionModeChange
|
4996
|
+
onSelectionModeChange: onSelectionModeChange,
|
4997
|
+
// for 编辑时,mouseleave 事件中缓存的 value
|
4998
|
+
tmpValue: initialValue
|
4905
4999
|
});
|
4906
5000
|
function onSelectionModeChange(_type) {
|
4907
5001
|
var type = _type;
|
@@ -5055,6 +5149,11 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
5055
5149
|
emit('input', now);
|
5056
5150
|
}
|
5057
5151
|
});
|
5152
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
5153
|
+
return state.internalValue;
|
5154
|
+
}, function (v) {
|
5155
|
+
state.tmpValue = v;
|
5156
|
+
});
|
5058
5157
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
5059
5158
|
// 如果是 date-picker 那么 time-picker 就是回车模式
|
5060
5159
|
if (props.type.indexOf('date') > -1) {
|
@@ -5117,12 +5216,14 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
5117
5216
|
if (visualValue !== null && visualValue !== void 0 && visualValue.value) {
|
5118
5217
|
state.showClose = true;
|
5119
5218
|
}
|
5219
|
+
state.internalValue = state.tmpValue;
|
5120
5220
|
};
|
5121
5221
|
var handleInputMouseleave = function handleInputMouseleave(_e) {
|
5122
5222
|
// if (e.toElement?.classList.contains('clear-action')) {
|
5123
5223
|
// return;
|
5124
5224
|
// }
|
5125
5225
|
state.showClose = false;
|
5226
|
+
state.internalValue = state.tmpValue;
|
5126
5227
|
};
|
5127
5228
|
var emitChange = function emitChange(type) {
|
5128
5229
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
@@ -5155,6 +5256,21 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
5155
5256
|
state.forceInputRerender = state.forceInputRerender + 1;
|
5156
5257
|
}
|
5157
5258
|
};
|
5259
|
+
var handleInputInput = function handleInputInput(e) {
|
5260
|
+
var _props$disabledDate2;
|
5261
|
+
var isArrayValue = props.type.includes('range') || props.multiple;
|
5262
|
+
var oldValue = visualValue.value;
|
5263
|
+
var newValue = e.target.value;
|
5264
|
+
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
5265
|
+
var valueToTest = isArrayValue ? newDate : newDate[0];
|
5266
|
+
var isDisabled = (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
|
5267
|
+
var isValidDate = newDate.reduce(function (valid, date) {
|
5268
|
+
return valid && date instanceof Date;
|
5269
|
+
}, true);
|
5270
|
+
if (newValue !== oldValue && !isDisabled && isValidDate) {
|
5271
|
+
state.tmpValue = newDate;
|
5272
|
+
}
|
5273
|
+
};
|
5158
5274
|
var handleFocus = function handleFocus(e) {
|
5159
5275
|
if (props.readonly) {
|
5160
5276
|
return;
|
@@ -5356,6 +5472,7 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
5356
5472
|
handleBlur: handleBlur,
|
5357
5473
|
handleKeydown: handleKeydown,
|
5358
5474
|
handleInputChange: handleInputChange,
|
5475
|
+
handleInputInput: handleInputInput,
|
5359
5476
|
handleClear: handleClear,
|
5360
5477
|
handleTransferClick: handleTransferClick,
|
5361
5478
|
onPick: onPick,
|
@@ -5377,51 +5494,7 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
5377
5494
|
var defaultTrigger = (0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)("span", {
|
5378
5495
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
5379
5496
|
"onClick": this.handleIconClick
|
5380
|
-
}, [this.type === 'time' || this.type === 'timerange' ? (0,external_vue_namespaceObject.createVNode)("
|
5381
|
-
"class": "picker-icon",
|
5382
|
-
"x": "0px",
|
5383
|
-
"y": "0px",
|
5384
|
-
"viewBox": "0 0 1024 1024"
|
5385
|
-
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
5386
|
-
"id": "time"
|
5387
|
-
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
5388
|
-
"fill": "#c4c6cc",
|
5389
|
-
"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"
|
5390
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
5391
|
-
"fill": "#c4c6cc",
|
5392
|
-
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
5393
|
-
}, null)])]) : (0,external_vue_namespaceObject.createVNode)("svg", {
|
5394
|
-
"class": "picker-icon",
|
5395
|
-
"x": "0px",
|
5396
|
-
"y": "0px",
|
5397
|
-
"viewBox": "0 0 1024 1024"
|
5398
|
-
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
5399
|
-
"id": "date"
|
5400
|
-
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
5401
|
-
"fill": "#c4c6cc",
|
5402
|
-
"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"
|
5403
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
5404
|
-
"x": "416",
|
5405
|
-
"y": "128",
|
5406
|
-
"fill": "#c4c6cc",
|
5407
|
-
"width": "192",
|
5408
|
-
"height": "64"
|
5409
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
5410
|
-
"x": "288",
|
5411
|
-
"y": "96",
|
5412
|
-
"fill": "#c4c6cc",
|
5413
|
-
"width": "64",
|
5414
|
-
"height": "128"
|
5415
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
5416
|
-
"x": "672",
|
5417
|
-
"y": "96",
|
5418
|
-
"fill": "#c4c6cc",
|
5419
|
-
"width": "64",
|
5420
|
-
"height": "128"
|
5421
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
5422
|
-
"fill": "#c4c6cc",
|
5423
|
-
"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"
|
5424
|
-
}, null)])])]), (0,external_vue_namespaceObject.createVNode)("input", {
|
5497
|
+
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
5425
5498
|
"type": "text",
|
5426
5499
|
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5427
5500
|
"ref": "inputRef",
|
@@ -5434,7 +5507,8 @@ function time_picker_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
5434
5507
|
"onClick": this.handleFocus,
|
5435
5508
|
"onBlur": this.handleBlur,
|
5436
5509
|
"onKeydown": this.handleKeydown,
|
5437
|
-
"onChange": this.handleInputChange
|
5510
|
+
"onChange": this.handleInputChange,
|
5511
|
+
"onInput": this.handleInputInput
|
5438
5512
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
5439
5513
|
"onClick": this.handleClear,
|
5440
5514
|
"class": "clear-action"
|
@@ -108,7 +108,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
108
108
|
readonly default: () => {};
|
109
109
|
};
|
110
110
|
}, {
|
111
|
-
panelPickerHandlers: import("vue").ComputedRef<(value: any, type: any) => void>;
|
111
|
+
panelPickerHandlers: import("vue").ComputedRef<(value: any, _visible: boolean, type: any, _shortcut: any) => void>;
|
112
112
|
datePanelLabel: import("vue").ComputedRef<{
|
113
113
|
separator: any;
|
114
114
|
labels: any[];
|
@@ -126,7 +126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
126
126
|
handleToggleTime: () => void;
|
127
127
|
handlePickSuccess: () => void;
|
128
128
|
handlePickClear: () => void;
|
129
|
-
handlePick: (value: any, type: any) => void;
|
129
|
+
handlePick: (value: any, _visible: boolean, type: any, _shortcut: any) => void;
|
130
130
|
handlePickClick: () => void;
|
131
131
|
timePickerRef: any;
|
132
132
|
resolveClassName: (cls: string) => string;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import { SelectionModeType } from '../interface';
|
2
3
|
declare const timeRangeProps: {
|
3
4
|
steps: {
|
4
5
|
type: PropType<number[]>;
|
@@ -16,6 +17,11 @@ declare const timeRangeProps: {
|
|
16
17
|
type: BooleanConstructor;
|
17
18
|
default: boolean;
|
18
19
|
};
|
20
|
+
selectionMode: {
|
21
|
+
type: PropType<SelectionModeType>;
|
22
|
+
default: string;
|
23
|
+
validator(v: any): boolean;
|
24
|
+
};
|
19
25
|
};
|
20
26
|
export type TimeRangePanelProps = Readonly<ExtractPropTypes<typeof timeRangeProps>>;
|
21
27
|
declare const _default: import("vue").DefineComponent<{
|
@@ -35,6 +41,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
41
|
type: BooleanConstructor;
|
36
42
|
default: boolean;
|
37
43
|
};
|
44
|
+
selectionMode: {
|
45
|
+
type: PropType<SelectionModeType>;
|
46
|
+
default: string;
|
47
|
+
validator(v: any): boolean;
|
48
|
+
};
|
38
49
|
disabledHours: {
|
39
50
|
readonly type: ArrayConstructor;
|
40
51
|
readonly default: () => any[];
|
@@ -322,6 +333,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
322
333
|
type: BooleanConstructor;
|
323
334
|
default: boolean;
|
324
335
|
};
|
336
|
+
selectionMode: {
|
337
|
+
type: PropType<SelectionModeType>;
|
338
|
+
default: string;
|
339
|
+
validator(v: any): boolean;
|
340
|
+
};
|
325
341
|
disabledHours: {
|
326
342
|
readonly type: ArrayConstructor;
|
327
343
|
readonly default: () => any[];
|
@@ -492,5 +508,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
492
508
|
disabledSeconds: unknown[];
|
493
509
|
hideDisabledOptions: boolean;
|
494
510
|
enterMode: boolean;
|
511
|
+
selectionMode: SelectionModeType;
|
495
512
|
}, {}>;
|
496
513
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
import { IDisabledHMS } from '../interface';
|
2
|
+
import { IDisabledHMS, SelectionModeType } from '../interface';
|
3
3
|
declare const timeProps: {
|
4
4
|
disabledDate: {
|
5
5
|
type: FunctionConstructor;
|
@@ -21,6 +21,11 @@ declare const timeProps: {
|
|
21
21
|
type: BooleanConstructor;
|
22
22
|
default: boolean;
|
23
23
|
};
|
24
|
+
selectionMode: {
|
25
|
+
type: PropType<SelectionModeType>;
|
26
|
+
default: string;
|
27
|
+
validator(v: any): boolean;
|
28
|
+
};
|
24
29
|
};
|
25
30
|
export type TimePanelProps = Readonly<ExtractPropTypes<typeof timeProps>>;
|
26
31
|
declare const _default: import("vue").DefineComponent<{
|
@@ -44,6 +49,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
49
|
type: BooleanConstructor;
|
45
50
|
default: boolean;
|
46
51
|
};
|
52
|
+
selectionMode: {
|
53
|
+
type: PropType<SelectionModeType>;
|
54
|
+
default: string;
|
55
|
+
validator(v: any): boolean;
|
56
|
+
};
|
47
57
|
disabledHours: {
|
48
58
|
readonly type: ArrayConstructor;
|
49
59
|
readonly default: () => any[];
|
@@ -273,6 +283,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
273
283
|
type: BooleanConstructor;
|
274
284
|
default: boolean;
|
275
285
|
};
|
286
|
+
selectionMode: {
|
287
|
+
type: PropType<SelectionModeType>;
|
288
|
+
default: string;
|
289
|
+
validator(v: any): boolean;
|
290
|
+
};
|
276
291
|
disabledHours: {
|
277
292
|
readonly type: ArrayConstructor;
|
278
293
|
readonly default: () => any[];
|
@@ -448,5 +463,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
448
463
|
disabledSeconds: unknown[];
|
449
464
|
hideDisabledOptions: boolean;
|
450
465
|
enterMode: boolean;
|
466
|
+
selectionMode: SelectionModeType;
|
451
467
|
}, {}>;
|
452
468
|
export default _default;
|