@antv/s2-vue 2.0.0-next.11 → 2.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/style.min.css +1 -1
- package/esm/index.d.ts +110 -28
- package/esm/index.js +331 -184
- package/esm/index.js.map +1 -1
- package/lib/index.js +330 -183
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/esm/index.js
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
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";
|
|
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,
|
|
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";
|
|
3
22
|
import { Menu, Dropdown, Pagination, Spin, Button, Input, Empty, MenuItem } from "ant-design-vue";
|
|
4
23
|
const EN_US = {
|
|
5
24
|
选择分析信息: "Select Analysis Information",
|
|
@@ -108,18 +127,15 @@ const getBaseSheetComponentOptions = (...options) => customMerge(
|
|
|
108
127
|
...options
|
|
109
128
|
);
|
|
110
129
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
111
|
-
const freeGlobal$1 = freeGlobal;
|
|
112
130
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
113
|
-
var root = freeGlobal
|
|
114
|
-
|
|
115
|
-
var
|
|
116
|
-
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var nativeObjectToString$1 = objectProto$f.toString;
|
|
120
|
-
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
131
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
132
|
+
var Symbol$1 = root.Symbol;
|
|
133
|
+
var objectProto$g = Object.prototype;
|
|
134
|
+
var hasOwnProperty$d = objectProto$g.hasOwnProperty;
|
|
135
|
+
var nativeObjectToString$1 = objectProto$g.toString;
|
|
136
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
121
137
|
function getRawTag(value) {
|
|
122
|
-
var isOwn = hasOwnProperty$
|
|
138
|
+
var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
123
139
|
try {
|
|
124
140
|
value[symToStringTag$1] = void 0;
|
|
125
141
|
var unmasked = true;
|
|
@@ -135,13 +151,13 @@ function getRawTag(value) {
|
|
|
135
151
|
}
|
|
136
152
|
return result;
|
|
137
153
|
}
|
|
138
|
-
var objectProto$
|
|
139
|
-
var nativeObjectToString = objectProto$
|
|
154
|
+
var objectProto$f = Object.prototype;
|
|
155
|
+
var nativeObjectToString = objectProto$f.toString;
|
|
140
156
|
function objectToString(value) {
|
|
141
157
|
return nativeObjectToString.call(value);
|
|
142
158
|
}
|
|
143
159
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
144
|
-
var symToStringTag = Symbol$
|
|
160
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
145
161
|
function baseGetTag(value) {
|
|
146
162
|
if (value == null) {
|
|
147
163
|
return value === void 0 ? undefinedTag : nullTag;
|
|
@@ -163,14 +179,13 @@ function arrayMap(array, iteratee) {
|
|
|
163
179
|
return result;
|
|
164
180
|
}
|
|
165
181
|
var isArray = Array.isArray;
|
|
166
|
-
const isArray$1 = isArray;
|
|
167
182
|
var INFINITY$1 = 1 / 0;
|
|
168
|
-
var symbolProto$2 = Symbol$
|
|
183
|
+
var symbolProto$2 = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto$2 ? symbolProto$2.toString : void 0;
|
|
169
184
|
function baseToString(value) {
|
|
170
185
|
if (typeof value == "string") {
|
|
171
186
|
return value;
|
|
172
187
|
}
|
|
173
|
-
if (isArray
|
|
188
|
+
if (isArray(value)) {
|
|
174
189
|
return arrayMap(value, baseToString) + "";
|
|
175
190
|
}
|
|
176
191
|
if (isSymbol(value)) {
|
|
@@ -228,21 +243,20 @@ function isFunction(value) {
|
|
|
228
243
|
var tag = baseGetTag(value);
|
|
229
244
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
230
245
|
}
|
|
231
|
-
var coreJsData = root
|
|
232
|
-
const coreJsData$1 = coreJsData;
|
|
246
|
+
var coreJsData = root["__core-js_shared__"];
|
|
233
247
|
var maskSrcKey = function() {
|
|
234
|
-
var uid = /[^.]+$/.exec(coreJsData
|
|
248
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
235
249
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
236
250
|
}();
|
|
237
251
|
function isMasked(func) {
|
|
238
252
|
return !!maskSrcKey && maskSrcKey in func;
|
|
239
253
|
}
|
|
240
|
-
var funcProto$
|
|
241
|
-
var funcToString$
|
|
254
|
+
var funcProto$2 = Function.prototype;
|
|
255
|
+
var funcToString$2 = funcProto$2.toString;
|
|
242
256
|
function toSource(func) {
|
|
243
257
|
if (func != null) {
|
|
244
258
|
try {
|
|
245
|
-
return funcToString$
|
|
259
|
+
return funcToString$2.call(func);
|
|
246
260
|
} catch (e) {
|
|
247
261
|
}
|
|
248
262
|
try {
|
|
@@ -254,11 +268,11 @@ function toSource(func) {
|
|
|
254
268
|
}
|
|
255
269
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
256
270
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
257
|
-
var funcProto = Function.prototype, objectProto$
|
|
258
|
-
var funcToString = funcProto.toString;
|
|
259
|
-
var 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;
|
|
260
274
|
var reIsNative = RegExp(
|
|
261
|
-
"^" + funcToString.call(hasOwnProperty$
|
|
275
|
+
"^" + funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
262
276
|
);
|
|
263
277
|
function baseIsNative(value) {
|
|
264
278
|
if (!isObject(value) || isMasked(value)) {
|
|
@@ -274,10 +288,9 @@ function getNative(object, key) {
|
|
|
274
288
|
var value = getValue(object, key);
|
|
275
289
|
return baseIsNative(value) ? value : void 0;
|
|
276
290
|
}
|
|
277
|
-
var WeakMap = getNative(root
|
|
278
|
-
const WeakMap$1 = WeakMap;
|
|
291
|
+
var WeakMap = getNative(root, "WeakMap");
|
|
279
292
|
var objectCreate = Object.create;
|
|
280
|
-
var baseCreate = function() {
|
|
293
|
+
var baseCreate = /* @__PURE__ */ function() {
|
|
281
294
|
function object() {
|
|
282
295
|
}
|
|
283
296
|
return function(proto) {
|
|
@@ -293,7 +306,19 @@ var baseCreate = function() {
|
|
|
293
306
|
return result;
|
|
294
307
|
};
|
|
295
308
|
}();
|
|
296
|
-
|
|
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
|
+
}
|
|
297
322
|
function copyArray(source, array) {
|
|
298
323
|
var index2 = -1, length = source.length;
|
|
299
324
|
array || (array = Array(length));
|
|
@@ -302,6 +327,28 @@ function copyArray(source, array) {
|
|
|
302
327
|
}
|
|
303
328
|
return array;
|
|
304
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
|
+
}
|
|
305
352
|
var defineProperty = function() {
|
|
306
353
|
try {
|
|
307
354
|
var func = getNative(Object, "defineProperty");
|
|
@@ -310,7 +357,16 @@ var defineProperty = function() {
|
|
|
310
357
|
} catch (e) {
|
|
311
358
|
}
|
|
312
359
|
}();
|
|
313
|
-
|
|
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);
|
|
314
370
|
function arrayEach(array, iteratee) {
|
|
315
371
|
var index2 = -1, length = array == null ? 0 : array.length;
|
|
316
372
|
while (++index2 < length) {
|
|
@@ -328,8 +384,8 @@ function isIndex(value, length) {
|
|
|
328
384
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
329
385
|
}
|
|
330
386
|
function baseAssignValue(object, key, value) {
|
|
331
|
-
if (key == "__proto__" && defineProperty
|
|
332
|
-
defineProperty
|
|
387
|
+
if (key == "__proto__" && defineProperty) {
|
|
388
|
+
defineProperty(object, key, {
|
|
333
389
|
"configurable": true,
|
|
334
390
|
"enumerable": true,
|
|
335
391
|
"value": value,
|
|
@@ -342,11 +398,11 @@ function baseAssignValue(object, key, value) {
|
|
|
342
398
|
function eq(value, other) {
|
|
343
399
|
return value === other || value !== value && other !== other;
|
|
344
400
|
}
|
|
345
|
-
var objectProto$
|
|
346
|
-
var hasOwnProperty$
|
|
401
|
+
var objectProto$d = Object.prototype;
|
|
402
|
+
var hasOwnProperty$b = objectProto$d.hasOwnProperty;
|
|
347
403
|
function assignValue(object, key, value) {
|
|
348
404
|
var objValue = object[key];
|
|
349
|
-
if (!(hasOwnProperty$
|
|
405
|
+
if (!(hasOwnProperty$b.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
350
406
|
baseAssignValue(object, key, value);
|
|
351
407
|
}
|
|
352
408
|
}
|
|
@@ -368,6 +424,23 @@ function copyObject(source, props, object, customizer) {
|
|
|
368
424
|
}
|
|
369
425
|
return object;
|
|
370
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
|
+
}
|
|
371
444
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
372
445
|
function isLength(value) {
|
|
373
446
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
@@ -375,9 +448,9 @@ function isLength(value) {
|
|
|
375
448
|
function isArrayLike(value) {
|
|
376
449
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
377
450
|
}
|
|
378
|
-
var objectProto$
|
|
451
|
+
var objectProto$c = Object.prototype;
|
|
379
452
|
function isPrototype(value) {
|
|
380
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
453
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$c;
|
|
381
454
|
return value === proto;
|
|
382
455
|
}
|
|
383
456
|
function baseTimes(n, iteratee) {
|
|
@@ -391,13 +464,13 @@ var argsTag$3 = "[object Arguments]";
|
|
|
391
464
|
function baseIsArguments(value) {
|
|
392
465
|
return isObjectLike(value) && baseGetTag(value) == argsTag$3;
|
|
393
466
|
}
|
|
394
|
-
var objectProto$
|
|
395
|
-
var hasOwnProperty$
|
|
396
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
397
|
-
var isArguments = baseIsArguments(function() {
|
|
467
|
+
var objectProto$b = Object.prototype;
|
|
468
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
469
|
+
var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
|
|
470
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
398
471
|
return arguments;
|
|
399
472
|
}()) ? baseIsArguments : function(value) {
|
|
400
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
473
|
+
return isObjectLike(value) && hasOwnProperty$a.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
401
474
|
};
|
|
402
475
|
const isArguments$1 = isArguments;
|
|
403
476
|
function stubFalse() {
|
|
@@ -406,15 +479,15 @@ function stubFalse() {
|
|
|
406
479
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
407
480
|
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
408
481
|
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
409
|
-
var Buffer$1 = moduleExports$2 ? root
|
|
482
|
+
var Buffer$1 = moduleExports$2 ? root.Buffer : void 0;
|
|
410
483
|
var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
411
484
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
412
485
|
const isBuffer$1 = isBuffer;
|
|
413
|
-
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$
|
|
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]";
|
|
414
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]";
|
|
415
488
|
var typedArrayTags = {};
|
|
416
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;
|
|
417
|
-
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$
|
|
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;
|
|
418
491
|
function baseIsTypedArray(value) {
|
|
419
492
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
420
493
|
}
|
|
@@ -426,7 +499,7 @@ function baseUnary(func) {
|
|
|
426
499
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
427
500
|
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
428
501
|
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
429
|
-
var freeProcess = moduleExports$1 && freeGlobal
|
|
502
|
+
var freeProcess = moduleExports$1 && freeGlobal.process;
|
|
430
503
|
var nodeUtil = function() {
|
|
431
504
|
try {
|
|
432
505
|
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
@@ -437,16 +510,15 @@ var nodeUtil = function() {
|
|
|
437
510
|
} catch (e) {
|
|
438
511
|
}
|
|
439
512
|
}();
|
|
440
|
-
|
|
441
|
-
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
513
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
442
514
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
443
515
|
const isTypedArray$1 = isTypedArray;
|
|
444
|
-
var objectProto$
|
|
445
|
-
var hasOwnProperty$
|
|
516
|
+
var objectProto$a = Object.prototype;
|
|
517
|
+
var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
|
446
518
|
function arrayLikeKeys(value, inherited) {
|
|
447
|
-
var isArr = isArray
|
|
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;
|
|
448
520
|
for (var key in value) {
|
|
449
|
-
if ((inherited || hasOwnProperty$
|
|
521
|
+
if ((inherited || hasOwnProperty$9.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
450
522
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
451
523
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
452
524
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -462,16 +534,15 @@ function overArg(func, transform) {
|
|
|
462
534
|
};
|
|
463
535
|
}
|
|
464
536
|
var nativeKeys = overArg(Object.keys, Object);
|
|
465
|
-
|
|
466
|
-
var
|
|
467
|
-
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
537
|
+
var objectProto$9 = Object.prototype;
|
|
538
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
468
539
|
function baseKeys(object) {
|
|
469
540
|
if (!isPrototype(object)) {
|
|
470
|
-
return nativeKeys
|
|
541
|
+
return nativeKeys(object);
|
|
471
542
|
}
|
|
472
543
|
var result = [];
|
|
473
544
|
for (var key in Object(object)) {
|
|
474
|
-
if (hasOwnProperty$
|
|
545
|
+
if (hasOwnProperty$8.call(object, key) && key != "constructor") {
|
|
475
546
|
result.push(key);
|
|
476
547
|
}
|
|
477
548
|
}
|
|
@@ -489,15 +560,15 @@ function nativeKeysIn(object) {
|
|
|
489
560
|
}
|
|
490
561
|
return result;
|
|
491
562
|
}
|
|
492
|
-
var objectProto$
|
|
493
|
-
var hasOwnProperty$
|
|
563
|
+
var objectProto$8 = Object.prototype;
|
|
564
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
494
565
|
function baseKeysIn(object) {
|
|
495
566
|
if (!isObject(object)) {
|
|
496
567
|
return nativeKeysIn(object);
|
|
497
568
|
}
|
|
498
569
|
var isProto = isPrototype(object), result = [];
|
|
499
570
|
for (var key in object) {
|
|
500
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
571
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$7.call(object, key)))) {
|
|
501
572
|
result.push(key);
|
|
502
573
|
}
|
|
503
574
|
}
|
|
@@ -508,7 +579,7 @@ function keysIn(object) {
|
|
|
508
579
|
}
|
|
509
580
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
510
581
|
function isKey(value, object) {
|
|
511
|
-
if (isArray
|
|
582
|
+
if (isArray(value)) {
|
|
512
583
|
return false;
|
|
513
584
|
}
|
|
514
585
|
var type = typeof value;
|
|
@@ -518,9 +589,8 @@ function isKey(value, object) {
|
|
|
518
589
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
519
590
|
}
|
|
520
591
|
var nativeCreate = getNative(Object, "create");
|
|
521
|
-
const nativeCreate$1 = nativeCreate;
|
|
522
592
|
function hashClear() {
|
|
523
|
-
this.__data__ = nativeCreate
|
|
593
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
524
594
|
this.size = 0;
|
|
525
595
|
}
|
|
526
596
|
function hashDelete(key) {
|
|
@@ -529,27 +599,27 @@ function hashDelete(key) {
|
|
|
529
599
|
return result;
|
|
530
600
|
}
|
|
531
601
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
532
|
-
var objectProto$
|
|
533
|
-
var hasOwnProperty$
|
|
602
|
+
var objectProto$7 = Object.prototype;
|
|
603
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
534
604
|
function hashGet(key) {
|
|
535
605
|
var data = this.__data__;
|
|
536
|
-
if (nativeCreate
|
|
606
|
+
if (nativeCreate) {
|
|
537
607
|
var result = data[key];
|
|
538
608
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
539
609
|
}
|
|
540
|
-
return hasOwnProperty$
|
|
610
|
+
return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
|
|
541
611
|
}
|
|
542
|
-
var objectProto$
|
|
543
|
-
var hasOwnProperty$
|
|
612
|
+
var objectProto$6 = Object.prototype;
|
|
613
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
544
614
|
function hashHas(key) {
|
|
545
615
|
var data = this.__data__;
|
|
546
|
-
return nativeCreate
|
|
616
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
|
|
547
617
|
}
|
|
548
618
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
549
619
|
function hashSet(key, value) {
|
|
550
620
|
var data = this.__data__;
|
|
551
621
|
this.size += this.has(key) ? 0 : 1;
|
|
552
|
-
data[key] = nativeCreate
|
|
622
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
553
623
|
return this;
|
|
554
624
|
}
|
|
555
625
|
function Hash(entries) {
|
|
@@ -624,13 +694,12 @@ ListCache.prototype["delete"] = listCacheDelete;
|
|
|
624
694
|
ListCache.prototype.get = listCacheGet;
|
|
625
695
|
ListCache.prototype.has = listCacheHas;
|
|
626
696
|
ListCache.prototype.set = listCacheSet;
|
|
627
|
-
var Map = getNative(root
|
|
628
|
-
const Map$1 = Map;
|
|
697
|
+
var Map = getNative(root, "Map");
|
|
629
698
|
function mapCacheClear() {
|
|
630
699
|
this.size = 0;
|
|
631
700
|
this.__data__ = {
|
|
632
701
|
"hash": new Hash(),
|
|
633
|
-
"map": new (Map
|
|
702
|
+
"map": new (Map || ListCache)(),
|
|
634
703
|
"string": new Hash()
|
|
635
704
|
};
|
|
636
705
|
}
|
|
@@ -713,15 +782,14 @@ var stringToPath = memoizeCapped(function(string) {
|
|
|
713
782
|
});
|
|
714
783
|
return result;
|
|
715
784
|
});
|
|
716
|
-
const stringToPath$1 = stringToPath;
|
|
717
785
|
function toString(value) {
|
|
718
786
|
return value == null ? "" : baseToString(value);
|
|
719
787
|
}
|
|
720
788
|
function castPath(value, object) {
|
|
721
|
-
if (isArray
|
|
789
|
+
if (isArray(value)) {
|
|
722
790
|
return value;
|
|
723
791
|
}
|
|
724
|
-
return isKey(value, object) ? [value] : stringToPath
|
|
792
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
725
793
|
}
|
|
726
794
|
var INFINITY = 1 / 0;
|
|
727
795
|
function toKey(value) {
|
|
@@ -750,8 +818,69 @@ function arrayPush(array, values) {
|
|
|
750
818
|
}
|
|
751
819
|
return array;
|
|
752
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
|
+
}
|
|
753
850
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
754
|
-
|
|
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
|
+
}
|
|
755
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";
|
|
756
885
|
var rsZWJ$1 = "\\u200d";
|
|
757
886
|
var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
|
|
@@ -788,7 +917,7 @@ function stackSet(key, value) {
|
|
|
788
917
|
var data = this.__data__;
|
|
789
918
|
if (data instanceof ListCache) {
|
|
790
919
|
var pairs = data.__data__;
|
|
791
|
-
if (!Map
|
|
920
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
792
921
|
pairs.push([key, value]);
|
|
793
922
|
this.size = ++data.size;
|
|
794
923
|
return this;
|
|
@@ -817,7 +946,7 @@ function baseAssignIn(object, source) {
|
|
|
817
946
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
818
947
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
819
948
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
820
|
-
var
|
|
949
|
+
var Buffer2 = moduleExports ? root.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
821
950
|
function cloneBuffer(buffer, isDeep) {
|
|
822
951
|
if (isDeep) {
|
|
823
952
|
return buffer.slice();
|
|
@@ -851,16 +980,15 @@ var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
|
|
|
851
980
|
return propertyIsEnumerable.call(object, symbol);
|
|
852
981
|
});
|
|
853
982
|
};
|
|
854
|
-
const getSymbols$1 = getSymbols;
|
|
855
983
|
function copySymbols(source, object) {
|
|
856
|
-
return copyObject(source, getSymbols
|
|
984
|
+
return copyObject(source, getSymbols(source), object);
|
|
857
985
|
}
|
|
858
986
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
859
987
|
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
860
988
|
var result = [];
|
|
861
989
|
while (object) {
|
|
862
|
-
arrayPush(result, getSymbols
|
|
863
|
-
object = getPrototype
|
|
990
|
+
arrayPush(result, getSymbols(object));
|
|
991
|
+
object = getPrototype(object);
|
|
864
992
|
}
|
|
865
993
|
return result;
|
|
866
994
|
};
|
|
@@ -870,25 +998,22 @@ function copySymbolsIn(source, object) {
|
|
|
870
998
|
}
|
|
871
999
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
872
1000
|
var result = keysFunc(object);
|
|
873
|
-
return isArray
|
|
1001
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
874
1002
|
}
|
|
875
1003
|
function getAllKeys(object) {
|
|
876
|
-
return baseGetAllKeys(object, keys, getSymbols
|
|
1004
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
877
1005
|
}
|
|
878
1006
|
function getAllKeysIn(object) {
|
|
879
1007
|
return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
|
|
880
1008
|
}
|
|
881
|
-
var DataView = getNative(root
|
|
882
|
-
|
|
883
|
-
var
|
|
884
|
-
const Promise$2 = Promise$1;
|
|
885
|
-
var Set = getNative(root$1, "Set");
|
|
886
|
-
const Set$1 = Set;
|
|
1009
|
+
var DataView = getNative(root, "DataView");
|
|
1010
|
+
var Promise$1 = getNative(root, "Promise");
|
|
1011
|
+
var Set = getNative(root, "Set");
|
|
887
1012
|
var mapTag$6 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$6 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
888
1013
|
var dataViewTag$3 = "[object DataView]";
|
|
889
|
-
var dataViewCtorString = toSource(DataView
|
|
1014
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
890
1015
|
var getTag = baseGetTag;
|
|
891
|
-
if (DataView
|
|
1016
|
+
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) {
|
|
892
1017
|
getTag = function(value) {
|
|
893
1018
|
var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
894
1019
|
if (ctorString) {
|
|
@@ -919,8 +1044,8 @@ function initCloneArray(array) {
|
|
|
919
1044
|
}
|
|
920
1045
|
return result;
|
|
921
1046
|
}
|
|
922
|
-
var
|
|
923
|
-
const Uint8Array$1 =
|
|
1047
|
+
var Uint8Array2 = root.Uint8Array;
|
|
1048
|
+
const Uint8Array$1 = Uint8Array2;
|
|
924
1049
|
function cloneArrayBuffer(arrayBuffer) {
|
|
925
1050
|
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
926
1051
|
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
@@ -936,7 +1061,7 @@ function cloneRegExp(regexp) {
|
|
|
936
1061
|
result.lastIndex = regexp.lastIndex;
|
|
937
1062
|
return result;
|
|
938
1063
|
}
|
|
939
|
-
var symbolProto$1 = Symbol$
|
|
1064
|
+
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
940
1065
|
function cloneSymbol(symbol) {
|
|
941
1066
|
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
942
1067
|
}
|
|
@@ -980,30 +1105,28 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
980
1105
|
}
|
|
981
1106
|
}
|
|
982
1107
|
function initCloneObject(object) {
|
|
983
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate
|
|
1108
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
984
1109
|
}
|
|
985
1110
|
var mapTag$4 = "[object Map]";
|
|
986
1111
|
function baseIsMap(value) {
|
|
987
1112
|
return isObjectLike(value) && getTag$1(value) == mapTag$4;
|
|
988
1113
|
}
|
|
989
|
-
var nodeIsMap = nodeUtil
|
|
1114
|
+
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
990
1115
|
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
991
|
-
const isMap$1 = isMap;
|
|
992
1116
|
var setTag$4 = "[object Set]";
|
|
993
1117
|
function baseIsSet(value) {
|
|
994
1118
|
return isObjectLike(value) && getTag$1(value) == setTag$4;
|
|
995
1119
|
}
|
|
996
|
-
var nodeIsSet = nodeUtil
|
|
1120
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
997
1121
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
998
|
-
|
|
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$
|
|
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
|
}
|
|
@@ -1013,7 +1136,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1013
1136
|
if (!isObject(value)) {
|
|
1014
1137
|
return value;
|
|
1015
1138
|
}
|
|
1016
|
-
var isArr = isArray
|
|
1139
|
+
var isArr = isArray(value);
|
|
1017
1140
|
if (isArr) {
|
|
1018
1141
|
result = initCloneArray(value);
|
|
1019
1142
|
if (!isDeep) {
|
|
@@ -1042,11 +1165,11 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
1042
1165
|
return stacked;
|
|
1043
1166
|
}
|
|
1044
1167
|
stack.set(value, result);
|
|
1045
|
-
if (isSet
|
|
1168
|
+
if (isSet(value)) {
|
|
1046
1169
|
value.forEach(function(subValue) {
|
|
1047
1170
|
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
1048
1171
|
});
|
|
1049
|
-
} else if (isMap
|
|
1172
|
+
} else if (isMap(value)) {
|
|
1050
1173
|
value.forEach(function(subValue, key2) {
|
|
1051
1174
|
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
1052
1175
|
});
|
|
@@ -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) {
|
|
@@ -1156,7 +1279,7 @@ function setToArray(set) {
|
|
|
1156
1279
|
var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
|
|
1157
1280
|
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]";
|
|
1158
1281
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
1159
|
-
var symbolProto = Symbol$
|
|
1282
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1160
1283
|
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
1161
1284
|
switch (tag) {
|
|
1162
1285
|
case dataViewTag:
|
|
@@ -1254,7 +1377,7 @@ var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[o
|
|
|
1254
1377
|
var objectProto$1 = Object.prototype;
|
|
1255
1378
|
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
1256
1379
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1257
|
-
var objIsArr = isArray
|
|
1380
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag$1(object), othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
1258
1381
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
1259
1382
|
othTag = othTag == argsTag ? objectTag : othTag;
|
|
1260
1383
|
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
@@ -1369,7 +1492,7 @@ function hasPath(object, path, hasFunc) {
|
|
|
1369
1492
|
return result;
|
|
1370
1493
|
}
|
|
1371
1494
|
length = object == null ? 0 : object.length;
|
|
1372
|
-
return !!length && isLength(length) && isIndex(key, length) && (isArray
|
|
1495
|
+
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments$1(object));
|
|
1373
1496
|
}
|
|
1374
1497
|
function hasIn(object, path) {
|
|
1375
1498
|
return object != null && hasPath(object, path, baseHasIn);
|
|
@@ -1405,7 +1528,7 @@ function baseIteratee(value) {
|
|
|
1405
1528
|
return identity;
|
|
1406
1529
|
}
|
|
1407
1530
|
if (typeof value == "object") {
|
|
1408
|
-
return isArray
|
|
1531
|
+
return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
1409
1532
|
}
|
|
1410
1533
|
return property(value);
|
|
1411
1534
|
}
|
|
@@ -1446,9 +1569,8 @@ function createBaseEach(eachFunc, fromRight) {
|
|
|
1446
1569
|
var baseEach = createBaseEach(baseForOwn);
|
|
1447
1570
|
const baseEach$1 = baseEach;
|
|
1448
1571
|
var now = function() {
|
|
1449
|
-
return root
|
|
1572
|
+
return root.Date.now();
|
|
1450
1573
|
};
|
|
1451
|
-
const now$1 = now;
|
|
1452
1574
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1453
1575
|
var nativeMax = Math.max, nativeMin = Math.min;
|
|
1454
1576
|
function debounce(func, wait, options) {
|
|
@@ -1484,7 +1606,7 @@ function debounce(func, wait, options) {
|
|
|
1484
1606
|
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
1485
1607
|
}
|
|
1486
1608
|
function timerExpired() {
|
|
1487
|
-
var time = now
|
|
1609
|
+
var time = now();
|
|
1488
1610
|
if (shouldInvoke(time)) {
|
|
1489
1611
|
return trailingEdge(time);
|
|
1490
1612
|
}
|
|
@@ -1506,10 +1628,10 @@ function debounce(func, wait, options) {
|
|
|
1506
1628
|
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
1507
1629
|
}
|
|
1508
1630
|
function flush() {
|
|
1509
|
-
return timerId === void 0 ? result : trailingEdge(now
|
|
1631
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
1510
1632
|
}
|
|
1511
1633
|
function debounced() {
|
|
1512
|
-
var time = now
|
|
1634
|
+
var time = now(), isInvoking = shouldInvoke(time);
|
|
1513
1635
|
lastArgs = arguments;
|
|
1514
1636
|
lastThis = this;
|
|
1515
1637
|
lastCallTime = time;
|
|
@@ -1532,6 +1654,10 @@ function debounce(func, wait, options) {
|
|
|
1532
1654
|
debounced.flush = flush;
|
|
1533
1655
|
return debounced;
|
|
1534
1656
|
}
|
|
1657
|
+
function last(array) {
|
|
1658
|
+
var length = array == null ? 0 : array.length;
|
|
1659
|
+
return length ? array[length - 1] : void 0;
|
|
1660
|
+
}
|
|
1535
1661
|
function baseFilter(collection, predicate) {
|
|
1536
1662
|
var result = [];
|
|
1537
1663
|
baseEach$1(collection, function(value, index2, collection2) {
|
|
@@ -1542,12 +1668,15 @@ function baseFilter(collection, predicate) {
|
|
|
1542
1668
|
return result;
|
|
1543
1669
|
}
|
|
1544
1670
|
function filter(collection, predicate) {
|
|
1545
|
-
var func = isArray
|
|
1671
|
+
var func = isArray(collection) ? arrayFilter : baseFilter;
|
|
1546
1672
|
return func(collection, baseIteratee(predicate));
|
|
1547
1673
|
}
|
|
1548
1674
|
var stringTag = "[object String]";
|
|
1549
1675
|
function isString(value) {
|
|
1550
|
-
return typeof value == "string" || !isArray
|
|
1676
|
+
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
1677
|
+
}
|
|
1678
|
+
function parent(object, path) {
|
|
1679
|
+
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
1551
1680
|
}
|
|
1552
1681
|
var boolTag = "[object Boolean]";
|
|
1553
1682
|
function isBoolean(value) {
|
|
@@ -1560,7 +1689,7 @@ function isEmpty(value) {
|
|
|
1560
1689
|
if (value == null) {
|
|
1561
1690
|
return true;
|
|
1562
1691
|
}
|
|
1563
|
-
if (isArrayLike(value) && (isArray
|
|
1692
|
+
if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$1(value) || isTypedArray$1(value) || isArguments$1(value))) {
|
|
1564
1693
|
return !value.length;
|
|
1565
1694
|
}
|
|
1566
1695
|
var tag = getTag$1(value);
|
|
@@ -1577,8 +1706,37 @@ function isEmpty(value) {
|
|
|
1577
1706
|
}
|
|
1578
1707
|
return true;
|
|
1579
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
|
+
});
|
|
1580
1739
|
var asciiSize = baseProperty("length");
|
|
1581
|
-
const asciiSize$1 = asciiSize;
|
|
1582
1740
|
var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
|
|
1583
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";
|
|
1584
1742
|
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("|") + ")";
|
|
@@ -1591,7 +1749,7 @@ function unicodeSize(string) {
|
|
|
1591
1749
|
return result;
|
|
1592
1750
|
}
|
|
1593
1751
|
function stringSize(string) {
|
|
1594
|
-
return hasUnicode(string) ? unicodeSize(string) : asciiSize
|
|
1752
|
+
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
|
1595
1753
|
}
|
|
1596
1754
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
1597
1755
|
eachFunc(collection, function(value, index2, collection2) {
|
|
@@ -1600,7 +1758,7 @@ function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
|
1600
1758
|
return accumulator;
|
|
1601
1759
|
}
|
|
1602
1760
|
function reduce(collection, iteratee, accumulator) {
|
|
1603
|
-
var func = isArray
|
|
1761
|
+
var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
1604
1762
|
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
|
|
1605
1763
|
}
|
|
1606
1764
|
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
@@ -1618,7 +1776,7 @@ function size(collection) {
|
|
|
1618
1776
|
return baseKeys(collection).length;
|
|
1619
1777
|
}
|
|
1620
1778
|
const analyzeAdaptive = (defaultContainer, adaptive) => {
|
|
1621
|
-
var _a;
|
|
1779
|
+
var _a, _b, _c;
|
|
1622
1780
|
if (isBoolean(adaptive)) {
|
|
1623
1781
|
return {
|
|
1624
1782
|
container: defaultContainer,
|
|
@@ -1628,8 +1786,8 @@ const analyzeAdaptive = (defaultContainer, adaptive) => {
|
|
|
1628
1786
|
}
|
|
1629
1787
|
return {
|
|
1630
1788
|
container: ((_a = adaptive == null ? void 0 : adaptive.getContainer) == null ? void 0 : _a.call(adaptive)) || defaultContainer,
|
|
1631
|
-
adaptiveWidth: (adaptive == null ? void 0 : adaptive.width)
|
|
1632
|
-
adaptiveHeight: (adaptive == null ? void 0 : adaptive.height)
|
|
1789
|
+
adaptiveWidth: (_b = adaptive == null ? void 0 : adaptive.width) != null ? _b : true,
|
|
1790
|
+
adaptiveHeight: (_c = adaptive == null ? void 0 : adaptive.height) != null ? _c : true
|
|
1633
1791
|
};
|
|
1634
1792
|
};
|
|
1635
1793
|
const createResizeObserver = (params) => {
|
|
@@ -1650,8 +1808,8 @@ const createResizeObserver = (params) => {
|
|
|
1650
1808
|
const debounceRender = debounce(render2, RESIZE_RENDER_DELAY);
|
|
1651
1809
|
const onResize = () => {
|
|
1652
1810
|
const { clientWidth: containerWidth, clientHeight: containerHeight } = container;
|
|
1653
|
-
const width = adaptiveWidth ? floor(containerWidth
|
|
1654
|
-
const height = adaptiveHeight ? floor(containerHeight
|
|
1811
|
+
const width = adaptiveWidth ? floor(containerWidth != null ? containerWidth : s2.options.width) : s2.options.width;
|
|
1812
|
+
const height = adaptiveHeight ? floor(containerHeight != null ? containerHeight : s2.options.height) : s2.options.height;
|
|
1655
1813
|
if (!adaptiveWidth && !adaptiveHeight) {
|
|
1656
1814
|
return;
|
|
1657
1815
|
}
|
|
@@ -1681,7 +1839,7 @@ const getDrillDownCache = (spreadsheet, meta) => {
|
|
|
1681
1839
|
"drillDownDataCache",
|
|
1682
1840
|
[]
|
|
1683
1841
|
);
|
|
1684
|
-
const cache = drillDownDataCache.find((
|
|
1842
|
+
const cache = drillDownDataCache == null ? void 0 : drillDownDataCache.find(({ rowId }) => rowId === meta.id);
|
|
1685
1843
|
return {
|
|
1686
1844
|
drillDownDataCache,
|
|
1687
1845
|
drillDownCurrentCache: cache
|
|
@@ -1744,10 +1902,9 @@ const buildDrillDownOptions = (options, partDrillDown, callback) => {
|
|
|
1744
1902
|
};
|
|
1745
1903
|
nextHeaderIcons.push(drillDownActionIcon);
|
|
1746
1904
|
}
|
|
1747
|
-
return {
|
|
1748
|
-
...options,
|
|
1905
|
+
return __spreadProps(__spreadValues({}, options), {
|
|
1749
1906
|
headerActionIcons: nextHeaderIcons
|
|
1750
|
-
};
|
|
1907
|
+
});
|
|
1751
1908
|
};
|
|
1752
1909
|
const handleDrillDown = (params) => {
|
|
1753
1910
|
const { fetchData, spreadsheet, drillFields, drillItemsNum = -1 } = params;
|
|
@@ -2094,7 +2251,6 @@ const _sfc_main$7 = defineComponent({
|
|
|
2094
2251
|
TooltipOperatorMenu
|
|
2095
2252
|
}
|
|
2096
2253
|
});
|
|
2097
|
-
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
2098
2254
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2099
2255
|
const _component_TooltipOperatorMenu = resolveComponent("TooltipOperatorMenu");
|
|
2100
2256
|
const _component_Menu = resolveComponent("Menu");
|
|
@@ -2184,7 +2340,6 @@ const _sfc_main$6 = defineComponent({
|
|
|
2184
2340
|
TooltipOperator
|
|
2185
2341
|
}
|
|
2186
2342
|
});
|
|
2187
|
-
const index_vue_vue_type_style_index_0_lang = "";
|
|
2188
2343
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2189
2344
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
2190
2345
|
const _component_TooltipOperator = resolveComponent("TooltipOperator");
|
|
@@ -2233,18 +2388,17 @@ class CustomTooltip extends BaseTooltip {
|
|
|
2233
2388
|
super(spreadsheet);
|
|
2234
2389
|
}
|
|
2235
2390
|
renderContent() {
|
|
2236
|
-
var _a;
|
|
2391
|
+
var _a, _b;
|
|
2237
2392
|
const { tooltip } = this.spreadsheet.options;
|
|
2238
2393
|
const showOptions = this.options;
|
|
2239
2394
|
const cell = this.spreadsheet.getCell(
|
|
2240
2395
|
(_a = showOptions.event) == null ? void 0 : _a.target
|
|
2241
2396
|
);
|
|
2242
|
-
const content = showOptions.content
|
|
2243
|
-
const tooltipProps = {
|
|
2244
|
-
...showOptions,
|
|
2397
|
+
const content = (_b = showOptions.content) != null ? _b : tooltip == null ? void 0 : tooltip.content;
|
|
2398
|
+
const tooltipProps = __spreadProps(__spreadValues({}, showOptions), {
|
|
2245
2399
|
cell,
|
|
2246
2400
|
content
|
|
2247
|
-
};
|
|
2401
|
+
});
|
|
2248
2402
|
const tooltipVNode = createVNode(
|
|
2249
2403
|
TooltipComponent,
|
|
2250
2404
|
tooltipProps,
|
|
@@ -2265,13 +2419,13 @@ class CustomTooltip extends BaseTooltip {
|
|
|
2265
2419
|
const DEFAULT_PAGE_NUMBER = 1;
|
|
2266
2420
|
const DEFAULT_PAGE_SIZE = 10;
|
|
2267
2421
|
const usePagination = (s2Ref, props) => {
|
|
2268
|
-
var _a, _b
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
);
|
|
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);
|
|
2275
2429
|
const total = ref(0);
|
|
2276
2430
|
const change = (nextCurrent) => {
|
|
2277
2431
|
current.value = nextCurrent;
|
|
@@ -2279,18 +2433,14 @@ const usePagination = (s2Ref, props) => {
|
|
|
2279
2433
|
const showSizeChange = (nextPageSize) => {
|
|
2280
2434
|
pageSize.value = nextPageSize;
|
|
2281
2435
|
};
|
|
2282
|
-
const visible = computed(
|
|
2283
|
-
()
|
|
2284
|
-
|
|
2285
|
-
return props.showPagination && !isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination);
|
|
2286
|
-
}
|
|
2287
|
-
);
|
|
2436
|
+
const visible = computed(() => {
|
|
2437
|
+
return showPagination && !isEmpty(paginationCfg);
|
|
2438
|
+
});
|
|
2288
2439
|
watch([current, pageSize], () => {
|
|
2289
|
-
var _a2;
|
|
2290
2440
|
if (!s2Ref.value) {
|
|
2291
2441
|
return;
|
|
2292
2442
|
}
|
|
2293
|
-
const nextPagination = isEmpty(
|
|
2443
|
+
const nextPagination = isEmpty(paginationCfg) ? null : {
|
|
2294
2444
|
current: current.value,
|
|
2295
2445
|
pageSize: pageSize.value
|
|
2296
2446
|
};
|
|
@@ -2298,15 +2448,12 @@ const usePagination = (s2Ref, props) => {
|
|
|
2298
2448
|
s2Ref.value.render(false);
|
|
2299
2449
|
});
|
|
2300
2450
|
watch(
|
|
2301
|
-
[() =>
|
|
2302
|
-
var _a2;
|
|
2303
|
-
return (_a2 = props.options) == null ? void 0 : _a2.pagination;
|
|
2304
|
-
}, s2Ref],
|
|
2451
|
+
[() => paginationCfg, s2Ref],
|
|
2305
2452
|
() => {
|
|
2306
|
-
var _a2, _b2,
|
|
2307
|
-
current.value = (
|
|
2308
|
-
pageSize.value = (
|
|
2309
|
-
total.value = ((
|
|
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;
|
|
2310
2457
|
},
|
|
2311
2458
|
{
|
|
2312
2459
|
immediate: true
|
|
@@ -2317,8 +2464,7 @@ const usePagination = (s2Ref, props) => {
|
|
|
2317
2464
|
return;
|
|
2318
2465
|
}
|
|
2319
2466
|
const totalUpdateCallback = (data) => {
|
|
2320
|
-
|
|
2321
|
-
if (isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination)) {
|
|
2467
|
+
if (isEmpty(paginationCfg)) {
|
|
2322
2468
|
return;
|
|
2323
2469
|
}
|
|
2324
2470
|
total.value = data.total;
|
|
@@ -2330,6 +2476,7 @@ const usePagination = (s2Ref, props) => {
|
|
|
2330
2476
|
});
|
|
2331
2477
|
});
|
|
2332
2478
|
return {
|
|
2479
|
+
customOptions: omit(paginationCfg, ["current", "pageSize", "total"]),
|
|
2333
2480
|
visible,
|
|
2334
2481
|
current,
|
|
2335
2482
|
pageSize,
|
|
@@ -2353,7 +2500,8 @@ const _sfc_main$5 = defineComponent({
|
|
|
2353
2500
|
pageSize: {
|
|
2354
2501
|
type: Number,
|
|
2355
2502
|
default: DEFAULT_PAGE_SIZE
|
|
2356
|
-
}
|
|
2503
|
+
},
|
|
2504
|
+
customOptions: Object
|
|
2357
2505
|
},
|
|
2358
2506
|
emits: ["change", "showSizeChange"],
|
|
2359
2507
|
setup: (props) => {
|
|
@@ -2373,17 +2521,18 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2373
2521
|
return openBlock(), createElementBlock("div", {
|
|
2374
2522
|
class: normalizeClass(_ctx.PRE_CLASS)
|
|
2375
2523
|
}, [
|
|
2376
|
-
createVNode(_component_AntDPagination, {
|
|
2524
|
+
createVNode(_component_AntDPagination, mergeProps({
|
|
2525
|
+
size: "small",
|
|
2377
2526
|
"default-current": 1,
|
|
2527
|
+
showSizeChanger: true,
|
|
2528
|
+
showQuickJumper: _ctx.showQuickJumper
|
|
2529
|
+
}, _ctx.customOptions, {
|
|
2378
2530
|
current: _ctx.current,
|
|
2379
2531
|
total: _ctx.total,
|
|
2380
2532
|
pageSize: _ctx.pageSize,
|
|
2381
|
-
showSizeChanger: true,
|
|
2382
2533
|
onShowSizeChange: _cache[0] || (_cache[0] = (_, size2) => _ctx.$emit("showSizeChange", size2)),
|
|
2383
|
-
size: "small",
|
|
2384
|
-
showQuickJumper: _ctx.showQuickJumper,
|
|
2385
2534
|
onChange: _cache[1] || (_cache[1] = (current) => _ctx.$emit("change", current))
|
|
2386
|
-
}, null,
|
|
2535
|
+
}), null, 16, ["showQuickJumper", "current", "total", "pageSize"]),
|
|
2387
2536
|
createElementVNode("span", {
|
|
2388
2537
|
class: normalizeClass(`${_ctx.PRE_CLASS}-count`)
|
|
2389
2538
|
}, toDisplayString(_ctx.i18n("共计")) + " " + toDisplayString(_ctx.total || " - ") + " " + toDisplayString(_ctx.i18n("条")), 3)
|
|
@@ -3013,7 +3162,6 @@ const _sfc_main$4 = defineComponent({
|
|
|
3013
3162
|
S2Pagination
|
|
3014
3163
|
}
|
|
3015
3164
|
});
|
|
3016
|
-
const baseSheet_vue_vue_type_style_index_0_lang = "";
|
|
3017
3165
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3018
3166
|
const _component_S2Pagination = resolveComponent("S2Pagination");
|
|
3019
3167
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -3035,9 +3183,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3035
3183
|
current: _ctx.pagination.current.value,
|
|
3036
3184
|
pageSize: _ctx.pagination.pageSize.value,
|
|
3037
3185
|
total: _ctx.pagination.total.value,
|
|
3186
|
+
customOptions: _ctx.pagination.customOptions,
|
|
3038
3187
|
onChange: _ctx.handlePageChange,
|
|
3039
3188
|
onShowSizeChange: _ctx.handlePageSizeChange
|
|
3040
|
-
}, null, 8, ["current", "pageSize", "total", "onChange", "onShowSizeChange"])) : createCommentVNode("", true)
|
|
3189
|
+
}, null, 8, ["current", "pageSize", "total", "customOptions", "onChange", "onShowSizeChange"])) : createCommentVNode("", true)
|
|
3041
3190
|
], 2)
|
|
3042
3191
|
]),
|
|
3043
3192
|
_: 1
|
|
@@ -3169,7 +3318,6 @@ const _sfc_main$3 = defineComponent({
|
|
|
3169
3318
|
};
|
|
3170
3319
|
}
|
|
3171
3320
|
});
|
|
3172
|
-
const index_vue_vue_type_style_index_0_scoped_8dd920ec_lang = "";
|
|
3173
3321
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3174
3322
|
const _component_Button = resolveComponent("Button");
|
|
3175
3323
|
const _component_Input = resolveComponent("Input");
|
|
@@ -3248,7 +3396,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
3248
3396
|
const { dataCfg, partDrillDown } = toRefs(props);
|
|
3249
3397
|
const drillFields = ref([]);
|
|
3250
3398
|
const setDrillFields = (fields) => {
|
|
3251
|
-
var _a, _b, _c, _d, _e;
|
|
3399
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3252
3400
|
const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
|
|
3253
3401
|
drillFields.value = fields;
|
|
3254
3402
|
instance == null ? void 0 : instance.hideTooltip();
|
|
@@ -3256,10 +3404,10 @@ const _sfc_main$2 = defineComponent({
|
|
|
3256
3404
|
instance == null ? void 0 : instance.clearDrillDownData((_b = instance == null ? void 0 : instance.store.get("drillDownNode")) == null ? void 0 : _b.id);
|
|
3257
3405
|
} else {
|
|
3258
3406
|
handleDrillDown({
|
|
3259
|
-
rows: ((_c = dataCfg.value) == null ? void 0 : _c.fields.rows)
|
|
3407
|
+
rows: (_d = (_c = dataCfg.value) == null ? void 0 : _c.fields.rows) != null ? _d : [],
|
|
3260
3408
|
drillFields: fields,
|
|
3261
|
-
fetchData: (
|
|
3262
|
-
drillItemsNum: (
|
|
3409
|
+
fetchData: (_e = partDrillDown.value) == null ? void 0 : _e["fetchData"],
|
|
3410
|
+
drillItemsNum: (_f = partDrillDown.value) == null ? void 0 : _f["drillItemsNum"],
|
|
3263
3411
|
spreadsheet: instance
|
|
3264
3412
|
});
|
|
3265
3413
|
}
|
|
@@ -3269,12 +3417,11 @@ const _sfc_main$2 = defineComponent({
|
|
|
3269
3417
|
const { event, disabledFields } = params;
|
|
3270
3418
|
if (event) {
|
|
3271
3419
|
const instance = (_a = s2Ref == null ? void 0 : s2Ref.value) == null ? void 0 : _a.instance;
|
|
3272
|
-
const drillDownNode = createVNode(DrillDown, {
|
|
3273
|
-
...(_b = partDrillDown.value) == null ? void 0 : _b["drillConfig"],
|
|
3420
|
+
const drillDownNode = createVNode(DrillDown, __spreadProps(__spreadValues({}, (_b = partDrillDown.value) == null ? void 0 : _b["drillConfig"]), {
|
|
3274
3421
|
setDrillFields,
|
|
3275
3422
|
drillFields: drillFields.value,
|
|
3276
3423
|
disabledFields
|
|
3277
|
-
});
|
|
3424
|
+
}));
|
|
3278
3425
|
instance == null ? void 0 : instance.showTooltip({
|
|
3279
3426
|
position: {
|
|
3280
3427
|
x: event.clientX,
|
|
@@ -3352,7 +3499,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3352
3499
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
|
|
3353
3500
|
}
|
|
3354
3501
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3355
|
-
const version = "@antv/s2-vue-v2.0.0-next.
|
|
3502
|
+
const version = "@antv/s2-vue-v2.0.0-next.13";
|
|
3356
3503
|
export {
|
|
3357
3504
|
BaseSheet,
|
|
3358
3505
|
CustomTooltip,
|