@antv/s2-vue 1.6.1 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { customMerge, DEFAULT_OPTIONS, S2Event, extendLocale, TOOLTIP_PREFIX_CLS, i18n, getIcon, getTooltipDefaultOptions, BaseTooltip, S2_PREFIX_CLS, getBaseCellData, TableSheet as TableSheet$1, PivotSheet as PivotSheet$1 } from "@antv/s2";
2
- import { shallowRef, defineComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, computed, createTextVNode, resolveComponent, createBlock, withCtx, createVNode, renderSlot, render as render$3, ref, watch, onMounted, reactive, isProxy, onBeforeUnmount, toRaw, toRefs, mergeProps, resolveDynamicComponent } from "vue";
2
+ import { shallowRef, defineComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, computed, createTextVNode, resolveComponent, createBlock, withCtx, createVNode, renderSlot, render as render$3, ref, watch, mergeProps, onMounted, reactive, isProxy, onBeforeUnmount, toRaw, toRefs, resolveDynamicComponent } from "vue";
3
3
  import { Menu, Dropdown, Pagination, Spin, Button, Input, Empty, MenuItem } from "ant-design-vue";
4
4
  const EN_US = {
5
5
  \u9009\u62E9\u5206\u6790\u4FE1\u606F: "Select Analysis Information",
@@ -103,12 +103,12 @@ var root = freeGlobal$1 || freeSelf || Function("return this")();
103
103
  var root$1 = root;
104
104
  var Symbol$1 = root$1.Symbol;
105
105
  var Symbol$2 = Symbol$1;
106
- var objectProto$f = Object.prototype;
107
- var hasOwnProperty$c = objectProto$f.hasOwnProperty;
108
- var nativeObjectToString$1 = objectProto$f.toString;
106
+ var objectProto$g = Object.prototype;
107
+ var hasOwnProperty$d = objectProto$g.hasOwnProperty;
108
+ var nativeObjectToString$1 = objectProto$g.toString;
109
109
  var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
110
110
  function getRawTag(value) {
111
- var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
111
+ var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
112
112
  try {
113
113
  value[symToStringTag$1] = void 0;
114
114
  var unmasked = true;
@@ -124,8 +124,8 @@ function getRawTag(value) {
124
124
  }
125
125
  return result;
126
126
  }
127
- var objectProto$e = Object.prototype;
128
- var nativeObjectToString = objectProto$e.toString;
127
+ var objectProto$f = Object.prototype;
128
+ var nativeObjectToString = objectProto$f.toString;
129
129
  function objectToString(value) {
130
130
  return nativeObjectToString.call(value);
131
131
  }
@@ -226,12 +226,12 @@ var maskSrcKey = function() {
226
226
  function isMasked(func) {
227
227
  return !!maskSrcKey && maskSrcKey in func;
228
228
  }
229
- var funcProto$1 = Function.prototype;
230
- var funcToString$1 = funcProto$1.toString;
229
+ var funcProto$2 = Function.prototype;
230
+ var funcToString$2 = funcProto$2.toString;
231
231
  function toSource(func) {
232
232
  if (func != null) {
233
233
  try {
234
- return funcToString$1.call(func);
234
+ return funcToString$2.call(func);
235
235
  } catch (e) {
236
236
  }
237
237
  try {
@@ -243,11 +243,11 @@ function toSource(func) {
243
243
  }
244
244
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
245
245
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
246
- var funcProto = Function.prototype, objectProto$d = Object.prototype;
247
- var funcToString = funcProto.toString;
248
- var hasOwnProperty$b = objectProto$d.hasOwnProperty;
246
+ var funcProto$1 = Function.prototype, objectProto$e = Object.prototype;
247
+ var funcToString$1 = funcProto$1.toString;
248
+ var hasOwnProperty$c = objectProto$e.hasOwnProperty;
249
249
  var reIsNative = RegExp(
250
- "^" + funcToString.call(hasOwnProperty$b).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
250
+ "^" + funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
251
251
  );
252
252
  function baseIsNative(value) {
253
253
  if (!isObject(value) || isMasked(value)) {
@@ -283,6 +283,19 @@ var baseCreate = function() {
283
283
  };
284
284
  }();
285
285
  var baseCreate$1 = baseCreate;
286
+ function apply(func, thisArg, args) {
287
+ switch (args.length) {
288
+ case 0:
289
+ return func.call(thisArg);
290
+ case 1:
291
+ return func.call(thisArg, args[0]);
292
+ case 2:
293
+ return func.call(thisArg, args[0], args[1]);
294
+ case 3:
295
+ return func.call(thisArg, args[0], args[1], args[2]);
296
+ }
297
+ return func.apply(thisArg, args);
298
+ }
286
299
  function copyArray(source, array) {
287
300
  var index2 = -1, length = source.length;
288
301
  array || (array = Array(length));
@@ -291,6 +304,28 @@ function copyArray(source, array) {
291
304
  }
292
305
  return array;
293
306
  }
307
+ var HOT_COUNT = 800, HOT_SPAN = 16;
308
+ var nativeNow = Date.now;
309
+ function shortOut(func) {
310
+ var count = 0, lastCalled = 0;
311
+ return function() {
312
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
313
+ lastCalled = stamp;
314
+ if (remaining > 0) {
315
+ if (++count >= HOT_COUNT) {
316
+ return arguments[0];
317
+ }
318
+ } else {
319
+ count = 0;
320
+ }
321
+ return func.apply(void 0, arguments);
322
+ };
323
+ }
324
+ function constant(value) {
325
+ return function() {
326
+ return value;
327
+ };
328
+ }
294
329
  var defineProperty = function() {
295
330
  try {
296
331
  var func = getNative(Object, "defineProperty");
@@ -300,6 +335,17 @@ var defineProperty = function() {
300
335
  }
301
336
  }();
302
337
  var defineProperty$1 = defineProperty;
338
+ var baseSetToString = !defineProperty$1 ? identity : function(func, string) {
339
+ return defineProperty$1(func, "toString", {
340
+ "configurable": true,
341
+ "enumerable": false,
342
+ "value": constant(string),
343
+ "writable": true
344
+ });
345
+ };
346
+ var baseSetToString$1 = baseSetToString;
347
+ var setToString = shortOut(baseSetToString$1);
348
+ var setToString$1 = setToString;
303
349
  function arrayEach(array, iteratee) {
304
350
  var index2 = -1, length = array == null ? 0 : array.length;
305
351
  while (++index2 < length) {
@@ -331,11 +377,11 @@ function baseAssignValue(object, key, value) {
331
377
  function eq(value, other) {
332
378
  return value === other || value !== value && other !== other;
333
379
  }
334
- var objectProto$c = Object.prototype;
335
- var hasOwnProperty$a = objectProto$c.hasOwnProperty;
380
+ var objectProto$d = Object.prototype;
381
+ var hasOwnProperty$b = objectProto$d.hasOwnProperty;
336
382
  function assignValue(object, key, value) {
337
383
  var objValue = object[key];
338
- if (!(hasOwnProperty$a.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
384
+ if (!(hasOwnProperty$b.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
339
385
  baseAssignValue(object, key, value);
340
386
  }
341
387
  }
@@ -357,6 +403,23 @@ function copyObject(source, props, object, customizer) {
357
403
  }
358
404
  return object;
359
405
  }
406
+ var nativeMax$1 = Math.max;
407
+ function overRest(func, start, transform) {
408
+ start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
409
+ return function() {
410
+ var args = arguments, index2 = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
411
+ while (++index2 < length) {
412
+ array[index2] = args[start + index2];
413
+ }
414
+ index2 = -1;
415
+ var otherArgs = Array(start + 1);
416
+ while (++index2 < start) {
417
+ otherArgs[index2] = args[index2];
418
+ }
419
+ otherArgs[start] = transform(array);
420
+ return apply(func, this, otherArgs);
421
+ };
422
+ }
360
423
  var MAX_SAFE_INTEGER = 9007199254740991;
361
424
  function isLength(value) {
362
425
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
@@ -364,9 +427,9 @@ function isLength(value) {
364
427
  function isArrayLike(value) {
365
428
  return value != null && isLength(value.length) && !isFunction(value);
366
429
  }
367
- var objectProto$b = Object.prototype;
430
+ var objectProto$c = Object.prototype;
368
431
  function isPrototype(value) {
369
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$b;
432
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$c;
370
433
  return value === proto;
371
434
  }
372
435
  function baseTimes(n, iteratee) {
@@ -380,13 +443,13 @@ var argsTag$3 = "[object Arguments]";
380
443
  function baseIsArguments(value) {
381
444
  return isObjectLike(value) && baseGetTag(value) == argsTag$3;
382
445
  }
383
- var objectProto$a = Object.prototype;
384
- var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
385
- var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
446
+ var objectProto$b = Object.prototype;
447
+ var hasOwnProperty$a = objectProto$b.hasOwnProperty;
448
+ var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
386
449
  var isArguments = baseIsArguments(function() {
387
450
  return arguments;
388
451
  }()) ? baseIsArguments : function(value) {
389
- return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
452
+ return isObjectLike(value) && hasOwnProperty$a.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
390
453
  };
391
454
  var isArguments$1 = isArguments;
392
455
  function stubFalse() {
@@ -399,11 +462,11 @@ var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0;
399
462
  var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
400
463
  var isBuffer = nativeIsBuffer || stubFalse;
401
464
  var isBuffer$1 = isBuffer;
402
- 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$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]";
465
+ 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]";
403
466
  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]";
404
467
  var typedArrayTags = {};
405
468
  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;
406
- 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$3] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$7] = typedArrayTags[stringTag$4] = typedArrayTags[weakMapTag$2] = false;
469
+ 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;
407
470
  function baseIsTypedArray(value) {
408
471
  return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
409
472
  }
@@ -430,12 +493,12 @@ var nodeUtil$1 = nodeUtil;
430
493
  var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
431
494
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
432
495
  var isTypedArray$1 = isTypedArray;
433
- var objectProto$9 = Object.prototype;
434
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
496
+ var objectProto$a = Object.prototype;
497
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
435
498
  function arrayLikeKeys(value, inherited) {
436
499
  var isArr = isArray$1(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;
437
500
  for (var key in value) {
438
- if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
501
+ if ((inherited || hasOwnProperty$9.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
439
502
  result.push(key);
440
503
  }
441
504
  }
@@ -448,15 +511,15 @@ function overArg(func, transform) {
448
511
  }
449
512
  var nativeKeys = overArg(Object.keys, Object);
450
513
  var nativeKeys$1 = nativeKeys;
451
- var objectProto$8 = Object.prototype;
452
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
514
+ var objectProto$9 = Object.prototype;
515
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
453
516
  function baseKeys(object) {
454
517
  if (!isPrototype(object)) {
455
518
  return nativeKeys$1(object);
456
519
  }
457
520
  var result = [];
458
521
  for (var key in Object(object)) {
459
- if (hasOwnProperty$7.call(object, key) && key != "constructor") {
522
+ if (hasOwnProperty$8.call(object, key) && key != "constructor") {
460
523
  result.push(key);
461
524
  }
462
525
  }
@@ -474,15 +537,15 @@ function nativeKeysIn(object) {
474
537
  }
475
538
  return result;
476
539
  }
477
- var objectProto$7 = Object.prototype;
478
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
540
+ var objectProto$8 = Object.prototype;
541
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
479
542
  function baseKeysIn(object) {
480
543
  if (!isObject(object)) {
481
544
  return nativeKeysIn(object);
482
545
  }
483
546
  var isProto = isPrototype(object), result = [];
484
547
  for (var key in object) {
485
- if (!(key == "constructor" && (isProto || !hasOwnProperty$6.call(object, key)))) {
548
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$7.call(object, key)))) {
486
549
  result.push(key);
487
550
  }
488
551
  }
@@ -514,21 +577,21 @@ function hashDelete(key) {
514
577
  return result;
515
578
  }
516
579
  var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
517
- var objectProto$6 = Object.prototype;
518
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
580
+ var objectProto$7 = Object.prototype;
581
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
519
582
  function hashGet(key) {
520
583
  var data = this.__data__;
521
584
  if (nativeCreate$1) {
522
585
  var result = data[key];
523
586
  return result === HASH_UNDEFINED$2 ? void 0 : result;
524
587
  }
525
- return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
588
+ return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
526
589
  }
527
- var objectProto$5 = Object.prototype;
528
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
590
+ var objectProto$6 = Object.prototype;
591
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
529
592
  function hashHas(key) {
530
593
  var data = this.__data__;
531
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
594
+ return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
532
595
  }
533
596
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
534
597
  function hashSet(key, value) {
@@ -735,8 +798,70 @@ function arrayPush(array, values) {
735
798
  }
736
799
  return array;
737
800
  }
801
+ var spreadableSymbol = Symbol$2 ? Symbol$2.isConcatSpreadable : void 0;
802
+ function isFlattenable(value) {
803
+ return isArray$1(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
804
+ }
805
+ function baseFlatten(array, depth, predicate, isStrict, result) {
806
+ var index2 = -1, length = array.length;
807
+ predicate || (predicate = isFlattenable);
808
+ result || (result = []);
809
+ while (++index2 < length) {
810
+ var value = array[index2];
811
+ if (depth > 0 && predicate(value)) {
812
+ if (depth > 1) {
813
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
814
+ } else {
815
+ arrayPush(result, value);
816
+ }
817
+ } else if (!isStrict) {
818
+ result[result.length] = value;
819
+ }
820
+ }
821
+ return result;
822
+ }
823
+ function flatten(array) {
824
+ var length = array == null ? 0 : array.length;
825
+ return length ? baseFlatten(array, 1) : [];
826
+ }
827
+ function flatRest(func) {
828
+ return setToString$1(overRest(func, void 0, flatten), func + "");
829
+ }
738
830
  var getPrototype = overArg(Object.getPrototypeOf, Object);
739
831
  var getPrototype$1 = getPrototype;
832
+ var objectTag$3 = "[object Object]";
833
+ var funcProto = Function.prototype, objectProto$5 = Object.prototype;
834
+ var funcToString = funcProto.toString;
835
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
836
+ var objectCtorString = funcToString.call(Object);
837
+ function isPlainObject(value) {
838
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) {
839
+ return false;
840
+ }
841
+ var proto = getPrototype$1(value);
842
+ if (proto === null) {
843
+ return true;
844
+ }
845
+ var Ctor = hasOwnProperty$4.call(proto, "constructor") && proto.constructor;
846
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
847
+ }
848
+ function baseSlice(array, start, end) {
849
+ var index2 = -1, length = array.length;
850
+ if (start < 0) {
851
+ start = -start > length ? 0 : length + start;
852
+ }
853
+ end = end > length ? length : end;
854
+ if (end < 0) {
855
+ end += length;
856
+ }
857
+ length = start > end ? 0 : end - start >>> 0;
858
+ start >>>= 0;
859
+ var result = Array(length);
860
+ while (++index2 < length) {
861
+ result[index2] = array[index2 + start];
862
+ }
863
+ return result;
864
+ }
740
865
  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";
741
866
  var rsZWJ$1 = "\\u200d";
742
867
  var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
@@ -981,14 +1106,14 @@ function baseIsSet(value) {
981
1106
  var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
982
1107
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
983
1108
  var isSet$1 = isSet;
984
- var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
1109
+ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$2 = 4;
985
1110
  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]";
986
1111
  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]";
987
1112
  var cloneableTags = {};
988
1113
  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;
989
1114
  cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
990
1115
  function baseClone(value, bitmask, customizer, key, object, stack) {
991
- var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
1116
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
992
1117
  if (customizer) {
993
1118
  result = object ? customizer(value, key, object, stack) : customizer(value);
994
1119
  }
@@ -1047,9 +1172,9 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
1047
1172
  });
1048
1173
  return result;
1049
1174
  }
1050
- var CLONE_SYMBOLS_FLAG = 4;
1175
+ var CLONE_SYMBOLS_FLAG$1 = 4;
1051
1176
  function clone(value) {
1052
- return baseClone(value, CLONE_SYMBOLS_FLAG);
1177
+ return baseClone(value, CLONE_SYMBOLS_FLAG$1);
1053
1178
  }
1054
1179
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
1055
1180
  function setCacheAdd(value) {
@@ -1517,6 +1642,10 @@ function debounce(func, wait, options) {
1517
1642
  debounced.flush = flush;
1518
1643
  return debounced;
1519
1644
  }
1645
+ function last(array) {
1646
+ var length = array == null ? 0 : array.length;
1647
+ return length ? array[length - 1] : void 0;
1648
+ }
1520
1649
  function baseFilter(collection, predicate) {
1521
1650
  var result = [];
1522
1651
  baseEach$1(collection, function(value, index2, collection2) {
@@ -1534,6 +1663,9 @@ var stringTag = "[object String]";
1534
1663
  function isString(value) {
1535
1664
  return typeof value == "string" || !isArray$1(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1536
1665
  }
1666
+ function parent(object, path) {
1667
+ return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
1668
+ }
1537
1669
  var boolTag = "[object Boolean]";
1538
1670
  function isBoolean(value) {
1539
1671
  return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;
@@ -1562,6 +1694,37 @@ function isEmpty(value) {
1562
1694
  }
1563
1695
  return true;
1564
1696
  }
1697
+ function baseUnset(object, path) {
1698
+ path = castPath(path, object);
1699
+ object = parent(object, path);
1700
+ return object == null || delete object[toKey(last(path))];
1701
+ }
1702
+ function customOmitClone(value) {
1703
+ return isPlainObject(value) ? void 0 : value;
1704
+ }
1705
+ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
1706
+ var omit = flatRest(function(object, paths) {
1707
+ var result = {};
1708
+ if (object == null) {
1709
+ return result;
1710
+ }
1711
+ var isDeep = false;
1712
+ paths = arrayMap(paths, function(path) {
1713
+ path = castPath(path, object);
1714
+ isDeep || (isDeep = path.length > 1);
1715
+ return path;
1716
+ });
1717
+ copyObject(object, getAllKeysIn(object), result);
1718
+ if (isDeep) {
1719
+ result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
1720
+ }
1721
+ var length = paths.length;
1722
+ while (length--) {
1723
+ baseUnset(result, paths[length]);
1724
+ }
1725
+ return result;
1726
+ });
1727
+ var omit$1 = omit;
1565
1728
  var asciiSize = baseProperty("length");
1566
1729
  var asciiSize$1 = asciiSize;
1567
1730
  var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
@@ -1666,7 +1829,7 @@ const getDrillDownCache = (spreadsheet, meta) => {
1666
1829
  "drillDownDataCache",
1667
1830
  []
1668
1831
  );
1669
- const cache = drillDownDataCache.find((dc) => dc.rowId === meta.id);
1832
+ const cache = drillDownDataCache == null ? void 0 : drillDownDataCache.find((dc) => dc.rowId === meta.id);
1670
1833
  return {
1671
1834
  drillDownDataCache,
1672
1835
  drillDownCurrentCache: cache
@@ -2245,13 +2408,13 @@ class CustomTooltip extends BaseTooltip {
2245
2408
  const DEFAULT_PAGE_NUMBER = 1;
2246
2409
  const DEFAULT_PAGE_SIZE = 10;
2247
2410
  const usePagination = (s2Ref, props) => {
2248
- var _a, _b, _c, _d, _e, _f;
2249
- const current = ref(
2250
- (_c = (_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) != null ? _c : DEFAULT_PAGE_NUMBER
2251
- );
2252
- const pageSize = ref(
2253
- (_f = (_e = (_d = props.options) == null ? void 0 : _d.pagination) == null ? void 0 : _e.pageSize) != null ? _f : DEFAULT_PAGE_SIZE
2254
- );
2411
+ var _a, _b;
2412
+ const {
2413
+ options: { pagination: paginationCfg },
2414
+ showPagination
2415
+ } = props;
2416
+ const current = ref((_a = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a : DEFAULT_PAGE_NUMBER);
2417
+ const pageSize = ref((_b = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b : DEFAULT_PAGE_SIZE);
2255
2418
  const total = ref(0);
2256
2419
  const change = (nextCurrent) => {
2257
2420
  current.value = nextCurrent;
@@ -2260,15 +2423,13 @@ const usePagination = (s2Ref, props) => {
2260
2423
  pageSize.value = nextPageSize;
2261
2424
  };
2262
2425
  const visible = computed(() => {
2263
- var _a2;
2264
- return props.showPagination && !isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination);
2426
+ return showPagination && !isEmpty(paginationCfg);
2265
2427
  });
2266
2428
  watch([current, pageSize], () => {
2267
- var _a2;
2268
2429
  if (!s2Ref.value) {
2269
2430
  return;
2270
2431
  }
2271
- const nextPagination = isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination) ? null : {
2432
+ const nextPagination = isEmpty(paginationCfg) ? null : {
2272
2433
  current: current.value,
2273
2434
  pageSize: pageSize.value
2274
2435
  };
@@ -2276,15 +2437,12 @@ const usePagination = (s2Ref, props) => {
2276
2437
  s2Ref.value.render(false);
2277
2438
  });
2278
2439
  watch(
2279
- [() => {
2280
- var _a2;
2281
- return (_a2 = props.options) == null ? void 0 : _a2.pagination;
2282
- }, s2Ref],
2440
+ [() => paginationCfg, s2Ref],
2283
2441
  () => {
2284
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
2285
- current.value = (_c2 = (_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) != null ? _c2 : DEFAULT_PAGE_NUMBER;
2286
- pageSize.value = (_f2 = (_e2 = (_d2 = props.options) == null ? void 0 : _d2.pagination) == null ? void 0 : _e2.pageSize) != null ? _f2 : DEFAULT_PAGE_SIZE;
2287
- total.value = (_i = (_h = (_g = s2Ref.value) == null ? void 0 : _g.facet) == null ? void 0 : _h.viewCellHeights.getTotalLength()) != null ? _i : 0;
2442
+ var _a2, _b2, _c, _d, _e;
2443
+ current.value = (_a2 = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a2 : DEFAULT_PAGE_NUMBER;
2444
+ pageSize.value = (_b2 = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b2 : DEFAULT_PAGE_SIZE;
2445
+ total.value = (_e = (_d = (_c = s2Ref.value) == null ? void 0 : _c.facet) == null ? void 0 : _d.viewCellHeights.getTotalLength()) != null ? _e : 0;
2288
2446
  },
2289
2447
  {
2290
2448
  immediate: true
@@ -2295,8 +2453,7 @@ const usePagination = (s2Ref, props) => {
2295
2453
  return;
2296
2454
  }
2297
2455
  const totalUpdateCallback = (data) => {
2298
- var _a2;
2299
- if (isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination)) {
2456
+ if (isEmpty(paginationCfg)) {
2300
2457
  return;
2301
2458
  }
2302
2459
  total.value = data.total;
@@ -2308,6 +2465,7 @@ const usePagination = (s2Ref, props) => {
2308
2465
  });
2309
2466
  });
2310
2467
  return {
2468
+ customOptions: omit$1(paginationCfg, ["current", "pageSize", "total"]),
2311
2469
  visible,
2312
2470
  current,
2313
2471
  pageSize,
@@ -2331,7 +2489,8 @@ const _sfc_main$5 = defineComponent({
2331
2489
  pageSize: {
2332
2490
  type: Number,
2333
2491
  default: DEFAULT_PAGE_SIZE
2334
- }
2492
+ },
2493
+ customOptions: Object
2335
2494
  },
2336
2495
  emits: ["change", "showSizeChange"],
2337
2496
  setup: (props) => {
@@ -2353,17 +2512,18 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
2353
2512
  return openBlock(), createElementBlock("div", {
2354
2513
  class: normalizeClass(_ctx.PRE_CLASS)
2355
2514
  }, [
2356
- createVNode(_component_AntDPagination, {
2515
+ createVNode(_component_AntDPagination, mergeProps({
2516
+ size: "small",
2357
2517
  "default-current": 1,
2518
+ showSizeChanger: true,
2519
+ showQuickJumper: _ctx.showQuickJumper
2520
+ }, _ctx.customOptions, {
2358
2521
  current: _ctx.current,
2359
2522
  total: _ctx.total,
2360
2523
  pageSize: _ctx.pageSize,
2361
- showSizeChanger: true,
2362
2524
  onShowSizeChange: _cache[0] || (_cache[0] = (_, size2) => _ctx.$emit("showSizeChange", size2)),
2363
- size: "small",
2364
- showQuickJumper: _ctx.showQuickJumper,
2365
2525
  onChange: _cache[1] || (_cache[1] = (current) => _ctx.$emit("change", current))
2366
- }, null, 8, ["current", "total", "pageSize", "showQuickJumper"]),
2526
+ }), null, 16, ["showQuickJumper", "current", "total", "pageSize"]),
2367
2527
  createElementVNode("span", {
2368
2528
  class: normalizeClass(`${_ctx.PRE_CLASS}-count`)
2369
2529
  }, toDisplayString(_ctx.i18n("\u5171\u8BA1")) + " " + toDisplayString(_ctx.total || " - ") + " " + toDisplayString(_ctx.i18n("\u6761")), 3)
@@ -3029,9 +3189,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3029
3189
  current: _ctx.pagination.current.value,
3030
3190
  pageSize: _ctx.pagination.pageSize.value,
3031
3191
  total: _ctx.pagination.total.value,
3192
+ customOptions: _ctx.pagination.customOptions,
3032
3193
  onChange: _ctx.handlePageChange,
3033
3194
  onShowSizeChange: _ctx.handlePageSizeChange
3034
- }, null, 8, ["current", "pageSize", "total", "onChange", "onShowSizeChange"])) : createCommentVNode("", true)
3195
+ }, null, 8, ["current", "pageSize", "total", "customOptions", "onChange", "onShowSizeChange"])) : createCommentVNode("", true)
3035
3196
  ], 2)
3036
3197
  ]),
3037
3198
  _: 1
@@ -3348,6 +3509,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3348
3509
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
3349
3510
  }
3350
3511
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3351
- const version = "@antv/s2-vue-v1.6.1";
3512
+ const version = "@antv/s2-vue-v1.7.1";
3352
3513
  export { BaseSheet, CustomTooltip, PivotSheet, index as SheetComponent, TableSheet, useExpose, version };
3353
3514
  //# sourceMappingURL=index.js.map