bkui-vue 2.0.1-beta.12 → 2.0.1-beta.14
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 +165 -165
- package/dist/index.esm.js +31253 -31265
- package/dist/index.umd.js +165 -165
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/index.js +1 -1
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -7
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.js +31 -32
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/color-picker/index.js +44 -44
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/index.js +6 -7
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/index.js +190 -188
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +5 -5
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +18 -18
- package/lib/dialog/index.d.ts +40 -40
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +7 -7
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -166
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- 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.d.ts +5 -5
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- 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/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/index.js +14 -15
- 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.d.ts +1 -1
- package/lib/image/index.js +20 -21
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.js +13 -13
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/index.d.ts +3 -3
- package/lib/modal/index.js +7 -7
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/index.js +4 -4
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +61 -11
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -16
- 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 +18 -20
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +9 -9
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +4 -4
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -20
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -11
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.js +10 -10
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +7 -8
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +0 -1
- package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
- package/lib/search-select/index.js +66 -66
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/selected.d.ts +1 -1
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/index.d.ts +61 -61
- package/lib/select/index.js +69 -75
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.d.ts +24 -24
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +38 -46
- 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 +3 -3
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.js +21 -23
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/swiper/index.js +5 -5
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/table/components/table-column.d.ts +27 -87
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +194 -244
- package/lib/table/index.js +124 -128
- package/lib/table/props.d.ts +33 -33
- package/lib/table/table.d.ts +47 -47
- package/lib/table/use-attributes.d.ts +3 -3
- package/lib/table/use-column.d.ts +9 -129
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +42 -172
- package/lib/table-column/index.js +18 -18
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- 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.d.ts +4 -4
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/timeline/index.js +2 -2
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +36 -36
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +6 -6
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/upload/index.js +25 -26
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +6 -6
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/package.json +13 -49
package/lib/date-picker/index.js
CHANGED
@@ -173,7 +173,7 @@ function _toConsumableArray(arr) {
|
|
173
173
|
;// CONCATENATED MODULE: external "vue"
|
174
174
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
175
175
|
var external_vue_y = x => () => x
|
176
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
176
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
177
177
|
;// CONCATENATED MODULE: external "../config-provider"
|
178
178
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
179
179
|
var config_provider_y = x => () => x
|
@@ -431,8 +431,8 @@ var pickerDropdownProps = {
|
|
431
431
|
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
432
432
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
433
433
|
"ref": "refContentRef",
|
434
|
-
"class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
|
435
434
|
"style": this.styles,
|
435
|
+
"class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
|
436
436
|
"onClick": this.onClick
|
437
437
|
}, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '']);
|
438
438
|
}
|
@@ -448,46 +448,46 @@ var pickerDropdownProps = {
|
|
448
448
|
*/
|
449
449
|
var dateIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
450
450
|
"class": "picker-icon",
|
451
|
+
"viewBox": "0 0 1024 1024",
|
451
452
|
"x": "0px",
|
452
|
-
"y": "0px"
|
453
|
-
"viewBox": "0 0 1024 1024"
|
453
|
+
"y": "0px"
|
454
454
|
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
455
455
|
"id": "date"
|
456
456
|
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
457
|
-
"
|
458
|
-
"
|
457
|
+
"d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z",
|
458
|
+
"fill": "#c4c6cc"
|
459
459
|
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
460
|
-
"x": "416",
|
461
|
-
"y": "128",
|
462
|
-
"fill": "#c4c6cc",
|
463
460
|
"width": "192",
|
464
|
-
"height": "64"
|
465
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
466
|
-
"x": "288",
|
467
|
-
"y": "96",
|
461
|
+
"height": "64",
|
468
462
|
"fill": "#c4c6cc",
|
469
|
-
"
|
470
|
-
"
|
463
|
+
"x": "416",
|
464
|
+
"y": "128"
|
471
465
|
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
472
|
-
"
|
473
|
-
"
|
466
|
+
"width": "64",
|
467
|
+
"height": "128",
|
474
468
|
"fill": "#c4c6cc",
|
469
|
+
"x": "288",
|
470
|
+
"y": "96"
|
471
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
475
472
|
"width": "64",
|
476
|
-
"height": "128"
|
473
|
+
"height": "128",
|
474
|
+
"fill": "#c4c6cc",
|
475
|
+
"x": "672",
|
476
|
+
"y": "96"
|
477
477
|
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
478
478
|
"fill": "#c4c6cc",
|
479
479
|
"points": "403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"
|
480
480
|
}, null)])])]);
|
481
481
|
var timeIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
482
482
|
"class": "picker-icon",
|
483
|
+
"viewBox": "0 0 1024 1024",
|
483
484
|
"x": "0px",
|
484
|
-
"y": "0px"
|
485
|
-
"viewBox": "0 0 1024 1024"
|
485
|
+
"y": "0px"
|
486
486
|
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
487
487
|
"id": "time"
|
488
488
|
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
489
|
-
"
|
490
|
-
"
|
489
|
+
"d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z",
|
490
|
+
"fill": "#c4c6cc"
|
491
491
|
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
492
492
|
"fill": "#c4c6cc",
|
493
493
|
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
@@ -603,17 +603,17 @@ var confirmProps = {
|
|
603
603
|
_this$$slots$confirm2,
|
604
604
|
_this$$slots;
|
605
605
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
606
|
-
"class": this.resolveClassName('picker-confirm'),
|
607
606
|
"ref": "elRef",
|
607
|
+
"class": this.resolveClassName('picker-confirm'),
|
608
608
|
"onKeydown": this.handleTab
|
609
609
|
}, [this.showTime ? // <a href="javascript: void(0);" class="bk-picker-confirm-time" disabled onClick={this.handleToggleTime}>
|
610
610
|
// {this.labels.time}
|
611
611
|
// </a>
|
612
612
|
(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
613
|
-
"text": true,
|
614
|
-
"theme": "primary",
|
615
613
|
"class": this.resolveClassName('picker-confirm-time'),
|
616
614
|
"disabled": this.timeDisabled,
|
615
|
+
"theme": "primary",
|
616
|
+
"text": true,
|
617
617
|
"onClick": this.handleToggleTime
|
618
618
|
}, {
|
619
619
|
"default": function _default() {
|
@@ -625,12 +625,13 @@ var confirmProps = {
|
|
625
625
|
"href": "javascript: void(0);",
|
626
626
|
"onClick": this.handleClear,
|
627
627
|
"onKeydown": this.handleClear
|
628
|
-
}, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", {
|
629
|
-
"href": "javascript: void(0);",
|
628
|
+
}, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", (0,external_vue_namespaceObject.mergeProps)({
|
630
629
|
"class": "confirm",
|
631
|
-
"
|
632
|
-
"
|
633
|
-
},
|
630
|
+
"href": "javascript: void(0);",
|
631
|
+
"onClick": this.handleSuccess
|
632
|
+
}, {
|
633
|
+
onKeydown_enter: this.handleSuccess
|
634
|
+
}), [this.labels.ok])])]);
|
634
635
|
}
|
635
636
|
}));
|
636
637
|
;// CONCATENATED MODULE: external "js-calendar"
|
@@ -667,7 +668,6 @@ const external_date_fns_namespaceObject = external_date_fns_x({ ["format"]: () =
|
|
667
668
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
668
669
|
* IN THE SOFTWARE.
|
669
670
|
*/
|
670
|
-
/* eslint-disable no-param-reassign, no-multi-assign */
|
671
671
|
/**
|
672
672
|
* @file fecha
|
673
673
|
* https://github.com/taylorhakes/fecha
|
@@ -677,7 +677,6 @@ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^
|
|
677
677
|
var twoDigits = /\d\d?/;
|
678
678
|
var threeDigits = /\d{3}/;
|
679
679
|
var fourDigits = /\d{4}/;
|
680
|
-
// eslint-disable-next-line max-len
|
681
680
|
var word = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
|
682
681
|
var noop = function noop() {};
|
683
682
|
function shorten(arr, sLen) {
|
@@ -2544,18 +2543,18 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2544
2543
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2545
2544
|
"class": this.resolveClassName('time-picker-cells-title-wrapper')
|
2546
2545
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2547
|
-
"
|
2548
|
-
"
|
2546
|
+
"style": this.styles,
|
2547
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 0 ? 'active' : '']
|
2549
2548
|
}, [this.t.hour]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2550
|
-
"
|
2551
|
-
"
|
2549
|
+
"style": this.styles,
|
2550
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 1 ? 'active' : '']
|
2552
2551
|
}, [this.t.min]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2553
|
-
"
|
2554
|
-
"
|
2552
|
+
"style": this.styles,
|
2553
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 2 ? 'active' : '']
|
2555
2554
|
}, [this.t.sec]), [[external_vue_namespaceObject.vShow, this.showSeconds]])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2556
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2557
2555
|
"ref": "hoursRef",
|
2558
|
-
"style": this.styles
|
2556
|
+
"style": this.styles,
|
2557
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2559
2558
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2560
2559
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2561
2560
|
}, [this.hoursList.map(function (item) {
|
@@ -2566,9 +2565,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2566
2565
|
}
|
2567
2566
|
}, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
|
2568
2567
|
})])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2569
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2570
2568
|
"ref": "minutesRef",
|
2571
|
-
"style": this.styles
|
2569
|
+
"style": this.styles,
|
2570
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2572
2571
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2573
2572
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2574
2573
|
}, [this.minutesList.map(function (item) {
|
@@ -2579,9 +2578,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2579
2578
|
}
|
2580
2579
|
}, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
|
2581
2580
|
})])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2582
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2583
2581
|
"ref": "secondsRef",
|
2584
|
-
"style": this.styles
|
2582
|
+
"style": this.styles,
|
2583
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2585
2584
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2586
2585
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2587
2586
|
}, [this.secondsList.map(function (item) {
|
@@ -2790,27 +2789,27 @@ var timeProps = {
|
|
2790
2789
|
e.preventDefault();
|
2791
2790
|
}
|
2792
2791
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2793
|
-
"class": this.resolveClassName('picker-panel-body'),
|
2794
2792
|
"style": {
|
2795
2793
|
width: "".concat(this.width, "px")
|
2796
|
-
}
|
2794
|
+
},
|
2795
|
+
"class": this.resolveClassName('picker-panel-body')
|
2797
2796
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
2798
2797
|
"class": this.resolveClassName('time-picker-header')
|
2799
2798
|
}, [this.visibleDate]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
2800
2799
|
"class": this.resolveClassName('picker-panel-content')
|
2801
2800
|
}, [(0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
2802
2801
|
"ref": "timeSpinnerRef",
|
2803
|
-
"showSeconds": this.showSeconds,
|
2804
|
-
"steps": this.steps,
|
2805
|
-
"hours": this.timeSlots[0],
|
2806
|
-
"minutes": this.timeSlots[1],
|
2807
|
-
"seconds": this.timeSlots[2],
|
2808
2802
|
"disabledHours": this.disabledHMS.disabledHours,
|
2809
2803
|
"disabledMinutes": this.disabledHMS.disabledMinutes,
|
2810
2804
|
"disabledSeconds": this.disabledHMS.disabledSeconds,
|
2811
2805
|
"hideDisabledOptions": this.hideDisabledOptions,
|
2812
|
-
"
|
2813
|
-
"
|
2806
|
+
"hours": this.timeSlots[0],
|
2807
|
+
"minutes": this.timeSlots[1],
|
2808
|
+
"seconds": this.timeSlots[2],
|
2809
|
+
"showSeconds": this.showSeconds,
|
2810
|
+
"steps": this.steps,
|
2811
|
+
"onChange": this.handleChange,
|
2812
|
+
"onPick-click": this.handlePickClick
|
2814
2813
|
}, null)])])]);
|
2815
2814
|
}
|
2816
2815
|
}));
|
@@ -2844,6 +2843,7 @@ function date_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2844
2843
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2845
2844
|
* IN THE SOFTWARE.
|
2846
2845
|
*/
|
2846
|
+
// import type { Placement } from '@popperjs/core';
|
2847
2847
|
|
2848
2848
|
|
2849
2849
|
|
@@ -3129,8 +3129,8 @@ var datePanelProps = {
|
|
3129
3129
|
}
|
3130
3130
|
}, [shortcut.text]);
|
3131
3131
|
})]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
3132
|
-
"
|
3133
|
-
"
|
3132
|
+
"style": "width: 261px;",
|
3133
|
+
"class": this.resolveClassName('picker-panel-body')
|
3134
3134
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
3135
3135
|
"class": this.resolveClassName('date-picker-header')
|
3136
3136
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -3193,29 +3193,29 @@ var datePanelProps = {
|
|
3193
3193
|
switch (_this2.pickerTable) {
|
3194
3194
|
case 'date-table':
|
3195
3195
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
3196
|
-
"tableDate": _this2.panelDate,
|
3197
3196
|
"disabledDate": _this2.disabledDate,
|
3198
|
-
"selectionMode": _this2.selectionMode,
|
3199
|
-
"modelValue": _this2.dates,
|
3200
3197
|
"focusedDate": _this2.focusedDate,
|
3198
|
+
"modelValue": _this2.dates,
|
3199
|
+
"selectionMode": _this2.selectionMode,
|
3200
|
+
"tableDate": _this2.panelDate,
|
3201
3201
|
"onPick": _this2.panelPickerHandlers
|
3202
3202
|
}, null);
|
3203
3203
|
case 'year-table':
|
3204
3204
|
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
3205
|
-
"tableDate": _this2.panelDate,
|
3206
3205
|
"disabledDate": _this2.disabledDate,
|
3207
|
-
"selectionMode": _this2.selectionMode,
|
3208
|
-
"modelValue": _this2.dates,
|
3209
3206
|
"focusedDate": _this2.focusedDate,
|
3207
|
+
"modelValue": _this2.dates,
|
3208
|
+
"selectionMode": _this2.selectionMode,
|
3209
|
+
"tableDate": _this2.panelDate,
|
3210
3210
|
"onPick": _this2.panelPickerHandlers
|
3211
3211
|
}, null);
|
3212
3212
|
case 'month-table':
|
3213
3213
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
3214
|
-
"tableDate": _this2.panelDate,
|
3215
3214
|
"disabledDate": _this2.disabledDate,
|
3216
|
-
"selectionMode": _this2.selectionMode,
|
3217
|
-
"modelValue": _this2.dates,
|
3218
3215
|
"focusedDate": _this2.focusedDate,
|
3216
|
+
"modelValue": _this2.dates,
|
3217
|
+
"selectionMode": _this2.selectionMode,
|
3218
|
+
"tableDate": _this2.panelDate,
|
3219
3219
|
"onPick": _this2.panelPickerHandlers
|
3220
3220
|
}, null);
|
3221
3221
|
default:
|
@@ -3223,23 +3223,23 @@ var datePanelProps = {
|
|
3223
3223
|
}
|
3224
3224
|
}() : (0,external_vue_namespaceObject.createVNode)(time, {
|
3225
3225
|
"ref": "timePickerRef",
|
3226
|
-
"
|
3226
|
+
"disabledDate": this.disabledDate,
|
3227
3227
|
"format": this.format,
|
3228
3228
|
"selectionMode": this.selectionMode,
|
3229
|
-
"
|
3229
|
+
"value": this.dates,
|
3230
3230
|
"onPick": this.handlePick,
|
3231
|
-
"onPick-click": this.handlePickClick,
|
3232
3231
|
"onPick-clear": this.handlePickClear,
|
3232
|
+
"onPick-click": this.handlePickClick,
|
3233
3233
|
"onPick-success": this.handlePickSuccess,
|
3234
3234
|
"onPick-toggle-time": this.handleToggleTime
|
3235
3235
|
}, null)]), this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
|
3236
3236
|
"clearable": this.clearable,
|
3237
|
+
"isTime": this.isTime,
|
3237
3238
|
"showTime": this.showTime,
|
3238
3239
|
"timeDisabled": this.timeDisabled,
|
3239
|
-
"isTime": this.isTime,
|
3240
|
-
"onPick-toggle-time": this.handleToggleTime,
|
3241
3240
|
"onPick-clear": this.handlePickClear,
|
3242
|
-
"onPick-success": this.handlePickSuccess
|
3241
|
+
"onPick-success": this.handlePickSuccess,
|
3242
|
+
"onPick-toggle-time": this.handleToggleTime
|
3243
3243
|
}, this.$slots) : '']), this.hasShortcuts ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3244
3244
|
"class": this.resolveClassName('picker-panel-sidebar')
|
3245
3245
|
}, [(_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]);
|
@@ -3462,48 +3462,48 @@ var timeRangeProps = {
|
|
3462
3462
|
e.preventDefault();
|
3463
3463
|
}
|
3464
3464
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3465
|
-
"class": this.resolveClassName('picker-panel-body'),
|
3466
3465
|
"style": {
|
3467
3466
|
width: "".concat(this.width * 2, "px")
|
3468
|
-
}
|
3467
|
+
},
|
3468
|
+
"class": this.resolveClassName('picker-panel-body')
|
3469
3469
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3470
|
-
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')],
|
3471
3470
|
"style": {
|
3472
3471
|
width: "".concat(this.width, "px")
|
3473
|
-
}
|
3472
|
+
},
|
3473
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
|
3474
3474
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3475
3475
|
"class": "".concat(this.resolveClassName('time-picker-header'))
|
3476
3476
|
}, [this.leftDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
3477
3477
|
"ref": "timeSpinnerRef",
|
3478
|
-
"steps": this.steps,
|
3479
|
-
"showSeconds": this.showSeconds,
|
3480
|
-
"hours": this.value[0] && this.dateStart.getHours(),
|
3481
|
-
"minutes": this.value[0] && this.dateStart.getMinutes(),
|
3482
|
-
"seconds": this.value[0] && this.dateStart.getSeconds(),
|
3483
3478
|
"disabledHours": this.disabledHours,
|
3484
3479
|
"disabledMinutes": this.disabledMinutes,
|
3485
3480
|
"disabledSeconds": this.disabledSeconds,
|
3486
3481
|
"hideDisabledOptions": this.hideDisabledOptions,
|
3482
|
+
"hours": this.value[0] && this.dateStart.getHours(),
|
3483
|
+
"minutes": this.value[0] && this.dateStart.getMinutes(),
|
3484
|
+
"seconds": this.value[0] && this.dateStart.getSeconds(),
|
3485
|
+
"showSeconds": this.showSeconds,
|
3486
|
+
"steps": this.steps,
|
3487
3487
|
"onChange": this.handleStartChange,
|
3488
3488
|
"onPick-click": this.handlePickClick
|
3489
3489
|
}, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3490
|
-
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')],
|
3491
3490
|
"style": {
|
3492
3491
|
width: "".concat(this.width, "px")
|
3493
|
-
}
|
3492
|
+
},
|
3493
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
|
3494
3494
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3495
3495
|
"class": this.resolveClassName('time-picker-header')
|
3496
3496
|
}, [this.rightDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
3497
3497
|
"ref": "timeSpinnerEndRef",
|
3498
|
-
"steps": this.steps,
|
3499
|
-
"showSeconds": this.showSeconds,
|
3500
|
-
"hours": this.value[1] && this.dateEnd.getHours(),
|
3501
|
-
"minutes": this.value[1] && this.dateEnd.getMinutes(),
|
3502
|
-
"seconds": this.value[1] && this.dateEnd.getSeconds(),
|
3503
3498
|
"disabledHours": this.disabledHours,
|
3504
3499
|
"disabledMinutes": this.disabledMinutes,
|
3505
3500
|
"disabledSeconds": this.disabledSeconds,
|
3506
3501
|
"hideDisabledOptions": this.hideDisabledOptions,
|
3502
|
+
"hours": this.value[1] && this.dateEnd.getHours(),
|
3503
|
+
"minutes": this.value[1] && this.dateEnd.getMinutes(),
|
3504
|
+
"seconds": this.value[1] && this.dateEnd.getSeconds(),
|
3505
|
+
"showSeconds": this.showSeconds,
|
3506
|
+
"steps": this.steps,
|
3507
3507
|
"onChange": this.handleEndChange,
|
3508
3508
|
"onPick-click": this.handlePickClick
|
3509
3509
|
}, null)])])]);
|
@@ -3515,6 +3515,7 @@ var timeRangeProps = {
|
|
3515
3515
|
|
3516
3516
|
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; }
|
3517
3517
|
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; }
|
3518
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3518
3519
|
/*
|
3519
3520
|
* Tencent is pleased to support the open source community by making
|
3520
3521
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3541,10 +3542,9 @@ function date_range_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
3541
3542
|
* IN THE SOFTWARE.
|
3542
3543
|
*/
|
3543
3544
|
// import type { Placement } from '@popperjs/core';
|
3544
|
-
// import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
|
3545
|
-
|
3546
3545
|
|
3547
3546
|
|
3547
|
+
// import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
|
3548
3548
|
|
3549
3549
|
|
3550
3550
|
|
@@ -4075,8 +4075,8 @@ var dateRangePanelProps = {
|
|
4075
4075
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
4076
4076
|
"class": [this.resolveClassName('picker-panel-body'), this.showTime ? this.resolveClassName('picker-panel-body-time') : this.resolveClassName('picker-panel-body-date')]
|
4077
4077
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4078
|
-
"
|
4079
|
-
"
|
4078
|
+
"style": "width: 261px;",
|
4079
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
|
4080
4080
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4081
4081
|
"class": this.resolveClassName('date-picker-header')
|
4082
4082
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -4137,34 +4137,34 @@ var dateRangePanelProps = {
|
|
4137
4137
|
switch (_this.leftPickerTable) {
|
4138
4138
|
case 'date-table':
|
4139
4139
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
4140
|
-
"selectionMode": "range",
|
4141
|
-
"tableDate": _this.leftPanelDate,
|
4142
4140
|
"disabledDate": _this.disabledDate,
|
4143
|
-
"rangeState": _this.rangeState,
|
4144
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4145
4141
|
"focusedDate": _this.focusedDate,
|
4142
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4143
|
+
"rangeState": _this.rangeState,
|
4144
|
+
"selectionMode": "range",
|
4145
|
+
"tableDate": _this.leftPanelDate,
|
4146
4146
|
"onChangeRange": _this.handleChangeRange,
|
4147
4147
|
"onPick": _this.panelPickerHandlers.left
|
4148
4148
|
}, null);
|
4149
4149
|
case 'month-table':
|
4150
4150
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
4151
|
-
"selectionMode": "range",
|
4152
|
-
"tableDate": _this.leftPanelDate,
|
4153
4151
|
"disabledDate": _this.disabledDate,
|
4154
|
-
"rangeState": _this.rangeState,
|
4155
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4156
4152
|
"focusedDate": _this.focusedDate,
|
4153
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4154
|
+
"rangeState": _this.rangeState,
|
4155
|
+
"selectionMode": "range",
|
4156
|
+
"tableDate": _this.leftPanelDate,
|
4157
4157
|
"onChangeRange": _this.handleChangeRange,
|
4158
4158
|
"onPick": _this.panelPickerHandlers.left
|
4159
4159
|
}, null);
|
4160
4160
|
case 'year-table':
|
4161
4161
|
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
4162
|
-
"selectionMode": "range",
|
4163
|
-
"tableDate": _this.leftPanelDate,
|
4164
4162
|
"disabledDate": _this.disabledDate,
|
4165
|
-
"rangeState": _this.rangeState,
|
4166
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4167
4163
|
"focusedDate": _this.focusedDate,
|
4164
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4165
|
+
"rangeState": _this.rangeState,
|
4166
|
+
"selectionMode": "range",
|
4167
|
+
"tableDate": _this.leftPanelDate,
|
4168
4168
|
"onChangeRange": _this.handleChangeRange,
|
4169
4169
|
"onPick": _this.panelPickerHandlers.left
|
4170
4170
|
}, null);
|
@@ -4172,8 +4172,8 @@ var dateRangePanelProps = {
|
|
4172
4172
|
return null;
|
4173
4173
|
}
|
4174
4174
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4175
|
-
"
|
4176
|
-
"
|
4175
|
+
"style": "width: 261px;",
|
4176
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
|
4177
4177
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4178
4178
|
"class": this.resolveClassName('date-picker-header')
|
4179
4179
|
}, [this.splitPanels || this.rightPickerTable !== 'date-table' && this.rightPickerTable !== 'month-table' && this.rightPickerTable !== 'year-table' ? (0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -4246,34 +4246,34 @@ var dateRangePanelProps = {
|
|
4246
4246
|
switch (_this.rightPickerTable) {
|
4247
4247
|
case 'date-table':
|
4248
4248
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
4249
|
-
"selectionMode": "range",
|
4250
|
-
"tableDate": _this.rightPanelDate,
|
4251
|
-
"disabledDate": _this.disabledDate,
|
4252
|
-
"rangeState": _this.rangeState,
|
4253
4249
|
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4250
|
+
"disabledDate": _this.disabledDate,
|
4254
4251
|
"focusedDate": _this.focusedDate,
|
4252
|
+
"rangeState": _this.rangeState,
|
4253
|
+
"selectionMode": "range",
|
4254
|
+
"tableDate": _this.rightPanelDate,
|
4255
4255
|
"onChangeRange": _this.handleChangeRange,
|
4256
4256
|
"onPick": _this.panelPickerHandlers.right
|
4257
4257
|
}, null);
|
4258
4258
|
case 'month-table':
|
4259
4259
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
4260
|
-
"selectionMode": "range",
|
4261
|
-
"tableDate": _this.rightPanelDate,
|
4262
|
-
"disabledDate": _this.disabledDate,
|
4263
|
-
"rangeState": _this.rangeState,
|
4264
4260
|
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4261
|
+
"disabledDate": _this.disabledDate,
|
4265
4262
|
"focusedDate": _this.focusedDate,
|
4263
|
+
"rangeState": _this.rangeState,
|
4264
|
+
"selectionMode": "range",
|
4265
|
+
"tableDate": _this.rightPanelDate,
|
4266
4266
|
"onChangeRange": _this.handleChangeRange,
|
4267
4267
|
"onPick": _this.panelPickerHandlers.right
|
4268
4268
|
}, null);
|
4269
4269
|
case 'year-table':
|
4270
4270
|
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
4271
|
-
"selectionMode": "range",
|
4272
|
-
"tableDate": _this.rightPanelDate,
|
4273
|
-
"disabledDate": _this.disabledDate,
|
4274
|
-
"rangeState": _this.rangeState,
|
4275
4271
|
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4272
|
+
"disabledDate": _this.disabledDate,
|
4276
4273
|
"focusedDate": _this.focusedDate,
|
4274
|
+
"rangeState": _this.rangeState,
|
4275
|
+
"selectionMode": "range",
|
4276
|
+
"tableDate": _this.rightPanelDate,
|
4277
4277
|
"onChangeRange": _this.handleChangeRange,
|
4278
4278
|
"onPick": _this.panelPickerHandlers.right
|
4279
4279
|
}, null);
|
@@ -4282,23 +4282,23 @@ var dateRangePanelProps = {
|
|
4282
4282
|
}
|
4283
4283
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), this.isTime ? (0,external_vue_namespaceObject.createVNode)(time_range, {
|
4284
4284
|
"ref": "timePickerRef",
|
4285
|
+
"disabledDate": this.disabledDate,
|
4286
|
+
"format": this.format,
|
4285
4287
|
"selectionMode": this.selectionMode,
|
4286
4288
|
"value": this.dates,
|
4287
|
-
"format": this.format,
|
4288
|
-
"disabledDate": this.disabledDate,
|
4289
4289
|
"onPick": this.handleRangePick,
|
4290
|
-
"onPick-click": this.handlePickClick,
|
4291
4290
|
"onPick-clear": this.handlePickClear,
|
4291
|
+
"onPick-click": this.handlePickClick,
|
4292
4292
|
"onPick-success": this.handlePickSuccess,
|
4293
4293
|
"onPick-toggle-time": this.handleToggleTime
|
4294
4294
|
}, null) : '', this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
|
4295
4295
|
"clearable": this.clearable,
|
4296
|
+
"isTime": this.isTime,
|
4296
4297
|
"showTime": this.showTime,
|
4297
4298
|
"timeDisabled": this.timeDisabled,
|
4298
|
-
"isTime": this.isTime,
|
4299
|
-
"onPick-toggle-time": this.handleToggleTime,
|
4300
4299
|
"onPick-clear": this.handlePickClear,
|
4301
|
-
"onPick-success": this.handlePickSuccess
|
4300
|
+
"onPick-success": this.handlePickSuccess,
|
4301
|
+
"onPick-toggle-time": this.handleToggleTime
|
4302
4302
|
}, this.$slots) : '']), shortcuts]);
|
4303
4303
|
}
|
4304
4304
|
}));
|
@@ -4342,6 +4342,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4342
4342
|
|
4343
4343
|
|
4344
4344
|
|
4345
|
+
// import VueTypes, { toType, toValidableType } from 'vue-types';
|
4345
4346
|
|
4346
4347
|
|
4347
4348
|
|
@@ -4602,7 +4603,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4602
4603
|
if (state.visible) {
|
4603
4604
|
var _pickerPanelRef$value;
|
4604
4605
|
var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
|
4605
|
-
if (e && pickerPanel && pickerPanel.contains(e.target)) {
|
4606
|
+
if (e && pickerPanel !== null && pickerPanel !== void 0 && pickerPanel.contains(e.target)) {
|
4606
4607
|
return;
|
4607
4608
|
}
|
4608
4609
|
state.visible = false;
|
@@ -4907,23 +4908,23 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4907
4908
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
4908
4909
|
"onClick": this.handleIconClick
|
4909
4910
|
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
4910
|
-
"type": "text",
|
4911
|
-
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4912
|
-
"ref": "inputRef",
|
4913
4911
|
"key": this.forceInputRerender,
|
4914
|
-
"
|
4912
|
+
"ref": "inputRef",
|
4913
|
+
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4915
4914
|
"disabled": this.disabled,
|
4916
4915
|
"placeholder": this.placeholder,
|
4916
|
+
"readonly": this.localReadonly,
|
4917
|
+
"type": "text",
|
4917
4918
|
"value": this.displayValue,
|
4918
|
-
"onFocus": this.handleFocus,
|
4919
|
-
"onClick": this.handleFocus,
|
4920
4919
|
"onBlur": this.handleBlur,
|
4921
|
-
"onKeydown": this.handleKeydown,
|
4922
4920
|
"onChange": this.handleInputChange,
|
4923
|
-
"
|
4921
|
+
"onClick": this.handleFocus,
|
4922
|
+
"onFocus": this.handleFocus,
|
4923
|
+
"onInput": this.handleInputInput,
|
4924
|
+
"onKeydown": this.handleKeydown
|
4924
4925
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
4925
|
-
"
|
4926
|
-
"
|
4926
|
+
"class": "clear-action",
|
4927
|
+
"onClick": this.handleClear
|
4927
4928
|
}, null) : '']);
|
4928
4929
|
// const shortcutsSlot = this.hasShortcuts ? { shortcuts: () => this.$slots.shortcuts?.() || null } : {};
|
4929
4930
|
var shortcutsSlot = this.hasShortcuts ? {
|
@@ -4946,8 +4947,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4946
4947
|
"onMouseenter": this.handleInputMouseenter,
|
4947
4948
|
"onMouseleave": this.handleInputMouseleave
|
4948
4949
|
}, [(_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, {
|
4949
|
-
"
|
4950
|
-
"
|
4950
|
+
"disabled": !this.appendToBody,
|
4951
|
+
"to": this.teleportTo
|
4951
4952
|
}, {
|
4952
4953
|
"default": function _default() {
|
4953
4954
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
@@ -4955,48 +4956,48 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4955
4956
|
}, {
|
4956
4957
|
"default": function _default() {
|
4957
4958
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
|
4958
|
-
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
4959
4959
|
"ref": "pickerDropdownRef",
|
4960
|
-
"
|
4961
|
-
"
|
4960
|
+
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
4961
|
+
"appendToBody": _this.appendToBody,
|
4962
4962
|
"extPopoverCls": _this.extPopoverCls,
|
4963
|
-
"
|
4963
|
+
"placement": _this.placement,
|
4964
|
+
"triggerRef": _this.triggerRef
|
4964
4965
|
}, {
|
4965
4966
|
"default": function _default() {
|
4966
4967
|
return [_this.hasHeader ? (0,external_vue_namespaceObject.createVNode)("div", {
|
4967
4968
|
"class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
|
4968
4969
|
}, [(_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, {
|
4969
4970
|
"ref": "pickerPanelRef",
|
4970
|
-
"type": _this.type,
|
4971
|
-
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4972
4971
|
"confirm": _this.isConfirm,
|
4973
|
-
"
|
4974
|
-
"
|
4972
|
+
"disabledDate": _this.disabledDate,
|
4973
|
+
"focusedDate": _this.focusedDate,
|
4975
4974
|
"modelValue": _this.internalValue,
|
4976
4975
|
"selectionMode": _this.selectionMode,
|
4976
|
+
"shortcutClose": _this.shortcutClose,
|
4977
|
+
"shortcutSelectedIndex": _this.shortcutSelectedIndex,
|
4978
|
+
"shortcuts": _this.shortcuts,
|
4979
|
+
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4977
4980
|
"startDate": _this.startDate,
|
4978
|
-
"disabledDate": _this.disabledDate,
|
4979
|
-
"focusedDate": _this.focusedDate,
|
4980
4981
|
"timePickerOptions": _this.timePickerOptions,
|
4982
|
+
"type": _this.type,
|
4981
4983
|
"onPick": _this.onPick,
|
4982
4984
|
"onPick-clear": _this.handleClear,
|
4985
|
+
"onPick-first": _this.onPickFirst,
|
4983
4986
|
"onPick-success": _this.onPickSuccess,
|
4984
|
-
"onSelection-mode-change": _this.onSelectionModeChange
|
4985
|
-
"shortcutSelectedIndex": _this.shortcutSelectedIndex,
|
4986
|
-
"onPick-first": _this.onPickFirst
|
4987
|
+
"onSelection-mode-change": _this.onSelectionModeChange
|
4987
4988
|
}, slots) : (0,external_vue_namespaceObject.createVNode)(date, {
|
4988
4989
|
"ref": "pickerPanelRef",
|
4989
4990
|
"clearable": _this.clearable,
|
4990
|
-
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4991
4991
|
"confirm": _this.isConfirm,
|
4992
|
-
"
|
4992
|
+
"disabledDate": _this.disabledDate,
|
4993
|
+
"focusedDate": _this.focusedDate,
|
4994
|
+
"modelValue": _this.internalValue,
|
4993
4995
|
"multiple": _this.multiple,
|
4994
|
-
"shortcutClose": _this.shortcutClose,
|
4995
4996
|
"selectionMode": _this.selectionMode,
|
4996
|
-
"
|
4997
|
+
"shortcutClose": _this.shortcutClose,
|
4998
|
+
"shortcuts": _this.shortcuts,
|
4999
|
+
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4997
5000
|
"startDate": _this.startDate,
|
4998
|
-
"disabledDate": _this.disabledDate,
|
4999
|
-
"focusedDate": _this.focusedDate,
|
5000
5001
|
"timePickerOptions": _this.timePickerOptions,
|
5001
5002
|
"onPick": _this.onPick,
|
5002
5003
|
"onPick-clear": _this.handleClear,
|
@@ -5053,6 +5054,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5053
5054
|
|
5054
5055
|
|
5055
5056
|
|
5057
|
+
// import VueTypes, { toType, toValidableType } from 'vue-types';
|
5056
5058
|
|
5057
5059
|
|
5058
5060
|
|
@@ -5303,7 +5305,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5303
5305
|
if (state.visible) {
|
5304
5306
|
var _pickerPanelRef$value;
|
5305
5307
|
var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
|
5306
|
-
if (e && pickerPanel && pickerPanel.contains(e.target)) {
|
5308
|
+
if (e && pickerPanel !== null && pickerPanel !== void 0 && pickerPanel.contains(e.target)) {
|
5307
5309
|
return;
|
5308
5310
|
}
|
5309
5311
|
state.visible = false;
|
@@ -5605,23 +5607,23 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5605
5607
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
5606
5608
|
"onClick": this.handleIconClick
|
5607
5609
|
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
5608
|
-
"type": "text",
|
5609
|
-
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5610
|
-
"ref": "inputRef",
|
5611
5610
|
"key": this.forceInputRerender,
|
5612
|
-
"
|
5611
|
+
"ref": "inputRef",
|
5612
|
+
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5613
5613
|
"disabled": this.disabled,
|
5614
5614
|
"placeholder": this.placeholder,
|
5615
|
+
"readonly": this.localReadonly,
|
5616
|
+
"type": "text",
|
5615
5617
|
"value": this.displayValue,
|
5616
|
-
"onFocus": this.handleFocus,
|
5617
|
-
"onClick": this.handleFocus,
|
5618
5618
|
"onBlur": this.handleBlur,
|
5619
|
-
"onKeydown": this.handleKeydown,
|
5620
5619
|
"onChange": this.handleInputChange,
|
5621
|
-
"
|
5620
|
+
"onClick": this.handleFocus,
|
5621
|
+
"onFocus": this.handleFocus,
|
5622
|
+
"onInput": this.handleInputInput,
|
5623
|
+
"onKeydown": this.handleKeydown
|
5622
5624
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
5623
|
-
"
|
5624
|
-
"
|
5625
|
+
"class": "clear-action",
|
5626
|
+
"onClick": this.handleClear
|
5625
5627
|
}, null) : '']);
|
5626
5628
|
var shortcutsSlot = this.hasShortcuts ? {
|
5627
5629
|
shortcuts: function shortcuts() {
|
@@ -5637,8 +5639,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5637
5639
|
"onMouseenter": this.handleInputMouseenter,
|
5638
5640
|
"onMouseleave": this.handleInputMouseleave
|
5639
5641
|
}, [(_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, {
|
5640
|
-
"
|
5641
|
-
"
|
5642
|
+
"disabled": !this.appendToBody,
|
5643
|
+
"to": this.teleportTo
|
5642
5644
|
}, {
|
5643
5645
|
"default": function _default() {
|
5644
5646
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
@@ -5646,12 +5648,12 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5646
5648
|
}, {
|
5647
5649
|
"default": function _default() {
|
5648
5650
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
|
5649
|
-
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
5650
5651
|
"ref": "pickerDropdownRef",
|
5651
|
-
"
|
5652
|
-
"placement": _this.placement,
|
5653
|
-
"extPopoverCls": _this.extPopoverCls,
|
5652
|
+
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
5654
5653
|
"appendToBody": _this.appendToBody,
|
5654
|
+
"extPopoverCls": _this.extPopoverCls,
|
5655
|
+
"placement": _this.placement,
|
5656
|
+
"triggerRef": _this.triggerRef,
|
5655
5657
|
"onClick": _this.handleTransferClick
|
5656
5658
|
}, {
|
5657
5659
|
"default": function _default() {
|
@@ -5659,38 +5661,38 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5659
5661
|
"class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
|
5660
5662
|
}, [(_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, {
|
5661
5663
|
"ref": "pickerPanelRef",
|
5664
|
+
"allowCrossDay": _this.allowCrossDayProp,
|
5662
5665
|
"clearable": _this.clearable,
|
5663
|
-
"
|
5666
|
+
"disabledDate": _this.disabledDate,
|
5667
|
+
"disabledHours": _this.ownPickerProps.disabledHours,
|
5668
|
+
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5669
|
+
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5670
|
+
"format": _this.format,
|
5664
5671
|
"multiple": _this.multiple,
|
5665
5672
|
"shortcutClose": _this.shortcutClose,
|
5666
|
-
"
|
5673
|
+
"shortcuts": _this.shortcuts,
|
5667
5674
|
"startDate": _this.startDate,
|
5668
|
-
"
|
5675
|
+
"value": _this.internalValue,
|
5669
5676
|
"onPick": _this.onPick,
|
5670
5677
|
"onPick-clear": _this.handleClear,
|
5671
|
-
"onPick-success": _this.onPickSuccess
|
5672
|
-
"disabledHours": _this.ownPickerProps.disabledHours,
|
5673
|
-
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5674
|
-
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5675
|
-
"allowCrossDay": _this.allowCrossDayProp,
|
5676
|
-
"format": _this.format
|
5678
|
+
"onPick-success": _this.onPickSuccess
|
5677
5679
|
}, shortcutsSlot) : (0,external_vue_namespaceObject.createVNode)(time, {
|
5678
5680
|
"ref": "pickerPanelRef",
|
5679
5681
|
"clearable": _this.clearable,
|
5680
5682
|
"confirm": _this.isConfirm,
|
5681
|
-
"
|
5683
|
+
"disabledDate": _this.disabledDate,
|
5684
|
+
"disabledHours": _this.ownPickerProps.disabledHours,
|
5685
|
+
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5686
|
+
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5687
|
+
"format": _this.format,
|
5682
5688
|
"multiple": _this.multiple,
|
5683
5689
|
"shortcutClose": _this.shortcutClose,
|
5684
|
-
"
|
5690
|
+
"shortcuts": _this.shortcuts,
|
5685
5691
|
"startDate": _this.startDate,
|
5686
|
-
"
|
5692
|
+
"value": _this.internalValue,
|
5687
5693
|
"onPick": _this.onPick,
|
5688
5694
|
"onPick-clear": _this.handleClear,
|
5689
|
-
"onPick-success": _this.onPickSuccess
|
5690
|
-
"disabledHours": _this.ownPickerProps.disabledHours,
|
5691
|
-
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5692
|
-
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5693
|
-
"format": _this.format
|
5695
|
+
"onPick-success": _this.onPickSuccess
|
5694
5696
|
}, shortcutsSlot), _this.hasFooter ? (0,external_vue_namespaceObject.createVNode)("div", {
|
5695
5697
|
"class": [_this.resolveClassName('date-picker-footer-wrapper'), _this.footerSlotCls]
|
5696
5698
|
}, [(_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];
|