@antv/s2-vue 2.0.0-next.11 → 2.0.0-next.12

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/lib/index.js CHANGED
@@ -1,4 +1,23 @@
1
1
  "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2
21
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
22
  const s2 = require("@antv/s2");
4
23
  const vue = require("vue");
@@ -110,16 +129,13 @@ const getBaseSheetComponentOptions = (...options) => s2.customMerge(
110
129
  ...options
111
130
  );
112
131
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
113
- const freeGlobal$1 = freeGlobal;
114
132
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
115
- var root = freeGlobal$1 || freeSelf || Function("return this")();
116
- const root$1 = root;
117
- var Symbol$1 = root$1.Symbol;
118
- const Symbol$2 = Symbol$1;
133
+ var root = freeGlobal || freeSelf || Function("return this")();
134
+ var Symbol$1 = root.Symbol;
119
135
  var objectProto$f = Object.prototype;
120
136
  var hasOwnProperty$c = objectProto$f.hasOwnProperty;
121
137
  var nativeObjectToString$1 = objectProto$f.toString;
122
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
138
+ var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
123
139
  function getRawTag(value) {
124
140
  var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
125
141
  try {
@@ -143,7 +159,7 @@ function objectToString(value) {
143
159
  return nativeObjectToString.call(value);
144
160
  }
145
161
  var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
146
- var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
162
+ var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
147
163
  function baseGetTag(value) {
148
164
  if (value == null) {
149
165
  return value === void 0 ? undefinedTag : nullTag;
@@ -165,14 +181,13 @@ function arrayMap(array, iteratee) {
165
181
  return result;
166
182
  }
167
183
  var isArray = Array.isArray;
168
- const isArray$1 = isArray;
169
184
  var INFINITY$1 = 1 / 0;
170
- var symbolProto$2 = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto$2 ? symbolProto$2.toString : void 0;
185
+ var symbolProto$2 = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto$2 ? symbolProto$2.toString : void 0;
171
186
  function baseToString(value) {
172
187
  if (typeof value == "string") {
173
188
  return value;
174
189
  }
175
- if (isArray$1(value)) {
190
+ if (isArray(value)) {
176
191
  return arrayMap(value, baseToString) + "";
177
192
  }
178
193
  if (isSymbol(value)) {
@@ -230,10 +245,9 @@ function isFunction(value) {
230
245
  var tag = baseGetTag(value);
231
246
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
232
247
  }
233
- var coreJsData = root$1["__core-js_shared__"];
234
- const coreJsData$1 = coreJsData;
248
+ var coreJsData = root["__core-js_shared__"];
235
249
  var maskSrcKey = function() {
236
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
250
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
237
251
  return uid ? "Symbol(src)_1." + uid : "";
238
252
  }();
239
253
  function isMasked(func) {
@@ -276,10 +290,9 @@ function getNative(object, key) {
276
290
  var value = getValue(object, key);
277
291
  return baseIsNative(value) ? value : void 0;
278
292
  }
279
- var WeakMap = getNative(root$1, "WeakMap");
280
- const WeakMap$1 = WeakMap;
293
+ var WeakMap = getNative(root, "WeakMap");
281
294
  var objectCreate = Object.create;
282
- var baseCreate = function() {
295
+ var baseCreate = /* @__PURE__ */ function() {
283
296
  function object() {
284
297
  }
285
298
  return function(proto) {
@@ -295,7 +308,6 @@ var baseCreate = function() {
295
308
  return result;
296
309
  };
297
310
  }();
298
- const baseCreate$1 = baseCreate;
299
311
  function copyArray(source, array) {
300
312
  var index2 = -1, length = source.length;
301
313
  array || (array = Array(length));
@@ -312,7 +324,6 @@ var defineProperty = function() {
312
324
  } catch (e) {
313
325
  }
314
326
  }();
315
- const defineProperty$1 = defineProperty;
316
327
  function arrayEach(array, iteratee) {
317
328
  var index2 = -1, length = array == null ? 0 : array.length;
318
329
  while (++index2 < length) {
@@ -330,8 +341,8 @@ function isIndex(value, length) {
330
341
  return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
331
342
  }
332
343
  function baseAssignValue(object, key, value) {
333
- if (key == "__proto__" && defineProperty$1) {
334
- defineProperty$1(object, key, {
344
+ if (key == "__proto__" && defineProperty) {
345
+ defineProperty(object, key, {
335
346
  "configurable": true,
336
347
  "enumerable": true,
337
348
  "value": value,
@@ -396,7 +407,7 @@ function baseIsArguments(value) {
396
407
  var objectProto$a = Object.prototype;
397
408
  var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
398
409
  var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
399
- var isArguments = baseIsArguments(function() {
410
+ var isArguments = baseIsArguments(/* @__PURE__ */ function() {
400
411
  return arguments;
401
412
  }()) ? baseIsArguments : function(value) {
402
413
  return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
@@ -408,7 +419,7 @@ function stubFalse() {
408
419
  var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
409
420
  var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
410
421
  var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
411
- var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0;
422
+ var Buffer$1 = moduleExports$2 ? root.Buffer : void 0;
412
423
  var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
413
424
  var isBuffer = nativeIsBuffer || stubFalse;
414
425
  const isBuffer$1 = isBuffer;
@@ -428,7 +439,7 @@ function baseUnary(func) {
428
439
  var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
429
440
  var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
430
441
  var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
431
- var freeProcess = moduleExports$1 && freeGlobal$1.process;
442
+ var freeProcess = moduleExports$1 && freeGlobal.process;
432
443
  var nodeUtil = function() {
433
444
  try {
434
445
  var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
@@ -439,14 +450,13 @@ var nodeUtil = function() {
439
450
  } catch (e) {
440
451
  }
441
452
  }();
442
- const nodeUtil$1 = nodeUtil;
443
- var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
453
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
444
454
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
445
455
  const isTypedArray$1 = isTypedArray;
446
456
  var objectProto$9 = Object.prototype;
447
457
  var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
448
458
  function arrayLikeKeys(value, inherited) {
449
- 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;
459
+ 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;
450
460
  for (var key in value) {
451
461
  if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
452
462
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -464,12 +474,11 @@ function overArg(func, transform) {
464
474
  };
465
475
  }
466
476
  var nativeKeys = overArg(Object.keys, Object);
467
- const nativeKeys$1 = nativeKeys;
468
477
  var objectProto$8 = Object.prototype;
469
478
  var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
470
479
  function baseKeys(object) {
471
480
  if (!isPrototype(object)) {
472
- return nativeKeys$1(object);
481
+ return nativeKeys(object);
473
482
  }
474
483
  var result = [];
475
484
  for (var key in Object(object)) {
@@ -510,7 +519,7 @@ function keysIn(object) {
510
519
  }
511
520
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
512
521
  function isKey(value, object) {
513
- if (isArray$1(value)) {
522
+ if (isArray(value)) {
514
523
  return false;
515
524
  }
516
525
  var type = typeof value;
@@ -520,9 +529,8 @@ function isKey(value, object) {
520
529
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
521
530
  }
522
531
  var nativeCreate = getNative(Object, "create");
523
- const nativeCreate$1 = nativeCreate;
524
532
  function hashClear() {
525
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
533
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
526
534
  this.size = 0;
527
535
  }
528
536
  function hashDelete(key) {
@@ -535,7 +543,7 @@ var objectProto$6 = Object.prototype;
535
543
  var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
536
544
  function hashGet(key) {
537
545
  var data = this.__data__;
538
- if (nativeCreate$1) {
546
+ if (nativeCreate) {
539
547
  var result = data[key];
540
548
  return result === HASH_UNDEFINED$2 ? void 0 : result;
541
549
  }
@@ -545,13 +553,13 @@ var objectProto$5 = Object.prototype;
545
553
  var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
546
554
  function hashHas(key) {
547
555
  var data = this.__data__;
548
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
556
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
549
557
  }
550
558
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
551
559
  function hashSet(key, value) {
552
560
  var data = this.__data__;
553
561
  this.size += this.has(key) ? 0 : 1;
554
- data[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED$1 : value;
562
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
555
563
  return this;
556
564
  }
557
565
  function Hash(entries) {
@@ -626,13 +634,12 @@ ListCache.prototype["delete"] = listCacheDelete;
626
634
  ListCache.prototype.get = listCacheGet;
627
635
  ListCache.prototype.has = listCacheHas;
628
636
  ListCache.prototype.set = listCacheSet;
629
- var Map = getNative(root$1, "Map");
630
- const Map$1 = Map;
637
+ var Map = getNative(root, "Map");
631
638
  function mapCacheClear() {
632
639
  this.size = 0;
633
640
  this.__data__ = {
634
641
  "hash": new Hash(),
635
- "map": new (Map$1 || ListCache)(),
642
+ "map": new (Map || ListCache)(),
636
643
  "string": new Hash()
637
644
  };
638
645
  }
@@ -715,15 +722,14 @@ var stringToPath = memoizeCapped(function(string) {
715
722
  });
716
723
  return result;
717
724
  });
718
- const stringToPath$1 = stringToPath;
719
725
  function toString(value) {
720
726
  return value == null ? "" : baseToString(value);
721
727
  }
722
728
  function castPath(value, object) {
723
- if (isArray$1(value)) {
729
+ if (isArray(value)) {
724
730
  return value;
725
731
  }
726
- return isKey(value, object) ? [value] : stringToPath$1(toString(value));
732
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
727
733
  }
728
734
  var INFINITY = 1 / 0;
729
735
  function toKey(value) {
@@ -790,7 +796,7 @@ function stackSet(key, value) {
790
796
  var data = this.__data__;
791
797
  if (data instanceof ListCache) {
792
798
  var pairs = data.__data__;
793
- if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
799
+ if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
794
800
  pairs.push([key, value]);
795
801
  this.size = ++data.size;
796
802
  return this;
@@ -819,7 +825,7 @@ function baseAssignIn(object, source) {
819
825
  var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
820
826
  var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
821
827
  var moduleExports = freeModule && freeModule.exports === freeExports;
822
- var Buffer = moduleExports ? root$1.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
828
+ var Buffer2 = moduleExports ? root.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
823
829
  function cloneBuffer(buffer, isDeep) {
824
830
  if (isDeep) {
825
831
  return buffer.slice();
@@ -866,31 +872,27 @@ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
866
872
  }
867
873
  return result;
868
874
  };
869
- const getSymbolsIn$1 = getSymbolsIn;
870
875
  function copySymbolsIn(source, object) {
871
- return copyObject(source, getSymbolsIn$1(source), object);
876
+ return copyObject(source, getSymbolsIn(source), object);
872
877
  }
873
878
  function baseGetAllKeys(object, keysFunc, symbolsFunc) {
874
879
  var result = keysFunc(object);
875
- return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
880
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
876
881
  }
877
882
  function getAllKeys(object) {
878
883
  return baseGetAllKeys(object, keys, getSymbols$1);
879
884
  }
880
885
  function getAllKeysIn(object) {
881
- return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
882
- }
883
- var DataView = getNative(root$1, "DataView");
884
- const DataView$1 = DataView;
885
- var Promise$1 = getNative(root$1, "Promise");
886
- const Promise$2 = Promise$1;
887
- var Set = getNative(root$1, "Set");
888
- const Set$1 = Set;
886
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
887
+ }
888
+ var DataView = getNative(root, "DataView");
889
+ var Promise$1 = getNative(root, "Promise");
890
+ var Set = getNative(root, "Set");
889
891
  var mapTag$6 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$6 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
890
892
  var dataViewTag$3 = "[object DataView]";
891
- var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
893
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
892
894
  var getTag = baseGetTag;
893
- if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 || Map$1 && getTag(new Map$1()) != mapTag$6 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$1 && getTag(new Set$1()) != setTag$6 || WeakMap$1 && getTag(new WeakMap$1()) != weakMapTag$1) {
895
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$3 || Map && getTag(new Map()) != mapTag$6 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$6 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) {
894
896
  getTag = function(value) {
895
897
  var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
896
898
  if (ctorString) {
@@ -921,8 +923,8 @@ function initCloneArray(array) {
921
923
  }
922
924
  return result;
923
925
  }
924
- var Uint8Array = root$1.Uint8Array;
925
- const Uint8Array$1 = Uint8Array;
926
+ var Uint8Array2 = root.Uint8Array;
927
+ const Uint8Array$1 = Uint8Array2;
926
928
  function cloneArrayBuffer(arrayBuffer) {
927
929
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
928
930
  new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
@@ -938,7 +940,7 @@ function cloneRegExp(regexp) {
938
940
  result.lastIndex = regexp.lastIndex;
939
941
  return result;
940
942
  }
941
- var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
943
+ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
942
944
  function cloneSymbol(symbol) {
943
945
  return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
944
946
  }
@@ -982,22 +984,20 @@ function initCloneByTag(object, tag, isDeep) {
982
984
  }
983
985
  }
984
986
  function initCloneObject(object) {
985
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate$1(getPrototype$1(object)) : {};
987
+ return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype$1(object)) : {};
986
988
  }
987
989
  var mapTag$4 = "[object Map]";
988
990
  function baseIsMap(value) {
989
991
  return isObjectLike(value) && getTag$1(value) == mapTag$4;
990
992
  }
991
- var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
993
+ var nodeIsMap = nodeUtil && nodeUtil.isMap;
992
994
  var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
993
- const isMap$1 = isMap;
994
995
  var setTag$4 = "[object Set]";
995
996
  function baseIsSet(value) {
996
997
  return isObjectLike(value) && getTag$1(value) == setTag$4;
997
998
  }
998
- var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
999
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
999
1000
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
1000
- const isSet$1 = isSet;
1001
1001
  var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
1002
1002
  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
1003
  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]";
@@ -1015,7 +1015,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
1015
1015
  if (!isObject(value)) {
1016
1016
  return value;
1017
1017
  }
1018
- var isArr = isArray$1(value);
1018
+ var isArr = isArray(value);
1019
1019
  if (isArr) {
1020
1020
  result = initCloneArray(value);
1021
1021
  if (!isDeep) {
@@ -1044,11 +1044,11 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
1044
1044
  return stacked;
1045
1045
  }
1046
1046
  stack.set(value, result);
1047
- if (isSet$1(value)) {
1047
+ if (isSet(value)) {
1048
1048
  value.forEach(function(subValue) {
1049
1049
  result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
1050
1050
  });
1051
- } else if (isMap$1(value)) {
1051
+ } else if (isMap(value)) {
1052
1052
  value.forEach(function(subValue, key2) {
1053
1053
  result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
1054
1054
  });
@@ -1158,7 +1158,7 @@ function setToArray(set) {
1158
1158
  var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
1159
1159
  var boolTag$1 = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$2 = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]";
1160
1160
  var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
1161
- var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
1161
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
1162
1162
  function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1163
1163
  switch (tag) {
1164
1164
  case dataViewTag:
@@ -1256,7 +1256,7 @@ var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[o
1256
1256
  var objectProto$1 = Object.prototype;
1257
1257
  var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1258
1258
  function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1259
- var objIsArr = isArray$1(object), othIsArr = isArray$1(other), objTag = objIsArr ? arrayTag : getTag$1(object), othTag = othIsArr ? arrayTag : getTag$1(other);
1259
+ var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag$1(object), othTag = othIsArr ? arrayTag : getTag$1(other);
1260
1260
  objTag = objTag == argsTag ? objectTag : objTag;
1261
1261
  othTag = othTag == argsTag ? objectTag : othTag;
1262
1262
  var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
@@ -1371,7 +1371,7 @@ function hasPath(object, path, hasFunc) {
1371
1371
  return result;
1372
1372
  }
1373
1373
  length = object == null ? 0 : object.length;
1374
- return !!length && isLength(length) && isIndex(key, length) && (isArray$1(object) || isArguments$1(object));
1374
+ return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments$1(object));
1375
1375
  }
1376
1376
  function hasIn(object, path) {
1377
1377
  return object != null && hasPath(object, path, baseHasIn);
@@ -1407,7 +1407,7 @@ function baseIteratee(value) {
1407
1407
  return identity;
1408
1408
  }
1409
1409
  if (typeof value == "object") {
1410
- return isArray$1(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
1410
+ return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
1411
1411
  }
1412
1412
  return property(value);
1413
1413
  }
@@ -1448,9 +1448,8 @@ function createBaseEach(eachFunc, fromRight) {
1448
1448
  var baseEach = createBaseEach(baseForOwn);
1449
1449
  const baseEach$1 = baseEach;
1450
1450
  var now = function() {
1451
- return root$1.Date.now();
1451
+ return root.Date.now();
1452
1452
  };
1453
- const now$1 = now;
1454
1453
  var FUNC_ERROR_TEXT = "Expected a function";
1455
1454
  var nativeMax = Math.max, nativeMin = Math.min;
1456
1455
  function debounce(func, wait, options) {
@@ -1486,7 +1485,7 @@ function debounce(func, wait, options) {
1486
1485
  return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
1487
1486
  }
1488
1487
  function timerExpired() {
1489
- var time = now$1();
1488
+ var time = now();
1490
1489
  if (shouldInvoke(time)) {
1491
1490
  return trailingEdge(time);
1492
1491
  }
@@ -1508,10 +1507,10 @@ function debounce(func, wait, options) {
1508
1507
  lastArgs = lastCallTime = lastThis = timerId = void 0;
1509
1508
  }
1510
1509
  function flush() {
1511
- return timerId === void 0 ? result : trailingEdge(now$1());
1510
+ return timerId === void 0 ? result : trailingEdge(now());
1512
1511
  }
1513
1512
  function debounced() {
1514
- var time = now$1(), isInvoking = shouldInvoke(time);
1513
+ var time = now(), isInvoking = shouldInvoke(time);
1515
1514
  lastArgs = arguments;
1516
1515
  lastThis = this;
1517
1516
  lastCallTime = time;
@@ -1544,12 +1543,12 @@ function baseFilter(collection, predicate) {
1544
1543
  return result;
1545
1544
  }
1546
1545
  function filter(collection, predicate) {
1547
- var func = isArray$1(collection) ? arrayFilter : baseFilter;
1546
+ var func = isArray(collection) ? arrayFilter : baseFilter;
1548
1547
  return func(collection, baseIteratee(predicate));
1549
1548
  }
1550
1549
  var stringTag = "[object String]";
1551
1550
  function isString(value) {
1552
- return typeof value == "string" || !isArray$1(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1551
+ return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1553
1552
  }
1554
1553
  var boolTag = "[object Boolean]";
1555
1554
  function isBoolean(value) {
@@ -1562,7 +1561,7 @@ function isEmpty(value) {
1562
1561
  if (value == null) {
1563
1562
  return true;
1564
1563
  }
1565
- if (isArrayLike(value) && (isArray$1(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$1(value) || isTypedArray$1(value) || isArguments$1(value))) {
1564
+ if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$1(value) || isTypedArray$1(value) || isArguments$1(value))) {
1566
1565
  return !value.length;
1567
1566
  }
1568
1567
  var tag = getTag$1(value);
@@ -1580,7 +1579,6 @@ function isEmpty(value) {
1580
1579
  return true;
1581
1580
  }
1582
1581
  var asciiSize = baseProperty("length");
1583
- const asciiSize$1 = asciiSize;
1584
1582
  var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
1585
1583
  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";
1586
1584
  var reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
@@ -1593,7 +1591,7 @@ function unicodeSize(string) {
1593
1591
  return result;
1594
1592
  }
1595
1593
  function stringSize(string) {
1596
- return hasUnicode(string) ? unicodeSize(string) : asciiSize$1(string);
1594
+ return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
1597
1595
  }
1598
1596
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
1599
1597
  eachFunc(collection, function(value, index2, collection2) {
@@ -1602,7 +1600,7 @@ function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
1602
1600
  return accumulator;
1603
1601
  }
1604
1602
  function reduce(collection, iteratee, accumulator) {
1605
- var func = isArray$1(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
1603
+ var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
1606
1604
  return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
1607
1605
  }
1608
1606
  var mapTag = "[object Map]", setTag = "[object Set]";
@@ -1620,7 +1618,7 @@ function size(collection) {
1620
1618
  return baseKeys(collection).length;
1621
1619
  }
1622
1620
  const analyzeAdaptive = (defaultContainer, adaptive) => {
1623
- var _a;
1621
+ var _a, _b, _c;
1624
1622
  if (isBoolean(adaptive)) {
1625
1623
  return {
1626
1624
  container: defaultContainer,
@@ -1630,8 +1628,8 @@ const analyzeAdaptive = (defaultContainer, adaptive) => {
1630
1628
  }
1631
1629
  return {
1632
1630
  container: ((_a = adaptive == null ? void 0 : adaptive.getContainer) == null ? void 0 : _a.call(adaptive)) || defaultContainer,
1633
- adaptiveWidth: (adaptive == null ? void 0 : adaptive.width) ?? true,
1634
- adaptiveHeight: (adaptive == null ? void 0 : adaptive.height) ?? true
1631
+ adaptiveWidth: (_b = adaptive == null ? void 0 : adaptive.width) != null ? _b : true,
1632
+ adaptiveHeight: (_c = adaptive == null ? void 0 : adaptive.height) != null ? _c : true
1635
1633
  };
1636
1634
  };
1637
1635
  const createResizeObserver = (params) => {
@@ -1652,8 +1650,8 @@ const createResizeObserver = (params) => {
1652
1650
  const debounceRender = debounce(render2, RESIZE_RENDER_DELAY);
1653
1651
  const onResize = () => {
1654
1652
  const { clientWidth: containerWidth, clientHeight: containerHeight } = container;
1655
- const width = adaptiveWidth ? s2.floor(containerWidth ?? s2$1.options.width) : s2$1.options.width;
1656
- const height = adaptiveHeight ? s2.floor(containerHeight ?? s2$1.options.height) : s2$1.options.height;
1653
+ const width = adaptiveWidth ? s2.floor(containerWidth != null ? containerWidth : s2$1.options.width) : s2$1.options.width;
1654
+ const height = adaptiveHeight ? s2.floor(containerHeight != null ? containerHeight : s2$1.options.height) : s2$1.options.height;
1657
1655
  if (!adaptiveWidth && !adaptiveHeight) {
1658
1656
  return;
1659
1657
  }
@@ -1746,10 +1744,9 @@ const buildDrillDownOptions = (options, partDrillDown, callback) => {
1746
1744
  };
1747
1745
  nextHeaderIcons.push(drillDownActionIcon);
1748
1746
  }
1749
- return {
1750
- ...options,
1747
+ return __spreadProps(__spreadValues({}, options), {
1751
1748
  headerActionIcons: nextHeaderIcons
1752
- };
1749
+ });
1753
1750
  };
1754
1751
  const handleDrillDown = (params) => {
1755
1752
  const { fetchData, spreadsheet, drillFields, drillItemsNum = -1 } = params;
@@ -2096,7 +2093,6 @@ const _sfc_main$7 = vue.defineComponent({
2096
2093
  TooltipOperatorMenu
2097
2094
  }
2098
2095
  });
2099
- const index_vue_vue_type_style_index_0_lang$1 = "";
2100
2096
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
2101
2097
  const _component_TooltipOperatorMenu = vue.resolveComponent("TooltipOperatorMenu");
2102
2098
  const _component_Menu = vue.resolveComponent("Menu");
@@ -2186,7 +2182,6 @@ const _sfc_main$6 = vue.defineComponent({
2186
2182
  TooltipOperator
2187
2183
  }
2188
2184
  });
2189
- const index_vue_vue_type_style_index_0_lang = "";
2190
2185
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
2191
2186
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
2192
2187
  const _component_TooltipOperator = vue.resolveComponent("TooltipOperator");
@@ -2235,18 +2230,17 @@ class CustomTooltip extends s2.BaseTooltip {
2235
2230
  super(spreadsheet);
2236
2231
  }
2237
2232
  renderContent() {
2238
- var _a;
2233
+ var _a, _b;
2239
2234
  const { tooltip } = this.spreadsheet.options;
2240
2235
  const showOptions = this.options;
2241
2236
  const cell = this.spreadsheet.getCell(
2242
2237
  (_a = showOptions.event) == null ? void 0 : _a.target
2243
2238
  );
2244
- const content = showOptions.content ?? (tooltip == null ? void 0 : tooltip.content);
2245
- const tooltipProps = {
2246
- ...showOptions,
2239
+ const content = (_b = showOptions.content) != null ? _b : tooltip == null ? void 0 : tooltip.content;
2240
+ const tooltipProps = __spreadProps(__spreadValues({}, showOptions), {
2247
2241
  cell,
2248
2242
  content
2249
- };
2243
+ });
2250
2244
  const tooltipVNode = vue.createVNode(
2251
2245
  TooltipComponent,
2252
2246
  tooltipProps,
@@ -2267,12 +2261,12 @@ class CustomTooltip extends s2.BaseTooltip {
2267
2261
  const DEFAULT_PAGE_NUMBER = 1;
2268
2262
  const DEFAULT_PAGE_SIZE = 10;
2269
2263
  const usePagination = (s2Ref, props) => {
2270
- var _a, _b, _c, _d;
2264
+ var _a, _b, _c, _d, _e, _f;
2271
2265
  const current = vue.ref(
2272
- ((_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) ?? DEFAULT_PAGE_NUMBER
2266
+ (_c = (_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) != null ? _c : DEFAULT_PAGE_NUMBER
2273
2267
  );
2274
2268
  const pageSize = vue.ref(
2275
- ((_d = (_c = props.options) == null ? void 0 : _c.pagination) == null ? void 0 : _d.pageSize) ?? DEFAULT_PAGE_SIZE
2269
+ (_f = (_e = (_d = props.options) == null ? void 0 : _d.pagination) == null ? void 0 : _e.pageSize) != null ? _f : DEFAULT_PAGE_SIZE
2276
2270
  );
2277
2271
  const total = vue.ref(0);
2278
2272
  const change = (nextCurrent) => {
@@ -2305,10 +2299,10 @@ const usePagination = (s2Ref, props) => {
2305
2299
  return (_a2 = props.options) == null ? void 0 : _a2.pagination;
2306
2300
  }, s2Ref],
2307
2301
  () => {
2308
- var _a2, _b2, _c2, _d2, _e, _f;
2309
- current.value = ((_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) ?? DEFAULT_PAGE_NUMBER;
2310
- pageSize.value = ((_d2 = (_c2 = props.options) == null ? void 0 : _c2.pagination) == null ? void 0 : _d2.pageSize) ?? DEFAULT_PAGE_SIZE;
2311
- total.value = ((_f = (_e = s2Ref.value) == null ? void 0 : _e.facet) == null ? void 0 : _f.viewCellHeights.getTotalLength()) ?? 0;
2302
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
2303
+ current.value = (_c2 = (_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) != null ? _c2 : DEFAULT_PAGE_NUMBER;
2304
+ pageSize.value = (_f2 = (_e2 = (_d2 = props.options) == null ? void 0 : _d2.pagination) == null ? void 0 : _e2.pageSize) != null ? _f2 : DEFAULT_PAGE_SIZE;
2305
+ total.value = (_i = (_h = (_g = s2Ref.value) == null ? void 0 : _g.facet) == null ? void 0 : _h.viewCellHeights.getTotalLength()) != null ? _i : 0;
2312
2306
  },
2313
2307
  {
2314
2308
  immediate: true
@@ -3015,7 +3009,6 @@ const _sfc_main$4 = vue.defineComponent({
3015
3009
  S2Pagination
3016
3010
  }
3017
3011
  });
3018
- const baseSheet_vue_vue_type_style_index_0_lang = "";
3019
3012
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3020
3013
  const _component_S2Pagination = vue.resolveComponent("S2Pagination");
3021
3014
  const _component_Spin = vue.resolveComponent("Spin");
@@ -3171,7 +3164,6 @@ const _sfc_main$3 = vue.defineComponent({
3171
3164
  };
3172
3165
  }
3173
3166
  });
3174
- const index_vue_vue_type_style_index_0_scoped_8dd920ec_lang = "";
3175
3167
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
3176
3168
  const _component_Button = vue.resolveComponent("Button");
3177
3169
  const _component_Input = vue.resolveComponent("Input");
@@ -3250,7 +3242,7 @@ const _sfc_main$2 = vue.defineComponent({
3250
3242
  const { dataCfg, partDrillDown } = vue.toRefs(props);
3251
3243
  const drillFields = vue.ref([]);
3252
3244
  const setDrillFields = (fields) => {
3253
- var _a, _b, _c, _d, _e;
3245
+ var _a, _b, _c, _d, _e, _f;
3254
3246
  const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
3255
3247
  drillFields.value = fields;
3256
3248
  instance == null ? void 0 : instance.hideTooltip();
@@ -3258,10 +3250,10 @@ const _sfc_main$2 = vue.defineComponent({
3258
3250
  instance == null ? void 0 : instance.clearDrillDownData((_b = instance == null ? void 0 : instance.store.get("drillDownNode")) == null ? void 0 : _b.id);
3259
3251
  } else {
3260
3252
  handleDrillDown({
3261
- rows: ((_c = dataCfg.value) == null ? void 0 : _c.fields.rows) ?? [],
3253
+ rows: (_d = (_c = dataCfg.value) == null ? void 0 : _c.fields.rows) != null ? _d : [],
3262
3254
  drillFields: fields,
3263
- fetchData: (_d = partDrillDown.value) == null ? void 0 : _d["fetchData"],
3264
- drillItemsNum: (_e = partDrillDown.value) == null ? void 0 : _e["drillItemsNum"],
3255
+ fetchData: (_e = partDrillDown.value) == null ? void 0 : _e["fetchData"],
3256
+ drillItemsNum: (_f = partDrillDown.value) == null ? void 0 : _f["drillItemsNum"],
3265
3257
  spreadsheet: instance
3266
3258
  });
3267
3259
  }
@@ -3271,12 +3263,11 @@ const _sfc_main$2 = vue.defineComponent({
3271
3263
  const { event, disabledFields } = params;
3272
3264
  if (event) {
3273
3265
  const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
3274
- const drillDownNode = vue.createVNode(DrillDown, {
3275
- ...(_b = partDrillDown.value) == null ? void 0 : _b["drillConfig"],
3266
+ const drillDownNode = vue.createVNode(DrillDown, __spreadProps(__spreadValues({}, (_b = partDrillDown.value) == null ? void 0 : _b["drillConfig"]), {
3276
3267
  setDrillFields,
3277
3268
  drillFields: drillFields.value,
3278
3269
  disabledFields
3279
- });
3270
+ }));
3280
3271
  instance == null ? void 0 : instance.showTooltip({
3281
3272
  position: {
3282
3273
  x: event.clientX,
@@ -3354,7 +3345,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3354
3345
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
3355
3346
  }
3356
3347
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3357
- const version = "@antv/s2-vue-v2.0.0-next.11";
3348
+ const version = "@antv/s2-vue-v2.0.0-next.12";
3358
3349
  exports.BaseSheet = BaseSheet;
3359
3350
  exports.CustomTooltip = CustomTooltip;
3360
3351
  exports.PivotSheet = PivotSheet;