@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/esm/index.js CHANGED
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { S2_PREFIX_CLS, customMerge, DEFAULT_OPTIONS, floor, S2Event, extendLocale, TOOLTIP_PREFIX_CLS, i18n, getIcon, getTooltipDefaultOptions, BaseTooltip, getBaseCellData, TableSheet as TableSheet$1, PivotSheet as PivotSheet$1 } from "@antv/s2";
21
- 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";
21
+ 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";
22
22
  import { Menu, Dropdown, Pagination, Spin, Button, Input, Empty, MenuItem } from "ant-design-vue";
23
23
  const EN_US = {
24
24
  选择分析信息: "Select Analysis Information",
@@ -130,12 +130,12 @@ var freeGlobal = typeof global == "object" && global && global.Object === Object
130
130
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
131
131
  var root = freeGlobal || freeSelf || Function("return this")();
132
132
  var Symbol$1 = root.Symbol;
133
- var objectProto$f = Object.prototype;
134
- var hasOwnProperty$c = objectProto$f.hasOwnProperty;
135
- var nativeObjectToString$1 = objectProto$f.toString;
133
+ var objectProto$g = Object.prototype;
134
+ var hasOwnProperty$d = objectProto$g.hasOwnProperty;
135
+ var nativeObjectToString$1 = objectProto$g.toString;
136
136
  var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
137
137
  function getRawTag(value) {
138
- var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
138
+ var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
139
139
  try {
140
140
  value[symToStringTag$1] = void 0;
141
141
  var unmasked = true;
@@ -151,8 +151,8 @@ function getRawTag(value) {
151
151
  }
152
152
  return result;
153
153
  }
154
- var objectProto$e = Object.prototype;
155
- var nativeObjectToString = objectProto$e.toString;
154
+ var objectProto$f = Object.prototype;
155
+ var nativeObjectToString = objectProto$f.toString;
156
156
  function objectToString(value) {
157
157
  return nativeObjectToString.call(value);
158
158
  }
@@ -251,12 +251,12 @@ var maskSrcKey = function() {
251
251
  function isMasked(func) {
252
252
  return !!maskSrcKey && maskSrcKey in func;
253
253
  }
254
- var funcProto$1 = Function.prototype;
255
- var funcToString$1 = funcProto$1.toString;
254
+ var funcProto$2 = Function.prototype;
255
+ var funcToString$2 = funcProto$2.toString;
256
256
  function toSource(func) {
257
257
  if (func != null) {
258
258
  try {
259
- return funcToString$1.call(func);
259
+ return funcToString$2.call(func);
260
260
  } catch (e) {
261
261
  }
262
262
  try {
@@ -268,11 +268,11 @@ function toSource(func) {
268
268
  }
269
269
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
270
270
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
271
- var funcProto = Function.prototype, objectProto$d = Object.prototype;
272
- var funcToString = funcProto.toString;
273
- var hasOwnProperty$b = objectProto$d.hasOwnProperty;
271
+ var funcProto$1 = Function.prototype, objectProto$e = Object.prototype;
272
+ var funcToString$1 = funcProto$1.toString;
273
+ var hasOwnProperty$c = objectProto$e.hasOwnProperty;
274
274
  var reIsNative = RegExp(
275
- "^" + funcToString.call(hasOwnProperty$b).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
275
+ "^" + funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
276
276
  );
277
277
  function baseIsNative(value) {
278
278
  if (!isObject(value) || isMasked(value)) {
@@ -306,6 +306,19 @@ var baseCreate = /* @__PURE__ */ function() {
306
306
  return result;
307
307
  };
308
308
  }();
309
+ function apply(func, thisArg, args) {
310
+ switch (args.length) {
311
+ case 0:
312
+ return func.call(thisArg);
313
+ case 1:
314
+ return func.call(thisArg, args[0]);
315
+ case 2:
316
+ return func.call(thisArg, args[0], args[1]);
317
+ case 3:
318
+ return func.call(thisArg, args[0], args[1], args[2]);
319
+ }
320
+ return func.apply(thisArg, args);
321
+ }
309
322
  function copyArray(source, array) {
310
323
  var index2 = -1, length = source.length;
311
324
  array || (array = Array(length));
@@ -314,6 +327,28 @@ function copyArray(source, array) {
314
327
  }
315
328
  return array;
316
329
  }
330
+ var HOT_COUNT = 800, HOT_SPAN = 16;
331
+ var nativeNow = Date.now;
332
+ function shortOut(func) {
333
+ var count = 0, lastCalled = 0;
334
+ return function() {
335
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
336
+ lastCalled = stamp;
337
+ if (remaining > 0) {
338
+ if (++count >= HOT_COUNT) {
339
+ return arguments[0];
340
+ }
341
+ } else {
342
+ count = 0;
343
+ }
344
+ return func.apply(void 0, arguments);
345
+ };
346
+ }
347
+ function constant(value) {
348
+ return function() {
349
+ return value;
350
+ };
351
+ }
317
352
  var defineProperty = function() {
318
353
  try {
319
354
  var func = getNative(Object, "defineProperty");
@@ -322,6 +357,16 @@ var defineProperty = function() {
322
357
  } catch (e) {
323
358
  }
324
359
  }();
360
+ var baseSetToString = !defineProperty ? identity : function(func, string) {
361
+ return defineProperty(func, "toString", {
362
+ "configurable": true,
363
+ "enumerable": false,
364
+ "value": constant(string),
365
+ "writable": true
366
+ });
367
+ };
368
+ const baseSetToString$1 = baseSetToString;
369
+ var setToString = shortOut(baseSetToString$1);
325
370
  function arrayEach(array, iteratee) {
326
371
  var index2 = -1, length = array == null ? 0 : array.length;
327
372
  while (++index2 < length) {
@@ -353,11 +398,11 @@ function baseAssignValue(object, key, value) {
353
398
  function eq(value, other) {
354
399
  return value === other || value !== value && other !== other;
355
400
  }
356
- var objectProto$c = Object.prototype;
357
- var hasOwnProperty$a = objectProto$c.hasOwnProperty;
401
+ var objectProto$d = Object.prototype;
402
+ var hasOwnProperty$b = objectProto$d.hasOwnProperty;
358
403
  function assignValue(object, key, value) {
359
404
  var objValue = object[key];
360
- if (!(hasOwnProperty$a.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
405
+ if (!(hasOwnProperty$b.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
361
406
  baseAssignValue(object, key, value);
362
407
  }
363
408
  }
@@ -379,6 +424,23 @@ function copyObject(source, props, object, customizer) {
379
424
  }
380
425
  return object;
381
426
  }
427
+ var nativeMax$1 = Math.max;
428
+ function overRest(func, start, transform) {
429
+ start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
430
+ return function() {
431
+ var args = arguments, index2 = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
432
+ while (++index2 < length) {
433
+ array[index2] = args[start + index2];
434
+ }
435
+ index2 = -1;
436
+ var otherArgs = Array(start + 1);
437
+ while (++index2 < start) {
438
+ otherArgs[index2] = args[index2];
439
+ }
440
+ otherArgs[start] = transform(array);
441
+ return apply(func, this, otherArgs);
442
+ };
443
+ }
382
444
  var MAX_SAFE_INTEGER = 9007199254740991;
383
445
  function isLength(value) {
384
446
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
@@ -386,9 +448,9 @@ function isLength(value) {
386
448
  function isArrayLike(value) {
387
449
  return value != null && isLength(value.length) && !isFunction(value);
388
450
  }
389
- var objectProto$b = Object.prototype;
451
+ var objectProto$c = Object.prototype;
390
452
  function isPrototype(value) {
391
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$b;
453
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$c;
392
454
  return value === proto;
393
455
  }
394
456
  function baseTimes(n, iteratee) {
@@ -402,13 +464,13 @@ var argsTag$3 = "[object Arguments]";
402
464
  function baseIsArguments(value) {
403
465
  return isObjectLike(value) && baseGetTag(value) == argsTag$3;
404
466
  }
405
- var objectProto$a = Object.prototype;
406
- var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
407
- var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
467
+ var objectProto$b = Object.prototype;
468
+ var hasOwnProperty$a = objectProto$b.hasOwnProperty;
469
+ var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
408
470
  var isArguments = baseIsArguments(/* @__PURE__ */ function() {
409
471
  return arguments;
410
472
  }()) ? baseIsArguments : function(value) {
411
- return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
473
+ return isObjectLike(value) && hasOwnProperty$a.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
412
474
  };
413
475
  const isArguments$1 = isArguments;
414
476
  function stubFalse() {
@@ -421,11 +483,11 @@ var Buffer$1 = moduleExports$2 ? root.Buffer : void 0;
421
483
  var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
422
484
  var isBuffer = nativeIsBuffer || stubFalse;
423
485
  const isBuffer$1 = isBuffer;
424
- 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]";
486
+ 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]";
425
487
  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]";
426
488
  var typedArrayTags = {};
427
489
  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;
428
- 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;
490
+ 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;
429
491
  function baseIsTypedArray(value) {
430
492
  return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
431
493
  }
@@ -451,12 +513,12 @@ var nodeUtil = function() {
451
513
  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
452
514
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
453
515
  const isTypedArray$1 = isTypedArray;
454
- var objectProto$9 = Object.prototype;
455
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
516
+ var objectProto$a = Object.prototype;
517
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
456
518
  function arrayLikeKeys(value, inherited) {
457
519
  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;
458
520
  for (var key in value) {
459
- if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
521
+ if ((inherited || hasOwnProperty$9.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
460
522
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
461
523
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
462
524
  isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
@@ -472,15 +534,15 @@ function overArg(func, transform) {
472
534
  };
473
535
  }
474
536
  var nativeKeys = overArg(Object.keys, Object);
475
- var objectProto$8 = Object.prototype;
476
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
537
+ var objectProto$9 = Object.prototype;
538
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
477
539
  function baseKeys(object) {
478
540
  if (!isPrototype(object)) {
479
541
  return nativeKeys(object);
480
542
  }
481
543
  var result = [];
482
544
  for (var key in Object(object)) {
483
- if (hasOwnProperty$7.call(object, key) && key != "constructor") {
545
+ if (hasOwnProperty$8.call(object, key) && key != "constructor") {
484
546
  result.push(key);
485
547
  }
486
548
  }
@@ -498,15 +560,15 @@ function nativeKeysIn(object) {
498
560
  }
499
561
  return result;
500
562
  }
501
- var objectProto$7 = Object.prototype;
502
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
563
+ var objectProto$8 = Object.prototype;
564
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
503
565
  function baseKeysIn(object) {
504
566
  if (!isObject(object)) {
505
567
  return nativeKeysIn(object);
506
568
  }
507
569
  var isProto = isPrototype(object), result = [];
508
570
  for (var key in object) {
509
- if (!(key == "constructor" && (isProto || !hasOwnProperty$6.call(object, key)))) {
571
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$7.call(object, key)))) {
510
572
  result.push(key);
511
573
  }
512
574
  }
@@ -537,21 +599,21 @@ function hashDelete(key) {
537
599
  return result;
538
600
  }
539
601
  var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
540
- var objectProto$6 = Object.prototype;
541
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
602
+ var objectProto$7 = Object.prototype;
603
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
542
604
  function hashGet(key) {
543
605
  var data = this.__data__;
544
606
  if (nativeCreate) {
545
607
  var result = data[key];
546
608
  return result === HASH_UNDEFINED$2 ? void 0 : result;
547
609
  }
548
- return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
610
+ return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
549
611
  }
550
- var objectProto$5 = Object.prototype;
551
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
612
+ var objectProto$6 = Object.prototype;
613
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
552
614
  function hashHas(key) {
553
615
  var data = this.__data__;
554
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
616
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
555
617
  }
556
618
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
557
619
  function hashSet(key, value) {
@@ -756,8 +818,69 @@ function arrayPush(array, values) {
756
818
  }
757
819
  return array;
758
820
  }
821
+ var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
822
+ function isFlattenable(value) {
823
+ return isArray(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
824
+ }
825
+ function baseFlatten(array, depth, predicate, isStrict, result) {
826
+ var index2 = -1, length = array.length;
827
+ predicate || (predicate = isFlattenable);
828
+ result || (result = []);
829
+ while (++index2 < length) {
830
+ var value = array[index2];
831
+ if (depth > 0 && predicate(value)) {
832
+ if (depth > 1) {
833
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
834
+ } else {
835
+ arrayPush(result, value);
836
+ }
837
+ } else if (!isStrict) {
838
+ result[result.length] = value;
839
+ }
840
+ }
841
+ return result;
842
+ }
843
+ function flatten(array) {
844
+ var length = array == null ? 0 : array.length;
845
+ return length ? baseFlatten(array, 1) : [];
846
+ }
847
+ function flatRest(func) {
848
+ return setToString(overRest(func, void 0, flatten), func + "");
849
+ }
759
850
  var getPrototype = overArg(Object.getPrototypeOf, Object);
760
- const getPrototype$1 = getPrototype;
851
+ var objectTag$3 = "[object Object]";
852
+ var funcProto = Function.prototype, objectProto$5 = Object.prototype;
853
+ var funcToString = funcProto.toString;
854
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
855
+ var objectCtorString = funcToString.call(Object);
856
+ function isPlainObject(value) {
857
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) {
858
+ return false;
859
+ }
860
+ var proto = getPrototype(value);
861
+ if (proto === null) {
862
+ return true;
863
+ }
864
+ var Ctor = hasOwnProperty$4.call(proto, "constructor") && proto.constructor;
865
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
866
+ }
867
+ function baseSlice(array, start, end) {
868
+ var index2 = -1, length = array.length;
869
+ if (start < 0) {
870
+ start = -start > length ? 0 : length + start;
871
+ }
872
+ end = end > length ? length : end;
873
+ if (end < 0) {
874
+ end += length;
875
+ }
876
+ length = start > end ? 0 : end - start >>> 0;
877
+ start >>>= 0;
878
+ var result = Array(length);
879
+ while (++index2 < length) {
880
+ result[index2] = array[index2 + start];
881
+ }
882
+ return result;
883
+ }
761
884
  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";
762
885
  var rsZWJ$1 = "\\u200d";
763
886
  var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
@@ -857,31 +980,31 @@ var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
857
980
  return propertyIsEnumerable.call(object, symbol);
858
981
  });
859
982
  };
860
- const getSymbols$1 = getSymbols;
861
983
  function copySymbols(source, object) {
862
- return copyObject(source, getSymbols$1(source), object);
984
+ return copyObject(source, getSymbols(source), object);
863
985
  }
864
986
  var nativeGetSymbols = Object.getOwnPropertySymbols;
865
987
  var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
866
988
  var result = [];
867
989
  while (object) {
868
- arrayPush(result, getSymbols$1(object));
869
- object = getPrototype$1(object);
990
+ arrayPush(result, getSymbols(object));
991
+ object = getPrototype(object);
870
992
  }
871
993
  return result;
872
994
  };
995
+ const getSymbolsIn$1 = getSymbolsIn;
873
996
  function copySymbolsIn(source, object) {
874
- return copyObject(source, getSymbolsIn(source), object);
997
+ return copyObject(source, getSymbolsIn$1(source), object);
875
998
  }
876
999
  function baseGetAllKeys(object, keysFunc, symbolsFunc) {
877
1000
  var result = keysFunc(object);
878
1001
  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
879
1002
  }
880
1003
  function getAllKeys(object) {
881
- return baseGetAllKeys(object, keys, getSymbols$1);
1004
+ return baseGetAllKeys(object, keys, getSymbols);
882
1005
  }
883
1006
  function getAllKeysIn(object) {
884
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
1007
+ return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
885
1008
  }
886
1009
  var DataView = getNative(root, "DataView");
887
1010
  var Promise$1 = getNative(root, "Promise");
@@ -982,7 +1105,7 @@ function initCloneByTag(object, tag, isDeep) {
982
1105
  }
983
1106
  }
984
1107
  function initCloneObject(object) {
985
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype$1(object)) : {};
1108
+ return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
986
1109
  }
987
1110
  var mapTag$4 = "[object Map]";
988
1111
  function baseIsMap(value) {
@@ -996,14 +1119,14 @@ function baseIsSet(value) {
996
1119
  }
997
1120
  var nodeIsSet = nodeUtil && nodeUtil.isSet;
998
1121
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
999
- var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
1122
+ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$2 = 4;
1000
1123
  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]";
1001
1124
  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]";
1002
1125
  var cloneableTags = {};
1003
1126
  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;
1004
1127
  cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
1005
1128
  function baseClone(value, bitmask, customizer, key, object, stack) {
1006
- var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
1129
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
1007
1130
  if (customizer) {
1008
1131
  result = object ? customizer(value, key, object, stack) : customizer(value);
1009
1132
  }
@@ -1062,9 +1185,9 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
1062
1185
  });
1063
1186
  return result;
1064
1187
  }
1065
- var CLONE_SYMBOLS_FLAG = 4;
1188
+ var CLONE_SYMBOLS_FLAG$1 = 4;
1066
1189
  function clone(value) {
1067
- return baseClone(value, CLONE_SYMBOLS_FLAG);
1190
+ return baseClone(value, CLONE_SYMBOLS_FLAG$1);
1068
1191
  }
1069
1192
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
1070
1193
  function setCacheAdd(value) {
@@ -1531,6 +1654,10 @@ function debounce(func, wait, options) {
1531
1654
  debounced.flush = flush;
1532
1655
  return debounced;
1533
1656
  }
1657
+ function last(array) {
1658
+ var length = array == null ? 0 : array.length;
1659
+ return length ? array[length - 1] : void 0;
1660
+ }
1534
1661
  function baseFilter(collection, predicate) {
1535
1662
  var result = [];
1536
1663
  baseEach$1(collection, function(value, index2, collection2) {
@@ -1548,6 +1675,9 @@ var stringTag = "[object String]";
1548
1675
  function isString(value) {
1549
1676
  return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1550
1677
  }
1678
+ function parent(object, path) {
1679
+ return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
1680
+ }
1551
1681
  var boolTag = "[object Boolean]";
1552
1682
  function isBoolean(value) {
1553
1683
  return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;
@@ -1576,6 +1706,36 @@ function isEmpty(value) {
1576
1706
  }
1577
1707
  return true;
1578
1708
  }
1709
+ function baseUnset(object, path) {
1710
+ path = castPath(path, object);
1711
+ object = parent(object, path);
1712
+ return object == null || delete object[toKey(last(path))];
1713
+ }
1714
+ function customOmitClone(value) {
1715
+ return isPlainObject(value) ? void 0 : value;
1716
+ }
1717
+ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
1718
+ var omit = flatRest(function(object, paths) {
1719
+ var result = {};
1720
+ if (object == null) {
1721
+ return result;
1722
+ }
1723
+ var isDeep = false;
1724
+ paths = arrayMap(paths, function(path) {
1725
+ path = castPath(path, object);
1726
+ isDeep || (isDeep = path.length > 1);
1727
+ return path;
1728
+ });
1729
+ copyObject(object, getAllKeysIn(object), result);
1730
+ if (isDeep) {
1731
+ result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
1732
+ }
1733
+ var length = paths.length;
1734
+ while (length--) {
1735
+ baseUnset(result, paths[length]);
1736
+ }
1737
+ return result;
1738
+ });
1579
1739
  var asciiSize = baseProperty("length");
1580
1740
  var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
1581
1741
  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";
@@ -1679,7 +1839,7 @@ const getDrillDownCache = (spreadsheet, meta) => {
1679
1839
  "drillDownDataCache",
1680
1840
  []
1681
1841
  );
1682
- const cache = drillDownDataCache.find((dc) => dc.rowId === meta.id);
1842
+ const cache = drillDownDataCache == null ? void 0 : drillDownDataCache.find(({ rowId }) => rowId === meta.id);
1683
1843
  return {
1684
1844
  drillDownDataCache,
1685
1845
  drillDownCurrentCache: cache
@@ -2259,13 +2419,13 @@ class CustomTooltip extends BaseTooltip {
2259
2419
  const DEFAULT_PAGE_NUMBER = 1;
2260
2420
  const DEFAULT_PAGE_SIZE = 10;
2261
2421
  const usePagination = (s2Ref, props) => {
2262
- var _a, _b, _c, _d, _e, _f;
2263
- const current = ref(
2264
- (_c = (_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) != null ? _c : DEFAULT_PAGE_NUMBER
2265
- );
2266
- const pageSize = ref(
2267
- (_f = (_e = (_d = props.options) == null ? void 0 : _d.pagination) == null ? void 0 : _e.pageSize) != null ? _f : DEFAULT_PAGE_SIZE
2268
- );
2422
+ var _a, _b;
2423
+ const {
2424
+ options: { pagination: paginationCfg },
2425
+ showPagination
2426
+ } = props;
2427
+ const current = ref((_a = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a : DEFAULT_PAGE_NUMBER);
2428
+ const pageSize = ref((_b = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b : DEFAULT_PAGE_SIZE);
2269
2429
  const total = ref(0);
2270
2430
  const change = (nextCurrent) => {
2271
2431
  current.value = nextCurrent;
@@ -2273,18 +2433,14 @@ const usePagination = (s2Ref, props) => {
2273
2433
  const showSizeChange = (nextPageSize) => {
2274
2434
  pageSize.value = nextPageSize;
2275
2435
  };
2276
- const visible = computed(
2277
- () => {
2278
- var _a2;
2279
- return props.showPagination && !isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination);
2280
- }
2281
- );
2436
+ const visible = computed(() => {
2437
+ return showPagination && !isEmpty(paginationCfg);
2438
+ });
2282
2439
  watch([current, pageSize], () => {
2283
- var _a2;
2284
2440
  if (!s2Ref.value) {
2285
2441
  return;
2286
2442
  }
2287
- const nextPagination = isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination) ? null : {
2443
+ const nextPagination = isEmpty(paginationCfg) ? null : {
2288
2444
  current: current.value,
2289
2445
  pageSize: pageSize.value
2290
2446
  };
@@ -2292,15 +2448,12 @@ const usePagination = (s2Ref, props) => {
2292
2448
  s2Ref.value.render(false);
2293
2449
  });
2294
2450
  watch(
2295
- [() => {
2296
- var _a2;
2297
- return (_a2 = props.options) == null ? void 0 : _a2.pagination;
2298
- }, s2Ref],
2451
+ [() => paginationCfg, s2Ref],
2299
2452
  () => {
2300
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
2301
- current.value = (_c2 = (_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) != null ? _c2 : DEFAULT_PAGE_NUMBER;
2302
- pageSize.value = (_f2 = (_e2 = (_d2 = props.options) == null ? void 0 : _d2.pagination) == null ? void 0 : _e2.pageSize) != null ? _f2 : DEFAULT_PAGE_SIZE;
2303
- total.value = (_i = (_h = (_g = s2Ref.value) == null ? void 0 : _g.facet) == null ? void 0 : _h.viewCellHeights.getTotalLength()) != null ? _i : 0;
2453
+ var _a2, _b2, _c, _d, _e;
2454
+ current.value = (_a2 = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a2 : DEFAULT_PAGE_NUMBER;
2455
+ pageSize.value = (_b2 = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b2 : DEFAULT_PAGE_SIZE;
2456
+ total.value = (_e = (_d = (_c = s2Ref.value) == null ? void 0 : _c.facet) == null ? void 0 : _d.viewCellHeights.getTotalLength()) != null ? _e : 0;
2304
2457
  },
2305
2458
  {
2306
2459
  immediate: true
@@ -2311,8 +2464,7 @@ const usePagination = (s2Ref, props) => {
2311
2464
  return;
2312
2465
  }
2313
2466
  const totalUpdateCallback = (data) => {
2314
- var _a2;
2315
- if (isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination)) {
2467
+ if (isEmpty(paginationCfg)) {
2316
2468
  return;
2317
2469
  }
2318
2470
  total.value = data.total;
@@ -2324,6 +2476,7 @@ const usePagination = (s2Ref, props) => {
2324
2476
  });
2325
2477
  });
2326
2478
  return {
2479
+ customOptions: omit(paginationCfg, ["current", "pageSize", "total"]),
2327
2480
  visible,
2328
2481
  current,
2329
2482
  pageSize,
@@ -2347,7 +2500,8 @@ const _sfc_main$5 = defineComponent({
2347
2500
  pageSize: {
2348
2501
  type: Number,
2349
2502
  default: DEFAULT_PAGE_SIZE
2350
- }
2503
+ },
2504
+ customOptions: Object
2351
2505
  },
2352
2506
  emits: ["change", "showSizeChange"],
2353
2507
  setup: (props) => {
@@ -2367,17 +2521,18 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
2367
2521
  return openBlock(), createElementBlock("div", {
2368
2522
  class: normalizeClass(_ctx.PRE_CLASS)
2369
2523
  }, [
2370
- createVNode(_component_AntDPagination, {
2524
+ createVNode(_component_AntDPagination, mergeProps({
2525
+ size: "small",
2371
2526
  "default-current": 1,
2527
+ showSizeChanger: true,
2528
+ showQuickJumper: _ctx.showQuickJumper
2529
+ }, _ctx.customOptions, {
2372
2530
  current: _ctx.current,
2373
2531
  total: _ctx.total,
2374
2532
  pageSize: _ctx.pageSize,
2375
- showSizeChanger: true,
2376
2533
  onShowSizeChange: _cache[0] || (_cache[0] = (_, size2) => _ctx.$emit("showSizeChange", size2)),
2377
- size: "small",
2378
- showQuickJumper: _ctx.showQuickJumper,
2379
2534
  onChange: _cache[1] || (_cache[1] = (current) => _ctx.$emit("change", current))
2380
- }, null, 8, ["current", "total", "pageSize", "showQuickJumper"]),
2535
+ }), null, 16, ["showQuickJumper", "current", "total", "pageSize"]),
2381
2536
  createElementVNode("span", {
2382
2537
  class: normalizeClass(`${_ctx.PRE_CLASS}-count`)
2383
2538
  }, toDisplayString(_ctx.i18n("共计")) + " " + toDisplayString(_ctx.total || " - ") + " " + toDisplayString(_ctx.i18n("条")), 3)
@@ -3028,9 +3183,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3028
3183
  current: _ctx.pagination.current.value,
3029
3184
  pageSize: _ctx.pagination.pageSize.value,
3030
3185
  total: _ctx.pagination.total.value,
3186
+ customOptions: _ctx.pagination.customOptions,
3031
3187
  onChange: _ctx.handlePageChange,
3032
3188
  onShowSizeChange: _ctx.handlePageSizeChange
3033
- }, null, 8, ["current", "pageSize", "total", "onChange", "onShowSizeChange"])) : createCommentVNode("", true)
3189
+ }, null, 8, ["current", "pageSize", "total", "customOptions", "onChange", "onShowSizeChange"])) : createCommentVNode("", true)
3034
3190
  ], 2)
3035
3191
  ]),
3036
3192
  _: 1
@@ -3343,7 +3499,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3343
3499
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
3344
3500
  }
3345
3501
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3346
- const version = "@antv/s2-vue-v2.0.0-next.12";
3502
+ const version = "@antv/s2-vue-v2.0.0-next.13";
3347
3503
  export {
3348
3504
  BaseSheet,
3349
3505
  CustomTooltip,