@yester/virtual-table 1.2.0 → 1.2.2
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/README.md +0 -0
- package/dist/components/Icons/DownCircleOutlined.d.ts +0 -0
- package/dist/components/Icons/UpCircleOutlined.d.ts +0 -0
- package/dist/components/VirtualTable/Cell.d.ts +0 -0
- package/dist/components/VirtualTable/Renderer.d.ts +0 -0
- package/dist/components/VirtualTable/TableHeader.d.ts +0 -0
- package/dist/components/VirtualTable/index.d.ts +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/style.css +0 -0
- package/dist/test/setup.d.ts +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/utils/cloneDeep.d.ts +0 -0
- package/dist/utils/dataHandler.d.ts +0 -0
- package/dist/utils/pivotHandler.d.ts +0 -0
- package/dist/utils/vars.d.ts +0 -0
- package/dist/virtual-table.es.js +457 -448
- package/dist/virtual-table.es.js.map +1 -1
- package/dist/virtual-table.umd.js +12 -12
- package/dist/virtual-table.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/virtual-table.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as oe from "react";
|
|
2
2
|
import Ye, { version as Pr, isValidElement as jr, forwardRef as Ar, useMemo as ye, memo as Jt, useState as Ie, useImperativeHandle as Mr, useEffect as Qe, createElement as It, useLayoutEffect as _t, useRef as ze, useCallback as ge } from "react";
|
|
3
3
|
import $t from "react-dom";
|
|
4
4
|
function zr(e) {
|
|
@@ -45,26 +45,26 @@ var Ve = {};
|
|
|
45
45
|
var kt;
|
|
46
46
|
function $r() {
|
|
47
47
|
return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
-
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A = Symbol.iterator,
|
|
48
|
+
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A = Symbol.iterator, T = "@@iterator";
|
|
49
49
|
function u(o) {
|
|
50
50
|
if (o === null || typeof o != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var d = A && o[A] || o[
|
|
52
|
+
var d = A && o[A] || o[T];
|
|
53
53
|
return typeof d == "function" ? d : null;
|
|
54
54
|
}
|
|
55
55
|
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
56
|
function P(o) {
|
|
57
57
|
{
|
|
58
|
-
for (var d = arguments.length,
|
|
59
|
-
|
|
60
|
-
J("error", o,
|
|
58
|
+
for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), L = 1; L < d; L++)
|
|
59
|
+
y[L - 1] = arguments[L];
|
|
60
|
+
J("error", o, y);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function J(o, d,
|
|
63
|
+
function J(o, d, y) {
|
|
64
64
|
{
|
|
65
65
|
var L = j.ReactDebugCurrentFrame, G = L.getStackAddendum();
|
|
66
|
-
G !== "" && (d += "%s",
|
|
67
|
-
var X =
|
|
66
|
+
G !== "" && (d += "%s", y = y.concat([G]));
|
|
67
|
+
var X = y.map(function(B) {
|
|
68
68
|
return String(B);
|
|
69
69
|
});
|
|
70
70
|
X.unshift("Warning: " + d), Function.prototype.apply.call(console[o], console, X);
|
|
@@ -79,12 +79,12 @@ function $r() {
|
|
|
79
79
|
// with.
|
|
80
80
|
o.$$typeof === F || o.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function W(o, d,
|
|
82
|
+
function W(o, d, y) {
|
|
83
83
|
var L = o.displayName;
|
|
84
84
|
if (L)
|
|
85
85
|
return L;
|
|
86
86
|
var G = d.displayName || d.name || "";
|
|
87
|
-
return G !== "" ?
|
|
87
|
+
return G !== "" ? y + "(" + G + ")" : y;
|
|
88
88
|
}
|
|
89
89
|
function H(o) {
|
|
90
90
|
return o.displayName || "Context";
|
|
@@ -116,8 +116,8 @@ function $r() {
|
|
|
116
116
|
var d = o;
|
|
117
117
|
return H(d) + ".Consumer";
|
|
118
118
|
case a:
|
|
119
|
-
var
|
|
120
|
-
return H(
|
|
119
|
+
var y = o;
|
|
120
|
+
return H(y._context) + ".Provider";
|
|
121
121
|
case l:
|
|
122
122
|
return W(o, o.render, "ForwardRef");
|
|
123
123
|
case E:
|
|
@@ -134,14 +134,14 @@ function $r() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
137
|
+
var re = Object.assign, he = 0, be, Te, _e, Ee, Se, v, C;
|
|
138
138
|
function w() {
|
|
139
139
|
}
|
|
140
140
|
w.__reactDisabledLog = !0;
|
|
141
|
-
function
|
|
141
|
+
function m() {
|
|
142
142
|
{
|
|
143
143
|
if (he === 0) {
|
|
144
|
-
be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group,
|
|
144
|
+
be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group, v = console.groupCollapsed, C = console.groupEnd;
|
|
145
145
|
var o = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
@@ -161,7 +161,7 @@ function $r() {
|
|
|
161
161
|
he++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function g() {
|
|
165
165
|
{
|
|
166
166
|
if (he--, he === 0) {
|
|
167
167
|
var o = {
|
|
@@ -170,25 +170,25 @@ function $r() {
|
|
|
170
170
|
writable: !0
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
|
-
log:
|
|
173
|
+
log: re({}, o, {
|
|
174
174
|
value: be
|
|
175
175
|
}),
|
|
176
|
-
info:
|
|
176
|
+
info: re({}, o, {
|
|
177
177
|
value: Te
|
|
178
178
|
}),
|
|
179
|
-
warn:
|
|
179
|
+
warn: re({}, o, {
|
|
180
180
|
value: _e
|
|
181
181
|
}),
|
|
182
|
-
error:
|
|
182
|
+
error: re({}, o, {
|
|
183
183
|
value: Ee
|
|
184
184
|
}),
|
|
185
|
-
group:
|
|
185
|
+
group: re({}, o, {
|
|
186
186
|
value: Se
|
|
187
187
|
}),
|
|
188
|
-
groupCollapsed:
|
|
189
|
-
value:
|
|
188
|
+
groupCollapsed: re({}, o, {
|
|
189
|
+
value: v
|
|
190
190
|
}),
|
|
191
|
-
groupEnd:
|
|
191
|
+
groupEnd: re({}, o, {
|
|
192
192
|
value: C
|
|
193
193
|
})
|
|
194
194
|
});
|
|
@@ -196,8 +196,8 @@ function $r() {
|
|
|
196
196
|
he < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var
|
|
200
|
-
function R(o, d,
|
|
199
|
+
var x = j.ReactCurrentDispatcher, _;
|
|
200
|
+
function R(o, d, y) {
|
|
201
201
|
{
|
|
202
202
|
if (_ === void 0)
|
|
203
203
|
try {
|
|
@@ -215,20 +215,20 @@ function $r() {
|
|
|
215
215
|
var Y = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
216
|
$ = new Y();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ne(o, d) {
|
|
219
219
|
if (!o || S)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
222
|
+
var y = $.get(o);
|
|
223
|
+
if (y !== void 0)
|
|
224
|
+
return y;
|
|
225
225
|
}
|
|
226
226
|
var L;
|
|
227
227
|
S = !0;
|
|
228
228
|
var G = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
230
|
var X;
|
|
231
|
-
X =
|
|
231
|
+
X = x.current, x.current = null, m();
|
|
232
232
|
try {
|
|
233
233
|
if (d) {
|
|
234
234
|
var B = function() {
|
|
@@ -265,39 +265,39 @@ function $r() {
|
|
|
265
265
|
if (ve && L && typeof ve.stack == "string") {
|
|
266
266
|
for (var V = ve.stack.split(`
|
|
267
267
|
`), de = L.stack.split(`
|
|
268
|
-
`),
|
|
269
|
-
|
|
270
|
-
for (;
|
|
271
|
-
if (V[
|
|
272
|
-
if (
|
|
268
|
+
`), ie = V.length - 1, le = de.length - 1; ie >= 1 && le >= 0 && V[ie] !== de[le]; )
|
|
269
|
+
le--;
|
|
270
|
+
for (; ie >= 1 && le >= 0; ie--, le--)
|
|
271
|
+
if (V[ie] !== de[le]) {
|
|
272
|
+
if (ie !== 1 || le !== 1)
|
|
273
273
|
do
|
|
274
|
-
if (
|
|
274
|
+
if (ie--, le--, le < 0 || V[ie] !== de[le]) {
|
|
275
275
|
var we = `
|
|
276
|
-
` + V[
|
|
276
|
+
` + V[ie].replace(" at new ", " at ");
|
|
277
277
|
return o.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", o.displayName)), typeof o == "function" && $.set(o, we), we;
|
|
278
278
|
}
|
|
279
|
-
while (
|
|
279
|
+
while (ie >= 1 && le >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} finally {
|
|
284
|
-
S = !1,
|
|
284
|
+
S = !1, x.current = X, g(), Error.prepareStackTrace = G;
|
|
285
285
|
}
|
|
286
286
|
var ke = o ? o.displayName || o.name : "", Me = ke ? R(ke) : "";
|
|
287
287
|
return typeof o == "function" && $.set(o, Me), Me;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
289
|
+
function ee(o, d, y) {
|
|
290
|
+
return ne(o, !1);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function O(o) {
|
|
293
293
|
var d = o.prototype;
|
|
294
294
|
return !!(d && d.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Z(o, d, y) {
|
|
297
297
|
if (o == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof o == "function")
|
|
300
|
-
return
|
|
300
|
+
return ne(o, O(o));
|
|
301
301
|
if (typeof o == "string")
|
|
302
302
|
return R(o);
|
|
303
303
|
switch (o) {
|
|
@@ -309,54 +309,54 @@ function $r() {
|
|
|
309
309
|
if (typeof o == "object")
|
|
310
310
|
switch (o.$$typeof) {
|
|
311
311
|
case l:
|
|
312
|
-
return
|
|
312
|
+
return ee(o.render);
|
|
313
313
|
case E:
|
|
314
|
-
return
|
|
314
|
+
return Z(o.type, d, y);
|
|
315
315
|
case b: {
|
|
316
316
|
var L = o, G = L._payload, X = L._init;
|
|
317
317
|
try {
|
|
318
|
-
return
|
|
318
|
+
return Z(X(G), d, y);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var
|
|
325
|
+
var te = Object.prototype.hasOwnProperty, fe = {}, $e = j.ReactDebugCurrentFrame;
|
|
326
326
|
function pe(o) {
|
|
327
327
|
if (o) {
|
|
328
|
-
var d = o._owner,
|
|
329
|
-
$e.setExtraStackFrame(
|
|
328
|
+
var d = o._owner, y = Z(o.type, o._source, d ? d.type : null);
|
|
329
|
+
$e.setExtraStackFrame(y);
|
|
330
330
|
} else
|
|
331
331
|
$e.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function se(o, d, y, L, G) {
|
|
334
334
|
{
|
|
335
|
-
var X = Function.call.bind(
|
|
335
|
+
var X = Function.call.bind(te);
|
|
336
336
|
for (var B in o)
|
|
337
337
|
if (X(o, B)) {
|
|
338
338
|
var V = void 0;
|
|
339
339
|
try {
|
|
340
340
|
if (typeof o[B] != "function") {
|
|
341
|
-
var de = Error((L || "React class") + ": " +
|
|
341
|
+
var de = Error((L || "React class") + ": " + y + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
342
|
throw de.name = "Invariant Violation", de;
|
|
343
343
|
}
|
|
344
|
-
V = o[B](d, B, L,
|
|
345
|
-
} catch (
|
|
346
|
-
V =
|
|
344
|
+
V = o[B](d, B, L, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
|
+
} catch (ie) {
|
|
346
|
+
V = ie;
|
|
347
347
|
}
|
|
348
|
-
V && !(V instanceof Error) && (pe(G), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class",
|
|
348
|
+
V && !(V instanceof Error) && (pe(G), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", y, B, typeof V), pe(null)), V instanceof Error && !(V.message in fe) && (fe[V.message] = !0, pe(G), P("Failed %s type: %s", y, V.message), pe(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
var
|
|
352
|
+
var ae = Array.isArray;
|
|
353
353
|
function ce(o) {
|
|
354
|
-
return
|
|
354
|
+
return ae(o);
|
|
355
355
|
}
|
|
356
356
|
function je(o) {
|
|
357
357
|
{
|
|
358
|
-
var d = typeof Symbol == "function" && Symbol.toStringTag,
|
|
359
|
-
return
|
|
358
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, y = d && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
359
|
+
return y;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
function Ke(o) {
|
|
@@ -381,7 +381,7 @@ function $r() {
|
|
|
381
381
|
}, Ct, xt, tt;
|
|
382
382
|
tt = {};
|
|
383
383
|
function dr(o) {
|
|
384
|
-
if (
|
|
384
|
+
if (te.call(o, "ref")) {
|
|
385
385
|
var d = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
386
386
|
if (d && d.isReactWarning)
|
|
387
387
|
return !1;
|
|
@@ -389,7 +389,7 @@ function $r() {
|
|
|
389
389
|
return o.ref !== void 0;
|
|
390
390
|
}
|
|
391
391
|
function hr(o) {
|
|
392
|
-
if (
|
|
392
|
+
if (te.call(o, "key")) {
|
|
393
393
|
var d = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
394
394
|
if (d && d.isReactWarning)
|
|
395
395
|
return !1;
|
|
@@ -398,40 +398,40 @@ function $r() {
|
|
|
398
398
|
}
|
|
399
399
|
function pr(o, d) {
|
|
400
400
|
if (typeof o.ref == "string" && Ce.current && d && Ce.current.stateNode !== d) {
|
|
401
|
-
var
|
|
402
|
-
tt[
|
|
401
|
+
var y = K(Ce.current.type);
|
|
402
|
+
tt[y] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', K(Ce.current.type), o.ref), tt[y] = !0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
function vr(o, d) {
|
|
406
406
|
{
|
|
407
|
-
var
|
|
407
|
+
var y = function() {
|
|
408
408
|
Ct || (Ct = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
get:
|
|
410
|
+
y.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
411
|
+
get: y,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
function mr(o, d) {
|
|
417
417
|
{
|
|
418
|
-
var
|
|
418
|
+
var y = function() {
|
|
419
419
|
xt || (xt = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
420
420
|
};
|
|
421
|
-
|
|
422
|
-
get:
|
|
421
|
+
y.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
422
|
+
get: y,
|
|
423
423
|
configurable: !0
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var gr = function(o, d,
|
|
427
|
+
var gr = function(o, d, y, L, G, X, B) {
|
|
428
428
|
var V = {
|
|
429
429
|
// This tag allows us to uniquely identify this as a React Element
|
|
430
430
|
$$typeof: t,
|
|
431
431
|
// Built-in properties that belong on the element
|
|
432
432
|
type: o,
|
|
433
433
|
key: d,
|
|
434
|
-
ref:
|
|
434
|
+
ref: y,
|
|
435
435
|
props: B,
|
|
436
436
|
// Record the component responsible for creating this element.
|
|
437
437
|
_owner: X
|
|
@@ -453,20 +453,20 @@ function $r() {
|
|
|
453
453
|
value: G
|
|
454
454
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
455
455
|
};
|
|
456
|
-
function yr(o, d,
|
|
456
|
+
function yr(o, d, y, L, G) {
|
|
457
457
|
{
|
|
458
458
|
var X, B = {}, V = null, de = null;
|
|
459
|
-
|
|
459
|
+
y !== void 0 && (Ne(y), V = "" + y), hr(d) && (Ne(d.key), V = "" + d.key), dr(d) && (de = d.ref, pr(d, G));
|
|
460
460
|
for (X in d)
|
|
461
|
-
|
|
461
|
+
te.call(d, X) && !fr.hasOwnProperty(X) && (B[X] = d[X]);
|
|
462
462
|
if (o && o.defaultProps) {
|
|
463
|
-
var
|
|
464
|
-
for (X in
|
|
465
|
-
B[X] === void 0 && (B[X] =
|
|
463
|
+
var ie = o.defaultProps;
|
|
464
|
+
for (X in ie)
|
|
465
|
+
B[X] === void 0 && (B[X] = ie[X]);
|
|
466
466
|
}
|
|
467
467
|
if (V || de) {
|
|
468
|
-
var
|
|
469
|
-
V && vr(B,
|
|
468
|
+
var le = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
469
|
+
V && vr(B, le), de && mr(B, le);
|
|
470
470
|
}
|
|
471
471
|
return gr(o, V, de, G, L, Ce.current, B);
|
|
472
472
|
}
|
|
@@ -474,8 +474,8 @@ function $r() {
|
|
|
474
474
|
var rt = j.ReactCurrentOwner, Ot = j.ReactDebugCurrentFrame;
|
|
475
475
|
function Le(o) {
|
|
476
476
|
if (o) {
|
|
477
|
-
var d = o._owner,
|
|
478
|
-
Ot.setExtraStackFrame(
|
|
477
|
+
var d = o._owner, y = Z(o.type, o._source, d ? d.type : null);
|
|
478
|
+
Ot.setExtraStackFrame(y);
|
|
479
479
|
} else
|
|
480
480
|
Ot.setExtraStackFrame(null);
|
|
481
481
|
}
|
|
@@ -499,10 +499,10 @@ Check the render method of \`` + o + "`.";
|
|
|
499
499
|
function br(o) {
|
|
500
500
|
{
|
|
501
501
|
if (o !== void 0) {
|
|
502
|
-
var d = o.fileName.replace(/^.*[\\\/]/, ""),
|
|
502
|
+
var d = o.fileName.replace(/^.*[\\\/]/, ""), y = o.lineNumber;
|
|
503
503
|
return `
|
|
504
504
|
|
|
505
|
-
Check your code at ` + d + ":" +
|
|
505
|
+
Check your code at ` + d + ":" + y + ".";
|
|
506
506
|
}
|
|
507
507
|
return "";
|
|
508
508
|
}
|
|
@@ -512,10 +512,10 @@ Check your code at ` + d + ":" + m + ".";
|
|
|
512
512
|
{
|
|
513
513
|
var d = Tt();
|
|
514
514
|
if (!d) {
|
|
515
|
-
var
|
|
516
|
-
|
|
515
|
+
var y = typeof o == "string" ? o : o.displayName || o.name;
|
|
516
|
+
y && (d = `
|
|
517
517
|
|
|
518
|
-
Check the top-level render call using <` +
|
|
518
|
+
Check the top-level render call using <` + y + ">.");
|
|
519
519
|
}
|
|
520
520
|
return d;
|
|
521
521
|
}
|
|
@@ -525,12 +525,12 @@ Check the top-level render call using <` + m + ">.");
|
|
|
525
525
|
if (!o._store || o._store.validated || o.key != null)
|
|
526
526
|
return;
|
|
527
527
|
o._store.validated = !0;
|
|
528
|
-
var
|
|
529
|
-
if (Pt[
|
|
528
|
+
var y = Er(d);
|
|
529
|
+
if (Pt[y])
|
|
530
530
|
return;
|
|
531
|
-
Pt[
|
|
531
|
+
Pt[y] = !0;
|
|
532
532
|
var L = "";
|
|
533
|
-
o && o._owner && o._owner !== rt.current && (L = " It was passed a child from " + K(o._owner.type) + "."), Le(o), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
533
|
+
o && o._owner && o._owner !== rt.current && (L = " It was passed a child from " + K(o._owner.type) + "."), Le(o), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, L), Le(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
function At(o, d) {
|
|
@@ -538,8 +538,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
538
538
|
if (typeof o != "object")
|
|
539
539
|
return;
|
|
540
540
|
if (ce(o))
|
|
541
|
-
for (var
|
|
542
|
-
var L = o[
|
|
541
|
+
for (var y = 0; y < o.length; y++) {
|
|
542
|
+
var L = o[y];
|
|
543
543
|
ot(L) && jt(L, d);
|
|
544
544
|
}
|
|
545
545
|
else if (ot(o))
|
|
@@ -557,18 +557,18 @@ Check the top-level render call using <` + m + ">.");
|
|
|
557
557
|
var d = o.type;
|
|
558
558
|
if (d == null || typeof d == "string")
|
|
559
559
|
return;
|
|
560
|
-
var
|
|
560
|
+
var y;
|
|
561
561
|
if (typeof d == "function")
|
|
562
|
-
|
|
562
|
+
y = d.propTypes;
|
|
563
563
|
else if (typeof d == "object" && (d.$$typeof === l || // Note: Memo only checks outer props here.
|
|
564
564
|
// Inner props are checked in the reconciler.
|
|
565
565
|
d.$$typeof === E))
|
|
566
|
-
|
|
566
|
+
y = d.propTypes;
|
|
567
567
|
else
|
|
568
568
|
return;
|
|
569
|
-
if (
|
|
569
|
+
if (y) {
|
|
570
570
|
var L = K(d);
|
|
571
|
-
|
|
571
|
+
se(y, o.props, "prop", L, o);
|
|
572
572
|
} else if (d.PropTypes !== void 0 && !nt) {
|
|
573
573
|
nt = !0;
|
|
574
574
|
var G = K(d);
|
|
@@ -579,8 +579,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
579
579
|
}
|
|
580
580
|
function _r(o) {
|
|
581
581
|
{
|
|
582
|
-
for (var d = Object.keys(o.props),
|
|
583
|
-
var L = d[
|
|
582
|
+
for (var d = Object.keys(o.props), y = 0; y < d.length; y++) {
|
|
583
|
+
var L = d[y];
|
|
584
584
|
if (L !== "children" && L !== "key") {
|
|
585
585
|
Le(o), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Le(null);
|
|
586
586
|
break;
|
|
@@ -590,7 +590,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
var Mt = {};
|
|
593
|
-
function zt(o, d,
|
|
593
|
+
function zt(o, d, y, L, G, X) {
|
|
594
594
|
{
|
|
595
595
|
var B = M(o);
|
|
596
596
|
if (!B) {
|
|
@@ -598,12 +598,12 @@ Check the top-level render call using <` + m + ">.");
|
|
|
598
598
|
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
599
599
|
var de = br(G);
|
|
600
600
|
de ? V += de : V += Tt();
|
|
601
|
-
var
|
|
602
|
-
o === null ?
|
|
601
|
+
var ie;
|
|
602
|
+
o === null ? ie = "null" : ce(o) ? ie = "array" : o !== void 0 && o.$$typeof === t ? (ie = "<" + (K(o.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof o, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ie, V);
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
if (
|
|
606
|
-
return
|
|
604
|
+
var le = yr(o, d, y, G, X);
|
|
605
|
+
if (le == null)
|
|
606
|
+
return le;
|
|
607
607
|
if (B) {
|
|
608
608
|
var we = d.children;
|
|
609
609
|
if (we !== void 0)
|
|
@@ -617,7 +617,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
617
617
|
else
|
|
618
618
|
At(we, o);
|
|
619
619
|
}
|
|
620
|
-
if (
|
|
620
|
+
if (te.call(d, "key")) {
|
|
621
621
|
var Me = K(o), ve = Object.keys(d).filter(function(Tr) {
|
|
622
622
|
return Tr !== "key";
|
|
623
623
|
}), it = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -631,21 +631,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
631
631
|
<%s key={someKey} {...props} />`, it, Me, Or, Me), Mt[Me + it] = !0;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return o === n ? _r(
|
|
634
|
+
return o === n ? _r(le) : wr(le), le;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function Rr(o, d,
|
|
638
|
-
return zt(o, d,
|
|
637
|
+
function Rr(o, d, y) {
|
|
638
|
+
return zt(o, d, y, !0);
|
|
639
639
|
}
|
|
640
|
-
function Sr(o, d,
|
|
641
|
-
return zt(o, d,
|
|
640
|
+
function Sr(o, d, y) {
|
|
641
|
+
return zt(o, d, y, !1);
|
|
642
642
|
}
|
|
643
643
|
var Cr = Sr, xr = Rr;
|
|
644
644
|
Ve.Fragment = n, Ve.jsx = Cr, Ve.jsxs = xr;
|
|
645
645
|
}()), Ve;
|
|
646
646
|
}
|
|
647
647
|
process.env.NODE_ENV === "production" ? ht.exports = Ir() : ht.exports = $r();
|
|
648
|
-
var
|
|
648
|
+
var Q = ht.exports;
|
|
649
649
|
function pt() {
|
|
650
650
|
return pt = Object.assign ? Object.assign.bind() : function(e) {
|
|
651
651
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -764,7 +764,7 @@ function Hr() {
|
|
|
764
764
|
Vt = 1;
|
|
765
765
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), h = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A;
|
|
766
766
|
A = Symbol.for("react.module.reference");
|
|
767
|
-
function
|
|
767
|
+
function T(u) {
|
|
768
768
|
if (typeof u == "object" && u !== null) {
|
|
769
769
|
var j = u.$$typeof;
|
|
770
770
|
switch (j) {
|
|
@@ -799,32 +799,32 @@ function Hr() {
|
|
|
799
799
|
}, U.isConcurrentMode = function() {
|
|
800
800
|
return !1;
|
|
801
801
|
}, U.isContextConsumer = function(u) {
|
|
802
|
-
return
|
|
802
|
+
return T(u) === a;
|
|
803
803
|
}, U.isContextProvider = function(u) {
|
|
804
|
-
return
|
|
804
|
+
return T(u) === s;
|
|
805
805
|
}, U.isElement = function(u) {
|
|
806
806
|
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
807
807
|
}, U.isForwardRef = function(u) {
|
|
808
|
-
return
|
|
808
|
+
return T(u) === l;
|
|
809
809
|
}, U.isFragment = function(u) {
|
|
810
|
-
return
|
|
810
|
+
return T(u) === r;
|
|
811
811
|
}, U.isLazy = function(u) {
|
|
812
|
-
return
|
|
812
|
+
return T(u) === b;
|
|
813
813
|
}, U.isMemo = function(u) {
|
|
814
|
-
return
|
|
814
|
+
return T(u) === E;
|
|
815
815
|
}, U.isPortal = function(u) {
|
|
816
|
-
return
|
|
816
|
+
return T(u) === t;
|
|
817
817
|
}, U.isProfiler = function(u) {
|
|
818
|
-
return
|
|
818
|
+
return T(u) === i;
|
|
819
819
|
}, U.isStrictMode = function(u) {
|
|
820
|
-
return
|
|
820
|
+
return T(u) === n;
|
|
821
821
|
}, U.isSuspense = function(u) {
|
|
822
|
-
return
|
|
822
|
+
return T(u) === c;
|
|
823
823
|
}, U.isSuspenseList = function(u) {
|
|
824
|
-
return
|
|
824
|
+
return T(u) === f;
|
|
825
825
|
}, U.isValidElementType = function(u) {
|
|
826
826
|
return typeof u == "string" || typeof u == "function" || u === r || u === i || u === n || u === c || u === f || u === I || typeof u == "object" && u !== null && (u.$$typeof === b || u.$$typeof === E || u.$$typeof === s || u.$$typeof === a || u.$$typeof === l || u.$$typeof === A || u.getModuleId !== void 0);
|
|
827
|
-
}, U.typeOf =
|
|
827
|
+
}, U.typeOf = T, U;
|
|
828
828
|
}
|
|
829
829
|
var q = {};
|
|
830
830
|
/**
|
|
@@ -839,30 +839,30 @@ var q = {};
|
|
|
839
839
|
var Ht;
|
|
840
840
|
function Br() {
|
|
841
841
|
return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
|
|
842
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), h = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A = !1,
|
|
842
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), h = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A = !1, T = !1, u = !1, j = !1, P = !1, J;
|
|
843
843
|
J = Symbol.for("react.module.reference");
|
|
844
|
-
function z(
|
|
845
|
-
return !!(typeof
|
|
844
|
+
function z(O) {
|
|
845
|
+
return !!(typeof O == "string" || typeof O == "function" || O === r || O === i || P || O === n || O === c || O === f || j || O === I || A || T || u || typeof O == "object" && O !== null && (O.$$typeof === b || O.$$typeof === E || O.$$typeof === s || O.$$typeof === a || O.$$typeof === l || // This needs to include all possible module reference object
|
|
846
846
|
// types supported by any Flight configuration anywhere since
|
|
847
847
|
// we don't know which Flight build this will end up being used
|
|
848
848
|
// with.
|
|
849
|
-
|
|
849
|
+
O.$$typeof === J || O.getModuleId !== void 0));
|
|
850
850
|
}
|
|
851
|
-
function N(
|
|
852
|
-
if (typeof
|
|
853
|
-
var
|
|
854
|
-
switch (
|
|
851
|
+
function N(O) {
|
|
852
|
+
if (typeof O == "object" && O !== null) {
|
|
853
|
+
var Z = O.$$typeof;
|
|
854
|
+
switch (Z) {
|
|
855
855
|
case e:
|
|
856
|
-
var
|
|
857
|
-
switch (
|
|
856
|
+
var te = O.type;
|
|
857
|
+
switch (te) {
|
|
858
858
|
case r:
|
|
859
859
|
case i:
|
|
860
860
|
case n:
|
|
861
861
|
case c:
|
|
862
862
|
case f:
|
|
863
|
-
return
|
|
863
|
+
return te;
|
|
864
864
|
default:
|
|
865
|
-
var fe =
|
|
865
|
+
var fe = te && te.$$typeof;
|
|
866
866
|
switch (fe) {
|
|
867
867
|
case h:
|
|
868
868
|
case a:
|
|
@@ -872,64 +872,64 @@ function Br() {
|
|
|
872
872
|
case s:
|
|
873
873
|
return fe;
|
|
874
874
|
default:
|
|
875
|
-
return
|
|
875
|
+
return Z;
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
case t:
|
|
879
|
-
return
|
|
879
|
+
return Z;
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
var D = a, k = s, p = e, F = l, M = r, W = b, H = E, K = t,
|
|
884
|
-
function Se(
|
|
883
|
+
var D = a, k = s, p = e, F = l, M = r, W = b, H = E, K = t, re = i, he = n, be = c, Te = f, _e = !1, Ee = !1;
|
|
884
|
+
function Se(O) {
|
|
885
885
|
return _e || (_e = !0), !1;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function v(O) {
|
|
888
888
|
return Ee || (Ee = !0), !1;
|
|
889
889
|
}
|
|
890
|
-
function C(
|
|
891
|
-
return N(
|
|
890
|
+
function C(O) {
|
|
891
|
+
return N(O) === a;
|
|
892
892
|
}
|
|
893
|
-
function w(
|
|
894
|
-
return N(
|
|
893
|
+
function w(O) {
|
|
894
|
+
return N(O) === s;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
897
|
-
return typeof
|
|
896
|
+
function m(O) {
|
|
897
|
+
return typeof O == "object" && O !== null && O.$$typeof === e;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
900
|
-
return N(
|
|
899
|
+
function g(O) {
|
|
900
|
+
return N(O) === l;
|
|
901
901
|
}
|
|
902
|
-
function O
|
|
903
|
-
return N(
|
|
902
|
+
function x(O) {
|
|
903
|
+
return N(O) === r;
|
|
904
904
|
}
|
|
905
|
-
function _(
|
|
906
|
-
return N(
|
|
905
|
+
function _(O) {
|
|
906
|
+
return N(O) === b;
|
|
907
907
|
}
|
|
908
|
-
function R(
|
|
909
|
-
return N(
|
|
908
|
+
function R(O) {
|
|
909
|
+
return N(O) === E;
|
|
910
910
|
}
|
|
911
|
-
function S(
|
|
912
|
-
return N(
|
|
911
|
+
function S(O) {
|
|
912
|
+
return N(O) === t;
|
|
913
913
|
}
|
|
914
|
-
function $(
|
|
915
|
-
return N(
|
|
914
|
+
function $(O) {
|
|
915
|
+
return N(O) === i;
|
|
916
916
|
}
|
|
917
|
-
function Y(
|
|
918
|
-
return N(
|
|
917
|
+
function Y(O) {
|
|
918
|
+
return N(O) === n;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
return N(
|
|
920
|
+
function ne(O) {
|
|
921
|
+
return N(O) === c;
|
|
922
922
|
}
|
|
923
|
-
function
|
|
924
|
-
return N(
|
|
923
|
+
function ee(O) {
|
|
924
|
+
return N(O) === f;
|
|
925
925
|
}
|
|
926
|
-
q.ContextConsumer = D, q.ContextProvider = k, q.Element = p, q.ForwardRef = F, q.Fragment = M, q.Lazy = W, q.Memo = H, q.Portal = K, q.Profiler =
|
|
926
|
+
q.ContextConsumer = D, q.ContextProvider = k, q.Element = p, q.ForwardRef = F, q.Fragment = M, q.Lazy = W, q.Memo = H, q.Portal = K, q.Profiler = re, q.StrictMode = he, q.Suspense = be, q.SuspenseList = Te, q.isAsyncMode = Se, q.isConcurrentMode = v, q.isContextConsumer = C, q.isContextProvider = w, q.isElement = m, q.isForwardRef = g, q.isFragment = x, q.isLazy = _, q.isMemo = R, q.isPortal = S, q.isProfiler = $, q.isStrictMode = Y, q.isSuspense = ne, q.isSuspenseList = ee, q.isValidElementType = z, q.typeOf = N;
|
|
927
927
|
}()), q;
|
|
928
928
|
}
|
|
929
929
|
process.env.NODE_ENV === "production" ? mt.exports = Hr() : mt.exports = Br();
|
|
930
930
|
var at = mt.exports;
|
|
931
931
|
function Yr(e, t, r) {
|
|
932
|
-
var n =
|
|
932
|
+
var n = oe.useRef({});
|
|
933
933
|
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
|
934
934
|
}
|
|
935
935
|
var Kr = Number(Pr.split(".")[0]), Gr = function(t, r) {
|
|
@@ -971,9 +971,9 @@ var Xr = function(t) {
|
|
|
971
971
|
return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
|
|
972
972
|
}
|
|
973
973
|
return null;
|
|
974
|
-
}, gt = /* @__PURE__ */
|
|
974
|
+
}, gt = /* @__PURE__ */ oe.createContext(null);
|
|
975
975
|
function Zr(e) {
|
|
976
|
-
var t = e.children, r = e.onBatchResize, n =
|
|
976
|
+
var t = e.children, r = e.onBatchResize, n = oe.useRef(0), i = oe.useRef([]), s = oe.useContext(gt), a = oe.useCallback(function(h, l, c) {
|
|
977
977
|
n.current += 1;
|
|
978
978
|
var f = n.current;
|
|
979
979
|
i.current.push({
|
|
@@ -984,7 +984,7 @@ function Zr(e) {
|
|
|
984
984
|
f === n.current && (r == null || r(i.current), i.current = []);
|
|
985
985
|
}), s == null || s(h, l, c);
|
|
986
986
|
}, [r, s]);
|
|
987
|
-
return /* @__PURE__ */
|
|
987
|
+
return /* @__PURE__ */ oe.createElement(gt.Provider, {
|
|
988
988
|
value: a
|
|
989
989
|
}, t);
|
|
990
990
|
}
|
|
@@ -1376,24 +1376,24 @@ var xn = /* @__PURE__ */ function(e) {
|
|
|
1376
1376
|
return this.props.children;
|
|
1377
1377
|
}
|
|
1378
1378
|
}]), r;
|
|
1379
|
-
}(
|
|
1379
|
+
}(oe.Component);
|
|
1380
1380
|
function On(e, t) {
|
|
1381
|
-
var r = e.children, n = e.disabled, i =
|
|
1381
|
+
var r = e.children, n = e.disabled, i = oe.useRef(null), s = oe.useRef(null), a = oe.useContext(gt), h = typeof r == "function", l = h ? r(i) : r, c = oe.useRef({
|
|
1382
1382
|
width: -1,
|
|
1383
1383
|
height: -1,
|
|
1384
1384
|
offsetWidth: -1,
|
|
1385
1385
|
offsetHeight: -1
|
|
1386
|
-
}), f = !h && /* @__PURE__ */
|
|
1386
|
+
}), f = !h && /* @__PURE__ */ oe.isValidElement(l) && Jr(l), E = f ? Xr(l) : null, b = qr(E, i), I = function() {
|
|
1387
1387
|
var j;
|
|
1388
1388
|
return st(i.current) || // Support `nativeElement` format
|
|
1389
1389
|
(i.current && Re(i.current) === "object" ? st((j = i.current) === null || j === void 0 ? void 0 : j.nativeElement) : null) || st(s.current);
|
|
1390
1390
|
};
|
|
1391
|
-
|
|
1391
|
+
oe.useImperativeHandle(t, function() {
|
|
1392
1392
|
return I();
|
|
1393
1393
|
});
|
|
1394
|
-
var A =
|
|
1394
|
+
var A = oe.useRef(e);
|
|
1395
1395
|
A.current = e;
|
|
1396
|
-
var
|
|
1396
|
+
var T = oe.useCallback(function(u) {
|
|
1397
1397
|
var j = A.current, P = j.onResize, J = j.data, z = u.getBoundingClientRect(), N = z.width, D = z.height, k = u.offsetWidth, p = u.offsetHeight, F = Math.floor(N), M = Math.floor(D);
|
|
1398
1398
|
if (c.current.width !== F || c.current.height !== M || c.current.offsetWidth !== k || c.current.offsetHeight !== p) {
|
|
1399
1399
|
var W = {
|
|
@@ -1403,40 +1403,40 @@ function On(e, t) {
|
|
|
1403
1403
|
offsetHeight: p
|
|
1404
1404
|
};
|
|
1405
1405
|
c.current = W;
|
|
1406
|
-
var H = k === Math.round(N) ? N : k, K = p === Math.round(D) ? D : p,
|
|
1406
|
+
var H = k === Math.round(N) ? N : k, K = p === Math.round(D) ? D : p, re = Nt(Nt({}, W), {}, {
|
|
1407
1407
|
offsetWidth: H,
|
|
1408
1408
|
offsetHeight: K
|
|
1409
1409
|
});
|
|
1410
|
-
a == null || a(
|
|
1411
|
-
P(
|
|
1410
|
+
a == null || a(re, u, J), P && Promise.resolve().then(function() {
|
|
1411
|
+
P(re, u);
|
|
1412
1412
|
});
|
|
1413
1413
|
}
|
|
1414
1414
|
}, []);
|
|
1415
|
-
return
|
|
1415
|
+
return oe.useEffect(function() {
|
|
1416
1416
|
var u = I();
|
|
1417
|
-
return u && !n && yn(u,
|
|
1418
|
-
return bn(u,
|
|
1417
|
+
return u && !n && yn(u, T), function() {
|
|
1418
|
+
return bn(u, T);
|
|
1419
1419
|
};
|
|
1420
|
-
}, [i.current, n]), /* @__PURE__ */
|
|
1420
|
+
}, [i.current, n]), /* @__PURE__ */ oe.createElement(xn, {
|
|
1421
1421
|
ref: s
|
|
1422
|
-
}, f ? /* @__PURE__ */
|
|
1422
|
+
}, f ? /* @__PURE__ */ oe.cloneElement(l, {
|
|
1423
1423
|
ref: b
|
|
1424
1424
|
}) : l);
|
|
1425
1425
|
}
|
|
1426
|
-
var lr = /* @__PURE__ */
|
|
1426
|
+
var lr = /* @__PURE__ */ oe.forwardRef(On);
|
|
1427
1427
|
process.env.NODE_ENV !== "production" && (lr.displayName = "SingleObserver");
|
|
1428
1428
|
var Tn = "rc-observer-key";
|
|
1429
1429
|
function Pn(e, t) {
|
|
1430
1430
|
var r = e.children, n = typeof r == "function" ? [r] : vt(r);
|
|
1431
1431
|
return process.env.NODE_ENV !== "production" && (n.length > 1 ? Dt(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && Dt(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(i, s) {
|
|
1432
1432
|
var a = (i == null ? void 0 : i.key) || "".concat(Tn, "-").concat(s);
|
|
1433
|
-
return /* @__PURE__ */
|
|
1433
|
+
return /* @__PURE__ */ oe.createElement(lr, pt({}, e, {
|
|
1434
1434
|
key: a,
|
|
1435
1435
|
ref: s === 0 ? t : void 0
|
|
1436
1436
|
}), i);
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
|
-
var Rt = /* @__PURE__ */
|
|
1439
|
+
var Rt = /* @__PURE__ */ oe.forwardRef(Pn);
|
|
1440
1440
|
process.env.NODE_ENV !== "production" && (Rt.displayName = "ResizeObserver");
|
|
1441
1441
|
Rt.Collection = Zr;
|
|
1442
1442
|
var cr = { exports: {} };
|
|
@@ -1502,7 +1502,7 @@ const An = Ar(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
|
|
|
1502
1502
|
b.field.includes("__") && (A = n == null ? void 0 : n.find((J) => b.field.startsWith(`${J.field}_`)));
|
|
1503
1503
|
}
|
|
1504
1504
|
(j = A == null ? void 0 : A.style) != null && j.textAlign && (I = A.style.textAlign);
|
|
1505
|
-
const
|
|
1505
|
+
const T = {
|
|
1506
1506
|
key: b.field || b.dataIndex || b.title || String(Math.random()),
|
|
1507
1507
|
title: b.title,
|
|
1508
1508
|
width: b.width,
|
|
@@ -1514,26 +1514,26 @@ const An = Ar(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
|
|
|
1514
1514
|
};
|
|
1515
1515
|
if (b.children && b.children.length > 0) {
|
|
1516
1516
|
const P = (J) => J.children && J.children.length > 0 ? J.children.reduce((z, N) => z + P(N), 0) : 1;
|
|
1517
|
-
|
|
1517
|
+
T.colSpan = P(b), a[E].push(T), c(b.children, E + 1);
|
|
1518
1518
|
} else
|
|
1519
|
-
|
|
1519
|
+
T.rowSpan = l - E, a[E].push(T);
|
|
1520
1520
|
});
|
|
1521
1521
|
};
|
|
1522
1522
|
return c(e, 0), a;
|
|
1523
1523
|
}, [e, n]);
|
|
1524
|
-
return /* @__PURE__ */
|
|
1524
|
+
return /* @__PURE__ */ Q.jsx(
|
|
1525
1525
|
"div",
|
|
1526
1526
|
{
|
|
1527
1527
|
ref: i,
|
|
1528
1528
|
className: "virtual-table-header hide-scrollbar",
|
|
1529
1529
|
style: { overflow: "auto", width: t },
|
|
1530
1530
|
onScroll: r,
|
|
1531
|
-
children: /* @__PURE__ */
|
|
1532
|
-
/* @__PURE__ */
|
|
1531
|
+
children: /* @__PURE__ */ Q.jsxs("table", { style: { tableLayout: "fixed", width: "100%" }, children: [
|
|
1532
|
+
/* @__PURE__ */ Q.jsx("colgroup", { children: e.map((a, h) => {
|
|
1533
1533
|
const l = (c) => c.children && c.children.length > 0 ? c.children.flatMap(l) : [c.width];
|
|
1534
|
-
return l(a).map((c, f) => /* @__PURE__ */
|
|
1534
|
+
return l(a).map((c, f) => /* @__PURE__ */ Q.jsx("col", { style: { width: c, minWidth: c } }, `${h}-${f}`));
|
|
1535
1535
|
}).flat() }),
|
|
1536
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ Q.jsx("thead", { className: "virtual-table-thead", children: s.map((a, h) => /* @__PURE__ */ Q.jsx("tr", { className: "virtual-table-row", children: a.map((l, c) => /* @__PURE__ */ Q.jsx(
|
|
1537
1537
|
"th",
|
|
1538
1538
|
{
|
|
1539
1539
|
className: St("virtual-table-cell", l.className),
|
|
@@ -1612,10 +1612,10 @@ function $n({
|
|
|
1612
1612
|
return;
|
|
1613
1613
|
const b = new ResizeObserver((I) => {
|
|
1614
1614
|
for (const A of I) {
|
|
1615
|
-
const { contentRect:
|
|
1616
|
-
i === u && f((j) => j.height ===
|
|
1617
|
-
height:
|
|
1618
|
-
width:
|
|
1615
|
+
const { contentRect: T, target: u } = A;
|
|
1616
|
+
i === u && f((j) => j.height === T.height && j.width === T.width ? j : {
|
|
1617
|
+
height: T.height,
|
|
1618
|
+
width: T.width
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
1621
1621
|
});
|
|
@@ -1883,16 +1883,16 @@ function Ut({
|
|
|
1883
1883
|
(M.height !== f || M.width !== E) && (l({ height: f, width: E }, { ...M }), M.height = f, M.width = E);
|
|
1884
1884
|
}
|
|
1885
1885
|
}, [f, l, E]);
|
|
1886
|
-
const
|
|
1886
|
+
const T = Nn({
|
|
1887
1887
|
itemCount: s,
|
|
1888
1888
|
itemProps: a,
|
|
1889
1889
|
itemSize: A
|
|
1890
1890
|
}), u = ge(
|
|
1891
|
-
(M) =>
|
|
1892
|
-
[
|
|
1891
|
+
(M) => T.get(M),
|
|
1892
|
+
[T]
|
|
1893
1893
|
), [j, P] = Ie(
|
|
1894
1894
|
() => ct({
|
|
1895
|
-
cachedBounds:
|
|
1895
|
+
cachedBounds: T,
|
|
1896
1896
|
// TODO Potentially support a defaultScrollOffset prop?
|
|
1897
1897
|
containerScrollOffset: 0,
|
|
1898
1898
|
containerSize: I,
|
|
@@ -1911,11 +1911,11 @@ function Ut({
|
|
|
1911
1911
|
stopIndexOverscan: Math.min(s - 1, j.stopIndexOverscan)
|
|
1912
1912
|
}, k = ge(
|
|
1913
1913
|
() => ur({
|
|
1914
|
-
cachedBounds:
|
|
1914
|
+
cachedBounds: T,
|
|
1915
1915
|
itemCount: s,
|
|
1916
1916
|
itemSize: A
|
|
1917
1917
|
}),
|
|
1918
|
-
[
|
|
1918
|
+
[T, s, A]
|
|
1919
1919
|
), p = ge(
|
|
1920
1920
|
(M) => {
|
|
1921
1921
|
const W = lt({
|
|
@@ -1925,7 +1925,7 @@ function Ut({
|
|
|
1925
1925
|
scrollOffset: M
|
|
1926
1926
|
});
|
|
1927
1927
|
return ct({
|
|
1928
|
-
cachedBounds:
|
|
1928
|
+
cachedBounds: T,
|
|
1929
1929
|
containerScrollOffset: W,
|
|
1930
1930
|
containerSize: I,
|
|
1931
1931
|
itemCount: s,
|
|
@@ -1933,7 +1933,7 @@ function Ut({
|
|
|
1933
1933
|
});
|
|
1934
1934
|
},
|
|
1935
1935
|
[
|
|
1936
|
-
|
|
1936
|
+
T,
|
|
1937
1937
|
e,
|
|
1938
1938
|
I,
|
|
1939
1939
|
n,
|
|
@@ -1950,14 +1950,14 @@ function Ut({
|
|
|
1950
1950
|
return;
|
|
1951
1951
|
const M = () => {
|
|
1952
1952
|
P((W) => {
|
|
1953
|
-
const { scrollLeft: H, scrollTop: K } = e,
|
|
1953
|
+
const { scrollLeft: H, scrollTop: K } = e, re = lt({
|
|
1954
1954
|
containerElement: e,
|
|
1955
1955
|
direction: n,
|
|
1956
1956
|
isRtl: i,
|
|
1957
1957
|
scrollOffset: n === "vertical" ? K : H
|
|
1958
1958
|
}), he = ct({
|
|
1959
|
-
cachedBounds:
|
|
1960
|
-
containerScrollOffset:
|
|
1959
|
+
cachedBounds: T,
|
|
1960
|
+
containerScrollOffset: re,
|
|
1961
1961
|
containerSize: I,
|
|
1962
1962
|
itemCount: s,
|
|
1963
1963
|
overscanCount: c
|
|
@@ -1969,7 +1969,7 @@ function Ut({
|
|
|
1969
1969
|
e.removeEventListener("scroll", M);
|
|
1970
1970
|
};
|
|
1971
1971
|
}, [
|
|
1972
|
-
|
|
1972
|
+
T,
|
|
1973
1973
|
e,
|
|
1974
1974
|
I,
|
|
1975
1975
|
n,
|
|
@@ -1984,7 +1984,7 @@ function Ut({
|
|
|
1984
1984
|
}) => {
|
|
1985
1985
|
let K = Dn({
|
|
1986
1986
|
align: M,
|
|
1987
|
-
cachedBounds:
|
|
1987
|
+
cachedBounds: T,
|
|
1988
1988
|
containerScrollOffset: W,
|
|
1989
1989
|
containerSize: I,
|
|
1990
1990
|
index: H,
|
|
@@ -1998,8 +1998,8 @@ function Ut({
|
|
|
1998
1998
|
isRtl: i,
|
|
1999
1999
|
scrollOffset: K
|
|
2000
2000
|
}), typeof e.scrollTo != "function") {
|
|
2001
|
-
const
|
|
2002
|
-
Be(j,
|
|
2001
|
+
const re = p(K);
|
|
2002
|
+
Be(j, re) || P(re);
|
|
2003
2003
|
}
|
|
2004
2004
|
return K;
|
|
2005
2005
|
}
|
|
@@ -2046,7 +2046,7 @@ function Bn({
|
|
|
2046
2046
|
overscanCount: b = 3,
|
|
2047
2047
|
rowCount: I,
|
|
2048
2048
|
rowHeight: A,
|
|
2049
|
-
style:
|
|
2049
|
+
style: T,
|
|
2050
2050
|
tagName: u = "div",
|
|
2051
2051
|
...j
|
|
2052
2052
|
}) {
|
|
@@ -2063,7 +2063,7 @@ function Bn({
|
|
|
2063
2063
|
stopIndexVisible: K
|
|
2064
2064
|
} = Ut({
|
|
2065
2065
|
containerElement: z,
|
|
2066
|
-
containerStyle:
|
|
2066
|
+
containerStyle: T,
|
|
2067
2067
|
defaultContainerSize: h,
|
|
2068
2068
|
direction: "horizontal",
|
|
2069
2069
|
isRtl: D,
|
|
@@ -2073,7 +2073,7 @@ function Bn({
|
|
|
2073
2073
|
onResize: E,
|
|
2074
2074
|
overscanCount: b
|
|
2075
2075
|
}), {
|
|
2076
|
-
getCellBounds:
|
|
2076
|
+
getCellBounds: re,
|
|
2077
2077
|
getEstimatedSize: he,
|
|
2078
2078
|
startIndexOverscan: be,
|
|
2079
2079
|
startIndexVisible: Te,
|
|
@@ -2082,7 +2082,7 @@ function Bn({
|
|
|
2082
2082
|
stopIndexVisible: Se
|
|
2083
2083
|
} = Ut({
|
|
2084
2084
|
containerElement: z,
|
|
2085
|
-
containerStyle:
|
|
2085
|
+
containerStyle: T,
|
|
2086
2086
|
defaultContainerSize: a,
|
|
2087
2087
|
direction: "vertical",
|
|
2088
2088
|
itemCount: I,
|
|
@@ -2099,17 +2099,17 @@ function Bn({
|
|
|
2099
2099
|
},
|
|
2100
2100
|
scrollToCell({
|
|
2101
2101
|
behavior: w = "auto",
|
|
2102
|
-
columnAlign:
|
|
2103
|
-
columnIndex:
|
|
2104
|
-
rowAlign:
|
|
2102
|
+
columnAlign: m = "auto",
|
|
2103
|
+
columnIndex: g,
|
|
2104
|
+
rowAlign: x = "auto",
|
|
2105
2105
|
rowIndex: _
|
|
2106
2106
|
}) {
|
|
2107
2107
|
const R = W({
|
|
2108
|
-
align:
|
|
2108
|
+
align: m,
|
|
2109
2109
|
containerScrollOffset: (z == null ? void 0 : z.scrollLeft) ?? 0,
|
|
2110
|
-
index:
|
|
2110
|
+
index: g
|
|
2111
2111
|
}), S = _e({
|
|
2112
|
-
align:
|
|
2112
|
+
align: x,
|
|
2113
2113
|
containerScrollOffset: (z == null ? void 0 : z.scrollTop) ?? 0,
|
|
2114
2114
|
index: _
|
|
2115
2115
|
});
|
|
@@ -2121,32 +2121,32 @@ function Bn({
|
|
|
2121
2121
|
},
|
|
2122
2122
|
scrollToColumn({
|
|
2123
2123
|
align: w = "auto",
|
|
2124
|
-
behavior:
|
|
2125
|
-
index:
|
|
2124
|
+
behavior: m = "auto",
|
|
2125
|
+
index: g
|
|
2126
2126
|
}) {
|
|
2127
|
-
const
|
|
2127
|
+
const x = W({
|
|
2128
2128
|
align: w,
|
|
2129
2129
|
containerScrollOffset: (z == null ? void 0 : z.scrollLeft) ?? 0,
|
|
2130
|
-
index:
|
|
2130
|
+
index: g
|
|
2131
2131
|
});
|
|
2132
2132
|
typeof (z == null ? void 0 : z.scrollTo) == "function" && z.scrollTo({
|
|
2133
|
-
behavior:
|
|
2134
|
-
left:
|
|
2133
|
+
behavior: m,
|
|
2134
|
+
left: x
|
|
2135
2135
|
});
|
|
2136
2136
|
},
|
|
2137
2137
|
scrollToRow({
|
|
2138
2138
|
align: w = "auto",
|
|
2139
|
-
behavior:
|
|
2140
|
-
index:
|
|
2139
|
+
behavior: m = "auto",
|
|
2140
|
+
index: g
|
|
2141
2141
|
}) {
|
|
2142
|
-
const
|
|
2142
|
+
const x = _e({
|
|
2143
2143
|
align: w,
|
|
2144
2144
|
containerScrollOffset: (z == null ? void 0 : z.scrollTop) ?? 0,
|
|
2145
|
-
index:
|
|
2145
|
+
index: g
|
|
2146
2146
|
});
|
|
2147
2147
|
typeof (z == null ? void 0 : z.scrollTo) == "function" && z.scrollTo({
|
|
2148
|
-
behavior:
|
|
2149
|
-
top:
|
|
2148
|
+
behavior: m,
|
|
2149
|
+
top: x
|
|
2150
2150
|
});
|
|
2151
2151
|
}
|
|
2152
2152
|
}),
|
|
@@ -2177,14 +2177,14 @@ function Bn({
|
|
|
2177
2177
|
Ee,
|
|
2178
2178
|
Se
|
|
2179
2179
|
]);
|
|
2180
|
-
const
|
|
2180
|
+
const v = ye(() => {
|
|
2181
2181
|
const w = [];
|
|
2182
2182
|
if (i > 0 && I > 0)
|
|
2183
|
-
for (let
|
|
2184
|
-
const
|
|
2183
|
+
for (let m = be; m <= Ee; m++) {
|
|
2184
|
+
const g = re(m), x = [];
|
|
2185
2185
|
for (let _ = F; _ <= H; _++) {
|
|
2186
2186
|
const R = k(_);
|
|
2187
|
-
|
|
2187
|
+
x.push(
|
|
2188
2188
|
/* @__PURE__ */ It(
|
|
2189
2189
|
J,
|
|
2190
2190
|
{
|
|
@@ -2195,13 +2195,13 @@ function Bn({
|
|
|
2195
2195
|
},
|
|
2196
2196
|
columnIndex: _,
|
|
2197
2197
|
key: _,
|
|
2198
|
-
rowIndex:
|
|
2198
|
+
rowIndex: m,
|
|
2199
2199
|
style: {
|
|
2200
2200
|
position: "absolute",
|
|
2201
2201
|
left: D ? void 0 : 0,
|
|
2202
2202
|
right: D ? 0 : void 0,
|
|
2203
|
-
transform: `translate(${D ? -R.scrollOffset : R.scrollOffset}px, ${
|
|
2204
|
-
height:
|
|
2203
|
+
transform: `translate(${D ? -R.scrollOffset : R.scrollOffset}px, ${g.scrollOffset}px)`,
|
|
2204
|
+
height: g.size,
|
|
2205
2205
|
width: R.size
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
@@ -2209,7 +2209,7 @@ function Bn({
|
|
|
2209
2209
|
);
|
|
2210
2210
|
}
|
|
2211
2211
|
w.push(
|
|
2212
|
-
/* @__PURE__ */
|
|
2212
|
+
/* @__PURE__ */ Q.jsx("div", { role: "row", "aria-rowindex": m + 1, children: x }, m)
|
|
2213
2213
|
);
|
|
2214
2214
|
}
|
|
2215
2215
|
return w;
|
|
@@ -2220,12 +2220,12 @@ function Bn({
|
|
|
2220
2220
|
F,
|
|
2221
2221
|
H,
|
|
2222
2222
|
k,
|
|
2223
|
-
|
|
2223
|
+
re,
|
|
2224
2224
|
D,
|
|
2225
2225
|
I,
|
|
2226
2226
|
be,
|
|
2227
2227
|
Ee
|
|
2228
|
-
]), C = /* @__PURE__ */
|
|
2228
|
+
]), C = /* @__PURE__ */ Q.jsx(
|
|
2229
2229
|
"div",
|
|
2230
2230
|
{
|
|
2231
2231
|
"aria-hidden": !0,
|
|
@@ -2252,27 +2252,27 @@ function Bn({
|
|
|
2252
2252
|
maxWidth: "100%",
|
|
2253
2253
|
flexGrow: 1,
|
|
2254
2254
|
overflow: "auto",
|
|
2255
|
-
...
|
|
2255
|
+
...T
|
|
2256
2256
|
}
|
|
2257
2257
|
},
|
|
2258
|
-
|
|
2258
|
+
v,
|
|
2259
2259
|
r,
|
|
2260
2260
|
C
|
|
2261
2261
|
);
|
|
2262
2262
|
}
|
|
2263
|
-
const Yn = (e) => /* @__PURE__ */
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
] }), Kn = (e) => /* @__PURE__ */
|
|
2267
|
-
/* @__PURE__ */
|
|
2268
|
-
/* @__PURE__ */
|
|
2263
|
+
const Yn = (e) => /* @__PURE__ */ Q.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
|
|
2264
|
+
/* @__PURE__ */ Q.jsx("path", { d: "M518.5 360.3a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z" }),
|
|
2265
|
+
/* @__PURE__ */ Q.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" })
|
|
2266
|
+
] }), Kn = (e) => /* @__PURE__ */ Q.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
|
|
2267
|
+
/* @__PURE__ */ Q.jsx("path", { d: "M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z" }),
|
|
2268
|
+
/* @__PURE__ */ Q.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" })
|
|
2269
2269
|
] }), Gn = (e, t, r) => {
|
|
2270
2270
|
var i;
|
|
2271
2271
|
const n = (i = r[e]) == null ? void 0 : i[t];
|
|
2272
2272
|
return n ? n.rowspan === 0 || n.colspan === 0 : !1;
|
|
2273
2273
|
}, Un = (e, t, r, n, i, s, a) => {
|
|
2274
|
-
var
|
|
2275
|
-
const h = (
|
|
2274
|
+
var T, u;
|
|
2275
|
+
const h = (T = n[e]) == null ? void 0 : T[t], l = a || h;
|
|
2276
2276
|
if (!l)
|
|
2277
2277
|
return;
|
|
2278
2278
|
const c = { ...r };
|
|
@@ -2311,11 +2311,11 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2311
2311
|
}
|
|
2312
2312
|
if (!c && Gn(t, e, n))
|
|
2313
2313
|
return null;
|
|
2314
|
-
const f = Un(t, e, r, n, i, a, l), E = i[e], b = E.field.split("||"), I = b[b.length - 1], A = a == null ? void 0 : a.find((j) => j.field === I || j.field === E.field),
|
|
2314
|
+
const f = Un(t, e, r, n, i, a, l), E = i[e], b = E.field.split("||"), I = b[b.length - 1], A = a == null ? void 0 : a.find((j) => j.field === I || j.field === E.field), T = Ye.isValidElement(l.content);
|
|
2315
2315
|
let u;
|
|
2316
|
-
if (u = l.content, "formatter" in E && E.formatter && !
|
|
2316
|
+
if (u = l.content, "formatter" in E && E.formatter && !T && (u = E.formatter(u, l.data)), A != null && A.clickHandler && !T && u !== null && u !== void 0) {
|
|
2317
2317
|
const j = l.data;
|
|
2318
|
-
u = /* @__PURE__ */
|
|
2318
|
+
u = /* @__PURE__ */ Q.jsx(
|
|
2319
2319
|
"a",
|
|
2320
2320
|
{
|
|
2321
2321
|
href: "javascript:void(0)",
|
|
@@ -2327,7 +2327,7 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2327
2327
|
}
|
|
2328
2328
|
);
|
|
2329
2329
|
}
|
|
2330
|
-
return /* @__PURE__ */
|
|
2330
|
+
return /* @__PURE__ */ Q.jsxs(
|
|
2331
2331
|
"div",
|
|
2332
2332
|
{
|
|
2333
2333
|
style: f,
|
|
@@ -2336,9 +2336,9 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2336
2336
|
}),
|
|
2337
2337
|
title: typeof u == "string" ? u : void 0,
|
|
2338
2338
|
children: [
|
|
2339
|
-
/* @__PURE__ */
|
|
2339
|
+
/* @__PURE__ */ Q.jsx("span", { className: "expand-icon", children: l.expandable ? l.expanded ? /* @__PURE__ */ Q.jsx(Yn, { onClick: () => {
|
|
2340
2340
|
l.onClick && l.onClick(l), s(l);
|
|
2341
|
-
} }) : /* @__PURE__ */
|
|
2341
|
+
} }) : /* @__PURE__ */ Q.jsx(Kn, { onClick: () => {
|
|
2342
2342
|
l.onClick && l.onClick(l), s(l);
|
|
2343
2343
|
} }) : null }),
|
|
2344
2344
|
u
|
|
@@ -2381,11 +2381,11 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2381
2381
|
return D.forEach((p) => {
|
|
2382
2382
|
p != null && p.children && p.children.length > 0 ? k = [...k, ...A(p.children)] : k.push(p);
|
|
2383
2383
|
}), k;
|
|
2384
|
-
}, []),
|
|
2385
|
-
const k =
|
|
2384
|
+
}, []), T = A(i), u = ge((D) => {
|
|
2385
|
+
const k = T[D];
|
|
2386
2386
|
let p = (k == null ? void 0 : k.width) || 100;
|
|
2387
2387
|
return typeof p == "string" && (p = parseInt(p.replace("px", "")) || 100), p;
|
|
2388
|
-
}, [
|
|
2388
|
+
}, [T]), j = ge((D) => wt, []), P = ye(() => f.map((D) => D.cells), [f]), J = ge((D) => {
|
|
2389
2389
|
if (D && typeof D.scrollLeft == "number") {
|
|
2390
2390
|
h && h(D);
|
|
2391
2391
|
return;
|
|
@@ -2418,7 +2418,7 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2418
2418
|
});
|
|
2419
2419
|
}), D;
|
|
2420
2420
|
}, [f]), N = (typeof (n == null ? void 0 : n.y) == "number" ? n.y : parseInt((n == null ? void 0 : n.y) || "400")) || 400;
|
|
2421
|
-
return /* @__PURE__ */
|
|
2421
|
+
return /* @__PURE__ */ Q.jsx(
|
|
2422
2422
|
Bn,
|
|
2423
2423
|
{
|
|
2424
2424
|
gridRef: l,
|
|
@@ -2433,7 +2433,7 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2433
2433
|
cellComponent: qn,
|
|
2434
2434
|
cellProps: {
|
|
2435
2435
|
mergedData: P,
|
|
2436
|
-
columns:
|
|
2436
|
+
columns: T,
|
|
2437
2437
|
data: f,
|
|
2438
2438
|
handleExpand: e.handleExpand,
|
|
2439
2439
|
meta: e.meta,
|
|
@@ -2496,28 +2496,28 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2496
2496
|
if (!t || t.length === 0 || !i.length && !s.length && !a.length)
|
|
2497
2497
|
return {
|
|
2498
2498
|
list: [],
|
|
2499
|
-
dataExpandFilter: (
|
|
2499
|
+
dataExpandFilter: (v) => v
|
|
2500
2500
|
};
|
|
2501
|
-
const h = He(i), l = He(s), c = He(a).filter((
|
|
2502
|
-
t.forEach((
|
|
2503
|
-
const C = ut(
|
|
2504
|
-
b.has(C) || b.set(C, []), b.get(C).push(
|
|
2505
|
-
const w = ut(
|
|
2506
|
-
I.has(w) || I.set(w, []), I.get(w).push(
|
|
2507
|
-
const
|
|
2508
|
-
A.has(
|
|
2501
|
+
const h = He(i), l = He(s), c = He(a).filter((v) => !v.hidden), f = h.map((v) => v.field), E = l.map((v) => v.field), b = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map();
|
|
2502
|
+
t.forEach((v) => {
|
|
2503
|
+
const C = ut(v, f);
|
|
2504
|
+
b.has(C) || b.set(C, []), b.get(C).push(v);
|
|
2505
|
+
const w = ut(v, E);
|
|
2506
|
+
I.has(w) || I.set(w, []), I.get(w).push(v);
|
|
2507
|
+
const m = `${C}||${w}`;
|
|
2508
|
+
A.has(m) || A.set(m, []), A.get(m).push(v);
|
|
2509
2509
|
});
|
|
2510
|
-
const
|
|
2510
|
+
const T = () => Array.from(b.entries()).sort(([v, C], [w, m]) => {
|
|
2511
2511
|
if (r && r.length > 0)
|
|
2512
|
-
for (const
|
|
2513
|
-
const { field:
|
|
2512
|
+
for (const g of r) {
|
|
2513
|
+
const { field: x, sortType: _ } = g, R = _ === "asc", S = me(C[0], x), $ = me(m[0], x);
|
|
2514
2514
|
if (S < $)
|
|
2515
2515
|
return R ? -1 : 1;
|
|
2516
2516
|
if (S > $)
|
|
2517
2517
|
return R ? 1 : -1;
|
|
2518
2518
|
}
|
|
2519
|
-
for (let
|
|
2520
|
-
const
|
|
2519
|
+
for (let g = 0; g < f.length; g++) {
|
|
2520
|
+
const x = f[g], _ = h[g], R = me(C[0], x), S = me(m[0], x);
|
|
2521
2521
|
if (R !== S)
|
|
2522
2522
|
if (_.sort && _.sort.enabled) {
|
|
2523
2523
|
const $ = _.sort.type === "asc";
|
|
@@ -2533,9 +2533,9 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
2535
|
return 0;
|
|
2536
|
-
}), u = () => Array.from(I.entries()).sort(([
|
|
2537
|
-
for (let
|
|
2538
|
-
const
|
|
2536
|
+
}), u = () => Array.from(I.entries()).sort(([v, C], [w, m]) => {
|
|
2537
|
+
for (let g = 0; g < E.length; g++) {
|
|
2538
|
+
const x = E[g], _ = l[g], R = me(C[0], x), S = me(m[0], x);
|
|
2539
2539
|
if (R !== S)
|
|
2540
2540
|
if (_.sort && _.sort.enabled) {
|
|
2541
2541
|
const $ = _.sort.type === "asc";
|
|
@@ -2552,111 +2552,111 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2552
2552
|
}
|
|
2553
2553
|
return 0;
|
|
2554
2554
|
}), j = () => {
|
|
2555
|
-
const
|
|
2555
|
+
const v = [], C = He(i);
|
|
2556
2556
|
for (let w = 1; w <= C.length; w++)
|
|
2557
|
-
|
|
2558
|
-
return
|
|
2557
|
+
v.push(C.slice(0, w));
|
|
2558
|
+
return v;
|
|
2559
2559
|
}, P = () => {
|
|
2560
|
-
const
|
|
2561
|
-
return
|
|
2562
|
-
const
|
|
2563
|
-
|
|
2560
|
+
const v = j(), C = /* @__PURE__ */ new Set();
|
|
2561
|
+
return v.forEach((w, m) => {
|
|
2562
|
+
const g = w[w.length - 1];
|
|
2563
|
+
g.total && g.total.enabled && C.add(m);
|
|
2564
2564
|
}), C;
|
|
2565
2565
|
}, J = () => {
|
|
2566
|
-
const
|
|
2567
|
-
return w.size === 0 || w.forEach((
|
|
2568
|
-
let
|
|
2569
|
-
|
|
2570
|
-
const
|
|
2566
|
+
const v = j(), C = [], w = P();
|
|
2567
|
+
return w.size === 0 || w.forEach((m) => {
|
|
2568
|
+
let g = [];
|
|
2569
|
+
m > 0 && (g = v[m - 1]);
|
|
2570
|
+
const x = {};
|
|
2571
2571
|
t.forEach((_) => {
|
|
2572
2572
|
let R = "";
|
|
2573
|
-
if (
|
|
2574
|
-
const $ =
|
|
2575
|
-
|
|
2573
|
+
if (m > 0 ? R = g.map((S) => me(_, S.field)).join("|") : R = "__GLOBAL__", !x[R]) {
|
|
2574
|
+
const $ = v[m][m].total;
|
|
2575
|
+
x[R] = {
|
|
2576
2576
|
records: [],
|
|
2577
2577
|
config: $
|
|
2578
2578
|
};
|
|
2579
2579
|
}
|
|
2580
|
-
|
|
2581
|
-
}), C.push({ level:
|
|
2580
|
+
x[R].records.push(_);
|
|
2581
|
+
}), C.push({ level: m, data: x });
|
|
2582
2582
|
}), C;
|
|
2583
|
-
}, z = u(), N = /* @__PURE__ */ new Map(), D = (
|
|
2584
|
-
if (ue.has(
|
|
2585
|
-
const w = ue.get(
|
|
2586
|
-
w.set(C,
|
|
2587
|
-
const
|
|
2588
|
-
if (
|
|
2589
|
-
const R =
|
|
2583
|
+
}, z = u(), N = /* @__PURE__ */ new Map(), D = (v, C) => {
|
|
2584
|
+
if (ue.has(v)) {
|
|
2585
|
+
const w = ue.get(v), g = !w.get(C);
|
|
2586
|
+
w.set(C, g), ft.set("rowKey", C), ft.set("level", v), ft.set("expanded", g);
|
|
2587
|
+
const x = v - 1;
|
|
2588
|
+
if (x >= 0 && x < h.length && h[x].clickExpandChildren && g === !0) {
|
|
2589
|
+
const R = v + 1;
|
|
2590
2590
|
if (ue.has(R)) {
|
|
2591
2591
|
const S = ue.get(R), $ = C + "|";
|
|
2592
|
-
S.forEach((Y,
|
|
2593
|
-
|
|
2592
|
+
S.forEach((Y, ne) => {
|
|
2593
|
+
ne.startsWith($) && (S.set(ne, !0), k(R, ne));
|
|
2594
2594
|
});
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
}, k = (
|
|
2599
|
-
const w =
|
|
2598
|
+
}, k = (v, C) => {
|
|
2599
|
+
const w = v + 1;
|
|
2600
2600
|
if (ue.has(w)) {
|
|
2601
|
-
const
|
|
2602
|
-
|
|
2603
|
-
_.startsWith(
|
|
2601
|
+
const m = ue.get(w), g = C + "|";
|
|
2602
|
+
m.forEach((x, _) => {
|
|
2603
|
+
_.startsWith(g) && (m.set(_, !0), k(w, _));
|
|
2604
2604
|
});
|
|
2605
2605
|
}
|
|
2606
|
-
}, p = (
|
|
2607
|
-
const C = J(), w = [...
|
|
2606
|
+
}, p = (v) => {
|
|
2607
|
+
const C = J(), w = [...v];
|
|
2608
2608
|
if (C.length === 0)
|
|
2609
2609
|
return w;
|
|
2610
|
-
for (let
|
|
2611
|
-
const { level:
|
|
2612
|
-
Object.keys(
|
|
2613
|
-
const { records: R, config: S } =
|
|
2614
|
-
let
|
|
2615
|
-
if (
|
|
2616
|
-
|
|
2610
|
+
for (let m = 0; m < C.length; m++) {
|
|
2611
|
+
const { level: g, data: x } = C[m];
|
|
2612
|
+
Object.keys(x).forEach((_) => {
|
|
2613
|
+
const { records: R, config: S } = x[_], { label: $ = Kt, position: Y = "bottom" } = S || {}, ne = _.split("|");
|
|
2614
|
+
let ee = -1, O = -1;
|
|
2615
|
+
if (g === 0)
|
|
2616
|
+
ee = 0, O = w.length - 1;
|
|
2617
2617
|
else
|
|
2618
|
-
for (let
|
|
2619
|
-
const
|
|
2620
|
-
f.slice(0,
|
|
2621
|
-
var
|
|
2622
|
-
return ((
|
|
2623
|
-
}) && (
|
|
2618
|
+
for (let Z = 0; Z < w.length; Z++) {
|
|
2619
|
+
const te = w[Z];
|
|
2620
|
+
f.slice(0, g).every(($e, pe) => {
|
|
2621
|
+
var se;
|
|
2622
|
+
return ((se = te[pe]) == null ? void 0 : se.content) === ne[pe];
|
|
2623
|
+
}) && (ee === -1 && (ee = Z), O = Z);
|
|
2624
2624
|
}
|
|
2625
|
-
if (
|
|
2626
|
-
const
|
|
2627
|
-
let
|
|
2625
|
+
if (ee !== -1) {
|
|
2626
|
+
const Z = [];
|
|
2627
|
+
let te = "";
|
|
2628
2628
|
f.forEach(($e, pe) => {
|
|
2629
|
-
let
|
|
2630
|
-
const
|
|
2631
|
-
pe <=
|
|
2632
|
-
const Ke = ue.has(
|
|
2633
|
-
(
|
|
2634
|
-
content:
|
|
2629
|
+
let se = xe;
|
|
2630
|
+
const ae = pe + 1, ce = ae < f.length, je = h[pe];
|
|
2631
|
+
pe <= g && (pe === g ? se = $ : se = ne[pe], te += `|${se}`);
|
|
2632
|
+
const Ke = ue.has(ae) && ue.get(ae).get(te) || !0;
|
|
2633
|
+
(se === xe || se === null || se === void 0) && je.emptyReplace && (se = je.emptyReplace), Z.push({
|
|
2634
|
+
content: se,
|
|
2635
2635
|
rowspan: 1,
|
|
2636
2636
|
colspan: 1,
|
|
2637
2637
|
data: null,
|
|
2638
|
-
rowKey:
|
|
2639
|
-
expandable: Y === "top" && ce &&
|
|
2638
|
+
rowKey: te,
|
|
2639
|
+
expandable: Y === "top" && ce && se !== xe && se !== Kt,
|
|
2640
2640
|
expanded: Y === "top" ? Ke : !1,
|
|
2641
|
-
level:
|
|
2641
|
+
level: ae,
|
|
2642
2642
|
onClick: Y === "top" && ce ? (Ae) => D(Ae.level, Ae.rowKey) : void 0
|
|
2643
2643
|
});
|
|
2644
2644
|
}), z.forEach(([$e, pe]) => {
|
|
2645
|
-
const
|
|
2646
|
-
c.forEach((
|
|
2647
|
-
if (
|
|
2645
|
+
const se = {};
|
|
2646
|
+
c.forEach((ae) => {
|
|
2647
|
+
if (ae.calculateType === "expr")
|
|
2648
2648
|
return;
|
|
2649
|
-
const ce =
|
|
2649
|
+
const ce = ae.field, je = ae.calculateType || "sum", Ae = R.filter((Ce) => ut(Ce, E) === $e).map((Ce) => me(Ce, ce));
|
|
2650
2650
|
let Ne = 0;
|
|
2651
|
-
Ge[je] && (Ne = Ge[je](Ae)),
|
|
2652
|
-
}), c.forEach((
|
|
2653
|
-
if (
|
|
2654
|
-
const ce = qt(
|
|
2655
|
-
|
|
2651
|
+
Ge[je] && (Ne = Ge[je](Ae)), se[ae.field] = Ne;
|
|
2652
|
+
}), c.forEach((ae) => {
|
|
2653
|
+
if (ae.calculateType === "expr" && ae.expression) {
|
|
2654
|
+
const ce = qt(ae.expression, se);
|
|
2655
|
+
se[ae.field] = ce !== null ? ce : 0;
|
|
2656
2656
|
}
|
|
2657
|
-
}), c.forEach((
|
|
2658
|
-
let ce =
|
|
2659
|
-
(ce === xe || ce === null || ce === void 0 || typeof ce == "number" && isNaN(ce)) &&
|
|
2657
|
+
}), c.forEach((ae) => {
|
|
2658
|
+
let ce = se[ae.field];
|
|
2659
|
+
(ce === xe || ce === null || ce === void 0 || typeof ce == "number" && isNaN(ce)) && ae.emptyReplace && (ce = ae.emptyReplace), Z.push({
|
|
2660
2660
|
content: ce,
|
|
2661
2661
|
rowspan: 1,
|
|
2662
2662
|
colspan: 1,
|
|
@@ -2664,68 +2664,68 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2664
2664
|
});
|
|
2665
2665
|
});
|
|
2666
2666
|
});
|
|
2667
|
-
const fe = Y === "top" ?
|
|
2668
|
-
dt.has(
|
|
2667
|
+
const fe = Y === "top" ? ee : O + 1;
|
|
2668
|
+
dt.has(te) || (w.splice(fe, 0, Z), dt.set(te, 1), Y === "top" && g > 0 && N.set(_, te));
|
|
2669
2669
|
}
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
2672
|
return w;
|
|
2673
2673
|
}, F = He(i);
|
|
2674
|
-
ue.clear(), t.forEach((
|
|
2674
|
+
ue.clear(), t.forEach((v) => {
|
|
2675
2675
|
let C = "";
|
|
2676
|
-
f.forEach((w,
|
|
2677
|
-
const
|
|
2678
|
-
C += `|${
|
|
2679
|
-
const _ = h[
|
|
2680
|
-
ue.get(
|
|
2676
|
+
f.forEach((w, m) => {
|
|
2677
|
+
const g = m + 1, x = me(v, w);
|
|
2678
|
+
C += `|${x}`, ue.has(g) || ue.set(g, /* @__PURE__ */ new Map());
|
|
2679
|
+
const _ = h[m].collapsed;
|
|
2680
|
+
ue.get(g).set(C, !_);
|
|
2681
2681
|
});
|
|
2682
2682
|
});
|
|
2683
|
-
const M =
|
|
2683
|
+
const M = T();
|
|
2684
2684
|
let W = [];
|
|
2685
2685
|
const H = /* @__PURE__ */ new Map();
|
|
2686
|
-
M.forEach(([
|
|
2686
|
+
M.forEach(([v, C]) => {
|
|
2687
2687
|
const w = C[0];
|
|
2688
|
-
let
|
|
2689
|
-
f.forEach((
|
|
2690
|
-
const _ = me(w,
|
|
2691
|
-
|
|
2688
|
+
let m = "";
|
|
2689
|
+
f.forEach((g, x) => {
|
|
2690
|
+
const _ = me(w, g), R = x + 1;
|
|
2691
|
+
m += `|${_}`, H.has(R) || H.set(R, /* @__PURE__ */ new Map());
|
|
2692
2692
|
const S = H.get(R);
|
|
2693
|
-
S.set(
|
|
2693
|
+
S.set(m, (S.get(m) || 0) + 1);
|
|
2694
2694
|
});
|
|
2695
|
-
}), M.forEach(([
|
|
2696
|
-
const w = C[0],
|
|
2697
|
-
let
|
|
2698
|
-
f.forEach((
|
|
2699
|
-
var
|
|
2700
|
-
let R = me(w,
|
|
2695
|
+
}), M.forEach(([v, C]) => {
|
|
2696
|
+
const w = C[0], m = [];
|
|
2697
|
+
let g = "";
|
|
2698
|
+
f.forEach((x, _) => {
|
|
2699
|
+
var te;
|
|
2700
|
+
let R = me(w, x);
|
|
2701
2701
|
const S = _ + 1, $ = S < f.length, Y = h[_];
|
|
2702
|
-
|
|
2703
|
-
let
|
|
2704
|
-
const
|
|
2705
|
-
if ((
|
|
2706
|
-
const fe =
|
|
2707
|
-
N.has(fe) || N.set(fe,
|
|
2702
|
+
g += `|${R}`;
|
|
2703
|
+
let ne = v;
|
|
2704
|
+
const ee = F.find((fe) => fe.field === x);
|
|
2705
|
+
if ((te = ee == null ? void 0 : ee.total) != null && te.enabled && ee.total.label && (ne = `${g}|${ee.total.label}`), $) {
|
|
2706
|
+
const fe = g;
|
|
2707
|
+
N.has(fe) || N.set(fe, ne);
|
|
2708
2708
|
}
|
|
2709
|
-
const
|
|
2710
|
-
(R === xe || R === null || R === void 0) && Y.emptyReplace && (R = Y.emptyReplace),
|
|
2709
|
+
const O = ue.has(S) && ue.get(S).get(g) || !0, Z = S < f.length ? (H.get(S).get(g) || 0) > 1 : !1;
|
|
2710
|
+
(R === xe || R === null || R === void 0) && Y.emptyReplace && (R = Y.emptyReplace), m.push({
|
|
2711
2711
|
content: R,
|
|
2712
2712
|
rowspan: 1,
|
|
2713
2713
|
colspan: 1,
|
|
2714
2714
|
data: w,
|
|
2715
|
-
expandable: $ &&
|
|
2716
|
-
expanded:
|
|
2715
|
+
expandable: $ && Z,
|
|
2716
|
+
expanded: O,
|
|
2717
2717
|
level: S,
|
|
2718
|
-
rowKey:
|
|
2719
|
-
onClick: $ &&
|
|
2718
|
+
rowKey: g,
|
|
2719
|
+
onClick: $ && Z ? (fe) => D(fe.level, fe.rowKey) : void 0
|
|
2720
2720
|
});
|
|
2721
|
-
}), z.forEach(([
|
|
2721
|
+
}), z.forEach(([x, _]) => {
|
|
2722
2722
|
const R = {};
|
|
2723
2723
|
c.forEach((S) => {
|
|
2724
2724
|
if (S.calculateType === "expr")
|
|
2725
2725
|
return;
|
|
2726
|
-
const $ = S.field, Y = S.calculateType || "sum",
|
|
2727
|
-
let
|
|
2728
|
-
Ge[Y] && (
|
|
2726
|
+
const $ = S.field, Y = S.calculateType || "sum", ne = `${v}||${x}`, O = (A.get(ne) || []).map((te) => me(te, $));
|
|
2727
|
+
let Z = 0;
|
|
2728
|
+
Ge[Y] && (Z = Ge[Y](O)), R[S.field] = Z;
|
|
2729
2729
|
}), c.forEach((S) => {
|
|
2730
2730
|
if (S.calculateType === "expr" && S.expression) {
|
|
2731
2731
|
const $ = qt(S.expression, R);
|
|
@@ -2733,63 +2733,72 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2733
2733
|
}
|
|
2734
2734
|
}), c.forEach((S) => {
|
|
2735
2735
|
let $ = R[S.field];
|
|
2736
|
-
($ === xe || $ === null || $ === void 0 || typeof $ == "number" && isNaN($)) && S.emptyReplace && ($ = S.emptyReplace),
|
|
2736
|
+
($ === xe || $ === null || $ === void 0 || typeof $ == "number" && isNaN($)) && S.emptyReplace && ($ = S.emptyReplace), m.push({
|
|
2737
2737
|
content: $,
|
|
2738
2738
|
rowspan: 1,
|
|
2739
2739
|
colspan: 1,
|
|
2740
2740
|
data: w
|
|
2741
2741
|
});
|
|
2742
2742
|
});
|
|
2743
|
-
}), W.push({ cells:
|
|
2743
|
+
}), W.push({ cells: m, rowKey: g });
|
|
2744
2744
|
});
|
|
2745
|
-
const K = (
|
|
2746
|
-
const w =
|
|
2747
|
-
for (let
|
|
2748
|
-
if (ue.has(
|
|
2749
|
-
const
|
|
2750
|
-
if (
|
|
2751
|
-
const _ =
|
|
2752
|
-
if (
|
|
2745
|
+
const K = (v) => {
|
|
2746
|
+
const w = v.split("|").filter(Boolean).length;
|
|
2747
|
+
for (let m = 1; m < w; m++)
|
|
2748
|
+
if (ue.has(m)) {
|
|
2749
|
+
const g = ue.get(m), x = v.split("|").slice(0, m + 1).join("|");
|
|
2750
|
+
if (g.has(x) && !g.get(x)) {
|
|
2751
|
+
const _ = x, R = N.get(_);
|
|
2752
|
+
if (v !== R)
|
|
2753
2753
|
return !1;
|
|
2754
2754
|
}
|
|
2755
2755
|
}
|
|
2756
2756
|
return !0;
|
|
2757
|
-
},
|
|
2757
|
+
}, re = (v) => {
|
|
2758
2758
|
var C, w;
|
|
2759
|
-
if (!
|
|
2760
|
-
return
|
|
2761
|
-
for (let
|
|
2762
|
-
let
|
|
2763
|
-
for (let $ = 1; $ <
|
|
2764
|
-
const Y =
|
|
2765
|
-
|
|
2759
|
+
if (!v || v.length === 0)
|
|
2760
|
+
return v;
|
|
2761
|
+
for (let m = 0; m < h.length; m++) {
|
|
2762
|
+
let g = v[0][m].content, x = 0, _ = h[m], R = (C = _.total) == null ? void 0 : C.enabled, S = ((w = _.total) == null ? void 0 : w.label) || "";
|
|
2763
|
+
for (let $ = 1; $ < v.length; $++) {
|
|
2764
|
+
const Y = v[$][m];
|
|
2765
|
+
let ne = !0;
|
|
2766
|
+
if (m > 0)
|
|
2767
|
+
for (let ee = 0; ee < m; ee++) {
|
|
2768
|
+
const O = v[x][ee], Z = v[$][ee];
|
|
2769
|
+
if (O.content !== Z.content) {
|
|
2770
|
+
ne = !1;
|
|
2771
|
+
break;
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
Y.content !== xe && (!R || Y.content !== S) && Y.content === g && ne ? (Y.rowspan = 0, v[x][m].rowspan++) : (g = Y.content, x = $);
|
|
2766
2775
|
}
|
|
2767
2776
|
}
|
|
2768
|
-
return
|
|
2769
|
-
}, he = (
|
|
2770
|
-
const C =
|
|
2771
|
-
const _ = { ...
|
|
2777
|
+
return v;
|
|
2778
|
+
}, he = (v) => {
|
|
2779
|
+
const C = v.filter((g) => K(g.rowKey)), w = C.map((g) => g.cells.map((x) => {
|
|
2780
|
+
const _ = { ...x };
|
|
2772
2781
|
if (_.expandable && _.level && _.rowKey && ue.has(_.level)) {
|
|
2773
2782
|
const R = ue.get(_.level);
|
|
2774
2783
|
R.has(_.rowKey) && (_.expanded = R.get(_.rowKey));
|
|
2775
2784
|
}
|
|
2776
2785
|
return _;
|
|
2777
2786
|
}));
|
|
2778
|
-
return
|
|
2779
|
-
rowKey:
|
|
2780
|
-
cells: w[
|
|
2787
|
+
return re(w), C.map((g, x) => ({
|
|
2788
|
+
rowKey: g.rowKey,
|
|
2789
|
+
cells: w[x]
|
|
2781
2790
|
}));
|
|
2782
2791
|
};
|
|
2783
2792
|
dt.clear();
|
|
2784
|
-
const be = W.map((
|
|
2793
|
+
const be = W.map((v) => v.cells), _e = p(be).map((v, C) => {
|
|
2785
2794
|
let w = "";
|
|
2786
|
-
return
|
|
2787
|
-
|
|
2788
|
-
}), { cells:
|
|
2795
|
+
return v.forEach((m, g) => {
|
|
2796
|
+
g < f.length && m.rowKey && (w = m.rowKey);
|
|
2797
|
+
}), { cells: v, rowKey: w };
|
|
2789
2798
|
}), Se = (() => {
|
|
2790
|
-
const
|
|
2799
|
+
const v = [];
|
|
2791
2800
|
if (h.forEach((C) => {
|
|
2792
|
-
|
|
2801
|
+
v.push({
|
|
2793
2802
|
...C,
|
|
2794
2803
|
width: C.width || 100,
|
|
2795
2804
|
fixed: "left",
|
|
@@ -2797,7 +2806,7 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2797
2806
|
});
|
|
2798
2807
|
}), l.length === 0)
|
|
2799
2808
|
c.forEach((C) => {
|
|
2800
|
-
|
|
2809
|
+
v.push({
|
|
2801
2810
|
...C,
|
|
2802
2811
|
width: C.width || 100,
|
|
2803
2812
|
key: C.field
|
|
@@ -2805,22 +2814,22 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2805
2814
|
});
|
|
2806
2815
|
else {
|
|
2807
2816
|
const C = [];
|
|
2808
|
-
z.forEach(([w,
|
|
2809
|
-
const
|
|
2810
|
-
let
|
|
2811
|
-
|
|
2817
|
+
z.forEach(([w, m]) => {
|
|
2818
|
+
const g = w.split("|").filter((_) => _ !== "");
|
|
2819
|
+
let x = C;
|
|
2820
|
+
g.forEach((_, R) => {
|
|
2812
2821
|
var $;
|
|
2813
|
-
let S =
|
|
2822
|
+
let S = x.find((Y) => Y.title === _);
|
|
2814
2823
|
if (!S) {
|
|
2815
|
-
const
|
|
2816
|
-
field:
|
|
2824
|
+
const ne = `${(($ = l[R]) == null ? void 0 : $.field) || "unknown"}__${_}`, ee = {
|
|
2825
|
+
field: ne,
|
|
2817
2826
|
title: _,
|
|
2818
2827
|
children: [],
|
|
2819
|
-
key:
|
|
2828
|
+
key: ne
|
|
2820
2829
|
};
|
|
2821
|
-
|
|
2830
|
+
x.push(ee), S = ee;
|
|
2822
2831
|
}
|
|
2823
|
-
R ===
|
|
2832
|
+
R === g.length - 1 ? c.forEach((Y) => {
|
|
2824
2833
|
S.children || (S.children = []), S.children.push({
|
|
2825
2834
|
...Y,
|
|
2826
2835
|
field: `${w}||${Y.field}`,
|
|
@@ -2828,11 +2837,11 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2828
2837
|
width: Y.width || 100,
|
|
2829
2838
|
key: `${w}||${Y.field}`
|
|
2830
2839
|
});
|
|
2831
|
-
}) : (S.children || (S.children = []),
|
|
2840
|
+
}) : (S.children || (S.children = []), x = S.children);
|
|
2832
2841
|
});
|
|
2833
|
-
}),
|
|
2842
|
+
}), v.push(...C);
|
|
2834
2843
|
}
|
|
2835
|
-
return
|
|
2844
|
+
return v;
|
|
2836
2845
|
})();
|
|
2837
2846
|
return {
|
|
2838
2847
|
list: _e,
|
|
@@ -2883,7 +2892,7 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2883
2892
|
});
|
|
2884
2893
|
b.current = F, F.tableColumns && E(F.tableColumns), I();
|
|
2885
2894
|
}, [r, n, i, s, I]);
|
|
2886
|
-
const A = ge((p) => p ? typeof p == "string" ? parseInt(p.replace("px", "")) || 0 : typeof p == "number" ? p : 0 : 0, []), { baseWidth:
|
|
2895
|
+
const A = ge((p) => p ? typeof p == "string" ? parseInt(p.replace("px", "")) || 0 : typeof p == "number" ? p : 0 : 0, []), { baseWidth: T, colCount: u } = ye(() => {
|
|
2887
2896
|
let p = 0, F = 0;
|
|
2888
2897
|
const M = (W) => {
|
|
2889
2898
|
W.forEach((H) => {
|
|
@@ -2894,12 +2903,12 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2894
2903
|
}, [f, A]), j = ye(() => {
|
|
2895
2904
|
const p = (F) => F.map((M) => {
|
|
2896
2905
|
let W = 0;
|
|
2897
|
-
|
|
2906
|
+
T < a && u > 0 && (W = Math.floor((a - T) / u));
|
|
2898
2907
|
const K = (M.width ? A(M.width) : Mn) + W;
|
|
2899
2908
|
return M.colSpan && M.colSpan > 1 ? M.width = K * M.colSpan : M.width = K, M.fixed && (M.fixed = !1), M != null && M.children && M.children.length > 0 && (M.children = p(M.children)), M;
|
|
2900
2909
|
});
|
|
2901
2910
|
return p(Et(f));
|
|
2902
|
-
}, [f,
|
|
2911
|
+
}, [f, T, a, u, A]), P = ye(() => {
|
|
2903
2912
|
let p = 0;
|
|
2904
2913
|
const F = (M) => {
|
|
2905
2914
|
M.forEach((W) => {
|
|
@@ -2920,19 +2929,19 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2920
2929
|
N.current = !1;
|
|
2921
2930
|
});
|
|
2922
2931
|
}, []);
|
|
2923
|
-
return /* @__PURE__ */
|
|
2932
|
+
return /* @__PURE__ */ Q.jsx(
|
|
2924
2933
|
Rt,
|
|
2925
2934
|
{
|
|
2926
2935
|
onResize: ({ width: p }) => {
|
|
2927
2936
|
p && p !== a && h(p);
|
|
2928
2937
|
},
|
|
2929
|
-
children: /* @__PURE__ */
|
|
2938
|
+
children: /* @__PURE__ */ Q.jsxs(
|
|
2930
2939
|
"div",
|
|
2931
2940
|
{
|
|
2932
2941
|
className: St("virtual-table", e.className),
|
|
2933
2942
|
style: { width: "100%", ...e.style },
|
|
2934
2943
|
children: [
|
|
2935
|
-
/* @__PURE__ */
|
|
2944
|
+
/* @__PURE__ */ Q.jsx(
|
|
2936
2945
|
An,
|
|
2937
2946
|
{
|
|
2938
2947
|
ref: J,
|
|
@@ -2942,7 +2951,7 @@ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2942
2951
|
meta: n
|
|
2943
2952
|
}
|
|
2944
2953
|
),
|
|
2945
|
-
/* @__PURE__ */
|
|
2954
|
+
/* @__PURE__ */ Q.jsx("div", { className: "virtual-table-body", style: { width: "100%" }, children: /* @__PURE__ */ Q.jsx(
|
|
2946
2955
|
Jn,
|
|
2947
2956
|
{
|
|
2948
2957
|
data: l,
|