vxe-table 3.20.12 → 3.21.0-beta.0
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/es/index.esm.js +1 -2
- package/es/style.css +1 -1
- package/es/table/module/edit/mixin.js +33 -12
- package/es/table/module/keyboard/mixin.js +2 -2
- package/es/table/src/cell.js +3 -3
- package/es/table/src/column.js +6 -3
- package/es/table/src/group.js +6 -3
- package/es/table/src/methods.js +367 -167
- package/es/table/src/props.js +2 -2
- package/es/table/src/table.js +13 -6
- package/es/table/src/util.js +12 -3
- package/es/table/style.css +48 -18
- package/es/ui/index.js +3 -3
- package/es/ui/src/dom.js +4 -0
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +48 -18
- package/lib/index.common.js +1 -2
- package/lib/index.umd.js +1909 -433
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +39 -12
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +2 -2
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/src/cell.js +3 -3
- package/lib/table/src/column.js +6 -3
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/group.js +6 -3
- package/lib/table/src/group.min.js +1 -1
- package/lib/table/src/methods.js +36 -30
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +2 -2
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +15 -6
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +12 -3
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +48 -18
- package/lib/ui/index.js +3 -3
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +5 -0
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -2
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +1 -2
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +1 -2
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +1 -2
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-table/index.js +1 -2
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +48 -18
- package/lib/vxe-toolbar/index.js +1 -2
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-ui/index.js +1 -2
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +1 -2
- package/lib/vxe-v-x-e-table/index.min.js +1 -1
- package/package.json +4 -3
- package/packages/table/module/edit/mixin.ts +47 -12
- package/packages/table/module/keyboard/mixin.ts +2 -2
- package/packages/table/src/cell.ts +5 -5
- package/packages/table/src/column.ts +10 -7
- package/packages/table/src/group.ts +10 -6
- package/packages/table/src/methods.ts +378 -163
- package/packages/table/src/props.ts +3 -3
- package/packages/table/src/table.ts +13 -6
- package/packages/table/src/util.ts +16 -6
- package/packages/ui/index.ts +2 -2
- package/packages/ui/src/dom.ts +5 -0
- /package/es/{iconfont.1776048358910.ttf → iconfont.1777796331871.ttf} +0 -0
- /package/es/{iconfont.1776048358910.woff → iconfont.1777796331871.woff} +0 -0
- /package/es/{iconfont.1776048358910.woff2 → iconfont.1777796331871.woff2} +0 -0
- /package/lib/{iconfont.1776048358910.ttf → iconfont.1777796331871.ttf} +0 -0
- /package/lib/{iconfont.1776048358910.woff → iconfont.1777796331871.woff} +0 -0
- /package/lib/{iconfont.1776048358910.woff2 → iconfont.1777796331871.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -49,6 +49,50 @@ module.exports = function (argument) {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
/***/ }),
|
|
53
|
+
|
|
54
|
+
/***/ 6469:
|
|
55
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
59
|
+
var create = __webpack_require__(2360);
|
|
60
|
+
var defineProperty = (__webpack_require__(4913).f);
|
|
61
|
+
|
|
62
|
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
63
|
+
var ArrayPrototype = Array.prototype;
|
|
64
|
+
|
|
65
|
+
// Array.prototype[@@unscopables]
|
|
66
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
67
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
68
|
+
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
|
69
|
+
configurable: true,
|
|
70
|
+
value: create(null)
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// add a key to Array.prototype[@@unscopables]
|
|
75
|
+
module.exports = function (key) {
|
|
76
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/***/ }),
|
|
81
|
+
|
|
82
|
+
/***/ 679:
|
|
83
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
var isPrototypeOf = __webpack_require__(1625);
|
|
87
|
+
|
|
88
|
+
var $TypeError = TypeError;
|
|
89
|
+
|
|
90
|
+
module.exports = function (it, Prototype) {
|
|
91
|
+
if (isPrototypeOf(Prototype, it)) return it;
|
|
92
|
+
throw new $TypeError('Incorrect invocation');
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
|
|
52
96
|
/***/ }),
|
|
53
97
|
|
|
54
98
|
/***/ 8551:
|
|
@@ -142,6 +186,25 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
|
142
186
|
};
|
|
143
187
|
|
|
144
188
|
|
|
189
|
+
/***/ }),
|
|
190
|
+
|
|
191
|
+
/***/ 6319:
|
|
192
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
var anObject = __webpack_require__(8551);
|
|
196
|
+
var iteratorClose = __webpack_require__(9539);
|
|
197
|
+
|
|
198
|
+
// call something on iterator step with safe closing on error
|
|
199
|
+
module.exports = function (iterator, fn, value, ENTRIES) {
|
|
200
|
+
try {
|
|
201
|
+
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
202
|
+
} catch (error) {
|
|
203
|
+
iteratorClose(iterator, 'throw', error);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
|
|
145
208
|
/***/ }),
|
|
146
209
|
|
|
147
210
|
/***/ 2195:
|
|
@@ -158,6 +221,43 @@ module.exports = function (it) {
|
|
|
158
221
|
};
|
|
159
222
|
|
|
160
223
|
|
|
224
|
+
/***/ }),
|
|
225
|
+
|
|
226
|
+
/***/ 6955:
|
|
227
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
var TO_STRING_TAG_SUPPORT = __webpack_require__(2140);
|
|
231
|
+
var isCallable = __webpack_require__(4901);
|
|
232
|
+
var classofRaw = __webpack_require__(2195);
|
|
233
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
234
|
+
|
|
235
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
236
|
+
var $Object = Object;
|
|
237
|
+
|
|
238
|
+
// ES3 wrong here
|
|
239
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
240
|
+
|
|
241
|
+
// fallback for IE11 Script Access Denied error
|
|
242
|
+
var tryGet = function (it, key) {
|
|
243
|
+
try {
|
|
244
|
+
return it[key];
|
|
245
|
+
} catch (error) { /* empty */ }
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
249
|
+
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
250
|
+
var O, tag, result;
|
|
251
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
252
|
+
// @@toStringTag case
|
|
253
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
254
|
+
// builtinTag case
|
|
255
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
256
|
+
// ES3 arguments fallback
|
|
257
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
|
|
161
261
|
/***/ }),
|
|
162
262
|
|
|
163
263
|
/***/ 7740:
|
|
@@ -182,6 +282,35 @@ module.exports = function (target, source, exceptions) {
|
|
|
182
282
|
};
|
|
183
283
|
|
|
184
284
|
|
|
285
|
+
/***/ }),
|
|
286
|
+
|
|
287
|
+
/***/ 2211:
|
|
288
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
var fails = __webpack_require__(9039);
|
|
292
|
+
|
|
293
|
+
module.exports = !fails(function () {
|
|
294
|
+
function F() { /* empty */ }
|
|
295
|
+
F.prototype.constructor = null;
|
|
296
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
297
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
/***/ }),
|
|
302
|
+
|
|
303
|
+
/***/ 2529:
|
|
304
|
+
/***/ (function(module) {
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
// `CreateIterResultObject` abstract operation
|
|
308
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
309
|
+
module.exports = function (value, done) {
|
|
310
|
+
return { value: value, done: done };
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
|
|
185
314
|
/***/ }),
|
|
186
315
|
|
|
187
316
|
/***/ 6699:
|
|
@@ -216,6 +345,38 @@ module.exports = function (bitmap, value) {
|
|
|
216
345
|
};
|
|
217
346
|
|
|
218
347
|
|
|
348
|
+
/***/ }),
|
|
349
|
+
|
|
350
|
+
/***/ 4659:
|
|
351
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
355
|
+
var definePropertyModule = __webpack_require__(4913);
|
|
356
|
+
var createPropertyDescriptor = __webpack_require__(6980);
|
|
357
|
+
|
|
358
|
+
module.exports = function (object, key, value) {
|
|
359
|
+
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
|
360
|
+
else object[key] = value;
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
/***/ }),
|
|
365
|
+
|
|
366
|
+
/***/ 2106:
|
|
367
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
var makeBuiltIn = __webpack_require__(283);
|
|
371
|
+
var defineProperty = __webpack_require__(4913);
|
|
372
|
+
|
|
373
|
+
module.exports = function (target, name, descriptor) {
|
|
374
|
+
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
375
|
+
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
376
|
+
return defineProperty.f(target, name, descriptor);
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
|
|
219
380
|
/***/ }),
|
|
220
381
|
|
|
221
382
|
/***/ 6840:
|
|
@@ -251,6 +412,20 @@ module.exports = function (O, key, value, options) {
|
|
|
251
412
|
};
|
|
252
413
|
|
|
253
414
|
|
|
415
|
+
/***/ }),
|
|
416
|
+
|
|
417
|
+
/***/ 6279:
|
|
418
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
var defineBuiltIn = __webpack_require__(6840);
|
|
422
|
+
|
|
423
|
+
module.exports = function (target, src, options) {
|
|
424
|
+
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
|
425
|
+
return target;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
|
|
254
429
|
/***/ }),
|
|
255
430
|
|
|
256
431
|
/***/ 9433:
|
|
@@ -314,7 +489,7 @@ var $TypeError = TypeError;
|
|
|
314
489
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
315
490
|
|
|
316
491
|
module.exports = function (it) {
|
|
317
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
|
492
|
+
if (it > MAX_SAFE_INTEGER) throw new $TypeError('Maximum allowed index exceeded');
|
|
318
493
|
return it;
|
|
319
494
|
};
|
|
320
495
|
|
|
@@ -463,6 +638,45 @@ module.exports = function (exec) {
|
|
|
463
638
|
};
|
|
464
639
|
|
|
465
640
|
|
|
641
|
+
/***/ }),
|
|
642
|
+
|
|
643
|
+
/***/ 8745:
|
|
644
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
var NATIVE_BIND = __webpack_require__(616);
|
|
648
|
+
|
|
649
|
+
var FunctionPrototype = Function.prototype;
|
|
650
|
+
var apply = FunctionPrototype.apply;
|
|
651
|
+
var call = FunctionPrototype.call;
|
|
652
|
+
|
|
653
|
+
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
654
|
+
module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
|
|
655
|
+
return call.apply(apply, arguments);
|
|
656
|
+
});
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
/***/ }),
|
|
660
|
+
|
|
661
|
+
/***/ 6080:
|
|
662
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
var uncurryThis = __webpack_require__(7476);
|
|
666
|
+
var aCallable = __webpack_require__(9306);
|
|
667
|
+
var NATIVE_BIND = __webpack_require__(616);
|
|
668
|
+
|
|
669
|
+
var bind = uncurryThis(uncurryThis.bind);
|
|
670
|
+
|
|
671
|
+
// optional / simple context binding
|
|
672
|
+
module.exports = function (fn, that) {
|
|
673
|
+
aCallable(fn);
|
|
674
|
+
return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
|
|
675
|
+
return fn.apply(that, arguments);
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
|
|
466
680
|
/***/ }),
|
|
467
681
|
|
|
468
682
|
/***/ 616:
|
|
@@ -473,7 +687,7 @@ var fails = __webpack_require__(9039);
|
|
|
473
687
|
|
|
474
688
|
module.exports = !fails(function () {
|
|
475
689
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
476
|
-
var test =
|
|
690
|
+
var test = function () { /* empty */ }.bind();
|
|
477
691
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
478
692
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
479
693
|
});
|
|
@@ -488,7 +702,7 @@ module.exports = !fails(function () {
|
|
|
488
702
|
var NATIVE_BIND = __webpack_require__(616);
|
|
489
703
|
|
|
490
704
|
var call = Function.prototype.call;
|
|
491
|
-
|
|
705
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
492
706
|
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
493
707
|
return call.apply(call, arguments);
|
|
494
708
|
};
|
|
@@ -509,7 +723,7 @@ var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
|
509
723
|
|
|
510
724
|
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
|
511
725
|
// additional protection from minified / mangled / dropped function names
|
|
512
|
-
var PROPER = EXISTS &&
|
|
726
|
+
var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
|
|
513
727
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
514
728
|
|
|
515
729
|
module.exports = {
|
|
@@ -519,6 +733,23 @@ module.exports = {
|
|
|
519
733
|
};
|
|
520
734
|
|
|
521
735
|
|
|
736
|
+
/***/ }),
|
|
737
|
+
|
|
738
|
+
/***/ 7476:
|
|
739
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
var classofRaw = __webpack_require__(2195);
|
|
743
|
+
var uncurryThis = __webpack_require__(9504);
|
|
744
|
+
|
|
745
|
+
module.exports = function (fn) {
|
|
746
|
+
// Nashorn bug:
|
|
747
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
748
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
749
|
+
if (classofRaw(fn) === 'Function') return uncurryThis(fn);
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
|
|
522
753
|
/***/ }),
|
|
523
754
|
|
|
524
755
|
/***/ 9504:
|
|
@@ -529,6 +760,7 @@ var NATIVE_BIND = __webpack_require__(616);
|
|
|
529
760
|
|
|
530
761
|
var FunctionPrototype = Function.prototype;
|
|
531
762
|
var call = FunctionPrototype.call;
|
|
763
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
532
764
|
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
533
765
|
|
|
534
766
|
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
@@ -556,6 +788,65 @@ module.exports = function (namespace, method) {
|
|
|
556
788
|
};
|
|
557
789
|
|
|
558
790
|
|
|
791
|
+
/***/ }),
|
|
792
|
+
|
|
793
|
+
/***/ 1767:
|
|
794
|
+
/***/ (function(module) {
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
// `GetIteratorDirect(obj)` abstract operation
|
|
798
|
+
// https://tc39.es/ecma262/#sec-getiteratordirect
|
|
799
|
+
module.exports = function (obj) {
|
|
800
|
+
return {
|
|
801
|
+
iterator: obj,
|
|
802
|
+
next: obj.next,
|
|
803
|
+
done: false
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
/***/ }),
|
|
809
|
+
|
|
810
|
+
/***/ 851:
|
|
811
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
var classof = __webpack_require__(6955);
|
|
815
|
+
var getMethod = __webpack_require__(5966);
|
|
816
|
+
var isNullOrUndefined = __webpack_require__(4117);
|
|
817
|
+
var Iterators = __webpack_require__(6269);
|
|
818
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
819
|
+
|
|
820
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
821
|
+
|
|
822
|
+
module.exports = function (it) {
|
|
823
|
+
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
824
|
+
|| getMethod(it, '@@iterator')
|
|
825
|
+
|| Iterators[classof(it)];
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
/***/ }),
|
|
830
|
+
|
|
831
|
+
/***/ 81:
|
|
832
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
var call = __webpack_require__(9565);
|
|
836
|
+
var aCallable = __webpack_require__(9306);
|
|
837
|
+
var anObject = __webpack_require__(8551);
|
|
838
|
+
var tryToString = __webpack_require__(6823);
|
|
839
|
+
var getIteratorMethod = __webpack_require__(851);
|
|
840
|
+
|
|
841
|
+
var $TypeError = TypeError;
|
|
842
|
+
|
|
843
|
+
module.exports = function (argument, usingIterator) {
|
|
844
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
845
|
+
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
|
|
846
|
+
throw new $TypeError(tryToString(argument) + ' is not iterable');
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
|
|
559
850
|
/***/ }),
|
|
560
851
|
|
|
561
852
|
/***/ 5966:
|
|
@@ -624,6 +915,17 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
|
624
915
|
module.exports = {};
|
|
625
916
|
|
|
626
917
|
|
|
918
|
+
/***/ }),
|
|
919
|
+
|
|
920
|
+
/***/ 397:
|
|
921
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
var getBuiltIn = __webpack_require__(7751);
|
|
925
|
+
|
|
926
|
+
module.exports = getBuiltIn('document', 'documentElement');
|
|
927
|
+
|
|
928
|
+
|
|
627
929
|
/***/ }),
|
|
628
930
|
|
|
629
931
|
/***/ 5917:
|
|
@@ -766,6 +1068,24 @@ module.exports = {
|
|
|
766
1068
|
};
|
|
767
1069
|
|
|
768
1070
|
|
|
1071
|
+
/***/ }),
|
|
1072
|
+
|
|
1073
|
+
/***/ 4209:
|
|
1074
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
1078
|
+
var Iterators = __webpack_require__(6269);
|
|
1079
|
+
|
|
1080
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1081
|
+
var ArrayPrototype = Array.prototype;
|
|
1082
|
+
|
|
1083
|
+
// check on default Array iterator
|
|
1084
|
+
module.exports = function (it) {
|
|
1085
|
+
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
|
|
769
1089
|
/***/ }),
|
|
770
1090
|
|
|
771
1091
|
/***/ 4376:
|
|
@@ -889,50 +1209,395 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
889
1209
|
|
|
890
1210
|
/***/ }),
|
|
891
1211
|
|
|
892
|
-
/***/
|
|
1212
|
+
/***/ 2652:
|
|
893
1213
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
894
1214
|
|
|
895
1215
|
|
|
896
|
-
var
|
|
1216
|
+
var bind = __webpack_require__(6080);
|
|
1217
|
+
var call = __webpack_require__(9565);
|
|
1218
|
+
var anObject = __webpack_require__(8551);
|
|
1219
|
+
var tryToString = __webpack_require__(6823);
|
|
1220
|
+
var isArrayIteratorMethod = __webpack_require__(4209);
|
|
1221
|
+
var lengthOfArrayLike = __webpack_require__(6198);
|
|
1222
|
+
var isPrototypeOf = __webpack_require__(1625);
|
|
1223
|
+
var getIterator = __webpack_require__(81);
|
|
1224
|
+
var getIteratorMethod = __webpack_require__(851);
|
|
1225
|
+
var iteratorClose = __webpack_require__(9539);
|
|
897
1226
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
1227
|
+
var $TypeError = TypeError;
|
|
1228
|
+
|
|
1229
|
+
var Result = function (stopped, result) {
|
|
1230
|
+
this.stopped = stopped;
|
|
1231
|
+
this.result = result;
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1234
|
+
var ResultPrototype = Result.prototype;
|
|
1235
|
+
|
|
1236
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
1237
|
+
var that = options && options.that;
|
|
1238
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1239
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1240
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1241
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1242
|
+
var fn = bind(unboundFunction, that);
|
|
1243
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
1244
|
+
|
|
1245
|
+
var stop = function (condition) {
|
|
1246
|
+
var $iterator = iterator;
|
|
1247
|
+
iterator = undefined;
|
|
1248
|
+
if ($iterator) iteratorClose($iterator, 'normal');
|
|
1249
|
+
return new Result(true, condition);
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
var callFn = function (value) {
|
|
1253
|
+
if (AS_ENTRIES) {
|
|
1254
|
+
anObject(value);
|
|
1255
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1256
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
if (IS_RECORD) {
|
|
1260
|
+
iterator = iterable.iterator;
|
|
1261
|
+
} else if (IS_ITERATOR) {
|
|
1262
|
+
iterator = iterable;
|
|
1263
|
+
} else {
|
|
1264
|
+
iterFn = getIteratorMethod(iterable);
|
|
1265
|
+
if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
|
|
1266
|
+
// optimisation for array iterators
|
|
1267
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
1268
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1269
|
+
result = callFn(iterable[index]);
|
|
1270
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1271
|
+
} return new Result(false);
|
|
1272
|
+
}
|
|
1273
|
+
iterator = getIterator(iterable, iterFn);
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1277
|
+
while (!(step = call(next, iterator)).done) {
|
|
1278
|
+
// `IteratorValue` errors should propagate without closing the iterator
|
|
1279
|
+
var value = step.value;
|
|
1280
|
+
try {
|
|
1281
|
+
result = callFn(value);
|
|
1282
|
+
} catch (error) {
|
|
1283
|
+
if (iterator) iteratorClose(iterator, 'throw', error);
|
|
1284
|
+
else throw error;
|
|
1285
|
+
}
|
|
1286
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1287
|
+
} return new Result(false);
|
|
902
1288
|
};
|
|
903
1289
|
|
|
904
1290
|
|
|
905
1291
|
/***/ }),
|
|
906
1292
|
|
|
907
|
-
/***/
|
|
1293
|
+
/***/ 1385:
|
|
908
1294
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
909
1295
|
|
|
910
1296
|
|
|
911
|
-
var
|
|
912
|
-
var fails = __webpack_require__(9039);
|
|
913
|
-
var isCallable = __webpack_require__(4901);
|
|
914
|
-
var hasOwn = __webpack_require__(9297);
|
|
915
|
-
var DESCRIPTORS = __webpack_require__(3724);
|
|
916
|
-
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(350).CONFIGURABLE);
|
|
917
|
-
var inspectSource = __webpack_require__(3706);
|
|
918
|
-
var InternalStateModule = __webpack_require__(1181);
|
|
1297
|
+
var iteratorClose = __webpack_require__(9539);
|
|
919
1298
|
|
|
920
|
-
|
|
921
|
-
var
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
1299
|
+
module.exports = function (iters, kind, value) {
|
|
1300
|
+
for (var i = iters.length - 1; i >= 0; i--) {
|
|
1301
|
+
if (iters[i] === undefined) continue;
|
|
1302
|
+
try {
|
|
1303
|
+
value = iteratorClose(iters[i].iterator, kind, value);
|
|
1304
|
+
} catch (error) {
|
|
1305
|
+
kind = 'throw';
|
|
1306
|
+
value = error;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
if (kind === 'throw') throw value;
|
|
1310
|
+
return value;
|
|
1311
|
+
};
|
|
928
1312
|
|
|
929
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
930
|
-
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
931
|
-
});
|
|
932
1313
|
|
|
933
|
-
|
|
1314
|
+
/***/ }),
|
|
934
1315
|
|
|
935
|
-
|
|
1316
|
+
/***/ 9539:
|
|
1317
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
var call = __webpack_require__(9565);
|
|
1321
|
+
var anObject = __webpack_require__(8551);
|
|
1322
|
+
var getMethod = __webpack_require__(5966);
|
|
1323
|
+
|
|
1324
|
+
module.exports = function (iterator, kind, value) {
|
|
1325
|
+
var innerResult, innerError;
|
|
1326
|
+
anObject(iterator);
|
|
1327
|
+
try {
|
|
1328
|
+
innerResult = getMethod(iterator, 'return');
|
|
1329
|
+
if (!innerResult) {
|
|
1330
|
+
if (kind === 'throw') throw value;
|
|
1331
|
+
return value;
|
|
1332
|
+
}
|
|
1333
|
+
innerResult = call(innerResult, iterator);
|
|
1334
|
+
} catch (error) {
|
|
1335
|
+
innerError = true;
|
|
1336
|
+
innerResult = error;
|
|
1337
|
+
}
|
|
1338
|
+
if (kind === 'throw') throw value;
|
|
1339
|
+
if (innerError) throw innerResult;
|
|
1340
|
+
anObject(innerResult);
|
|
1341
|
+
return value;
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
/***/ }),
|
|
1346
|
+
|
|
1347
|
+
/***/ 9462:
|
|
1348
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
var call = __webpack_require__(9565);
|
|
1352
|
+
var create = __webpack_require__(2360);
|
|
1353
|
+
var createNonEnumerableProperty = __webpack_require__(6699);
|
|
1354
|
+
var defineBuiltIns = __webpack_require__(6279);
|
|
1355
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
1356
|
+
var InternalStateModule = __webpack_require__(1181);
|
|
1357
|
+
var getMethod = __webpack_require__(5966);
|
|
1358
|
+
var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
|
|
1359
|
+
var createIterResultObject = __webpack_require__(2529);
|
|
1360
|
+
var iteratorClose = __webpack_require__(9539);
|
|
1361
|
+
var iteratorCloseAll = __webpack_require__(1385);
|
|
1362
|
+
|
|
1363
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1364
|
+
var ITERATOR_HELPER = 'IteratorHelper';
|
|
1365
|
+
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
1366
|
+
var NORMAL = 'normal';
|
|
1367
|
+
var THROW = 'throw';
|
|
1368
|
+
var setInternalState = InternalStateModule.set;
|
|
1369
|
+
|
|
1370
|
+
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
1371
|
+
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
1372
|
+
|
|
1373
|
+
return defineBuiltIns(create(IteratorPrototype), {
|
|
1374
|
+
next: function next() {
|
|
1375
|
+
var state = getInternalState(this);
|
|
1376
|
+
// for simplification:
|
|
1377
|
+
// for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
|
|
1378
|
+
// for `%IteratorHelperPrototype%.next` - just a value
|
|
1379
|
+
if (IS_ITERATOR) return state.nextHandler();
|
|
1380
|
+
if (state.done) return createIterResultObject(undefined, true);
|
|
1381
|
+
try {
|
|
1382
|
+
var result = state.nextHandler();
|
|
1383
|
+
return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
|
|
1384
|
+
} catch (error) {
|
|
1385
|
+
state.done = true;
|
|
1386
|
+
throw error;
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
'return': function () {
|
|
1390
|
+
var state = getInternalState(this);
|
|
1391
|
+
var iterator = state.iterator;
|
|
1392
|
+
var done = state.done;
|
|
1393
|
+
state.done = true;
|
|
1394
|
+
if (IS_ITERATOR) {
|
|
1395
|
+
var returnMethod = getMethod(iterator, 'return');
|
|
1396
|
+
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
1397
|
+
}
|
|
1398
|
+
if (done) return createIterResultObject(undefined, true);
|
|
1399
|
+
if (state.inner) try {
|
|
1400
|
+
iteratorClose(state.inner.iterator, NORMAL);
|
|
1401
|
+
} catch (error) {
|
|
1402
|
+
return iteratorClose(iterator, THROW, error);
|
|
1403
|
+
}
|
|
1404
|
+
if (state.openIters) try {
|
|
1405
|
+
iteratorCloseAll(state.openIters, NORMAL);
|
|
1406
|
+
} catch (error) {
|
|
1407
|
+
if (iterator) return iteratorClose(iterator, THROW, error);
|
|
1408
|
+
throw error;
|
|
1409
|
+
}
|
|
1410
|
+
if (iterator) iteratorClose(iterator, NORMAL);
|
|
1411
|
+
return createIterResultObject(undefined, true);
|
|
1412
|
+
}
|
|
1413
|
+
});
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
1417
|
+
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
1418
|
+
|
|
1419
|
+
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
1420
|
+
|
|
1421
|
+
module.exports = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
|
1422
|
+
var IteratorProxy = function Iterator(record, state) {
|
|
1423
|
+
if (state) {
|
|
1424
|
+
state.iterator = record.iterator;
|
|
1425
|
+
state.next = record.next;
|
|
1426
|
+
} else state = record;
|
|
1427
|
+
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
1428
|
+
state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
|
|
1429
|
+
state.nextHandler = nextHandler;
|
|
1430
|
+
state.counter = 0;
|
|
1431
|
+
state.done = false;
|
|
1432
|
+
setInternalState(this, state);
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
1436
|
+
|
|
1437
|
+
return IteratorProxy;
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
/***/ }),
|
|
1442
|
+
|
|
1443
|
+
/***/ 684:
|
|
1444
|
+
/***/ (function(module) {
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
// Should throw an error on invalid iterator
|
|
1448
|
+
// https://issues.chromium.org/issues/336839115
|
|
1449
|
+
module.exports = function (methodName, argument) {
|
|
1450
|
+
// eslint-disable-next-line es/no-iterator -- required for testing
|
|
1451
|
+
var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
|
|
1452
|
+
if (method) try {
|
|
1453
|
+
method.call({ next: null }, argument).next();
|
|
1454
|
+
} catch (error) {
|
|
1455
|
+
return true;
|
|
1456
|
+
}
|
|
1457
|
+
};
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
/***/ }),
|
|
1461
|
+
|
|
1462
|
+
/***/ 4549:
|
|
1463
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
var globalThis = __webpack_require__(4576);
|
|
1467
|
+
|
|
1468
|
+
// https://github.com/tc39/ecma262/pull/3467
|
|
1469
|
+
module.exports = function (METHOD_NAME, ExpectedError) {
|
|
1470
|
+
var Iterator = globalThis.Iterator;
|
|
1471
|
+
var IteratorPrototype = Iterator && Iterator.prototype;
|
|
1472
|
+
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
|
1473
|
+
|
|
1474
|
+
var CLOSED = false;
|
|
1475
|
+
|
|
1476
|
+
if (method) try {
|
|
1477
|
+
method.call({
|
|
1478
|
+
next: function () { return { done: true }; },
|
|
1479
|
+
'return': function () { CLOSED = true; }
|
|
1480
|
+
}, -1);
|
|
1481
|
+
} catch (error) {
|
|
1482
|
+
// https://bugs.webkit.org/show_bug.cgi?id=291195
|
|
1483
|
+
if (!(error instanceof ExpectedError)) CLOSED = false;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
if (!CLOSED) return method;
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
/***/ }),
|
|
1491
|
+
|
|
1492
|
+
/***/ 7657:
|
|
1493
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
var fails = __webpack_require__(9039);
|
|
1497
|
+
var isCallable = __webpack_require__(4901);
|
|
1498
|
+
var isObject = __webpack_require__(34);
|
|
1499
|
+
var create = __webpack_require__(2360);
|
|
1500
|
+
var getPrototypeOf = __webpack_require__(2787);
|
|
1501
|
+
var defineBuiltIn = __webpack_require__(6840);
|
|
1502
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
1503
|
+
var IS_PURE = __webpack_require__(6395);
|
|
1504
|
+
|
|
1505
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1506
|
+
var BUGGY_SAFARI_ITERATORS = false;
|
|
1507
|
+
|
|
1508
|
+
// `%IteratorPrototype%` object
|
|
1509
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1510
|
+
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1511
|
+
|
|
1512
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1513
|
+
if ([].keys) {
|
|
1514
|
+
arrayIterator = [].keys();
|
|
1515
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
1516
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
|
1517
|
+
else {
|
|
1518
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
|
|
1519
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
|
|
1524
|
+
var test = {};
|
|
1525
|
+
// FF44- legacy iterators case
|
|
1526
|
+
return IteratorPrototype[ITERATOR].call(test) !== test;
|
|
1527
|
+
});
|
|
1528
|
+
|
|
1529
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
|
1530
|
+
else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
|
|
1531
|
+
|
|
1532
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
1533
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1534
|
+
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
1535
|
+
defineBuiltIn(IteratorPrototype, ITERATOR, function () {
|
|
1536
|
+
return this;
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
module.exports = {
|
|
1541
|
+
IteratorPrototype: IteratorPrototype,
|
|
1542
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
|
|
1546
|
+
/***/ }),
|
|
1547
|
+
|
|
1548
|
+
/***/ 6269:
|
|
1549
|
+
/***/ (function(module) {
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
module.exports = {};
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
/***/ }),
|
|
1556
|
+
|
|
1557
|
+
/***/ 6198:
|
|
1558
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
var toLength = __webpack_require__(8014);
|
|
1562
|
+
|
|
1563
|
+
// `LengthOfArrayLike` abstract operation
|
|
1564
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
1565
|
+
module.exports = function (obj) {
|
|
1566
|
+
return toLength(obj.length);
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
/***/ }),
|
|
1571
|
+
|
|
1572
|
+
/***/ 283:
|
|
1573
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
var uncurryThis = __webpack_require__(9504);
|
|
1577
|
+
var fails = __webpack_require__(9039);
|
|
1578
|
+
var isCallable = __webpack_require__(4901);
|
|
1579
|
+
var hasOwn = __webpack_require__(9297);
|
|
1580
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
1581
|
+
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(350).CONFIGURABLE);
|
|
1582
|
+
var inspectSource = __webpack_require__(3706);
|
|
1583
|
+
var InternalStateModule = __webpack_require__(1181);
|
|
1584
|
+
|
|
1585
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
1586
|
+
var getInternalState = InternalStateModule.get;
|
|
1587
|
+
var $String = String;
|
|
1588
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1589
|
+
var defineProperty = Object.defineProperty;
|
|
1590
|
+
var stringSlice = uncurryThis(''.slice);
|
|
1591
|
+
var replace = uncurryThis(''.replace);
|
|
1592
|
+
var join = uncurryThis([].join);
|
|
1593
|
+
|
|
1594
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
1595
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1596
|
+
});
|
|
1597
|
+
|
|
1598
|
+
var TEMPLATE = String(String).split('String');
|
|
1599
|
+
|
|
1600
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
936
1601
|
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
937
1602
|
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
938
1603
|
}
|
|
@@ -982,6 +1647,126 @@ module.exports = Math.trunc || function trunc(x) {
|
|
|
982
1647
|
};
|
|
983
1648
|
|
|
984
1649
|
|
|
1650
|
+
/***/ }),
|
|
1651
|
+
|
|
1652
|
+
/***/ 2360:
|
|
1653
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1657
|
+
var anObject = __webpack_require__(8551);
|
|
1658
|
+
var definePropertiesModule = __webpack_require__(6801);
|
|
1659
|
+
var enumBugKeys = __webpack_require__(8727);
|
|
1660
|
+
var hiddenKeys = __webpack_require__(421);
|
|
1661
|
+
var html = __webpack_require__(397);
|
|
1662
|
+
var documentCreateElement = __webpack_require__(4055);
|
|
1663
|
+
var sharedKey = __webpack_require__(6119);
|
|
1664
|
+
|
|
1665
|
+
var GT = '>';
|
|
1666
|
+
var LT = '<';
|
|
1667
|
+
var PROTOTYPE = 'prototype';
|
|
1668
|
+
var SCRIPT = 'script';
|
|
1669
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1670
|
+
|
|
1671
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
1672
|
+
|
|
1673
|
+
var scriptTag = function (content) {
|
|
1674
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1678
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1679
|
+
activeXDocument.write(scriptTag(''));
|
|
1680
|
+
activeXDocument.close();
|
|
1681
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
1682
|
+
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
1683
|
+
activeXDocument = null;
|
|
1684
|
+
return temp;
|
|
1685
|
+
};
|
|
1686
|
+
|
|
1687
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1688
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1689
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1690
|
+
var iframe = documentCreateElement('iframe');
|
|
1691
|
+
var JS = 'java' + SCRIPT + ':';
|
|
1692
|
+
var iframeDocument;
|
|
1693
|
+
iframe.style.display = 'none';
|
|
1694
|
+
html.appendChild(iframe);
|
|
1695
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1696
|
+
iframe.src = String(JS);
|
|
1697
|
+
iframeDocument = iframe.contentWindow.document;
|
|
1698
|
+
iframeDocument.open();
|
|
1699
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1700
|
+
iframeDocument.close();
|
|
1701
|
+
return iframeDocument.F;
|
|
1702
|
+
};
|
|
1703
|
+
|
|
1704
|
+
// Check for document.domain and active x support
|
|
1705
|
+
// No need to use active x approach when document.domain is not set
|
|
1706
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1707
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1708
|
+
// avoid IE GC bug
|
|
1709
|
+
var activeXDocument;
|
|
1710
|
+
var NullProtoObject = function () {
|
|
1711
|
+
try {
|
|
1712
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1713
|
+
} catch (error) { /* ignore */ }
|
|
1714
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1715
|
+
? document.domain && activeXDocument
|
|
1716
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1717
|
+
: NullProtoObjectViaIFrame()
|
|
1718
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1719
|
+
var length = enumBugKeys.length;
|
|
1720
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1721
|
+
return NullProtoObject();
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1724
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1725
|
+
|
|
1726
|
+
// `Object.create` method
|
|
1727
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1728
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1729
|
+
module.exports = Object.create || function create(O, Properties) {
|
|
1730
|
+
var result;
|
|
1731
|
+
if (O !== null) {
|
|
1732
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1733
|
+
result = new EmptyConstructor();
|
|
1734
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1735
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1736
|
+
result[IE_PROTO] = O;
|
|
1737
|
+
} else result = NullProtoObject();
|
|
1738
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1739
|
+
};
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
/***/ }),
|
|
1743
|
+
|
|
1744
|
+
/***/ 6801:
|
|
1745
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
1749
|
+
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(8686);
|
|
1750
|
+
var definePropertyModule = __webpack_require__(4913);
|
|
1751
|
+
var anObject = __webpack_require__(8551);
|
|
1752
|
+
var toIndexedObject = __webpack_require__(5397);
|
|
1753
|
+
var objectKeys = __webpack_require__(1072);
|
|
1754
|
+
|
|
1755
|
+
// `Object.defineProperties` method
|
|
1756
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1757
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1758
|
+
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1759
|
+
anObject(O);
|
|
1760
|
+
var props = toIndexedObject(Properties);
|
|
1761
|
+
var keys = objectKeys(Properties);
|
|
1762
|
+
var length = keys.length;
|
|
1763
|
+
var index = 0;
|
|
1764
|
+
var key;
|
|
1765
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1766
|
+
return O;
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1769
|
+
|
|
985
1770
|
/***/ }),
|
|
986
1771
|
|
|
987
1772
|
/***/ 4913:
|
|
@@ -1092,6 +1877,35 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
|
1092
1877
|
exports.f = Object.getOwnPropertySymbols;
|
|
1093
1878
|
|
|
1094
1879
|
|
|
1880
|
+
/***/ }),
|
|
1881
|
+
|
|
1882
|
+
/***/ 2787:
|
|
1883
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
var hasOwn = __webpack_require__(9297);
|
|
1887
|
+
var isCallable = __webpack_require__(4901);
|
|
1888
|
+
var toObject = __webpack_require__(8981);
|
|
1889
|
+
var sharedKey = __webpack_require__(6119);
|
|
1890
|
+
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(2211);
|
|
1891
|
+
|
|
1892
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1893
|
+
var $Object = Object;
|
|
1894
|
+
var ObjectPrototype = $Object.prototype;
|
|
1895
|
+
|
|
1896
|
+
// `Object.getPrototypeOf` method
|
|
1897
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1898
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1899
|
+
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1900
|
+
var object = toObject(O);
|
|
1901
|
+
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
|
|
1902
|
+
var constructor = object.constructor;
|
|
1903
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
1904
|
+
return constructor.prototype;
|
|
1905
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1908
|
+
|
|
1095
1909
|
/***/ }),
|
|
1096
1910
|
|
|
1097
1911
|
/***/ 1625:
|
|
@@ -1131,6 +1945,23 @@ module.exports = function (object, names) {
|
|
|
1131
1945
|
};
|
|
1132
1946
|
|
|
1133
1947
|
|
|
1948
|
+
/***/ }),
|
|
1949
|
+
|
|
1950
|
+
/***/ 1072:
|
|
1951
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
var internalObjectKeys = __webpack_require__(1828);
|
|
1955
|
+
var enumBugKeys = __webpack_require__(8727);
|
|
1956
|
+
|
|
1957
|
+
// `Object.keys` method
|
|
1958
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
1959
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1960
|
+
module.exports = Object.keys || function keys(O) {
|
|
1961
|
+
return internalObjectKeys(O, enumBugKeys);
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
|
|
1134
1965
|
/***/ }),
|
|
1135
1966
|
|
|
1136
1967
|
/***/ 8773:
|
|
@@ -1245,10 +2076,10 @@ var SHARED = '__core-js_shared__';
|
|
|
1245
2076
|
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
1246
2077
|
|
|
1247
2078
|
(store.versions || (store.versions = [])).push({
|
|
1248
|
-
version: '3.
|
|
2079
|
+
version: '3.49.0',
|
|
1249
2080
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1250
|
-
copyright: '©
|
|
1251
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
2081
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
2082
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
|
|
1252
2083
|
source: 'https://github.com/zloirock/core-js'
|
|
1253
2084
|
});
|
|
1254
2085
|
|
|
@@ -1429,6 +2260,22 @@ module.exports = function (argument) {
|
|
|
1429
2260
|
};
|
|
1430
2261
|
|
|
1431
2262
|
|
|
2263
|
+
/***/ }),
|
|
2264
|
+
|
|
2265
|
+
/***/ 2140:
|
|
2266
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2267
|
+
|
|
2268
|
+
|
|
2269
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
2270
|
+
|
|
2271
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
2272
|
+
var test = {};
|
|
2273
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
2274
|
+
test[TO_STRING_TAG] = 'z';
|
|
2275
|
+
|
|
2276
|
+
module.exports = String(test) === '[object z]';
|
|
2277
|
+
|
|
2278
|
+
|
|
1432
2279
|
/***/ }),
|
|
1433
2280
|
|
|
1434
2281
|
/***/ 6823:
|
|
@@ -1456,7 +2303,7 @@ var uncurryThis = __webpack_require__(9504);
|
|
|
1456
2303
|
|
|
1457
2304
|
var id = 0;
|
|
1458
2305
|
var postfix = Math.random();
|
|
1459
|
-
var toString = uncurryThis(1.
|
|
2306
|
+
var toString = uncurryThis(1.1.toString);
|
|
1460
2307
|
|
|
1461
2308
|
module.exports = function (key) {
|
|
1462
2309
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
@@ -1472,9 +2319,9 @@ module.exports = function (key) {
|
|
|
1472
2319
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
1473
2320
|
var NATIVE_SYMBOL = __webpack_require__(4495);
|
|
1474
2321
|
|
|
1475
|
-
module.exports = NATIVE_SYMBOL
|
|
1476
|
-
|
|
1477
|
-
|
|
2322
|
+
module.exports = NATIVE_SYMBOL &&
|
|
2323
|
+
!Symbol.sham &&
|
|
2324
|
+
typeof Symbol.iterator == 'symbol';
|
|
1478
2325
|
|
|
1479
2326
|
|
|
1480
2327
|
/***/ }),
|
|
@@ -1537,6 +2384,41 @@ module.exports = function (name) {
|
|
|
1537
2384
|
};
|
|
1538
2385
|
|
|
1539
2386
|
|
|
2387
|
+
/***/ }),
|
|
2388
|
+
|
|
2389
|
+
/***/ 4423:
|
|
2390
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2391
|
+
|
|
2392
|
+
|
|
2393
|
+
var $ = __webpack_require__(6518);
|
|
2394
|
+
var $includes = (__webpack_require__(9617).includes);
|
|
2395
|
+
var fails = __webpack_require__(9039);
|
|
2396
|
+
var addToUnscopables = __webpack_require__(6469);
|
|
2397
|
+
|
|
2398
|
+
// FF99+ bug
|
|
2399
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
|
2400
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
2401
|
+
return !Array(1).includes();
|
|
2402
|
+
});
|
|
2403
|
+
|
|
2404
|
+
// Safari 26.4- bug
|
|
2405
|
+
var BROKEN_ON_SPARSE_WITH_FROM_INDEX = fails(function () {
|
|
2406
|
+
// eslint-disable-next-line no-sparse-arrays, es/no-array-prototype-includes -- detection
|
|
2407
|
+
return [, 1].includes(undefined, 1);
|
|
2408
|
+
});
|
|
2409
|
+
|
|
2410
|
+
// `Array.prototype.includes` method
|
|
2411
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
2412
|
+
$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE || BROKEN_ON_SPARSE_WITH_FROM_INDEX }, {
|
|
2413
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
2414
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
2415
|
+
}
|
|
2416
|
+
});
|
|
2417
|
+
|
|
2418
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2419
|
+
addToUnscopables('includes');
|
|
2420
|
+
|
|
2421
|
+
|
|
1540
2422
|
/***/ }),
|
|
1541
2423
|
|
|
1542
2424
|
/***/ 4114:
|
|
@@ -1586,28 +2468,450 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
|
1586
2468
|
});
|
|
1587
2469
|
|
|
1588
2470
|
|
|
1589
|
-
/***/ })
|
|
2471
|
+
/***/ }),
|
|
1590
2472
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
2473
|
+
/***/ 8111:
|
|
2474
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2475
|
+
|
|
2476
|
+
|
|
2477
|
+
var $ = __webpack_require__(6518);
|
|
2478
|
+
var globalThis = __webpack_require__(4576);
|
|
2479
|
+
var anInstance = __webpack_require__(679);
|
|
2480
|
+
var anObject = __webpack_require__(8551);
|
|
2481
|
+
var isCallable = __webpack_require__(4901);
|
|
2482
|
+
var getPrototypeOf = __webpack_require__(2787);
|
|
2483
|
+
var defineBuiltInAccessor = __webpack_require__(2106);
|
|
2484
|
+
var createProperty = __webpack_require__(4659);
|
|
2485
|
+
var fails = __webpack_require__(9039);
|
|
2486
|
+
var hasOwn = __webpack_require__(9297);
|
|
2487
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
2488
|
+
var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
|
|
2489
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
2490
|
+
var IS_PURE = __webpack_require__(6395);
|
|
2491
|
+
|
|
2492
|
+
var CONSTRUCTOR = 'constructor';
|
|
2493
|
+
var ITERATOR = 'Iterator';
|
|
2494
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
2495
|
+
|
|
2496
|
+
var $TypeError = TypeError;
|
|
2497
|
+
var NativeIterator = globalThis[ITERATOR];
|
|
2498
|
+
|
|
2499
|
+
// FF56- have non-standard global helper `Iterator`
|
|
2500
|
+
var FORCED = IS_PURE
|
|
2501
|
+
|| !isCallable(NativeIterator)
|
|
2502
|
+
|| NativeIterator.prototype !== IteratorPrototype
|
|
2503
|
+
// FF44- non-standard `Iterator` passes previous tests
|
|
2504
|
+
|| !fails(function () { NativeIterator({}); });
|
|
2505
|
+
|
|
2506
|
+
var IteratorConstructor = function Iterator() {
|
|
2507
|
+
anInstance(this, IteratorPrototype);
|
|
2508
|
+
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');
|
|
2509
|
+
};
|
|
2510
|
+
|
|
2511
|
+
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
2512
|
+
if (DESCRIPTORS) {
|
|
2513
|
+
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
2514
|
+
configurable: true,
|
|
2515
|
+
get: function () {
|
|
2516
|
+
return value;
|
|
2517
|
+
},
|
|
2518
|
+
set: function (replacement) {
|
|
2519
|
+
anObject(this);
|
|
2520
|
+
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");
|
|
2521
|
+
if (hasOwn(this, key)) this[key] = replacement;
|
|
2522
|
+
else createProperty(this, key, replacement);
|
|
2523
|
+
}
|
|
2524
|
+
});
|
|
2525
|
+
} else IteratorPrototype[key] = value;
|
|
2526
|
+
};
|
|
2527
|
+
|
|
2528
|
+
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR);
|
|
2529
|
+
|
|
2530
|
+
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
2531
|
+
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
IteratorConstructor.prototype = IteratorPrototype;
|
|
2535
|
+
|
|
2536
|
+
// `Iterator` constructor
|
|
2537
|
+
// https://tc39.es/ecma262/#sec-iterator
|
|
2538
|
+
$({ global: true, constructor: true, forced: FORCED }, {
|
|
2539
|
+
Iterator: IteratorConstructor
|
|
2540
|
+
});
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
/***/ }),
|
|
2544
|
+
|
|
2545
|
+
/***/ 1148:
|
|
2546
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
var $ = __webpack_require__(6518);
|
|
2550
|
+
var call = __webpack_require__(9565);
|
|
2551
|
+
var iterate = __webpack_require__(2652);
|
|
2552
|
+
var aCallable = __webpack_require__(9306);
|
|
2553
|
+
var anObject = __webpack_require__(8551);
|
|
2554
|
+
var getIteratorDirect = __webpack_require__(1767);
|
|
2555
|
+
var iteratorClose = __webpack_require__(9539);
|
|
2556
|
+
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
2557
|
+
|
|
2558
|
+
var everyWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('every', TypeError);
|
|
2559
|
+
|
|
2560
|
+
// `Iterator.prototype.every` method
|
|
2561
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.every
|
|
2562
|
+
$({ target: 'Iterator', proto: true, real: true, forced: everyWithoutClosingOnEarlyError }, {
|
|
2563
|
+
every: function every(predicate) {
|
|
2564
|
+
anObject(this);
|
|
2565
|
+
try {
|
|
2566
|
+
aCallable(predicate);
|
|
2567
|
+
} catch (error) {
|
|
2568
|
+
iteratorClose(this, 'throw', error);
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
if (everyWithoutClosingOnEarlyError) return call(everyWithoutClosingOnEarlyError, this, predicate);
|
|
2572
|
+
|
|
2573
|
+
var record = getIteratorDirect(this);
|
|
2574
|
+
var counter = 0;
|
|
2575
|
+
return !iterate(record, function (value, stop) {
|
|
2576
|
+
if (!predicate(value, counter++)) return stop();
|
|
2577
|
+
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
2578
|
+
}
|
|
2579
|
+
});
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
/***/ }),
|
|
2583
|
+
|
|
2584
|
+
/***/ 2489:
|
|
2585
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2586
|
+
|
|
2587
|
+
|
|
2588
|
+
var $ = __webpack_require__(6518);
|
|
2589
|
+
var call = __webpack_require__(9565);
|
|
2590
|
+
var aCallable = __webpack_require__(9306);
|
|
2591
|
+
var anObject = __webpack_require__(8551);
|
|
2592
|
+
var getIteratorDirect = __webpack_require__(1767);
|
|
2593
|
+
var createIteratorProxy = __webpack_require__(9462);
|
|
2594
|
+
var callWithSafeIterationClosing = __webpack_require__(6319);
|
|
2595
|
+
var IS_PURE = __webpack_require__(6395);
|
|
2596
|
+
var iteratorClose = __webpack_require__(9539);
|
|
2597
|
+
var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(684);
|
|
2598
|
+
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
2599
|
+
|
|
2600
|
+
var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ });
|
|
2601
|
+
var filterWithoutClosingOnEarlyError = !IS_PURE && !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
2602
|
+
&& iteratorHelperWithoutClosingOnEarlyError('filter', TypeError);
|
|
2603
|
+
|
|
2604
|
+
var FORCED = IS_PURE || FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;
|
|
2605
|
+
|
|
2606
|
+
var IteratorProxy = createIteratorProxy(function () {
|
|
2607
|
+
var iterator = this.iterator;
|
|
2608
|
+
var predicate = this.predicate;
|
|
2609
|
+
var next = this.next;
|
|
2610
|
+
var result, done, value;
|
|
2611
|
+
while (true) {
|
|
2612
|
+
result = anObject(call(next, iterator));
|
|
2613
|
+
done = this.done = !!result.done;
|
|
2614
|
+
if (done) return;
|
|
2615
|
+
value = result.value;
|
|
2616
|
+
if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
|
|
2617
|
+
}
|
|
2618
|
+
});
|
|
2619
|
+
|
|
2620
|
+
// `Iterator.prototype.filter` method
|
|
2621
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
|
|
2622
|
+
$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
|
|
2623
|
+
filter: function filter(predicate) {
|
|
2624
|
+
anObject(this);
|
|
2625
|
+
try {
|
|
2626
|
+
aCallable(predicate);
|
|
2627
|
+
} catch (error) {
|
|
2628
|
+
iteratorClose(this, 'throw', error);
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
if (filterWithoutClosingOnEarlyError) return call(filterWithoutClosingOnEarlyError, this, predicate);
|
|
2632
|
+
|
|
2633
|
+
return new IteratorProxy(getIteratorDirect(this), {
|
|
2634
|
+
predicate: predicate
|
|
2635
|
+
});
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
/***/ }),
|
|
2641
|
+
|
|
2642
|
+
/***/ 116:
|
|
2643
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2644
|
+
|
|
2645
|
+
|
|
2646
|
+
var $ = __webpack_require__(6518);
|
|
2647
|
+
var call = __webpack_require__(9565);
|
|
2648
|
+
var iterate = __webpack_require__(2652);
|
|
2649
|
+
var aCallable = __webpack_require__(9306);
|
|
2650
|
+
var anObject = __webpack_require__(8551);
|
|
2651
|
+
var getIteratorDirect = __webpack_require__(1767);
|
|
2652
|
+
var iteratorClose = __webpack_require__(9539);
|
|
2653
|
+
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
2654
|
+
|
|
2655
|
+
var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('find', TypeError);
|
|
2656
|
+
|
|
2657
|
+
// `Iterator.prototype.find` method
|
|
2658
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.find
|
|
2659
|
+
$({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
|
|
2660
|
+
find: function find(predicate) {
|
|
2661
|
+
anObject(this);
|
|
2662
|
+
try {
|
|
2663
|
+
aCallable(predicate);
|
|
2664
|
+
} catch (error) {
|
|
2665
|
+
iteratorClose(this, 'throw', error);
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
if (findWithoutClosingOnEarlyError) return call(findWithoutClosingOnEarlyError, this, predicate);
|
|
2669
|
+
|
|
2670
|
+
var record = getIteratorDirect(this);
|
|
2671
|
+
var counter = 0;
|
|
2672
|
+
return iterate(record, function (value, stop) {
|
|
2673
|
+
if (predicate(value, counter++)) return stop(value);
|
|
2674
|
+
}, { IS_RECORD: true, INTERRUPTED: true }).result;
|
|
2675
|
+
}
|
|
2676
|
+
});
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
/***/ }),
|
|
2680
|
+
|
|
2681
|
+
/***/ 7588:
|
|
2682
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2683
|
+
|
|
2684
|
+
|
|
2685
|
+
var $ = __webpack_require__(6518);
|
|
2686
|
+
var call = __webpack_require__(9565);
|
|
2687
|
+
var iterate = __webpack_require__(2652);
|
|
2688
|
+
var aCallable = __webpack_require__(9306);
|
|
2689
|
+
var anObject = __webpack_require__(8551);
|
|
2690
|
+
var getIteratorDirect = __webpack_require__(1767);
|
|
2691
|
+
var iteratorClose = __webpack_require__(9539);
|
|
2692
|
+
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
2693
|
+
|
|
2694
|
+
var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('forEach', TypeError);
|
|
2695
|
+
|
|
2696
|
+
// `Iterator.prototype.forEach` method
|
|
2697
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
2698
|
+
$({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
|
|
2699
|
+
forEach: function forEach(fn) {
|
|
2700
|
+
anObject(this);
|
|
2701
|
+
try {
|
|
2702
|
+
aCallable(fn);
|
|
2703
|
+
} catch (error) {
|
|
2704
|
+
iteratorClose(this, 'throw', error);
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn);
|
|
2708
|
+
|
|
2709
|
+
var record = getIteratorDirect(this);
|
|
2710
|
+
var counter = 0;
|
|
2711
|
+
iterate(record, function (value) {
|
|
2712
|
+
fn(value, counter++);
|
|
2713
|
+
}, { IS_RECORD: true });
|
|
2714
|
+
}
|
|
2715
|
+
});
|
|
2716
|
+
|
|
2717
|
+
|
|
2718
|
+
/***/ }),
|
|
2719
|
+
|
|
2720
|
+
/***/ 1701:
|
|
2721
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
var $ = __webpack_require__(6518);
|
|
2725
|
+
var call = __webpack_require__(9565);
|
|
2726
|
+
var aCallable = __webpack_require__(9306);
|
|
2727
|
+
var anObject = __webpack_require__(8551);
|
|
2728
|
+
var getIteratorDirect = __webpack_require__(1767);
|
|
2729
|
+
var createIteratorProxy = __webpack_require__(9462);
|
|
2730
|
+
var callWithSafeIterationClosing = __webpack_require__(6319);
|
|
2731
|
+
var iteratorClose = __webpack_require__(9539);
|
|
2732
|
+
var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(684);
|
|
2733
|
+
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
2734
|
+
var IS_PURE = __webpack_require__(6395);
|
|
2735
|
+
|
|
2736
|
+
var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ });
|
|
2737
|
+
var mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
2738
|
+
&& iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
|
|
2739
|
+
|
|
2740
|
+
var FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
|
|
2741
|
+
|
|
2742
|
+
var IteratorProxy = createIteratorProxy(function () {
|
|
2743
|
+
var iterator = this.iterator;
|
|
2744
|
+
var result = anObject(call(this.next, iterator));
|
|
2745
|
+
var done = this.done = !!result.done;
|
|
2746
|
+
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
|
2747
|
+
});
|
|
2748
|
+
|
|
2749
|
+
// `Iterator.prototype.map` method
|
|
2750
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
2751
|
+
$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
|
|
2752
|
+
map: function map(mapper) {
|
|
2753
|
+
anObject(this);
|
|
2754
|
+
try {
|
|
2755
|
+
aCallable(mapper);
|
|
2756
|
+
} catch (error) {
|
|
2757
|
+
iteratorClose(this, 'throw', error);
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);
|
|
2761
|
+
|
|
2762
|
+
return new IteratorProxy(getIteratorDirect(this), {
|
|
2763
|
+
mapper: mapper
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
});
|
|
2767
|
+
|
|
2768
|
+
|
|
2769
|
+
/***/ }),
|
|
2770
|
+
|
|
2771
|
+
/***/ 8237:
|
|
2772
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2773
|
+
|
|
2774
|
+
|
|
2775
|
+
var $ = __webpack_require__(6518);
|
|
2776
|
+
var iterate = __webpack_require__(2652);
|
|
2777
|
+
var aCallable = __webpack_require__(9306);
|
|
2778
|
+
var anObject = __webpack_require__(8551);
|
|
2779
|
+
var getIteratorDirect = __webpack_require__(1767);
|
|
2780
|
+
var iteratorClose = __webpack_require__(9539);
|
|
2781
|
+
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
2782
|
+
var apply = __webpack_require__(8745);
|
|
2783
|
+
var fails = __webpack_require__(9039);
|
|
2784
|
+
|
|
2785
|
+
var $TypeError = TypeError;
|
|
2786
|
+
|
|
2787
|
+
// https://bugs.webkit.org/show_bug.cgi?id=291651
|
|
2788
|
+
var FAILS_ON_INITIAL_UNDEFINED = fails(function () {
|
|
2789
|
+
// eslint-disable-next-line es/no-iterator-prototype-reduce, es/no-array-prototype-keys, array-callback-return -- required for testing
|
|
2790
|
+
[].keys().reduce(function () { /* empty */ }, undefined);
|
|
2791
|
+
});
|
|
2792
|
+
|
|
2793
|
+
var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHelperWithoutClosingOnEarlyError('reduce', $TypeError);
|
|
2794
|
+
|
|
2795
|
+
// `Iterator.prototype.reduce` method
|
|
2796
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.reduce
|
|
2797
|
+
$({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
|
|
2798
|
+
reduce: function reduce(reducer /* , initialValue */) {
|
|
2799
|
+
anObject(this);
|
|
2800
|
+
try {
|
|
2801
|
+
aCallable(reducer);
|
|
2802
|
+
} catch (error) {
|
|
2803
|
+
iteratorClose(this, 'throw', error);
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
var noInitial = arguments.length < 2;
|
|
2807
|
+
var accumulator = noInitial ? undefined : arguments[1];
|
|
2808
|
+
if (reduceWithoutClosingOnEarlyError) {
|
|
2809
|
+
return apply(reduceWithoutClosingOnEarlyError, this, noInitial ? [reducer] : [reducer, accumulator]);
|
|
2810
|
+
}
|
|
2811
|
+
var record = getIteratorDirect(this);
|
|
2812
|
+
var counter = 0;
|
|
2813
|
+
iterate(record, function (value) {
|
|
2814
|
+
if (noInitial) {
|
|
2815
|
+
noInitial = false;
|
|
2816
|
+
accumulator = value;
|
|
2817
|
+
} else {
|
|
2818
|
+
accumulator = reducer(accumulator, value, counter);
|
|
2819
|
+
}
|
|
2820
|
+
counter++;
|
|
2821
|
+
}, { IS_RECORD: true });
|
|
2822
|
+
if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value');
|
|
2823
|
+
return accumulator;
|
|
2824
|
+
}
|
|
2825
|
+
});
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
/***/ }),
|
|
2829
|
+
|
|
2830
|
+
/***/ 3579:
|
|
2831
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
var $ = __webpack_require__(6518);
|
|
2835
|
+
var call = __webpack_require__(9565);
|
|
2836
|
+
var iterate = __webpack_require__(2652);
|
|
2837
|
+
var aCallable = __webpack_require__(9306);
|
|
2838
|
+
var anObject = __webpack_require__(8551);
|
|
2839
|
+
var getIteratorDirect = __webpack_require__(1767);
|
|
2840
|
+
var iteratorClose = __webpack_require__(9539);
|
|
2841
|
+
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
2842
|
+
|
|
2843
|
+
var someWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('some', TypeError);
|
|
2844
|
+
|
|
2845
|
+
// `Iterator.prototype.some` method
|
|
2846
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.some
|
|
2847
|
+
$({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
|
|
2848
|
+
some: function some(predicate) {
|
|
2849
|
+
anObject(this);
|
|
2850
|
+
try {
|
|
2851
|
+
aCallable(predicate);
|
|
2852
|
+
} catch (error) {
|
|
2853
|
+
iteratorClose(this, 'throw', error);
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
if (someWithoutClosingOnEarlyError) return call(someWithoutClosingOnEarlyError, this, predicate);
|
|
2857
|
+
|
|
2858
|
+
var record = getIteratorDirect(this);
|
|
2859
|
+
var counter = 0;
|
|
2860
|
+
return iterate(record, function (value, stop) {
|
|
2861
|
+
if (predicate(value, counter++)) return stop();
|
|
2862
|
+
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
2863
|
+
}
|
|
2864
|
+
});
|
|
2865
|
+
|
|
2866
|
+
|
|
2867
|
+
/***/ }),
|
|
2868
|
+
|
|
2869
|
+
/***/ 1806:
|
|
2870
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
var $ = __webpack_require__(6518);
|
|
2874
|
+
var anObject = __webpack_require__(8551);
|
|
2875
|
+
var createProperty = __webpack_require__(4659);
|
|
2876
|
+
var iterate = __webpack_require__(2652);
|
|
2877
|
+
var getIteratorDirect = __webpack_require__(1767);
|
|
2878
|
+
|
|
2879
|
+
// `Iterator.prototype.toArray` method
|
|
2880
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.toarray
|
|
2881
|
+
$({ target: 'Iterator', proto: true, real: true }, {
|
|
2882
|
+
toArray: function toArray() {
|
|
2883
|
+
var result = [];
|
|
2884
|
+
var index = 0;
|
|
2885
|
+
iterate(getIteratorDirect(anObject(this)), function (element) {
|
|
2886
|
+
createProperty(result, index++, element);
|
|
2887
|
+
}, { IS_RECORD: true });
|
|
2888
|
+
return result;
|
|
2889
|
+
}
|
|
2890
|
+
});
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
/***/ })
|
|
2894
|
+
|
|
2895
|
+
/******/ });
|
|
2896
|
+
/************************************************************************/
|
|
2897
|
+
/******/ // The module cache
|
|
2898
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2899
|
+
/******/
|
|
2900
|
+
/******/ // The require function
|
|
2901
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2902
|
+
/******/ // Check if module is in cache
|
|
2903
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
2904
|
+
/******/ if (cachedModule !== undefined) {
|
|
2905
|
+
/******/ return cachedModule.exports;
|
|
2906
|
+
/******/ }
|
|
2907
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2908
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2909
|
+
/******/ // no module.id needed
|
|
2910
|
+
/******/ // no module.loaded needed
|
|
2911
|
+
/******/ exports: {}
|
|
2912
|
+
/******/ };
|
|
2913
|
+
/******/
|
|
2914
|
+
/******/ // Execute the module function
|
|
1611
2915
|
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
1612
2916
|
/******/
|
|
1613
2917
|
/******/ // Return the exports of the module
|
|
@@ -1772,13 +3076,14 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1772
3076
|
version: function() { return version; }
|
|
1773
3077
|
});
|
|
1774
3078
|
|
|
1775
|
-
;//
|
|
3079
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
1776
3080
|
/* eslint-disable no-var */
|
|
1777
3081
|
// This file is imported into lib/wc client bundles.
|
|
1778
3082
|
|
|
1779
3083
|
if (typeof window !== 'undefined') {
|
|
1780
3084
|
var currentScript = window.document.currentScript
|
|
1781
|
-
if (false)
|
|
3085
|
+
if (false) // removed by dead control flow
|
|
3086
|
+
{ var getCurrentScript; }
|
|
1782
3087
|
|
|
1783
3088
|
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
1784
3089
|
if (src) {
|
|
@@ -1794,7 +3099,7 @@ var core_ = __webpack_require__(4345);
|
|
|
1794
3099
|
// EXTERNAL MODULE: external {"root":"XEUtils","commonjs":"xe-utils","commonjs2":"xe-utils","amd":"xe-utils"}
|
|
1795
3100
|
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_ = __webpack_require__(8871);
|
|
1796
3101
|
var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_);
|
|
1797
|
-
;//
|
|
3102
|
+
;// ./node_modules/dom-zindex/es/index.esm.js
|
|
1798
3103
|
var winDom = null;
|
|
1799
3104
|
var bodyEl = null;
|
|
1800
3105
|
var storeEl = null;
|
|
@@ -1951,7 +3256,7 @@ var DomZIndex = {
|
|
|
1951
3256
|
};
|
|
1952
3257
|
updateVar();
|
|
1953
3258
|
/* harmony default export */ var index_esm = (DomZIndex);
|
|
1954
|
-
;//
|
|
3259
|
+
;// ./packages/ui/src/utils.ts
|
|
1955
3260
|
|
|
1956
3261
|
|
|
1957
3262
|
|
|
@@ -2002,10 +3307,11 @@ function eqEmptyValue(cellValue) {
|
|
|
2002
3307
|
function getClass(property, params) {
|
|
2003
3308
|
return property ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(property) ? property(params) : property : '';
|
|
2004
3309
|
}
|
|
2005
|
-
;//
|
|
3310
|
+
;// ./packages/ui/index.ts
|
|
3311
|
+
/* unused harmony import specifier */ var VxeUI;
|
|
2006
3312
|
|
|
2007
3313
|
|
|
2008
|
-
const version = "3.
|
|
3314
|
+
const version = "3.21.0-beta.0";
|
|
2009
3315
|
core_.VxeUI.version = version;
|
|
2010
3316
|
core_.VxeUI.tableVersion = version;
|
|
2011
3317
|
core_.VxeUI.setConfig({
|
|
@@ -2269,8 +3575,8 @@ core_.VxeUI.setConfig({
|
|
|
2269
3575
|
visible: true
|
|
2270
3576
|
}
|
|
2271
3577
|
},
|
|
2272
|
-
|
|
2273
|
-
|
|
3578
|
+
undoRedoHistoryConfig: {
|
|
3579
|
+
stackSize: 20
|
|
2274
3580
|
}
|
|
2275
3581
|
},
|
|
2276
3582
|
grid: {
|
|
@@ -2513,244 +3819,31 @@ const modal = {
|
|
|
2513
3819
|
};
|
|
2514
3820
|
|
|
2515
3821
|
/* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeUI)));
|
|
3822
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
3823
|
+
var es_array_includes = __webpack_require__(4423);
|
|
3824
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
3825
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
3826
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
3827
|
+
var es_iterator_for_each = __webpack_require__(7588);
|
|
3828
|
+
;// ./packages/ui/src/comp.ts
|
|
3829
|
+
const defineVxeComponent = options => options;
|
|
2516
3830
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2517
3831
|
var es_array_push = __webpack_require__(4114);
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
tpImgEl.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';
|
|
2526
|
-
}
|
|
2527
|
-
return tpImgEl;
|
|
2528
|
-
}
|
|
2529
|
-
function getTpImg() {
|
|
2530
|
-
if (!tpImgEl) {
|
|
2531
|
-
return initTpImg();
|
|
2532
|
-
}
|
|
2533
|
-
return tpImgEl;
|
|
2534
|
-
}
|
|
2535
|
-
function getPropClass(property, params) {
|
|
2536
|
-
return property ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(property) ? property(params) : property : '';
|
|
2537
|
-
}
|
|
2538
|
-
function getClsRE(cls) {
|
|
2539
|
-
if (!reClsMap[cls]) {
|
|
2540
|
-
reClsMap[cls] = new RegExp(`(?:^|\\s)${cls}(?!\\S)`, 'g');
|
|
2541
|
-
}
|
|
2542
|
-
return reClsMap[cls];
|
|
2543
|
-
}
|
|
2544
|
-
function getNodeOffset(elem, container, rest) {
|
|
2545
|
-
if (elem) {
|
|
2546
|
-
const parentElem = elem.parentNode;
|
|
2547
|
-
rest.top += elem.offsetTop;
|
|
2548
|
-
rest.left += elem.offsetLeft;
|
|
2549
|
-
if (parentElem && parentElem !== document.documentElement && parentElem !== document.body) {
|
|
2550
|
-
rest.top -= parentElem.scrollTop;
|
|
2551
|
-
rest.left -= parentElem.scrollLeft;
|
|
2552
|
-
}
|
|
2553
|
-
if (container && (elem === container || elem.offsetParent === container) ? 0 : elem.offsetParent) {
|
|
2554
|
-
return getNodeOffset(elem.offsetParent, container, rest);
|
|
2555
|
-
}
|
|
2556
|
-
}
|
|
2557
|
-
return rest;
|
|
2558
|
-
}
|
|
2559
|
-
function isPx(val) {
|
|
2560
|
-
return val && /^\d+(\.\d+)?(px)?$/.test(val);
|
|
2561
|
-
}
|
|
2562
|
-
function isScale(val) {
|
|
2563
|
-
return val && /^\d+(\.\d+)?%$/.test(val);
|
|
2564
|
-
}
|
|
2565
|
-
function hasClass(elem, cls) {
|
|
2566
|
-
return !!(elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
2567
|
-
}
|
|
2568
|
-
function removeClass(elem, cls) {
|
|
2569
|
-
if (elem && hasClass(elem, cls)) {
|
|
2570
|
-
elem.className = elem.className.replace(getClsRE(cls), '');
|
|
2571
|
-
}
|
|
2572
|
-
}
|
|
2573
|
-
function addClass(elem, cls) {
|
|
2574
|
-
if (elem && !hasClass(elem, cls)) {
|
|
2575
|
-
removeClass(elem, cls);
|
|
2576
|
-
elem.className = `${elem.className} ${cls}`;
|
|
2577
|
-
}
|
|
2578
|
-
}
|
|
2579
|
-
function hasControlKey(evnt) {
|
|
2580
|
-
return evnt.ctrlKey || evnt.metaKey;
|
|
2581
|
-
}
|
|
2582
|
-
function toCssUnit(val, unit = 'px') {
|
|
2583
|
-
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(val) || /^\d+$/.test(`${val}`)) {
|
|
2584
|
-
return `${val}${unit}`;
|
|
2585
|
-
}
|
|
2586
|
-
return `${val || ''}`;
|
|
2587
|
-
}
|
|
2588
|
-
function queryElement(elem, selector) {
|
|
2589
|
-
if (elem) {
|
|
2590
|
-
return elem.querySelector(selector);
|
|
2591
|
-
}
|
|
2592
|
-
return null;
|
|
2593
|
-
}
|
|
2594
|
-
function getDomNode() {
|
|
2595
|
-
const documentElement = document.documentElement;
|
|
2596
|
-
const bodyElem = document.body;
|
|
2597
|
-
return {
|
|
2598
|
-
scrollTop: documentElement.scrollTop || bodyElem.scrollTop,
|
|
2599
|
-
scrollLeft: documentElement.scrollLeft || bodyElem.scrollLeft,
|
|
2600
|
-
visibleHeight: documentElement.clientHeight || bodyElem.clientHeight,
|
|
2601
|
-
visibleWidth: documentElement.clientWidth || bodyElem.clientWidth
|
|
2602
|
-
};
|
|
2603
|
-
}
|
|
2604
|
-
function getOffsetHeight(elem) {
|
|
2605
|
-
return elem ? elem.offsetHeight : 0;
|
|
2606
|
-
}
|
|
2607
|
-
function getPaddingTopBottomSize(elem) {
|
|
2608
|
-
if (elem) {
|
|
2609
|
-
const computedStyle = getComputedStyle(elem);
|
|
2610
|
-
const paddingTop = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(computedStyle.paddingTop);
|
|
2611
|
-
const paddingBottom = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(computedStyle.paddingBottom);
|
|
2612
|
-
return paddingTop + paddingBottom;
|
|
2613
|
-
}
|
|
2614
|
-
return 0;
|
|
2615
|
-
}
|
|
2616
|
-
function setScrollTop(elem, scrollTop) {
|
|
2617
|
-
if (elem) {
|
|
2618
|
-
elem.scrollTop = scrollTop;
|
|
2619
|
-
}
|
|
2620
|
-
}
|
|
2621
|
-
function setScrollLeft(elem, scrollLeft) {
|
|
2622
|
-
if (elem) {
|
|
2623
|
-
elem.scrollLeft = scrollLeft;
|
|
2624
|
-
}
|
|
2625
|
-
}
|
|
2626
|
-
// export function setScrollLeftAndTop (elem: HTMLElement | null, scrollLeft: number, scrollTop: number) {
|
|
2627
|
-
// if (elem) {
|
|
2628
|
-
// elem.scrollLeft = scrollLeft
|
|
2629
|
-
// elem.scrollTop = scrollTop
|
|
2630
|
-
// }
|
|
2631
|
-
// }
|
|
2632
|
-
function updateCellTitle(overflowElem, column) {
|
|
2633
|
-
const content = column.type === 'html' ? overflowElem.innerText : overflowElem.textContent;
|
|
2634
|
-
if (overflowElem.getAttribute('title') !== content) {
|
|
2635
|
-
overflowElem.setAttribute('title', content);
|
|
2636
|
-
}
|
|
2637
|
-
}
|
|
2638
|
-
function checkTargetElement(target, exEls, endEl) {
|
|
2639
|
-
let targetEl = target;
|
|
2640
|
-
if (!exEls || !exEls.length) {
|
|
2641
|
-
return false;
|
|
2642
|
-
}
|
|
2643
|
-
const [exEl1, exEl2, exEl3] = exEls;
|
|
2644
|
-
while (targetEl) {
|
|
2645
|
-
if (exEl1 === targetEl || exEl2 && targetEl === exEl2 || exEl3 && targetEl === exEl3) {
|
|
2646
|
-
return true;
|
|
2647
|
-
}
|
|
2648
|
-
if (endEl && targetEl === endEl) {
|
|
2649
|
-
return false;
|
|
2650
|
-
}
|
|
2651
|
-
targetEl = targetEl.parentElement;
|
|
2652
|
-
}
|
|
2653
|
-
return false;
|
|
2654
|
-
}
|
|
2655
|
-
/**
|
|
2656
|
-
* 检查触发源是否属于目标节点
|
|
2657
|
-
*/
|
|
2658
|
-
function getEventTargetNode(evnt, container, queryCls, queryMethod) {
|
|
2659
|
-
let targetElem;
|
|
2660
|
-
let target = evnt.target.shadowRoot && evnt.composed ? evnt.composedPath()[0] || evnt.target : evnt.target;
|
|
2661
|
-
while (target && target.nodeType && target !== document) {
|
|
2662
|
-
if (queryCls && hasClass(target, queryCls) && (!queryMethod || queryMethod(target))) {
|
|
2663
|
-
targetElem = target;
|
|
2664
|
-
} else if (target === container) {
|
|
2665
|
-
return {
|
|
2666
|
-
flag: queryCls ? !!targetElem : true,
|
|
2667
|
-
container,
|
|
2668
|
-
targetElem: targetElem
|
|
2669
|
-
};
|
|
2670
|
-
}
|
|
2671
|
-
target = target.parentNode;
|
|
2672
|
-
}
|
|
2673
|
-
return {
|
|
2674
|
-
flag: false
|
|
2675
|
-
};
|
|
2676
|
-
}
|
|
2677
|
-
/**
|
|
2678
|
-
* 获取元素相对于 document 的位置
|
|
2679
|
-
*/
|
|
2680
|
-
function getOffsetPos(elem, container) {
|
|
2681
|
-
return getNodeOffset(elem, container, {
|
|
2682
|
-
left: 0,
|
|
2683
|
-
top: 0
|
|
2684
|
-
});
|
|
2685
|
-
}
|
|
2686
|
-
function getAbsolutePos(elem) {
|
|
2687
|
-
const bounding = elem.getBoundingClientRect();
|
|
2688
|
-
const boundingTop = bounding.top;
|
|
2689
|
-
const boundingLeft = bounding.left;
|
|
2690
|
-
const {
|
|
2691
|
-
scrollTop,
|
|
2692
|
-
scrollLeft,
|
|
2693
|
-
visibleHeight,
|
|
2694
|
-
visibleWidth
|
|
2695
|
-
} = getDomNode();
|
|
2696
|
-
return {
|
|
2697
|
-
boundingTop,
|
|
2698
|
-
top: scrollTop + boundingTop,
|
|
2699
|
-
boundingLeft,
|
|
2700
|
-
left: scrollLeft + boundingLeft,
|
|
2701
|
-
visibleHeight,
|
|
2702
|
-
visibleWidth
|
|
2703
|
-
};
|
|
2704
|
-
}
|
|
2705
|
-
const scrollIntoViewIfNeeded = 'scrollIntoViewIfNeeded';
|
|
2706
|
-
const scrollIntoView = 'scrollIntoView';
|
|
2707
|
-
function scrollToView(elem) {
|
|
2708
|
-
if (elem) {
|
|
2709
|
-
if (elem[scrollIntoViewIfNeeded]) {
|
|
2710
|
-
elem[scrollIntoViewIfNeeded]();
|
|
2711
|
-
} else if (elem[scrollIntoView]) {
|
|
2712
|
-
elem[scrollIntoView]();
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
}
|
|
2716
|
-
function triggerEvent(targetElem, type) {
|
|
2717
|
-
if (targetElem) {
|
|
2718
|
-
targetElem.dispatchEvent(new Event(type));
|
|
2719
|
-
}
|
|
2720
|
-
}
|
|
2721
|
-
function isNodeElement(elem) {
|
|
2722
|
-
return elem && elem.nodeType === 1;
|
|
2723
|
-
}
|
|
2724
|
-
let wtlFrame;
|
|
2725
|
-
function wheelScrollLeftTo(scrollLeft, cb) {
|
|
2726
|
-
if (wtlFrame) {
|
|
2727
|
-
cancelAnimationFrame(wtlFrame);
|
|
2728
|
-
}
|
|
2729
|
-
wtlFrame = requestAnimationFrame(() => {
|
|
2730
|
-
cb(scrollLeft);
|
|
2731
|
-
wtlFrame = null;
|
|
2732
|
-
});
|
|
2733
|
-
}
|
|
2734
|
-
let wtaFrame;
|
|
2735
|
-
function wheelScrollTopTo(diffNum, cb) {
|
|
2736
|
-
if (wtaFrame) {
|
|
2737
|
-
cancelAnimationFrame(wtaFrame);
|
|
2738
|
-
}
|
|
2739
|
-
wtaFrame = requestAnimationFrame(() => {
|
|
2740
|
-
const offsetTop = diffNum;
|
|
2741
|
-
cb(offsetTop);
|
|
2742
|
-
wtaFrame = null;
|
|
2743
|
-
});
|
|
2744
|
-
}
|
|
2745
|
-
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3832
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
|
|
3833
|
+
var es_iterator_map = __webpack_require__(1701);
|
|
3834
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
|
|
3835
|
+
var es_iterator_reduce = __webpack_require__(8237);
|
|
3836
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
3837
|
+
var es_iterator_some = __webpack_require__(3579);
|
|
3838
|
+
;// ./packages/ui/src/log.ts
|
|
2746
3839
|
|
|
2747
3840
|
const {
|
|
2748
3841
|
log: log_log
|
|
2749
3842
|
} = core_.VxeUI;
|
|
2750
|
-
const log_version = `table v${"3.
|
|
3843
|
+
const log_version = `table v${"3.21.0-beta.0"}`;
|
|
2751
3844
|
const warnLog = log_log.create('warn', log_version);
|
|
2752
3845
|
const errLog = log_log.create('error', log_version);
|
|
2753
|
-
;//
|
|
3846
|
+
;// ./packages/table/src/columnInfo.ts
|
|
2754
3847
|
|
|
2755
3848
|
|
|
2756
3849
|
|
|
@@ -2948,38 +4041,275 @@ class ColumnInfo {
|
|
|
2948
4041
|
column: this
|
|
2949
4042
|
}), colId);
|
|
2950
4043
|
}
|
|
2951
|
-
if ($xeGGWrapper) {
|
|
2952
|
-
if (proxyOpts && proxyOpts.beforeColumn) {
|
|
2953
|
-
proxyOpts.beforeColumn({
|
|
2954
|
-
$table: $xeTable,
|
|
2955
|
-
$grid: $xeGrid,
|
|
2956
|
-
$gantt: $xeGantt,
|
|
2957
|
-
column: this
|
|
2958
|
-
});
|
|
2959
|
-
}
|
|
4044
|
+
if ($xeGGWrapper) {
|
|
4045
|
+
if (proxyOpts && proxyOpts.beforeColumn) {
|
|
4046
|
+
proxyOpts.beforeColumn({
|
|
4047
|
+
$table: $xeTable,
|
|
4048
|
+
$grid: $xeGrid,
|
|
4049
|
+
$gantt: $xeGantt,
|
|
4050
|
+
column: this
|
|
4051
|
+
});
|
|
4052
|
+
}
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
getTitle() {
|
|
4056
|
+
return getFuncText(this.title || (this.type === 'seq' ? columnInfo_getI18n('vxe.table.seqTitle') : ''));
|
|
4057
|
+
}
|
|
4058
|
+
getKey() {
|
|
4059
|
+
const {
|
|
4060
|
+
type
|
|
4061
|
+
} = this;
|
|
4062
|
+
return this.field || (type ? `type=${type}` : null);
|
|
4063
|
+
}
|
|
4064
|
+
update(name, value) {
|
|
4065
|
+
// 不支持直接修改的属性
|
|
4066
|
+
if (name !== 'filters') {
|
|
4067
|
+
if (name === 'field') {
|
|
4068
|
+
// 兼容旧属性
|
|
4069
|
+
this.property = value;
|
|
4070
|
+
}
|
|
4071
|
+
this[name] = value;
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
}
|
|
4075
|
+
;// ./packages/ui/src/dom.ts
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
const reClsMap = {};
|
|
4079
|
+
let tpImgEl;
|
|
4080
|
+
function initTpImg() {
|
|
4081
|
+
if (!tpImgEl) {
|
|
4082
|
+
tpImgEl = new Image();
|
|
4083
|
+
tpImgEl.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';
|
|
4084
|
+
}
|
|
4085
|
+
return tpImgEl;
|
|
4086
|
+
}
|
|
4087
|
+
function getTpImg() {
|
|
4088
|
+
if (!tpImgEl) {
|
|
4089
|
+
return initTpImg();
|
|
4090
|
+
}
|
|
4091
|
+
return tpImgEl;
|
|
4092
|
+
}
|
|
4093
|
+
function getPropClass(property, params) {
|
|
4094
|
+
return property ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(property) ? property(params) : property : '';
|
|
4095
|
+
}
|
|
4096
|
+
function getClsRE(cls) {
|
|
4097
|
+
if (!reClsMap[cls]) {
|
|
4098
|
+
reClsMap[cls] = new RegExp(`(?:^|\\s)${cls}(?!\\S)`, 'g');
|
|
4099
|
+
}
|
|
4100
|
+
return reClsMap[cls];
|
|
4101
|
+
}
|
|
4102
|
+
function getNodeOffset(elem, container, rest) {
|
|
4103
|
+
if (elem) {
|
|
4104
|
+
const parentElem = elem.parentNode;
|
|
4105
|
+
rest.top += elem.offsetTop;
|
|
4106
|
+
rest.left += elem.offsetLeft;
|
|
4107
|
+
if (parentElem && parentElem !== document.documentElement && parentElem !== document.body) {
|
|
4108
|
+
rest.top -= parentElem.scrollTop;
|
|
4109
|
+
rest.left -= parentElem.scrollLeft;
|
|
4110
|
+
}
|
|
4111
|
+
if (container && (elem === container || elem.offsetParent === container) ? 0 : elem.offsetParent) {
|
|
4112
|
+
return getNodeOffset(elem.offsetParent, container, rest);
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
4115
|
+
return rest;
|
|
4116
|
+
}
|
|
4117
|
+
function isPx(val) {
|
|
4118
|
+
return val && /^\d+(\.\d+)?(px)?$/.test(val);
|
|
4119
|
+
}
|
|
4120
|
+
function isScale(val) {
|
|
4121
|
+
return val && /^\d+(\.\d+)?%$/.test(val);
|
|
4122
|
+
}
|
|
4123
|
+
function hasClass(elem, cls) {
|
|
4124
|
+
return !!(elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
|
|
4125
|
+
}
|
|
4126
|
+
function removeClass(elem, cls) {
|
|
4127
|
+
if (elem && hasClass(elem, cls)) {
|
|
4128
|
+
elem.className = elem.className.replace(getClsRE(cls), '');
|
|
4129
|
+
}
|
|
4130
|
+
}
|
|
4131
|
+
function addClass(elem, cls) {
|
|
4132
|
+
if (elem && !hasClass(elem, cls)) {
|
|
4133
|
+
removeClass(elem, cls);
|
|
4134
|
+
elem.className = `${elem.className} ${cls}`;
|
|
4135
|
+
}
|
|
4136
|
+
}
|
|
4137
|
+
function hasControlKey(evnt) {
|
|
4138
|
+
return evnt.ctrlKey || evnt.metaKey;
|
|
4139
|
+
}
|
|
4140
|
+
function toCssUnit(val, unit = 'px') {
|
|
4141
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(val) || /^\d+$/.test(`${val}`)) {
|
|
4142
|
+
return `${val}${unit}`;
|
|
4143
|
+
}
|
|
4144
|
+
return `${val || ''}`;
|
|
4145
|
+
}
|
|
4146
|
+
function queryElement(elem, selector) {
|
|
4147
|
+
if (elem) {
|
|
4148
|
+
return elem.querySelector(selector);
|
|
4149
|
+
}
|
|
4150
|
+
return null;
|
|
4151
|
+
}
|
|
4152
|
+
function getDomNode() {
|
|
4153
|
+
const documentElement = document.documentElement;
|
|
4154
|
+
const bodyElem = document.body;
|
|
4155
|
+
return {
|
|
4156
|
+
scrollTop: documentElement.scrollTop || bodyElem.scrollTop,
|
|
4157
|
+
scrollLeft: documentElement.scrollLeft || bodyElem.scrollLeft,
|
|
4158
|
+
visibleHeight: documentElement.clientHeight || bodyElem.clientHeight,
|
|
4159
|
+
visibleWidth: documentElement.clientWidth || bodyElem.clientWidth
|
|
4160
|
+
};
|
|
4161
|
+
}
|
|
4162
|
+
function getOffsetHeight(elem) {
|
|
4163
|
+
return elem ? elem.offsetHeight : 0;
|
|
4164
|
+
}
|
|
4165
|
+
function getPaddingTopBottomSize(elem) {
|
|
4166
|
+
if (elem) {
|
|
4167
|
+
const computedStyle = getComputedStyle(elem);
|
|
4168
|
+
const paddingTop = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(computedStyle.paddingTop);
|
|
4169
|
+
const paddingBottom = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(computedStyle.paddingBottom);
|
|
4170
|
+
return paddingTop + paddingBottom;
|
|
4171
|
+
}
|
|
4172
|
+
return 0;
|
|
4173
|
+
}
|
|
4174
|
+
function setScrollTop(elem, scrollTop) {
|
|
4175
|
+
if (elem) {
|
|
4176
|
+
elem.scrollTop = scrollTop;
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
function setScrollLeft(elem, scrollLeft) {
|
|
4180
|
+
if (elem) {
|
|
4181
|
+
elem.scrollLeft = scrollLeft;
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4184
|
+
// export function setScrollLeftAndTop (elem: HTMLElement | null, scrollLeft: number, scrollTop: number) {
|
|
4185
|
+
// if (elem) {
|
|
4186
|
+
// elem.scrollLeft = scrollLeft
|
|
4187
|
+
// elem.scrollTop = scrollTop
|
|
4188
|
+
// }
|
|
4189
|
+
// }
|
|
4190
|
+
function updateCellTitle(overflowElem, column) {
|
|
4191
|
+
const content = column.type === 'html' ? overflowElem.innerText : overflowElem.textContent;
|
|
4192
|
+
if (overflowElem.getAttribute('title') !== content) {
|
|
4193
|
+
overflowElem.setAttribute('title', content);
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
4196
|
+
function checkTargetElement(target, exEls, endEl) {
|
|
4197
|
+
let targetEl = target;
|
|
4198
|
+
if (!exEls || !exEls.length) {
|
|
4199
|
+
return false;
|
|
4200
|
+
}
|
|
4201
|
+
const [exEl1, exEl2, exEl3] = exEls;
|
|
4202
|
+
while (targetEl) {
|
|
4203
|
+
if (exEl1 === targetEl || exEl2 && targetEl === exEl2 || exEl3 && targetEl === exEl3) {
|
|
4204
|
+
return true;
|
|
4205
|
+
}
|
|
4206
|
+
if (endEl && targetEl === endEl) {
|
|
4207
|
+
return false;
|
|
2960
4208
|
}
|
|
4209
|
+
targetEl = targetEl.parentElement;
|
|
2961
4210
|
}
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
4211
|
+
return false;
|
|
4212
|
+
}
|
|
4213
|
+
/**
|
|
4214
|
+
* 检查触发源是否属于目标节点
|
|
4215
|
+
*/
|
|
4216
|
+
function getEventTargetNode(evnt, container, queryCls, queryMethod) {
|
|
4217
|
+
let targetElem;
|
|
4218
|
+
let target = evnt.target.shadowRoot && evnt.composed ? evnt.composedPath()[0] || evnt.target : evnt.target;
|
|
4219
|
+
while (target && target.nodeType && target !== document) {
|
|
4220
|
+
if (queryCls && hasClass(target, queryCls) && (!queryMethod || queryMethod(target))) {
|
|
4221
|
+
targetElem = target;
|
|
4222
|
+
} else if (target === container) {
|
|
4223
|
+
return {
|
|
4224
|
+
flag: queryCls ? !!targetElem : true,
|
|
4225
|
+
container,
|
|
4226
|
+
targetElem: targetElem
|
|
4227
|
+
};
|
|
4228
|
+
}
|
|
4229
|
+
target = target.parentNode;
|
|
2970
4230
|
}
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
4231
|
+
return {
|
|
4232
|
+
flag: false
|
|
4233
|
+
};
|
|
4234
|
+
}
|
|
4235
|
+
/**
|
|
4236
|
+
* 获取元素相对于 document 的位置
|
|
4237
|
+
*/
|
|
4238
|
+
function getOffsetPos(elem, container) {
|
|
4239
|
+
return getNodeOffset(elem, container, {
|
|
4240
|
+
left: 0,
|
|
4241
|
+
top: 0
|
|
4242
|
+
});
|
|
4243
|
+
}
|
|
4244
|
+
function getAbsolutePos(elem) {
|
|
4245
|
+
const bounding = elem.getBoundingClientRect();
|
|
4246
|
+
const boundingTop = bounding.top;
|
|
4247
|
+
const boundingLeft = bounding.left;
|
|
4248
|
+
const {
|
|
4249
|
+
scrollTop,
|
|
4250
|
+
scrollLeft,
|
|
4251
|
+
visibleHeight,
|
|
4252
|
+
visibleWidth
|
|
4253
|
+
} = getDomNode();
|
|
4254
|
+
return {
|
|
4255
|
+
boundingTop,
|
|
4256
|
+
top: scrollTop + boundingTop,
|
|
4257
|
+
boundingLeft,
|
|
4258
|
+
left: scrollLeft + boundingLeft,
|
|
4259
|
+
visibleHeight,
|
|
4260
|
+
visibleWidth
|
|
4261
|
+
};
|
|
4262
|
+
}
|
|
4263
|
+
function hasEventInputTarget(target) {
|
|
4264
|
+
const tagName = target ? target.tagName : '';
|
|
4265
|
+
return tagName && ['input', 'textarea'].includes(tagName.toLowerCase());
|
|
4266
|
+
}
|
|
4267
|
+
const scrollIntoViewIfNeeded = 'scrollIntoViewIfNeeded';
|
|
4268
|
+
const scrollIntoView = 'scrollIntoView';
|
|
4269
|
+
function scrollToView(elem) {
|
|
4270
|
+
if (elem) {
|
|
4271
|
+
if (elem[scrollIntoViewIfNeeded]) {
|
|
4272
|
+
elem[scrollIntoViewIfNeeded]();
|
|
4273
|
+
} else if (elem[scrollIntoView]) {
|
|
4274
|
+
elem[scrollIntoView]();
|
|
2979
4275
|
}
|
|
2980
4276
|
}
|
|
2981
4277
|
}
|
|
2982
|
-
|
|
4278
|
+
function triggerEvent(targetElem, type) {
|
|
4279
|
+
if (targetElem) {
|
|
4280
|
+
targetElem.dispatchEvent(new Event(type));
|
|
4281
|
+
}
|
|
4282
|
+
}
|
|
4283
|
+
function isNodeElement(elem) {
|
|
4284
|
+
return elem && elem.nodeType === 1;
|
|
4285
|
+
}
|
|
4286
|
+
let wtlFrame;
|
|
4287
|
+
function wheelScrollLeftTo(scrollLeft, cb) {
|
|
4288
|
+
if (wtlFrame) {
|
|
4289
|
+
cancelAnimationFrame(wtlFrame);
|
|
4290
|
+
}
|
|
4291
|
+
wtlFrame = requestAnimationFrame(() => {
|
|
4292
|
+
cb(scrollLeft);
|
|
4293
|
+
wtlFrame = null;
|
|
4294
|
+
});
|
|
4295
|
+
}
|
|
4296
|
+
let wtaFrame;
|
|
4297
|
+
function wheelScrollTopTo(diffNum, cb) {
|
|
4298
|
+
if (wtaFrame) {
|
|
4299
|
+
cancelAnimationFrame(wtaFrame);
|
|
4300
|
+
}
|
|
4301
|
+
wtaFrame = requestAnimationFrame(() => {
|
|
4302
|
+
const offsetTop = diffNum;
|
|
4303
|
+
cb(offsetTop);
|
|
4304
|
+
wtaFrame = null;
|
|
4305
|
+
});
|
|
4306
|
+
}
|
|
4307
|
+
;// ./packages/table/src/util.ts
|
|
4308
|
+
|
|
4309
|
+
|
|
4310
|
+
|
|
4311
|
+
|
|
4312
|
+
|
|
2983
4313
|
|
|
2984
4314
|
|
|
2985
4315
|
|
|
@@ -3113,6 +4443,10 @@ function createInternalData() {
|
|
|
3113
4443
|
tBodyHeight: 0,
|
|
3114
4444
|
// 表尾高度
|
|
3115
4445
|
tFooterHeight: 0,
|
|
4446
|
+
stackHistoryStore: {
|
|
4447
|
+
undoStacks: [],
|
|
4448
|
+
redoStacks: []
|
|
4449
|
+
},
|
|
3116
4450
|
teleportToWrapperElem: null,
|
|
3117
4451
|
popupToWrapperElem: null,
|
|
3118
4452
|
customPopupToElem: null,
|
|
@@ -3265,7 +4599,7 @@ function createReactData() {
|
|
|
3265
4599
|
tooltipStore: {
|
|
3266
4600
|
row: null,
|
|
3267
4601
|
column: null,
|
|
3268
|
-
content:
|
|
4602
|
+
content: '',
|
|
3269
4603
|
visible: false,
|
|
3270
4604
|
type: null,
|
|
3271
4605
|
currOpts: {}
|
|
@@ -3809,10 +5143,15 @@ function getLastChildColumn(column) {
|
|
|
3809
5143
|
return column;
|
|
3810
5144
|
}
|
|
3811
5145
|
function getCellValue(row, column) {
|
|
3812
|
-
|
|
5146
|
+
if (column) {
|
|
5147
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
5148
|
+
}
|
|
5149
|
+
return null;
|
|
3813
5150
|
}
|
|
3814
5151
|
function setCellValue(row, column, value) {
|
|
3815
|
-
|
|
5152
|
+
if (column) {
|
|
5153
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, column.field, value);
|
|
5154
|
+
}
|
|
3816
5155
|
}
|
|
3817
5156
|
function getRefElem(refEl) {
|
|
3818
5157
|
if (refEl) {
|
|
@@ -3973,7 +5312,9 @@ function colToVisible($xeTable, isForce, column, row) {
|
|
|
3973
5312
|
}
|
|
3974
5313
|
return Promise.resolve();
|
|
3975
5314
|
}
|
|
3976
|
-
|
|
5315
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.every.js
|
|
5316
|
+
var es_iterator_every = __webpack_require__(1148);
|
|
5317
|
+
;// ./packages/ui/src/vn.ts
|
|
3977
5318
|
|
|
3978
5319
|
function getOnName(type) {
|
|
3979
5320
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().kebabCase(type);
|
|
@@ -4032,7 +5373,11 @@ function getSlotVNs(vns) {
|
|
|
4032
5373
|
}
|
|
4033
5374
|
return [vns];
|
|
4034
5375
|
}
|
|
4035
|
-
;//
|
|
5376
|
+
;// ./packages/table/src/cell.ts
|
|
5377
|
+
|
|
5378
|
+
|
|
5379
|
+
|
|
5380
|
+
|
|
4036
5381
|
|
|
4037
5382
|
|
|
4038
5383
|
|
|
@@ -4420,10 +5765,10 @@ function renderFooterHandle(h, params) {
|
|
|
4420
5765
|
return Cell.renderDefaultFooter(h, params);
|
|
4421
5766
|
}
|
|
4422
5767
|
const Cell = {
|
|
4423
|
-
createColumn($xeTable,
|
|
5768
|
+
createColumn($xeTable, columnOpts) {
|
|
4424
5769
|
const {
|
|
4425
5770
|
type
|
|
4426
|
-
} =
|
|
5771
|
+
} = columnOpts;
|
|
4427
5772
|
const renConfs = {
|
|
4428
5773
|
renderHeader: renderHeaderHandle,
|
|
4429
5774
|
renderCell: renderCellHandle,
|
|
@@ -4432,7 +5777,7 @@ const Cell = {
|
|
|
4432
5777
|
if (type === 'expand') {
|
|
4433
5778
|
renConfs.renderData = Cell.renderExpandData;
|
|
4434
5779
|
}
|
|
4435
|
-
return createColumn($xeTable,
|
|
5780
|
+
return createColumn($xeTable, columnOpts, renConfs);
|
|
4436
5781
|
},
|
|
4437
5782
|
/**
|
|
4438
5783
|
* 列头标题
|
|
@@ -5581,9 +6926,10 @@ const Cell = {
|
|
|
5581
6926
|
}
|
|
5582
6927
|
};
|
|
5583
6928
|
/* harmony default export */ var cell = (Cell);
|
|
5584
|
-
;//
|
|
5585
|
-
|
|
5586
|
-
|
|
6929
|
+
;// ./packages/table/src/column.ts
|
|
6930
|
+
|
|
6931
|
+
|
|
6932
|
+
|
|
5587
6933
|
|
|
5588
6934
|
|
|
5589
6935
|
|
|
@@ -5748,8 +7094,9 @@ Object.keys(columnProps).forEach(name => {
|
|
|
5748
7094
|
name: 'VxeColumn',
|
|
5749
7095
|
props: columnProps,
|
|
5750
7096
|
provide() {
|
|
7097
|
+
const $xeColumn = this;
|
|
5751
7098
|
return {
|
|
5752
|
-
$xeColumn
|
|
7099
|
+
$xeColumn,
|
|
5753
7100
|
$xeGrid: null,
|
|
5754
7101
|
$xeGantt: null
|
|
5755
7102
|
};
|
|
@@ -5764,8 +7111,10 @@ Object.keys(columnProps).forEach(name => {
|
|
|
5764
7111
|
},
|
|
5765
7112
|
watch: columnWatch,
|
|
5766
7113
|
created() {
|
|
7114
|
+
const $xeColumn = this;
|
|
7115
|
+
const props = $xeColumn;
|
|
5767
7116
|
const $xeTable = this.$xeTable;
|
|
5768
|
-
this.columnConfig =
|
|
7117
|
+
this.columnConfig = cell.createColumn($xeTable, props);
|
|
5769
7118
|
},
|
|
5770
7119
|
mounted() {
|
|
5771
7120
|
this.columnConfig.slots = this.$scopedSlots;
|
|
@@ -5779,7 +7128,7 @@ Object.keys(columnProps).forEach(name => {
|
|
|
5779
7128
|
},
|
|
5780
7129
|
methods: cell
|
|
5781
7130
|
})); /* define-vxe-component end */
|
|
5782
|
-
;//
|
|
7131
|
+
;// ./packages/column/index.ts
|
|
5783
7132
|
|
|
5784
7133
|
|
|
5785
7134
|
const VxeColumn = Object.assign({}, column, {
|
|
@@ -5797,7 +7146,7 @@ if (core_.VxeUI.dynamicApp) {
|
|
|
5797
7146
|
core_.VxeUI.component(column);
|
|
5798
7147
|
const Column = VxeColumn;
|
|
5799
7148
|
/* harmony default export */ var packages_column = ((/* unused pure expression or super */ null && (VxeColumn)));
|
|
5800
|
-
;//
|
|
7149
|
+
;// ./packages/table/src/group.ts
|
|
5801
7150
|
|
|
5802
7151
|
|
|
5803
7152
|
|
|
@@ -5806,8 +7155,9 @@ const Column = VxeColumn;
|
|
|
5806
7155
|
name: 'VxeColgroup',
|
|
5807
7156
|
props: columnProps,
|
|
5808
7157
|
provide() {
|
|
7158
|
+
const $xeColgroup = this;
|
|
5809
7159
|
return {
|
|
5810
|
-
$xeColumn:
|
|
7160
|
+
$xeColumn: $xeColgroup,
|
|
5811
7161
|
$xeGrid: null,
|
|
5812
7162
|
$xeGantt: null
|
|
5813
7163
|
};
|
|
@@ -5822,8 +7172,10 @@ const Column = VxeColumn;
|
|
|
5822
7172
|
},
|
|
5823
7173
|
watch: columnWatch,
|
|
5824
7174
|
created() {
|
|
7175
|
+
const $xeColgroup = this;
|
|
7176
|
+
const props = $xeColgroup;
|
|
5825
7177
|
const $xeTable = this.$xeTable;
|
|
5826
|
-
this.columnConfig =
|
|
7178
|
+
this.columnConfig = cell.createColumn($xeTable, props);
|
|
5827
7179
|
},
|
|
5828
7180
|
mounted() {
|
|
5829
7181
|
const {
|
|
@@ -5844,7 +7196,7 @@ const Column = VxeColumn;
|
|
|
5844
7196
|
},
|
|
5845
7197
|
methods: cell
|
|
5846
7198
|
})); /* define-vxe-component end */
|
|
5847
|
-
;//
|
|
7199
|
+
;// ./packages/colgroup/index.ts
|
|
5848
7200
|
|
|
5849
7201
|
|
|
5850
7202
|
const VxeColgroup = Object.assign({}, group, {
|
|
@@ -5862,7 +7214,9 @@ if (core_.VxeUI.dynamicApp) {
|
|
|
5862
7214
|
core_.VxeUI.component(group);
|
|
5863
7215
|
const Colgroup = VxeColgroup;
|
|
5864
7216
|
/* harmony default export */ var colgroup = ((/* unused pure expression or super */ null && (VxeColgroup)));
|
|
5865
|
-
|
|
7217
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
7218
|
+
var es_iterator_filter = __webpack_require__(2489);
|
|
7219
|
+
;// ./packages/table/src/props.ts
|
|
5866
7220
|
|
|
5867
7221
|
const {
|
|
5868
7222
|
getConfig: props_getConfig
|
|
@@ -6173,8 +7527,8 @@ const tableProps = {
|
|
|
6173
7527
|
virtualYConfig: Object,
|
|
6174
7528
|
// 滚动条配置项
|
|
6175
7529
|
scrollbarConfig: Object,
|
|
6176
|
-
//
|
|
6177
|
-
|
|
7530
|
+
// 撤销/恢复历史配置项
|
|
7531
|
+
undoRedoHistoryConfig: Object,
|
|
6178
7532
|
// (即将废弃)优化相关
|
|
6179
7533
|
animat: {
|
|
6180
7534
|
type: Boolean,
|
|
@@ -6188,7 +7542,13 @@ const tableProps = {
|
|
|
6188
7542
|
// 额外的参数
|
|
6189
7543
|
params: Object
|
|
6190
7544
|
};
|
|
6191
|
-
|
|
7545
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.find.js
|
|
7546
|
+
var es_iterator_find = __webpack_require__(116);
|
|
7547
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.to-array.js
|
|
7548
|
+
var es_iterator_to_array = __webpack_require__(1806);
|
|
7549
|
+
;// ./packages/ui/src/anime.ts
|
|
7550
|
+
|
|
7551
|
+
|
|
6192
7552
|
|
|
6193
7553
|
|
|
6194
7554
|
const rowMoveCls = 'row--drag-move';
|
|
@@ -6235,7 +7595,7 @@ function clearColAnimate(elem, clss) {
|
|
|
6235
7595
|
}
|
|
6236
7596
|
}, 500);
|
|
6237
7597
|
}
|
|
6238
|
-
;//
|
|
7598
|
+
;// ./packages/table/src/store.ts
|
|
6239
7599
|
// 跨表拖拽
|
|
6240
7600
|
const crossTableDragRowGlobal = {
|
|
6241
7601
|
row: null
|
|
@@ -6244,8 +7604,8 @@ function getCrossTableDragRowInfo($xeTable) {
|
|
|
6244
7604
|
const crossTableDragRowInfo = $xeTable.crossTableDragRowInfo;
|
|
6245
7605
|
return crossTableDragRowInfo;
|
|
6246
7606
|
}
|
|
6247
|
-
;//
|
|
6248
|
-
const{getConfig: methods_getConfig,getI18n: methods_getI18n,renderer: methods_renderer,formats: methods_formats,interceptor: methods_interceptor,createEvent}=core_.VxeUI;const browseObj=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse();const supportMaxRow=5e6;const customStorageKey='VXE_CUSTOM_STORE';const maxYHeight=5e6;const maxXWidth=5e6;const sourceType='table';let crossTableDragRowObj=null;function eqCellValue(row1,row2,field){const val1=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row1,field);const val2=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row2,field);if(eqEmptyValue(val1)&&eqEmptyValue(val2)){return true;}if(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(val1)||external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(val1)){return''+val1===''+val2;}return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val1,val2);}function hangleStorageDefaultValue(value,isAll){return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(value)?value:isAll;}function getNextSortOrder($xeTable,column){const sortOpts=$xeTable.computeSortOpts;const{orders=[]}=sortOpts;const currOrder=column.order||null;const oIndex=orders.indexOf(currOrder)+1;return orders[oIndex<orders.length?oIndex:0];}const getCustomStorageMap=id=>{const version=methods_getConfig().version;const rest=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringJSON(localStorage.getItem(customStorageKey)||'');const maps=rest&&rest._v===version?rest:{_v:version};return(id?maps[id]:maps)||{};};const setCustomStorageMap=(id,data)=>{const version=methods_getConfig().version;const maps=getCustomStorageMap();maps[id]=data||undefined;maps._v=version;localStorage.setItem(customStorageKey,external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toJSONString(maps));};const getRecoverRowMaps=($xeTable,keyMaps)=>{const internalData=$xeTable;const{fullAllDataRowIdData}=internalData;const restKeys={};external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(keyMaps,(row,rowid)=>{if(fullAllDataRowIdData[rowid]){restKeys[rowid]=row;}});return restKeys;};function handleReserveRow($xeTable,reserveRowMap){const internalData=$xeTable;const{fullDataRowIdData}=internalData;const reserveList=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(reserveRowMap,(item,rowid)=>{if(fullDataRowIdData[rowid]&&reserveList.indexOf(fullDataRowIdData[rowid].row)===-1){reserveList.push(fullDataRowIdData[rowid].row);}});return reserveList;}function handleVirtualXVisible($xeTable){const reactData=$xeTable;const internalData=$xeTable;const{isScrollXBig,scrollXWidth}=reactData;const{elemStore,visibleColumn,fullColumnIdData}=internalData;const leftFixedWidth=$xeTable.computeLeftFixedWidth;const rightFixedWidth=$xeTable.computeRightFixedWidth;const bodyScrollElem=getRefElem(elemStore['main-body-scroll']);if(bodyScrollElem){const clientWidth=bodyScrollElem.clientWidth;let scrollLeft=bodyScrollElem.scrollLeft;if(isScrollXBig){scrollLeft=Math.ceil((scrollXWidth-clientWidth)*Math.min(1,scrollLeft/(maxXWidth-clientWidth)));}const startLeft=scrollLeft+leftFixedWidth;const endLeft=scrollLeft+clientWidth-rightFixedWidth;let leftIndex=0;let rightIndex=visibleColumn.length;while(leftIndex<rightIndex){const cIndex=Math.floor((leftIndex+rightIndex)/2);const column=visibleColumn[cIndex];const colid=column.id;const colRest=fullColumnIdData[colid]||{};if(colRest.oLeft<=startLeft){leftIndex=cIndex+1;}else{rightIndex=cIndex;}}let visibleSize=0;const toVisibleIndex=leftIndex===visibleColumn.length?leftIndex:Math.max(0,leftIndex<visibleColumn.length?leftIndex-2:0);for(let cIndex=toVisibleIndex,cLen=visibleColumn.length;cIndex<cLen;cIndex++){const column=visibleColumn[cIndex];const colid=column.id;const colRest=fullColumnIdData[colid]||{};visibleSize++;if(colRest.oLeft>endLeft||visibleSize>=60){break;}}return{toVisibleIndex:Math.max(0,toVisibleIndex),visibleSize:Math.max(6,visibleSize)};}return{toVisibleIndex:0,visibleSize:6};}function handleCustomRestore($xeTable,storeData){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{aggregateConfig,rowGroupConfig}=props;const{collectColumn}=internalData;const customOpts=$xeTable.computeCustomOpts;const{storage,storeOptions}=customOpts;const isAllCustom=storage===true;const storageOpts=Object.assign({},isAllCustom?{}:storage||{},storeOptions);const isCustomResizable=hangleStorageDefaultValue(storageOpts.resizable,isAllCustom);const isCustomVisible=hangleStorageDefaultValue(storageOpts.visible,isAllCustom);const isCustomFixed=hangleStorageDefaultValue(storageOpts.fixed,isAllCustom);const isCustomSort=hangleStorageDefaultValue(storageOpts.sort,isAllCustom);const isCustomAggGroup=hangleStorageDefaultValue(storageOpts.aggGroup,isAllCustom);const isCustomAggFunc=hangleStorageDefaultValue(storageOpts.aggFunc,isAllCustom);let{resizableData,sortData,visibleData,fixedData,aggGroupData,aggFuncData}=storeData;// 处理还原
|
|
7607
|
+
;// ./packages/table/src/methods.ts
|
|
7608
|
+
const{getConfig: methods_getConfig,getI18n: methods_getI18n,renderer: methods_renderer,formats: methods_formats,interceptor: methods_interceptor,createEvent,globalEvents: methods_globalEvents,GLOBAL_EVENT_KEYS}=core_.VxeUI;const browseObj=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse();const supportMaxRow=5e6;const customStorageKey='VXE_CUSTOM_STORE';const maxYHeight=5e6;const maxXWidth=5e6;const sourceType='table';let crossTableDragRowObj=null;function eqCellValue(row1,row2,field){const val1=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row1,field);const val2=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row2,field);if(eqEmptyValue(val1)&&eqEmptyValue(val2)){return true;}if(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(val1)||external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(val1)){return''+val1===''+val2;}return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val1,val2);}function hangleStorageDefaultValue(value,isAll){return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(value)?value:isAll;}function getNextSortOrder($xeTable,column){const sortOpts=$xeTable.computeSortOpts;const{orders=[]}=sortOpts;const currOrder=column.order||null;const oIndex=orders.indexOf(currOrder)+1;return orders[oIndex<orders.length?oIndex:0];}const getCustomStorageMap=id=>{const version=methods_getConfig().version;const rest=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringJSON(localStorage.getItem(customStorageKey)||'');const maps=rest&&rest._v===version?rest:{_v:version};return(id?maps[id]:maps)||{};};const setCustomStorageMap=(id,data)=>{const version=methods_getConfig().version;const maps=getCustomStorageMap();maps[id]=data||undefined;maps._v=version;localStorage.setItem(customStorageKey,external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toJSONString(maps));};const getRecoverRowMaps=($xeTable,keyMaps)=>{const internalData=$xeTable;const{fullAllDataRowIdData}=internalData;const restKeys={};external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(keyMaps,(row,rowid)=>{if(fullAllDataRowIdData[rowid]){restKeys[rowid]=row;}});return restKeys;};function handleReserveRow($xeTable,reserveRowMap){const internalData=$xeTable;const{fullDataRowIdData}=internalData;const reserveList=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(reserveRowMap,(item,rowid)=>{if(fullDataRowIdData[rowid]&&reserveList.indexOf(fullDataRowIdData[rowid].row)===-1){reserveList.push(fullDataRowIdData[rowid].row);}});return reserveList;}function handleVirtualXVisible($xeTable){const reactData=$xeTable;const internalData=$xeTable;const{isScrollXBig,scrollXWidth}=reactData;const{elemStore,visibleColumn,fullColumnIdData}=internalData;const leftFixedWidth=$xeTable.computeLeftFixedWidth;const rightFixedWidth=$xeTable.computeRightFixedWidth;const bodyScrollElem=getRefElem(elemStore['main-body-scroll']);if(bodyScrollElem){const clientWidth=bodyScrollElem.clientWidth;let scrollLeft=bodyScrollElem.scrollLeft;if(isScrollXBig){scrollLeft=Math.ceil((scrollXWidth-clientWidth)*Math.min(1,scrollLeft/(maxXWidth-clientWidth)));}const startLeft=scrollLeft+leftFixedWidth;const endLeft=scrollLeft+clientWidth-rightFixedWidth;let leftIndex=0;let rightIndex=visibleColumn.length;while(leftIndex<rightIndex){const cIndex=Math.floor((leftIndex+rightIndex)/2);const column=visibleColumn[cIndex];const colid=column.id;const colRest=fullColumnIdData[colid]||{};if(colRest.oLeft<=startLeft){leftIndex=cIndex+1;}else{rightIndex=cIndex;}}let visibleSize=0;const toVisibleIndex=leftIndex===visibleColumn.length?leftIndex:Math.max(0,leftIndex<visibleColumn.length?leftIndex-2:0);for(let cIndex=toVisibleIndex,cLen=visibleColumn.length;cIndex<cLen;cIndex++){const column=visibleColumn[cIndex];const colid=column.id;const colRest=fullColumnIdData[colid]||{};visibleSize++;if(colRest.oLeft>endLeft||visibleSize>=60){break;}}return{toVisibleIndex:Math.max(0,toVisibleIndex),visibleSize:Math.max(6,visibleSize)};}return{toVisibleIndex:0,visibleSize:6};}function handleCustomRestore($xeTable,storeData){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{aggregateConfig,rowGroupConfig}=props;const{collectColumn}=internalData;const customOpts=$xeTable.computeCustomOpts;const{storage,storeOptions}=customOpts;const isAllCustom=storage===true;const storageOpts=Object.assign({},isAllCustom?{}:storage||{},storeOptions);const isCustomResizable=hangleStorageDefaultValue(storageOpts.resizable,isAllCustom);const isCustomVisible=hangleStorageDefaultValue(storageOpts.visible,isAllCustom);const isCustomFixed=hangleStorageDefaultValue(storageOpts.fixed,isAllCustom);const isCustomSort=hangleStorageDefaultValue(storageOpts.sort,isAllCustom);const isCustomAggGroup=hangleStorageDefaultValue(storageOpts.aggGroup,isAllCustom);const isCustomAggFunc=hangleStorageDefaultValue(storageOpts.aggFunc,isAllCustom);let{resizableData,sortData,visibleData,fixedData,aggGroupData,aggFuncData}=storeData;// 处理还原
|
|
6249
7609
|
if(isCustomResizable&&resizableData||isCustomSort&&sortData||isCustomVisible&&visibleData||isCustomFixed&&fixedData||isCustomAggGroup&&aggGroupData||isCustomAggFunc&&aggFuncData){const sortColMaps={};if(isCustomSort&&sortData){// 转换兼容老版本数据,即将废弃兼容
|
|
6250
7610
|
if(!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortData)){const sortRests=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(sortData,(index,colKey)=>{sortRests.push({key:colKey,index});});sortData=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(sortRests,{field:'index',order:'asc'}).map(item=>({k:item.key}));}let colNum=1;external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(sortData,(sObj,index,sOjs,path,pSObj)=>{sortColMaps[sObj.k]={key:sObj.k,sNum:colNum++,pKey:pSObj?pSObj.k:null};},{children:'c'});}const colKeyMaps={};const allCols=[];const aggGroupConfs=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn,(column,index,items,path,parentColumn)=>{const colKey=column.getKey();// 支持一级
|
|
6251
7611
|
if(!parentColumn){if(isCustomFixed&&fixedData&&fixedData[colKey]!==undefined){column.fixed=fixedData[colKey];}}if(isCustomResizable&&resizableData&&external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(resizableData[colKey])){column.resizeWidth=resizableData[colKey];}if(isCustomVisible&&visibleData&&external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(visibleData[colKey])){column.visible=visibleData[colKey];}if(isCustomAggFunc&&aggFuncData&&(aggregateConfig||rowGroupConfig)&&aggFuncData[colKey]){column.aggFunc=aggFuncData[colKey];}if(isCustomAggGroup&&aggGroupData&&aggGroupData[colKey]){aggGroupConfs.push({field:column.field});}colKeyMaps[colKey]=column;allCols.push(column);});if((aggregateConfig||rowGroupConfig)&&aggGroupConfs.length){const groupRest=handleGroupData($xeTable,internalData.tableFullData,aggGroupConfs);internalData.tableFullTreeData=[];internalData.tableFullGroupData=groupRest.treeData;reactData.isRowGroupStatus=true;reactData.rowGroupList=aggGroupConfs;$xeTable.cacheRowMap(false);}// 如果自定义了顺序
|
|
@@ -6254,7 +7614,7 @@ if(isCustomSort&&sortData){allCols.forEach(column=>{const colKey=column.getKey()
|
|
|
6254
7614
|
*/function restoreCustomStorage($xeTable){const props=$xeTable;const{customConfig}=props;const tableId=$xeTable.computeTableId;const customOpts=$xeTable.computeCustomOpts;const{storage,restoreStore,storeOptions}=customOpts;const isAllCustom=storage===true;const storageOpts=Object.assign({},isAllCustom?{}:storage||{},storeOptions);const isCustomResizable=hangleStorageDefaultValue(storageOpts.resizable,isAllCustom);const isCustomVisible=hangleStorageDefaultValue(storageOpts.visible,isAllCustom);const isCustomFixed=hangleStorageDefaultValue(storageOpts.fixed,isAllCustom);const isCustomSort=hangleStorageDefaultValue(storageOpts.sort,isAllCustom);const isCustomAggFunc=hangleStorageDefaultValue(storageOpts.aggFunc,isAllCustom);if(storage&&(customConfig?isEnableConf(customOpts):customOpts.enabled)&&(isCustomResizable||isCustomVisible||isCustomFixed||isCustomSort||isCustomAggFunc)){if(!tableId){errLog('vxe.error.reqProp',['id']);return;}const storeData=getCustomStorageMap(tableId);if(restoreStore){return Promise.resolve(restoreStore({$table:$xeTable,id:tableId,type:'restore',storeData})).then(storeData=>{if(!storeData){return;}return handleCustomRestore($xeTable,storeData);}).catch(e=>e);}else{return handleCustomRestore($xeTable,storeData);}}}/**
|
|
6255
7615
|
* 更新数据列的 Map
|
|
6256
7616
|
* 牺牲数据组装的耗时,用来换取使用过程中的流畅
|
|
6257
|
-
*/function cacheColumnMap($xeTable){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{treeConfig,showOverflow}=props;const{tableFullColumn,collectColumn}=internalData;const fullColIdData=internalData.fullColumnIdData={};const fullColFieldData=internalData.fullColumnFieldData={};const mouseOpts=$xeTable.computeMouseOpts;const expandOpts=$xeTable.computeExpandOpts;const columnOpts=$xeTable.computeColumnOpts;const columnDragOpts=$xeTable.computeColumnDragOpts;const virtualYOpts=$xeTable.computeVirtualYOpts;const{isCrossDrag,isSelfToChildDrag}=columnDragOpts;const customOpts=$xeTable.computeCustomOpts;const treeOpts=$xeTable.computeTreeOpts;const{storage}=customOpts;const rowOpts=$xeTable.computeRowOpts;const isGroup=collectColumn.some(hasChildrenList);let isAllOverflow=!!showOverflow;let rowGroupColumn;let expandColumn;let treeNodeColumn;let checkboxColumn;let radioColumn;let htmlColumn;let hasFixed;const handleFunc=(column,index,items,path,parentColumn)=>{const{id:colid,field,fixed,type,treeNode,rowGroupNode}=column;const rest={$index:-1,_index:-1,column,colid,index,items,parent:parentColumn||null,width:0,oLeft:0};if(field){if(fullColFieldData[field]){errLog('vxe.error.colRepet',['field',field]);}fullColFieldData[field]=rest;}else{if(storage&&!type){errLog('vxe.error.reqSupportProp',['storage',`[${type?`type=${type}`:`title=${column.getTitle()}`}]field=?`]);}if(columnOpts.drag&&(isCrossDrag||isSelfToChildDrag)){errLog('vxe.error.reqSupportProp',['column-drag-config.isCrossDrag | column-drag-config.isSelfToChildDrag',`${column.getTitle()||type||''} -> field=?`]);}}if(!hasFixed&&fixed){hasFixed=fixed;}if(!htmlColumn&&type==='html'){htmlColumn=column;}if(treeNode){if(treeNodeColumn){warnLog('vxe.error.colRepet',['tree-node',treeNode]);}if(!treeNodeColumn){treeNodeColumn=column;}}if(rowGroupNode){if(treeNodeColumn){warnLog('vxe.error.colRepet',['row-group-node',rowGroupNode]);}if(!rowGroupColumn){rowGroupColumn=column;}}if(type==='expand'){if(expandColumn){warnLog('vxe.error.colRepet',['type',type]);}if(!expandColumn){expandColumn=column;}}if(type==='checkbox'){if(checkboxColumn){warnLog('vxe.error.colRepet',['type',type]);}if(!checkboxColumn){checkboxColumn=column;}}else if(type==='radio'){if(radioColumn){warnLog('vxe.error.colRepet',['type',type]);}if(!radioColumn){radioColumn=column;}}if(isAllOverflow&&column.showOverflow===false){isAllOverflow=false;}if(fullColIdData[colid]){errLog('vxe.error.colRepet',['colId',colid]);}fullColIdData[colid]=rest;};if(isGroup){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn,(column,index,items,path,parentColumn,nodes)=>{column.level=nodes.length;handleFunc(column,index,items,path,parentColumn);});}else{tableFullColumn.forEach(handleFunc);}if(expandColumn){if(expandOpts.mode!=='fixed'&&virtualYOpts.enabled){warnLog('vxe.error.notConflictProp',['column.type="expand','virtual-y-config.enabled=false']);}if(expandOpts.mode!=='fixed'&&mouseOpts.area){errLog('vxe.error.errConflicts',['mouse-config.area','column.type=expand']);}if(expandOpts.mode!=='inside'&&treeConfig&&!treeOpts.transform){errLog('vxe.error.notConflictProp',['tree-config.transform=false','expand-config.mode=
|
|
7617
|
+
*/function cacheColumnMap($xeTable){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{treeConfig,showOverflow}=props;const{tableFullColumn,collectColumn}=internalData;const fullColIdData=internalData.fullColumnIdData={};const fullColFieldData=internalData.fullColumnFieldData={};const mouseOpts=$xeTable.computeMouseOpts;const expandOpts=$xeTable.computeExpandOpts;const columnOpts=$xeTable.computeColumnOpts;const columnDragOpts=$xeTable.computeColumnDragOpts;const virtualYOpts=$xeTable.computeVirtualYOpts;const{isCrossDrag,isSelfToChildDrag}=columnDragOpts;const customOpts=$xeTable.computeCustomOpts;const treeOpts=$xeTable.computeTreeOpts;const{storage}=customOpts;const rowOpts=$xeTable.computeRowOpts;const isGroup=collectColumn.some(hasChildrenList);let isAllOverflow=!!showOverflow;let rowGroupColumn;let expandColumn;let treeNodeColumn;let checkboxColumn;let radioColumn;let htmlColumn;let hasFixed;const handleFunc=(column,index,items,path,parentColumn)=>{const{id:colid,field,fixed,type,treeNode,rowGroupNode}=column;const rest={$index:-1,_index:-1,column,colid,index,items,parent:parentColumn||null,width:0,oLeft:0};if(field){if(fullColFieldData[field]){errLog('vxe.error.colRepet',['field',field]);}fullColFieldData[field]=rest;}else{if(storage&&!type){errLog('vxe.error.reqSupportProp',['storage',`[${type?`type=${type}`:`title=${column.getTitle()}`}]field=?`]);}if(columnOpts.drag&&(isCrossDrag||isSelfToChildDrag)){errLog('vxe.error.reqSupportProp',['column-drag-config.isCrossDrag | column-drag-config.isSelfToChildDrag',`${column.getTitle()||type||''} -> field=?`]);}}if(!hasFixed&&fixed){hasFixed=fixed;}if(!htmlColumn&&type==='html'){htmlColumn=column;}if(treeNode){if(treeNodeColumn){warnLog('vxe.error.colRepet',['tree-node',treeNode]);}if(!treeNodeColumn){treeNodeColumn=column;}}if(rowGroupNode){if(treeNodeColumn){warnLog('vxe.error.colRepet',['row-group-node',rowGroupNode]);}if(!rowGroupColumn){rowGroupColumn=column;}}if(type==='expand'){if(expandColumn){warnLog('vxe.error.colRepet',['type',type]);}if(!expandColumn){expandColumn=column;}}if(type==='checkbox'){if(checkboxColumn){warnLog('vxe.error.colRepet',['type',type]);}if(!checkboxColumn){checkboxColumn=column;}}else if(type==='radio'){if(radioColumn){warnLog('vxe.error.colRepet',['type',type]);}if(!radioColumn){radioColumn=column;}}if(isAllOverflow&&column.showOverflow===false){isAllOverflow=false;}if(fullColIdData[colid]){errLog('vxe.error.colRepet',['colId',colid]);}fullColIdData[colid]=rest;};if(isGroup){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn,(column,index,items,path,parentColumn,nodes)=>{column.level=nodes.length;handleFunc(column,index,items,path,parentColumn);});}else{tableFullColumn.forEach(handleFunc);}if(expandColumn){if(expandOpts.mode!=='fixed'&&virtualYOpts.enabled){warnLog('vxe.error.notConflictProp',['column.type="expand','virtual-y-config.enabled=false']);}if(expandOpts.mode!=='fixed'&&mouseOpts.area){errLog('vxe.error.errConflicts',['mouse-config.area','column.type=expand']);}if(expandOpts.mode!=='inside'&&treeConfig&&!treeOpts.transform){errLog('vxe.error.notConflictProp',['tree-config.transform=false','expand-config.mode=inside']);}if(props.spanMethod){warnLog('vxe.error.notSupportProp',['column.type=expand','span-method','span-method=null']);}}if(htmlColumn){if(!columnOpts.useKey){errLog('vxe.error.notSupportProp',['column.type=html','column-config.useKey=false','column-config.useKey=true']);}if(!rowOpts.useKey){errLog('vxe.error.notSupportProp',['column.type=html','row-config.useKey=false','row-config.useKey=true']);}}reactData.isGroup=isGroup;reactData.rowGroupColumn=rowGroupColumn;reactData.treeNodeColumn=treeNodeColumn;reactData.expandColumn=expandColumn;reactData.checkboxColumn=checkboxColumn;reactData.radioColumn=radioColumn;reactData.isAllOverflow=isAllOverflow;}function updateScrollXStatus($xeTable,fullColumn){const reactData=$xeTable;const internalData=$xeTable;const virtualXOpts=$xeTable.computeVirtualXOpts;const allCols=fullColumn||internalData.tableFullColumn;// 如果gt为0,则总是启用
|
|
6258
7618
|
const scrollXLoad=!!virtualXOpts.enabled&&virtualXOpts.gt>-1&&(virtualXOpts.gt===0||virtualXOpts.gt<allCols.length);reactData.scrollXLoad=scrollXLoad;return scrollXLoad;}function updateScrollYStatus($xeTable,fullData){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{treeConfig}=props;const $xeGanttView=internalData.xeGanttView;const virtualYOpts=$xeTable.computeVirtualYOpts;const treeOpts=$xeTable.computeTreeOpts;const{transform}=treeOpts;const allList=fullData||internalData.tableFullData;// 如果gt为0,则总是启用
|
|
6259
7619
|
const scrollYLoad=(transform||!treeConfig)&&!!virtualYOpts.enabled&&virtualYOpts.gt>-1&&(virtualYOpts.gt===0||virtualYOpts.gt<allList.length);reactData.scrollYLoad=scrollYLoad;if($xeGanttView&&$xeGanttView.handleUpdateSYStatus){$xeGanttView.handleUpdateSYStatus(scrollYLoad);}return scrollYLoad;}/**
|
|
6260
7620
|
* 展开与收起树节点
|
|
@@ -6422,7 +7782,7 @@ treeData=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils
|
|
|
6422
7782
|
internalData.tableFullData=fullData;internalData.tableFullTreeData=isRGroup?[]:treeData;internalData.tableFullGroupData=isRGroup?treeData:[];// 缓存数据
|
|
6423
7783
|
$xeTable.cacheRowMap(isReset);// 原始数据
|
|
6424
7784
|
internalData.tableSynchData=datas;if(isReset){internalData.isResizeCellHeight=false;}// 克隆原数据,用于显示编辑状态,与编辑值做对比
|
|
6425
|
-
if(keepSource){$xeTable.cacheSourceMap(fullData);}if($xeTable.clearCellAreas&&props.mouseConfig){$xeTable.clearCellAreas();$xeTable.clearCopyCellArea();}$xeTable.clearMergeCells();$xeTable.clearMergeFooterItems();$xeTable.handleTableData(true);$xeTable.updateFooter();$xeTable.handleUpdateBodyMerge();return $xeTable.$nextTick().then(()=>{updateHeight($xeTable);updateStyle($xeTable);}).then(()=>{computeScrollLoad($xeTable);}).then(()=>{const virtualYOpts=$xeTable.computeVirtualYOpts;// 是否启用了虚拟滚动
|
|
7785
|
+
if(keepSource){$xeTable.cacheSourceMap(fullData);}if($xeTable.clearCellAreas&&props.mouseConfig){$xeTable.clearCellAreas();$xeTable.clearCopyCellArea();}$xeTable.clearMergeCells();$xeTable.clearMergeFooterItems();$xeTable.handleClearStack();$xeTable.handleTableData(true);$xeTable.updateFooter();$xeTable.handleUpdateBodyMerge();return $xeTable.$nextTick().then(()=>{updateHeight($xeTable);updateStyle($xeTable);}).then(()=>{computeScrollLoad($xeTable);}).then(()=>{const virtualYOpts=$xeTable.computeVirtualYOpts;// 是否启用了虚拟滚动
|
|
6426
7786
|
if(sYLoad){scrollYStore.endIndex=scrollYStore.visibleSize;}if(sYLoad){if(reactData.expandColumn&&expandOpts.mode!=='fixed'){errLog('vxe.error.notConflictProp',['column.type="expand','expand-config.mode="fixed"']);}if(virtualYOpts.mode==='scroll'&&reactData.expandColumn&&expandOpts.mode==='fixed'){warnLog('vxe.error.notConflictProp',['virtual-y-config.mode=scroll','expand-config.mode=inside']);}// if (showOverflow) {
|
|
6427
7787
|
// if (!rowOpts.height) {
|
|
6428
7788
|
// const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
|
|
@@ -6480,7 +7840,11 @@ if(expandColumn&&rowExpandedMaps[rowid]){offsetTop+=rowRest.expandHeight||expand
|
|
|
6480
7840
|
* 更新展开行样式
|
|
6481
7841
|
*/function updateRowExpandStyle($xeTable){const reactData=$xeTable;const internalData=$xeTable;const{expandColumn,scrollYLoad,scrollYTop,isScrollYBig}=reactData;const el=$xeTable.$refs.refElem;if(!el||!el.clientWidth){return;}const expandOpts=$xeTable.computeExpandOpts;const rowOpts=$xeTable.computeRowOpts;const cellOpts=$xeTable.computeCellOpts;const defaultRowHeight=$xeTable.computeDefaultRowHeight;const{mode}=expandOpts;if(expandColumn&&mode==='fixed'){const{elemStore,fullAllDataRowIdData}=internalData;const rowExpandEl=$xeTable.$refs.refRowExpandElem;const bodyScrollElem=getRefElem(elemStore['main-body-scroll']);if(rowExpandEl&&bodyScrollElem){let isUpdateHeight=false;external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(rowExpandEl.children,reEl=>{const expandEl=reEl;const rowid=expandEl.getAttribute('rowid')||'';const rowRest=fullAllDataRowIdData[rowid];if(rowRest){const expandHeight=expandEl.offsetHeight;const trEl=bodyScrollElem.querySelector(`.vxe-body--row[rowid="${rowid}"]`);let offsetTop=0;if(scrollYLoad){if(isScrollYBig&&trEl){offsetTop=trEl.offsetTop+trEl.offsetHeight;}else{offsetTop=rowRest.oTop+(rowRest.resizeHeight||cellOpts.height||rowOpts.height||rowRest.height||defaultRowHeight);}}else{if(trEl){offsetTop=trEl.offsetTop+trEl.offsetHeight;}}if(isScrollYBig){offsetTop+=scrollYTop;}expandEl.style.top=toCssUnit(offsetTop);if(!isUpdateHeight){if(rowRest.expandHeight!==expandHeight){isUpdateHeight=true;}}rowRest.expandHeight=expandHeight;}});if(isUpdateHeight){reactData.rowExpandHeightFlag++;$xeTable.$nextTick(()=>{updateRowOffsetTop($xeTable);});}}}}/**
|
|
6482
7842
|
* 更新树连接线样式
|
|
6483
|
-
*/function updateTreeLineStyle($xeTable){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{treeConfig}=props;if(!treeConfig){return;}const{tableData}=reactData;const{fullAllDataRowIdData,treeExpandedMaps}=internalData;const el=$xeTable.$refs.refElem;if(!el||!el.clientWidth){return;}const cellOpts=$xeTable.computeCellOpts;const rowOpts=$xeTable.computeRowOpts;const defaultRowHeight=$xeTable.computeDefaultRowHeight;const treeOpts=$xeTable.computeTreeOpts;const{transform,mapChildrenField}=treeOpts;const childrenField=treeOpts.children||treeOpts.childrenField;const{handleGetRowId}=createHandleGetRowId($xeTable);const expParentList=[];const handleNodeRow=(row,rIndex,rows)=>{const rowid=handleGetRowId(row);const rowRest=fullAllDataRowIdData[rowid]||{};const childList=row[transform?mapChildrenField:childrenField];const prevRow=rows[rIndex-1]||null;const nextRow=rows[rIndex+1]||null;if(childList&&childList.length&&treeExpandedMaps[rowid]){expParentList.push({row,prevRow,nextRow});childList.forEach((childRow,crIndex)=>{const childRowid=handleGetRowId(childRow);if(treeExpandedMaps[childRowid]){handleNodeRow(childRow,crIndex,childList);}});}else{if(nextRow){const nextRowid=handleGetRowId(nextRow);const nextRowRest=fullAllDataRowIdData[nextRowid]||{};const currCellHeight=getCellRestHeight(rowRest,cellOpts,rowOpts,defaultRowHeight);const nextCellHeight=getCellRestHeight(nextRowRest,cellOpts,rowOpts,defaultRowHeight);rowRest.oHeight=currCellHeight;rowRest.lineHeight=Math.floor(currCellHeight/2+nextCellHeight/2);}else{rowRest.oHeight=0;rowRest.lineHeight=0;}}};tableData.forEach((row,rIndex)=>{handleNodeRow(row,rIndex,tableData);});external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().lastArrayEach(expParentList,({row,nextRow})=>{const rowid=handleGetRowId(row);const childList=row[transform?mapChildrenField:childrenField];const rowRest=fullAllDataRowIdData[rowid];if(rowRest){const currCellHeight=getCellRestHeight(rowRest,cellOpts,rowOpts,defaultRowHeight);let countOffsetHeight=currCellHeight;let countLineHeight=0;childList.forEach(childRow=>{const childRowid=handleGetRowId(childRow);const childRowRest=fullAllDataRowIdData[childRowid]||{};const childList=childRow[transform?mapChildrenField:childrenField];if(treeExpandedMaps[childRowid]&&childList&&childList.length){countOffsetHeight+=childRowRest.oHeight||0;countLineHeight+=childRowRest.oHeight||0;}else{const cellHeight=getCellRestHeight(childRowRest,cellOpts,rowOpts,defaultRowHeight);childRowRest.oHeight=cellHeight;childRowRest.lineHeight=cellHeight;countOffsetHeight+=cellHeight;countLineHeight+=cellHeight;}});if(nextRow){const nextRowid=handleGetRowId(nextRow);const nextRowRest=fullAllDataRowIdData[nextRowid]||{};const currCellHeight=getCellRestHeight(rowRest,cellOpts,rowOpts,defaultRowHeight);const nextCellHeight=getCellRestHeight(nextRowRest,cellOpts,rowOpts,defaultRowHeight);countOffsetHeight+=currCellHeight;countLineHeight+=Math.floor(currCellHeight/2+nextCellHeight/2);}rowRest.lineHeight=countLineHeight;rowRest.oHeight=countOffsetHeight;}});}function handleRowExpandScroll($xeTable){const internalData=$xeTable;const{elemStore}=internalData;const rowExpandEl=$xeTable.$refs.refRowExpandElem;const bodyScrollElem=getRefElem(elemStore['main-body-scroll']);if(rowExpandEl&&bodyScrollElem){rowExpandEl.scrollTop=bodyScrollElem.scrollTop;}}function handleColumnVisible(visible){return function(fieldOrColumn){const $xeTable=this;let status=false;const cols=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumn)?fieldOrColumn:[fieldOrColumn];cols.forEach(item=>{const column=handleFieldOrColumn($xeTable,item);if(column){if(column.children&&column.children.length){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column],item=>{item.visible=visible;item.renderVisible=visible;});}else{column.visible=visible;column.renderVisible=visible;}if(!status){status=true;}}});if(status){return $xeTable.handleCustom();}return $xeTable.$nextTick();};}function reUpdateCustomStyleEvent($xeTable,evnt){const reactData=$xeTable;const{customStore}=reactData;const customOpts=$xeTable.computeCustomOpts;const{popupOptions}=customOpts;const{transfer}=popupOptions||{};if(transfer&&customStore.visible){const tableCustom=$xeTable.$refs.refTableCustom;if(tableCustom&&$xeTable.handleCustomStyle&&!checkTargetElement(evnt.target,[tableCustom.$el],evnt.currentTarget)){$xeTable.handleCustomStyle().then(()=>{$xeTable.handleCustomStyle();});}}}
|
|
7843
|
+
*/function updateTreeLineStyle($xeTable){const props=$xeTable;const reactData=$xeTable;const internalData=$xeTable;const{treeConfig}=props;if(!treeConfig){return;}const{tableData}=reactData;const{fullAllDataRowIdData,treeExpandedMaps}=internalData;const el=$xeTable.$refs.refElem;if(!el||!el.clientWidth){return;}const cellOpts=$xeTable.computeCellOpts;const rowOpts=$xeTable.computeRowOpts;const defaultRowHeight=$xeTable.computeDefaultRowHeight;const treeOpts=$xeTable.computeTreeOpts;const{transform,mapChildrenField}=treeOpts;const childrenField=treeOpts.children||treeOpts.childrenField;const{handleGetRowId}=createHandleGetRowId($xeTable);const expParentList=[];const handleNodeRow=(row,rIndex,rows)=>{const rowid=handleGetRowId(row);const rowRest=fullAllDataRowIdData[rowid]||{};const childList=row[transform?mapChildrenField:childrenField];const prevRow=rows[rIndex-1]||null;const nextRow=rows[rIndex+1]||null;if(childList&&childList.length&&treeExpandedMaps[rowid]){expParentList.push({row,prevRow,nextRow});childList.forEach((childRow,crIndex)=>{const childRowid=handleGetRowId(childRow);if(treeExpandedMaps[childRowid]){handleNodeRow(childRow,crIndex,childList);}});}else{if(nextRow){const nextRowid=handleGetRowId(nextRow);const nextRowRest=fullAllDataRowIdData[nextRowid]||{};const currCellHeight=getCellRestHeight(rowRest,cellOpts,rowOpts,defaultRowHeight);const nextCellHeight=getCellRestHeight(nextRowRest,cellOpts,rowOpts,defaultRowHeight);rowRest.oHeight=currCellHeight;rowRest.lineHeight=Math.floor(currCellHeight/2+nextCellHeight/2);}else{rowRest.oHeight=0;rowRest.lineHeight=0;}}};tableData.forEach((row,rIndex)=>{handleNodeRow(row,rIndex,tableData);});external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().lastArrayEach(expParentList,({row,nextRow})=>{const rowid=handleGetRowId(row);const childList=row[transform?mapChildrenField:childrenField];const rowRest=fullAllDataRowIdData[rowid];if(rowRest){const currCellHeight=getCellRestHeight(rowRest,cellOpts,rowOpts,defaultRowHeight);let countOffsetHeight=currCellHeight;let countLineHeight=0;childList.forEach(childRow=>{const childRowid=handleGetRowId(childRow);const childRowRest=fullAllDataRowIdData[childRowid]||{};const childList=childRow[transform?mapChildrenField:childrenField];if(treeExpandedMaps[childRowid]&&childList&&childList.length){countOffsetHeight+=childRowRest.oHeight||0;countLineHeight+=childRowRest.oHeight||0;}else{const cellHeight=getCellRestHeight(childRowRest,cellOpts,rowOpts,defaultRowHeight);childRowRest.oHeight=cellHeight;childRowRest.lineHeight=cellHeight;countOffsetHeight+=cellHeight;countLineHeight+=cellHeight;}});if(nextRow){const nextRowid=handleGetRowId(nextRow);const nextRowRest=fullAllDataRowIdData[nextRowid]||{};const currCellHeight=getCellRestHeight(rowRest,cellOpts,rowOpts,defaultRowHeight);const nextCellHeight=getCellRestHeight(nextRowRest,cellOpts,rowOpts,defaultRowHeight);countOffsetHeight+=currCellHeight;countLineHeight+=Math.floor(currCellHeight/2+nextCellHeight/2);}rowRest.lineHeight=countLineHeight;rowRest.oHeight=countOffsetHeight;}});}function handleRowExpandScroll($xeTable){const internalData=$xeTable;const{elemStore}=internalData;const rowExpandEl=$xeTable.$refs.refRowExpandElem;const bodyScrollElem=getRefElem(elemStore['main-body-scroll']);if(rowExpandEl&&bodyScrollElem){rowExpandEl.scrollTop=bodyScrollElem.scrollTop;}}function handleColumnVisible(visible){return function(fieldOrColumn){const $xeTable=this;let status=false;const cols=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrColumn)?fieldOrColumn:[fieldOrColumn];cols.forEach(item=>{const column=handleFieldOrColumn($xeTable,item);if(column){if(column.children&&column.children.length){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column],item=>{item.visible=visible;item.renderVisible=visible;});}else{column.visible=visible;column.renderVisible=visible;}if(!status){status=true;}}});if(status){return $xeTable.handleCustom();}return $xeTable.$nextTick();};}function reUpdateCustomStyleEvent($xeTable,evnt){const reactData=$xeTable;const{customStore}=reactData;const customOpts=$xeTable.computeCustomOpts;const{popupOptions}=customOpts;const{transfer}=popupOptions||{};if(transfer&&customStore.visible){const tableCustom=$xeTable.$refs.refTableCustom;if(tableCustom&&$xeTable.handleCustomStyle&&!checkTargetElement(evnt.target,[tableCustom.$el],evnt.currentTarget)){$xeTable.handleCustomStyle().then(()=>{$xeTable.handleCustomStyle();});}}}function truncateStackHistory($xeTable){const internalData=$xeTable;const{stackHistoryStore}=internalData;const{undoStacks}=stackHistoryStore;const undoRedoHistoryOpts=$xeTable.computeUndoRedoHistoryOpts;const{stackSize}=undoRedoHistoryOpts;if(undoStacks.length>external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(stackSize)){undoStacks.shift();}}/**
|
|
7844
|
+
* 生成快照数据
|
|
7845
|
+
*/function getSnapshotStackData($xeTable){const reactData=$xeTable;const internalData=$xeTable;const{editStore}=reactData;const{afterFullData}=internalData;const{selected,actived}=editStore;const{row:selectRow,column:selectColumn}=selected;const{row:editRow,column:editColumn}=actived;const stackObj={selectActiveInfo:selectRow&&selectColumn?{rowid:getRowid($xeTable,selectRow),colid:selectColumn.id}:undefined,editActiveInfo:editRow&&editColumn?{rowid:getRowid($xeTable,editRow),colid:editColumn.id}:undefined,visibleData:external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(afterFullData,true),visibleColumn:[]};return $xeTable.getCellAreaPushStackObj?$xeTable.getCellAreaPushStackObj(stackObj):stackObj;}/**
|
|
7846
|
+
* 刷新栈视图
|
|
7847
|
+
*/function handleUpdateSnapshotStackData($xeTable,stackObj){const reactData=$xeTable;const internalData=$xeTable;const{editStore}=reactData;const{fullAllDataRowIdData,fullColumnIdData}=internalData;if(!stackObj){return;}const{visibleData,editActiveInfo,selectActiveInfo}=stackObj;const afterFullList=visibleData.map(item=>{const rowid=getRowid($xeTable,item);const rest=fullAllDataRowIdData[rowid];let row=item;if(rest){row=rest.row;Object.assign(row,item);}return row;});internalData.afterFullData=afterFullList;if($xeTable.handleCellAreaSnapshotStackData){$xeTable.handleCellAreaSnapshotStackData(stackObj);}else{const{selected}=editStore;const mouseOpts=$xeTable.computeMouseOpts;let selectRowid='';let selectColid='';if(editActiveInfo){selectRowid=editActiveInfo.rowid;selectColid=editActiveInfo.colid;}else if(selectActiveInfo){selectRowid=selectActiveInfo.rowid;selectColid=selectActiveInfo.colid;}if(selectRowid&&selectColid&&mouseOpts.selected){const editRow=fullAllDataRowIdData[selectRowid]?fullAllDataRowIdData[selectRowid].row:null;const editColumn=fullColumnIdData[selectColid]?fullColumnIdData[selectColid].column:null;if(editRow&&editColumn){const params={row:editRow,column:editColumn};selected.row=editRow;selected.column=editColumn;selected.args=params;$xeTable.$nextTick(()=>{$xeTable.addCellSelectedClass();});}}}}const tableMethods={callSlot(slotFunc,params,h,vNodes){const $xeTable=this;// const slots = $xeTable.$scopedSlots
|
|
6484
7848
|
const $xeGrid=$xeTable.$xeGrid;const $xeGantt=$xeTable.$xeGantt;const $xeGGWrapper=$xeGrid||$xeGantt;if(slotFunc){if($xeGGWrapper){return $xeGGWrapper.callSlot(slotFunc,params,h);}// if (XEUtils.isString(slotFunc)) {
|
|
6485
7849
|
// slotFunc = slots[slotFunc] || null
|
|
6486
7850
|
// }
|
|
@@ -6734,38 +8098,40 @@ if(actived.row){const params=actived.args;this.handleClearEdit(evnt);// 如果
|
|
|
6734
8098
|
if(mouseConfig&&mouseOpts.selected){this.$nextTick(()=>this.handleSelected(params,evnt));}}}}$xeTable.dispatchEvent('keydown',{},evnt);$xeTable.dispatchEvent('keydown-end',{},evnt);});}},contextMenuEvent(evnt){const $xeTable=this;$xeTable.dispatchEvent('context-menu',{},evnt);},/**
|
|
6735
8099
|
* 全局键盘事件
|
|
6736
8100
|
*/handleGlobalKeydownEvent(evnt){const $xeTable=this;const props=$xeTable;const internalData=$xeTable;const reactData=$xeTable;const $xeGrid=$xeTable.$xeGrid;const $xeGantt=$xeTable.$xeGantt;// 该行为只对当前激活的表格有效
|
|
6737
|
-
if(internalData.isActivated){$xeTable.preventEvent(evnt,'event.keydown',null,()=>{const{mouseConfig,keyboardConfig,treeConfig,editConfig,highlightCurrentRow,highlightCurrentColumn}=props;const{ctxMenuStore,editStore}=reactData;const{afterFullData,visibleColumn,currentRow}=internalData;const isContentMenu=$xeTable.computeIsContentMenu;const bodyMenu=$xeTable.computeBodyMenu;const keyboardOpts=$xeTable.computeKeyboardOpts;const mouseOpts=$xeTable.computeMouseOpts;const editOpts=$xeTable.computeEditOpts;const treeOpts=$xeTable.computeTreeOpts;const menuList=$xeTable.computeMenuList;const rowOpts=$xeTable.computeRowOpts;const columnOpts=$xeTable.computeColumnOpts;const{isLastEnterAppendRow,beforeEnterMethod,enterMethod,isLastTabAppendRow,beforeTabMethod,tabMethod}=keyboardOpts;const{selected,actived}=editStore;const{keyCode}=evnt;const
|
|
8101
|
+
if(internalData.isActivated){$xeTable.preventEvent(evnt,'event.keydown',null,()=>{const{mouseConfig,keyboardConfig,treeConfig,editConfig,highlightCurrentRow,highlightCurrentColumn}=props;const{ctxMenuStore,editStore}=reactData;const{afterFullData,visibleColumn,currentRow}=internalData;const isContentMenu=$xeTable.computeIsContentMenu;const bodyMenu=$xeTable.computeBodyMenu;const keyboardOpts=$xeTable.computeKeyboardOpts;const mouseOpts=$xeTable.computeMouseOpts;const editOpts=$xeTable.computeEditOpts;const treeOpts=$xeTable.computeTreeOpts;const menuList=$xeTable.computeMenuList;const rowOpts=$xeTable.computeRowOpts;const columnOpts=$xeTable.computeColumnOpts;const{isLastEnterAppendRow,beforeEnterMethod,enterMethod,isLastTabAppendRow,beforeTabMethod,tabMethod}=keyboardOpts;const{selected,actived}=editStore;const{keyCode}=evnt;const isEsc=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.ESCAPE);const hasBackspaceKey=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.BACKSPACE);const isTab=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.TAB);const isEnter=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.ENTER);const isSpacebar=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.SPACEBAR);const isLeftArrow=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.ARROW_LEFT);const isUpArrow=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.ARROW_UP);const isRightArrow=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.ARROW_RIGHT);const isDwArrow=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.ARROW_DOWN);const hasDeleteKey=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.DELETE);const isY=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.Y);const isZ=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.Z);const isF2=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.F2);const isContextMenu=methods_globalEvents.hasKey(evnt,GLOBAL_EVENT_KEYS.CONTEXT_MENU);const isControlKey=hasControlKey(evnt);const hasShiftKey=evnt.shiftKey;const hasAltKey=evnt.altKey;const operArrow=isLeftArrow||isUpArrow||isRightArrow||isDwArrow;const operCtxMenu=isContentMenu&&ctxMenuStore.visible&&(isEnter||isSpacebar||operArrow);const isEditStatus=isEnableConf(editConfig)&&actived.column&&actived.row;const childrenField=treeOpts.children||treeOpts.childrenField;const beforeEditMethod=editOpts.beforeEditMethod||editOpts.activeMethod;const selectColumn=selected.column;if(operCtxMenu){// 如果配置了右键菜单; 支持方向键操作、回车
|
|
6738
8102
|
evnt.preventDefault();if(ctxMenuStore.showChild&&hasChildrenList(ctxMenuStore.selected)){$xeTable.moveCtxMenu(evnt,ctxMenuStore,'selectChild',isLeftArrow,false,ctxMenuStore.selected.children);}else{$xeTable.moveCtxMenu(evnt,ctxMenuStore,'selected',isRightArrow,true,menuList);}}else if(keyboardConfig&&mouseConfig&&mouseOpts.area&&$xeTable.handleKeyboardCellAreaEvent){$xeTable.handleKeyboardCellAreaEvent(evnt);}else if(isEsc){// 如果按下了 Esc 键,关闭快捷菜单、筛选
|
|
6739
8103
|
if($xeTable.closeMenu){$xeTable.closeMenu();}$xeTable.closeFilter();if(keyboardConfig&&keyboardOpts.isEsc){// 如果是激活编辑状态,则取消编辑
|
|
6740
8104
|
if(actived.row){const params=actived.args;$xeTable.handleClearEdit(evnt);// 如果配置了选中功能,则为选中状态
|
|
6741
|
-
if(mouseOpts.selected){$xeTable.$nextTick(()=>$xeTable.handleSelected(params,evnt));}}}}else if(keyboardConfig&&isSpacebar&&keyboardOpts.isChecked&&selected.row&&
|
|
6742
|
-
evnt.preventDefault();if(
|
|
6743
|
-
if(selected.row&&
|
|
6744
|
-
internalData._keyCtx=selected.row&&
|
|
8105
|
+
if(mouseOpts.selected){$xeTable.$nextTick(()=>$xeTable.handleSelected(params,evnt));}}}}else if(keyboardConfig&&isSpacebar&&keyboardOpts.isChecked&&selected.row&&selectColumn&&(selectColumn.type==='checkbox'||selectColumn.type==='radio')){// 空格键支持选中复选框
|
|
8106
|
+
evnt.preventDefault();if(selectColumn.type==='checkbox'){$xeTable.handleToggleCheckRowEvent(evnt,selected.args);}else{$xeTable.triggerRadioRowEvent(evnt,selected.args);}}else if(isF2&&isEnableConf(editConfig)){if(!isEditStatus){// 如果按下了 F2 键
|
|
8107
|
+
if(selected.row&&selectColumn){evnt.preventDefault();$xeTable.handleEdit(selected.args,evnt);}}}else if(isContextMenu){// 如果按下上下文键
|
|
8108
|
+
internalData._keyCtx=selected.row&&selectColumn&&bodyMenu.length;clearTimeout(internalData.keyCtxTimeout);internalData.keyCtxTimeout=setTimeout(()=>{internalData._keyCtx=false;},1000);}else if(isEnter&&!hasAltKey&&keyboardConfig&&keyboardOpts.isEnter&&(selected.row||actived.row||treeConfig&&(rowOpts.isCurrent||highlightCurrentRow)&¤tRow)){// 退出选中
|
|
6745
8109
|
if(isControlKey){// 如果是激活编辑状态,则取消编辑
|
|
6746
8110
|
if(actived.row){const params=actived.args;$xeTable.handleClearEdit(evnt);// 如果配置了选中功能,则为选中状态
|
|
6747
8111
|
if(mouseConfig&&mouseOpts.selected){$xeTable.$nextTick(()=>$xeTable.handleSelected(params,evnt));}}}else{// 如果是激活状态,退则出到上一行/下一行
|
|
6748
|
-
if(selected.row||actived.row){const activeRow=selected.row||actived.row;const activeColumn=
|
|
8112
|
+
if(selected.row||actived.row){const activeRow=selected.row||actived.row;const activeColumn=selectColumn||actived.column;if(activeColumn){const activeParams=selected.row?selected.args:actived.args;if(hasShiftKey){if(keyboardOpts.enterToTab){$xeTable.moveTabSelected(activeParams,hasShiftKey,evnt);}else{$xeTable.moveEnterSelected(activeParams,isLeftArrow,true,isRightArrow,false,evnt);}}else{const _rowIndex=$xeTable.getVTRowIndex(activeRow);const _columnIndex=$xeTable.getVTColumnIndex(activeColumn);if(keyboardOpts.enterToTab){const ttrParams={row:activeRow,rowIndex:$xeTable.getRowIndex(activeRow),$rowIndex:$xeTable.getVMRowIndex(activeRow),_rowIndex,column:activeColumn,columnIndex:$xeTable.getColumnIndex(activeColumn),$columnIndex:$xeTable.getVMColumnIndex(activeColumn),_columnIndex,$table:$xeTable};if(!beforeTabMethod||beforeTabMethod(ttrParams)!==false){evnt.preventDefault();// 最后一行按下Tab键,自动追加一行
|
|
6749
8113
|
if(isLastTabAppendRow){const newColumn=visibleColumn[0];if(_rowIndex>=afterFullData.length-1&&_columnIndex>=visibleColumn.length-1){if(actived.row){$xeTable.handleClearEdit(evnt);}$xeTable.insertAt({},-1).then(({row:newRow})=>{$xeTable.scrollToRow(newRow,newColumn);$xeTable.handleSelected({...activeParams,row:newRow,column:newColumn},evnt);});$xeTable.dispatchEvent('tab-append-row',ttrParams,evnt);return;}}if(tabMethod){tabMethod(ttrParams);}else{$xeTable.moveTabSelected(activeParams,hasShiftKey,evnt);}}}else{const etrParams={row:activeRow,rowIndex:$xeTable.getRowIndex(activeRow),$rowIndex:$xeTable.getVMRowIndex(activeRow),_rowIndex,column:activeColumn,columnIndex:$xeTable.getColumnIndex(activeColumn),$columnIndex:$xeTable.getVMColumnIndex(activeColumn),_columnIndex,$table:$xeTable};if(!beforeEnterMethod||beforeEnterMethod(etrParams)!==false){evnt.preventDefault();// 最后一行按下回车键,自动追加一行
|
|
6750
|
-
if(isLastEnterAppendRow){if(_rowIndex>=afterFullData.length-1){$xeTable.insertAt({},-1).then(({row:newRow})=>{$xeTable.scrollToRow(newRow,
|
|
8114
|
+
if(isLastEnterAppendRow){if(_rowIndex>=afterFullData.length-1){$xeTable.insertAt({},-1).then(({row:newRow})=>{$xeTable.scrollToRow(newRow,selectColumn);$xeTable.handleSelected({...activeParams,row:newRow},evnt);});$xeTable.dispatchEvent('enter-append-row',etrParams,evnt);return;}}if(enterMethod){enterMethod(etrParams);}else{if(actived.row){$xeTable.handleClearEdit(evnt);}$xeTable.moveEnterSelected(activeParams,isLeftArrow,false,isRightArrow,true,evnt);}}}}}}else if(treeConfig&&(rowOpts.isCurrent||highlightCurrentRow)&¤tRow){// 如果是树形表格当前行回车移动到子节点
|
|
6751
8115
|
const childrens=currentRow[childrenField];if(childrens&&childrens.length){evnt.preventDefault();const targetRow=childrens[0];const params={$table:$xeTable,row:targetRow,rowIndex:$xeTable.getRowIndex(targetRow),$rowIndex:$xeTable.getVMRowIndex(targetRow)};$xeTable.setTreeExpand(currentRow,true).then(()=>$xeTable.scrollToRow(targetRow)).then(()=>$xeTable.triggerCurrentRowEvent(evnt,params));}}}}else if(operArrow&&keyboardConfig&&keyboardOpts.isArrow){if(!isEditStatus){// 如果按下了方向键
|
|
6752
|
-
if(mouseOpts.selected&&selected.row&&
|
|
8116
|
+
if(mouseOpts.selected&&selected.row&&selectColumn){$xeTable.moveArrowSelected(selected.args,isLeftArrow,isUpArrow,isRightArrow,isDwArrow,evnt);}else{// 当前行按键上下移动
|
|
6753
8117
|
if((isUpArrow||isDwArrow)&&(rowOpts.isCurrent||highlightCurrentRow)){$xeTable.moveCurrentRow(isUpArrow,isDwArrow,evnt);}// 当前行按键左右移动
|
|
6754
8118
|
if((isLeftArrow||isRightArrow)&&(columnOpts.isCurrent||highlightCurrentColumn)){$xeTable.moveCurrentColumn(isLeftArrow,isRightArrow,evnt);}}}}else if(isTab&&keyboardConfig&&keyboardOpts.isTab){// 如果按下了 Tab 键切换
|
|
6755
|
-
if(selected.row||actived.row){const activeRow=selected.row||actived.row;const activeColumn=
|
|
6756
|
-
if(isLastTabAppendRow){const newColumn=visibleColumn[0];if(_rowIndex>=afterFullData.length-1&&_columnIndex>=visibleColumn.length-1){if(actived.row){$xeTable.handleClearEdit(evnt);}$xeTable.insertAt({},-1).then(({row:newRow})=>{$xeTable.scrollToRow(newRow,newColumn);$xeTable.handleSelected({...activeParams,row:newRow,column:newColumn},evnt);});$xeTable.dispatchEvent('tab-append-row',ttrParams,evnt);return;}}if(tabMethod){tabMethod(ttrParams);}else{if(actived.row){$xeTable.handleClearEdit(evnt);}$xeTable.moveTabSelected(activeParams,hasShiftKey,evnt);}}}}else if(keyboardConfig&&keyboardOpts.isDel&&hasDeleteKey&&isEnableConf(editConfig)&&(selected.row||
|
|
6757
|
-
if(!isEditStatus){const{delMethod}=keyboardOpts;const params={row:selected.row,rowIndex:$xeTable.getRowIndex(selected.row),column:
|
|
6758
|
-
if(!beforeEditMethod||beforeEditMethod(params)){if(delMethod){delMethod(params);}else{
|
|
6759
|
-
$xeTable.updateFooter();$xeTable.dispatchEvent('cell-delete-value',params,evnt);}}}else if(hasBackspaceKey&&keyboardConfig&&keyboardOpts.isBack&&isEnableConf(editConfig)&&(selected.row||
|
|
6760
|
-
if(keyboardOpts.isDel&&isEnableConf(editConfig)&&(selected.row||
|
|
6761
|
-
if(!beforeEditMethod||beforeEditMethod(params)){if(backMethod){backMethod(params);}else{//
|
|
6762
|
-
if(
|
|
6763
|
-
|
|
8119
|
+
if(selected.row||actived.row){const activeRow=selected.row||actived.row;const activeColumn=selectColumn||actived.column;if(activeColumn){const activeParams=selected.row?selected.args:actived.args;const _rowIndex=$xeTable.getVTRowIndex(activeRow);const _columnIndex=$xeTable.getVTColumnIndex(activeColumn);const ttrParams={row:activeRow,rowIndex:$xeTable.getRowIndex(activeRow),$rowIndex:$xeTable.getVMRowIndex(activeRow),_rowIndex,column:activeColumn,columnIndex:$xeTable.getColumnIndex(activeColumn),$columnIndex:$xeTable.getVMColumnIndex(activeColumn),_columnIndex,$table:$xeTable};if(!beforeTabMethod||beforeTabMethod(ttrParams)!==false){evnt.preventDefault();// 最后一行按下Tab键,自动追加一行
|
|
8120
|
+
if(isLastTabAppendRow){const newColumn=visibleColumn[0];if(_rowIndex>=afterFullData.length-1&&_columnIndex>=visibleColumn.length-1){if(actived.row){$xeTable.handleClearEdit(evnt);}$xeTable.insertAt({},-1).then(({row:newRow})=>{$xeTable.scrollToRow(newRow,newColumn);$xeTable.handleSelected({...activeParams,row:newRow,column:newColumn},evnt);});$xeTable.dispatchEvent('tab-append-row',ttrParams,evnt);return;}}if(tabMethod){tabMethod(ttrParams);}else{if(actived.row){$xeTable.handleClearEdit(evnt);}$xeTable.moveTabSelected(activeParams,hasShiftKey,evnt);}}}}}else if(keyboardConfig&&keyboardOpts.isDel&&hasDeleteKey&&isEnableConf(editConfig)&&(selected.row||selectColumn)){// 如果是删除键
|
|
8121
|
+
if(!isEditStatus){const{delMethod}=keyboardOpts;const params={row:selected.row,rowIndex:$xeTable.getRowIndex(selected.row),column:selectColumn,columnIndex:$xeTable.getColumnIndex(selectColumn),$table:$xeTable,$grid:$xeGrid,$gantt:$xeGantt};// 是否被禁用
|
|
8122
|
+
if(!beforeEditMethod||beforeEditMethod(params)){if(delMethod){delMethod(params);}else{const selectCellValue=getCellValue(selected.row,selectColumn);if(selectCellValue!==null){$xeTable.handlePushStack();setCellValue(selected.row,selectColumn,null);}}// 如果按下 del 键,更新表尾数据
|
|
8123
|
+
$xeTable.updateFooter();$xeTable.dispatchEvent('cell-delete-value',params,evnt);}}}else if(hasBackspaceKey&&keyboardConfig&&keyboardOpts.isBack&&isEnableConf(editConfig)&&(selected.row||selectColumn)){if(!isEditStatus){const{backMethod}=keyboardOpts;// 如果是删除键
|
|
8124
|
+
if(keyboardOpts.isDel&&isEnableConf(editConfig)&&(selected.row||selectColumn)){const params={row:selected.row,rowIndex:$xeTable.getRowIndex(selected.row),column:selectColumn,columnIndex:$xeTable.getColumnIndex(selectColumn),$table:$xeTable,$grid:$xeGrid,$gantt:$xeGantt};// 是否被禁用
|
|
8125
|
+
if(!beforeEditMethod||beforeEditMethod(params)){if(backMethod){backMethod(params);}else{$xeTable.handleEdit(params,evnt,{isClear:true});}$xeTable.dispatchEvent('cell-backspace-value',params,evnt);}}}}else if(hasBackspaceKey&&keyboardConfig&&treeConfig&&keyboardOpts.isBack&&(rowOpts.isCurrent||highlightCurrentRow)&¤tRow){// 如果树形表格回退键关闭当前行返回父节点
|
|
8126
|
+
const{parent:parentRow}=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(internalData.afterTreeFullData,item=>item===currentRow,{children:childrenField});if(parentRow){evnt.preventDefault();const params={row:parentRow,rowIndex:$xeTable.getRowIndex(parentRow),$rowIndex:$xeTable.getVMRowIndex(parentRow),$table:$xeTable,$grid:$xeGrid,$gantt:$xeGantt};$xeTable.setTreeExpand(parentRow,false).then(()=>$xeTable.scrollToRow(parentRow)).then(()=>$xeTable.triggerCurrentRowEvent(evnt,params));}}else if(keyboardConfig&&keyboardOpts.isUndoRedo&&isControlKey&&(isZ||isY)&&!hasEventInputTarget(evnt.target)){if(isY||hasShiftKey&&isZ){// 恢复被撤销的操作:Ctrl + Y 或 Ctrl + Shift + Z
|
|
8127
|
+
evnt.preventDefault();$xeTable.handleRedoStackEvent(evnt);}else if(isZ){// 撤销上一步操作:Ctrl + Z
|
|
8128
|
+
evnt.preventDefault();$xeTable.handleUndoStackEvent(evnt);}}else if(keyboardConfig&&keyboardOpts.isEdit&&!isControlKey&&(isSpacebar||keyCode>=48&&keyCode<=57||keyCode>=65&&keyCode<=90||keyCode>=96&&keyCode<=111||keyCode>=186&&keyCode<=192||keyCode>=219&&keyCode<=222)){const{editMode,editMethod}=keyboardOpts;// 启用编辑后,空格键功能将失效
|
|
6764
8129
|
// if (isSpacebar) {
|
|
6765
8130
|
// evnt.preventDefault()
|
|
6766
8131
|
// }
|
|
6767
8132
|
// 如果是按下非功能键之外允许直接编辑
|
|
6768
|
-
if(
|
|
8133
|
+
if(selectColumn&&selected.row&&isEnableConf(selectColumn.editRender)){const beforeEditMethod=editOpts.beforeEditMethod||editOpts.activeMethod;const params={row:selected.row,rowIndex:$xeTable.getRowIndex(selected.row),column:selectColumn,columnIndex:$xeTable.getColumnIndex(selectColumn),$table:$xeTable,$grid:$xeGrid,$gantt:$xeGantt};if(!beforeEditMethod||beforeEditMethod(params)){if(editMethod){editMethod(params);}else{let isClearValue=false;// 追加方式与覆盖式
|
|
8134
|
+
if(editMode!=='insert'){isClearValue=true;}$xeTable.handleEdit(params,evnt,{isClear:isClearValue});}}}}$xeTable.dispatchEvent('keydown',{},evnt);});}},handleGlobalPasteEvent(evnt){const $xeTable=this;const{isActivated,keyboardConfig,keyboardOpts,mouseConfig,mouseOpts,editStore,filterStore}=this;const{actived}=editStore;if(isActivated&&!filterStore.visible){if(!(actived.row||actived.column)){if(keyboardConfig&&keyboardOpts.isClip&&mouseConfig&&mouseOpts.area&&$xeTable.handlePeClAreaEvent){$xeTable.handlePeClAreaEvent(evnt);}}$xeTable.dispatchEvent('paste',{},evnt);}},handleGlobalCopyEvent(evnt){const $xeTable=this;const{isActivated,keyboardConfig,keyboardOpts,mouseConfig,mouseOpts,editStore,filterStore}=this;const{actived}=editStore;if(isActivated&&!filterStore.visible){if(!(actived.row||actived.column)){if(keyboardConfig&&keyboardOpts.isClip&&mouseConfig&&mouseOpts.area&&$xeTable.handleCyClAreaEvent){$xeTable.handleCyClAreaEvent(evnt);}}$xeTable.dispatchEvent('copy',{},evnt);}},handleGlobalCutEvent(evnt){const $xeTable=this;const{isActivated,keyboardConfig,keyboardOpts,mouseConfig,mouseOpts,editStore,filterStore}=this;const{actived}=editStore;if(isActivated&&!filterStore.visible){if(!(actived.row||actived.column)){if(keyboardConfig&&keyboardOpts.isClip&&mouseConfig&&mouseOpts.area&&$xeTable.handleCutCellAreaEvent){$xeTable.handleCutCellAreaEvent(evnt);}}$xeTable.dispatchEvent('cut',{},evnt);}},handleGlobalResizeEvent(){const $xeTable=this;$xeTable.closeMenu();$xeTable.updateCellAreas();handleResizeEvent($xeTable);$xeTable.updateCellAreas();},handleUpdateHeaderMerge(){const $xeTable=this;const reactData=$xeTable;const internalData=$xeTable;const{mergeHeaderList}=internalData;const{mergeMaps,mergeRowMaps,mergeColMaps}=buildMergeData(mergeHeaderList);internalData.mergeHeaderCellMaps=mergeMaps;internalData.mergeHeaderRowMaps=mergeRowMaps;internalData.mergeHeaderColMaps=mergeColMaps;reactData.mergeHeadFlag++;},/**
|
|
6769
8135
|
* 处理合并
|
|
6770
8136
|
*/handleUpdateBodyMerge(){const $xeTable=this;const reactData=$xeTable;const internalData=$xeTable;const{mergeBodyList}=internalData;const{mergeMaps,mergeRowMaps,mergeColMaps}=buildMergeData(mergeBodyList);internalData.mergeBodyCellMaps=mergeMaps;internalData.mergeBodyRowMaps=mergeRowMaps;internalData.mergeBodyColMaps=mergeColMaps;reactData.mergeBodyFlag++;},handleUpdateFooterMerge(){const $xeTable=this;const reactData=$xeTable;const internalData=$xeTable;const{mergeFooterList}=internalData;const{mergeMaps,mergeRowMaps,mergeColMaps}=buildMergeData(mergeFooterList);internalData.mergeFooterCellMaps=mergeMaps;internalData.mergeFooterRowMaps=mergeRowMaps;internalData.mergeFooterColMaps=mergeColMaps;reactData.mergeFootFlag++;},handleAggregateSummaryData(){const $xeTable=this;return $xeTable.refreshAggregateCalcValues();},handleTargetLeaveEvent(){const $xeTable=this;const internalData=$xeTable;const tooltipOpts=$xeTable.computeTooltipOpts;let $tooltip=$xeTable.$refs.refTooltip;if($tooltip&&$tooltip.setActived){$tooltip.setActived(false);}if(tooltipOpts.enterable){internalData.tooltipTimeout=setTimeout(()=>{$tooltip=$xeTable.$refs.refTooltip;if($tooltip&&$tooltip.isActived&&!$tooltip.isActived()){$xeTable.closeTooltip();}},tooltipOpts.leaveDelay);}else{$xeTable.closeTooltip();}},triggerHeaderTitleEvent(evnt,iconParams,params){const $xeTable=this;const reactData=$xeTable;const tipContent=iconParams.content||iconParams.message;if(tipContent){const{tooltipStore}=reactData;const{column}=params;const content=getFuncText(tipContent);handleTargetEnterEvent($xeTable,true);tooltipStore.row=null;tooltipStore.column=column;tooltipStore.visible=true;tooltipStore.currOpts=iconParams;$xeTable.$nextTick(()=>{const $tooltip=$xeTable.$refs.refTooltip;if($tooltip&&$tooltip.open){$tooltip.open(evnt.currentTarget,content);}});}},/**
|
|
6771
8137
|
* 触发表头 tooltip 事件
|
|
@@ -6902,7 +8268,7 @@ const otfIndex=$xeTable.findRowIndexOf(fullList,dragRow);fullList.splice(otfInde
|
|
|
6902
8268
|
const ptfIndex=$xeTable.findRowIndexOf(fullList,prevDragRow);const ntfIndex=ptfIndex+dragOffsetIndex;fullList.splice(ntfIndex,0,dragRow);// 改变层级
|
|
6903
8269
|
if(isSelfToChildStatus&&isCrossDrag&&isSelfToChildDrag){external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(dragRow[childrenField],childRow=>{childRow[parentField]=dragRow[parentField];});}dragRow[parentField]=isDragToChildFlag?prevDragRow[rowField]:prevDragRow[parentField];internalData.tableFullTreeData=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(fullList,{key:rowField,parentKey:parentField,children:childrenField,mapChildren:mapChildrenField});}}}else{// 移出
|
|
6904
8270
|
oafIndex=$xeTable.findRowIndexOf(afterFullData,dragRow);const otfIndex=$xeTable.findRowIndexOf(tableFullData,dragRow);afterFullData.splice(oafIndex,1);tableFullData.splice(otfIndex,1);// 插入
|
|
6905
|
-
const pafIndex=$xeTable.findRowIndexOf(afterFullData,prevDragRow);const ptfIndex=$xeTable.findRowIndexOf(tableFullData,prevDragRow);nafIndex=pafIndex+dragOffsetIndex;const ntfIndex=ptfIndex+dragOffsetIndex;afterFullData.splice(nafIndex,0,dragRow);tableFullData.splice(ntfIndex,0,dragRow);}$xeTable.handleTableData(treeConfig&&transform);$xeTable.cacheRowMap(false);updateScrollYStatus($xeTable);if(!(treeConfig&&transform)){updateAfterDataIndex($xeTable);}$xeTable.checkSelectionStatus();if(reactData.scrollYLoad){$xeTable.updateScrollYSpace();}if(evnt){$xeTable.dispatchEvent('row-dragend',{oldRow:dragRow,newRow:prevDragRow,dragRow,dragPos:prevDragPos,dragToChild:isDragToChildFlag,offsetIndex:dragOffsetIndex,_index:{newIndex:nafIndex,oldIndex:oafIndex}},evnt);}return $xeTable.$nextTick().then(()=>{if(animation){const{tableData}=reactData;const{fullAllDataRowIdData}=internalData;const dragRowRest=fullAllDataRowIdData[dragRowid];const _newRowIndex=dragRowRest._index;const firstRow=tableData[0];const firstRowRest=fullAllDataRowIdData[getRowid($xeTable,firstRow)];let wrapperEl=el;if($xeGantt){const ganttContainerElem=$xeGantt.$refs.refGanttContainerElem;if(ganttContainerElem){wrapperEl=ganttContainerElem;}}if(firstRowRest){const _firstRowIndex=firstRowRest._index;const _lastRowIndex=_firstRowIndex+tableData.length;let rsIndex=-1;let reIndex=-1;let offsetRate=1;if(_dragRowIndex<_firstRowIndex){// 从上往下虚拟拖拽
|
|
8271
|
+
const pafIndex=$xeTable.findRowIndexOf(afterFullData,prevDragRow);const ptfIndex=$xeTable.findRowIndexOf(tableFullData,prevDragRow);nafIndex=pafIndex+dragOffsetIndex;const ntfIndex=ptfIndex+dragOffsetIndex;afterFullData.splice(nafIndex,0,dragRow);tableFullData.splice(ntfIndex,0,dragRow);}$xeTable.handleClearStack();$xeTable.handleTableData(treeConfig&&transform);$xeTable.cacheRowMap(false);updateScrollYStatus($xeTable);if(!(treeConfig&&transform)){updateAfterDataIndex($xeTable);}$xeTable.checkSelectionStatus();if(reactData.scrollYLoad){$xeTable.updateScrollYSpace();}if(evnt){$xeTable.dispatchEvent('row-dragend',{oldRow:dragRow,newRow:prevDragRow,dragRow,dragPos:prevDragPos,dragToChild:isDragToChildFlag,offsetIndex:dragOffsetIndex,_index:{newIndex:nafIndex,oldIndex:oafIndex}},evnt);}return $xeTable.$nextTick().then(()=>{if(animation){const{tableData}=reactData;const{fullAllDataRowIdData}=internalData;const dragRowRest=fullAllDataRowIdData[dragRowid];const _newRowIndex=dragRowRest._index;const firstRow=tableData[0];const firstRowRest=fullAllDataRowIdData[getRowid($xeTable,firstRow)];let wrapperEl=el;if($xeGantt){const ganttContainerElem=$xeGantt.$refs.refGanttContainerElem;if(ganttContainerElem){wrapperEl=ganttContainerElem;}}if(firstRowRest){const _firstRowIndex=firstRowRest._index;const _lastRowIndex=_firstRowIndex+tableData.length;let rsIndex=-1;let reIndex=-1;let offsetRate=1;if(_dragRowIndex<_firstRowIndex){// 从上往下虚拟拖拽
|
|
6906
8272
|
rsIndex=0;reIndex=_newRowIndex-_firstRowIndex;}else if(_dragRowIndex>_lastRowIndex){// 从下往上虚拟拖拽
|
|
6907
8273
|
const $newRowIndex=dragRowRest.$index;rsIndex=$newRowIndex+1;reIndex=tableData.length;offsetRate=-1;}else{if(_newRowIndex>_dragRowIndex){// 从上往下拖拽
|
|
6908
8274
|
rsIndex=_dragRowIndex-_firstRowIndex;reIndex=rsIndex+_newRowIndex-_dragRowIndex;}else{// 从下往上拖拽
|
|
@@ -6926,7 +8292,7 @@ if(!isCrossDrag){handleColDragEndClearStatus($xeTable);return Promise.resolve(er
|
|
|
6926
8292
|
if(!isCrossDrag){handleColDragEndClearStatus($xeTable);return Promise.resolve(errRest);}if(oldAllMaps[newColumn.id]){isSelfToChildStatus=true;if(!(isCrossDrag&&isSelfToChildDrag)){if(core_.VxeUI.modal){core_.VxeUI.modal.message({status:'error',content:methods_getI18n('vxe.error.treeDragChild')});}handleColDragEndClearStatus($xeTable);return Promise.resolve(errRest);}}}else{// 根到根
|
|
6927
8293
|
}const isDragToChildFlag=isSelfToChildDrag&&dragToChildMethod?dragToChildMethod(dragParams):prevDragToChild;return Promise.resolve(dragEndMethod?dragEndMethod(dragParams):true).then(status=>{if(!status){return errRest;}const oldewMatchRest=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(collectColumn,item=>item.id===dragColumn.id);// 改变层级
|
|
6928
8294
|
if(isSelfToChildStatus&&isCrossDrag&&isSelfToChildDrag){if(oldewMatchRest){const{items:oCols,index:oIndex}=oldewMatchRest;const childList=dragColumn.children||[];childList.forEach(column=>{column.parentId=dragColumn.parentId;});oCols.splice(oIndex,1,...childList);dragColumn.children=[];}}else{if(oldewMatchRest){const{items:oCols,index:oIndex,parent:oParent}=oldewMatchRest;oCols.splice(oIndex,1);if(!oParent){oafIndex=oIndex;}}}const newMatchRest=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(collectColumn,item=>item.id===newColumn.id);if(newMatchRest){const{items:nCols,index:nIndex,parent:nParent}=newMatchRest;// 转子级
|
|
6929
|
-
if(isCrossDrag&&isToChildDrag&&isDragToChildFlag){dragColumn.parentId=newColumn.id;newColumn.children=(newColumn.children||[]).concat([dragColumn]);}else{dragColumn.parentId=newColumn.parentId;nCols.splice(nIndex+dragOffsetIndex,0,dragColumn);}if(!nParent){nafIndex=nIndex;}}external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn,(column,index,items,path,parentColumn)=>{if(!parentColumn){const sortIndex=index+1;column.renderSortNumber=sortIndex;}});if(mouseConfig){if($xeTable.clearSelected){$xeTable.clearSelected();}if($xeTable.clearCellAreas){$xeTable.clearCellAreas();$xeTable.clearCopyCellArea();}}if(evnt){$xeTable.dispatchEvent('column-dragend',{oldColumn:dragColumn,newColumn,dragColumn,dragPos:prevDragPos,dragToChild:isDragToChildFlag,offsetIndex:dragOffsetIndex,_index:{newIndex:nafIndex,oldIndex:oafIndex}},evnt);}return $xeTable.$nextTick().then(()=>{if(isSyncColumn){return $xeTable.handleColDragSwapColumn();}}).then(()=>{if(animation){const{tableColumn}=reactData;const{visibleColumn,fullColumnIdData}=internalData;let dragNewColumn=null;const dragNewColMaps={};external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([dragColumn],column=>{if(!dragNewColumn&&(!column.children||!column.children.length)){dragNewColumn=column;}dragNewColMaps[column.id]=column;});if(!dragNewColumn){dragNewColumn=dragColumn;}if(dragColWidth&&dragAllTargetCols.length){const _newColIndex=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(visibleColumn,column=>!!dragNewColumn&&column.id===dragNewColumn.id);const firstCol=tableColumn[0];const firstColRest=fullColumnIdData[firstCol.id];if(firstColRest){const _firstColIndex=firstColRest._index;const _lastColIndex=_firstColIndex+tableColumn.length;let csIndex=-1;let ceIndex=-1;let offsetRate=1;if(_dragColIndex<_firstColIndex){// 从左往右虚拟拖拽
|
|
8295
|
+
if(isCrossDrag&&isToChildDrag&&isDragToChildFlag){dragColumn.parentId=newColumn.id;newColumn.children=(newColumn.children||[]).concat([dragColumn]);}else{dragColumn.parentId=newColumn.parentId;nCols.splice(nIndex+dragOffsetIndex,0,dragColumn);}if(!nParent){nafIndex=nIndex;}}external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn,(column,index,items,path,parentColumn)=>{if(!parentColumn){const sortIndex=index+1;column.renderSortNumber=sortIndex;}});$xeTable.handleClearStack();if(mouseConfig){if($xeTable.clearSelected){$xeTable.clearSelected();}if($xeTable.clearCellAreas){$xeTable.clearCellAreas();$xeTable.clearCopyCellArea();}}if(evnt){$xeTable.dispatchEvent('column-dragend',{oldColumn:dragColumn,newColumn,dragColumn,dragPos:prevDragPos,dragToChild:isDragToChildFlag,offsetIndex:dragOffsetIndex,_index:{newIndex:nafIndex,oldIndex:oafIndex}},evnt);}return $xeTable.$nextTick().then(()=>{if(isSyncColumn){return $xeTable.handleColDragSwapColumn();}}).then(()=>{if(animation){const{tableColumn}=reactData;const{visibleColumn,fullColumnIdData}=internalData;let dragNewColumn=null;const dragNewColMaps={};external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([dragColumn],column=>{if(!dragNewColumn&&(!column.children||!column.children.length)){dragNewColumn=column;}dragNewColMaps[column.id]=column;});if(!dragNewColumn){dragNewColumn=dragColumn;}if(dragColWidth&&dragAllTargetCols.length){const _newColIndex=external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(visibleColumn,column=>!!dragNewColumn&&column.id===dragNewColumn.id);const firstCol=tableColumn[0];const firstColRest=fullColumnIdData[firstCol.id];if(firstColRest){const _firstColIndex=firstColRest._index;const _lastColIndex=_firstColIndex+tableColumn.length;let csIndex=-1;let ceIndex=-1;let offsetRate=1;if(_dragColIndex<_firstColIndex){// 从左往右虚拟拖拽
|
|
6930
8296
|
csIndex=0;ceIndex=_newColIndex-_firstColIndex;}else if(_dragColIndex>_lastColIndex){// 从右往左虚拟拖拽
|
|
6931
8297
|
const $newRowIndex=dragColRest.$index;csIndex=$newRowIndex+1;ceIndex=tableColumn.length;offsetRate=-1;}else{if(_newColIndex>_dragColIndex){// 从左往右拖拽
|
|
6932
8298
|
csIndex=_dragColIndex-_firstColIndex;ceIndex=csIndex+_newColIndex-_dragColIndex;}else{// 从右往左拖拽
|
|
@@ -6991,7 +8357,7 @@ return $xeTable.reloadTreeExpand(row);},/**
|
|
|
6991
8357
|
*/toggleTreeExpand(row){return this.setTreeExpand(row,!this.isTreeExpandByRow(row));},/**
|
|
6992
8358
|
* 设置所有树节点的展开与否
|
|
6993
8359
|
* @param {Boolean} expanded 是否展开
|
|
6994
|
-
*/setAllTreeExpand(expanded){const $xeTable=this;const reactData=$xeTable;const internalData=$xeTable;const{
|
|
8360
|
+
*/setAllTreeExpand(expanded){const $xeTable=this;const reactData=$xeTable;const internalData=$xeTable;const{tableFullTreeData}=internalData;const treeOpts=$xeTable.computeTreeOpts;const{transform,lazy}=treeOpts;const childrenField=treeOpts.children||treeOpts.childrenField;const expandeds=[];external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData,row=>{const rowChildren=row[childrenField];if(lazy||rowChildren&&rowChildren.length){expandeds.push(row);}},{children:childrenField});return $xeTable.setTreeExpand(expandeds,expanded).then(()=>{if(transform){handleVirtualTreeToList($xeTable);reactData.treeExpandedFlag++;return $xeTable.recalculate();}});},/**
|
|
6995
8361
|
* 设置展开树形节点,二个参数设置这一行展开与否
|
|
6996
8362
|
* 支持单行
|
|
6997
8363
|
* 支持多行
|
|
@@ -7076,19 +8442,19 @@ return $xeTable.removeMergeFooterCells(merges);},/**
|
|
|
7076
8442
|
return $xeTable.getMergeFooterCells();},/**
|
|
7077
8443
|
* 清除所有表尾合并
|
|
7078
8444
|
*/clearMergeFooterCells(){const $xeTable=this;const reactData=$xeTable;const internalData=$xeTable;internalData.mergeFooterList=[];internalData.mergeFooterMaps={};internalData.mergeFooterCellMaps={};internalData.mergeFooterRowMaps={};internalData.mergeFooterColMaps={};reactData.mergeFootFlag++;return $xeTable.$nextTick().then(()=>{return updateStyle($xeTable);});},clearMergeFooterItems(){const $xeTable=this;// errLog('vxe.error.delFunc', ['clearMergeFooterItems', 'clearMergeFooterCells'])
|
|
7079
|
-
return $xeTable.clearMergeFooterCells();},handleUpdateAggData(){const $xeTable=this;const internalData=$xeTable;return loadTableData($xeTable,internalData.tableSynchData,false,true);},
|
|
7080
|
-
emitEvent(type,params,evnt){const $xeTable=this;$xeTable.dispatchEvent(type,params,evnt);},focus(){this.isActivated=true;return
|
|
8445
|
+
return $xeTable.clearMergeFooterCells();},handleUpdateAggData(){const $xeTable=this;const internalData=$xeTable;return loadTableData($xeTable,internalData.tableSynchData,false,true);},handlePushStack(){const $xeTable=this;const internalData=$xeTable;const keyboardOpts=$xeTable.computeKeyboardOpts;if(!keyboardOpts.isUndoRedo){return;}const{stackHistoryStore}=internalData;const stackObj=getSnapshotStackData($xeTable);stackHistoryStore.undoStacks.push(stackObj);stackHistoryStore.redoStacks=[];truncateStackHistory($xeTable);},handleUndoStackEvent(evnt){const $xeTable=this;const internalData=$xeTable;const{stackHistoryStore}=internalData;const{undoStacks,redoStacks}=stackHistoryStore;if(undoStacks.length){const stackObj=getSnapshotStackData($xeTable);redoStacks.push(stackObj);handleUpdateSnapshotStackData($xeTable,undoStacks.pop());if(evnt){$xeTable.dispatchEvent('undo',{},evnt);}return $xeTable.$nextTick(()=>{return{status:true};});}return Promise.resolve({status:false});},handleRedoStackEvent(evnt){const $xeTable=this;const internalData=$xeTable;const{stackHistoryStore}=internalData;const{undoStacks,redoStacks}=stackHistoryStore;if(redoStacks.length){const stackObj=getSnapshotStackData($xeTable);undoStacks.push(stackObj);handleUpdateSnapshotStackData($xeTable,redoStacks.pop());if(evnt){$xeTable.dispatchEvent('redo',{},evnt);}return $xeTable.$nextTick(()=>{return{status:true};});}return Promise.resolve({status:false});},handleClearStack(){const $xeTable=this;const internalData=$xeTable;const{stackHistoryStore}=internalData;stackHistoryStore.undoStacks=[];stackHistoryStore.redoStacks=[];},updateZindex(){const $xeTable=this;const props=$xeTable;const internalData=$xeTable;if(props.zIndex){internalData.tZindex=props.zIndex;}else if(internalData.tZindex<getLastZIndex()){internalData.tZindex=nextZIndex();}},updateCellAreas(){const $xeTable=this;const props=$xeTable;const{mouseConfig}=props;const mouseOpts=$xeTable.computeMouseOpts;if(mouseConfig&&mouseOpts.area&&$xeTable.handleRecalculateCellAreaEvent){return $xeTable.handleRecalculateCellAreaEvent();}return $xeTable.$nextTick();},undo(){const $xeTable=this;return $xeTable.handleUndoStackEvent(null);},redo(){const $xeTable=this;return $xeTable.handleRedoStackEvent(null);},dispatchEvent(type,params,evnt){const $xeTable=this;const $xeGrid=$xeTable.$xeGrid;const $xeGantt=$xeTable.$xeGantt;$xeTable.$emit(type,createEvent(evnt,{$table:$xeTable,$grid:$xeGrid,$gantt:$xeGantt},params));},// 已废弃,使用 dispatchEvent
|
|
8446
|
+
emitEvent(type,params,evnt){const $xeTable=this;$xeTable.dispatchEvent(type,params,evnt);},focus(){const $xeTable=this;const internalData=$xeTable;internalData.isActivated=true;return $xeTable.$nextTick();},blur(){const $xeTable=this;const internalData=$xeTable;internalData.isActivated=false;return $xeTable.$nextTick();},/**
|
|
7081
8447
|
* 已废弃,被 connectToolbar 替换
|
|
7082
8448
|
* @deprecated
|
|
7083
|
-
*/connect($toolbar){return
|
|
8449
|
+
*/connect($toolbar){const $xeTable=this;return $xeTable.connectToolbar($toolbar);},/**
|
|
7084
8450
|
* 连接工具栏
|
|
7085
8451
|
* @param $toolbar
|
|
7086
|
-
*/connectToolbar($toolbar){const $xeTable=this;if($toolbar&&$toolbar.syncUpdate){$toolbar.syncUpdate({collectColumn:
|
|
8452
|
+
*/connectToolbar($toolbar){const $xeTable=this;const internalData=$xeTable;if($toolbar&&$toolbar.syncUpdate){$toolbar.syncUpdate({collectColumn:internalData.collectColumn,$table:$xeTable});this.$toolbar=$toolbar;}else{errLog('vxe.error.barUnableLink');}return $xeTable.$nextTick();},handleConnectGanttView($ganttView){const $xeTable=this;const internalData=$xeTable;if($ganttView&&$ganttView.connectUpdate){$ganttView.connectUpdate({$table:$xeTable});internalData.xeGanttView=$ganttView;}return $xeTable.$nextTick();},/*************************
|
|
7087
8453
|
* Publish methods
|
|
7088
8454
|
*************************//**
|
|
7089
8455
|
* 已废弃,被 getCellElement 替换
|
|
7090
8456
|
* @deprecated
|
|
7091
|
-
*/getCell(row,column){return
|
|
8457
|
+
*/getCell(row,column){const $xeTable=this;return $xeTable.getCellElement(row,column);},findRowIndexOf(list,row){return row?external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(list,item=>this.eqRow(item,row)):-1;},eqRow(row1,row2){const $xeTable=this;if(row1&&row2){if(row1===row2){return true;}return getRowid($xeTable,row1)===getRowid($xeTable,row2);}return false;},/*************************
|
|
7092
8458
|
* Publish methods
|
|
7093
8459
|
*************************/getSetupOptions(){return methods_getConfig();}};const tablePrivateMethods={};const exportMethods=Object.assign({},tableMethods,tablePrivateMethods);// Module methods
|
|
7094
8460
|
const funcs='setFilter,openFilter,clearFilter,saveFilter,saveFilterByEvent,resetFilter,resetFilterByEvent,saveFilterPanel,saveFilterPanelByEvent,resetFilterPanel,resetFilterPanelByEvent,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,getCustomVisible,openCustom,closeCustom,toggleCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',');funcs.forEach(name=>{exportMethods[name]=function(...args){// if (!this[`_${name}`]) {
|
|
@@ -7105,7 +8471,10 @@ const funcs='setFilter,openFilter,clearFilter,saveFilter,saveFilterByEvent,reset
|
|
|
7105
8471
|
// }
|
|
7106
8472
|
// }
|
|
7107
8473
|
return this[`_${name}`]?this[`_${name}`](...args):null;};});/* harmony default export */ var methods = (exportMethods);
|
|
7108
|
-
;//
|
|
8474
|
+
;// ./packages/table/src/body.ts
|
|
8475
|
+
|
|
8476
|
+
|
|
8477
|
+
|
|
7109
8478
|
|
|
7110
8479
|
|
|
7111
8480
|
|
|
@@ -8123,7 +9492,10 @@ function renderRows(h, _vm, fixedType, isOptimizeMode, tableData, tableColumn) {
|
|
|
8123
9492
|
}, emptyContent)]) : body_renderEmptyElement($xeTable)])]);
|
|
8124
9493
|
}
|
|
8125
9494
|
})); /* define-vxe-component end */
|
|
8126
|
-
;//
|
|
9495
|
+
;// ./packages/table/src/header.ts
|
|
9496
|
+
|
|
9497
|
+
|
|
9498
|
+
|
|
8127
9499
|
|
|
8128
9500
|
|
|
8129
9501
|
|
|
@@ -8763,7 +10135,9 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups, renderColumn
|
|
|
8763
10135
|
}
|
|
8764
10136
|
}
|
|
8765
10137
|
})); /* define-vxe-component end */
|
|
8766
|
-
;//
|
|
10138
|
+
;// ./packages/table/src/footer.ts
|
|
10139
|
+
|
|
10140
|
+
|
|
8767
10141
|
|
|
8768
10142
|
|
|
8769
10143
|
|
|
@@ -9186,7 +10560,12 @@ function footer_renderHeads(h, _vm, isOptimizeMode, renderColumnList) {
|
|
|
9186
10560
|
}, footer_renderHeads(h, _vm, isOptimizeMode, renderColumnList))])])]);
|
|
9187
10561
|
}
|
|
9188
10562
|
})); /* define-vxe-component end */
|
|
9189
|
-
;//
|
|
10563
|
+
;// ./packages/table/module/custom/panel.ts
|
|
10564
|
+
|
|
10565
|
+
|
|
10566
|
+
|
|
10567
|
+
|
|
10568
|
+
|
|
9190
10569
|
|
|
9191
10570
|
|
|
9192
10571
|
|
|
@@ -10543,7 +11922,12 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
10543
11922
|
return this.renderVN(h);
|
|
10544
11923
|
}
|
|
10545
11924
|
})); /* define-vxe-component end */
|
|
10546
|
-
;//
|
|
11925
|
+
;// ./packages/table/module/filter/panel.ts
|
|
11926
|
+
|
|
11927
|
+
|
|
11928
|
+
|
|
11929
|
+
|
|
11930
|
+
|
|
10547
11931
|
|
|
10548
11932
|
|
|
10549
11933
|
|
|
@@ -10861,7 +12245,10 @@ function filterCheckAllEvent($xeFilterPanel, evnt, value) {
|
|
|
10861
12245
|
return this.renderVN(h);
|
|
10862
12246
|
}
|
|
10863
12247
|
})); /* define-vxe-component end */
|
|
10864
|
-
;//
|
|
12248
|
+
;// ./packages/table/module/export/import-panel.ts
|
|
12249
|
+
|
|
12250
|
+
|
|
12251
|
+
|
|
10865
12252
|
|
|
10866
12253
|
|
|
10867
12254
|
|
|
@@ -11143,7 +12530,10 @@ const {
|
|
|
11143
12530
|
return this.renderVN(h);
|
|
11144
12531
|
}
|
|
11145
12532
|
})); /* define-vxe-component end */
|
|
11146
|
-
;//
|
|
12533
|
+
;// ./packages/table/module/export/export-panel.ts
|
|
12534
|
+
|
|
12535
|
+
|
|
12536
|
+
|
|
11147
12537
|
|
|
11148
12538
|
|
|
11149
12539
|
|
|
@@ -11723,7 +13113,11 @@ const {
|
|
|
11723
13113
|
return this.renderVN(h);
|
|
11724
13114
|
}
|
|
11725
13115
|
})); /* define-vxe-component end */
|
|
11726
|
-
;//
|
|
13116
|
+
;// ./packages/table/module/menu/panel.ts
|
|
13117
|
+
|
|
13118
|
+
|
|
13119
|
+
|
|
13120
|
+
|
|
11727
13121
|
|
|
11728
13122
|
|
|
11729
13123
|
|
|
@@ -11894,7 +13288,12 @@ const {
|
|
|
11894
13288
|
return this.renderVN(h);
|
|
11895
13289
|
}
|
|
11896
13290
|
})); /* define-vxe-component end */
|
|
11897
|
-
;//
|
|
13291
|
+
;// ./packages/table/module/filter/mixin.ts
|
|
13292
|
+
|
|
13293
|
+
|
|
13294
|
+
|
|
13295
|
+
|
|
13296
|
+
|
|
11898
13297
|
|
|
11899
13298
|
|
|
11900
13299
|
|
|
@@ -12472,7 +13871,7 @@ const mixin_sourceType = 'table';
|
|
|
12472
13871
|
}
|
|
12473
13872
|
}
|
|
12474
13873
|
});
|
|
12475
|
-
;//
|
|
13874
|
+
;// ./packages/table/module/menu/mixin.ts
|
|
12476
13875
|
|
|
12477
13876
|
|
|
12478
13877
|
|
|
@@ -12481,7 +13880,7 @@ const mixin_sourceType = 'table';
|
|
|
12481
13880
|
const {
|
|
12482
13881
|
menus: mixin_menus,
|
|
12483
13882
|
globalEvents: mixin_globalEvents,
|
|
12484
|
-
GLOBAL_EVENT_KEYS
|
|
13883
|
+
GLOBAL_EVENT_KEYS: mixin_GLOBAL_EVENT_KEYS
|
|
12485
13884
|
} = core_.VxeUI;
|
|
12486
13885
|
/* harmony default export */ var menu_mixin = ({
|
|
12487
13886
|
methods: {
|
|
@@ -12511,7 +13910,7 @@ const {
|
|
|
12511
13910
|
ctxMenuStore.showChild = false;
|
|
12512
13911
|
ctxMenuStore.selectChild = null;
|
|
12513
13912
|
}
|
|
12514
|
-
} else if (mixin_globalEvents.hasKey(evnt,
|
|
13913
|
+
} else if (mixin_globalEvents.hasKey(evnt, mixin_GLOBAL_EVENT_KEYS.ARROW_UP)) {
|
|
12515
13914
|
for (let len = selectIndex - 1; len >= 0; len--) {
|
|
12516
13915
|
if (menuList[len].visible !== false) {
|
|
12517
13916
|
selectItem = menuList[len];
|
|
@@ -12519,7 +13918,7 @@ const {
|
|
|
12519
13918
|
}
|
|
12520
13919
|
}
|
|
12521
13920
|
ctxMenuStore[property] = selectItem || menuList[menuList.length - 1];
|
|
12522
|
-
} else if (mixin_globalEvents.hasKey(evnt,
|
|
13921
|
+
} else if (mixin_globalEvents.hasKey(evnt, mixin_GLOBAL_EVENT_KEYS.ARROW_DOWN)) {
|
|
12523
13922
|
for (let index = selectIndex + 1; index < menuList.length; index++) {
|
|
12524
13923
|
if (menuList[index].visible !== false) {
|
|
12525
13924
|
selectItem = menuList[index];
|
|
@@ -12527,7 +13926,7 @@ const {
|
|
|
12527
13926
|
}
|
|
12528
13927
|
}
|
|
12529
13928
|
ctxMenuStore[property] = selectItem || menuList[0];
|
|
12530
|
-
} else if (ctxMenuStore[property] && (mixin_globalEvents.hasKey(evnt,
|
|
13929
|
+
} else if (ctxMenuStore[property] && (mixin_globalEvents.hasKey(evnt, mixin_GLOBAL_EVENT_KEYS.ENTER) || mixin_globalEvents.hasKey(evnt, mixin_GLOBAL_EVENT_KEYS.SPACEBAR))) {
|
|
12531
13930
|
$xeTable.ctxMenuLinkEvent(evnt, ctxMenuStore[property]);
|
|
12532
13931
|
}
|
|
12533
13932
|
},
|
|
@@ -12864,7 +14263,13 @@ const {
|
|
|
12864
14263
|
}
|
|
12865
14264
|
}
|
|
12866
14265
|
});
|
|
12867
|
-
;//
|
|
14266
|
+
;// ./packages/table/module/edit/mixin.ts
|
|
14267
|
+
|
|
14268
|
+
|
|
14269
|
+
|
|
14270
|
+
|
|
14271
|
+
|
|
14272
|
+
|
|
12868
14273
|
|
|
12869
14274
|
|
|
12870
14275
|
|
|
@@ -12922,7 +14327,7 @@ function syncActivedCell($xeTable) {
|
|
|
12922
14327
|
row,
|
|
12923
14328
|
column
|
|
12924
14329
|
} = actived;
|
|
12925
|
-
if (row
|
|
14330
|
+
if (row && column) {
|
|
12926
14331
|
if (editOpts.mode === 'row') {
|
|
12927
14332
|
tableColumn.forEach(column => setEditColumnModel(row, column));
|
|
12928
14333
|
} else {
|
|
@@ -13014,6 +14419,7 @@ function insertTreeRow($xeTable, newRecords, isAppend) {
|
|
|
13014
14419
|
fullAllDataRowIdData[rowid] = rest;
|
|
13015
14420
|
}
|
|
13016
14421
|
});
|
|
14422
|
+
$xeTable.handleClearStack();
|
|
13017
14423
|
}
|
|
13018
14424
|
// function insertGroupRow ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, newRecords: any[], isAppend: boolean) {
|
|
13019
14425
|
// }
|
|
@@ -13112,6 +14518,7 @@ function handleInsertRowAt($xeTable, records, targetRowOrRowid, isInsertNextRow)
|
|
|
13112
14518
|
mergeItem.row = mergeRowIndex + newRecords.length;
|
|
13113
14519
|
}
|
|
13114
14520
|
});
|
|
14521
|
+
$xeTable.handleClearStack();
|
|
13115
14522
|
}
|
|
13116
14523
|
} else {
|
|
13117
14524
|
if (targetRow === -1) {
|
|
@@ -13150,6 +14557,7 @@ function handleInsertRowAt($xeTable, records, targetRowOrRowid, isInsertNextRow)
|
|
|
13150
14557
|
afterFullData.push(item);
|
|
13151
14558
|
tableFullData.push(item);
|
|
13152
14559
|
});
|
|
14560
|
+
$xeTable.handleClearStack();
|
|
13153
14561
|
}
|
|
13154
14562
|
} else {
|
|
13155
14563
|
// 如果为虚拟树
|
|
@@ -13225,6 +14633,7 @@ function handleInsertRowAt($xeTable, records, targetRowOrRowid, isInsertNextRow)
|
|
|
13225
14633
|
parentChilds.splice(targetIndex, 0, ...treeRecords);
|
|
13226
14634
|
}
|
|
13227
14635
|
}
|
|
14636
|
+
$xeTable.handleClearStack();
|
|
13228
14637
|
} else {
|
|
13229
14638
|
warnLog('vxe.error.unableInsert');
|
|
13230
14639
|
insertTreeRow($xeTable, newRecords, true);
|
|
@@ -13274,6 +14683,7 @@ function handleInsertRowAt($xeTable, records, targetRowOrRowid, isInsertNextRow)
|
|
|
13274
14683
|
mergeItem.rowspan = mergeRowspan + newRecords.length;
|
|
13275
14684
|
}
|
|
13276
14685
|
});
|
|
14686
|
+
$xeTable.handleClearStack();
|
|
13277
14687
|
}
|
|
13278
14688
|
}
|
|
13279
14689
|
}
|
|
@@ -13377,10 +14787,10 @@ function handleClearEdit($xeTable, evnt, targetRow) {
|
|
|
13377
14787
|
return $xeTable.$nextTick();
|
|
13378
14788
|
}
|
|
13379
14789
|
syncActivedCell($xeTable);
|
|
14790
|
+
$xeTable.updateFooter();
|
|
13380
14791
|
actived.args = null;
|
|
13381
14792
|
actived.row = null;
|
|
13382
14793
|
actived.column = null;
|
|
13383
|
-
$xeTable.updateFooter();
|
|
13384
14794
|
$xeTable.dispatchEvent('edit-closed', {
|
|
13385
14795
|
row,
|
|
13386
14796
|
rowIndex: $xeTable.getRowIndex(row),
|
|
@@ -13401,7 +14811,7 @@ function handleClearEdit($xeTable, evnt, targetRow) {
|
|
|
13401
14811
|
}
|
|
13402
14812
|
return $xeTable.$nextTick().then(() => $xeTable.updateCellAreas());
|
|
13403
14813
|
}
|
|
13404
|
-
function handleEditActive($xeTable, params, evnt,
|
|
14814
|
+
function handleEditActive($xeTable, params, evnt, options) {
|
|
13405
14815
|
const props = $xeTable;
|
|
13406
14816
|
const reactData = $xeTable;
|
|
13407
14817
|
const $xeGrid = $xeTable.$xeGrid;
|
|
@@ -13428,6 +14838,11 @@ function handleEditActive($xeTable, params, evnt, isFocus, isPos) {
|
|
|
13428
14838
|
const {
|
|
13429
14839
|
editRender
|
|
13430
14840
|
} = column;
|
|
14841
|
+
const {
|
|
14842
|
+
isFocus,
|
|
14843
|
+
isPos,
|
|
14844
|
+
isClear
|
|
14845
|
+
} = options;
|
|
13431
14846
|
const cell = params.cell || $xeTable.getCellElement(row, column);
|
|
13432
14847
|
const beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
|
|
13433
14848
|
params.cell = cell;
|
|
@@ -13458,6 +14873,10 @@ function handleEditActive($xeTable, params, evnt, isFocus, isPos) {
|
|
|
13458
14873
|
actived.args = params;
|
|
13459
14874
|
actived.row = row;
|
|
13460
14875
|
actived.column = column;
|
|
14876
|
+
$xeTable.handlePushStack();
|
|
14877
|
+
if (isClear) {
|
|
14878
|
+
setCellValue(row, column, null);
|
|
14879
|
+
}
|
|
13461
14880
|
if (mode === 'row') {
|
|
13462
14881
|
tableColumn.forEach(column => getEditColumnModel(row, column));
|
|
13463
14882
|
} else {
|
|
@@ -13507,7 +14926,7 @@ function handleEditActive($xeTable, params, evnt, isFocus, isPos) {
|
|
|
13507
14926
|
$xeTable.clearCopyCellArea();
|
|
13508
14927
|
}
|
|
13509
14928
|
}
|
|
13510
|
-
if (oldColumn !== column) {
|
|
14929
|
+
if (oldColumn && oldColumn !== column) {
|
|
13511
14930
|
const {
|
|
13512
14931
|
model: oldModel
|
|
13513
14932
|
} = oldColumn;
|
|
@@ -13534,12 +14953,15 @@ function handleEditActive($xeTable, params, evnt, isFocus, isPos) {
|
|
|
13534
14953
|
}
|
|
13535
14954
|
return $xeTable.$nextTick();
|
|
13536
14955
|
}
|
|
13537
|
-
function handleEditCell($xeTable, row, fieldOrColumn,
|
|
14956
|
+
function handleEditCell($xeTable, row, fieldOrColumn, options) {
|
|
13538
14957
|
const props = $xeTable;
|
|
13539
14958
|
const internalData = $xeTable;
|
|
13540
14959
|
const {
|
|
13541
14960
|
editConfig
|
|
13542
14961
|
} = props;
|
|
14962
|
+
const {
|
|
14963
|
+
isPos
|
|
14964
|
+
} = options;
|
|
13543
14965
|
const column = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(fieldOrColumn) ? $xeTable.getColumnByField(fieldOrColumn) : fieldOrColumn;
|
|
13544
14966
|
if (row && column && isEnableConf(editConfig) && isEnableConf(column.editRender) && !$xeTable.isAggregateRecord(row)) {
|
|
13545
14967
|
return Promise.resolve(isPos ? $xeTable.scrollToRow(row, column) : null).then(() => {
|
|
@@ -13552,7 +14974,7 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
13552
14974
|
columnIndex: $xeTable.getColumnIndex(column),
|
|
13553
14975
|
cell,
|
|
13554
14976
|
$table: $xeTable
|
|
13555
|
-
}, null,
|
|
14977
|
+
}, null, options);
|
|
13556
14978
|
internalData._lastCallTime = Date.now();
|
|
13557
14979
|
}
|
|
13558
14980
|
return $xeTable.$nextTick();
|
|
@@ -13731,6 +15153,7 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
13731
15153
|
reactData.removeRowFlag++;
|
|
13732
15154
|
reactData.insertRowFlag++;
|
|
13733
15155
|
reactData.pendingRowFlag++;
|
|
15156
|
+
$xeTable.handleClearStack();
|
|
13734
15157
|
$xeTable.cacheRowMap(false);
|
|
13735
15158
|
$xeTable.handleTableData(treeConfig && transform);
|
|
13736
15159
|
$xeTable.updateFooter();
|
|
@@ -13865,9 +15288,12 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
13865
15288
|
/**
|
|
13866
15289
|
* 处理激活编辑
|
|
13867
15290
|
*/
|
|
13868
|
-
handleEdit(params, evnt) {
|
|
15291
|
+
handleEdit(params, evnt, options) {
|
|
13869
15292
|
const $xeTable = this;
|
|
13870
|
-
return handleEditActive($xeTable, params, evnt,
|
|
15293
|
+
return handleEditActive($xeTable, params, evnt, Object.assign({
|
|
15294
|
+
isFocus: true,
|
|
15295
|
+
isPos: true
|
|
15296
|
+
}, options));
|
|
13871
15297
|
},
|
|
13872
15298
|
/**
|
|
13873
15299
|
* @deprecated
|
|
@@ -14061,7 +15487,7 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
14061
15487
|
/**
|
|
14062
15488
|
* 激活行编辑
|
|
14063
15489
|
*/
|
|
14064
|
-
_setEditRow(row, fieldOrColumn) {
|
|
15490
|
+
_setEditRow(row, fieldOrColumn, options) {
|
|
14065
15491
|
const $xeTable = this;
|
|
14066
15492
|
const internalData = $xeTable;
|
|
14067
15493
|
const {
|
|
@@ -14075,7 +15501,10 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
14075
15501
|
column = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(fieldOrColumn) ? $xeTable.getColumnByField(fieldOrColumn) : fieldOrColumn;
|
|
14076
15502
|
}
|
|
14077
15503
|
}
|
|
14078
|
-
return handleEditCell($xeTable, row, column,
|
|
15504
|
+
return handleEditCell($xeTable, row, column, Object.assign({
|
|
15505
|
+
isPos,
|
|
15506
|
+
isFocus: isPos
|
|
15507
|
+
}, options));
|
|
14079
15508
|
},
|
|
14080
15509
|
_setActiveCell(row, fieldOrColumn) {
|
|
14081
15510
|
const $xeTable = this;
|
|
@@ -14086,9 +15515,12 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
14086
15515
|
/**
|
|
14087
15516
|
* 激活单元格编辑
|
|
14088
15517
|
*/
|
|
14089
|
-
_setEditCell(row, fieldOrColumn) {
|
|
15518
|
+
_setEditCell(row, fieldOrColumn, options) {
|
|
14090
15519
|
const $xeTable = this;
|
|
14091
|
-
return handleEditCell($xeTable, row, fieldOrColumn,
|
|
15520
|
+
return handleEditCell($xeTable, row, fieldOrColumn, Object.assign({
|
|
15521
|
+
isFocus: true,
|
|
15522
|
+
isPos: true
|
|
15523
|
+
}, options));
|
|
14092
15524
|
},
|
|
14093
15525
|
/**
|
|
14094
15526
|
* 只对 trigger=dblclick 有效,选中单元格
|
|
@@ -14238,7 +15670,7 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
14238
15670
|
}
|
|
14239
15671
|
}
|
|
14240
15672
|
});
|
|
14241
|
-
;//
|
|
15673
|
+
;// ./packages/table/module/export/util.ts
|
|
14242
15674
|
// 默认导出或打印的 HTML 样式
|
|
14243
15675
|
const defaultHtmlStyle = 'body{margin:0;padding: 0 1px;color:#333333;font-size:14px;font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table:not(.is--print){table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{border-color:#D0D0D0;border-style:solid;border-width:0}.vxe-table.is--print{width:100%}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:.5em .4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table:not(.is--print) .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';
|
|
14244
15676
|
function getExportBlobByContent(content, options) {
|
|
@@ -14252,7 +15684,14 @@ function createHtmlPage(opts, content) {
|
|
|
14252
15684
|
} = opts;
|
|
14253
15685
|
return ['<!DOCTYPE html><html>', '<head>', '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">', `<title>${opts.sheetName}</title>`, '<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>', `<style>${defaultHtmlStyle}</style>`, style ? `<style>${style}</style>` : '', '</head>', `<body>${content}</body>`, '</html>'].join('');
|
|
14254
15686
|
}
|
|
14255
|
-
;//
|
|
15687
|
+
;// ./packages/table/module/export/mixin.ts
|
|
15688
|
+
|
|
15689
|
+
|
|
15690
|
+
|
|
15691
|
+
|
|
15692
|
+
|
|
15693
|
+
|
|
15694
|
+
|
|
14256
15695
|
|
|
14257
15696
|
|
|
14258
15697
|
|
|
@@ -16153,7 +17592,9 @@ const convertToRows = originColumns => {
|
|
|
16153
17592
|
}
|
|
16154
17593
|
}
|
|
16155
17594
|
});
|
|
16156
|
-
;//
|
|
17595
|
+
;// ./packages/table/module/keyboard/mixin.ts
|
|
17596
|
+
|
|
17597
|
+
|
|
16157
17598
|
|
|
16158
17599
|
|
|
16159
17600
|
|
|
@@ -16696,8 +18137,8 @@ function handleCheckboxRangeEvent($xeTable, evnt, params) {
|
|
|
16696
18137
|
const checkboxOpts = $xeTable.computeCheckboxOpts;
|
|
16697
18138
|
const mouseOpts = $xeTable.computeMouseOpts;
|
|
16698
18139
|
const editOpts = $xeTable.computeEditOpts;
|
|
16699
|
-
if (mouseConfig && mouseOpts.area && $xeTable.
|
|
16700
|
-
return $xeTable.
|
|
18140
|
+
if (mouseConfig && mouseOpts.area && $xeTable.triggerCelllAreaMnEvent) {
|
|
18141
|
+
return $xeTable.triggerCelllAreaMnEvent(evnt, params);
|
|
16701
18142
|
} else {
|
|
16702
18143
|
if (checkboxConfig && checkboxOpts.range) {
|
|
16703
18144
|
handleCheckboxRangeEvent($xeTable, evnt, params);
|
|
@@ -16711,7 +18152,7 @@ function handleCheckboxRangeEvent($xeTable, evnt, params) {
|
|
|
16711
18152
|
}
|
|
16712
18153
|
}
|
|
16713
18154
|
});
|
|
16714
|
-
;//
|
|
18155
|
+
;// ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
16715
18156
|
function _typeof(o) {
|
|
16716
18157
|
"@babel/helpers - typeof";
|
|
16717
18158
|
|
|
@@ -16722,7 +18163,7 @@ function _typeof(o) {
|
|
|
16722
18163
|
}, _typeof(o);
|
|
16723
18164
|
}
|
|
16724
18165
|
|
|
16725
|
-
;//
|
|
18166
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
16726
18167
|
|
|
16727
18168
|
function toPrimitive(t, r) {
|
|
16728
18169
|
if ("object" != _typeof(t) || !t) return t;
|
|
@@ -16735,7 +18176,7 @@ function toPrimitive(t, r) {
|
|
|
16735
18176
|
return ("string" === r ? String : Number)(t);
|
|
16736
18177
|
}
|
|
16737
18178
|
|
|
16738
|
-
;//
|
|
18179
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
16739
18180
|
|
|
16740
18181
|
|
|
16741
18182
|
function toPropertyKey(t) {
|
|
@@ -16743,7 +18184,7 @@ function toPropertyKey(t) {
|
|
|
16743
18184
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
16744
18185
|
}
|
|
16745
18186
|
|
|
16746
|
-
;//
|
|
18187
|
+
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
16747
18188
|
|
|
16748
18189
|
function _defineProperty(e, r, t) {
|
|
16749
18190
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
@@ -16754,7 +18195,11 @@ function _defineProperty(e, r, t) {
|
|
|
16754
18195
|
}) : e[r] = t, e;
|
|
16755
18196
|
}
|
|
16756
18197
|
|
|
16757
|
-
;//
|
|
18198
|
+
;// ./packages/table/module/validator/mixin.ts
|
|
18199
|
+
|
|
18200
|
+
|
|
18201
|
+
|
|
18202
|
+
|
|
16758
18203
|
|
|
16759
18204
|
|
|
16760
18205
|
|
|
@@ -17422,7 +18867,11 @@ function beginValidate($xeTable, rows, cols, cb, isFull) {
|
|
|
17422
18867
|
}
|
|
17423
18868
|
}
|
|
17424
18869
|
});
|
|
17425
|
-
;//
|
|
18870
|
+
;// ./packages/table/module/custom/mixin.ts
|
|
18871
|
+
|
|
18872
|
+
|
|
18873
|
+
|
|
18874
|
+
|
|
17426
18875
|
|
|
17427
18876
|
|
|
17428
18877
|
|
|
@@ -17947,7 +19396,12 @@ function emitCustomEvent($xeTable, type, evnt) {
|
|
|
17947
19396
|
}
|
|
17948
19397
|
}
|
|
17949
19398
|
});
|
|
17950
|
-
;//
|
|
19399
|
+
;// ./packages/table/src/table.ts
|
|
19400
|
+
|
|
19401
|
+
|
|
19402
|
+
|
|
19403
|
+
|
|
19404
|
+
|
|
17951
19405
|
|
|
17952
19406
|
|
|
17953
19407
|
|
|
@@ -19440,10 +20894,10 @@ function renderBody(h, $xeTable) {
|
|
|
19440
20894
|
}
|
|
19441
20895
|
return [];
|
|
19442
20896
|
},
|
|
19443
|
-
|
|
20897
|
+
computeUndoRedoHistoryOpts() {
|
|
19444
20898
|
const $xeTable = this;
|
|
19445
20899
|
const props = $xeTable;
|
|
19446
|
-
return Object.assign({}, table_getConfig().table.
|
|
20900
|
+
return Object.assign({}, table_getConfig().table.undoRedoHistoryConfig, props.undoRedoHistoryConfig);
|
|
19447
20901
|
},
|
|
19448
20902
|
tabsResizeFlag() {
|
|
19449
20903
|
const $xeTable = this;
|
|
@@ -19639,10 +21093,12 @@ function renderBody(h, $xeTable) {
|
|
|
19639
21093
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, createInternalData());
|
|
19640
21094
|
handleKeyField($xeTable);
|
|
19641
21095
|
const {
|
|
21096
|
+
editConfig,
|
|
19642
21097
|
exportConfig,
|
|
19643
21098
|
importConfig,
|
|
19644
21099
|
treeConfig,
|
|
19645
|
-
minHeight
|
|
21100
|
+
minHeight,
|
|
21101
|
+
keepSource
|
|
19646
21102
|
} = props;
|
|
19647
21103
|
const {
|
|
19648
21104
|
scrollXStore,
|
|
@@ -19683,8 +21139,15 @@ function renderBody(h, $xeTable) {
|
|
|
19683
21139
|
if (!(props.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || treeOpts.expandRowKeys)) {
|
|
19684
21140
|
warnLog('vxe.error.reqProp', ['row-config.keyField']);
|
|
19685
21141
|
}
|
|
19686
|
-
if (
|
|
19687
|
-
|
|
21142
|
+
if (editConfig) {
|
|
21143
|
+
if (!keepSource) {
|
|
21144
|
+
if (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) {
|
|
21145
|
+
warnLog('vxe.error.reqSupportProp', ['edit-config.showStatus | showUpdateStatus | showInsertStatus', 'keep-source']);
|
|
21146
|
+
}
|
|
21147
|
+
// if (keyboardOpts.isUndoRedo) {
|
|
21148
|
+
// warnLog('vxe.error.reqSupportProp', ['keyboard-config.isUndoRedo', 'keep-source'])
|
|
21149
|
+
// }
|
|
21150
|
+
}
|
|
19688
21151
|
}
|
|
19689
21152
|
// if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
|
|
19690
21153
|
// warnLog('vxe.error.reqProp', ['show-overflow'])
|
|
@@ -19757,7 +21220,7 @@ function renderBody(h, $xeTable) {
|
|
|
19757
21220
|
if (rowOpts.height && !this.showOverflow) {
|
|
19758
21221
|
warnLog('vxe.error.notProp', ['table.show-overflow']);
|
|
19759
21222
|
}
|
|
19760
|
-
if (!$xeTable.
|
|
21223
|
+
if (!$xeTable.triggerCelllAreaMnEvent) {
|
|
19761
21224
|
if (props.areaConfig) {
|
|
19762
21225
|
warnLog('vxe.error.notProp', ['area-config']);
|
|
19763
21226
|
}
|
|
@@ -20481,7 +21944,11 @@ function renderBody(h, $xeTable) {
|
|
|
20481
21944
|
},
|
|
20482
21945
|
methods: methods
|
|
20483
21946
|
});
|
|
20484
|
-
;//
|
|
21947
|
+
;// ./packages/toolbar/src/toolbar.ts
|
|
21948
|
+
|
|
21949
|
+
|
|
21950
|
+
|
|
21951
|
+
|
|
20485
21952
|
|
|
20486
21953
|
|
|
20487
21954
|
|
|
@@ -21368,7 +22835,12 @@ function toolbar_createInternalData() {
|
|
|
21368
22835
|
return this.renderVN(h);
|
|
21369
22836
|
}
|
|
21370
22837
|
})); /* define-vxe-component end */
|
|
21371
|
-
;//
|
|
22838
|
+
;// ./packages/grid/src/grid.ts
|
|
22839
|
+
|
|
22840
|
+
|
|
22841
|
+
|
|
22842
|
+
|
|
22843
|
+
|
|
21372
22844
|
|
|
21373
22845
|
|
|
21374
22846
|
|
|
@@ -23417,7 +24889,7 @@ function grid_createInternalData() {
|
|
|
23417
24889
|
return this.renderVN(h);
|
|
23418
24890
|
}
|
|
23419
24891
|
})); /* define-vxe-component end */
|
|
23420
|
-
;//
|
|
24892
|
+
;// ./packages/grid/index.ts
|
|
23421
24893
|
|
|
23422
24894
|
|
|
23423
24895
|
let isReg = false;
|
|
@@ -23438,7 +24910,11 @@ const Grid = VxeGrid;
|
|
|
23438
24910
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
23439
24911
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
23440
24912
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
23441
|
-
;//
|
|
24913
|
+
;// ./packages/table/render/index.ts
|
|
24914
|
+
|
|
24915
|
+
|
|
24916
|
+
|
|
24917
|
+
|
|
23442
24918
|
|
|
23443
24919
|
|
|
23444
24920
|
|
|
@@ -25110,7 +26586,7 @@ render_renderer.mixin({
|
|
|
25110
26586
|
}
|
|
25111
26587
|
// 以上已废弃
|
|
25112
26588
|
});
|
|
25113
|
-
;//
|
|
26589
|
+
;// ./packages/table/index.ts
|
|
25114
26590
|
|
|
25115
26591
|
|
|
25116
26592
|
|
|
@@ -25160,7 +26636,7 @@ const VxeTable = Object.assign({}, table, {
|
|
|
25160
26636
|
core_.VxeUI.component(table);
|
|
25161
26637
|
const Table = VxeTable;
|
|
25162
26638
|
/* harmony default export */ var packages_table = ((/* unused pure expression or super */ null && (VxeTable)));
|
|
25163
|
-
;//
|
|
26639
|
+
;// ./packages/toolbar/index.ts
|
|
25164
26640
|
|
|
25165
26641
|
|
|
25166
26642
|
const VxeToolbar = Object.assign({}, toolbar, {
|
|
@@ -25174,7 +26650,7 @@ if (core_.VxeUI.dynamicApp) {
|
|
|
25174
26650
|
core_.VxeUI.component(toolbar);
|
|
25175
26651
|
const Toolbar = VxeToolbar;
|
|
25176
26652
|
/* harmony default export */ var packages_toolbar = ((/* unused pure expression or super */ null && (VxeToolbar)));
|
|
25177
|
-
;//
|
|
26653
|
+
;// ./packages/locale/lang/zh-CN.ts
|
|
25178
26654
|
/* harmony default export */ var zh_CN = ({
|
|
25179
26655
|
vxe: {
|
|
25180
26656
|
base: {
|
|
@@ -26007,7 +27483,7 @@ const Toolbar = VxeToolbar;
|
|
|
26007
27483
|
}
|
|
26008
27484
|
}
|
|
26009
27485
|
});
|
|
26010
|
-
;//
|
|
27486
|
+
;// ./packages/components.ts
|
|
26011
27487
|
|
|
26012
27488
|
|
|
26013
27489
|
|
|
@@ -26035,7 +27511,7 @@ core_.VxeUI.setTheme('light');
|
|
|
26035
27511
|
|
|
26036
27512
|
|
|
26037
27513
|
|
|
26038
|
-
;//
|
|
27514
|
+
;// ./index.ts
|
|
26039
27515
|
|
|
26040
27516
|
|
|
26041
27517
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
@@ -26048,7 +27524,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
26048
27524
|
}
|
|
26049
27525
|
|
|
26050
27526
|
/* harmony default export */ var index = (components_namespaceObject);
|
|
26051
|
-
;//
|
|
27527
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
26052
27528
|
|
|
26053
27529
|
|
|
26054
27530
|
/* harmony default export */ var entry_lib = (index);
|