bkui-vue 2.0.2-beta.45 → 2.0.2-beta.47
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 +47 -42
- package/dist/index.esm.js +7204 -7010
- package/dist/index.umd.js +50 -45
- package/lib/affix/index.js +12 -14
- package/lib/alert/index.js +12 -14
- package/lib/animate-number/index.js +11 -12
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.js +12 -14
- package/lib/breadcrumb/index.js +12 -14
- package/lib/button/index.js +12 -14
- package/lib/card/index.js +12 -14
- package/lib/cascader/index.js +94 -101
- package/lib/checkbox/index.js +37 -35
- package/lib/code-diff/index.js +1171 -675
- package/lib/collapse/index.js +44 -42
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/index.js +59 -60
- package/lib/config-provider/index.js +12 -14
- package/lib/container/index.js +21 -25
- package/lib/date-picker/index.js +58 -51
- package/lib/dialog/index.js +53 -474
- package/lib/directives/index.js +37 -34
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/index.js +17 -21
- package/lib/exception/index.js +14 -17
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/index.js +37 -34
- package/lib/icon/angle-double-down-line.js +29 -36
- package/lib/icon/angle-double-left-line.js +29 -36
- package/lib/icon/angle-double-left.js +29 -36
- package/lib/icon/angle-double-right-line.js +29 -36
- package/lib/icon/angle-double-right.js +29 -36
- package/lib/icon/angle-double-up-line.js +29 -36
- package/lib/icon/angle-down-fill.js +29 -36
- package/lib/icon/angle-down-line.js +29 -36
- package/lib/icon/angle-down.js +29 -36
- package/lib/icon/angle-left.js +29 -36
- package/lib/icon/angle-right.js +29 -36
- package/lib/icon/angle-up-fill.js +29 -36
- package/lib/icon/angle-up.js +29 -36
- package/lib/icon/archive-fill.js +29 -36
- package/lib/icon/arrows-left.js +29 -36
- package/lib/icon/arrows-right.js +29 -36
- package/lib/icon/assistant.js +29 -36
- package/lib/icon/audio-fill.js +29 -36
- package/lib/icon/bk.js +29 -36
- package/lib/icon/circle.js +29 -36
- package/lib/icon/close-line.js +29 -36
- package/lib/icon/close.js +29 -36
- package/lib/icon/code.js +29 -36
- package/lib/icon/cog-shape.js +29 -36
- package/lib/icon/collapse-left.js +29 -36
- package/lib/icon/copy-shape.js +29 -36
- package/lib/icon/copy.js +29 -36
- package/lib/icon/data-shape.js +29 -36
- package/lib/icon/del.js +29 -36
- package/lib/icon/doc-fill.js +29 -36
- package/lib/icon/done.js +29 -36
- package/lib/icon/down-shape.js +29 -36
- package/lib/icon/down-small.js +29 -36
- package/lib/icon/edit-line.js +29 -36
- package/lib/icon/ellipsis.js +29 -36
- package/lib/icon/enlarge-line.js +29 -36
- package/lib/icon/error.js +29 -36
- package/lib/icon/excel-fill.js +29 -36
- package/lib/icon/exclamation-circle-shape.js +29 -36
- package/lib/icon/eye.js +29 -36
- package/lib/icon/filliscreen-line.js +29 -36
- package/lib/icon/fix-line.js +29 -36
- package/lib/icon/fix-shape.js +29 -36
- package/lib/icon/folder-open.js +29 -36
- package/lib/icon/folder-shape-open.js +29 -36
- package/lib/icon/folder-shape.js +29 -36
- package/lib/icon/folder.js +29 -36
- package/lib/icon/funnel.js +29 -36
- package/lib/icon/grag-fill.js +29 -36
- package/lib/icon/help-document-fill.js +29 -36
- package/lib/icon/help-fill.js +29 -36
- package/lib/icon/help.js +29 -36
- package/lib/icon/image-fill.js +29 -36
- package/lib/icon/img-error.js +29 -36
- package/lib/icon/img-placehoulder.js +29 -36
- package/lib/icon/info-line.js +29 -36
- package/lib/icon/info.js +29 -36
- package/lib/icon/left-shape.js +29 -36
- package/lib/icon/left-turn-line.js +29 -36
- package/lib/icon/loading.js +29 -36
- package/lib/icon/narrow-line.js +29 -36
- package/lib/icon/original.js +29 -36
- package/lib/icon/pdf-fill.js +29 -36
- package/lib/icon/play-shape.js +29 -36
- package/lib/icon/plus.js +29 -36
- package/lib/icon/ppt-fill.js +29 -36
- package/lib/icon/qq.js +29 -36
- package/lib/icon/right-shape.js +29 -36
- package/lib/icon/right-turn-line.js +29 -36
- package/lib/icon/search.js +29 -36
- package/lib/icon/share.js +29 -36
- package/lib/icon/spinner.js +29 -36
- package/lib/icon/success.js +29 -36
- package/lib/icon/switcher-loading.js +29 -36
- package/lib/icon/text-all.js +29 -36
- package/lib/icon/text-file.js +29 -36
- package/lib/icon/text-fill.js +29 -36
- package/lib/icon/transfer.js +29 -36
- package/lib/icon/tree-application-shape.js +29 -36
- package/lib/icon/unfull-screen.js +29 -36
- package/lib/icon/unvisible.js +29 -36
- package/lib/icon/up-shape.js +29 -36
- package/lib/icon/upload.js +29 -36
- package/lib/icon/video-fill.js +29 -36
- package/lib/icon/warn.js +29 -36
- package/lib/icon/weixin-pro.js +29 -36
- package/lib/icon/weixin.js +29 -36
- package/lib/image/index.js +49 -47
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +62 -461
- package/lib/input/index.js +62 -60
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +22 -25
- package/lib/menu/index.js +36 -34
- package/lib/message/index.js +34 -31
- package/lib/modal/index.js +12 -14
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +12 -14
- package/lib/overflow-title/index.js +9 -10
- package/lib/pagination/index.js +32 -29
- package/lib/pop-confirm/index.js +4 -5
- package/lib/popover/index.js +209 -136
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +59 -452
- package/lib/progress/index.js +16 -19
- package/lib/radio/index.js +37 -34
- package/lib/rate/index.js +12 -14
- package/lib/resize-layout/index.js +18 -20
- package/lib/scrollbar/index.js +51 -58
- package/lib/search-select/index.js +222 -595
- package/lib/select/index.js +111 -463
- package/lib/shared/index.js +83 -95
- package/lib/sideslider/index.js +43 -441
- package/lib/slider/index.js +49 -446
- package/lib/steps/index.js +60 -458
- package/lib/swiper/index.js +15 -17
- package/lib/switcher/index.js +12 -14
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +53 -45
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/table/index.js +152 -501
- package/lib/tag/index.js +12 -14
- package/lib/tag-input/index.js +47 -41
- package/lib/timeline/index.js +1 -0
- package/lib/transfer/index.js +22 -17
- package/lib/tree/index.js +73 -66
- package/lib/upload/index.js +136 -487
- package/lib/virtual-render/index.js +47 -51
- package/package.json +1 -1
package/lib/container/index.js
CHANGED
@@ -104,7 +104,6 @@ var containerKey = Symbol('containerProps');
|
|
104
104
|
|
105
105
|
|
106
106
|
|
107
|
-
|
108
107
|
var colProps = {
|
109
108
|
// 栅格的占位格数,可选值为 0~24 的整数,为 0 时,则为 col 相当于 width: 100%
|
110
109
|
span: shared_namespaceObject.PropTypes.number.def(1),
|
@@ -115,12 +114,12 @@ var colProps = {
|
|
115
114
|
// 栅格向右移动格数
|
116
115
|
push: shared_namespaceObject.PropTypes.number.def(0)
|
117
116
|
};
|
118
|
-
/* harmony default export */ const col = (
|
117
|
+
/* harmony default export */ const col = (defineComponent({
|
119
118
|
name: 'Col',
|
120
119
|
props: colProps,
|
121
120
|
emits: [],
|
122
121
|
setup: function setup(props, ctx) {
|
123
|
-
var _inject =
|
122
|
+
var _inject = inject(containerKey),
|
124
123
|
col = _inject.col,
|
125
124
|
gutter = _inject.gutter,
|
126
125
|
flex = _inject.flex;
|
@@ -128,10 +127,10 @@ var colProps = {
|
|
128
127
|
offset = props.offset,
|
129
128
|
pull = props.pull,
|
130
129
|
push = props.push;
|
131
|
-
var realSpan =
|
130
|
+
var realSpan = computed(function () {
|
132
131
|
return span || col;
|
133
132
|
});
|
134
|
-
|
133
|
+
provide('containerProps', {
|
135
134
|
col: realSpan.value,
|
136
135
|
gutter: gutter,
|
137
136
|
flex: flex
|
@@ -139,7 +138,7 @@ var colProps = {
|
|
139
138
|
var formatPercentage = function formatPercentage(val) {
|
140
139
|
return "".concat(Number((val * 100).toFixed(3)), "%");
|
141
140
|
};
|
142
|
-
var style =
|
141
|
+
var style = computed(function () {
|
143
142
|
return {
|
144
143
|
width: formatPercentage(realSpan.value / col),
|
145
144
|
'padding-right': "".concat(gutter / 2, "px"),
|
@@ -190,7 +189,6 @@ var colProps = {
|
|
190
189
|
|
191
190
|
|
192
191
|
|
193
|
-
|
194
192
|
var containerProps = {
|
195
193
|
// 栅格数,默认 24
|
196
194
|
col: shared_namespaceObject.PropTypes.number.def(24),
|
@@ -203,7 +201,7 @@ var containerProps = {
|
|
203
201
|
// 外部设置的 class name
|
204
202
|
extCls: shared_namespaceObject.PropTypes.string
|
205
203
|
};
|
206
|
-
/* harmony default export */ const container = (
|
204
|
+
/* harmony default export */ const container = (defineComponent({
|
207
205
|
name: 'Container',
|
208
206
|
props: containerProps,
|
209
207
|
emits: [],
|
@@ -212,17 +210,17 @@ var containerProps = {
|
|
212
210
|
gutter = props.gutter,
|
213
211
|
flex = props.flex,
|
214
212
|
extCls = props.extCls;
|
215
|
-
|
213
|
+
provide(containerKey, {
|
216
214
|
col: col,
|
217
215
|
gutter: gutter,
|
218
216
|
flex: flex
|
219
217
|
});
|
220
218
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
221
219
|
resolveClassName = _usePrefix.resolveClassName;
|
222
|
-
var classes =
|
220
|
+
var classes = computed(function () {
|
223
221
|
return extCls ? "".concat(resolveClassName('grid-container'), " ").concat(extCls) : "".concat(resolveClassName('grid-container'));
|
224
222
|
});
|
225
|
-
var style =
|
223
|
+
var style = computed(function () {
|
226
224
|
var margin = props.margin;
|
227
225
|
return {
|
228
226
|
'padding-right': "".concat(margin, "px"),
|
@@ -248,6 +246,7 @@ function _typeof(o) {
|
|
248
246
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
249
247
|
}, _typeof(o);
|
250
248
|
}
|
249
|
+
|
251
250
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
252
251
|
|
253
252
|
function toPrimitive(t, r) {
|
@@ -260,29 +259,26 @@ function toPrimitive(t, r) {
|
|
260
259
|
}
|
261
260
|
return ("string" === r ? String : Number)(t);
|
262
261
|
}
|
262
|
+
|
263
263
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
264
264
|
|
265
265
|
|
266
266
|
function toPropertyKey(t) {
|
267
267
|
var i = toPrimitive(t, "string");
|
268
|
-
return "symbol" == _typeof(i) ? i :
|
268
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
269
269
|
}
|
270
|
+
|
270
271
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
271
272
|
|
272
|
-
function _defineProperty(
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
writable: true
|
280
|
-
});
|
281
|
-
} else {
|
282
|
-
obj[key] = value;
|
283
|
-
}
|
284
|
-
return obj;
|
273
|
+
function _defineProperty(e, r, t) {
|
274
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
275
|
+
value: t,
|
276
|
+
enumerable: !0,
|
277
|
+
configurable: !0,
|
278
|
+
writable: !0
|
279
|
+
}) : e[r] = t, e;
|
285
280
|
}
|
281
|
+
|
286
282
|
;// CONCATENATED MODULE: ../../packages/container/src/row.tsx
|
287
283
|
|
288
284
|
|
package/lib/date-picker/index.js
CHANGED
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
28
28
|
// UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, bkTooltips, mousewheel, overflowTitle
|
29
29
|
|
30
30
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
31
|
-
function _createForOfIteratorHelper(
|
32
|
-
function _unsupportedIterableToArray(
|
33
|
-
function _arrayLikeToArray(
|
31
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
32
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
33
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
34
34
|
/*
|
35
35
|
* Tencent is pleased to support the open source community by making
|
36
36
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1295,12 +1295,13 @@ module.exports = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragmen
|
|
1295
1295
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1296
1296
|
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
1297
1297
|
/* harmony export */ });
|
1298
|
-
function _arrayLikeToArray(
|
1299
|
-
|
1300
|
-
for (var
|
1301
|
-
return
|
1298
|
+
function _arrayLikeToArray(r, a) {
|
1299
|
+
(null == a || a > r.length) && (a = r.length);
|
1300
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
1301
|
+
return n;
|
1302
1302
|
}
|
1303
1303
|
|
1304
|
+
|
1304
1305
|
/***/ }),
|
1305
1306
|
|
1306
1307
|
/***/ 74:
|
@@ -1311,10 +1312,11 @@ function _arrayLikeToArray(arr, len) {
|
|
1311
1312
|
/* harmony export */ });
|
1312
1313
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1313
1314
|
|
1314
|
-
function _arrayWithoutHoles(
|
1315
|
-
if (Array.isArray(
|
1315
|
+
function _arrayWithoutHoles(r) {
|
1316
|
+
if (Array.isArray(r)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r);
|
1316
1317
|
}
|
1317
1318
|
|
1319
|
+
|
1318
1320
|
/***/ }),
|
1319
1321
|
|
1320
1322
|
/***/ 6666:
|
@@ -1325,21 +1327,16 @@ function _arrayWithoutHoles(arr) {
|
|
1325
1327
|
/* harmony export */ });
|
1326
1328
|
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3795);
|
1327
1329
|
|
1328
|
-
function _defineProperty(
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
writable: true
|
1336
|
-
});
|
1337
|
-
} else {
|
1338
|
-
obj[key] = value;
|
1339
|
-
}
|
1340
|
-
return obj;
|
1330
|
+
function _defineProperty(e, r, t) {
|
1331
|
+
return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
|
1332
|
+
value: t,
|
1333
|
+
enumerable: !0,
|
1334
|
+
configurable: !0,
|
1335
|
+
writable: !0
|
1336
|
+
}) : e[r] = t, e;
|
1341
1337
|
}
|
1342
1338
|
|
1339
|
+
|
1343
1340
|
/***/ }),
|
1344
1341
|
|
1345
1342
|
/***/ 1079:
|
@@ -1348,10 +1345,11 @@ function _defineProperty(obj, key, value) {
|
|
1348
1345
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1349
1346
|
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
1350
1347
|
/* harmony export */ });
|
1351
|
-
function _iterableToArray(
|
1352
|
-
if (typeof Symbol
|
1348
|
+
function _iterableToArray(r) {
|
1349
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
1353
1350
|
}
|
1354
1351
|
|
1352
|
+
|
1355
1353
|
/***/ }),
|
1356
1354
|
|
1357
1355
|
/***/ 6098:
|
@@ -1364,6 +1362,7 @@ function _nonIterableSpread() {
|
|
1364
1362
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1365
1363
|
}
|
1366
1364
|
|
1365
|
+
|
1367
1366
|
/***/ }),
|
1368
1367
|
|
1369
1368
|
/***/ 7930:
|
@@ -1380,10 +1379,11 @@ function _nonIterableSpread() {
|
|
1380
1379
|
|
1381
1380
|
|
1382
1381
|
|
1383
|
-
function _toConsumableArray(
|
1384
|
-
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
1382
|
+
function _toConsumableArray(r) {
|
1383
|
+
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(r) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(r) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
1385
1384
|
}
|
1386
1385
|
|
1386
|
+
|
1387
1387
|
/***/ }),
|
1388
1388
|
|
1389
1389
|
/***/ 9745:
|
@@ -1405,6 +1405,7 @@ function toPrimitive(t, r) {
|
|
1405
1405
|
return ("string" === r ? String : Number)(t);
|
1406
1406
|
}
|
1407
1407
|
|
1408
|
+
|
1408
1409
|
/***/ }),
|
1409
1410
|
|
1410
1411
|
/***/ 3795:
|
@@ -1419,9 +1420,10 @@ function toPrimitive(t, r) {
|
|
1419
1420
|
|
1420
1421
|
function toPropertyKey(t) {
|
1421
1422
|
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
1422
|
-
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i :
|
1423
|
+
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : i + "";
|
1423
1424
|
}
|
1424
1425
|
|
1426
|
+
|
1425
1427
|
/***/ }),
|
1426
1428
|
|
1427
1429
|
/***/ 6522:
|
@@ -1440,6 +1442,7 @@ function _typeof(o) {
|
|
1440
1442
|
}, _typeof(o);
|
1441
1443
|
}
|
1442
1444
|
|
1445
|
+
|
1443
1446
|
/***/ }),
|
1444
1447
|
|
1445
1448
|
/***/ 9147:
|
@@ -1450,15 +1453,15 @@ function _typeof(o) {
|
|
1450
1453
|
/* harmony export */ });
|
1451
1454
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1452
1455
|
|
1453
|
-
function _unsupportedIterableToArray(
|
1454
|
-
if (
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1456
|
+
function _unsupportedIterableToArray(r, a) {
|
1457
|
+
if (r) {
|
1458
|
+
if ("string" == typeof r) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r, a);
|
1459
|
+
var t = {}.toString.call(r).slice(8, -1);
|
1460
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r, a) : void 0;
|
1461
|
+
}
|
1460
1462
|
}
|
1461
1463
|
|
1464
|
+
|
1462
1465
|
/***/ })
|
1463
1466
|
|
1464
1467
|
/******/ });
|
@@ -1791,9 +1794,10 @@ var pickerDropdownProps = {
|
|
1791
1794
|
}
|
1792
1795
|
}));
|
1793
1796
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
1794
|
-
function _arrayWithHoles(
|
1795
|
-
if (Array.isArray(
|
1797
|
+
function _arrayWithHoles(r) {
|
1798
|
+
if (Array.isArray(r)) return r;
|
1796
1799
|
}
|
1800
|
+
|
1797
1801
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
1798
1802
|
function _iterableToArrayLimit(r, l) {
|
1799
1803
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -1822,20 +1826,23 @@ function _iterableToArrayLimit(r, l) {
|
|
1822
1826
|
return a;
|
1823
1827
|
}
|
1824
1828
|
}
|
1829
|
+
|
1825
1830
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1826
1831
|
var unsupportedIterableToArray = __webpack_require__(9147);
|
1827
1832
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
1828
1833
|
function _nonIterableRest() {
|
1829
1834
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1830
1835
|
}
|
1836
|
+
|
1831
1837
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1832
1838
|
|
1833
1839
|
|
1834
1840
|
|
1835
1841
|
|
1836
|
-
function _slicedToArray(
|
1837
|
-
return _arrayWithHoles(
|
1842
|
+
function _slicedToArray(r, e) {
|
1843
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || (0,unsupportedIterableToArray["default"])(r, e) || _nonIterableRest();
|
1838
1844
|
}
|
1845
|
+
|
1839
1846
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1840
1847
|
var toConsumableArray = __webpack_require__(7930);
|
1841
1848
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
@@ -5100,7 +5107,7 @@ var dateRangePanelProps = {
|
|
5100
5107
|
timeSpinnerEnd === null || timeSpinnerEnd === void 0 || (_timeSpinnerEnd$value = timeSpinnerEnd.value) === null || _timeSpinnerEnd$value === void 0 || _timeSpinnerEnd$value.updateScroll();
|
5101
5108
|
}
|
5102
5109
|
};
|
5103
|
-
var
|
5110
|
+
var _changePanelDate = function changePanelDate(panel, type, increment) {
|
5104
5111
|
var updateOtherPanel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
5105
5112
|
var current = new Date(state["".concat(panel, "PanelDate")]);
|
5106
5113
|
current["set".concat(type)](current["get".concat(type)]() + increment);
|
@@ -5113,19 +5120,19 @@ var dateRangePanelProps = {
|
|
5113
5120
|
if (panel === 'left' && state.leftPanelDate >= state.rightPanelDate) {
|
5114
5121
|
if (state.currentView === 'year') {
|
5115
5122
|
if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
|
5116
|
-
|
5123
|
+
_changePanelDate(otherPanel, type, 10);
|
5117
5124
|
}
|
5118
5125
|
} else {
|
5119
|
-
|
5126
|
+
_changePanelDate(otherPanel, type, 1);
|
5120
5127
|
}
|
5121
5128
|
}
|
5122
5129
|
if (panel === 'right' && state.rightPanelDate <= state.leftPanelDate) {
|
5123
5130
|
if (state.currentView === 'year') {
|
5124
5131
|
if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
|
5125
|
-
|
5132
|
+
_changePanelDate(otherPanel, type, -10);
|
5126
5133
|
}
|
5127
5134
|
} else {
|
5128
|
-
|
5135
|
+
_changePanelDate(otherPanel, type, -1);
|
5129
5136
|
}
|
5130
5137
|
}
|
5131
5138
|
} else {
|
@@ -5145,26 +5152,26 @@ var dateRangePanelProps = {
|
|
5145
5152
|
*/
|
5146
5153
|
var prevYear = function prevYear(panel) {
|
5147
5154
|
var increment = state.currentView === 'year' ? -10 : -1;
|
5148
|
-
|
5155
|
+
_changePanelDate(panel, 'FullYear', increment);
|
5149
5156
|
};
|
5150
5157
|
/**
|
5151
5158
|
* nextYear
|
5152
5159
|
*/
|
5153
5160
|
var nextYear = function nextYear(panel) {
|
5154
5161
|
var increment = state.currentView === 'year' ? 10 : 1;
|
5155
|
-
|
5162
|
+
_changePanelDate(panel, 'FullYear', increment);
|
5156
5163
|
};
|
5157
5164
|
/**
|
5158
5165
|
* prevMonth
|
5159
5166
|
*/
|
5160
5167
|
var prevMonth = function prevMonth(panel) {
|
5161
|
-
|
5168
|
+
_changePanelDate(panel, 'Month', -1);
|
5162
5169
|
};
|
5163
5170
|
/**
|
5164
5171
|
* nextMonth
|
5165
5172
|
*/
|
5166
5173
|
var nextMonth = function nextMonth(panel) {
|
5167
|
-
|
5174
|
+
_changePanelDate(panel, 'Month', 1);
|
5168
5175
|
};
|
5169
5176
|
/**
|
5170
5177
|
* showYearPicker
|
@@ -5265,7 +5272,7 @@ var dateRangePanelProps = {
|
|
5265
5272
|
var otherPanel = panelPosition === 'left' ? 'right' : 'left';
|
5266
5273
|
state["".concat(otherPanel, "PanelDate")] = value;
|
5267
5274
|
var increment = otherPanel === 'left' ? -1 : 1;
|
5268
|
-
|
5275
|
+
_changePanelDate(otherPanel, 'Month', increment, false);
|
5269
5276
|
}
|
5270
5277
|
};
|
5271
5278
|
var handleShortcutClick = function handleShortcutClick(shortcut, index) {
|
@@ -5331,13 +5338,13 @@ var dateRangePanelProps = {
|
|
5331
5338
|
var rightMonth = state.rightPanelDate.getMonth();
|
5332
5339
|
var isSameYear = state.leftPanelDate.getFullYear() === state.rightPanelDate.getFullYear();
|
5333
5340
|
if (v === 'date' && isSameYear && leftMonth === rightMonth) {
|
5334
|
-
|
5341
|
+
_changePanelDate('right', 'Month', 1);
|
5335
5342
|
}
|
5336
5343
|
if (v === 'month' && isSameYear) {
|
5337
|
-
|
5344
|
+
_changePanelDate('right', 'FullYear', 1);
|
5338
5345
|
}
|
5339
5346
|
if (v === 'year' && isSameYear) {
|
5340
|
-
|
5347
|
+
_changePanelDate('right', 'FullYear', 10);
|
5341
5348
|
}
|
5342
5349
|
if (state.currentView === 'time') {
|
5343
5350
|
(0,external_vue_.nextTick)(function () {
|