@yester/virtual-table 1.1.3 → 1.1.5
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/virtual-table.es.js +749 -742
- package/dist/virtual-table.es.js.map +1 -1
- package/dist/virtual-table.umd.js +13 -13
- package/dist/virtual-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/virtual-table.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as re from "react";
|
|
2
|
-
import Ye, { version as Tr, isValidElement as Pr, forwardRef as jr, useMemo as
|
|
2
|
+
import Ye, { version as Tr, isValidElement as Pr, forwardRef as jr, useMemo as ye, memo as Ut, useState as Ie, useImperativeHandle as Ar, useEffect as Ze, createElement as Mt, useLayoutEffect as Et, useRef as ze, useCallback as ge } from "react";
|
|
3
3
|
import zt from "react-dom";
|
|
4
4
|
function Mr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -21,14 +21,14 @@ function zr() {
|
|
|
21
21
|
It = 1;
|
|
22
22
|
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function a(l, c, f) {
|
|
24
|
-
var h,
|
|
25
|
-
f !== void 0 && (
|
|
24
|
+
var h, E = {}, v = null, A = null;
|
|
25
|
+
f !== void 0 && (v = "" + f), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (A = c.ref);
|
|
26
26
|
for (h in c)
|
|
27
|
-
n.call(c, h) && !s.hasOwnProperty(h) && (
|
|
27
|
+
n.call(c, h) && !s.hasOwnProperty(h) && (E[h] = c[h]);
|
|
28
28
|
if (l && l.defaultProps)
|
|
29
29
|
for (h in c = l.defaultProps, c)
|
|
30
|
-
|
|
31
|
-
return { $$typeof: t, type: l, key:
|
|
30
|
+
E[h] === void 0 && (E[h] = c[h]);
|
|
31
|
+
return { $$typeof: t, type: l, key: v, ref: A, props: E, _owner: i.current };
|
|
32
32
|
}
|
|
33
33
|
return We.Fragment = r, We.jsx = a, We.jsxs = a, We;
|
|
34
34
|
}
|
|
@@ -45,46 +45,46 @@ var Ve = {};
|
|
|
45
45
|
var Lt;
|
|
46
46
|
function Ir() {
|
|
47
47
|
return Lt || (Lt = 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"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"),
|
|
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"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), P = Symbol.iterator, _ = "@@iterator";
|
|
49
49
|
function d(o) {
|
|
50
50
|
if (o === null || typeof o != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var u =
|
|
52
|
+
var u = P && o[P] || o[_];
|
|
53
53
|
return typeof u == "function" ? u : null;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
55
|
+
var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
|
+
function $(o) {
|
|
57
57
|
{
|
|
58
|
-
for (var u = arguments.length,
|
|
59
|
-
|
|
60
|
-
J("error", o,
|
|
58
|
+
for (var u = arguments.length, g = new Array(u > 1 ? u - 1 : 0), L = 1; L < u; L++)
|
|
59
|
+
g[L - 1] = arguments[L];
|
|
60
|
+
J("error", o, g);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function J(o, u,
|
|
63
|
+
function J(o, u, g) {
|
|
64
64
|
{
|
|
65
|
-
var
|
|
66
|
-
K !== "" && (u += "%s",
|
|
67
|
-
var X =
|
|
65
|
+
var L = k.ReactDebugCurrentFrame, K = L.getStackAddendum();
|
|
66
|
+
K !== "" && (u += "%s", g = g.concat([K]));
|
|
67
|
+
var X = g.map(function(V) {
|
|
68
68
|
return String(V);
|
|
69
69
|
});
|
|
70
70
|
X.unshift("Warning: " + u), Function.prototype.apply.call(console[o], console, X);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var j = !1, F = !1, D = !1, z = !1, p = !1, B;
|
|
74
74
|
B = Symbol.for("react.module.reference");
|
|
75
75
|
function M(o) {
|
|
76
|
-
return !!(typeof o == "string" || typeof o == "function" || o === n || o === s ||
|
|
76
|
+
return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || p || o === i || o === f || o === h || z || o === A || j || F || D || typeof o == "object" && o !== null && (o.$$typeof === v || o.$$typeof === E || o.$$typeof === a || o.$$typeof === l || o.$$typeof === c || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
80
|
o.$$typeof === B || o.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function W(o, u,
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
82
|
+
function W(o, u, g) {
|
|
83
|
+
var L = o.displayName;
|
|
84
|
+
if (L)
|
|
85
|
+
return L;
|
|
86
86
|
var K = u.displayName || u.name || "";
|
|
87
|
-
return K !== "" ?
|
|
87
|
+
return K !== "" ? g + "(" + K + ")" : g;
|
|
88
88
|
}
|
|
89
89
|
function Y(o) {
|
|
90
90
|
return o.displayName || "Context";
|
|
@@ -92,7 +92,7 @@ function Ir() {
|
|
|
92
92
|
function q(o) {
|
|
93
93
|
if (o == null)
|
|
94
94
|
return null;
|
|
95
|
-
if (typeof o.tag == "number" &&
|
|
95
|
+
if (typeof o.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
96
96
|
return o.displayName || o.name || null;
|
|
97
97
|
if (typeof o == "string")
|
|
98
98
|
return o;
|
|
@@ -116,14 +116,14 @@ function Ir() {
|
|
|
116
116
|
var u = o;
|
|
117
117
|
return Y(u) + ".Consumer";
|
|
118
118
|
case a:
|
|
119
|
-
var
|
|
120
|
-
return Y(
|
|
119
|
+
var g = o;
|
|
120
|
+
return Y(g._context) + ".Provider";
|
|
121
121
|
case c:
|
|
122
122
|
return W(o, o.render, "ForwardRef");
|
|
123
|
-
case
|
|
124
|
-
var
|
|
125
|
-
return
|
|
126
|
-
case
|
|
123
|
+
case E:
|
|
124
|
+
var L = o.displayName || null;
|
|
125
|
+
return L !== null ? L : q(o.type) || "Memo";
|
|
126
|
+
case v: {
|
|
127
127
|
var K = o, X = K._payload, V = K._init;
|
|
128
128
|
try {
|
|
129
129
|
return q(V(X));
|
|
@@ -134,18 +134,18 @@ function Ir() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var te = Object.assign, he = 0,
|
|
138
|
-
function
|
|
137
|
+
var te = Object.assign, he = 0, be, Te, _e, Ee, Se, y, C;
|
|
138
|
+
function w() {
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
function
|
|
140
|
+
w.__reactDisabledLog = !0;
|
|
141
|
+
function b() {
|
|
142
142
|
{
|
|
143
143
|
if (he === 0) {
|
|
144
|
-
|
|
144
|
+
be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group, y = console.groupCollapsed, C = console.groupEnd;
|
|
145
145
|
var o = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
|
-
value:
|
|
148
|
+
value: w,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
@@ -161,7 +161,7 @@ function Ir() {
|
|
|
161
161
|
he++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function m() {
|
|
165
165
|
{
|
|
166
166
|
if (he--, he === 0) {
|
|
167
167
|
var o = {
|
|
@@ -171,7 +171,7 @@ function Ir() {
|
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
173
|
log: te({}, o, {
|
|
174
|
-
value:
|
|
174
|
+
value: be
|
|
175
175
|
}),
|
|
176
176
|
info: te({}, o, {
|
|
177
177
|
value: Te
|
|
@@ -180,55 +180,55 @@ function Ir() {
|
|
|
180
180
|
value: _e
|
|
181
181
|
}),
|
|
182
182
|
error: te({}, o, {
|
|
183
|
-
value:
|
|
183
|
+
value: Ee
|
|
184
184
|
}),
|
|
185
185
|
group: te({}, o, {
|
|
186
186
|
value: Se
|
|
187
187
|
}),
|
|
188
188
|
groupCollapsed: te({}, o, {
|
|
189
|
-
value:
|
|
189
|
+
value: y
|
|
190
190
|
}),
|
|
191
191
|
groupEnd: te({}, o, {
|
|
192
192
|
value: C
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
he < 0 &&
|
|
196
|
+
he < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var
|
|
200
|
-
function
|
|
199
|
+
var O = k.ReactCurrentDispatcher, R;
|
|
200
|
+
function S(o, u, g) {
|
|
201
201
|
{
|
|
202
|
-
if (
|
|
202
|
+
if (R === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
205
|
} catch (K) {
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var L = K.stack.trim().match(/\n( *(at )?)/);
|
|
207
|
+
R = L && L[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` +
|
|
210
|
+
` + R + o;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var x = !1, I;
|
|
214
214
|
{
|
|
215
215
|
var H = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
|
-
|
|
216
|
+
I = new H();
|
|
217
217
|
}
|
|
218
218
|
function ae(o, u) {
|
|
219
|
-
if (!o ||
|
|
219
|
+
if (!o || x)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
222
|
+
var g = I.get(o);
|
|
223
|
+
if (g !== void 0)
|
|
224
|
+
return g;
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var L;
|
|
227
|
+
x = !0;
|
|
228
228
|
var K = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
230
|
var X;
|
|
231
|
-
X =
|
|
231
|
+
X = O.current, O.current = null, b();
|
|
232
232
|
try {
|
|
233
233
|
if (u) {
|
|
234
234
|
var V = function() {
|
|
@@ -242,14 +242,14 @@ function Ir() {
|
|
|
242
242
|
try {
|
|
243
243
|
Reflect.construct(V, []);
|
|
244
244
|
} catch (ve) {
|
|
245
|
-
|
|
245
|
+
L = ve;
|
|
246
246
|
}
|
|
247
247
|
Reflect.construct(o, [], V);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
V.call();
|
|
251
251
|
} catch (ve) {
|
|
252
|
-
|
|
252
|
+
L = ve;
|
|
253
253
|
}
|
|
254
254
|
o.call(V.prototype);
|
|
255
255
|
}
|
|
@@ -257,14 +257,14 @@ function Ir() {
|
|
|
257
257
|
try {
|
|
258
258
|
throw Error();
|
|
259
259
|
} catch (ve) {
|
|
260
|
-
|
|
260
|
+
L = ve;
|
|
261
261
|
}
|
|
262
262
|
o();
|
|
263
263
|
}
|
|
264
264
|
} catch (ve) {
|
|
265
|
-
if (ve &&
|
|
265
|
+
if (ve && L && typeof ve.stack == "string") {
|
|
266
266
|
for (var N = ve.stack.split(`
|
|
267
|
-
`), de =
|
|
267
|
+
`), de = L.stack.split(`
|
|
268
268
|
`), ne = N.length - 1, se = de.length - 1; ne >= 1 && se >= 0 && N[ne] !== de[se]; )
|
|
269
269
|
se--;
|
|
270
270
|
for (; ne >= 1 && se >= 0; ne--, se--)
|
|
@@ -272,65 +272,65 @@ function Ir() {
|
|
|
272
272
|
if (ne !== 1 || se !== 1)
|
|
273
273
|
do
|
|
274
274
|
if (ne--, se--, se < 0 || N[ne] !== de[se]) {
|
|
275
|
-
var
|
|
275
|
+
var we = `
|
|
276
276
|
` + N[ne].replace(" at new ", " at ");
|
|
277
|
-
return o.displayName &&
|
|
277
|
+
return o.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", o.displayName)), typeof o == "function" && I.set(o, we), we;
|
|
278
278
|
}
|
|
279
279
|
while (ne >= 1 && se >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} finally {
|
|
284
|
-
|
|
284
|
+
x = !1, O.current = X, m(), Error.prepareStackTrace = K;
|
|
285
285
|
}
|
|
286
|
-
var ke = o ? o.displayName || o.name : "", Me = ke ?
|
|
287
|
-
return typeof o == "function" &&
|
|
286
|
+
var ke = o ? o.displayName || o.name : "", Me = ke ? S(ke) : "";
|
|
287
|
+
return typeof o == "function" && I.set(o, Me), Me;
|
|
288
288
|
}
|
|
289
|
-
function le(o, u,
|
|
289
|
+
function le(o, u, g) {
|
|
290
290
|
return ae(o, !1);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function T(o) {
|
|
293
293
|
var u = o.prototype;
|
|
294
294
|
return !!(u && u.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function Q(o, u,
|
|
296
|
+
function Q(o, u, g) {
|
|
297
297
|
if (o == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof o == "function")
|
|
300
|
-
return ae(o,
|
|
300
|
+
return ae(o, T(o));
|
|
301
301
|
if (typeof o == "string")
|
|
302
|
-
return
|
|
302
|
+
return S(o);
|
|
303
303
|
switch (o) {
|
|
304
304
|
case f:
|
|
305
|
-
return
|
|
305
|
+
return S("Suspense");
|
|
306
306
|
case h:
|
|
307
|
-
return
|
|
307
|
+
return S("SuspenseList");
|
|
308
308
|
}
|
|
309
309
|
if (typeof o == "object")
|
|
310
310
|
switch (o.$$typeof) {
|
|
311
311
|
case c:
|
|
312
312
|
return le(o.render);
|
|
313
|
-
case
|
|
314
|
-
return Q(o.type, u,
|
|
315
|
-
case
|
|
316
|
-
var
|
|
313
|
+
case E:
|
|
314
|
+
return Q(o.type, u, g);
|
|
315
|
+
case v: {
|
|
316
|
+
var L = o, K = L._payload, X = L._init;
|
|
317
317
|
try {
|
|
318
|
-
return Q(X(K), u,
|
|
318
|
+
return Q(X(K), u, g);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var ee = Object.prototype.hasOwnProperty, fe = {}, Le =
|
|
325
|
+
var ee = Object.prototype.hasOwnProperty, fe = {}, Le = k.ReactDebugCurrentFrame;
|
|
326
326
|
function pe(o) {
|
|
327
327
|
if (o) {
|
|
328
|
-
var u = o._owner,
|
|
329
|
-
Le.setExtraStackFrame(
|
|
328
|
+
var u = o._owner, g = Q(o.type, o._source, u ? u.type : null);
|
|
329
|
+
Le.setExtraStackFrame(g);
|
|
330
330
|
} else
|
|
331
331
|
Le.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function oe(o, u,
|
|
333
|
+
function oe(o, u, g, L, K) {
|
|
334
334
|
{
|
|
335
335
|
var X = Function.call.bind(ee);
|
|
336
336
|
for (var V in o)
|
|
@@ -338,14 +338,14 @@ function Ir() {
|
|
|
338
338
|
var N = void 0;
|
|
339
339
|
try {
|
|
340
340
|
if (typeof o[V] != "function") {
|
|
341
|
-
var de = Error((
|
|
341
|
+
var de = Error((L || "React class") + ": " + g + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[V] + "`.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
|
-
N = o[V](u, V,
|
|
344
|
+
N = o[V](u, V, L, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
345
|
} catch (ne) {
|
|
346
346
|
N = ne;
|
|
347
347
|
}
|
|
348
|
-
N && !(N instanceof Error) && (pe(K),
|
|
348
|
+
N && !(N instanceof Error) && (pe(K), $("%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", g, V, typeof N), pe(null)), N instanceof Error && !(N.message in fe) && (fe[N.message] = !0, pe(K), $("Failed %s type: %s", g, N.message), pe(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
@@ -355,8 +355,8 @@ function Ir() {
|
|
|
355
355
|
}
|
|
356
356
|
function je(o) {
|
|
357
357
|
{
|
|
358
|
-
var u = typeof Symbol == "function" && Symbol.toStringTag,
|
|
359
|
-
return
|
|
358
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, g = u && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
359
|
+
return g;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
function Ke(o) {
|
|
@@ -371,9 +371,9 @@ function Ir() {
|
|
|
371
371
|
}
|
|
372
372
|
function Ne(o) {
|
|
373
373
|
if (Ke(o))
|
|
374
|
-
return
|
|
374
|
+
return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", je(o)), Ae(o);
|
|
375
375
|
}
|
|
376
|
-
var
|
|
376
|
+
var xe = k.ReactCurrentOwner, ur = {
|
|
377
377
|
key: !0,
|
|
378
378
|
ref: !0,
|
|
379
379
|
__self: !0,
|
|
@@ -397,41 +397,41 @@ function Ir() {
|
|
|
397
397
|
return o.key !== void 0;
|
|
398
398
|
}
|
|
399
399
|
function hr(o, u) {
|
|
400
|
-
if (typeof o.ref == "string" &&
|
|
401
|
-
var
|
|
402
|
-
et[
|
|
400
|
+
if (typeof o.ref == "string" && xe.current && u && xe.current.stateNode !== u) {
|
|
401
|
+
var g = q(xe.current.type);
|
|
402
|
+
et[g] || ($('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', q(xe.current.type), o.ref), et[g] = !0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
function pr(o, u) {
|
|
406
406
|
{
|
|
407
|
-
var
|
|
408
|
-
Rt || (Rt = !0,
|
|
407
|
+
var g = function() {
|
|
408
|
+
Rt || (Rt = !0, $("%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)", u));
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
get:
|
|
410
|
+
g.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
411
|
+
get: g,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
function vr(o, u) {
|
|
417
417
|
{
|
|
418
|
-
var
|
|
419
|
-
St || (St = !0,
|
|
418
|
+
var g = function() {
|
|
419
|
+
St || (St = !0, $("%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)", u));
|
|
420
420
|
};
|
|
421
|
-
|
|
422
|
-
get:
|
|
421
|
+
g.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
422
|
+
get: g,
|
|
423
423
|
configurable: !0
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var mr = function(o, u,
|
|
427
|
+
var mr = function(o, u, g, L, K, X, V) {
|
|
428
428
|
var N = {
|
|
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: u,
|
|
434
|
-
ref:
|
|
434
|
+
ref: g,
|
|
435
435
|
props: V,
|
|
436
436
|
// Record the component responsible for creating this element.
|
|
437
437
|
_owner: X
|
|
@@ -445,7 +445,7 @@ function Ir() {
|
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: L
|
|
449
449
|
}), Object.defineProperty(N, "_source", {
|
|
450
450
|
configurable: !1,
|
|
451
451
|
enumerable: !1,
|
|
@@ -453,10 +453,10 @@ function Ir() {
|
|
|
453
453
|
value: K
|
|
454
454
|
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
455
455
|
};
|
|
456
|
-
function gr(o, u,
|
|
456
|
+
function gr(o, u, g, L, K) {
|
|
457
457
|
{
|
|
458
458
|
var X, V = {}, N = null, de = null;
|
|
459
|
-
|
|
459
|
+
g !== void 0 && (Ne(g), N = "" + g), dr(u) && (Ne(u.key), N = "" + u.key), fr(u) && (de = u.ref, hr(u, K));
|
|
460
460
|
for (X in u)
|
|
461
461
|
ee.call(u, X) && !ur.hasOwnProperty(X) && (V[X] = u[X]);
|
|
462
462
|
if (o && o.defaultProps) {
|
|
@@ -468,23 +468,23 @@ function Ir() {
|
|
|
468
468
|
var se = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
469
469
|
N && pr(V, se), de && vr(V, se);
|
|
470
470
|
}
|
|
471
|
-
return mr(o, N, de, K,
|
|
471
|
+
return mr(o, N, de, K, L, xe.current, V);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
var tt =
|
|
474
|
+
var tt = k.ReactCurrentOwner, xt = k.ReactDebugCurrentFrame;
|
|
475
475
|
function $e(o) {
|
|
476
476
|
if (o) {
|
|
477
|
-
var u = o._owner,
|
|
478
|
-
|
|
477
|
+
var u = o._owner, g = Q(o.type, o._source, u ? u.type : null);
|
|
478
|
+
xt.setExtraStackFrame(g);
|
|
479
479
|
} else
|
|
480
|
-
|
|
480
|
+
xt.setExtraStackFrame(null);
|
|
481
481
|
}
|
|
482
482
|
var rt;
|
|
483
483
|
rt = !1;
|
|
484
484
|
function nt(o) {
|
|
485
485
|
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Ct() {
|
|
488
488
|
{
|
|
489
489
|
if (tt.current) {
|
|
490
490
|
var o = q(tt.current.type);
|
|
@@ -499,10 +499,10 @@ Check the render method of \`` + o + "`.";
|
|
|
499
499
|
function yr(o) {
|
|
500
500
|
{
|
|
501
501
|
if (o !== void 0) {
|
|
502
|
-
var u = o.fileName.replace(/^.*[\\\/]/, ""),
|
|
502
|
+
var u = o.fileName.replace(/^.*[\\\/]/, ""), g = o.lineNumber;
|
|
503
503
|
return `
|
|
504
504
|
|
|
505
|
-
Check your code at ` + u + ":" +
|
|
505
|
+
Check your code at ` + u + ":" + g + ".";
|
|
506
506
|
}
|
|
507
507
|
return "";
|
|
508
508
|
}
|
|
@@ -510,12 +510,12 @@ Check your code at ` + u + ":" + m + ".";
|
|
|
510
510
|
var Ot = {};
|
|
511
511
|
function br(o) {
|
|
512
512
|
{
|
|
513
|
-
var u =
|
|
513
|
+
var u = Ct();
|
|
514
514
|
if (!u) {
|
|
515
|
-
var
|
|
516
|
-
|
|
515
|
+
var g = typeof o == "string" ? o : o.displayName || o.name;
|
|
516
|
+
g && (u = `
|
|
517
517
|
|
|
518
|
-
Check the top-level render call using <` +
|
|
518
|
+
Check the top-level render call using <` + g + ">.");
|
|
519
519
|
}
|
|
520
520
|
return u;
|
|
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 (Ot[
|
|
528
|
+
var g = br(u);
|
|
529
|
+
if (Ot[g])
|
|
530
530
|
return;
|
|
531
|
-
Ot[
|
|
532
|
-
var
|
|
533
|
-
o && o._owner && o._owner !== tt.current && (
|
|
531
|
+
Ot[g] = !0;
|
|
532
|
+
var L = "";
|
|
533
|
+
o && o._owner && o._owner !== tt.current && (L = " It was passed a child from " + q(o._owner.type) + "."), $e(o), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, L), $e(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
function Pt(o, u) {
|
|
@@ -538,9 +538,9 @@ 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
|
|
543
|
-
nt(
|
|
541
|
+
for (var g = 0; g < o.length; g++) {
|
|
542
|
+
var L = o[g];
|
|
543
|
+
nt(L) && Tt(L, u);
|
|
544
544
|
}
|
|
545
545
|
else if (nt(o))
|
|
546
546
|
o._store && (o._store.validated = !0);
|
|
@@ -557,91 +557,91 @@ Check the top-level render call using <` + m + ">.");
|
|
|
557
557
|
var u = o.type;
|
|
558
558
|
if (u == null || typeof u == "string")
|
|
559
559
|
return;
|
|
560
|
-
var
|
|
560
|
+
var g;
|
|
561
561
|
if (typeof u == "function")
|
|
562
|
-
|
|
562
|
+
g = u.propTypes;
|
|
563
563
|
else if (typeof u == "object" && (u.$$typeof === c || // Note: Memo only checks outer props here.
|
|
564
564
|
// Inner props are checked in the reconciler.
|
|
565
|
-
u.$$typeof ===
|
|
566
|
-
|
|
565
|
+
u.$$typeof === E))
|
|
566
|
+
g = u.propTypes;
|
|
567
567
|
else
|
|
568
568
|
return;
|
|
569
|
-
if (
|
|
570
|
-
var
|
|
571
|
-
oe(
|
|
569
|
+
if (g) {
|
|
570
|
+
var L = q(u);
|
|
571
|
+
oe(g, o.props, "prop", L, o);
|
|
572
572
|
} else if (u.PropTypes !== void 0 && !rt) {
|
|
573
573
|
rt = !0;
|
|
574
574
|
var K = q(u);
|
|
575
|
-
|
|
575
|
+
$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", K || "Unknown");
|
|
576
576
|
}
|
|
577
|
-
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved &&
|
|
577
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
function wr(o) {
|
|
581
581
|
{
|
|
582
|
-
for (var u = Object.keys(o.props),
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
$e(o),
|
|
582
|
+
for (var u = Object.keys(o.props), g = 0; g < u.length; g++) {
|
|
583
|
+
var L = u[g];
|
|
584
|
+
if (L !== "children" && L !== "key") {
|
|
585
|
+
$e(o), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), $e(null);
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
o.ref !== null && ($e(o),
|
|
589
|
+
o.ref !== null && ($e(o), $("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
var jt = {};
|
|
593
|
-
function At(o, u,
|
|
593
|
+
function At(o, u, g, L, K, X) {
|
|
594
594
|
{
|
|
595
595
|
var V = M(o);
|
|
596
596
|
if (!V) {
|
|
597
597
|
var N = "";
|
|
598
598
|
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (N += " 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 = yr(K);
|
|
600
|
-
de ? N += de : N +=
|
|
600
|
+
de ? N += de : N += Ct();
|
|
601
601
|
var ne;
|
|
602
|
-
o === null ? ne = "null" : ce(o) ? ne = "array" : o !== void 0 && o.$$typeof === t ? (ne = "<" + (q(o.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof o,
|
|
602
|
+
o === null ? ne = "null" : ce(o) ? ne = "array" : o !== void 0 && o.$$typeof === t ? (ne = "<" + (q(o.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof o, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, N);
|
|
603
603
|
}
|
|
604
|
-
var se = gr(o, u,
|
|
604
|
+
var se = gr(o, u, g, K, X);
|
|
605
605
|
if (se == null)
|
|
606
606
|
return se;
|
|
607
607
|
if (V) {
|
|
608
|
-
var
|
|
609
|
-
if (
|
|
610
|
-
if (
|
|
611
|
-
if (ce(
|
|
612
|
-
for (var ke = 0; ke <
|
|
613
|
-
Pt(
|
|
614
|
-
Object.freeze && Object.freeze(
|
|
608
|
+
var we = u.children;
|
|
609
|
+
if (we !== void 0)
|
|
610
|
+
if (L)
|
|
611
|
+
if (ce(we)) {
|
|
612
|
+
for (var ke = 0; ke < we.length; ke++)
|
|
613
|
+
Pt(we[ke], o);
|
|
614
|
+
Object.freeze && Object.freeze(we);
|
|
615
615
|
} else
|
|
616
|
-
|
|
616
|
+
$("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
617
617
|
else
|
|
618
|
-
Pt(
|
|
618
|
+
Pt(we, o);
|
|
619
619
|
}
|
|
620
620
|
if (ee.call(u, "key")) {
|
|
621
621
|
var Me = q(o), ve = Object.keys(u).filter(function(Or) {
|
|
622
622
|
return Or !== "key";
|
|
623
623
|
}), ot = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
624
624
|
if (!jt[Me + ot]) {
|
|
625
|
-
var
|
|
626
|
-
|
|
625
|
+
var Cr = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
|
|
626
|
+
$(`A props object containing a "key" prop is being spread into JSX:
|
|
627
627
|
let props = %s;
|
|
628
628
|
<%s {...props} />
|
|
629
629
|
React keys must be passed directly to JSX without using spread:
|
|
630
630
|
let props = %s;
|
|
631
|
-
<%s key={someKey} {...props} />`, ot, Me,
|
|
631
|
+
<%s key={someKey} {...props} />`, ot, Me, Cr, Me), jt[Me + ot] = !0;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
return o === n ? wr(se) : Er(se), se;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function _r(o, u,
|
|
638
|
-
return At(o, u,
|
|
637
|
+
function _r(o, u, g) {
|
|
638
|
+
return At(o, u, g, !0);
|
|
639
639
|
}
|
|
640
|
-
function Rr(o, u,
|
|
641
|
-
return At(o, u,
|
|
640
|
+
function Rr(o, u, g) {
|
|
641
|
+
return At(o, u, g, !1);
|
|
642
642
|
}
|
|
643
|
-
var Sr = Rr,
|
|
644
|
-
Ve.Fragment = n, Ve.jsx = Sr, Ve.jsxs =
|
|
643
|
+
var Sr = Rr, xr = _r;
|
|
644
|
+
Ve.Fragment = n, Ve.jsx = Sr, Ve.jsxs = xr;
|
|
645
645
|
}()), Ve;
|
|
646
646
|
}
|
|
647
647
|
process.env.NODE_ENV === "production" ? dt.exports = zr() : dt.exports = Ir();
|
|
@@ -762,12 +762,12 @@ function Vr() {
|
|
|
762
762
|
if (Nt)
|
|
763
763
|
return G;
|
|
764
764
|
Nt = 1;
|
|
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"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"),
|
|
766
|
-
|
|
767
|
-
function
|
|
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"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), P;
|
|
766
|
+
P = Symbol.for("react.module.reference");
|
|
767
|
+
function _(d) {
|
|
768
768
|
if (typeof d == "object" && d !== null) {
|
|
769
|
-
var
|
|
770
|
-
switch (
|
|
769
|
+
var k = d.$$typeof;
|
|
770
|
+
switch (k) {
|
|
771
771
|
case e:
|
|
772
772
|
switch (d = d.type, d) {
|
|
773
773
|
case r:
|
|
@@ -781,50 +781,50 @@ function Vr() {
|
|
|
781
781
|
case l:
|
|
782
782
|
case a:
|
|
783
783
|
case c:
|
|
784
|
-
case
|
|
785
|
-
case
|
|
784
|
+
case v:
|
|
785
|
+
case E:
|
|
786
786
|
case s:
|
|
787
787
|
return d;
|
|
788
788
|
default:
|
|
789
|
-
return
|
|
789
|
+
return k;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
case t:
|
|
793
|
-
return
|
|
793
|
+
return k;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
return G.ContextConsumer = a, G.ContextProvider = s, G.Element = e, G.ForwardRef = c, G.Fragment = r, G.Lazy =
|
|
797
|
+
return G.ContextConsumer = a, G.ContextProvider = s, G.Element = e, G.ForwardRef = c, G.Fragment = r, G.Lazy = v, G.Memo = E, G.Portal = t, G.Profiler = i, G.StrictMode = n, G.Suspense = f, G.SuspenseList = h, G.isAsyncMode = function() {
|
|
798
798
|
return !1;
|
|
799
799
|
}, G.isConcurrentMode = function() {
|
|
800
800
|
return !1;
|
|
801
801
|
}, G.isContextConsumer = function(d) {
|
|
802
|
-
return
|
|
802
|
+
return _(d) === a;
|
|
803
803
|
}, G.isContextProvider = function(d) {
|
|
804
|
-
return
|
|
804
|
+
return _(d) === s;
|
|
805
805
|
}, G.isElement = function(d) {
|
|
806
806
|
return typeof d == "object" && d !== null && d.$$typeof === e;
|
|
807
807
|
}, G.isForwardRef = function(d) {
|
|
808
|
-
return
|
|
808
|
+
return _(d) === c;
|
|
809
809
|
}, G.isFragment = function(d) {
|
|
810
|
-
return
|
|
810
|
+
return _(d) === r;
|
|
811
811
|
}, G.isLazy = function(d) {
|
|
812
|
-
return
|
|
812
|
+
return _(d) === v;
|
|
813
813
|
}, G.isMemo = function(d) {
|
|
814
|
-
return
|
|
814
|
+
return _(d) === E;
|
|
815
815
|
}, G.isPortal = function(d) {
|
|
816
|
-
return
|
|
816
|
+
return _(d) === t;
|
|
817
817
|
}, G.isProfiler = function(d) {
|
|
818
|
-
return
|
|
818
|
+
return _(d) === i;
|
|
819
819
|
}, G.isStrictMode = function(d) {
|
|
820
|
-
return
|
|
820
|
+
return _(d) === n;
|
|
821
821
|
}, G.isSuspense = function(d) {
|
|
822
|
-
return
|
|
822
|
+
return _(d) === f;
|
|
823
823
|
}, G.isSuspenseList = function(d) {
|
|
824
|
-
return
|
|
824
|
+
return _(d) === h;
|
|
825
825
|
}, G.isValidElementType = function(d) {
|
|
826
|
-
return typeof d == "string" || typeof d == "function" || d === r || d === i || d === n || d === f || d === h || d ===
|
|
827
|
-
}, G.typeOf =
|
|
826
|
+
return typeof d == "string" || typeof d == "function" || d === r || d === i || d === n || d === f || d === h || d === A || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === E || d.$$typeof === s || d.$$typeof === a || d.$$typeof === c || d.$$typeof === P || d.getModuleId !== void 0);
|
|
827
|
+
}, G.typeOf = _, G;
|
|
828
828
|
}
|
|
829
829
|
var U = {};
|
|
830
830
|
/**
|
|
@@ -839,21 +839,21 @@ var U = {};
|
|
|
839
839
|
var Wt;
|
|
840
840
|
function Hr() {
|
|
841
841
|
return Wt || (Wt = 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"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"),
|
|
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"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), P = !1, _ = !1, d = !1, k = !1, $ = !1, J;
|
|
843
843
|
J = Symbol.for("react.module.reference");
|
|
844
|
-
function
|
|
845
|
-
return !!(typeof
|
|
844
|
+
function j(T) {
|
|
845
|
+
return !!(typeof T == "string" || typeof T == "function" || T === r || T === i || $ || T === n || T === f || T === h || k || T === A || P || _ || d || typeof T == "object" && T !== null && (T.$$typeof === v || T.$$typeof === E || T.$$typeof === s || T.$$typeof === a || T.$$typeof === c || // 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
|
+
T.$$typeof === J || T.getModuleId !== void 0));
|
|
850
850
|
}
|
|
851
|
-
function
|
|
852
|
-
if (typeof
|
|
853
|
-
var Q =
|
|
851
|
+
function F(T) {
|
|
852
|
+
if (typeof T == "object" && T !== null) {
|
|
853
|
+
var Q = T.$$typeof;
|
|
854
854
|
switch (Q) {
|
|
855
855
|
case e:
|
|
856
|
-
var ee =
|
|
856
|
+
var ee = T.type;
|
|
857
857
|
switch (ee) {
|
|
858
858
|
case r:
|
|
859
859
|
case i:
|
|
@@ -867,8 +867,8 @@ function Hr() {
|
|
|
867
867
|
case l:
|
|
868
868
|
case a:
|
|
869
869
|
case c:
|
|
870
|
-
case
|
|
871
|
-
case
|
|
870
|
+
case v:
|
|
871
|
+
case E:
|
|
872
872
|
case s:
|
|
873
873
|
return fe;
|
|
874
874
|
default:
|
|
@@ -880,50 +880,50 @@ function Hr() {
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
var D = a, z = s,
|
|
884
|
-
function Se(
|
|
883
|
+
var D = a, z = s, p = e, B = c, M = r, W = v, Y = E, q = t, te = i, he = n, be = f, Te = h, _e = !1, Ee = !1;
|
|
884
|
+
function Se(T) {
|
|
885
885
|
return _e || (_e = !0), !1;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
887
|
+
function y(T) {
|
|
888
|
+
return Ee || (Ee = !0), !1;
|
|
889
889
|
}
|
|
890
|
-
function C(
|
|
891
|
-
return
|
|
890
|
+
function C(T) {
|
|
891
|
+
return F(T) === a;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
return
|
|
893
|
+
function w(T) {
|
|
894
|
+
return F(T) === s;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
897
|
-
return typeof
|
|
896
|
+
function b(T) {
|
|
897
|
+
return typeof T == "object" && T !== null && T.$$typeof === e;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
900
|
-
return
|
|
899
|
+
function m(T) {
|
|
900
|
+
return F(T) === c;
|
|
901
901
|
}
|
|
902
|
-
function
|
|
903
|
-
return
|
|
902
|
+
function O(T) {
|
|
903
|
+
return F(T) === r;
|
|
904
904
|
}
|
|
905
|
-
function
|
|
906
|
-
return
|
|
905
|
+
function R(T) {
|
|
906
|
+
return F(T) === v;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
return
|
|
908
|
+
function S(T) {
|
|
909
|
+
return F(T) === E;
|
|
910
910
|
}
|
|
911
|
-
function
|
|
912
|
-
return
|
|
911
|
+
function x(T) {
|
|
912
|
+
return F(T) === t;
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
return
|
|
914
|
+
function I(T) {
|
|
915
|
+
return F(T) === i;
|
|
916
916
|
}
|
|
917
|
-
function H(
|
|
918
|
-
return
|
|
917
|
+
function H(T) {
|
|
918
|
+
return F(T) === n;
|
|
919
919
|
}
|
|
920
|
-
function ae(
|
|
921
|
-
return
|
|
920
|
+
function ae(T) {
|
|
921
|
+
return F(T) === f;
|
|
922
922
|
}
|
|
923
|
-
function le(
|
|
924
|
-
return
|
|
923
|
+
function le(T) {
|
|
924
|
+
return F(T) === h;
|
|
925
925
|
}
|
|
926
|
-
U.ContextConsumer = D, U.ContextProvider = z, U.Element =
|
|
926
|
+
U.ContextConsumer = D, U.ContextProvider = z, U.Element = p, U.ForwardRef = B, U.Fragment = M, U.Lazy = W, U.Memo = Y, U.Portal = q, U.Profiler = te, U.StrictMode = he, U.Suspense = be, U.SuspenseList = Te, U.isAsyncMode = Se, U.isConcurrentMode = y, U.isContextConsumer = C, U.isContextProvider = w, U.isElement = b, U.isForwardRef = m, U.isFragment = O, U.isLazy = R, U.isMemo = S, U.isPortal = x, U.isProfiler = I, U.isStrictMode = H, U.isSuspense = ae, U.isSuspenseList = le, U.isValidElementType = j, U.typeOf = F;
|
|
927
927
|
}()), U;
|
|
928
928
|
}
|
|
929
929
|
process.env.NODE_ENV === "production" ? vt.exports = Vr() : vt.exports = Hr();
|
|
@@ -1364,7 +1364,7 @@ function Sn(e) {
|
|
|
1364
1364
|
return Rn(this, r);
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
var
|
|
1367
|
+
var xn = /* @__PURE__ */ function(e) {
|
|
1368
1368
|
wn(r, e);
|
|
1369
1369
|
var t = Sn(r);
|
|
1370
1370
|
function r() {
|
|
@@ -1377,53 +1377,53 @@ var Cn = /* @__PURE__ */ function(e) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
}]), r;
|
|
1379
1379
|
}(re.Component);
|
|
1380
|
-
function
|
|
1380
|
+
function Cn(e, t) {
|
|
1381
1381
|
var r = e.children, n = e.disabled, i = re.useRef(null), s = re.useRef(null), a = re.useContext(mt), l = typeof r == "function", c = l ? r(i) : r, f = re.useRef({
|
|
1382
1382
|
width: -1,
|
|
1383
1383
|
height: -1,
|
|
1384
1384
|
offsetWidth: -1,
|
|
1385
1385
|
offsetHeight: -1
|
|
1386
|
-
}), h = !l && /* @__PURE__ */ re.isValidElement(c) && qr(c),
|
|
1387
|
-
var
|
|
1386
|
+
}), h = !l && /* @__PURE__ */ re.isValidElement(c) && qr(c), E = h ? Jr(c) : null, v = Ur(E, i), A = function() {
|
|
1387
|
+
var k;
|
|
1388
1388
|
return it(i.current) || // Support `nativeElement` format
|
|
1389
|
-
(i.current && Re(i.current) === "object" ? it((
|
|
1389
|
+
(i.current && Re(i.current) === "object" ? it((k = i.current) === null || k === void 0 ? void 0 : k.nativeElement) : null) || it(s.current);
|
|
1390
1390
|
};
|
|
1391
1391
|
re.useImperativeHandle(t, function() {
|
|
1392
|
-
return
|
|
1392
|
+
return A();
|
|
1393
1393
|
});
|
|
1394
|
-
var
|
|
1395
|
-
|
|
1396
|
-
var
|
|
1397
|
-
var
|
|
1398
|
-
if (f.current.width !== B || f.current.height !== M || f.current.offsetWidth !== z || f.current.offsetHeight !==
|
|
1394
|
+
var P = re.useRef(e);
|
|
1395
|
+
P.current = e;
|
|
1396
|
+
var _ = re.useCallback(function(d) {
|
|
1397
|
+
var k = P.current, $ = k.onResize, J = k.data, j = d.getBoundingClientRect(), F = j.width, D = j.height, z = d.offsetWidth, p = d.offsetHeight, B = Math.floor(F), M = Math.floor(D);
|
|
1398
|
+
if (f.current.width !== B || f.current.height !== M || f.current.offsetWidth !== z || f.current.offsetHeight !== p) {
|
|
1399
1399
|
var W = {
|
|
1400
1400
|
width: B,
|
|
1401
1401
|
height: M,
|
|
1402
1402
|
offsetWidth: z,
|
|
1403
|
-
offsetHeight:
|
|
1403
|
+
offsetHeight: p
|
|
1404
1404
|
};
|
|
1405
1405
|
f.current = W;
|
|
1406
|
-
var Y = z === Math.round(
|
|
1406
|
+
var Y = z === Math.round(F) ? F : z, q = p === Math.round(D) ? D : p, te = Dt(Dt({}, W), {}, {
|
|
1407
1407
|
offsetWidth: Y,
|
|
1408
1408
|
offsetHeight: q
|
|
1409
1409
|
});
|
|
1410
|
-
a == null || a(te, d, J),
|
|
1411
|
-
|
|
1410
|
+
a == null || a(te, d, J), $ && Promise.resolve().then(function() {
|
|
1411
|
+
$(te, d);
|
|
1412
1412
|
});
|
|
1413
1413
|
}
|
|
1414
1414
|
}, []);
|
|
1415
1415
|
return re.useEffect(function() {
|
|
1416
|
-
var d =
|
|
1417
|
-
return d && !n && gn(d,
|
|
1418
|
-
return yn(d,
|
|
1416
|
+
var d = A();
|
|
1417
|
+
return d && !n && gn(d, _), function() {
|
|
1418
|
+
return yn(d, _);
|
|
1419
1419
|
};
|
|
1420
|
-
}, [i.current, n]), /* @__PURE__ */ re.createElement(
|
|
1420
|
+
}, [i.current, n]), /* @__PURE__ */ re.createElement(xn, {
|
|
1421
1421
|
ref: s
|
|
1422
1422
|
}, h ? /* @__PURE__ */ re.cloneElement(c, {
|
|
1423
|
-
ref:
|
|
1423
|
+
ref: v
|
|
1424
1424
|
}) : c);
|
|
1425
1425
|
}
|
|
1426
|
-
var sr = /* @__PURE__ */ re.forwardRef(
|
|
1426
|
+
var sr = /* @__PURE__ */ re.forwardRef(Cn);
|
|
1427
1427
|
process.env.NODE_ENV !== "production" && (sr.displayName = "SingleObserver");
|
|
1428
1428
|
var On = "rc-observer-key";
|
|
1429
1429
|
function Tn(e, t) {
|
|
@@ -1478,45 +1478,45 @@ var ar = { exports: {} };
|
|
|
1478
1478
|
var Pn = ar.exports;
|
|
1479
1479
|
const _t = /* @__PURE__ */ Mr(Pn);
|
|
1480
1480
|
const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
|
|
1481
|
-
const s =
|
|
1481
|
+
const s = ye(() => {
|
|
1482
1482
|
const a = [], l = (h) => {
|
|
1483
|
-
let
|
|
1484
|
-
return h.forEach((
|
|
1485
|
-
if (
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1483
|
+
let E = 0;
|
|
1484
|
+
return h.forEach((v) => {
|
|
1485
|
+
if (v.children && v.children.length > 0) {
|
|
1486
|
+
const A = l(v.children);
|
|
1487
|
+
A > E && (E = A);
|
|
1488
1488
|
}
|
|
1489
|
-
}),
|
|
1490
|
-
}, c = l(e), f = (h,
|
|
1491
|
-
a[
|
|
1492
|
-
var d,
|
|
1493
|
-
let
|
|
1494
|
-
(d =
|
|
1495
|
-
let
|
|
1496
|
-
if (!
|
|
1497
|
-
const
|
|
1498
|
-
if (
|
|
1499
|
-
const J =
|
|
1500
|
-
|
|
1489
|
+
}), E + 1;
|
|
1490
|
+
}, c = l(e), f = (h, E) => {
|
|
1491
|
+
a[E] || (a[E] = []), h.forEach((v) => {
|
|
1492
|
+
var d, k;
|
|
1493
|
+
let A = "left";
|
|
1494
|
+
(d = v.style) != null && d.textAlign && (A = v.style.textAlign);
|
|
1495
|
+
let P = n == null ? void 0 : n.find(($) => $.field === v.field);
|
|
1496
|
+
if (!P) {
|
|
1497
|
+
const $ = v.field.split("||");
|
|
1498
|
+
if ($.length > 1) {
|
|
1499
|
+
const J = $[$.length - 1];
|
|
1500
|
+
P = n == null ? void 0 : n.find((j) => j.field === J);
|
|
1501
1501
|
} else
|
|
1502
|
-
|
|
1502
|
+
v.field.includes("__") && (P = n == null ? void 0 : n.find((J) => v.field.startsWith(`${J.field}_`)));
|
|
1503
1503
|
}
|
|
1504
|
-
(
|
|
1505
|
-
const
|
|
1506
|
-
key:
|
|
1507
|
-
title:
|
|
1508
|
-
width:
|
|
1509
|
-
align:
|
|
1510
|
-
className:
|
|
1504
|
+
(k = P == null ? void 0 : P.style) != null && k.textAlign && (A = P.style.textAlign);
|
|
1505
|
+
const _ = {
|
|
1506
|
+
key: v.field || v.dataIndex || v.title || String(Math.random()),
|
|
1507
|
+
title: v.title,
|
|
1508
|
+
width: v.width,
|
|
1509
|
+
align: A,
|
|
1510
|
+
className: v.field,
|
|
1511
1511
|
// col.className not in type, ignore
|
|
1512
1512
|
colSpan: 1,
|
|
1513
1513
|
rowSpan: 1
|
|
1514
1514
|
};
|
|
1515
|
-
if (
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1515
|
+
if (v.children && v.children.length > 0) {
|
|
1516
|
+
const $ = (J) => J.children && J.children.length > 0 ? J.children.reduce((j, F) => j + $(F), 0) : 1;
|
|
1517
|
+
_.colSpan = $(v), a[E].push(_), f(v.children, E + 1);
|
|
1518
1518
|
} else
|
|
1519
|
-
|
|
1519
|
+
_.rowSpan = c - E, a[E].push(_);
|
|
1520
1520
|
});
|
|
1521
1521
|
};
|
|
1522
1522
|
return f(e, 0), a;
|
|
@@ -1559,7 +1559,7 @@ const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
|
|
|
1559
1559
|
for (const r in e)
|
|
1560
1560
|
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = bt(e[r]));
|
|
1561
1561
|
return t;
|
|
1562
|
-
}, lr = 43, An = 100,
|
|
1562
|
+
}, lr = 43, An = 100, Ce = "-", Bt = "合计";
|
|
1563
1563
|
function Mn(e) {
|
|
1564
1564
|
let t = e;
|
|
1565
1565
|
for (; t; ) {
|
|
@@ -1597,7 +1597,7 @@ function In({
|
|
|
1597
1597
|
mode: s,
|
|
1598
1598
|
style: a
|
|
1599
1599
|
}) {
|
|
1600
|
-
const { styleHeight: l, styleWidth: c } =
|
|
1600
|
+
const { styleHeight: l, styleWidth: c } = ye(
|
|
1601
1601
|
() => ({
|
|
1602
1602
|
styleHeight: Yt(a == null ? void 0 : a.height),
|
|
1603
1603
|
styleWidth: Yt(a == null ? void 0 : a.width)
|
|
@@ -1606,23 +1606,23 @@ function In({
|
|
|
1606
1606
|
), [f, h] = Ie({
|
|
1607
1607
|
height: t,
|
|
1608
1608
|
width: r
|
|
1609
|
-
}),
|
|
1609
|
+
}), E = n || s === "only-height" && l !== void 0 || s === "only-width" && c !== void 0 || l !== void 0 && c !== void 0;
|
|
1610
1610
|
return Xe(() => {
|
|
1611
|
-
if (i === null ||
|
|
1611
|
+
if (i === null || E)
|
|
1612
1612
|
return;
|
|
1613
|
-
const
|
|
1614
|
-
for (const
|
|
1615
|
-
const { contentRect:
|
|
1616
|
-
i === d && h((
|
|
1617
|
-
height:
|
|
1618
|
-
width:
|
|
1613
|
+
const v = new ResizeObserver((A) => {
|
|
1614
|
+
for (const P of A) {
|
|
1615
|
+
const { contentRect: _, target: d } = P;
|
|
1616
|
+
i === d && h((k) => k.height === _.height && k.width === _.width ? k : {
|
|
1617
|
+
height: _.height,
|
|
1618
|
+
width: _.width
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
1621
1621
|
});
|
|
1622
|
-
return
|
|
1623
|
-
|
|
1622
|
+
return v.observe(i, { box: e }), () => {
|
|
1623
|
+
v == null || v.unobserve(i);
|
|
1624
1624
|
};
|
|
1625
|
-
}, [e,
|
|
1625
|
+
}, [e, E, i, l, c]), ye(
|
|
1626
1626
|
() => ({
|
|
1627
1627
|
height: l ?? f.height,
|
|
1628
1628
|
width: c ?? f.width
|
|
@@ -1749,14 +1749,14 @@ function lt({
|
|
|
1749
1749
|
const s = n - 1;
|
|
1750
1750
|
let a = 0, l = -1, c = 0, f = -1, h = 0;
|
|
1751
1751
|
for (; h < s; ) {
|
|
1752
|
-
const
|
|
1753
|
-
if (
|
|
1752
|
+
const E = e.get(h);
|
|
1753
|
+
if (E.scrollOffset + E.size > t)
|
|
1754
1754
|
break;
|
|
1755
1755
|
h++;
|
|
1756
1756
|
}
|
|
1757
1757
|
for (a = h, c = Math.max(0, a - i); h < s; ) {
|
|
1758
|
-
const
|
|
1759
|
-
if (
|
|
1758
|
+
const E = e.get(h);
|
|
1759
|
+
if (E.scrollOffset + E.size >= t + r)
|
|
1760
1760
|
break;
|
|
1761
1761
|
h++;
|
|
1762
1762
|
}
|
|
@@ -1823,7 +1823,7 @@ function Fn({
|
|
|
1823
1823
|
itemProps: t,
|
|
1824
1824
|
itemSize: r
|
|
1825
1825
|
}) {
|
|
1826
|
-
return
|
|
1826
|
+
return ye(
|
|
1827
1827
|
() => Dn({
|
|
1828
1828
|
itemCount: e,
|
|
1829
1829
|
itemProps: t,
|
|
@@ -1867,56 +1867,56 @@ function Kt({
|
|
|
1867
1867
|
onResize: c,
|
|
1868
1868
|
overscanCount: f
|
|
1869
1869
|
}) {
|
|
1870
|
-
const { height: h = r, width:
|
|
1870
|
+
const { height: h = r, width: E = r } = In({
|
|
1871
1871
|
defaultHeight: n === "vertical" ? r : void 0,
|
|
1872
1872
|
defaultWidth: n === "horizontal" ? r : void 0,
|
|
1873
1873
|
element: e,
|
|
1874
1874
|
mode: n === "vertical" ? "only-height" : "only-width",
|
|
1875
1875
|
style: t
|
|
1876
|
-
}),
|
|
1876
|
+
}), v = ze({
|
|
1877
1877
|
height: 0,
|
|
1878
1878
|
width: 0
|
|
1879
|
-
}),
|
|
1879
|
+
}), A = n === "vertical" ? h : E, P = Nn({ containerSize: A, itemSize: l });
|
|
1880
1880
|
Et(() => {
|
|
1881
1881
|
if (typeof c == "function") {
|
|
1882
|
-
const M =
|
|
1883
|
-
(M.height !== h || M.width !==
|
|
1882
|
+
const M = v.current;
|
|
1883
|
+
(M.height !== h || M.width !== E) && (c({ height: h, width: E }, { ...M }), M.height = h, M.width = E);
|
|
1884
1884
|
}
|
|
1885
|
-
}, [h, c,
|
|
1886
|
-
const
|
|
1885
|
+
}, [h, c, E]);
|
|
1886
|
+
const _ = Fn({
|
|
1887
1887
|
itemCount: s,
|
|
1888
1888
|
itemProps: a,
|
|
1889
|
-
itemSize:
|
|
1889
|
+
itemSize: P
|
|
1890
1890
|
}), d = ge(
|
|
1891
|
-
(M) =>
|
|
1892
|
-
[
|
|
1893
|
-
), [
|
|
1891
|
+
(M) => _.get(M),
|
|
1892
|
+
[_]
|
|
1893
|
+
), [k, $] = Ie(
|
|
1894
1894
|
() => lt({
|
|
1895
|
-
cachedBounds:
|
|
1895
|
+
cachedBounds: _,
|
|
1896
1896
|
// TODO Potentially support a defaultScrollOffset prop?
|
|
1897
1897
|
containerScrollOffset: 0,
|
|
1898
|
-
containerSize:
|
|
1898
|
+
containerSize: A,
|
|
1899
1899
|
itemCount: s,
|
|
1900
1900
|
overscanCount: f
|
|
1901
1901
|
})
|
|
1902
1902
|
), {
|
|
1903
1903
|
startIndexVisible: J,
|
|
1904
|
-
startIndexOverscan:
|
|
1905
|
-
stopIndexVisible:
|
|
1904
|
+
startIndexOverscan: j,
|
|
1905
|
+
stopIndexVisible: F,
|
|
1906
1906
|
stopIndexOverscan: D
|
|
1907
1907
|
} = {
|
|
1908
|
-
startIndexVisible: Math.min(s - 1,
|
|
1909
|
-
startIndexOverscan: Math.min(s - 1,
|
|
1910
|
-
stopIndexVisible: Math.min(s - 1,
|
|
1911
|
-
stopIndexOverscan: Math.min(s - 1,
|
|
1908
|
+
startIndexVisible: Math.min(s - 1, k.startIndexVisible),
|
|
1909
|
+
startIndexOverscan: Math.min(s - 1, k.startIndexOverscan),
|
|
1910
|
+
stopIndexVisible: Math.min(s - 1, k.stopIndexVisible),
|
|
1911
|
+
stopIndexOverscan: Math.min(s - 1, k.stopIndexOverscan)
|
|
1912
1912
|
}, z = ge(
|
|
1913
1913
|
() => cr({
|
|
1914
|
-
cachedBounds:
|
|
1914
|
+
cachedBounds: _,
|
|
1915
1915
|
itemCount: s,
|
|
1916
|
-
itemSize:
|
|
1916
|
+
itemSize: P
|
|
1917
1917
|
}),
|
|
1918
|
-
[
|
|
1919
|
-
),
|
|
1918
|
+
[_, s, P]
|
|
1919
|
+
), p = ge(
|
|
1920
1920
|
(M) => {
|
|
1921
1921
|
const W = at({
|
|
1922
1922
|
containerElement: e,
|
|
@@ -1925,17 +1925,17 @@ function Kt({
|
|
|
1925
1925
|
scrollOffset: M
|
|
1926
1926
|
});
|
|
1927
1927
|
return lt({
|
|
1928
|
-
cachedBounds:
|
|
1928
|
+
cachedBounds: _,
|
|
1929
1929
|
containerScrollOffset: W,
|
|
1930
|
-
containerSize:
|
|
1930
|
+
containerSize: A,
|
|
1931
1931
|
itemCount: s,
|
|
1932
1932
|
overscanCount: f
|
|
1933
1933
|
});
|
|
1934
1934
|
},
|
|
1935
1935
|
[
|
|
1936
|
-
|
|
1936
|
+
_,
|
|
1937
1937
|
e,
|
|
1938
|
-
|
|
1938
|
+
A,
|
|
1939
1939
|
n,
|
|
1940
1940
|
i,
|
|
1941
1941
|
s,
|
|
@@ -1944,21 +1944,21 @@ function Kt({
|
|
|
1944
1944
|
);
|
|
1945
1945
|
Xe(() => {
|
|
1946
1946
|
const M = (n === "vertical" ? e == null ? void 0 : e.scrollTop : e == null ? void 0 : e.scrollLeft) ?? 0;
|
|
1947
|
-
|
|
1948
|
-
}, [e, n,
|
|
1947
|
+
$(p(M));
|
|
1948
|
+
}, [e, n, p]), Xe(() => {
|
|
1949
1949
|
if (!e)
|
|
1950
1950
|
return;
|
|
1951
1951
|
const M = () => {
|
|
1952
|
-
|
|
1952
|
+
$((W) => {
|
|
1953
1953
|
const { scrollLeft: Y, scrollTop: q } = e, te = at({
|
|
1954
1954
|
containerElement: e,
|
|
1955
1955
|
direction: n,
|
|
1956
1956
|
isRtl: i,
|
|
1957
1957
|
scrollOffset: n === "vertical" ? q : Y
|
|
1958
1958
|
}), he = lt({
|
|
1959
|
-
cachedBounds:
|
|
1959
|
+
cachedBounds: _,
|
|
1960
1960
|
containerScrollOffset: te,
|
|
1961
|
-
containerSize:
|
|
1961
|
+
containerSize: A,
|
|
1962
1962
|
itemCount: s,
|
|
1963
1963
|
overscanCount: f
|
|
1964
1964
|
});
|
|
@@ -1969,9 +1969,9 @@ function Kt({
|
|
|
1969
1969
|
e.removeEventListener("scroll", M);
|
|
1970
1970
|
};
|
|
1971
1971
|
}, [
|
|
1972
|
-
|
|
1972
|
+
_,
|
|
1973
1973
|
e,
|
|
1974
|
-
|
|
1974
|
+
A,
|
|
1975
1975
|
n,
|
|
1976
1976
|
s,
|
|
1977
1977
|
f
|
|
@@ -1984,12 +1984,12 @@ function Kt({
|
|
|
1984
1984
|
}) => {
|
|
1985
1985
|
let q = kn({
|
|
1986
1986
|
align: M,
|
|
1987
|
-
cachedBounds:
|
|
1987
|
+
cachedBounds: _,
|
|
1988
1988
|
containerScrollOffset: W,
|
|
1989
|
-
containerSize:
|
|
1989
|
+
containerSize: A,
|
|
1990
1990
|
index: Y,
|
|
1991
1991
|
itemCount: s,
|
|
1992
|
-
itemSize:
|
|
1992
|
+
itemSize: P
|
|
1993
1993
|
});
|
|
1994
1994
|
if (e) {
|
|
1995
1995
|
if (q = at({
|
|
@@ -1998,8 +1998,8 @@ function Kt({
|
|
|
1998
1998
|
isRtl: i,
|
|
1999
1999
|
scrollOffset: q
|
|
2000
2000
|
}), typeof e.scrollTo != "function") {
|
|
2001
|
-
const te =
|
|
2002
|
-
Be(
|
|
2001
|
+
const te = p(q);
|
|
2002
|
+
Be(k, te) || $(te);
|
|
2003
2003
|
}
|
|
2004
2004
|
return q;
|
|
2005
2005
|
}
|
|
@@ -2009,14 +2009,14 @@ function Kt({
|
|
|
2009
2009
|
getCellBounds: d,
|
|
2010
2010
|
getEstimatedSize: z,
|
|
2011
2011
|
scrollToIndex: B,
|
|
2012
|
-
startIndexOverscan:
|
|
2012
|
+
startIndexOverscan: j,
|
|
2013
2013
|
startIndexVisible: J,
|
|
2014
2014
|
stopIndexOverscan: D,
|
|
2015
|
-
stopIndexVisible:
|
|
2015
|
+
stopIndexVisible: F
|
|
2016
2016
|
};
|
|
2017
2017
|
}
|
|
2018
2018
|
function Wn(e) {
|
|
2019
|
-
return
|
|
2019
|
+
return ye(() => e, Object.values(e));
|
|
2020
2020
|
}
|
|
2021
2021
|
function Vn(e, t) {
|
|
2022
2022
|
const {
|
|
@@ -2042,117 +2042,117 @@ function Hn({
|
|
|
2042
2042
|
dir: c,
|
|
2043
2043
|
gridRef: f,
|
|
2044
2044
|
onCellsRendered: h,
|
|
2045
|
-
onResize:
|
|
2046
|
-
overscanCount:
|
|
2047
|
-
rowCount:
|
|
2048
|
-
rowHeight:
|
|
2049
|
-
style:
|
|
2045
|
+
onResize: E,
|
|
2046
|
+
overscanCount: v = 3,
|
|
2047
|
+
rowCount: A,
|
|
2048
|
+
rowHeight: P,
|
|
2049
|
+
style: _,
|
|
2050
2050
|
tagName: d = "div",
|
|
2051
|
-
...
|
|
2051
|
+
...k
|
|
2052
2052
|
}) {
|
|
2053
|
-
const
|
|
2053
|
+
const $ = Wn(t), J = ye(
|
|
2054
2054
|
() => Ut(e, Vn),
|
|
2055
2055
|
[e]
|
|
2056
|
-
), [
|
|
2056
|
+
), [j, F] = Ie(null), D = zn(j, c), {
|
|
2057
2057
|
getCellBounds: z,
|
|
2058
|
-
getEstimatedSize:
|
|
2058
|
+
getEstimatedSize: p,
|
|
2059
2059
|
startIndexOverscan: B,
|
|
2060
2060
|
startIndexVisible: M,
|
|
2061
2061
|
scrollToIndex: W,
|
|
2062
2062
|
stopIndexOverscan: Y,
|
|
2063
2063
|
stopIndexVisible: q
|
|
2064
2064
|
} = Kt({
|
|
2065
|
-
containerElement:
|
|
2066
|
-
containerStyle:
|
|
2065
|
+
containerElement: j,
|
|
2066
|
+
containerStyle: _,
|
|
2067
2067
|
defaultContainerSize: l,
|
|
2068
2068
|
direction: "horizontal",
|
|
2069
2069
|
isRtl: D,
|
|
2070
2070
|
itemCount: i,
|
|
2071
|
-
itemProps:
|
|
2071
|
+
itemProps: $,
|
|
2072
2072
|
itemSize: s,
|
|
2073
|
-
onResize:
|
|
2074
|
-
overscanCount:
|
|
2073
|
+
onResize: E,
|
|
2074
|
+
overscanCount: v
|
|
2075
2075
|
}), {
|
|
2076
2076
|
getCellBounds: te,
|
|
2077
2077
|
getEstimatedSize: he,
|
|
2078
|
-
startIndexOverscan:
|
|
2078
|
+
startIndexOverscan: be,
|
|
2079
2079
|
startIndexVisible: Te,
|
|
2080
2080
|
scrollToIndex: _e,
|
|
2081
|
-
stopIndexOverscan:
|
|
2081
|
+
stopIndexOverscan: Ee,
|
|
2082
2082
|
stopIndexVisible: Se
|
|
2083
2083
|
} = Kt({
|
|
2084
|
-
containerElement:
|
|
2085
|
-
containerStyle:
|
|
2084
|
+
containerElement: j,
|
|
2085
|
+
containerStyle: _,
|
|
2086
2086
|
defaultContainerSize: a,
|
|
2087
2087
|
direction: "vertical",
|
|
2088
|
-
itemCount:
|
|
2089
|
-
itemProps:
|
|
2090
|
-
itemSize:
|
|
2091
|
-
onResize:
|
|
2092
|
-
overscanCount:
|
|
2088
|
+
itemCount: A,
|
|
2089
|
+
itemProps: $,
|
|
2090
|
+
itemSize: P,
|
|
2091
|
+
onResize: E,
|
|
2092
|
+
overscanCount: v
|
|
2093
2093
|
});
|
|
2094
2094
|
Ar(
|
|
2095
2095
|
f,
|
|
2096
2096
|
() => ({
|
|
2097
2097
|
get element() {
|
|
2098
|
-
return
|
|
2098
|
+
return j;
|
|
2099
2099
|
},
|
|
2100
2100
|
scrollToCell({
|
|
2101
|
-
behavior:
|
|
2102
|
-
columnAlign:
|
|
2103
|
-
columnIndex:
|
|
2104
|
-
rowAlign:
|
|
2105
|
-
rowIndex:
|
|
2101
|
+
behavior: w = "auto",
|
|
2102
|
+
columnAlign: b = "auto",
|
|
2103
|
+
columnIndex: m,
|
|
2104
|
+
rowAlign: O = "auto",
|
|
2105
|
+
rowIndex: R
|
|
2106
2106
|
}) {
|
|
2107
|
-
const
|
|
2108
|
-
align:
|
|
2109
|
-
containerScrollOffset: (
|
|
2110
|
-
index:
|
|
2111
|
-
}),
|
|
2112
|
-
align:
|
|
2113
|
-
containerScrollOffset: (
|
|
2114
|
-
index:
|
|
2107
|
+
const S = W({
|
|
2108
|
+
align: b,
|
|
2109
|
+
containerScrollOffset: (j == null ? void 0 : j.scrollLeft) ?? 0,
|
|
2110
|
+
index: m
|
|
2111
|
+
}), x = _e({
|
|
2112
|
+
align: O,
|
|
2113
|
+
containerScrollOffset: (j == null ? void 0 : j.scrollTop) ?? 0,
|
|
2114
|
+
index: R
|
|
2115
2115
|
});
|
|
2116
|
-
typeof (
|
|
2117
|
-
behavior:
|
|
2118
|
-
left:
|
|
2119
|
-
top:
|
|
2116
|
+
typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
|
|
2117
|
+
behavior: w,
|
|
2118
|
+
left: S,
|
|
2119
|
+
top: x
|
|
2120
2120
|
});
|
|
2121
2121
|
},
|
|
2122
2122
|
scrollToColumn({
|
|
2123
|
-
align:
|
|
2124
|
-
behavior:
|
|
2125
|
-
index:
|
|
2123
|
+
align: w = "auto",
|
|
2124
|
+
behavior: b = "auto",
|
|
2125
|
+
index: m
|
|
2126
2126
|
}) {
|
|
2127
|
-
const
|
|
2128
|
-
align:
|
|
2129
|
-
containerScrollOffset: (
|
|
2130
|
-
index:
|
|
2127
|
+
const O = W({
|
|
2128
|
+
align: w,
|
|
2129
|
+
containerScrollOffset: (j == null ? void 0 : j.scrollLeft) ?? 0,
|
|
2130
|
+
index: m
|
|
2131
2131
|
});
|
|
2132
|
-
typeof (
|
|
2133
|
-
behavior:
|
|
2134
|
-
left:
|
|
2132
|
+
typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
|
|
2133
|
+
behavior: b,
|
|
2134
|
+
left: O
|
|
2135
2135
|
});
|
|
2136
2136
|
},
|
|
2137
2137
|
scrollToRow({
|
|
2138
|
-
align:
|
|
2139
|
-
behavior:
|
|
2140
|
-
index:
|
|
2138
|
+
align: w = "auto",
|
|
2139
|
+
behavior: b = "auto",
|
|
2140
|
+
index: m
|
|
2141
2141
|
}) {
|
|
2142
|
-
const
|
|
2143
|
-
align:
|
|
2144
|
-
containerScrollOffset: (
|
|
2145
|
-
index:
|
|
2142
|
+
const O = _e({
|
|
2143
|
+
align: w,
|
|
2144
|
+
containerScrollOffset: (j == null ? void 0 : j.scrollTop) ?? 0,
|
|
2145
|
+
index: m
|
|
2146
2146
|
});
|
|
2147
|
-
typeof (
|
|
2148
|
-
behavior:
|
|
2149
|
-
top:
|
|
2147
|
+
typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
|
|
2148
|
+
behavior: b,
|
|
2149
|
+
top: O
|
|
2150
2150
|
});
|
|
2151
2151
|
}
|
|
2152
2152
|
}),
|
|
2153
|
-
[
|
|
2153
|
+
[j, W, _e]
|
|
2154
2154
|
), Ze(() => {
|
|
2155
|
-
B >= 0 && Y >= 0 &&
|
|
2155
|
+
B >= 0 && Y >= 0 && be >= 0 && Ee >= 0 && h && h(
|
|
2156
2156
|
{
|
|
2157
2157
|
columnStartIndex: M,
|
|
2158
2158
|
columnStopIndex: q,
|
|
@@ -2162,8 +2162,8 @@ function Hn({
|
|
|
2162
2162
|
{
|
|
2163
2163
|
columnStartIndex: B,
|
|
2164
2164
|
columnStopIndex: Y,
|
|
2165
|
-
rowStartIndex:
|
|
2166
|
-
rowStopIndex:
|
|
2165
|
+
rowStartIndex: be,
|
|
2166
|
+
rowStopIndex: Ee
|
|
2167
2167
|
}
|
|
2168
2168
|
);
|
|
2169
2169
|
}, [
|
|
@@ -2172,66 +2172,66 @@ function Hn({
|
|
|
2172
2172
|
M,
|
|
2173
2173
|
Y,
|
|
2174
2174
|
q,
|
|
2175
|
-
ye,
|
|
2176
|
-
Te,
|
|
2177
2175
|
be,
|
|
2176
|
+
Te,
|
|
2177
|
+
Ee,
|
|
2178
2178
|
Se
|
|
2179
2179
|
]);
|
|
2180
|
-
const
|
|
2181
|
-
const
|
|
2182
|
-
if (i > 0 &&
|
|
2183
|
-
for (let
|
|
2184
|
-
const
|
|
2185
|
-
for (let
|
|
2186
|
-
const
|
|
2187
|
-
|
|
2180
|
+
const y = ye(() => {
|
|
2181
|
+
const w = [];
|
|
2182
|
+
if (i > 0 && A > 0)
|
|
2183
|
+
for (let b = be; b <= Ee; b++) {
|
|
2184
|
+
const m = te(b), O = [];
|
|
2185
|
+
for (let R = B; R <= Y; R++) {
|
|
2186
|
+
const S = z(R);
|
|
2187
|
+
O.push(
|
|
2188
2188
|
/* @__PURE__ */ Mt(
|
|
2189
2189
|
J,
|
|
2190
2190
|
{
|
|
2191
|
-
|
|
2191
|
+
...$,
|
|
2192
2192
|
ariaAttributes: {
|
|
2193
|
-
"aria-colindex":
|
|
2193
|
+
"aria-colindex": R + 1,
|
|
2194
2194
|
role: "gridcell"
|
|
2195
2195
|
},
|
|
2196
|
-
columnIndex:
|
|
2197
|
-
key:
|
|
2198
|
-
rowIndex:
|
|
2196
|
+
columnIndex: R,
|
|
2197
|
+
key: R,
|
|
2198
|
+
rowIndex: b,
|
|
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 ? -
|
|
2204
|
-
height:
|
|
2205
|
-
width:
|
|
2203
|
+
transform: `translate(${D ? -S.scrollOffset : S.scrollOffset}px, ${m.scrollOffset}px)`,
|
|
2204
|
+
height: m.size,
|
|
2205
|
+
width: S.size
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
2208
|
)
|
|
2209
2209
|
);
|
|
2210
2210
|
}
|
|
2211
|
-
|
|
2212
|
-
/* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex":
|
|
2211
|
+
w.push(
|
|
2212
|
+
/* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex": b + 1, children: O }, b)
|
|
2213
2213
|
);
|
|
2214
2214
|
}
|
|
2215
|
-
return
|
|
2215
|
+
return w;
|
|
2216
2216
|
}, [
|
|
2217
2217
|
J,
|
|
2218
|
-
|
|
2218
|
+
$,
|
|
2219
2219
|
i,
|
|
2220
2220
|
B,
|
|
2221
2221
|
Y,
|
|
2222
2222
|
z,
|
|
2223
2223
|
te,
|
|
2224
2224
|
D,
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2225
|
+
A,
|
|
2226
|
+
be,
|
|
2227
|
+
Ee
|
|
2228
2228
|
]), C = /* @__PURE__ */ Z.jsx(
|
|
2229
2229
|
"div",
|
|
2230
2230
|
{
|
|
2231
2231
|
"aria-hidden": !0,
|
|
2232
2232
|
style: {
|
|
2233
2233
|
height: he(),
|
|
2234
|
-
width:
|
|
2234
|
+
width: p(),
|
|
2235
2235
|
zIndex: -1
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
@@ -2240,22 +2240,22 @@ function Hn({
|
|
|
2240
2240
|
d,
|
|
2241
2241
|
{
|
|
2242
2242
|
"aria-colcount": i,
|
|
2243
|
-
"aria-rowcount":
|
|
2243
|
+
"aria-rowcount": A,
|
|
2244
2244
|
role: "grid",
|
|
2245
|
-
...
|
|
2245
|
+
...k,
|
|
2246
2246
|
className: n,
|
|
2247
2247
|
dir: c,
|
|
2248
|
-
ref:
|
|
2248
|
+
ref: F,
|
|
2249
2249
|
style: {
|
|
2250
2250
|
position: "relative",
|
|
2251
2251
|
maxHeight: "100%",
|
|
2252
2252
|
maxWidth: "100%",
|
|
2253
2253
|
flexGrow: 1,
|
|
2254
2254
|
overflow: "auto",
|
|
2255
|
-
...
|
|
2255
|
+
..._
|
|
2256
2256
|
}
|
|
2257
2257
|
},
|
|
2258
|
-
|
|
2258
|
+
y,
|
|
2259
2259
|
r,
|
|
2260
2260
|
C
|
|
2261
2261
|
);
|
|
@@ -2271,38 +2271,38 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2271
2271
|
const n = (i = r[e]) == null ? void 0 : i[t];
|
|
2272
2272
|
return !n || n.rowspan === 0 || n.colspan === 0;
|
|
2273
2273
|
}, Gn = (e, t, r, n, i, s) => {
|
|
2274
|
-
var
|
|
2275
|
-
const a = (
|
|
2274
|
+
var A, P;
|
|
2275
|
+
const a = (A = n[e]) == null ? void 0 : A[t];
|
|
2276
2276
|
if (!a || a.rowspan === 0 || a.colspan === 0)
|
|
2277
2277
|
return;
|
|
2278
2278
|
const l = { ...r };
|
|
2279
2279
|
let c = i[t];
|
|
2280
|
-
const f = c.field.split("||"), h = f[f.length - 1],
|
|
2281
|
-
|
|
2282
|
-
const
|
|
2280
|
+
const f = c.field.split("||"), h = f[f.length - 1], E = s == null ? void 0 : s.find((_) => _.field === h || _.field === c.field);
|
|
2281
|
+
E && E.style;
|
|
2282
|
+
const v = (E == null ? void 0 : E.style) || (c == null ? void 0 : c.style);
|
|
2283
2283
|
if (a.colspan > 1) {
|
|
2284
|
-
let
|
|
2284
|
+
let _ = 0;
|
|
2285
2285
|
for (let d = t; d < t + a.colspan; d++)
|
|
2286
|
-
|
|
2287
|
-
l.width =
|
|
2286
|
+
_ += Number((P = i[d]) == null ? void 0 : P.width) || 100;
|
|
2287
|
+
l.width = _;
|
|
2288
2288
|
}
|
|
2289
|
-
return a.rowspan > 1 && (l.height = a.rowspan * lr),
|
|
2289
|
+
return a.rowspan > 1 && (l.height = a.rowspan * lr), v != null && v.textAlign && (l.textAlign = v.textAlign, v.textAlign === "right" && (l.justifyContent = "flex-end"), v.textAlign === "center" && (l.justifyContent = "center")), l.border = "1px solid #f0f0f0", l.padding = "8px 16px", l.display = "flex", l.alignItems = "center", l.backgroundColor = "#fff", l;
|
|
2290
2290
|
}, Un = ({ columnIndex: e, rowIndex: t, style: r, mergedData: n, columns: i, handleExpand: s, meta: a }) => {
|
|
2291
2291
|
if (Kn(t, e, n))
|
|
2292
2292
|
return null;
|
|
2293
|
-
const l = n[t][e], c = Gn(t, e, r, n, i, a), f = i[e], h = f.field.split("||"),
|
|
2294
|
-
let
|
|
2295
|
-
if (
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2293
|
+
const l = n[t][e], c = Gn(t, e, r, n, i, a), f = i[e], h = f.field.split("||"), E = h[h.length - 1], v = a == null ? void 0 : a.find((_) => _.field === E || _.field === f.field), A = Ye.isValidElement(l.content);
|
|
2294
|
+
let P;
|
|
2295
|
+
if (P = l.content, "formatter" in f && f.formatter && !A && (P = f.formatter(P, l.data)), v != null && v.clickHandler && !A && P !== null && P !== void 0) {
|
|
2296
|
+
const _ = l.data;
|
|
2297
|
+
P = /* @__PURE__ */ Z.jsx(
|
|
2298
2298
|
"a",
|
|
2299
2299
|
{
|
|
2300
2300
|
href: "javascript:void(0)",
|
|
2301
2301
|
onClick: (d) => {
|
|
2302
|
-
d.preventDefault(), d.stopPropagation(),
|
|
2302
|
+
d.preventDefault(), d.stopPropagation(), v.clickHandler(_);
|
|
2303
2303
|
},
|
|
2304
2304
|
className: "virtual-table-cell-link",
|
|
2305
|
-
children:
|
|
2305
|
+
children: P
|
|
2306
2306
|
}
|
|
2307
2307
|
);
|
|
2308
2308
|
}
|
|
@@ -2313,83 +2313,90 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2313
2313
|
className: _t("table-cell", "virtual-table-cell", {
|
|
2314
2314
|
"virtual-table-cell-last": e === i.length - 1
|
|
2315
2315
|
}),
|
|
2316
|
-
title: typeof
|
|
2316
|
+
title: typeof P == "string" ? P : void 0,
|
|
2317
2317
|
children: [
|
|
2318
2318
|
/* @__PURE__ */ Z.jsx("span", { className: "expand-icon", children: l.expandable ? l.expanded ? /* @__PURE__ */ Z.jsx(Bn, { onClick: () => {
|
|
2319
2319
|
l.onClick && l.onClick(l), s(l);
|
|
2320
2320
|
} }) : /* @__PURE__ */ Z.jsx(Yn, { onClick: () => {
|
|
2321
2321
|
l.onClick && l.onClick(l), s(l);
|
|
2322
2322
|
} }) : null }),
|
|
2323
|
-
|
|
2323
|
+
P
|
|
2324
2324
|
]
|
|
2325
2325
|
}
|
|
2326
2326
|
);
|
|
2327
2327
|
}, qn = (e) => {
|
|
2328
|
-
const { data: t, info: r, scroll: n, columns: i, tableWidth: s } = e, { ref: a, onScroll: l } = r, c = ze(), f =
|
|
2329
|
-
const
|
|
2330
|
-
return Object.defineProperty(
|
|
2328
|
+
const { data: t, info: r, scroll: n, columns: i, tableWidth: s } = e, { ref: a, onScroll: l } = r, c = ze(), f = ye(() => {
|
|
2329
|
+
const D = {};
|
|
2330
|
+
return Object.defineProperty(D, "scrollLeft", {
|
|
2331
2331
|
get: () => {
|
|
2332
|
-
var
|
|
2333
|
-
return ((
|
|
2332
|
+
var z, p;
|
|
2333
|
+
return ((p = (z = c.current) == null ? void 0 : z.element) == null ? void 0 : p.scrollLeft) || 0;
|
|
2334
2334
|
},
|
|
2335
|
-
set: (
|
|
2336
|
-
var
|
|
2337
|
-
(
|
|
2335
|
+
set: (z) => {
|
|
2336
|
+
var p;
|
|
2337
|
+
(p = c.current) != null && p.element && (c.current.element.scrollLeft = z);
|
|
2338
2338
|
}
|
|
2339
|
-
}), Object.defineProperty(
|
|
2339
|
+
}), Object.defineProperty(D, "scrollTop", {
|
|
2340
2340
|
get: () => {
|
|
2341
|
-
var
|
|
2342
|
-
return ((
|
|
2341
|
+
var z, p;
|
|
2342
|
+
return ((p = (z = c.current) == null ? void 0 : z.element) == null ? void 0 : p.scrollTop) || 0;
|
|
2343
2343
|
},
|
|
2344
|
-
set: (
|
|
2345
|
-
var
|
|
2346
|
-
(
|
|
2344
|
+
set: (z) => {
|
|
2345
|
+
var p;
|
|
2346
|
+
(p = c.current) != null && p.element && (c.current.element.scrollTop = z);
|
|
2347
2347
|
}
|
|
2348
|
-
}),
|
|
2348
|
+
}), D;
|
|
2349
2349
|
}, []);
|
|
2350
2350
|
Ze(() => {
|
|
2351
2351
|
a && (a.current = f);
|
|
2352
2352
|
}, [a, f]);
|
|
2353
|
-
const h = t,
|
|
2354
|
-
let
|
|
2355
|
-
return
|
|
2356
|
-
|
|
2357
|
-
}),
|
|
2358
|
-
}, []),
|
|
2359
|
-
let
|
|
2360
|
-
return
|
|
2361
|
-
|
|
2362
|
-
}),
|
|
2363
|
-
}, []),
|
|
2364
|
-
const
|
|
2365
|
-
let
|
|
2366
|
-
return typeof
|
|
2367
|
-
}, [
|
|
2368
|
-
if (
|
|
2369
|
-
l && l(
|
|
2353
|
+
const h = t, E = h.length, v = ge((D) => {
|
|
2354
|
+
let z = 0;
|
|
2355
|
+
return D.forEach((p) => {
|
|
2356
|
+
p != null && p.children && p.children.length > 0 ? z += v(p.children) : z += 1;
|
|
2357
|
+
}), z;
|
|
2358
|
+
}, []), A = v(i), P = ge((D) => {
|
|
2359
|
+
let z = [];
|
|
2360
|
+
return D.forEach((p) => {
|
|
2361
|
+
p != null && p.children && p.children.length > 0 ? z = [...z, ...P(p.children)] : z.push(p);
|
|
2362
|
+
}), z;
|
|
2363
|
+
}, []), _ = P(i), d = ge((D) => {
|
|
2364
|
+
const z = _[D];
|
|
2365
|
+
let p = (z == null ? void 0 : z.width) || 100;
|
|
2366
|
+
return typeof p == "string" && (p = parseInt(p.replace("px", "")) || 100), p;
|
|
2367
|
+
}, [_]), k = ge((D) => lr, []), $ = ye(() => h.map((D) => D.cells), [h]), J = ge((D) => {
|
|
2368
|
+
if (D && typeof D.scrollLeft == "number") {
|
|
2369
|
+
l && l(D);
|
|
2370
2370
|
return;
|
|
2371
2371
|
}
|
|
2372
|
-
if (
|
|
2373
|
-
const { scrollLeft:
|
|
2374
|
-
l && l({ scrollLeft:
|
|
2372
|
+
if (D && D.target) {
|
|
2373
|
+
const { scrollLeft: z, scrollTop: p } = D.target;
|
|
2374
|
+
l && l({ scrollLeft: z, scrollTop: p });
|
|
2375
2375
|
}
|
|
2376
|
-
}, [l]),
|
|
2376
|
+
}, [l]), j = ye(() => {
|
|
2377
|
+
let D = 1;
|
|
2378
|
+
return t && t.length > 0 && t.forEach((z) => {
|
|
2379
|
+
z.cells && z.cells.forEach((p) => {
|
|
2380
|
+
p.rowspan > D && (D = p.rowspan);
|
|
2381
|
+
});
|
|
2382
|
+
}), D;
|
|
2383
|
+
}, [t]), F = (typeof (n == null ? void 0 : n.y) == "number" ? n.y : parseInt((n == null ? void 0 : n.y) || "400")) || 400;
|
|
2377
2384
|
return /* @__PURE__ */ Z.jsx(
|
|
2378
2385
|
Hn,
|
|
2379
2386
|
{
|
|
2380
2387
|
gridRef: c,
|
|
2381
|
-
columnCount:
|
|
2388
|
+
columnCount: A,
|
|
2382
2389
|
columnWidth: d,
|
|
2383
|
-
rowCount:
|
|
2384
|
-
rowHeight:
|
|
2385
|
-
style: { height:
|
|
2390
|
+
rowCount: E,
|
|
2391
|
+
rowHeight: k,
|
|
2392
|
+
style: { height: F - 40, width: s, overflowY: "auto" },
|
|
2386
2393
|
onScroll: J,
|
|
2387
|
-
className:
|
|
2388
|
-
overscanCount:
|
|
2394
|
+
className: `virtual-grid row-${j}`,
|
|
2395
|
+
overscanCount: j + 3,
|
|
2389
2396
|
cellComponent: Un,
|
|
2390
2397
|
cellProps: {
|
|
2391
|
-
mergedData:
|
|
2392
|
-
columns:
|
|
2398
|
+
mergedData: $,
|
|
2399
|
+
columns: _,
|
|
2393
2400
|
data: h,
|
|
2394
2401
|
handleExpand: e.handleExpand,
|
|
2395
2402
|
meta: e.meta
|
|
@@ -2409,7 +2416,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2409
2416
|
return n;
|
|
2410
2417
|
n = n[i];
|
|
2411
2418
|
}
|
|
2412
|
-
return n == null && (n =
|
|
2419
|
+
return n == null && (n = Ce), n;
|
|
2413
2420
|
}, ct = (e, t) => "|" + t.map((n) => me(e, n)).join("|"), Gt = (e, t) => {
|
|
2414
2421
|
if (!e)
|
|
2415
2422
|
return null;
|
|
@@ -2451,157 +2458,157 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2451
2458
|
if (!t || t.length === 0 || !i.length && !s.length && !a.length)
|
|
2452
2459
|
return {
|
|
2453
2460
|
list: [],
|
|
2454
|
-
dataExpandFilter: (
|
|
2461
|
+
dataExpandFilter: (y) => y
|
|
2455
2462
|
};
|
|
2456
|
-
const l = He(i), c = He(s), f = He(a).filter((
|
|
2457
|
-
t.forEach((
|
|
2458
|
-
const C = ct(
|
|
2459
|
-
|
|
2460
|
-
const
|
|
2461
|
-
|
|
2462
|
-
const
|
|
2463
|
-
|
|
2463
|
+
const l = He(i), c = He(s), f = He(a).filter((y) => !y.hidden), h = l.map((y) => y.field), E = c.map((y) => y.field), v = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
2464
|
+
t.forEach((y) => {
|
|
2465
|
+
const C = ct(y, h);
|
|
2466
|
+
v.has(C) || v.set(C, []), v.get(C).push(y);
|
|
2467
|
+
const w = ct(y, E);
|
|
2468
|
+
A.has(w) || A.set(w, []), A.get(w).push(y);
|
|
2469
|
+
const b = `${C}||${w}`;
|
|
2470
|
+
P.has(b) || P.set(b, []), P.get(b).push(y);
|
|
2464
2471
|
});
|
|
2465
|
-
const
|
|
2472
|
+
const _ = () => Array.from(v.entries()).sort(([y, C], [w, b]) => {
|
|
2466
2473
|
if (r && r.length > 0)
|
|
2467
|
-
for (const
|
|
2468
|
-
const { field:
|
|
2469
|
-
if (
|
|
2470
|
-
return
|
|
2471
|
-
if (
|
|
2472
|
-
return
|
|
2474
|
+
for (const m of r) {
|
|
2475
|
+
const { field: O, sortType: R } = m, S = R === "asc", x = me(C[0], O), I = me(b[0], O);
|
|
2476
|
+
if (x < I)
|
|
2477
|
+
return S ? -1 : 1;
|
|
2478
|
+
if (x > I)
|
|
2479
|
+
return S ? 1 : -1;
|
|
2473
2480
|
}
|
|
2474
|
-
for (let
|
|
2475
|
-
const
|
|
2476
|
-
if (
|
|
2477
|
-
if (
|
|
2478
|
-
const
|
|
2479
|
-
if (
|
|
2480
|
-
return
|
|
2481
|
-
if (
|
|
2482
|
-
return
|
|
2481
|
+
for (let m = 0; m < h.length; m++) {
|
|
2482
|
+
const O = h[m], R = l[m], S = me(C[0], O), x = me(b[0], O);
|
|
2483
|
+
if (S !== x)
|
|
2484
|
+
if (R.sort && R.sort.enabled) {
|
|
2485
|
+
const I = R.sort.type === "asc";
|
|
2486
|
+
if (S < x)
|
|
2487
|
+
return I ? -1 : 1;
|
|
2488
|
+
if (S > x)
|
|
2489
|
+
return I ? 1 : -1;
|
|
2483
2490
|
} else {
|
|
2484
|
-
if (
|
|
2491
|
+
if (S < x)
|
|
2485
2492
|
return -1;
|
|
2486
|
-
if (
|
|
2493
|
+
if (S > x)
|
|
2487
2494
|
return 1;
|
|
2488
2495
|
}
|
|
2489
2496
|
}
|
|
2490
2497
|
return 0;
|
|
2491
|
-
}), d = () => Array.from(
|
|
2492
|
-
for (let
|
|
2493
|
-
const
|
|
2494
|
-
if (
|
|
2495
|
-
if (
|
|
2496
|
-
const
|
|
2497
|
-
if (
|
|
2498
|
-
return
|
|
2499
|
-
if (
|
|
2500
|
-
return
|
|
2498
|
+
}), d = () => Array.from(A.entries()).sort(([y, C], [w, b]) => {
|
|
2499
|
+
for (let m = 0; m < E.length; m++) {
|
|
2500
|
+
const O = E[m], R = c[m], S = me(C[0], O), x = me(b[0], O);
|
|
2501
|
+
if (S !== x)
|
|
2502
|
+
if (R.sort && R.sort.enabled) {
|
|
2503
|
+
const I = R.sort.type === "asc";
|
|
2504
|
+
if (S < x)
|
|
2505
|
+
return I ? -1 : 1;
|
|
2506
|
+
if (S > x)
|
|
2507
|
+
return I ? 1 : -1;
|
|
2501
2508
|
} else {
|
|
2502
|
-
if (
|
|
2509
|
+
if (S < x)
|
|
2503
2510
|
return -1;
|
|
2504
|
-
if (
|
|
2511
|
+
if (S > x)
|
|
2505
2512
|
return 1;
|
|
2506
2513
|
}
|
|
2507
2514
|
}
|
|
2508
2515
|
return 0;
|
|
2509
|
-
}),
|
|
2510
|
-
const
|
|
2511
|
-
for (let
|
|
2512
|
-
|
|
2513
|
-
return
|
|
2514
|
-
},
|
|
2515
|
-
const
|
|
2516
|
-
return
|
|
2517
|
-
const
|
|
2518
|
-
|
|
2516
|
+
}), k = () => {
|
|
2517
|
+
const y = [], C = He(i);
|
|
2518
|
+
for (let w = 1; w <= C.length; w++)
|
|
2519
|
+
y.push(C.slice(0, w));
|
|
2520
|
+
return y;
|
|
2521
|
+
}, $ = () => {
|
|
2522
|
+
const y = k(), C = /* @__PURE__ */ new Set();
|
|
2523
|
+
return y.forEach((w, b) => {
|
|
2524
|
+
const m = w[w.length - 1];
|
|
2525
|
+
m.total && m.total.enabled && C.add(b);
|
|
2519
2526
|
}), C;
|
|
2520
2527
|
}, J = () => {
|
|
2521
|
-
const
|
|
2522
|
-
return
|
|
2523
|
-
let
|
|
2524
|
-
|
|
2525
|
-
const
|
|
2526
|
-
t.forEach((
|
|
2527
|
-
let
|
|
2528
|
-
if (
|
|
2529
|
-
const
|
|
2530
|
-
|
|
2528
|
+
const y = k(), C = [], w = $();
|
|
2529
|
+
return w.size === 0 || w.forEach((b) => {
|
|
2530
|
+
let m = [];
|
|
2531
|
+
b > 0 && (m = y[b - 1]);
|
|
2532
|
+
const O = {};
|
|
2533
|
+
t.forEach((R) => {
|
|
2534
|
+
let S = "";
|
|
2535
|
+
if (b > 0 ? S = m.map((x) => me(R, x.field)).join("|") : S = "__GLOBAL__", !O[S]) {
|
|
2536
|
+
const I = y[b][b].total;
|
|
2537
|
+
O[S] = {
|
|
2531
2538
|
records: [],
|
|
2532
|
-
config:
|
|
2539
|
+
config: I
|
|
2533
2540
|
};
|
|
2534
2541
|
}
|
|
2535
|
-
|
|
2536
|
-
}), C.push({ level:
|
|
2542
|
+
O[S].records.push(R);
|
|
2543
|
+
}), C.push({ level: b, data: O });
|
|
2537
2544
|
}), C;
|
|
2538
|
-
},
|
|
2539
|
-
if (ue.has(
|
|
2540
|
-
const
|
|
2541
|
-
|
|
2542
|
-
const
|
|
2543
|
-
if (
|
|
2544
|
-
const
|
|
2545
|
-
if (ue.has(
|
|
2546
|
-
const
|
|
2547
|
-
|
|
2548
|
-
ae.startsWith(
|
|
2545
|
+
}, j = d(), F = /* @__PURE__ */ new Map(), D = (y, C) => {
|
|
2546
|
+
if (ue.has(y)) {
|
|
2547
|
+
const w = ue.get(y), m = !w.get(C);
|
|
2548
|
+
w.set(C, m), ut.set("rowKey", C), ut.set("level", y), ut.set("expanded", m);
|
|
2549
|
+
const O = y - 1;
|
|
2550
|
+
if (O >= 0 && O < l.length && l[O].clickExpandChildren && m === !0) {
|
|
2551
|
+
const S = y + 1;
|
|
2552
|
+
if (ue.has(S)) {
|
|
2553
|
+
const x = ue.get(S), I = C + "|";
|
|
2554
|
+
x.forEach((H, ae) => {
|
|
2555
|
+
ae.startsWith(I) && (x.set(ae, !0), z(S, ae));
|
|
2549
2556
|
});
|
|
2550
2557
|
}
|
|
2551
2558
|
}
|
|
2552
2559
|
}
|
|
2553
|
-
}, z = (
|
|
2554
|
-
const
|
|
2555
|
-
if (ue.has(
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2558
|
-
|
|
2560
|
+
}, z = (y, C) => {
|
|
2561
|
+
const w = y + 1;
|
|
2562
|
+
if (ue.has(w)) {
|
|
2563
|
+
const b = ue.get(w), m = C + "|";
|
|
2564
|
+
b.forEach((O, R) => {
|
|
2565
|
+
R.startsWith(m) && (b.set(R, !0), z(w, R));
|
|
2559
2566
|
});
|
|
2560
2567
|
}
|
|
2561
|
-
},
|
|
2562
|
-
const C = J(),
|
|
2568
|
+
}, p = (y) => {
|
|
2569
|
+
const C = J(), w = [...y];
|
|
2563
2570
|
if (C.length === 0)
|
|
2564
|
-
return
|
|
2565
|
-
for (let
|
|
2566
|
-
const { level:
|
|
2567
|
-
Object.keys(
|
|
2568
|
-
const { records:
|
|
2569
|
-
let le = -1,
|
|
2570
|
-
if (
|
|
2571
|
-
le = 0,
|
|
2571
|
+
return w;
|
|
2572
|
+
for (let b = 0; b < C.length; b++) {
|
|
2573
|
+
const { level: m, data: O } = C[b];
|
|
2574
|
+
Object.keys(O).forEach((R) => {
|
|
2575
|
+
const { records: S, config: x } = O[R], { label: I = Bt, position: H = "bottom" } = x || {}, ae = R.split("|");
|
|
2576
|
+
let le = -1, T = -1;
|
|
2577
|
+
if (m === 0)
|
|
2578
|
+
le = 0, T = w.length - 1;
|
|
2572
2579
|
else
|
|
2573
|
-
for (let Q = 0; Q <
|
|
2574
|
-
const ee =
|
|
2575
|
-
h.slice(0,
|
|
2580
|
+
for (let Q = 0; Q < w.length; Q++) {
|
|
2581
|
+
const ee = w[Q];
|
|
2582
|
+
h.slice(0, m).every((Le, pe) => {
|
|
2576
2583
|
var oe;
|
|
2577
2584
|
return ((oe = ee[pe]) == null ? void 0 : oe.content) === ae[pe];
|
|
2578
|
-
}) && (le === -1 && (le = Q),
|
|
2585
|
+
}) && (le === -1 && (le = Q), T = Q);
|
|
2579
2586
|
}
|
|
2580
2587
|
if (le !== -1) {
|
|
2581
2588
|
const Q = [];
|
|
2582
2589
|
let ee = "";
|
|
2583
2590
|
h.forEach((Le, pe) => {
|
|
2584
|
-
let oe =
|
|
2591
|
+
let oe = Ce;
|
|
2585
2592
|
const ie = pe + 1, ce = ie < h.length, je = l[pe];
|
|
2586
|
-
pe <=
|
|
2593
|
+
pe <= m && (pe === m ? oe = I : oe = ae[pe], ee += `|${oe}`);
|
|
2587
2594
|
const Ke = ue.has(ie) && ue.get(ie).get(ee) || !0;
|
|
2588
|
-
(oe ===
|
|
2595
|
+
(oe === Ce || oe === null || oe === void 0) && je.emptyReplace && (oe = je.emptyReplace), Q.push({
|
|
2589
2596
|
content: oe,
|
|
2590
2597
|
rowspan: 1,
|
|
2591
2598
|
colspan: 1,
|
|
2592
2599
|
data: null,
|
|
2593
2600
|
rowKey: ee,
|
|
2594
|
-
expandable: H === "top" && ce && oe !==
|
|
2601
|
+
expandable: H === "top" && ce && oe !== Ce && oe !== Bt,
|
|
2595
2602
|
expanded: H === "top" ? Ke : !1,
|
|
2596
2603
|
level: ie,
|
|
2597
2604
|
onClick: H === "top" && ce ? (Ae) => D(Ae.level, Ae.rowKey) : void 0
|
|
2598
2605
|
});
|
|
2599
|
-
}),
|
|
2606
|
+
}), j.forEach(([Le, pe]) => {
|
|
2600
2607
|
const oe = {};
|
|
2601
2608
|
f.forEach((ie) => {
|
|
2602
2609
|
if (ie.calculateType === "expr")
|
|
2603
2610
|
return;
|
|
2604
|
-
const ce = ie.field, je = ie.calculateType || "sum", Ae =
|
|
2611
|
+
const ce = ie.field, je = ie.calculateType || "sum", Ae = S.filter((xe) => ct(xe, E) === Le).map((xe) => me(xe, ce));
|
|
2605
2612
|
let Ne = 0;
|
|
2606
2613
|
Ge[je] && (Ne = Ge[je](Ae)), oe[ie.field] = Ne;
|
|
2607
2614
|
}), f.forEach((ie) => {
|
|
@@ -2611,7 +2618,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2611
2618
|
}
|
|
2612
2619
|
}), f.forEach((ie) => {
|
|
2613
2620
|
let ce = oe[ie.field];
|
|
2614
|
-
(ce ===
|
|
2621
|
+
(ce === Ce || ce === null || ce === void 0 || typeof ce == "number" && isNaN(ce)) && ie.emptyReplace && (ce = ie.emptyReplace), Q.push({
|
|
2615
2622
|
content: ce,
|
|
2616
2623
|
rowspan: 1,
|
|
2617
2624
|
colspan: 1,
|
|
@@ -2619,132 +2626,132 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2619
2626
|
});
|
|
2620
2627
|
});
|
|
2621
2628
|
});
|
|
2622
|
-
const fe = H === "top" ? le :
|
|
2623
|
-
ft.has(ee) || (
|
|
2629
|
+
const fe = H === "top" ? le : T + 1;
|
|
2630
|
+
ft.has(ee) || (w.splice(fe, 0, Q), ft.set(ee, 1), H === "top" && m > 0 && F.set(R, ee));
|
|
2624
2631
|
}
|
|
2625
2632
|
});
|
|
2626
2633
|
}
|
|
2627
|
-
return
|
|
2634
|
+
return w;
|
|
2628
2635
|
}, B = He(i);
|
|
2629
|
-
ue.clear(), t.forEach((
|
|
2636
|
+
ue.clear(), t.forEach((y) => {
|
|
2630
2637
|
let C = "";
|
|
2631
|
-
h.forEach((
|
|
2632
|
-
const
|
|
2633
|
-
C += `|${
|
|
2634
|
-
const
|
|
2635
|
-
ue.get(
|
|
2638
|
+
h.forEach((w, b) => {
|
|
2639
|
+
const m = b + 1, O = me(y, w);
|
|
2640
|
+
C += `|${O}`, ue.has(m) || ue.set(m, /* @__PURE__ */ new Map());
|
|
2641
|
+
const R = l[b].collapsed;
|
|
2642
|
+
ue.get(m).set(C, !R);
|
|
2636
2643
|
});
|
|
2637
2644
|
});
|
|
2638
|
-
const M =
|
|
2645
|
+
const M = _();
|
|
2639
2646
|
let W = [];
|
|
2640
2647
|
const Y = /* @__PURE__ */ new Map();
|
|
2641
|
-
M.forEach(([
|
|
2642
|
-
const
|
|
2643
|
-
let
|
|
2644
|
-
h.forEach((
|
|
2645
|
-
const
|
|
2646
|
-
|
|
2647
|
-
const
|
|
2648
|
-
|
|
2648
|
+
M.forEach(([y, C]) => {
|
|
2649
|
+
const w = C[0];
|
|
2650
|
+
let b = "";
|
|
2651
|
+
h.forEach((m, O) => {
|
|
2652
|
+
const R = me(w, m), S = O + 1;
|
|
2653
|
+
b += `|${R}`, Y.has(S) || Y.set(S, /* @__PURE__ */ new Map());
|
|
2654
|
+
const x = Y.get(S);
|
|
2655
|
+
x.set(b, (x.get(b) || 0) + 1);
|
|
2649
2656
|
});
|
|
2650
|
-
}), M.forEach(([
|
|
2651
|
-
const
|
|
2652
|
-
let
|
|
2653
|
-
h.forEach((
|
|
2657
|
+
}), M.forEach(([y, C]) => {
|
|
2658
|
+
const w = C[0], b = [];
|
|
2659
|
+
let m = "";
|
|
2660
|
+
h.forEach((O, R) => {
|
|
2654
2661
|
var ee;
|
|
2655
|
-
let
|
|
2656
|
-
const
|
|
2657
|
-
|
|
2658
|
-
let ae =
|
|
2659
|
-
const le = B.find((fe) => fe.field ===
|
|
2660
|
-
if ((ee = le == null ? void 0 : le.total) != null && ee.enabled && le.total.label && (ae = `${
|
|
2661
|
-
const fe =
|
|
2662
|
-
|
|
2662
|
+
let S = me(w, O);
|
|
2663
|
+
const x = R + 1, I = x < h.length, H = l[R];
|
|
2664
|
+
m += `|${S}`;
|
|
2665
|
+
let ae = y;
|
|
2666
|
+
const le = B.find((fe) => fe.field === O);
|
|
2667
|
+
if ((ee = le == null ? void 0 : le.total) != null && ee.enabled && le.total.label && (ae = `${m}|${le.total.label}`), I) {
|
|
2668
|
+
const fe = m;
|
|
2669
|
+
F.has(fe) || F.set(fe, ae);
|
|
2663
2670
|
}
|
|
2664
|
-
const
|
|
2665
|
-
(
|
|
2666
|
-
content:
|
|
2671
|
+
const T = ue.has(x) && ue.get(x).get(m) || !0, Q = x < h.length ? (Y.get(x).get(m) || 0) > 1 : !1;
|
|
2672
|
+
(S === Ce || S === null || S === void 0) && H.emptyReplace && (S = H.emptyReplace), b.push({
|
|
2673
|
+
content: S,
|
|
2667
2674
|
rowspan: 1,
|
|
2668
2675
|
colspan: 1,
|
|
2669
|
-
data:
|
|
2670
|
-
expandable:
|
|
2671
|
-
expanded:
|
|
2672
|
-
level:
|
|
2673
|
-
rowKey:
|
|
2674
|
-
onClick:
|
|
2676
|
+
data: w,
|
|
2677
|
+
expandable: I && Q,
|
|
2678
|
+
expanded: T,
|
|
2679
|
+
level: x,
|
|
2680
|
+
rowKey: m,
|
|
2681
|
+
onClick: I && Q ? (fe) => D(fe.level, fe.rowKey) : void 0
|
|
2675
2682
|
});
|
|
2676
|
-
}),
|
|
2677
|
-
const
|
|
2678
|
-
f.forEach((
|
|
2679
|
-
if (
|
|
2683
|
+
}), j.forEach(([O, R]) => {
|
|
2684
|
+
const S = {};
|
|
2685
|
+
f.forEach((x) => {
|
|
2686
|
+
if (x.calculateType === "expr")
|
|
2680
2687
|
return;
|
|
2681
|
-
const
|
|
2688
|
+
const I = x.field, H = x.calculateType || "sum", ae = `${y}||${O}`, T = (P.get(ae) || []).map((ee) => me(ee, I));
|
|
2682
2689
|
let Q = 0;
|
|
2683
|
-
Ge[H] && (Q = Ge[H](
|
|
2684
|
-
}), f.forEach((
|
|
2685
|
-
if (
|
|
2686
|
-
const
|
|
2687
|
-
|
|
2690
|
+
Ge[H] && (Q = Ge[H](T)), S[x.field] = Q;
|
|
2691
|
+
}), f.forEach((x) => {
|
|
2692
|
+
if (x.calculateType === "expr" && x.expression) {
|
|
2693
|
+
const I = Gt(x.expression, S);
|
|
2694
|
+
S[x.field] = I !== null ? I : 0;
|
|
2688
2695
|
}
|
|
2689
|
-
}), f.forEach((
|
|
2690
|
-
let
|
|
2691
|
-
(
|
|
2692
|
-
content:
|
|
2696
|
+
}), f.forEach((x) => {
|
|
2697
|
+
let I = S[x.field];
|
|
2698
|
+
(I === Ce || I === null || I === void 0 || typeof I == "number" && isNaN(I)) && x.emptyReplace && (I = x.emptyReplace), b.push({
|
|
2699
|
+
content: I,
|
|
2693
2700
|
rowspan: 1,
|
|
2694
2701
|
colspan: 1,
|
|
2695
|
-
data:
|
|
2702
|
+
data: w
|
|
2696
2703
|
});
|
|
2697
2704
|
});
|
|
2698
|
-
}), W.push({ cells:
|
|
2705
|
+
}), W.push({ cells: b, rowKey: m });
|
|
2699
2706
|
});
|
|
2700
|
-
const q = (
|
|
2701
|
-
const
|
|
2702
|
-
for (let
|
|
2703
|
-
if (ue.has(
|
|
2704
|
-
const
|
|
2705
|
-
if (
|
|
2706
|
-
const
|
|
2707
|
-
if (
|
|
2707
|
+
const q = (y) => {
|
|
2708
|
+
const w = y.split("|").filter(Boolean).length;
|
|
2709
|
+
for (let b = 1; b < w; b++)
|
|
2710
|
+
if (ue.has(b)) {
|
|
2711
|
+
const m = ue.get(b), O = y.split("|").slice(0, b + 1).join("|");
|
|
2712
|
+
if (m.has(O) && !m.get(O)) {
|
|
2713
|
+
const R = O, S = F.get(R);
|
|
2714
|
+
if (y !== S)
|
|
2708
2715
|
return !1;
|
|
2709
2716
|
}
|
|
2710
2717
|
}
|
|
2711
2718
|
return !0;
|
|
2712
|
-
}, te = (
|
|
2713
|
-
var C,
|
|
2714
|
-
if (!
|
|
2715
|
-
return
|
|
2716
|
-
for (let
|
|
2717
|
-
let
|
|
2718
|
-
for (let
|
|
2719
|
-
const H =
|
|
2720
|
-
H.content !==
|
|
2719
|
+
}, te = (y) => {
|
|
2720
|
+
var C, w;
|
|
2721
|
+
if (!y || y.length === 0)
|
|
2722
|
+
return y;
|
|
2723
|
+
for (let b = 0; b < l.length; b++) {
|
|
2724
|
+
let m = y[0][b].content, O = 0, R = l[b], S = (C = R.total) == null ? void 0 : C.enabled, x = ((w = R.total) == null ? void 0 : w.label) || "";
|
|
2725
|
+
for (let I = 1; I < y.length; I++) {
|
|
2726
|
+
const H = y[I][b];
|
|
2727
|
+
H.content !== Ce && (!S || H.content !== x) && H.content === m ? (H.rowspan = 0, y[O][b].rowspan++) : (m = H.content, O = I);
|
|
2721
2728
|
}
|
|
2722
2729
|
}
|
|
2723
|
-
return
|
|
2724
|
-
}, he = (
|
|
2725
|
-
const C =
|
|
2726
|
-
const
|
|
2727
|
-
if (
|
|
2728
|
-
const
|
|
2729
|
-
|
|
2730
|
+
return y;
|
|
2731
|
+
}, he = (y) => {
|
|
2732
|
+
const C = y.filter((m) => q(m.rowKey)), w = C.map((m) => m.cells.map((O) => {
|
|
2733
|
+
const R = { ...O };
|
|
2734
|
+
if (R.expandable && R.level && R.rowKey && ue.has(R.level)) {
|
|
2735
|
+
const S = ue.get(R.level);
|
|
2736
|
+
S.has(R.rowKey) && (R.expanded = S.get(R.rowKey));
|
|
2730
2737
|
}
|
|
2731
|
-
return
|
|
2738
|
+
return R;
|
|
2732
2739
|
}));
|
|
2733
|
-
return te(
|
|
2734
|
-
rowKey:
|
|
2735
|
-
cells:
|
|
2740
|
+
return te(w), C.map((m, O) => ({
|
|
2741
|
+
rowKey: m.rowKey,
|
|
2742
|
+
cells: w[O]
|
|
2736
2743
|
}));
|
|
2737
2744
|
};
|
|
2738
2745
|
ft.clear();
|
|
2739
|
-
const
|
|
2740
|
-
let
|
|
2741
|
-
return
|
|
2742
|
-
|
|
2743
|
-
}), { cells:
|
|
2746
|
+
const be = W.map((y) => y.cells), _e = p(be).map((y, C) => {
|
|
2747
|
+
let w = "";
|
|
2748
|
+
return y.forEach((b, m) => {
|
|
2749
|
+
m < h.length && b.rowKey && (w = b.rowKey);
|
|
2750
|
+
}), { cells: y, rowKey: w };
|
|
2744
2751
|
}), Se = (() => {
|
|
2745
|
-
const
|
|
2752
|
+
const y = [];
|
|
2746
2753
|
if (l.forEach((C) => {
|
|
2747
|
-
|
|
2754
|
+
y.push({
|
|
2748
2755
|
...C,
|
|
2749
2756
|
width: C.width || 100,
|
|
2750
2757
|
fixed: "left",
|
|
@@ -2752,7 +2759,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2752
2759
|
});
|
|
2753
2760
|
}), c.length === 0)
|
|
2754
2761
|
f.forEach((C) => {
|
|
2755
|
-
|
|
2762
|
+
y.push({
|
|
2756
2763
|
...C,
|
|
2757
2764
|
width: C.width || 100,
|
|
2758
2765
|
key: C.field
|
|
@@ -2760,34 +2767,34 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2760
2767
|
});
|
|
2761
2768
|
else {
|
|
2762
2769
|
const C = [];
|
|
2763
|
-
|
|
2764
|
-
const
|
|
2765
|
-
let
|
|
2766
|
-
|
|
2767
|
-
var
|
|
2768
|
-
let
|
|
2769
|
-
if (!
|
|
2770
|
-
const ae = `${((
|
|
2770
|
+
j.forEach(([w, b]) => {
|
|
2771
|
+
const m = w.split("|").filter((R) => R !== "");
|
|
2772
|
+
let O = C;
|
|
2773
|
+
m.forEach((R, S) => {
|
|
2774
|
+
var I;
|
|
2775
|
+
let x = O.find((H) => H.title === R);
|
|
2776
|
+
if (!x) {
|
|
2777
|
+
const ae = `${((I = c[S]) == null ? void 0 : I.field) || "unknown"}__${R}`, le = {
|
|
2771
2778
|
field: ae,
|
|
2772
|
-
title:
|
|
2779
|
+
title: R,
|
|
2773
2780
|
children: [],
|
|
2774
2781
|
key: ae
|
|
2775
2782
|
};
|
|
2776
|
-
|
|
2783
|
+
O.push(le), x = le;
|
|
2777
2784
|
}
|
|
2778
|
-
|
|
2779
|
-
|
|
2785
|
+
S === m.length - 1 ? f.forEach((H) => {
|
|
2786
|
+
x.children || (x.children = []), x.children.push({
|
|
2780
2787
|
...H,
|
|
2781
|
-
field: `${
|
|
2788
|
+
field: `${w}||${H.field}`,
|
|
2782
2789
|
title: H.title || H.field,
|
|
2783
2790
|
width: H.width || 100,
|
|
2784
|
-
key: `${
|
|
2791
|
+
key: `${w}||${H.field}`
|
|
2785
2792
|
});
|
|
2786
|
-
}) : (
|
|
2793
|
+
}) : (x.children || (x.children = []), O = x.children);
|
|
2787
2794
|
});
|
|
2788
|
-
}),
|
|
2795
|
+
}), y.push(...C);
|
|
2789
2796
|
}
|
|
2790
|
-
return
|
|
2797
|
+
return y;
|
|
2791
2798
|
})();
|
|
2792
2799
|
return {
|
|
2793
2800
|
list: _e,
|
|
@@ -2807,11 +2814,11 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2807
2814
|
key: f.field
|
|
2808
2815
|
}));
|
|
2809
2816
|
return {
|
|
2810
|
-
list: t.map((f, h) => ({ cells: a.map((
|
|
2811
|
-
content: f[
|
|
2817
|
+
list: t.map((f, h) => ({ cells: a.map((v) => ({
|
|
2818
|
+
content: f[v.field] ?? Ce,
|
|
2812
2819
|
rowspan: 1,
|
|
2813
2820
|
colspan: 1,
|
|
2814
|
-
style:
|
|
2821
|
+
style: v.style,
|
|
2815
2822
|
data: f
|
|
2816
2823
|
// Pass original record for detail view cells
|
|
2817
2824
|
})), rowKey: h.toString() })),
|
|
@@ -2821,12 +2828,12 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2821
2828
|
}
|
|
2822
2829
|
return Jn(e);
|
|
2823
2830
|
}, eo = Ut((e) => {
|
|
2824
|
-
const { scroll: t, data: r, meta: n, sortParams: i, fields: s } = e, [a, l] = Ie(0), [c, f] = Ie([]), [h,
|
|
2825
|
-
if (
|
|
2826
|
-
let
|
|
2827
|
-
if (!
|
|
2831
|
+
const { scroll: t, data: r, meta: n, sortParams: i, fields: s } = e, [a, l] = Ie(0), [c, f] = Ie([]), [h, E] = Ie([]), v = ze(null), A = ge(() => {
|
|
2832
|
+
if (v.current) {
|
|
2833
|
+
let p = v.current;
|
|
2834
|
+
if (!p || !p.list || !p.dataExpandFilter)
|
|
2828
2835
|
return;
|
|
2829
|
-
f(
|
|
2836
|
+
f(p.dataExpandFilter(p.list));
|
|
2830
2837
|
}
|
|
2831
2838
|
}, []);
|
|
2832
2839
|
Ze(() => {
|
|
@@ -2836,50 +2843,50 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2836
2843
|
sortParams: i,
|
|
2837
2844
|
fields: s
|
|
2838
2845
|
});
|
|
2839
|
-
|
|
2840
|
-
}, [r, n, i, s,
|
|
2841
|
-
const
|
|
2842
|
-
let
|
|
2846
|
+
v.current = B, B.tableColumns && E(B.tableColumns), A();
|
|
2847
|
+
}, [r, n, i, s, A]);
|
|
2848
|
+
const P = ge((p) => p ? typeof p == "string" ? parseInt(p.replace("px", "")) || 0 : typeof p == "number" ? p : 0 : 0, []), { baseWidth: _, colCount: d } = ye(() => {
|
|
2849
|
+
let p = 0, B = 0;
|
|
2843
2850
|
const M = (W) => {
|
|
2844
2851
|
W.forEach((Y) => {
|
|
2845
|
-
(!("type" in Y) || Y.type !== "group") && (
|
|
2852
|
+
(!("type" in Y) || Y.type !== "group") && (p += P(Y.width), B += 1), Y != null && Y.children && Y.children.length > 0 && M(Y.children);
|
|
2846
2853
|
});
|
|
2847
2854
|
};
|
|
2848
|
-
return M(h), { baseWidth:
|
|
2849
|
-
}, [h,
|
|
2850
|
-
const
|
|
2855
|
+
return M(h), { baseWidth: p, colCount: B };
|
|
2856
|
+
}, [h, P]), k = ye(() => {
|
|
2857
|
+
const p = (B) => B.map((M) => {
|
|
2851
2858
|
let W = 0;
|
|
2852
|
-
|
|
2853
|
-
const q = (M.width ?
|
|
2854
|
-
return M.colSpan && M.colSpan > 1 ? M.width = q * M.colSpan : M.width = q, M.fixed && (M.fixed = !1), M != null && M.children && M.children.length > 0 && (M.children =
|
|
2859
|
+
_ < a && d > 0 && (W = Math.floor((a - _) / d));
|
|
2860
|
+
const q = (M.width ? P(M.width) : An) + W;
|
|
2861
|
+
return M.colSpan && M.colSpan > 1 ? M.width = q * M.colSpan : M.width = q, M.fixed && (M.fixed = !1), M != null && M.children && M.children.length > 0 && (M.children = p(M.children)), M;
|
|
2855
2862
|
});
|
|
2856
|
-
return
|
|
2857
|
-
}, [h,
|
|
2858
|
-
let
|
|
2863
|
+
return p(bt(h));
|
|
2864
|
+
}, [h, _, a, d, P]), $ = ye(() => {
|
|
2865
|
+
let p = 0;
|
|
2859
2866
|
const B = (M) => {
|
|
2860
2867
|
M.forEach((W) => {
|
|
2861
|
-
(!("type" in W) || W.type !== "group") && (
|
|
2868
|
+
(!("type" in W) || W.type !== "group") && (p += P(W.width)), W != null && W.children && W.children.length > 0 && B(W.children);
|
|
2862
2869
|
});
|
|
2863
2870
|
};
|
|
2864
|
-
return B(
|
|
2865
|
-
}, [
|
|
2866
|
-
|
|
2867
|
-
|
|
2871
|
+
return B(k), p;
|
|
2872
|
+
}, [k, P]), J = ze(null), j = ze(null), F = ze(!1), D = ge(({ scrollLeft: p }) => {
|
|
2873
|
+
F.current || (F.current = !0, J.current && (J.current.scrollLeft = p), requestAnimationFrame(() => {
|
|
2874
|
+
F.current = !1;
|
|
2868
2875
|
}));
|
|
2869
|
-
}, []), z = ge((
|
|
2870
|
-
if (
|
|
2876
|
+
}, []), z = ge((p) => {
|
|
2877
|
+
if (F.current)
|
|
2871
2878
|
return;
|
|
2872
|
-
|
|
2873
|
-
const B =
|
|
2874
|
-
|
|
2875
|
-
|
|
2879
|
+
F.current = !0;
|
|
2880
|
+
const B = p.currentTarget.scrollLeft;
|
|
2881
|
+
j.current && (j.current.scrollLeft = B), requestAnimationFrame(() => {
|
|
2882
|
+
F.current = !1;
|
|
2876
2883
|
});
|
|
2877
2884
|
}, []);
|
|
2878
2885
|
return /* @__PURE__ */ Z.jsx(
|
|
2879
2886
|
wt,
|
|
2880
2887
|
{
|
|
2881
|
-
onResize: ({ width:
|
|
2882
|
-
|
|
2888
|
+
onResize: ({ width: p }) => {
|
|
2889
|
+
p && p !== a && l(p);
|
|
2883
2890
|
},
|
|
2884
2891
|
children: /* @__PURE__ */ Z.jsxs(
|
|
2885
2892
|
"div",
|
|
@@ -2891,7 +2898,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2891
2898
|
jn,
|
|
2892
2899
|
{
|
|
2893
2900
|
ref: J,
|
|
2894
|
-
columns:
|
|
2901
|
+
columns: k,
|
|
2895
2902
|
width: a - 8,
|
|
2896
2903
|
onScroll: z,
|
|
2897
2904
|
meta: n
|
|
@@ -2902,14 +2909,14 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2902
2909
|
{
|
|
2903
2910
|
data: c,
|
|
2904
2911
|
info: {
|
|
2905
|
-
ref:
|
|
2912
|
+
ref: j,
|
|
2906
2913
|
onScroll: D
|
|
2907
2914
|
},
|
|
2908
2915
|
scroll: t,
|
|
2909
|
-
columns:
|
|
2916
|
+
columns: k,
|
|
2910
2917
|
tableWidth: a,
|
|
2911
|
-
gridWidth:
|
|
2912
|
-
handleExpand:
|
|
2918
|
+
gridWidth: $,
|
|
2919
|
+
handleExpand: A,
|
|
2913
2920
|
meta: n
|
|
2914
2921
|
}
|
|
2915
2922
|
) })
|