@antv/s2-vue 2.0.0-next.12 → 2.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/esm/index.d.ts +70 -4
- package/esm/index.js +243 -87
- package/esm/index.js.map +1 -1
- package/lib/index.js +242 -86
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -132,12 +132,12 @@ var freeGlobal = typeof global == "object" && global && global.Object === Object
|
|
|
132
132
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
133
133
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
134
134
|
var Symbol$1 = root.Symbol;
|
|
135
|
-
var objectProto$
|
|
136
|
-
var hasOwnProperty$
|
|
137
|
-
var nativeObjectToString$1 = objectProto$
|
|
135
|
+
var objectProto$g = Object.prototype;
|
|
136
|
+
var hasOwnProperty$d = objectProto$g.hasOwnProperty;
|
|
137
|
+
var nativeObjectToString$1 = objectProto$g.toString;
|
|
138
138
|
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
139
139
|
function getRawTag(value) {
|
|
140
|
-
var isOwn = hasOwnProperty$
|
|
140
|
+
var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
141
141
|
try {
|
|
142
142
|
value[symToStringTag$1] = void 0;
|
|
143
143
|
var unmasked = true;
|
|
@@ -153,8 +153,8 @@ function getRawTag(value) {
|
|
|
153
153
|
}
|
|
154
154
|
return result;
|
|
155
155
|
}
|
|
156
|
-
var objectProto$
|
|
157
|
-
var nativeObjectToString = objectProto$
|
|
156
|
+
var objectProto$f = Object.prototype;
|
|
157
|
+
var nativeObjectToString = objectProto$f.toString;
|
|
158
158
|
function objectToString(value) {
|
|
159
159
|
return nativeObjectToString.call(value);
|
|
160
160
|
}
|
|
@@ -253,12 +253,12 @@ var maskSrcKey = function() {
|
|
|
253
253
|
function isMasked(func) {
|
|
254
254
|
return !!maskSrcKey && maskSrcKey in func;
|
|
255
255
|
}
|
|
256
|
-
var funcProto$
|
|
257
|
-
var funcToString$
|
|
256
|
+
var funcProto$2 = Function.prototype;
|
|
257
|
+
var funcToString$2 = funcProto$2.toString;
|
|
258
258
|
function toSource(func) {
|
|
259
259
|
if (func != null) {
|
|
260
260
|
try {
|
|
261
|
-
return funcToString$
|
|
261
|
+
return funcToString$2.call(func);
|
|
262
262
|
} catch (e) {
|
|
263
263
|
}
|
|
264
264
|
try {
|
|
@@ -270,11 +270,11 @@ function toSource(func) {
|
|
|
270
270
|
}
|
|
271
271
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
272
272
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
273
|
-
var funcProto = Function.prototype, objectProto$
|
|
274
|
-
var funcToString = funcProto.toString;
|
|
275
|
-
var hasOwnProperty$
|
|
273
|
+
var funcProto$1 = Function.prototype, objectProto$e = Object.prototype;
|
|
274
|
+
var funcToString$1 = funcProto$1.toString;
|
|
275
|
+
var hasOwnProperty$c = objectProto$e.hasOwnProperty;
|
|
276
276
|
var reIsNative = RegExp(
|
|
277
|
-
"^" + funcToString.call(hasOwnProperty$
|
|
277
|
+
"^" + funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
278
278
|
);
|
|
279
279
|
function baseIsNative(value) {
|
|
280
280
|
if (!isObject(value) || isMasked(value)) {
|
|
@@ -308,6 +308,19 @@ var baseCreate = /* @__PURE__ */ function() {
|
|
|
308
308
|
return result;
|
|
309
309
|
};
|
|
310
310
|
}();
|
|
311
|
+
function apply(func, thisArg, args) {
|
|
312
|
+
switch (args.length) {
|
|
313
|
+
case 0:
|
|
314
|
+
return func.call(thisArg);
|
|
315
|
+
case 1:
|
|
316
|
+
return func.call(thisArg, args[0]);
|
|
317
|
+
case 2:
|
|
318
|
+
return func.call(thisArg, args[0], args[1]);
|
|
319
|
+
case 3:
|
|
320
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
321
|
+
}
|
|
322
|
+
return func.apply(thisArg, args);
|
|
323
|
+
}
|
|
311
324
|
function copyArray(source, array) {
|
|
312
325
|
var index2 = -1, length = source.length;
|
|
313
326
|
array || (array = Array(length));
|
|
@@ -316,6 +329,28 @@ function copyArray(source, array) {
|
|
|
316
329
|
}
|
|
317
330
|
return array;
|
|
318
331
|
}
|
|
332
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
333
|
+
var nativeNow = Date.now;
|
|
334
|
+
function shortOut(func) {
|
|
335
|
+
var count = 0, lastCalled = 0;
|
|
336
|
+
return function() {
|
|
337
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
338
|
+
lastCalled = stamp;
|
|
339
|
+
if (remaining > 0) {
|
|
340
|
+
if (++count >= HOT_COUNT) {
|
|
341
|
+
return arguments[0];
|
|
342
|
+
}
|
|
343
|
+
} else {
|
|
344
|
+
count = 0;
|
|
345
|
+
}
|
|
346
|
+
return func.apply(void 0, arguments);
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
function constant(value) {
|
|
350
|
+
return function() {
|
|
351
|
+
return value;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
319
354
|
var defineProperty = function() {
|
|
320
355
|
try {
|
|
321
356
|
var func = getNative(Object, "defineProperty");
|
|
@@ -324,6 +359,16 @@ var defineProperty = function() {
|
|
|
324
359
|
} catch (e) {
|
|
325
360
|
}
|
|
326
361
|
}();
|
|
362
|
+
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
363
|
+
return defineProperty(func, "toString", {
|
|
364
|
+
"configurable": true,
|
|
365
|
+
"enumerable": false,
|
|
366
|
+
"value": constant(string),
|
|
367
|
+
"writable": true
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
const baseSetToString$1 = baseSetToString;
|
|
371
|
+
var setToString = shortOut(baseSetToString$1);
|
|
327
372
|
function arrayEach(array, iteratee) {
|
|
328
373
|
var index2 = -1, length = array == null ? 0 : array.length;
|
|
329
374
|
while (++index2 < length) {
|
|
@@ -355,11 +400,11 @@ function baseAssignValue(object, key, value) {
|
|
|
355
400
|
function eq(value, other) {
|
|
356
401
|
return value === other || value !== value && other !== other;
|
|
357
402
|
}
|
|
358
|
-
var objectProto$
|
|
359
|
-
var hasOwnProperty$
|
|
403
|
+
var objectProto$d = Object.prototype;
|
|
404
|
+
var hasOwnProperty$b = objectProto$d.hasOwnProperty;
|
|
360
405
|
function assignValue(object, key, value) {
|
|
361
406
|
var objValue = object[key];
|
|
362
|
-
if (!(hasOwnProperty$
|
|
407
|
+
if (!(hasOwnProperty$b.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
363
408
|
baseAssignValue(object, key, value);
|
|
364
409
|
}
|
|
365
410
|
}
|
|
@@ -381,6 +426,23 @@ function copyObject(source, props, object, customizer) {
|
|
|
381
426
|
}
|
|
382
427
|
return object;
|
|
383
428
|
}
|
|
429
|
+
var nativeMax$1 = Math.max;
|
|
430
|
+
function overRest(func, start, transform) {
|
|
431
|
+
start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
|
|
432
|
+
return function() {
|
|
433
|
+
var args = arguments, index2 = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
|
|
434
|
+
while (++index2 < length) {
|
|
435
|
+
array[index2] = args[start + index2];
|
|
436
|
+
}
|
|
437
|
+
index2 = -1;
|
|
438
|
+
var otherArgs = Array(start + 1);
|
|
439
|
+
while (++index2 < start) {
|
|
440
|
+
otherArgs[index2] = args[index2];
|
|
441
|
+
}
|
|
442
|
+
otherArgs[start] = transform(array);
|
|
443
|
+
return apply(func, this, otherArgs);
|
|
444
|
+
};
|
|
445
|
+
}
|
|
384
446
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
385
447
|
function isLength(value) {
|
|
386
448
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
@@ -388,9 +450,9 @@ function isLength(value) {
|
|
|
388
450
|
function isArrayLike(value) {
|
|
389
451
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
390
452
|
}
|
|
391
|
-
var objectProto$
|
|
453
|
+
var objectProto$c = Object.prototype;
|
|
392
454
|
function isPrototype(value) {
|
|
393
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
455
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$c;
|
|
394
456
|
return value === proto;
|
|
395
457
|
}
|
|
396
458
|
function baseTimes(n, iteratee) {
|
|
@@ -404,13 +466,13 @@ var argsTag$3 = "[object Arguments]";
|
|
|
404
466
|
function baseIsArguments(value) {
|
|
405
467
|
return isObjectLike(value) && baseGetTag(value) == argsTag$3;
|
|
406
468
|
}
|
|
407
|
-
var objectProto$
|
|
408
|
-
var hasOwnProperty$
|
|
409
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
469
|
+
var objectProto$b = Object.prototype;
|
|
470
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
471
|
+
var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
|
|
410
472
|
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
411
473
|
return arguments;
|
|
412
474
|
}()) ? baseIsArguments : function(value) {
|
|
413
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
475
|
+
return isObjectLike(value) && hasOwnProperty$a.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
414
476
|
};
|
|
415
477
|
const isArguments$1 = isArguments;
|
|
416
478
|
function stubFalse() {
|
|
@@ -423,11 +485,11 @@ var Buffer$1 = moduleExports$2 ? root.Buffer : void 0;
|
|
|
423
485
|
var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
424
486
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
425
487
|
const isBuffer$1 = isBuffer;
|
|
426
|
-
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$4 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$3 = "[object Number]", objectTag$
|
|
488
|
+
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$4 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$3 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
427
489
|
var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
428
490
|
var typedArrayTags = {};
|
|
429
491
|
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
430
|
-
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$4] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$7] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$
|
|
492
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$4] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$7] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$7] = typedArrayTags[stringTag$4] = typedArrayTags[weakMapTag$2] = false;
|
|
431
493
|
function baseIsTypedArray(value) {
|
|
432
494
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
433
495
|
}
|
|
@@ -453,12 +515,12 @@ var nodeUtil = function() {
|
|
|
453
515
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
454
516
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
455
517
|
const isTypedArray$1 = isTypedArray;
|
|
456
|
-
var objectProto$
|
|
457
|
-
var hasOwnProperty$
|
|
518
|
+
var objectProto$a = Object.prototype;
|
|
519
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
458
520
|
function arrayLikeKeys(value, inherited) {
|
|
459
521
|
var isArr = isArray(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
460
522
|
for (var key in value) {
|
|
461
|
-
if ((inherited || hasOwnProperty$
|
|
523
|
+
if ((inherited || hasOwnProperty$9.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
462
524
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
463
525
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
464
526
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -474,15 +536,15 @@ function overArg(func, transform) {
|
|
|
474
536
|
};
|
|
475
537
|
}
|
|
476
538
|
var nativeKeys = overArg(Object.keys, Object);
|
|
477
|
-
var objectProto$
|
|
478
|
-
var hasOwnProperty$
|
|
539
|
+
var objectProto$9 = Object.prototype;
|
|
540
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
479
541
|
function baseKeys(object) {
|
|
480
542
|
if (!isPrototype(object)) {
|
|
481
543
|
return nativeKeys(object);
|
|
482
544
|
}
|
|
483
545
|
var result = [];
|
|
484
546
|
for (var key in Object(object)) {
|
|
485
|
-
if (hasOwnProperty$
|
|
547
|
+
if (hasOwnProperty$8.call(object, key) && key != "constructor") {
|
|
486
548
|
result.push(key);
|
|
487
549
|
}
|
|
488
550
|
}
|
|
@@ -500,15 +562,15 @@ function nativeKeysIn(object) {
|
|
|
500
562
|
}
|
|
501
563
|
return result;
|
|
502
564
|
}
|
|
503
|
-
var objectProto$
|
|
504
|
-
var hasOwnProperty$
|
|
565
|
+
var objectProto$8 = Object.prototype;
|
|
566
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
505
567
|
function baseKeysIn(object) {
|
|
506
568
|
if (!isObject(object)) {
|
|
507
569
|
return nativeKeysIn(object);
|
|
508
570
|
}
|
|
509
571
|
var isProto = isPrototype(object), result = [];
|
|
510
572
|
for (var key in object) {
|
|
511
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
573
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$7.call(object, key)))) {
|
|
512
574
|
result.push(key);
|
|
513
575
|
}
|
|
514
576
|
}
|
|
@@ -539,21 +601,21 @@ function hashDelete(key) {
|
|
|
539
601
|
return result;
|
|
540
602
|
}
|
|
541
603
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
542
|
-
var objectProto$
|
|
543
|
-
var hasOwnProperty$
|
|
604
|
+
var objectProto$7 = Object.prototype;
|
|
605
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
544
606
|
function hashGet(key) {
|
|
545
607
|
var data = this.__data__;
|
|
546
608
|
if (nativeCreate) {
|
|
547
609
|
var result = data[key];
|
|
548
610
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
549
611
|
}
|
|
550
|
-
return hasOwnProperty$
|
|
612
|
+
return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
|
|
551
613
|
}
|
|
552
|
-
var objectProto$
|
|
553
|
-
var hasOwnProperty$
|
|
614
|
+
var objectProto$6 = Object.prototype;
|
|
615
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
554
616
|
function hashHas(key) {
|
|
555
617
|
var data = this.__data__;
|
|
556
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$
|
|
618
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
|
|
557
619
|
}
|
|
558
620
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
559
621
|
function hashSet(key, value) {
|
|
@@ -758,8 +820,69 @@ function arrayPush(array, values) {
|
|
|
758
820
|
}
|
|
759
821
|
return array;
|
|
760
822
|
}
|
|
823
|
+
var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
|
|
824
|
+
function isFlattenable(value) {
|
|
825
|
+
return isArray(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
826
|
+
}
|
|
827
|
+
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
828
|
+
var index2 = -1, length = array.length;
|
|
829
|
+
predicate || (predicate = isFlattenable);
|
|
830
|
+
result || (result = []);
|
|
831
|
+
while (++index2 < length) {
|
|
832
|
+
var value = array[index2];
|
|
833
|
+
if (depth > 0 && predicate(value)) {
|
|
834
|
+
if (depth > 1) {
|
|
835
|
+
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
836
|
+
} else {
|
|
837
|
+
arrayPush(result, value);
|
|
838
|
+
}
|
|
839
|
+
} else if (!isStrict) {
|
|
840
|
+
result[result.length] = value;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
return result;
|
|
844
|
+
}
|
|
845
|
+
function flatten(array) {
|
|
846
|
+
var length = array == null ? 0 : array.length;
|
|
847
|
+
return length ? baseFlatten(array, 1) : [];
|
|
848
|
+
}
|
|
849
|
+
function flatRest(func) {
|
|
850
|
+
return setToString(overRest(func, void 0, flatten), func + "");
|
|
851
|
+
}
|
|
761
852
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
762
|
-
|
|
853
|
+
var objectTag$3 = "[object Object]";
|
|
854
|
+
var funcProto = Function.prototype, objectProto$5 = Object.prototype;
|
|
855
|
+
var funcToString = funcProto.toString;
|
|
856
|
+
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
857
|
+
var objectCtorString = funcToString.call(Object);
|
|
858
|
+
function isPlainObject(value) {
|
|
859
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) {
|
|
860
|
+
return false;
|
|
861
|
+
}
|
|
862
|
+
var proto = getPrototype(value);
|
|
863
|
+
if (proto === null) {
|
|
864
|
+
return true;
|
|
865
|
+
}
|
|
866
|
+
var Ctor = hasOwnProperty$4.call(proto, "constructor") && proto.constructor;
|
|
867
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
868
|
+
}
|
|
869
|
+
function baseSlice(array, start, end) {
|
|
870
|
+
var index2 = -1, length = array.length;
|
|
871
|
+
if (start < 0) {
|
|
872
|
+
start = -start > length ? 0 : length + start;
|
|
873
|
+
}
|
|
874
|
+
end = end > length ? length : end;
|
|
875
|
+
if (end < 0) {
|
|
876
|
+
end += length;
|
|
877
|
+
}
|
|
878
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
879
|
+
start >>>= 0;
|
|
880
|
+
var result = Array(length);
|
|
881
|
+
while (++index2 < length) {
|
|
882
|
+
result[index2] = array[index2 + start];
|
|
883
|
+
}
|
|
884
|
+
return result;
|
|
885
|
+
}
|
|
763
886
|
var rsAstralRange$1 = "\\ud800-\\udfff", rsComboMarksRange$1 = "\\u0300-\\u036f", reComboHalfMarksRange$1 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$1 = "\\u20d0-\\u20ff", rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1, rsVarRange$1 = "\\ufe0e\\ufe0f";
|
|
764
887
|
var rsZWJ$1 = "\\u200d";
|
|
765
888
|
var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
|
|
@@ -859,31 +982,31 @@ var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
|
|
|
859
982
|
return propertyIsEnumerable.call(object, symbol);
|
|
860
983
|
});
|
|
861
984
|
};
|
|
862
|
-
const getSymbols$1 = getSymbols;
|
|
863
985
|
function copySymbols(source, object) {
|
|
864
|
-
return copyObject(source, getSymbols
|
|
986
|
+
return copyObject(source, getSymbols(source), object);
|
|
865
987
|
}
|
|
866
988
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
867
989
|
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
868
990
|
var result = [];
|
|
869
991
|
while (object) {
|
|
870
|
-
arrayPush(result, getSymbols
|
|
871
|
-
object = getPrototype
|
|
992
|
+
arrayPush(result, getSymbols(object));
|
|
993
|
+
object = getPrototype(object);
|
|
872
994
|
}
|
|
873
995
|
return result;
|
|
874
996
|
};
|
|
997
|
+
const getSymbolsIn$1 = getSymbolsIn;
|
|
875
998
|
function copySymbolsIn(source, object) {
|
|
876
|
-
return copyObject(source, getSymbolsIn(source), object);
|
|
999
|
+
return copyObject(source, getSymbolsIn$1(source), object);
|
|
877
1000
|
}
|
|
878
1001
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
879
1002
|
var result = keysFunc(object);
|
|
880
1003
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
881
1004
|
}
|
|
882
1005
|
function getAllKeys(object) {
|
|
883
|
-
return baseGetAllKeys(object, keys, getSymbols
|
|
1006
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
884
1007
|
}
|
|
885
1008
|
function getAllKeysIn(object) {
|
|
886
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1009
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
|
|
887
1010
|
}
|
|
888
1011
|
var DataView = getNative(root, "DataView");
|
|
889
1012
|
var Promise$1 = getNative(root, "Promise");
|
|
@@ -984,7 +1107,7 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
984
1107
|
}
|
|
985
1108
|
}
|
|
986
1109
|
function initCloneObject(object) {
|
|
987
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype
|
|
1110
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
988
1111
|
}
|
|
989
1112
|
var mapTag$4 = "[object Map]";
|
|
990
1113
|
function baseIsMap(value) {
|
|
@@ -998,14 +1121,14 @@ function baseIsSet(value) {
|
|
|
998
1121
|
}
|
|
999
1122
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1000
1123
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1001
|
-
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$
|
|
1124
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$2 = 4;
|
|
1002
1125
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$3 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1003
1126
|
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
1004
1127
|
var cloneableTags = {};
|
|
1005
1128
|
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$2] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$3] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$3] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1006
1129
|
cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1007
1130
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1008
|
-
var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$
|
|
1131
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
|
|
1009
1132
|
if (customizer) {
|
|
1010
1133
|
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1011
1134
|
}
|
|
@@ -1064,9 +1187,9 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1064
1187
|
});
|
|
1065
1188
|
return result;
|
|
1066
1189
|
}
|
|
1067
|
-
var CLONE_SYMBOLS_FLAG = 4;
|
|
1190
|
+
var CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1068
1191
|
function clone(value) {
|
|
1069
|
-
return baseClone(value, CLONE_SYMBOLS_FLAG);
|
|
1192
|
+
return baseClone(value, CLONE_SYMBOLS_FLAG$1);
|
|
1070
1193
|
}
|
|
1071
1194
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1072
1195
|
function setCacheAdd(value) {
|
|
@@ -1533,6 +1656,10 @@ function debounce(func, wait, options) {
|
|
|
1533
1656
|
debounced.flush = flush;
|
|
1534
1657
|
return debounced;
|
|
1535
1658
|
}
|
|
1659
|
+
function last(array) {
|
|
1660
|
+
var length = array == null ? 0 : array.length;
|
|
1661
|
+
return length ? array[length - 1] : void 0;
|
|
1662
|
+
}
|
|
1536
1663
|
function baseFilter(collection, predicate) {
|
|
1537
1664
|
var result = [];
|
|
1538
1665
|
baseEach$1(collection, function(value, index2, collection2) {
|
|
@@ -1550,6 +1677,9 @@ var stringTag = "[object String]";
|
|
|
1550
1677
|
function isString(value) {
|
|
1551
1678
|
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
1552
1679
|
}
|
|
1680
|
+
function parent(object, path) {
|
|
1681
|
+
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
1682
|
+
}
|
|
1553
1683
|
var boolTag = "[object Boolean]";
|
|
1554
1684
|
function isBoolean(value) {
|
|
1555
1685
|
return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;
|
|
@@ -1578,6 +1708,36 @@ function isEmpty(value) {
|
|
|
1578
1708
|
}
|
|
1579
1709
|
return true;
|
|
1580
1710
|
}
|
|
1711
|
+
function baseUnset(object, path) {
|
|
1712
|
+
path = castPath(path, object);
|
|
1713
|
+
object = parent(object, path);
|
|
1714
|
+
return object == null || delete object[toKey(last(path))];
|
|
1715
|
+
}
|
|
1716
|
+
function customOmitClone(value) {
|
|
1717
|
+
return isPlainObject(value) ? void 0 : value;
|
|
1718
|
+
}
|
|
1719
|
+
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
|
|
1720
|
+
var omit = flatRest(function(object, paths) {
|
|
1721
|
+
var result = {};
|
|
1722
|
+
if (object == null) {
|
|
1723
|
+
return result;
|
|
1724
|
+
}
|
|
1725
|
+
var isDeep = false;
|
|
1726
|
+
paths = arrayMap(paths, function(path) {
|
|
1727
|
+
path = castPath(path, object);
|
|
1728
|
+
isDeep || (isDeep = path.length > 1);
|
|
1729
|
+
return path;
|
|
1730
|
+
});
|
|
1731
|
+
copyObject(object, getAllKeysIn(object), result);
|
|
1732
|
+
if (isDeep) {
|
|
1733
|
+
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
|
1734
|
+
}
|
|
1735
|
+
var length = paths.length;
|
|
1736
|
+
while (length--) {
|
|
1737
|
+
baseUnset(result, paths[length]);
|
|
1738
|
+
}
|
|
1739
|
+
return result;
|
|
1740
|
+
});
|
|
1581
1741
|
var asciiSize = baseProperty("length");
|
|
1582
1742
|
var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
|
|
1583
1743
|
var rsAstral = "[" + rsAstralRange + "]", rsCombo = "[" + rsComboRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsZWJ = "\\u200d";
|
|
@@ -1681,7 +1841,7 @@ const getDrillDownCache = (spreadsheet, meta) => {
|
|
|
1681
1841
|
"drillDownDataCache",
|
|
1682
1842
|
[]
|
|
1683
1843
|
);
|
|
1684
|
-
const cache = drillDownDataCache.find((
|
|
1844
|
+
const cache = drillDownDataCache == null ? void 0 : drillDownDataCache.find(({ rowId }) => rowId === meta.id);
|
|
1685
1845
|
return {
|
|
1686
1846
|
drillDownDataCache,
|
|
1687
1847
|
drillDownCurrentCache: cache
|
|
@@ -2261,13 +2421,13 @@ class CustomTooltip extends s2.BaseTooltip {
|
|
|
2261
2421
|
const DEFAULT_PAGE_NUMBER = 1;
|
|
2262
2422
|
const DEFAULT_PAGE_SIZE = 10;
|
|
2263
2423
|
const usePagination = (s2Ref, props) => {
|
|
2264
|
-
var _a, _b
|
|
2265
|
-
const
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
);
|
|
2424
|
+
var _a, _b;
|
|
2425
|
+
const {
|
|
2426
|
+
options: { pagination: paginationCfg },
|
|
2427
|
+
showPagination
|
|
2428
|
+
} = props;
|
|
2429
|
+
const current = vue.ref((_a = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a : DEFAULT_PAGE_NUMBER);
|
|
2430
|
+
const pageSize = vue.ref((_b = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b : DEFAULT_PAGE_SIZE);
|
|
2271
2431
|
const total = vue.ref(0);
|
|
2272
2432
|
const change = (nextCurrent) => {
|
|
2273
2433
|
current.value = nextCurrent;
|
|
@@ -2275,18 +2435,14 @@ const usePagination = (s2Ref, props) => {
|
|
|
2275
2435
|
const showSizeChange = (nextPageSize) => {
|
|
2276
2436
|
pageSize.value = nextPageSize;
|
|
2277
2437
|
};
|
|
2278
|
-
const visible = vue.computed(
|
|
2279
|
-
()
|
|
2280
|
-
|
|
2281
|
-
return props.showPagination && !isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination);
|
|
2282
|
-
}
|
|
2283
|
-
);
|
|
2438
|
+
const visible = vue.computed(() => {
|
|
2439
|
+
return showPagination && !isEmpty(paginationCfg);
|
|
2440
|
+
});
|
|
2284
2441
|
vue.watch([current, pageSize], () => {
|
|
2285
|
-
var _a2;
|
|
2286
2442
|
if (!s2Ref.value) {
|
|
2287
2443
|
return;
|
|
2288
2444
|
}
|
|
2289
|
-
const nextPagination = isEmpty(
|
|
2445
|
+
const nextPagination = isEmpty(paginationCfg) ? null : {
|
|
2290
2446
|
current: current.value,
|
|
2291
2447
|
pageSize: pageSize.value
|
|
2292
2448
|
};
|
|
@@ -2294,15 +2450,12 @@ const usePagination = (s2Ref, props) => {
|
|
|
2294
2450
|
s2Ref.value.render(false);
|
|
2295
2451
|
});
|
|
2296
2452
|
vue.watch(
|
|
2297
|
-
[() =>
|
|
2298
|
-
var _a2;
|
|
2299
|
-
return (_a2 = props.options) == null ? void 0 : _a2.pagination;
|
|
2300
|
-
}, s2Ref],
|
|
2453
|
+
[() => paginationCfg, s2Ref],
|
|
2301
2454
|
() => {
|
|
2302
|
-
var _a2, _b2,
|
|
2303
|
-
current.value = (
|
|
2304
|
-
pageSize.value = (
|
|
2305
|
-
total.value = (
|
|
2455
|
+
var _a2, _b2, _c, _d, _e;
|
|
2456
|
+
current.value = (_a2 = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a2 : DEFAULT_PAGE_NUMBER;
|
|
2457
|
+
pageSize.value = (_b2 = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b2 : DEFAULT_PAGE_SIZE;
|
|
2458
|
+
total.value = (_e = (_d = (_c = s2Ref.value) == null ? void 0 : _c.facet) == null ? void 0 : _d.viewCellHeights.getTotalLength()) != null ? _e : 0;
|
|
2306
2459
|
},
|
|
2307
2460
|
{
|
|
2308
2461
|
immediate: true
|
|
@@ -2313,8 +2466,7 @@ const usePagination = (s2Ref, props) => {
|
|
|
2313
2466
|
return;
|
|
2314
2467
|
}
|
|
2315
2468
|
const totalUpdateCallback = (data) => {
|
|
2316
|
-
|
|
2317
|
-
if (isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination)) {
|
|
2469
|
+
if (isEmpty(paginationCfg)) {
|
|
2318
2470
|
return;
|
|
2319
2471
|
}
|
|
2320
2472
|
total.value = data.total;
|
|
@@ -2326,6 +2478,7 @@ const usePagination = (s2Ref, props) => {
|
|
|
2326
2478
|
});
|
|
2327
2479
|
});
|
|
2328
2480
|
return {
|
|
2481
|
+
customOptions: omit(paginationCfg, ["current", "pageSize", "total"]),
|
|
2329
2482
|
visible,
|
|
2330
2483
|
current,
|
|
2331
2484
|
pageSize,
|
|
@@ -2349,7 +2502,8 @@ const _sfc_main$5 = vue.defineComponent({
|
|
|
2349
2502
|
pageSize: {
|
|
2350
2503
|
type: Number,
|
|
2351
2504
|
default: DEFAULT_PAGE_SIZE
|
|
2352
|
-
}
|
|
2505
|
+
},
|
|
2506
|
+
customOptions: Object
|
|
2353
2507
|
},
|
|
2354
2508
|
emits: ["change", "showSizeChange"],
|
|
2355
2509
|
setup: (props) => {
|
|
@@ -2369,17 +2523,18 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2369
2523
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2370
2524
|
class: vue.normalizeClass(_ctx.PRE_CLASS)
|
|
2371
2525
|
}, [
|
|
2372
|
-
vue.createVNode(_component_AntDPagination, {
|
|
2526
|
+
vue.createVNode(_component_AntDPagination, vue.mergeProps({
|
|
2527
|
+
size: "small",
|
|
2373
2528
|
"default-current": 1,
|
|
2529
|
+
showSizeChanger: true,
|
|
2530
|
+
showQuickJumper: _ctx.showQuickJumper
|
|
2531
|
+
}, _ctx.customOptions, {
|
|
2374
2532
|
current: _ctx.current,
|
|
2375
2533
|
total: _ctx.total,
|
|
2376
2534
|
pageSize: _ctx.pageSize,
|
|
2377
|
-
showSizeChanger: true,
|
|
2378
2535
|
onShowSizeChange: _cache[0] || (_cache[0] = (_, size2) => _ctx.$emit("showSizeChange", size2)),
|
|
2379
|
-
size: "small",
|
|
2380
|
-
showQuickJumper: _ctx.showQuickJumper,
|
|
2381
2536
|
onChange: _cache[1] || (_cache[1] = (current) => _ctx.$emit("change", current))
|
|
2382
|
-
}, null,
|
|
2537
|
+
}), null, 16, ["showQuickJumper", "current", "total", "pageSize"]),
|
|
2383
2538
|
vue.createElementVNode("span", {
|
|
2384
2539
|
class: vue.normalizeClass(`${_ctx.PRE_CLASS}-count`)
|
|
2385
2540
|
}, vue.toDisplayString(_ctx.i18n("共计")) + " " + vue.toDisplayString(_ctx.total || " - ") + " " + vue.toDisplayString(_ctx.i18n("条")), 3)
|
|
@@ -3030,9 +3185,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3030
3185
|
current: _ctx.pagination.current.value,
|
|
3031
3186
|
pageSize: _ctx.pagination.pageSize.value,
|
|
3032
3187
|
total: _ctx.pagination.total.value,
|
|
3188
|
+
customOptions: _ctx.pagination.customOptions,
|
|
3033
3189
|
onChange: _ctx.handlePageChange,
|
|
3034
3190
|
onShowSizeChange: _ctx.handlePageSizeChange
|
|
3035
|
-
}, null, 8, ["current", "pageSize", "total", "onChange", "onShowSizeChange"])) : vue.createCommentVNode("", true)
|
|
3191
|
+
}, null, 8, ["current", "pageSize", "total", "customOptions", "onChange", "onShowSizeChange"])) : vue.createCommentVNode("", true)
|
|
3036
3192
|
], 2)
|
|
3037
3193
|
]),
|
|
3038
3194
|
_: 1
|
|
@@ -3345,7 +3501,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3345
3501
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
|
|
3346
3502
|
}
|
|
3347
3503
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3348
|
-
const version = "@antv/s2-vue-v2.0.0-next.
|
|
3504
|
+
const version = "@antv/s2-vue-v2.0.0-next.13";
|
|
3349
3505
|
exports.BaseSheet = BaseSheet;
|
|
3350
3506
|
exports.CustomTooltip = CustomTooltip;
|
|
3351
3507
|
exports.PivotSheet = PivotSheet;
|