radar-ui 1.1.38 → 1.1.40
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/components/Table/TableBody.d.ts.map +1 -1
- package/dist/index.js +871 -851
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
document.head.appendChild(style);
|
|
6
6
|
})();
|
|
7
7
|
import * as Je from "react";
|
|
8
|
-
import qe, { useState as we, useRef as Ee, useCallback as ue, startTransition as Ft, useEffect as
|
|
9
|
-
import { useSensors as It, useSensor as
|
|
8
|
+
import qe, { useState as we, useRef as Ee, useCallback as ue, startTransition as Ft, useEffect as Ie, createContext as $t, useContext as Dt, useMemo as Ye, useLayoutEffect as Xe } from "react";
|
|
9
|
+
import { useSensors as It, useSensor as ot, PointerSensor as Lt, KeyboardSensor as Mt, pointerWithin as Wt, rectIntersection as Pt, DndContext as Nt, DragOverlay as At, useDraggable as zt, useDroppable as Bt } from "@dnd-kit/core";
|
|
10
10
|
import { sortableKeyboardCoordinates as Vt } from "@dnd-kit/sortable";
|
|
11
11
|
import { flushSync as Kt } from "react-dom";
|
|
12
|
-
var
|
|
12
|
+
var Qe = { exports: {} }, Ve = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react-jsx-runtime.production.min.js
|
|
@@ -19,17 +19,17 @@ var Xe = { exports: {} }, Ve = {};
|
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
var
|
|
22
|
+
var at;
|
|
23
23
|
function qt() {
|
|
24
|
-
if (
|
|
25
|
-
|
|
24
|
+
if (at) return Ve;
|
|
25
|
+
at = 1;
|
|
26
26
|
var t = qe, i = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
27
|
function a(c, f, w) {
|
|
28
|
-
var h, E = {}, q = null,
|
|
29
|
-
w !== void 0 && (q = "" + w), f.key !== void 0 && (q = "" + f.key), f.ref !== void 0 && (
|
|
28
|
+
var h, E = {}, q = null, P = null;
|
|
29
|
+
w !== void 0 && (q = "" + w), f.key !== void 0 && (q = "" + f.key), f.ref !== void 0 && (P = f.ref);
|
|
30
30
|
for (h in f) n.call(f, h) && !o.hasOwnProperty(h) && (E[h] = f[h]);
|
|
31
31
|
if (c && c.defaultProps) for (h in f = c.defaultProps, f) E[h] === void 0 && (E[h] = f[h]);
|
|
32
|
-
return { $$typeof: i, type: c, key: q, ref:
|
|
32
|
+
return { $$typeof: i, type: c, key: q, ref: P, props: E, _owner: s.current };
|
|
33
33
|
}
|
|
34
34
|
return Ve.Fragment = r, Ve.jsx = a, Ve.jsxs = a, Ve;
|
|
35
35
|
}
|
|
@@ -43,54 +43,54 @@ var Ke = {};
|
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
46
|
+
var lt;
|
|
47
47
|
function Ht() {
|
|
48
|
-
return
|
|
49
|
-
var t = qe, i = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), q = Symbol.for("react.lazy"),
|
|
48
|
+
return lt || (lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
+
var t = qe, i = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), N = Symbol.iterator, Z = "@@iterator";
|
|
50
50
|
function re(e) {
|
|
51
51
|
if (e === null || typeof e != "object")
|
|
52
52
|
return null;
|
|
53
|
-
var
|
|
54
|
-
return typeof
|
|
53
|
+
var u = N && e[N] || e[Z];
|
|
54
|
+
return typeof u == "function" ? u : null;
|
|
55
55
|
}
|
|
56
56
|
var Y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
57
|
function g(e) {
|
|
58
58
|
{
|
|
59
|
-
for (var
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
for (var u = arguments.length, v = new Array(u > 1 ? u - 1 : 0), B = 1; B < u; B++)
|
|
60
|
+
v[B - 1] = arguments[B];
|
|
61
|
+
ee("error", e, v);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ee(e, u, v) {
|
|
65
65
|
{
|
|
66
66
|
var B = Y.ReactDebugCurrentFrame, he = B.getStackAddendum();
|
|
67
|
-
he !== "" && (
|
|
68
|
-
var me =
|
|
67
|
+
he !== "" && (u += "%s", v = v.concat([he]));
|
|
68
|
+
var me = v.map(function(oe) {
|
|
69
69
|
return String(oe);
|
|
70
70
|
});
|
|
71
|
-
me.unshift("Warning: " +
|
|
71
|
+
me.unshift("Warning: " + u), Function.prototype.apply.call(console[e], console, me);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
var S = !1,
|
|
75
|
-
|
|
76
|
-
function
|
|
77
|
-
return !!(typeof e == "string" || typeof e == "function" || e === n || e === o || _ || e === s || e === w || e === h ||
|
|
74
|
+
var S = !1, W = !1, ae = !1, p = !1, _ = !1, y;
|
|
75
|
+
y = Symbol.for("react.module.reference");
|
|
76
|
+
function b(e) {
|
|
77
|
+
return !!(typeof e == "string" || typeof e == "function" || e === n || e === o || _ || e === s || e === w || e === h || p || e === P || S || W || ae || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === E || e.$$typeof === a || e.$$typeof === c || e.$$typeof === f || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
81
|
-
e.$$typeof ===
|
|
81
|
+
e.$$typeof === y || e.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function m(e, u, v) {
|
|
84
84
|
var B = e.displayName;
|
|
85
85
|
if (B)
|
|
86
86
|
return B;
|
|
87
|
-
var he =
|
|
88
|
-
return he !== "" ?
|
|
87
|
+
var he = u.displayName || u.name || "";
|
|
88
|
+
return he !== "" ? v + "(" + he + ")" : v;
|
|
89
89
|
}
|
|
90
90
|
function j(e) {
|
|
91
91
|
return e.displayName || "Context";
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function R(e) {
|
|
94
94
|
if (e == null)
|
|
95
95
|
return null;
|
|
96
96
|
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -114,20 +114,20 @@ function Ht() {
|
|
|
114
114
|
if (typeof e == "object")
|
|
115
115
|
switch (e.$$typeof) {
|
|
116
116
|
case c:
|
|
117
|
-
var
|
|
118
|
-
return j(
|
|
117
|
+
var u = e;
|
|
118
|
+
return j(u) + ".Consumer";
|
|
119
119
|
case a:
|
|
120
|
-
var
|
|
121
|
-
return j(
|
|
120
|
+
var v = e;
|
|
121
|
+
return j(v._context) + ".Provider";
|
|
122
122
|
case f:
|
|
123
|
-
return
|
|
123
|
+
return m(e, e.render, "ForwardRef");
|
|
124
124
|
case E:
|
|
125
125
|
var B = e.displayName || null;
|
|
126
|
-
return B !== null ? B :
|
|
126
|
+
return B !== null ? B : R(e.type) || "Memo";
|
|
127
127
|
case q: {
|
|
128
128
|
var he = e, me = he._payload, oe = he._init;
|
|
129
129
|
try {
|
|
130
|
-
return
|
|
130
|
+
return R(oe(me));
|
|
131
131
|
} catch {
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
@@ -135,14 +135,14 @@ function Ht() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var
|
|
138
|
+
var M = Object.assign, G = 0, F, H, te, I, z, V, $;
|
|
139
139
|
function le() {
|
|
140
140
|
}
|
|
141
141
|
le.__reactDisabledLog = !0;
|
|
142
|
-
function
|
|
142
|
+
function A() {
|
|
143
143
|
{
|
|
144
144
|
if (G === 0) {
|
|
145
|
-
|
|
145
|
+
F = console.log, H = console.info, te = console.warn, I = console.error, z = console.group, V = console.groupCollapsed, $ = console.groupEnd;
|
|
146
146
|
var e = {
|
|
147
147
|
configurable: !0,
|
|
148
148
|
enumerable: !0,
|
|
@@ -171,26 +171,26 @@ function Ht() {
|
|
|
171
171
|
writable: !0
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
|
-
log:
|
|
175
|
-
value:
|
|
174
|
+
log: M({}, e, {
|
|
175
|
+
value: F
|
|
176
176
|
}),
|
|
177
|
-
info:
|
|
177
|
+
info: M({}, e, {
|
|
178
178
|
value: H
|
|
179
179
|
}),
|
|
180
|
-
warn:
|
|
181
|
-
value:
|
|
180
|
+
warn: M({}, e, {
|
|
181
|
+
value: te
|
|
182
182
|
}),
|
|
183
|
-
error:
|
|
183
|
+
error: M({}, e, {
|
|
184
184
|
value: I
|
|
185
185
|
}),
|
|
186
|
-
group:
|
|
187
|
-
value:
|
|
186
|
+
group: M({}, e, {
|
|
187
|
+
value: z
|
|
188
188
|
}),
|
|
189
|
-
groupCollapsed:
|
|
189
|
+
groupCollapsed: M({}, e, {
|
|
190
190
|
value: V
|
|
191
191
|
}),
|
|
192
|
-
groupEnd:
|
|
193
|
-
value:
|
|
192
|
+
groupEnd: M({}, e, {
|
|
193
|
+
value: $
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ function Ht() {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
var k = Y.ReactCurrentDispatcher, C;
|
|
201
|
-
function X(e,
|
|
201
|
+
function X(e, u, v) {
|
|
202
202
|
{
|
|
203
203
|
if (C === void 0)
|
|
204
204
|
try {
|
|
@@ -211,27 +211,27 @@ function Ht() {
|
|
|
211
211
|
` + C + e;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
var
|
|
214
|
+
var D = !1, Q;
|
|
215
215
|
{
|
|
216
216
|
var fe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
-
|
|
217
|
+
Q = new fe();
|
|
218
218
|
}
|
|
219
|
-
function ie(e,
|
|
220
|
-
if (!e ||
|
|
219
|
+
function ie(e, u) {
|
|
220
|
+
if (!e || D)
|
|
221
221
|
return "";
|
|
222
222
|
{
|
|
223
|
-
var
|
|
224
|
-
if (
|
|
225
|
-
return
|
|
223
|
+
var v = Q.get(e);
|
|
224
|
+
if (v !== void 0)
|
|
225
|
+
return v;
|
|
226
226
|
}
|
|
227
227
|
var B;
|
|
228
|
-
|
|
228
|
+
D = !0;
|
|
229
229
|
var he = Error.prepareStackTrace;
|
|
230
230
|
Error.prepareStackTrace = void 0;
|
|
231
231
|
var me;
|
|
232
|
-
me = k.current, k.current = null,
|
|
232
|
+
me = k.current, k.current = null, A();
|
|
233
233
|
try {
|
|
234
|
-
if (
|
|
234
|
+
if (u) {
|
|
235
235
|
var oe = function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
};
|
|
@@ -266,35 +266,35 @@ function Ht() {
|
|
|
266
266
|
if (je && B && typeof je.stack == "string") {
|
|
267
267
|
for (var se = je.stack.split(`
|
|
268
268
|
`), Se = B.stack.split(`
|
|
269
|
-
`),
|
|
269
|
+
`), xe = se.length - 1, _e = Se.length - 1; xe >= 1 && _e >= 0 && se[xe] !== Se[_e]; )
|
|
270
270
|
_e--;
|
|
271
|
-
for (;
|
|
272
|
-
if (se[
|
|
273
|
-
if (
|
|
271
|
+
for (; xe >= 1 && _e >= 0; xe--, _e--)
|
|
272
|
+
if (se[xe] !== Se[_e]) {
|
|
273
|
+
if (xe !== 1 || _e !== 1)
|
|
274
274
|
do
|
|
275
|
-
if (
|
|
275
|
+
if (xe--, _e--, _e < 0 || se[xe] !== Se[_e]) {
|
|
276
276
|
var Te = `
|
|
277
|
-
` + se[
|
|
278
|
-
return e.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
277
|
+
` + se[xe].replace(" at new ", " at ");
|
|
278
|
+
return e.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, Te), Te;
|
|
279
279
|
}
|
|
280
|
-
while (
|
|
280
|
+
while (xe >= 1 && _e >= 0);
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
} finally {
|
|
285
|
-
|
|
285
|
+
D = !1, k.current = me, O(), Error.prepareStackTrace = he;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
288
|
-
return typeof e == "function" &&
|
|
287
|
+
var Ne = e ? e.displayName || e.name : "", We = Ne ? X(Ne) : "";
|
|
288
|
+
return typeof e == "function" && Q.set(e, We), We;
|
|
289
289
|
}
|
|
290
|
-
function K(e,
|
|
290
|
+
function K(e, u, v) {
|
|
291
291
|
return ie(e, !1);
|
|
292
292
|
}
|
|
293
293
|
function ne(e) {
|
|
294
|
-
var
|
|
295
|
-
return !!(
|
|
294
|
+
var u = e.prototype;
|
|
295
|
+
return !!(u && u.isReactComponent);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function L(e, u, v) {
|
|
298
298
|
if (e == null)
|
|
299
299
|
return "";
|
|
300
300
|
if (typeof e == "function")
|
|
@@ -312,11 +312,11 @@ function Ht() {
|
|
|
312
312
|
case f:
|
|
313
313
|
return K(e.render);
|
|
314
314
|
case E:
|
|
315
|
-
return
|
|
315
|
+
return L(e.type, u, v);
|
|
316
316
|
case q: {
|
|
317
317
|
var B = e, he = B._payload, me = B._init;
|
|
318
318
|
try {
|
|
319
|
-
return
|
|
319
|
+
return L(me(he), u, v);
|
|
320
320
|
} catch {
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -326,12 +326,12 @@ function Ht() {
|
|
|
326
326
|
var ce = Object.prototype.hasOwnProperty, ye = {}, pe = Y.ReactDebugCurrentFrame;
|
|
327
327
|
function ve(e) {
|
|
328
328
|
if (e) {
|
|
329
|
-
var
|
|
330
|
-
pe.setExtraStackFrame(
|
|
329
|
+
var u = e._owner, v = L(e.type, e._source, u ? u.type : null);
|
|
330
|
+
pe.setExtraStackFrame(v);
|
|
331
331
|
} else
|
|
332
332
|
pe.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
|
-
function Re(e,
|
|
334
|
+
function Re(e, u, v, B, he) {
|
|
335
335
|
{
|
|
336
336
|
var me = Function.call.bind(ce);
|
|
337
337
|
for (var oe in e)
|
|
@@ -339,28 +339,28 @@ function Ht() {
|
|
|
339
339
|
var se = void 0;
|
|
340
340
|
try {
|
|
341
341
|
if (typeof e[oe] != "function") {
|
|
342
|
-
var Se = Error((B || "React class") + ": " +
|
|
342
|
+
var Se = Error((B || "React class") + ": " + v + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
343
343
|
throw Se.name = "Invariant Violation", Se;
|
|
344
344
|
}
|
|
345
|
-
se = e[oe](
|
|
346
|
-
} catch (
|
|
347
|
-
se =
|
|
345
|
+
se = e[oe](u, oe, B, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
|
+
} catch (xe) {
|
|
347
|
+
se = xe;
|
|
348
348
|
}
|
|
349
|
-
se && !(se instanceof Error) && (ve(he), g("%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).", B || "React class",
|
|
349
|
+
se && !(se instanceof Error) && (ve(he), g("%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).", B || "React class", v, oe, typeof se), ve(null)), se instanceof Error && !(se.message in ye) && (ye[se.message] = !0, ve(he), g("Failed %s type: %s", v, se.message), ve(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
var
|
|
354
|
-
function
|
|
355
|
-
return
|
|
353
|
+
var d = Array.isArray;
|
|
354
|
+
function T(e) {
|
|
355
|
+
return d(e);
|
|
356
356
|
}
|
|
357
357
|
function U(e) {
|
|
358
358
|
{
|
|
359
|
-
var
|
|
360
|
-
return
|
|
359
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, v = u && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
360
|
+
return v;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function x(e) {
|
|
364
364
|
try {
|
|
365
365
|
return J(e), !1;
|
|
366
366
|
} catch {
|
|
@@ -371,7 +371,7 @@ function Ht() {
|
|
|
371
371
|
return "" + e;
|
|
372
372
|
}
|
|
373
373
|
function ge(e) {
|
|
374
|
-
if (
|
|
374
|
+
if (x(e))
|
|
375
375
|
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", U(e)), J(e);
|
|
376
376
|
}
|
|
377
377
|
var de = Y.ReactCurrentOwner, ke = {
|
|
@@ -379,56 +379,56 @@ function Ht() {
|
|
|
379
379
|
ref: !0,
|
|
380
380
|
__self: !0,
|
|
381
381
|
__source: !0
|
|
382
|
-
},
|
|
382
|
+
}, be, Ce;
|
|
383
383
|
function Oe(e) {
|
|
384
384
|
if (ce.call(e, "ref")) {
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
385
|
+
var u = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
386
|
+
if (u && u.isReactWarning)
|
|
387
387
|
return !1;
|
|
388
388
|
}
|
|
389
389
|
return e.ref !== void 0;
|
|
390
390
|
}
|
|
391
391
|
function Fe(e) {
|
|
392
392
|
if (ce.call(e, "key")) {
|
|
393
|
-
var
|
|
394
|
-
if (
|
|
393
|
+
var u = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
394
|
+
if (u && u.isReactWarning)
|
|
395
395
|
return !1;
|
|
396
396
|
}
|
|
397
397
|
return e.key !== void 0;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Le(e, u) {
|
|
400
400
|
typeof e.ref == "string" && de.current;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function ze(e, u) {
|
|
403
403
|
{
|
|
404
|
-
var
|
|
405
|
-
|
|
404
|
+
var v = function() {
|
|
405
|
+
be || (be = !0, g("%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));
|
|
406
406
|
};
|
|
407
|
-
|
|
408
|
-
get:
|
|
407
|
+
v.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
408
|
+
get: v,
|
|
409
409
|
configurable: !0
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Me(e, u) {
|
|
414
414
|
{
|
|
415
|
-
var
|
|
416
|
-
Ce || (Ce = !0, g("%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)",
|
|
415
|
+
var v = function() {
|
|
416
|
+
Ce || (Ce = !0, g("%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));
|
|
417
417
|
};
|
|
418
|
-
|
|
419
|
-
get:
|
|
418
|
+
v.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
419
|
+
get: v,
|
|
420
420
|
configurable: !0
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var He = function(e,
|
|
424
|
+
var He = function(e, u, v, B, he, me, oe) {
|
|
425
425
|
var se = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: i,
|
|
428
428
|
// Built-in properties that belong on the element
|
|
429
429
|
type: e,
|
|
430
|
-
key:
|
|
431
|
-
ref:
|
|
430
|
+
key: u,
|
|
431
|
+
ref: v,
|
|
432
432
|
props: oe,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
434
434
|
_owner: me
|
|
@@ -450,29 +450,29 @@ function Ht() {
|
|
|
450
450
|
value: he
|
|
451
451
|
}), Object.freeze && (Object.freeze(se.props), Object.freeze(se)), se;
|
|
452
452
|
};
|
|
453
|
-
function Ue(e,
|
|
453
|
+
function Ue(e, u, v, B, he) {
|
|
454
454
|
{
|
|
455
455
|
var me, oe = {}, se = null, Se = null;
|
|
456
|
-
|
|
457
|
-
for (me in
|
|
458
|
-
ce.call(
|
|
456
|
+
v !== void 0 && (ge(v), se = "" + v), Fe(u) && (ge(u.key), se = "" + u.key), Oe(u) && (Se = u.ref, Le(u, he));
|
|
457
|
+
for (me in u)
|
|
458
|
+
ce.call(u, me) && !ke.hasOwnProperty(me) && (oe[me] = u[me]);
|
|
459
459
|
if (e && e.defaultProps) {
|
|
460
|
-
var
|
|
461
|
-
for (me in
|
|
462
|
-
oe[me] === void 0 && (oe[me] =
|
|
460
|
+
var xe = e.defaultProps;
|
|
461
|
+
for (me in xe)
|
|
462
|
+
oe[me] === void 0 && (oe[me] = xe[me]);
|
|
463
463
|
}
|
|
464
464
|
if (se || Se) {
|
|
465
465
|
var _e = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
466
|
-
se &&
|
|
466
|
+
se && ze(oe, _e), Se && Me(oe, _e);
|
|
467
467
|
}
|
|
468
468
|
return He(e, se, Se, he, B, de.current, oe);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var
|
|
471
|
+
var Pe = Y.ReactCurrentOwner, $e = Y.ReactDebugCurrentFrame;
|
|
472
472
|
function De(e) {
|
|
473
473
|
if (e) {
|
|
474
|
-
var
|
|
475
|
-
$e.setExtraStackFrame(
|
|
474
|
+
var u = e._owner, v = L(e.type, e._source, u ? u.type : null);
|
|
475
|
+
$e.setExtraStackFrame(v);
|
|
476
476
|
} else
|
|
477
477
|
$e.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
@@ -481,10 +481,10 @@ function Ht() {
|
|
|
481
481
|
function Ze(e) {
|
|
482
482
|
return typeof e == "object" && e !== null && e.$$typeof === i;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function et() {
|
|
485
485
|
{
|
|
486
|
-
if (
|
|
487
|
-
var e =
|
|
486
|
+
if (Pe.current) {
|
|
487
|
+
var e = R(Pe.current.type);
|
|
488
488
|
if (e)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -496,40 +496,40 @@ Check the render method of \`` + e + "`.";
|
|
|
496
496
|
function _t(e) {
|
|
497
497
|
return "";
|
|
498
498
|
}
|
|
499
|
-
var
|
|
499
|
+
var tt = {};
|
|
500
500
|
function wt(e) {
|
|
501
501
|
{
|
|
502
|
-
var
|
|
503
|
-
if (!
|
|
504
|
-
var
|
|
505
|
-
|
|
502
|
+
var u = et();
|
|
503
|
+
if (!u) {
|
|
504
|
+
var v = typeof e == "string" ? e : e.displayName || e.name;
|
|
505
|
+
v && (u = `
|
|
506
506
|
|
|
507
|
-
Check the top-level render call using <` +
|
|
507
|
+
Check the top-level render call using <` + v + ">.");
|
|
508
508
|
}
|
|
509
|
-
return
|
|
509
|
+
return u;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function rt(e, u) {
|
|
513
513
|
{
|
|
514
514
|
if (!e._store || e._store.validated || e.key != null)
|
|
515
515
|
return;
|
|
516
516
|
e._store.validated = !0;
|
|
517
|
-
var
|
|
518
|
-
if (
|
|
517
|
+
var v = wt(u);
|
|
518
|
+
if (tt[v])
|
|
519
519
|
return;
|
|
520
|
-
|
|
520
|
+
tt[v] = !0;
|
|
521
521
|
var B = "";
|
|
522
|
-
e && e._owner && e._owner !==
|
|
522
|
+
e && e._owner && e._owner !== Pe.current && (B = " It was passed a child from " + R(e._owner.type) + "."), De(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, B), De(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function nt(e, u) {
|
|
526
526
|
{
|
|
527
527
|
if (typeof e != "object")
|
|
528
528
|
return;
|
|
529
|
-
if (
|
|
530
|
-
for (var
|
|
531
|
-
var B = e[
|
|
532
|
-
Ze(B) &&
|
|
529
|
+
if (T(e))
|
|
530
|
+
for (var v = 0; v < e.length; v++) {
|
|
531
|
+
var B = e[v];
|
|
532
|
+
Ze(B) && rt(B, u);
|
|
533
533
|
}
|
|
534
534
|
else if (Ze(e))
|
|
535
535
|
e._store && (e._store.validated = !0);
|
|
@@ -537,39 +537,39 @@ Check the top-level render call using <` + y + ">.");
|
|
|
537
537
|
var he = re(e);
|
|
538
538
|
if (typeof he == "function" && he !== e.entries)
|
|
539
539
|
for (var me = he.call(e), oe; !(oe = me.next()).done; )
|
|
540
|
-
Ze(oe.value) &&
|
|
540
|
+
Ze(oe.value) && rt(oe.value, u);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
function Ct(e) {
|
|
545
545
|
{
|
|
546
|
-
var
|
|
547
|
-
if (
|
|
546
|
+
var u = e.type;
|
|
547
|
+
if (u == null || typeof u == "string")
|
|
548
548
|
return;
|
|
549
|
-
var
|
|
550
|
-
if (typeof
|
|
551
|
-
|
|
552
|
-
else if (typeof
|
|
549
|
+
var v;
|
|
550
|
+
if (typeof u == "function")
|
|
551
|
+
v = u.propTypes;
|
|
552
|
+
else if (typeof u == "object" && (u.$$typeof === f || // Note: Memo only checks outer props here.
|
|
553
553
|
// Inner props are checked in the reconciler.
|
|
554
|
-
|
|
555
|
-
|
|
554
|
+
u.$$typeof === E))
|
|
555
|
+
v = u.propTypes;
|
|
556
556
|
else
|
|
557
557
|
return;
|
|
558
|
-
if (
|
|
559
|
-
var B =
|
|
560
|
-
Re(
|
|
561
|
-
} else if (
|
|
558
|
+
if (v) {
|
|
559
|
+
var B = R(u);
|
|
560
|
+
Re(v, e.props, "prop", B, e);
|
|
561
|
+
} else if (u.PropTypes !== void 0 && !Be) {
|
|
562
562
|
Be = !0;
|
|
563
|
-
var he =
|
|
563
|
+
var he = R(u);
|
|
564
564
|
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", he || "Unknown");
|
|
565
565
|
}
|
|
566
|
-
typeof
|
|
566
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function Et(e) {
|
|
570
570
|
{
|
|
571
|
-
for (var
|
|
572
|
-
var B =
|
|
571
|
+
for (var u = Object.keys(e.props), v = 0; v < u.length; v++) {
|
|
572
|
+
var B = u[v];
|
|
573
573
|
if (B !== "children" && B !== "key") {
|
|
574
574
|
De(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", B), De(null);
|
|
575
575
|
break;
|
|
@@ -578,63 +578,63 @@ Check the top-level render call using <` + y + ">.");
|
|
|
578
578
|
e.ref !== null && (De(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
var
|
|
582
|
-
function
|
|
581
|
+
var st = {};
|
|
582
|
+
function it(e, u, v, B, he, me) {
|
|
583
583
|
{
|
|
584
|
-
var oe =
|
|
584
|
+
var oe = b(e);
|
|
585
585
|
if (!oe) {
|
|
586
586
|
var se = "";
|
|
587
587
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
588
|
var Se = _t();
|
|
589
|
-
Se ? se += Se : se +=
|
|
590
|
-
var
|
|
591
|
-
e === null ?
|
|
589
|
+
Se ? se += Se : se += et();
|
|
590
|
+
var xe;
|
|
591
|
+
e === null ? xe = "null" : T(e) ? xe = "array" : e !== void 0 && e.$$typeof === i ? (xe = "<" + (R(e.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : xe = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", xe, se);
|
|
592
592
|
}
|
|
593
|
-
var _e = Ue(e,
|
|
593
|
+
var _e = Ue(e, u, v, he, me);
|
|
594
594
|
if (_e == null)
|
|
595
595
|
return _e;
|
|
596
596
|
if (oe) {
|
|
597
|
-
var Te =
|
|
597
|
+
var Te = u.children;
|
|
598
598
|
if (Te !== void 0)
|
|
599
599
|
if (B)
|
|
600
|
-
if (
|
|
601
|
-
for (var
|
|
602
|
-
|
|
600
|
+
if (T(Te)) {
|
|
601
|
+
for (var Ne = 0; Ne < Te.length; Ne++)
|
|
602
|
+
nt(Te[Ne], e);
|
|
603
603
|
Object.freeze && Object.freeze(Te);
|
|
604
604
|
} else
|
|
605
605
|
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
|
-
|
|
607
|
+
nt(Te, e);
|
|
608
608
|
}
|
|
609
|
-
if (ce.call(
|
|
610
|
-
var
|
|
609
|
+
if (ce.call(u, "key")) {
|
|
610
|
+
var We = R(e), je = Object.keys(u).filter(function(Rt) {
|
|
611
611
|
return Rt !== "key";
|
|
612
612
|
}), Ge = je.length > 0 ? "{key: someKey, " + je.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
|
-
if (!
|
|
613
|
+
if (!st[We + Ge]) {
|
|
614
614
|
var Tt = je.length > 0 ? "{" + je.join(": ..., ") + ": ...}" : "{}";
|
|
615
615
|
g(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
619
619
|
let props = %s;
|
|
620
|
-
<%s key={someKey} {...props} />`, Ge,
|
|
620
|
+
<%s key={someKey} {...props} />`, Ge, We, Tt, We), st[We + Ge] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
return e === n ? Et(_e) : Ct(_e), _e;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function St(e,
|
|
627
|
-
return
|
|
626
|
+
function St(e, u, v) {
|
|
627
|
+
return it(e, u, v, !0);
|
|
628
628
|
}
|
|
629
|
-
function kt(e,
|
|
630
|
-
return
|
|
629
|
+
function kt(e, u, v) {
|
|
630
|
+
return it(e, u, v, !1);
|
|
631
631
|
}
|
|
632
632
|
var jt = kt, Ot = St;
|
|
633
633
|
Ke.Fragment = n, Ke.jsx = jt, Ke.jsxs = Ot;
|
|
634
634
|
}()), Ke;
|
|
635
635
|
}
|
|
636
|
-
process.env.NODE_ENV === "production" ?
|
|
637
|
-
var l =
|
|
636
|
+
process.env.NODE_ENV === "production" ? Qe.exports = qt() : Qe.exports = Ht();
|
|
637
|
+
var l = Qe.exports;
|
|
638
638
|
const Ut = ({
|
|
639
639
|
column: t,
|
|
640
640
|
currWidth: i,
|
|
@@ -645,80 +645,80 @@ const Ut = ({
|
|
|
645
645
|
onResizeFrame: a,
|
|
646
646
|
onResizeEnd: c
|
|
647
647
|
}) => {
|
|
648
|
-
const [f, w] = we(!1), [h, E] = we(null), [q,
|
|
648
|
+
const [f, w] = we(!1), [h, E] = we(null), [q, P] = we(0), [N, Z] = we(0), [re, Y] = we(null), g = Ee(null);
|
|
649
649
|
Ee(0);
|
|
650
|
-
const
|
|
651
|
-
!f || !h || !t || (
|
|
650
|
+
const ee = Ee(!1), S = Ee(null), W = Ee(0), ae = Ee(0), p = Ee(null), _ = Ee(null), y = Ee(!1), b = Ee(null), m = ue((M) => {
|
|
651
|
+
!f || !h || !t || (b.current = M, !y.current && (y.current = !0, _.current = requestAnimationFrame((G) => {
|
|
652
652
|
var k;
|
|
653
|
-
|
|
654
|
-
const
|
|
655
|
-
if (!
|
|
656
|
-
const H =
|
|
657
|
-
let I =
|
|
658
|
-
I <
|
|
659
|
-
const
|
|
660
|
-
|
|
653
|
+
y.current = !1, a == null || a(G);
|
|
654
|
+
const F = b.current;
|
|
655
|
+
if (!F) return;
|
|
656
|
+
const H = F.clientX - q, te = t.minWidth || 50;
|
|
657
|
+
let I = N + H;
|
|
658
|
+
I < te && (I = te), t.maxWidth && I > t.maxWidth && (I = t.maxWidth), W.current = I;
|
|
659
|
+
const z = I - N;
|
|
660
|
+
p.current && (p.current.style.transform = `translateX(${z}px)`);
|
|
661
661
|
const V = (C) => {
|
|
662
662
|
var X;
|
|
663
663
|
return typeof window < "u" && ((X = window.CSS) != null && X.escape) ? window.CSS.escape(C) : C.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
664
|
-
},
|
|
664
|
+
}, $ = V(t.key), le = (k = S.current) == null ? void 0 : k.closest("table");
|
|
665
665
|
if (!le) return;
|
|
666
|
-
const
|
|
667
|
-
if (
|
|
666
|
+
const A = le.querySelector(`th[data-column-key="${$}"]`);
|
|
667
|
+
if (A && (A.style.width = `${I}px`, A.style.minWidth = `${I}px`), le.querySelectorAll(`td[data-column-key="${$}"]`).forEach((C) => {
|
|
668
668
|
const X = C;
|
|
669
669
|
X.style.width = `${I}px`, X.style.minWidth = `${I}px`;
|
|
670
670
|
}), t.fixed) {
|
|
671
|
-
const C = (ie) => window.getComputedStyle(ie).position === "sticky",
|
|
671
|
+
const C = (ie) => window.getComputedStyle(ie).position === "sticky", D = Array.from(
|
|
672
672
|
le.querySelectorAll("th.radar-table__header-cell.leaf-header")
|
|
673
|
-
).filter((ie) => C(ie)),
|
|
673
|
+
).filter((ie) => C(ie)), Q = A, fe = Q ? D.indexOf(Q) : -1;
|
|
674
674
|
if (fe !== -1) {
|
|
675
|
-
let ie = parseFloat(
|
|
676
|
-
for (let ne = fe + 1; ne <
|
|
677
|
-
ie += Math.floor(K),
|
|
678
|
-
const
|
|
679
|
-
if (
|
|
680
|
-
const ce = V(
|
|
675
|
+
let ie = parseFloat(D[fe].style.left || "0") || 0, K = D[fe].getBoundingClientRect().width;
|
|
676
|
+
for (let ne = fe + 1; ne < D.length; ne++) {
|
|
677
|
+
ie += Math.floor(K), D[ne].style.left = `${ie}px`;
|
|
678
|
+
const L = D[ne].getAttribute("data-column-key");
|
|
679
|
+
if (L) {
|
|
680
|
+
const ce = V(L);
|
|
681
681
|
le.querySelectorAll(`td[data-column-key="${ce}"]`).forEach((pe) => {
|
|
682
682
|
const ve = pe;
|
|
683
683
|
window.getComputedStyle(ve).position === "sticky" && (ve.style.left = `${ie}px`);
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
K =
|
|
686
|
+
K = D[ne].getBoundingClientRect().width;
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
})));
|
|
691
|
-
}, [f, q,
|
|
692
|
-
var
|
|
691
|
+
}, [f, q, N, h, s, t, a]), j = ue(() => {
|
|
692
|
+
var A;
|
|
693
693
|
if (S.current.style.opacity = "", !f || !h) return;
|
|
694
|
-
const
|
|
695
|
-
let G =
|
|
696
|
-
G <
|
|
697
|
-
const
|
|
698
|
-
_.current && (cancelAnimationFrame(_.current), _.current = null),
|
|
699
|
-
const
|
|
694
|
+
const M = t.minWidth || 50;
|
|
695
|
+
let G = W.current || N;
|
|
696
|
+
G < M && (G = M), t != null && t.maxWidth && G > t.maxWidth && (G = t.maxWidth);
|
|
697
|
+
const F = G, H = h;
|
|
698
|
+
_.current && (cancelAnimationFrame(_.current), _.current = null), y.current = !1, b.current = null, g.current && (clearInterval(g.current), g.current = null), ee.current = !1, p.current && (p.current.style.transform = "translateX(0px)"), w(!1), P(0), Z(0), E(null), Y(null), W.current = 0, ae.current = 0, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", j);
|
|
699
|
+
const te = (O) => {
|
|
700
700
|
var k;
|
|
701
701
|
return typeof window < "u" && ((k = window.CSS) != null && k.escape) ? window.CSS.escape(O) : O.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
702
|
-
}, I =
|
|
703
|
-
if (!
|
|
704
|
-
const V =
|
|
705
|
-
if (V && (V.style.width = `${
|
|
702
|
+
}, I = te(H), z = (A = S.current) == null ? void 0 : A.closest("table");
|
|
703
|
+
if (!z) return;
|
|
704
|
+
const V = z.querySelector(`th[data-column-key="${I}"]`);
|
|
705
|
+
if (V && (V.style.width = `${F}px`, V.style.minWidth = `${F}px`), z.querySelectorAll(`td[data-column-key="${I}"]`).forEach((O) => {
|
|
706
706
|
const k = O;
|
|
707
|
-
k.style.width = `${
|
|
707
|
+
k.style.width = `${F}px`, k.style.minWidth = `${F}px`;
|
|
708
708
|
}), t.fixed) {
|
|
709
|
-
const O = (
|
|
710
|
-
|
|
711
|
-
).filter((
|
|
712
|
-
if (
|
|
713
|
-
let
|
|
714
|
-
for (let ie =
|
|
715
|
-
|
|
709
|
+
const O = (Q) => window.getComputedStyle(Q).position === "sticky", C = Array.from(
|
|
710
|
+
z.querySelectorAll("th.radar-table__header-cell.leaf-header")
|
|
711
|
+
).filter((Q) => O(Q)), X = V, D = X ? C.indexOf(X) : -1;
|
|
712
|
+
if (D !== -1) {
|
|
713
|
+
let Q = parseFloat(C[D].style.left || "0") || 0, fe = C[D].getBoundingClientRect().width;
|
|
714
|
+
for (let ie = D + 1; ie < C.length; ie++) {
|
|
715
|
+
Q += Math.floor(fe), C[ie].style.left = `${Q}px`;
|
|
716
716
|
const K = C[ie].getAttribute("data-column-key");
|
|
717
717
|
if (K) {
|
|
718
|
-
const ne =
|
|
719
|
-
|
|
718
|
+
const ne = te(K);
|
|
719
|
+
z.querySelectorAll(`td[data-column-key="${ne}"]`).forEach((ce) => {
|
|
720
720
|
const ye = ce;
|
|
721
|
-
window.getComputedStyle(ye).position === "sticky" && (ye.style.left = `${
|
|
721
|
+
window.getComputedStyle(ye).position === "sticky" && (ye.style.left = `${Q}px`);
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
fe = C[ie].getBoundingClientRect().width;
|
|
@@ -727,42 +727,42 @@ const Ut = ({
|
|
|
727
727
|
}
|
|
728
728
|
const le = setTimeout(() => {
|
|
729
729
|
var C;
|
|
730
|
-
const O = (C = S == null ? void 0 : S.current) == null ? void 0 : C.closest("th"), k = (O == null ? void 0 : O.getBoundingClientRect().width) ??
|
|
730
|
+
const O = (C = S == null ? void 0 : S.current) == null ? void 0 : C.closest("th"), k = (O == null ? void 0 : O.getBoundingClientRect().width) ?? F;
|
|
731
731
|
Ft(() => {
|
|
732
732
|
n == null || n(H, k);
|
|
733
733
|
}), c == null || c();
|
|
734
734
|
}, 0);
|
|
735
735
|
return () => clearTimeout(le);
|
|
736
|
-
}, [f, h, t,
|
|
737
|
-
if (
|
|
738
|
-
const H = S.current.closest("th"),
|
|
739
|
-
w(!0),
|
|
740
|
-
const I = S.current.getBoundingClientRect(),
|
|
741
|
-
if (
|
|
742
|
-
const
|
|
736
|
+
}, [f, h, t, N, n, m, c]), R = ue((M, G, F) => {
|
|
737
|
+
if (M.preventDefault(), o == null || o(), !S.current) return;
|
|
738
|
+
const H = S.current.closest("th"), te = (H == null ? void 0 : H.getBoundingClientRect().width) ?? F;
|
|
739
|
+
w(!0), P(M.clientX), Z(te), E(G), S.current.style.opacity = "1", S.current.classList.add("radar-table__resize-button_active");
|
|
740
|
+
const I = S.current.getBoundingClientRect(), z = s == null ? void 0 : s.current, V = S.current.closest("table");
|
|
741
|
+
if (z) {
|
|
742
|
+
const $ = z.getBoundingClientRect();
|
|
743
743
|
Y({
|
|
744
|
-
top:
|
|
745
|
-
height:
|
|
744
|
+
top: $.top + I.height * 2,
|
|
745
|
+
height: $.height - I.height * 2
|
|
746
746
|
});
|
|
747
747
|
} else if (V) {
|
|
748
|
-
const
|
|
748
|
+
const $ = V.getBoundingClientRect();
|
|
749
749
|
Y({
|
|
750
|
-
top:
|
|
751
|
-
height:
|
|
750
|
+
top: $.top,
|
|
751
|
+
height: $.height
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
754
|
}, [s, o]);
|
|
755
|
-
return
|
|
756
|
-
f && (document.addEventListener("mousemove",
|
|
757
|
-
}, [f,
|
|
758
|
-
_.current && (cancelAnimationFrame(_.current), _.current = null),
|
|
759
|
-
}, [
|
|
755
|
+
return Ie(() => {
|
|
756
|
+
f && (document.addEventListener("mousemove", m), document.addEventListener("mouseup", j));
|
|
757
|
+
}, [f, m, j]), Ie(() => () => {
|
|
758
|
+
_.current && (cancelAnimationFrame(_.current), _.current = null), y.current = !1, b.current = null, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", j);
|
|
759
|
+
}, [m, j]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
760
760
|
/* @__PURE__ */ l.jsx(
|
|
761
761
|
"button",
|
|
762
762
|
{
|
|
763
763
|
ref: S,
|
|
764
764
|
className: "radar-table__resize-button",
|
|
765
|
-
onMouseDown: (
|
|
765
|
+
onMouseDown: (M) => R(M, t.key, i || r || 200),
|
|
766
766
|
title: "Изменить ширину колонки",
|
|
767
767
|
children: /* @__PURE__ */ l.jsx("div", {})
|
|
768
768
|
}
|
|
@@ -770,7 +770,7 @@ const Ut = ({
|
|
|
770
770
|
f && re && /* @__PURE__ */ l.jsx(
|
|
771
771
|
"div",
|
|
772
772
|
{
|
|
773
|
-
ref:
|
|
773
|
+
ref: p,
|
|
774
774
|
className: "radar-table__resize-line",
|
|
775
775
|
style: {
|
|
776
776
|
left: `${ae.current}px`,
|
|
@@ -785,8 +785,8 @@ const Ut = ({
|
|
|
785
785
|
}, Yt = ({ text: t, children: i }) => {
|
|
786
786
|
const [r, n] = we(!1), [s, o] = we("left"), a = Ee(null), c = () => {
|
|
787
787
|
if (a.current) {
|
|
788
|
-
const f = a.current.getBoundingClientRect(), w = window.innerWidth, h = 250, E = 20, q = w - f.left,
|
|
789
|
-
q < h + E &&
|
|
788
|
+
const f = a.current.getBoundingClientRect(), w = window.innerWidth, h = 250, E = 20, q = w - f.left, P = f.right;
|
|
789
|
+
q < h + E && P > h + E ? o("right") : o("left");
|
|
790
790
|
}
|
|
791
791
|
n(!0);
|
|
792
792
|
};
|
|
@@ -812,8 +812,8 @@ const Ut = ({
|
|
|
812
812
|
]
|
|
813
813
|
}
|
|
814
814
|
);
|
|
815
|
-
},
|
|
816
|
-
const t = Dt(
|
|
815
|
+
}, bt = $t(null), Jt = () => {
|
|
816
|
+
const t = Dt(bt);
|
|
817
817
|
return t || {
|
|
818
818
|
activeColumn: null,
|
|
819
819
|
isValidDropZone: () => !1
|
|
@@ -826,175 +826,175 @@ function Zt({
|
|
|
826
826
|
scrollContainerRef: n
|
|
827
827
|
}) {
|
|
828
828
|
const [s, o] = we(null), [a, c] = we(40), [f, w] = we(200), [h, E] = we(null), q = It(
|
|
829
|
-
|
|
829
|
+
ot(Lt, {
|
|
830
830
|
activationConstraint: {
|
|
831
831
|
distance: 5
|
|
832
832
|
// Уменьшили дистанцию
|
|
833
833
|
}
|
|
834
834
|
}),
|
|
835
|
-
|
|
835
|
+
ot(Mt, {
|
|
836
836
|
coordinateGetter: Vt
|
|
837
837
|
})
|
|
838
|
-
),
|
|
839
|
-
const _ =
|
|
838
|
+
), P = ue((p) => {
|
|
839
|
+
const _ = Wt(p);
|
|
840
840
|
if (_.length > 0) {
|
|
841
|
-
const
|
|
841
|
+
const m = _.filter(
|
|
842
842
|
(j) => j.id.toString().startsWith("drop-zone-")
|
|
843
843
|
);
|
|
844
|
-
if (
|
|
845
|
-
return
|
|
844
|
+
if (m.length > 0)
|
|
845
|
+
return m;
|
|
846
846
|
}
|
|
847
|
-
const
|
|
848
|
-
(
|
|
847
|
+
const b = Pt(p).filter(
|
|
848
|
+
(m) => m.id.toString().startsWith("drop-zone-")
|
|
849
849
|
);
|
|
850
|
-
return
|
|
851
|
-
}, []),
|
|
852
|
-
const
|
|
853
|
-
for (const
|
|
854
|
-
if (
|
|
855
|
-
return { column:
|
|
856
|
-
if (
|
|
857
|
-
const G =
|
|
850
|
+
return b.length > 0 ? [b[0]] : [];
|
|
851
|
+
}, []), N = ue((p) => p.some((_) => _.children && _.children.length > 0), []), Z = ue((p, _) => {
|
|
852
|
+
const y = (b, m, j = 0, R = null) => {
|
|
853
|
+
for (const M of b) {
|
|
854
|
+
if (M.key === m)
|
|
855
|
+
return { column: M, parent: R, level: j };
|
|
856
|
+
if (M.children && M.children.length > 0) {
|
|
857
|
+
const G = y(M.children, m, j + 1, M);
|
|
858
858
|
if (G) return G;
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
861
|
return null;
|
|
862
862
|
};
|
|
863
|
-
return
|
|
864
|
-
}, []), re = ue((
|
|
865
|
-
var
|
|
866
|
-
const
|
|
867
|
-
return
|
|
868
|
-
}, [Z]), Y = ue((
|
|
869
|
-
if (
|
|
863
|
+
return y(p, _);
|
|
864
|
+
}, []), re = ue((p, _) => {
|
|
865
|
+
var b;
|
|
866
|
+
const y = Z(_, p);
|
|
867
|
+
return y && (y.column.fixed || ((b = y.parent) == null ? void 0 : b.fixed)) || !1;
|
|
868
|
+
}, [Z]), Y = ue((p, _) => {
|
|
869
|
+
if (p.columnKey === _.columnKey)
|
|
870
870
|
return !1;
|
|
871
|
-
const
|
|
872
|
-
if (
|
|
871
|
+
const y = re(p.columnKey, i), b = re(_.columnKey, i);
|
|
872
|
+
if (y !== b)
|
|
873
873
|
return !1;
|
|
874
|
-
if (
|
|
875
|
-
const
|
|
876
|
-
if (!
|
|
874
|
+
if (N(i)) {
|
|
875
|
+
const m = Z(i, p.columnKey), j = Z(i, _.columnKey);
|
|
876
|
+
if (!m || !j)
|
|
877
877
|
return !1;
|
|
878
|
-
const
|
|
879
|
-
if (!
|
|
880
|
-
const G =
|
|
881
|
-
return G &&
|
|
878
|
+
const R = p.isLeaf, M = _.isLeaf;
|
|
879
|
+
if (!R && !M) {
|
|
880
|
+
const G = m.level === j.level, F = m.parent === null && j.parent === null || m.parent !== null && j.parent !== null && m.parent.key === j.parent.key;
|
|
881
|
+
return G && F;
|
|
882
882
|
}
|
|
883
|
-
if (
|
|
884
|
-
const G =
|
|
885
|
-
return G &&
|
|
883
|
+
if (R && M) {
|
|
884
|
+
const G = m.level === j.level, F = m.parent === null && j.parent === null || m.parent !== null && j.parent !== null && m.parent.key === j.parent.key;
|
|
885
|
+
return G && F;
|
|
886
886
|
}
|
|
887
887
|
return !1;
|
|
888
888
|
}
|
|
889
889
|
return !0;
|
|
890
|
-
}, [i,
|
|
891
|
-
var
|
|
892
|
-
if (!
|
|
893
|
-
const
|
|
894
|
-
if (
|
|
895
|
-
return
|
|
896
|
-
const k = [...
|
|
897
|
-
k.splice(
|
|
898
|
-
const X = (
|
|
890
|
+
}, [i, N, Z, re]), g = ue((p, _, y) => {
|
|
891
|
+
var $, le;
|
|
892
|
+
if (!N(i)) {
|
|
893
|
+
const A = y.findIndex((D) => D.key === p), O = y.findIndex((D) => D.key === _);
|
|
894
|
+
if (A === -1 || O === -1)
|
|
895
|
+
return y;
|
|
896
|
+
const k = [...y], C = k[A];
|
|
897
|
+
k.splice(A, 1);
|
|
898
|
+
const X = (A < O, O);
|
|
899
899
|
return k.splice(X, 0, C), k;
|
|
900
900
|
}
|
|
901
|
-
const
|
|
902
|
-
if (!
|
|
903
|
-
return
|
|
904
|
-
const j = JSON.parse(JSON.stringify(i)),
|
|
901
|
+
const b = Z(i, p), m = Z(i, _);
|
|
902
|
+
if (!b || !m)
|
|
903
|
+
return y;
|
|
904
|
+
const j = JSON.parse(JSON.stringify(i)), R = (A, O) => {
|
|
905
905
|
if (O === null)
|
|
906
|
-
return { container:
|
|
906
|
+
return { container: A, parentObj: null };
|
|
907
907
|
const k = (X) => {
|
|
908
|
-
for (const
|
|
909
|
-
if (
|
|
910
|
-
return
|
|
911
|
-
if (
|
|
912
|
-
const
|
|
913
|
-
if (
|
|
908
|
+
for (const D of X) {
|
|
909
|
+
if (D.key === O)
|
|
910
|
+
return D;
|
|
911
|
+
if (D.children) {
|
|
912
|
+
const Q = k(D.children);
|
|
913
|
+
if (Q) return Q;
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
return null;
|
|
917
|
-
}, C = k(
|
|
917
|
+
}, C = k(A);
|
|
918
918
|
return {
|
|
919
|
-
container: (C == null ? void 0 : C.children) ||
|
|
919
|
+
container: (C == null ? void 0 : C.children) || A,
|
|
920
920
|
parentObj: C
|
|
921
921
|
};
|
|
922
|
-
},
|
|
923
|
-
if (
|
|
924
|
-
return
|
|
925
|
-
const
|
|
926
|
-
if (
|
|
927
|
-
return
|
|
928
|
-
const [
|
|
929
|
-
return
|
|
930
|
-
}, [i,
|
|
931
|
-
const _ =
|
|
922
|
+
}, M = (($ = b.parent) == null ? void 0 : $.key) || null, G = ((le = m.parent) == null ? void 0 : le.key) || null, { container: F } = R(j, M), { container: H } = R(j, G);
|
|
923
|
+
if (F !== H)
|
|
924
|
+
return y;
|
|
925
|
+
const te = F.findIndex((A) => A.key === p), I = F.findIndex((A) => A.key === _);
|
|
926
|
+
if (te === -1 || I === -1)
|
|
927
|
+
return y;
|
|
928
|
+
const [z] = F.splice(te, 1), V = (te < I, I);
|
|
929
|
+
return F.splice(V, 0, z), j;
|
|
930
|
+
}, [i, N, Z]), ee = ue((p) => {
|
|
931
|
+
const _ = p.active.data.current;
|
|
932
932
|
o(_);
|
|
933
|
-
const
|
|
934
|
-
if (
|
|
935
|
-
const
|
|
936
|
-
w(
|
|
937
|
-
const
|
|
938
|
-
|
|
939
|
-
const j =
|
|
933
|
+
const y = document.querySelector(`[data-column-key="${_.columnKey}"]`);
|
|
934
|
+
if (y) {
|
|
935
|
+
const b = y.getBoundingClientRect();
|
|
936
|
+
w(b.width);
|
|
937
|
+
const m = y.closest("table");
|
|
938
|
+
y.closest('[style*="overflow"]');
|
|
939
|
+
const j = m;
|
|
940
940
|
if (j) {
|
|
941
|
-
const
|
|
942
|
-
c(
|
|
941
|
+
const R = j.getBoundingClientRect();
|
|
942
|
+
c(R.height);
|
|
943
943
|
} else
|
|
944
944
|
c(400);
|
|
945
945
|
} else
|
|
946
946
|
c(400), w(200);
|
|
947
947
|
document.body.style.cursor = "grabbing";
|
|
948
|
-
}, []), S = ue((
|
|
949
|
-
const { active: _, over:
|
|
950
|
-
if (!
|
|
948
|
+
}, []), S = ue((p) => {
|
|
949
|
+
const { active: _, over: y } = p;
|
|
950
|
+
if (!y || !_.data.current) {
|
|
951
951
|
document.body.style.cursor = "grabbing", E(null);
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
|
-
const
|
|
955
|
-
if (!
|
|
954
|
+
const b = _.data.current, m = y.data.current;
|
|
955
|
+
if (!m) {
|
|
956
956
|
document.body.style.cursor = "grabbing", E(null);
|
|
957
957
|
return;
|
|
958
958
|
}
|
|
959
|
-
const j = Y(
|
|
959
|
+
const j = Y(b, m);
|
|
960
960
|
document.body.style.cursor = j ? "copy" : "not-allowed";
|
|
961
|
-
const
|
|
961
|
+
const R = document.querySelectorAll(`th[data-column-key="${m.columnKey}"]`), M = N(i), G = R.length > 0 ? M && m.isLeaf ? R[R.length - 1] : R[0] : null;
|
|
962
962
|
if (G) {
|
|
963
|
-
const
|
|
964
|
-
let
|
|
963
|
+
const F = G.getBoundingClientRect(), H = G.closest("table");
|
|
964
|
+
let te = F.left;
|
|
965
965
|
const I = n == null ? void 0 : n.current;
|
|
966
|
-
let
|
|
966
|
+
let z, V;
|
|
967
967
|
if (I) {
|
|
968
|
-
const
|
|
969
|
-
|
|
968
|
+
const $ = I.getBoundingClientRect();
|
|
969
|
+
z = $.top, V = $.height;
|
|
970
970
|
} else if (H) {
|
|
971
|
-
const
|
|
972
|
-
|
|
971
|
+
const $ = H.getBoundingClientRect();
|
|
972
|
+
z = $.top, V = $.height;
|
|
973
973
|
} else
|
|
974
|
-
|
|
974
|
+
z = F.top, V = F.height * 10;
|
|
975
975
|
E({
|
|
976
|
-
left:
|
|
977
|
-
top:
|
|
976
|
+
left: te,
|
|
977
|
+
top: z,
|
|
978
978
|
height: V,
|
|
979
979
|
color: j ? "#5329FF" : "#ff3b3b"
|
|
980
980
|
});
|
|
981
981
|
} else
|
|
982
982
|
E(null);
|
|
983
|
-
}, [Y]),
|
|
984
|
-
const { active: _, over:
|
|
985
|
-
if (document.body.style.cursor = "", o(null), c(40), w(200), E(null), !
|
|
983
|
+
}, [Y]), W = ue((p) => {
|
|
984
|
+
const { active: _, over: y } = p;
|
|
985
|
+
if (document.body.style.cursor = "", o(null), c(40), w(200), E(null), !y || !_.data.current || !y.data.current)
|
|
986
986
|
return;
|
|
987
|
-
const
|
|
988
|
-
if (Y(
|
|
987
|
+
const b = _.data.current, m = y.data.current;
|
|
988
|
+
if (Y(b, m) && r) {
|
|
989
989
|
const j = g(
|
|
990
|
-
|
|
991
|
-
|
|
990
|
+
b.columnKey,
|
|
991
|
+
m.columnKey,
|
|
992
992
|
i
|
|
993
993
|
);
|
|
994
994
|
j._dragInfo = {
|
|
995
|
-
draggedKey:
|
|
996
|
-
targetKey:
|
|
997
|
-
draggedIndex:
|
|
995
|
+
draggedKey: b.columnKey,
|
|
996
|
+
targetKey: m.columnKey,
|
|
997
|
+
draggedIndex: b.index,
|
|
998
998
|
targetIndex: -1
|
|
999
999
|
// будет вычислен в TableHeader если нужно
|
|
1000
1000
|
}, r(j);
|
|
@@ -1003,17 +1003,17 @@ function Zt({
|
|
|
1003
1003
|
activeColumn: s,
|
|
1004
1004
|
isValidDropZone: Y
|
|
1005
1005
|
};
|
|
1006
|
-
return /* @__PURE__ */ l.jsx(
|
|
1007
|
-
|
|
1006
|
+
return /* @__PURE__ */ l.jsx(bt.Provider, { value: ae, children: /* @__PURE__ */ l.jsxs(
|
|
1007
|
+
Nt,
|
|
1008
1008
|
{
|
|
1009
1009
|
sensors: q,
|
|
1010
|
-
collisionDetection:
|
|
1011
|
-
onDragStart:
|
|
1010
|
+
collisionDetection: P,
|
|
1011
|
+
onDragStart: ee,
|
|
1012
1012
|
onDragOver: S,
|
|
1013
|
-
onDragEnd:
|
|
1013
|
+
onDragEnd: W,
|
|
1014
1014
|
children: [
|
|
1015
1015
|
t,
|
|
1016
|
-
/* @__PURE__ */ l.jsx(
|
|
1016
|
+
/* @__PURE__ */ l.jsx(At, { dropAnimation: null, children: s ? /* @__PURE__ */ l.jsx(
|
|
1017
1017
|
"div",
|
|
1018
1018
|
{
|
|
1019
1019
|
style: {
|
|
@@ -1069,24 +1069,24 @@ function Qt({
|
|
|
1069
1069
|
sortIcon: h,
|
|
1070
1070
|
resizeable: E,
|
|
1071
1071
|
draggableColumns: q,
|
|
1072
|
-
preset:
|
|
1073
|
-
headerCellClassName:
|
|
1072
|
+
preset: P,
|
|
1073
|
+
headerCellClassName: N,
|
|
1074
1074
|
headerCellStyle: Z,
|
|
1075
1075
|
headerCellWrapperClassName: re,
|
|
1076
1076
|
headerCellWrapperStyle: Y,
|
|
1077
1077
|
stickyHeader: g,
|
|
1078
|
-
scrollContainerRef:
|
|
1078
|
+
scrollContainerRef: ee,
|
|
1079
1079
|
resizeThrottle: S
|
|
1080
1080
|
}) {
|
|
1081
1081
|
var ie;
|
|
1082
1082
|
if (t.hidden)
|
|
1083
1083
|
return null;
|
|
1084
|
-
const { activeColumn:
|
|
1084
|
+
const { activeColumn: W, isValidDropZone: ae } = Jt(), p = !t.children || t.children.length === 0;
|
|
1085
1085
|
Ye(() => (n == null ? void 0 : n.some((K) => K.children && K.children.length > 0)) || !1, [n]);
|
|
1086
|
-
const _ = q,
|
|
1086
|
+
const _ = q, b = ue((K) => {
|
|
1087
1087
|
if (!n) return null;
|
|
1088
|
-
const ne = (
|
|
1089
|
-
for (const pe of
|
|
1088
|
+
const ne = (L, ce, ye = null) => {
|
|
1089
|
+
for (const pe of L) {
|
|
1090
1090
|
if (pe.key === ce)
|
|
1091
1091
|
return ye;
|
|
1092
1092
|
if (pe.children && pe.children.length > 0) {
|
|
@@ -1097,10 +1097,10 @@ function Qt({
|
|
|
1097
1097
|
return null;
|
|
1098
1098
|
};
|
|
1099
1099
|
return ne(n, K);
|
|
1100
|
-
}, [n])(t.key),
|
|
1100
|
+
}, [n])(t.key), m = t.fixed || (b == null ? void 0 : b.fixed) || !1, R = ue((K) => {
|
|
1101
1101
|
if (!n) return 0;
|
|
1102
|
-
const ne = (
|
|
1103
|
-
for (const pe of
|
|
1102
|
+
const ne = (L, ce, ye = 0) => {
|
|
1103
|
+
for (const pe of L) {
|
|
1104
1104
|
if (pe.key === ce)
|
|
1105
1105
|
return ye;
|
|
1106
1106
|
if (pe.children && pe.children.length > 0) {
|
|
@@ -1112,75 +1112,75 @@ function Qt({
|
|
|
1112
1112
|
};
|
|
1113
1113
|
return ne(n, K);
|
|
1114
1114
|
}, [n])(t.key), {
|
|
1115
|
-
attributes:
|
|
1115
|
+
attributes: M,
|
|
1116
1116
|
listeners: G,
|
|
1117
|
-
setNodeRef:
|
|
1117
|
+
setNodeRef: F,
|
|
1118
1118
|
isDragging: H
|
|
1119
|
-
} =
|
|
1119
|
+
} = zt({
|
|
1120
1120
|
id: `column-${t.key}`,
|
|
1121
1121
|
data: {
|
|
1122
1122
|
type: "table-column",
|
|
1123
1123
|
columnKey: t.key,
|
|
1124
|
-
isFixed:
|
|
1125
|
-
parentKey:
|
|
1126
|
-
level:
|
|
1124
|
+
isFixed: m,
|
|
1125
|
+
parentKey: b == null ? void 0 : b.key,
|
|
1126
|
+
level: R,
|
|
1127
1127
|
index: i,
|
|
1128
|
-
isLeaf:
|
|
1128
|
+
isLeaf: p
|
|
1129
1129
|
// ✅ Добавляем информацию о типе колонки
|
|
1130
1130
|
},
|
|
1131
1131
|
disabled: !_
|
|
1132
1132
|
}), {
|
|
1133
|
-
setNodeRef:
|
|
1133
|
+
setNodeRef: te,
|
|
1134
1134
|
isOver: I
|
|
1135
1135
|
} = Bt({
|
|
1136
1136
|
id: `drop-zone-${t.key}`,
|
|
1137
1137
|
data: {
|
|
1138
1138
|
type: "column-drop-zone",
|
|
1139
1139
|
columnKey: t.key,
|
|
1140
|
-
isFixed:
|
|
1141
|
-
accepts: [
|
|
1142
|
-
isLeaf:
|
|
1140
|
+
isFixed: m,
|
|
1141
|
+
accepts: [m ? "fixed" : "non-fixed"],
|
|
1142
|
+
isLeaf: p
|
|
1143
1143
|
// ✅ Добавляем информацию о типе колонки
|
|
1144
1144
|
},
|
|
1145
1145
|
disabled: !1
|
|
1146
|
-
}),
|
|
1147
|
-
|
|
1148
|
-
}, [
|
|
1149
|
-
if (!
|
|
1146
|
+
}), z = ue((K) => {
|
|
1147
|
+
F(K), te(K);
|
|
1148
|
+
}, [F, te]), V = Ye(() => {
|
|
1149
|
+
if (!W || !I) return !1;
|
|
1150
1150
|
const K = {
|
|
1151
1151
|
type: "column-drop-zone",
|
|
1152
1152
|
columnKey: t.key,
|
|
1153
|
-
isFixed:
|
|
1154
|
-
accepts: [
|
|
1155
|
-
isLeaf:
|
|
1153
|
+
isFixed: m,
|
|
1154
|
+
accepts: [m ? "fixed" : "non-fixed"],
|
|
1155
|
+
isLeaf: p
|
|
1156
1156
|
};
|
|
1157
|
-
return ae(
|
|
1158
|
-
}, [
|
|
1157
|
+
return ae(W, K);
|
|
1158
|
+
}, [W, I, t.key, m, ae, p]), $ = Ye(() => H ? "grabbing" : I && W ? V ? "copy" : "not-allowed" : "default", [H, I, W, V]), le = t.fixed && !t.width ? 200 : t.width, A = t.fixed && !t.minWidth ? 200 : t.minWidth, O = ue(() => {
|
|
1159
1159
|
let K = t.fixedLeft || 0;
|
|
1160
|
-
if (!
|
|
1160
|
+
if (!m)
|
|
1161
1161
|
return K;
|
|
1162
1162
|
for (let ne = 0; ne < i; ne++) {
|
|
1163
|
-
const
|
|
1164
|
-
|
|
1163
|
+
const L = r[ne];
|
|
1164
|
+
L.fixed && !L.hidden && (K += (L.width || L.minWidth || 200) + (L.fixedLeft || 0));
|
|
1165
1165
|
}
|
|
1166
1166
|
return K;
|
|
1167
|
-
}, [t.fixedLeft, r, i,
|
|
1168
|
-
|
|
1169
|
-
if (!
|
|
1167
|
+
}, [t.fixedLeft, r, i, m]), [k, C] = we(() => O());
|
|
1168
|
+
Xe(() => {
|
|
1169
|
+
if (!m) {
|
|
1170
1170
|
C(O());
|
|
1171
1171
|
return;
|
|
1172
1172
|
}
|
|
1173
1173
|
let K = t.fixedLeft || 0;
|
|
1174
1174
|
for (let ne = 0; ne < i; ne++) {
|
|
1175
|
-
const
|
|
1176
|
-
if (
|
|
1177
|
-
const ce =
|
|
1178
|
-
K += Math.floor(ye ?? ce) + (
|
|
1175
|
+
const L = r[ne];
|
|
1176
|
+
if (L.fixed && !L.hidden) {
|
|
1177
|
+
const ce = L.width || L.minWidth || 200, ye = Xt(L.key);
|
|
1178
|
+
K += Math.floor(ye ?? ce) + (L.fixedLeft || 0) - 0.05;
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
1181
|
C(K);
|
|
1182
|
-
}, [t.fixedLeft, t.width, t.minWidth, r, i,
|
|
1183
|
-
const
|
|
1182
|
+
}, [t.fixedLeft, t.width, t.minWidth, r, i, m, O]);
|
|
1183
|
+
const D = ((K) => {
|
|
1184
1184
|
if (K.groupColor)
|
|
1185
1185
|
return K.groupColor;
|
|
1186
1186
|
if (n) {
|
|
@@ -1193,25 +1193,25 @@ function Qt({
|
|
|
1193
1193
|
if (ve) return ve;
|
|
1194
1194
|
}
|
|
1195
1195
|
return null;
|
|
1196
|
-
},
|
|
1197
|
-
return
|
|
1196
|
+
}, L = ne(n, K.key);
|
|
1197
|
+
return L == null ? void 0 : L.groupColor;
|
|
1198
1198
|
}
|
|
1199
1199
|
})(t);
|
|
1200
|
-
let
|
|
1201
|
-
return s.sort_field === t.key && (s.sort_order === "ASC" && (
|
|
1200
|
+
let Q = "currentColor", fe = "currentColor";
|
|
1201
|
+
return s.sort_field === t.key && (s.sort_order === "ASC" && (Q = "#5329FF"), s.sort_order === "DESC" && (fe = "#5329FF")), /* @__PURE__ */ l.jsx(
|
|
1202
1202
|
"th",
|
|
1203
1203
|
{
|
|
1204
|
-
ref:
|
|
1204
|
+
ref: z,
|
|
1205
1205
|
"data-column-key": t.key,
|
|
1206
1206
|
className: `
|
|
1207
1207
|
radar-table__header-cell
|
|
1208
|
-
${
|
|
1209
|
-
${
|
|
1208
|
+
${P ? P + "__header-cell" : ""}
|
|
1209
|
+
${N || ""}
|
|
1210
1210
|
${H ? "dragging" : ""}
|
|
1211
1211
|
${I ? "drag-over" : ""}
|
|
1212
1212
|
${V && I ? "valid-drop-zone" : ""}
|
|
1213
1213
|
${I && !V ? "invalid-drop-zone" : ""}
|
|
1214
|
-
${
|
|
1214
|
+
${p ? "leaf-header" : "group-header"}
|
|
1215
1215
|
${t.className || ""}`,
|
|
1216
1216
|
colSpan: t.colSpan || 1,
|
|
1217
1217
|
rowSpan: t.rowSpan || 1,
|
|
@@ -1223,8 +1223,8 @@ function Qt({
|
|
|
1223
1223
|
left: k,
|
|
1224
1224
|
borderRight: t.fixed && !((ie = r[i + 1]) != null && ie.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1225
1225
|
zIndex: t.fixed ? 2 : "auto",
|
|
1226
|
-
backgroundColor:
|
|
1227
|
-
cursor:
|
|
1226
|
+
backgroundColor: D,
|
|
1227
|
+
cursor: $,
|
|
1228
1228
|
...Z,
|
|
1229
1229
|
...t.style
|
|
1230
1230
|
},
|
|
@@ -1233,7 +1233,7 @@ function Qt({
|
|
|
1233
1233
|
{
|
|
1234
1234
|
className: `
|
|
1235
1235
|
radar-table__header-cell-wrapper
|
|
1236
|
-
${
|
|
1236
|
+
${P ? P + "__header-cell-wrapper" : ""}
|
|
1237
1237
|
${re || ""}
|
|
1238
1238
|
`,
|
|
1239
1239
|
style: Y,
|
|
@@ -1241,8 +1241,8 @@ function Qt({
|
|
|
1241
1241
|
_ && /* @__PURE__ */ l.jsx(
|
|
1242
1242
|
"div",
|
|
1243
1243
|
{
|
|
1244
|
-
className: `radar-table__drag-handle ${H ? "dragging" : ""} ${
|
|
1245
|
-
...
|
|
1244
|
+
className: `radar-table__drag-handle ${H ? "dragging" : ""} ${p ? "" : "group-drag-handle"}`,
|
|
1245
|
+
...M,
|
|
1246
1246
|
...G,
|
|
1247
1247
|
style: { cursor: H ? "grabbing" : "grab" },
|
|
1248
1248
|
children: /* @__PURE__ */ l.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -1261,11 +1261,11 @@ function Qt({
|
|
|
1261
1261
|
title: t.title,
|
|
1262
1262
|
onClick: () => {
|
|
1263
1263
|
const { sort_field: K, sort_order: ne } = s;
|
|
1264
|
-
let
|
|
1264
|
+
let L = {
|
|
1265
1265
|
columnKey: t.key,
|
|
1266
1266
|
direction: "ASC"
|
|
1267
1267
|
};
|
|
1268
|
-
K === t.key ? ne === "ASC" ?
|
|
1268
|
+
K === t.key ? ne === "ASC" ? L.direction = "DESC" : ne === "DESC" && (L.columnKey = void 0, L.direction = void 0) : (L.columnKey = t.key, L.direction = "ASC"), o(L.columnKey, L.direction);
|
|
1269
1269
|
},
|
|
1270
1270
|
style: {
|
|
1271
1271
|
cursor: t.sortable ? "pointer" : "default",
|
|
@@ -1274,14 +1274,14 @@ function Qt({
|
|
|
1274
1274
|
children: t.title
|
|
1275
1275
|
}
|
|
1276
1276
|
) }),
|
|
1277
|
-
t.sortable && !h &&
|
|
1277
|
+
t.sortable && !h && p && /* @__PURE__ */ l.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
|
|
1278
1278
|
/* @__PURE__ */ l.jsx(
|
|
1279
1279
|
"button",
|
|
1280
1280
|
{
|
|
1281
1281
|
className: "radar-table__sort-button",
|
|
1282
1282
|
onClick: (K) => o(t.key, "ASC"),
|
|
1283
1283
|
title: `Сортировать по ${t.title}`,
|
|
1284
|
-
children: /* @__PURE__ */ l.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ l.jsx("path", { fill:
|
|
1284
|
+
children: /* @__PURE__ */ l.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ l.jsx("path", { fill: Q, d: "M4.99264 0.21967C5.28553 -0.0732233 5.76041 -0.0732233 6.0533 0.21967L10.8263 4.99264C11.1192 5.28553 11.1192 5.76041 10.8263 6.0533C10.5334 6.34619 10.0585 6.34619 9.76561 6.0533L6.27297 2.56066L5.5 1.78769L4.77297 2.56066L1.28033 6.0533C0.987437 6.34619 0.512563 6.34619 0.21967 6.0533C-0.0732234 5.76041 -0.0732234 5.28553 0.21967 4.99264L4.99264 0.21967Z" }) })
|
|
1285
1285
|
}
|
|
1286
1286
|
),
|
|
1287
1287
|
/* @__PURE__ */ l.jsx(
|
|
@@ -1294,16 +1294,16 @@ function Qt({
|
|
|
1294
1294
|
}
|
|
1295
1295
|
)
|
|
1296
1296
|
] }),
|
|
1297
|
-
t.sortable && h &&
|
|
1297
|
+
t.sortable && h && p && h(s.sort_field, s.sort_order),
|
|
1298
1298
|
t.tooltipText && /* @__PURE__ */ l.jsx(Yt, { text: t.tooltipText, children: t.tooltipIcon }),
|
|
1299
|
-
E &&
|
|
1299
|
+
E && p && /* @__PURE__ */ l.jsx(
|
|
1300
1300
|
Ut,
|
|
1301
1301
|
{
|
|
1302
1302
|
column: t,
|
|
1303
1303
|
currWidth: le,
|
|
1304
|
-
currMinWidth:
|
|
1304
|
+
currMinWidth: A,
|
|
1305
1305
|
onResize: a,
|
|
1306
|
-
scrollContainerRef:
|
|
1306
|
+
scrollContainerRef: ee,
|
|
1307
1307
|
onResizeStart: c,
|
|
1308
1308
|
onResizeFrame: f,
|
|
1309
1309
|
onResizeEnd: w
|
|
@@ -1315,7 +1315,7 @@ function Qt({
|
|
|
1315
1315
|
}
|
|
1316
1316
|
);
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function ct({
|
|
1319
1319
|
config: t,
|
|
1320
1320
|
fullConfig: i,
|
|
1321
1321
|
onSort: r,
|
|
@@ -1329,82 +1329,82 @@ function lt({
|
|
|
1329
1329
|
draggableColumns: h,
|
|
1330
1330
|
preset: E,
|
|
1331
1331
|
headerClassName: q,
|
|
1332
|
-
headerStyle:
|
|
1333
|
-
headerRowClassName:
|
|
1332
|
+
headerStyle: P,
|
|
1333
|
+
headerRowClassName: N,
|
|
1334
1334
|
headerRowStyle: Z,
|
|
1335
1335
|
headerCellClassName: re,
|
|
1336
1336
|
headerCellStyle: Y,
|
|
1337
1337
|
headerCellWrapperClassName: g,
|
|
1338
|
-
headerCellWrapperStyle:
|
|
1338
|
+
headerCellWrapperStyle: ee,
|
|
1339
1339
|
stickyHeader: S,
|
|
1340
|
-
scrollContainerRef:
|
|
1340
|
+
scrollContainerRef: W,
|
|
1341
1341
|
sorting: ae,
|
|
1342
|
-
defaultSorting:
|
|
1342
|
+
defaultSorting: p,
|
|
1343
1343
|
resizeThrottle: _
|
|
1344
1344
|
}) {
|
|
1345
|
-
const [
|
|
1346
|
-
|
|
1347
|
-
!
|
|
1348
|
-
}, [
|
|
1349
|
-
const G = ue((
|
|
1350
|
-
const { sort_field:
|
|
1351
|
-
let
|
|
1352
|
-
sort_field:
|
|
1345
|
+
const [y, b] = we(() => p || { sort_field: void 0, sort_order: void 0 }), [m, j] = we(t), R = ae !== void 0, M = R ? ae : y;
|
|
1346
|
+
Ie(() => {
|
|
1347
|
+
!R && p && b(p);
|
|
1348
|
+
}, [p, R]);
|
|
1349
|
+
const G = ue((F, H) => {
|
|
1350
|
+
const { sort_field: te, sort_order: I } = M;
|
|
1351
|
+
let z = {
|
|
1352
|
+
sort_field: F,
|
|
1353
1353
|
sort_order: H
|
|
1354
1354
|
};
|
|
1355
|
-
|
|
1355
|
+
te === F && I === H && (z = {
|
|
1356
1356
|
sort_field: void 0,
|
|
1357
1357
|
sort_order: void 0
|
|
1358
|
-
}),
|
|
1359
|
-
}, [
|
|
1360
|
-
return
|
|
1361
|
-
if (t.some((
|
|
1358
|
+
}), R || b(z), r == null || r(z.sort_field, z.sort_order);
|
|
1359
|
+
}, [M, r, R]);
|
|
1360
|
+
return Ie(() => {
|
|
1361
|
+
if (t.some((F) => F.children || !w)) {
|
|
1362
1362
|
j(t);
|
|
1363
1363
|
return;
|
|
1364
1364
|
} else {
|
|
1365
|
-
const
|
|
1366
|
-
const H =
|
|
1365
|
+
const F = () => {
|
|
1366
|
+
const H = W == null ? void 0 : W.current;
|
|
1367
1367
|
if (!H) return;
|
|
1368
|
-
const
|
|
1369
|
-
if (I >
|
|
1368
|
+
const te = H.clientWidth, I = t.reduce((V, $) => V + (($ == null ? void 0 : $.width) ?? 0), 0);
|
|
1369
|
+
if (I > te) {
|
|
1370
1370
|
j(t);
|
|
1371
1371
|
return;
|
|
1372
1372
|
}
|
|
1373
|
-
const
|
|
1374
|
-
const
|
|
1373
|
+
const z = t.map((V) => {
|
|
1374
|
+
const $ = ((V == null ? void 0 : V.width) ?? 0) / I, le = Math.floor(te * $);
|
|
1375
1375
|
return V.width = Math.round(le), V.maxWidth = le * 2, V;
|
|
1376
1376
|
});
|
|
1377
|
-
j([...
|
|
1377
|
+
j([...z]), requestAnimationFrame(() => {
|
|
1378
1378
|
const V = (k) => {
|
|
1379
1379
|
var C;
|
|
1380
1380
|
return typeof window < "u" && ((C = window.CSS) != null && C.escape) ? window.CSS.escape(k) : k.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
1381
|
-
},
|
|
1382
|
-
if (
|
|
1383
|
-
|
|
1381
|
+
}, $ = H.querySelector("table");
|
|
1382
|
+
if (!$) return;
|
|
1383
|
+
z.forEach((k) => {
|
|
1384
1384
|
if (k.hidden) return;
|
|
1385
|
-
const C = V(k.key), X = k.width || k.minWidth || 200,
|
|
1386
|
-
|
|
1385
|
+
const C = V(k.key), X = k.width || k.minWidth || 200, D = $.querySelector(`th[data-column-key="${C}"]`);
|
|
1386
|
+
D && (D.style.width = `${X}px`, D.style.minWidth = `${X}px`), $.querySelectorAll(`td[data-column-key="${C}"]`).forEach((fe) => {
|
|
1387
1387
|
const ie = fe;
|
|
1388
1388
|
ie.style.width = `${X}px`, ie.style.minWidth = `${X}px`;
|
|
1389
1389
|
});
|
|
1390
1390
|
});
|
|
1391
1391
|
const le = (k) => window.getComputedStyle(k).position === "sticky", O = Array.from(
|
|
1392
|
-
|
|
1392
|
+
$.querySelectorAll("th.radar-table__header-cell.leaf-header")
|
|
1393
1393
|
).filter((k) => le(k));
|
|
1394
1394
|
if (O.length > 0) {
|
|
1395
1395
|
let k = 0;
|
|
1396
1396
|
O.forEach((C, X) => {
|
|
1397
1397
|
if (X === 0) {
|
|
1398
|
-
const
|
|
1398
|
+
const Q = C.getAttribute("data-column-key"), fe = z.find((ie) => ie.key === Q);
|
|
1399
1399
|
k = (fe == null ? void 0 : fe.fixedLeft) || 0, C.style.left = `${k}px`;
|
|
1400
1400
|
} else {
|
|
1401
|
-
const
|
|
1402
|
-
k += Math.floor(
|
|
1401
|
+
const Q = O[X - 1].getBoundingClientRect().width;
|
|
1402
|
+
k += Math.floor(Q), C.style.left = `${k}px`;
|
|
1403
1403
|
}
|
|
1404
|
-
const
|
|
1405
|
-
if (
|
|
1406
|
-
const
|
|
1407
|
-
|
|
1404
|
+
const D = C.getAttribute("data-column-key");
|
|
1405
|
+
if (D) {
|
|
1406
|
+
const Q = V(D);
|
|
1407
|
+
$.querySelectorAll(`td[data-column-key="${Q}"]`).forEach((ie) => {
|
|
1408
1408
|
const K = ie;
|
|
1409
1409
|
window.getComputedStyle(K).position === "sticky" && (K.style.left = `${C.style.left}`);
|
|
1410
1410
|
});
|
|
@@ -1413,21 +1413,21 @@ function lt({
|
|
|
1413
1413
|
}
|
|
1414
1414
|
});
|
|
1415
1415
|
};
|
|
1416
|
-
return
|
|
1416
|
+
return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
|
|
1417
1417
|
}
|
|
1418
|
-
}, [t,
|
|
1418
|
+
}, [t, W, w]), /* @__PURE__ */ l.jsx(
|
|
1419
1419
|
"tr",
|
|
1420
1420
|
{
|
|
1421
|
-
className: `radar-table__header-row ${E ? E + "__header-row" : ""} ${
|
|
1421
|
+
className: `radar-table__header-row ${E ? E + "__header-row" : ""} ${N || ""}`,
|
|
1422
1422
|
style: Z,
|
|
1423
|
-
children:
|
|
1423
|
+
children: m == null ? void 0 : m.map((F, H) => /* @__PURE__ */ l.jsx(
|
|
1424
1424
|
Qt,
|
|
1425
1425
|
{
|
|
1426
|
-
column:
|
|
1426
|
+
column: F,
|
|
1427
1427
|
index: H,
|
|
1428
1428
|
config: t,
|
|
1429
1429
|
fullConfig: i,
|
|
1430
|
-
sorting:
|
|
1430
|
+
sorting: M,
|
|
1431
1431
|
onSort: G,
|
|
1432
1432
|
onResize: n,
|
|
1433
1433
|
onResizeStart: s,
|
|
@@ -1440,12 +1440,12 @@ function lt({
|
|
|
1440
1440
|
headerCellClassName: re,
|
|
1441
1441
|
headerCellStyle: Y,
|
|
1442
1442
|
headerCellWrapperClassName: g,
|
|
1443
|
-
headerCellWrapperStyle:
|
|
1443
|
+
headerCellWrapperStyle: ee,
|
|
1444
1444
|
stickyHeader: S,
|
|
1445
|
-
scrollContainerRef:
|
|
1445
|
+
scrollContainerRef: W,
|
|
1446
1446
|
resizeThrottle: _
|
|
1447
1447
|
},
|
|
1448
|
-
|
|
1448
|
+
F.key
|
|
1449
1449
|
))
|
|
1450
1450
|
}
|
|
1451
1451
|
);
|
|
@@ -1464,106 +1464,106 @@ function er(t) {
|
|
|
1464
1464
|
headerCellWrapperClassName: h,
|
|
1465
1465
|
headerCellWrapperStyle: E,
|
|
1466
1466
|
onResize: q,
|
|
1467
|
-
onColumnReorder:
|
|
1468
|
-
sorting:
|
|
1467
|
+
onColumnReorder: P,
|
|
1468
|
+
sorting: N,
|
|
1469
1469
|
defaultSorting: Z
|
|
1470
1470
|
} = t, re = i.some((S) => S.children && S.children.length > 0), Y = Ye(() => {
|
|
1471
1471
|
if (!re)
|
|
1472
1472
|
return null;
|
|
1473
|
-
const S = {},
|
|
1474
|
-
S[
|
|
1475
|
-
_.hidden || (S[
|
|
1473
|
+
const S = {}, W = (ae, p = 0) => {
|
|
1474
|
+
S[p] || (S[p] = []), ae.forEach((_) => {
|
|
1475
|
+
_.hidden || (S[p].push(_), _.children && _.children.length > 0 && W(_.children, p + 1));
|
|
1476
1476
|
});
|
|
1477
1477
|
};
|
|
1478
|
-
return
|
|
1479
|
-
}, [i, re]), g = ue((S,
|
|
1478
|
+
return W(i), S;
|
|
1479
|
+
}, [i, re]), g = ue((S, W) => {
|
|
1480
1480
|
if (!q) return;
|
|
1481
|
-
const ae = (
|
|
1482
|
-
for (const
|
|
1483
|
-
if (
|
|
1484
|
-
if (
|
|
1485
|
-
const j = ae(
|
|
1481
|
+
const ae = (y, b) => {
|
|
1482
|
+
for (const m of y) {
|
|
1483
|
+
if (m.key === b) return m;
|
|
1484
|
+
if (m.children) {
|
|
1485
|
+
const j = ae(m.children, b);
|
|
1486
1486
|
if (j) return j;
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
return null;
|
|
1490
|
-
},
|
|
1491
|
-
if (!
|
|
1492
|
-
return [
|
|
1493
|
-
const
|
|
1494
|
-
return
|
|
1495
|
-
|
|
1496
|
-
}),
|
|
1490
|
+
}, p = (y) => {
|
|
1491
|
+
if (!y.children || y.children.length === 0)
|
|
1492
|
+
return [y];
|
|
1493
|
+
const b = [];
|
|
1494
|
+
return y.children.forEach((m) => {
|
|
1495
|
+
m.hidden || b.push(...p(m));
|
|
1496
|
+
}), b;
|
|
1497
1497
|
}, _ = ae(i, S);
|
|
1498
1498
|
if (_)
|
|
1499
1499
|
if (_.children && _.children.length > 0) {
|
|
1500
|
-
const
|
|
1501
|
-
if (
|
|
1502
|
-
const
|
|
1503
|
-
|
|
1504
|
-
const
|
|
1505
|
-
q(j.key,
|
|
1500
|
+
const y = p(_);
|
|
1501
|
+
if (y.length > 0) {
|
|
1502
|
+
const b = y.reduce((j, R) => j + (R.width || R.minWidth || 200), 0), m = W / b;
|
|
1503
|
+
y.forEach((j) => {
|
|
1504
|
+
const R = Math.max(50, Math.round((j.width || j.minWidth || 200) * m));
|
|
1505
|
+
q(j.key, R);
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
1508
|
} else
|
|
1509
|
-
q(S,
|
|
1510
|
-
}, [i, q]),
|
|
1511
|
-
if (!
|
|
1509
|
+
q(S, W);
|
|
1510
|
+
}, [i, q]), ee = ue((S) => {
|
|
1511
|
+
if (!P) return;
|
|
1512
1512
|
if (!re) {
|
|
1513
|
-
|
|
1513
|
+
P(S);
|
|
1514
1514
|
return;
|
|
1515
1515
|
}
|
|
1516
|
-
const
|
|
1517
|
-
for (let X = 0; X <
|
|
1518
|
-
const
|
|
1519
|
-
if (
|
|
1516
|
+
const W = (A, O, k = [], C = null) => {
|
|
1517
|
+
for (let X = 0; X < A.length; X++) {
|
|
1518
|
+
const D = A[X], Q = [...k, X];
|
|
1519
|
+
if (D.key === O)
|
|
1520
1520
|
return {
|
|
1521
|
-
column:
|
|
1521
|
+
column: D,
|
|
1522
1522
|
parent: C,
|
|
1523
|
-
path:
|
|
1523
|
+
path: Q,
|
|
1524
1524
|
level: k.length
|
|
1525
1525
|
};
|
|
1526
|
-
if (
|
|
1527
|
-
const fe =
|
|
1526
|
+
if (D.children && D.children.length > 0) {
|
|
1527
|
+
const fe = W(D.children, O, Q, D);
|
|
1528
1528
|
if (fe)
|
|
1529
1529
|
return fe;
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
1532
|
return null;
|
|
1533
1533
|
};
|
|
1534
|
-
if (!Object.values(Y).find((
|
|
1535
|
-
if (
|
|
1536
|
-
const O =
|
|
1534
|
+
if (!Object.values(Y).find((A) => {
|
|
1535
|
+
if (A.length !== S.length) return !1;
|
|
1536
|
+
const O = A.map((C) => C.key).sort(), k = S.map((C) => C.key).sort();
|
|
1537
1537
|
return JSON.stringify(O) === JSON.stringify(k);
|
|
1538
1538
|
}))
|
|
1539
1539
|
return;
|
|
1540
|
-
const
|
|
1541
|
-
if (!(
|
|
1540
|
+
const p = S._dragInfo;
|
|
1541
|
+
if (!(p != null && p.draggedKey) || !(p != null && p.targetKey))
|
|
1542
1542
|
return;
|
|
1543
|
-
const { draggedKey: _, targetKey:
|
|
1544
|
-
if (!
|
|
1545
|
-
const { column: j, parent:
|
|
1546
|
-
if (G !== I ||
|
|
1543
|
+
const { draggedKey: _, targetKey: y } = p, b = W(i, _), m = W(i, y);
|
|
1544
|
+
if (!b || !m) return;
|
|
1545
|
+
const { column: j, parent: R, path: M, level: G } = b, { column: F, parent: H, path: te, level: I } = m, z = (A, O) => A.fixed || (O == null ? void 0 : O.fixed) || !1, V = z(j, R), $ = z(F, H);
|
|
1546
|
+
if (G !== I || R !== H || R && H && R.key !== H.key || V !== $)
|
|
1547
1547
|
return;
|
|
1548
1548
|
const le = JSON.parse(JSON.stringify(i));
|
|
1549
1549
|
if (G === 0) {
|
|
1550
|
-
const
|
|
1550
|
+
const A = M[0], O = te[0], [k] = le.splice(A, 1);
|
|
1551
1551
|
le.splice(O, 0, k);
|
|
1552
1552
|
} else {
|
|
1553
|
-
const
|
|
1553
|
+
const A = M.slice(0, -1);
|
|
1554
1554
|
let O = le;
|
|
1555
|
-
for (let
|
|
1556
|
-
|
|
1555
|
+
for (let D = 0; D < A.length; D++)
|
|
1556
|
+
D === 0 ? O = O[A[D]] : O = O.children[A[D]];
|
|
1557
1557
|
if (!O || !O.children)
|
|
1558
1558
|
return;
|
|
1559
|
-
const k =
|
|
1559
|
+
const k = M[M.length - 1], C = te[te.length - 1];
|
|
1560
1560
|
if (k < 0 || k >= O.children.length || C < 0 || C >= O.children.length)
|
|
1561
1561
|
return;
|
|
1562
1562
|
const [X] = O.children.splice(k, 1);
|
|
1563
1563
|
O.children.splice(C, 0, X);
|
|
1564
1564
|
}
|
|
1565
|
-
|
|
1566
|
-
}, [i,
|
|
1565
|
+
P(le);
|
|
1566
|
+
}, [i, P, Y]);
|
|
1567
1567
|
return re ? /* @__PURE__ */ l.jsx(
|
|
1568
1568
|
"thead",
|
|
1569
1569
|
{
|
|
@@ -1574,18 +1574,18 @@ function er(t) {
|
|
|
1574
1574
|
...s
|
|
1575
1575
|
},
|
|
1576
1576
|
children: Object.keys(Y).map((S) => {
|
|
1577
|
-
const
|
|
1577
|
+
const W = Y[parseInt(S)], ae = parseInt(S);
|
|
1578
1578
|
return /* @__PURE__ */ l.jsx(
|
|
1579
|
-
|
|
1579
|
+
ct,
|
|
1580
1580
|
{
|
|
1581
|
-
config:
|
|
1581
|
+
config: W,
|
|
1582
1582
|
fullConfig: i,
|
|
1583
1583
|
onSort: t.onSort,
|
|
1584
1584
|
onResize: g,
|
|
1585
1585
|
onResizeStart: t.onResizeStart,
|
|
1586
1586
|
onResizeFrame: t.onResizeFrame,
|
|
1587
1587
|
onResizeEnd: t.onResizeEnd,
|
|
1588
|
-
onColumnReorder:
|
|
1588
|
+
onColumnReorder: ee,
|
|
1589
1589
|
resizeable: t.resizeable,
|
|
1590
1590
|
draggableColumns: t.draggableColumns,
|
|
1591
1591
|
preset: r,
|
|
@@ -1604,7 +1604,7 @@ function er(t) {
|
|
|
1604
1604
|
stickyHeader: o,
|
|
1605
1605
|
sortIcon: t.sortIcon,
|
|
1606
1606
|
scrollContainerRef: t.scrollContainerRef,
|
|
1607
|
-
sorting:
|
|
1607
|
+
sorting: N,
|
|
1608
1608
|
defaultSorting: Z,
|
|
1609
1609
|
resizeThrottle: t.resizeThrottle
|
|
1610
1610
|
},
|
|
@@ -1621,7 +1621,7 @@ function er(t) {
|
|
|
1621
1621
|
top: o && typeof o == "number" ? o : 0,
|
|
1622
1622
|
...s
|
|
1623
1623
|
},
|
|
1624
|
-
children: /* @__PURE__ */ l.jsx(
|
|
1624
|
+
children: /* @__PURE__ */ l.jsx(ct, { ...t, fullConfig: i, onResize: g, onResizeStart: t.onResizeStart, onResizeFrame: t.onResizeFrame, onResizeEnd: t.onResizeEnd, onColumnReorder: ee, scrollContainerRef: t.scrollContainerRef, sorting: N, defaultSorting: Z, resizeThrottle: t.resizeThrottle })
|
|
1625
1625
|
}
|
|
1626
1626
|
);
|
|
1627
1627
|
}
|
|
@@ -1637,25 +1637,25 @@ const tr = (t, i) => {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
return r;
|
|
1639
1639
|
};
|
|
1640
|
-
function
|
|
1640
|
+
function Ae(t, i, r) {
|
|
1641
1641
|
let n = r.initialDeps ?? [], s;
|
|
1642
1642
|
function o() {
|
|
1643
1643
|
var a, c, f, w;
|
|
1644
1644
|
let h;
|
|
1645
1645
|
r.key && ((a = r.debug) != null && a.call(r)) && (h = Date.now());
|
|
1646
1646
|
const E = t();
|
|
1647
|
-
if (!(E.length !== n.length || E.some((
|
|
1647
|
+
if (!(E.length !== n.length || E.some((N, Z) => n[Z] !== N)))
|
|
1648
1648
|
return s;
|
|
1649
1649
|
n = E;
|
|
1650
|
-
let
|
|
1651
|
-
if (r.key && ((c = r.debug) != null && c.call(r)) && (
|
|
1652
|
-
const
|
|
1653
|
-
for (g = String(g); g.length <
|
|
1650
|
+
let P;
|
|
1651
|
+
if (r.key && ((c = r.debug) != null && c.call(r)) && (P = Date.now()), s = i(...E), r.key && ((f = r.debug) != null && f.call(r))) {
|
|
1652
|
+
const N = Math.round((Date.now() - h) * 100) / 100, Z = Math.round((Date.now() - P) * 100) / 100, re = Z / 16, Y = (g, ee) => {
|
|
1653
|
+
for (g = String(g); g.length < ee; )
|
|
1654
1654
|
g = " " + g;
|
|
1655
1655
|
return g;
|
|
1656
1656
|
};
|
|
1657
1657
|
console.info(
|
|
1658
|
-
`%c⏱ ${Y(Z, 5)} /${Y(
|
|
1658
|
+
`%c⏱ ${Y(Z, 5)} /${Y(N, 5)} ms`,
|
|
1659
1659
|
`
|
|
1660
1660
|
font-size: .6rem;
|
|
1661
1661
|
font-weight: bold;
|
|
@@ -1672,7 +1672,7 @@ function Ne(t, i, r) {
|
|
|
1672
1672
|
n = a;
|
|
1673
1673
|
}, o;
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function dt(t, i) {
|
|
1676
1676
|
if (t === void 0)
|
|
1677
1677
|
throw new Error("Unexpected undefined");
|
|
1678
1678
|
return t;
|
|
@@ -1682,7 +1682,7 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
|
|
|
1682
1682
|
return function(...s) {
|
|
1683
1683
|
t.clearTimeout(n), n = t.setTimeout(() => i.apply(this, s), r);
|
|
1684
1684
|
};
|
|
1685
|
-
},
|
|
1685
|
+
}, ut = (t) => {
|
|
1686
1686
|
const { offsetWidth: i, offsetHeight: r } = t;
|
|
1687
1687
|
return { width: i, height: r };
|
|
1688
1688
|
}, sr = (t) => t, ir = (t) => {
|
|
@@ -1701,7 +1701,7 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
|
|
|
1701
1701
|
const { width: c, height: f } = a;
|
|
1702
1702
|
i({ width: Math.round(c), height: Math.round(f) });
|
|
1703
1703
|
};
|
|
1704
|
-
if (s(
|
|
1704
|
+
if (s(ut(r)), !n.ResizeObserver)
|
|
1705
1705
|
return () => {
|
|
1706
1706
|
};
|
|
1707
1707
|
const o = new n.ResizeObserver((a) => {
|
|
@@ -1714,16 +1714,16 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
|
|
|
1714
1714
|
return;
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
|
-
s(
|
|
1717
|
+
s(ut(r));
|
|
1718
1718
|
};
|
|
1719
1719
|
t.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(c) : c();
|
|
1720
1720
|
});
|
|
1721
1721
|
return o.observe(r, { box: "border-box" }), () => {
|
|
1722
1722
|
o.unobserve(r);
|
|
1723
1723
|
};
|
|
1724
|
-
},
|
|
1724
|
+
}, ft = {
|
|
1725
1725
|
passive: !0
|
|
1726
|
-
},
|
|
1726
|
+
}, ht = typeof window > "u" ? !0 : "onscrollend" in window, ar = (t, i) => {
|
|
1727
1727
|
const r = t.scrollElement;
|
|
1728
1728
|
if (!r)
|
|
1729
1729
|
return;
|
|
@@ -1731,7 +1731,7 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
|
|
|
1731
1731
|
if (!n)
|
|
1732
1732
|
return;
|
|
1733
1733
|
let s = 0;
|
|
1734
|
-
const o = t.options.useScrollendEvent &&
|
|
1734
|
+
const o = t.options.useScrollendEvent && ht ? () => {
|
|
1735
1735
|
} : nr(
|
|
1736
1736
|
n,
|
|
1737
1737
|
() => {
|
|
@@ -1742,9 +1742,9 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
|
|
|
1742
1742
|
const { horizontal: E, isRtl: q } = t.options;
|
|
1743
1743
|
s = E ? r.scrollLeft * (q && -1 || 1) : r.scrollTop, o(), i(s, h);
|
|
1744
1744
|
}, c = a(!0), f = a(!1);
|
|
1745
|
-
f(), r.addEventListener("scroll", c,
|
|
1746
|
-
const w = t.options.useScrollendEvent &&
|
|
1747
|
-
return w && r.addEventListener("scrollend", f,
|
|
1745
|
+
f(), r.addEventListener("scroll", c, ft);
|
|
1746
|
+
const w = t.options.useScrollendEvent && ht;
|
|
1747
|
+
return w && r.addEventListener("scrollend", f, ft), () => {
|
|
1748
1748
|
r.removeEventListener("scroll", c), w && r.removeEventListener("scrollend", f);
|
|
1749
1749
|
};
|
|
1750
1750
|
}, lr = (t, i, r) => {
|
|
@@ -1826,7 +1826,7 @@ class dr {
|
|
|
1826
1826
|
}, this.notify = (r) => {
|
|
1827
1827
|
var n, s;
|
|
1828
1828
|
(s = (n = this.options).onChange) == null || s.call(n, this, r);
|
|
1829
|
-
}, this.maybeNotify =
|
|
1829
|
+
}, this.maybeNotify = Ae(
|
|
1830
1830
|
() => (this.calculateRange(), [
|
|
1831
1831
|
this.isScrolling,
|
|
1832
1832
|
this.range ? this.range.startIndex : null,
|
|
@@ -1884,7 +1884,7 @@ class dr {
|
|
|
1884
1884
|
break;
|
|
1885
1885
|
}
|
|
1886
1886
|
return o.size === this.options.lanes ? Array.from(o.values()).sort((a, c) => a.end === c.end ? a.index - c.index : a.end - c.end)[0] : void 0;
|
|
1887
|
-
}, this.getMeasurementOptions =
|
|
1887
|
+
}, this.getMeasurementOptions = Ae(
|
|
1888
1888
|
() => [
|
|
1889
1889
|
this.options.count,
|
|
1890
1890
|
this.options.paddingStart,
|
|
@@ -1902,7 +1902,7 @@ class dr {
|
|
|
1902
1902
|
{
|
|
1903
1903
|
key: !1
|
|
1904
1904
|
}
|
|
1905
|
-
), this.getMeasurements =
|
|
1905
|
+
), this.getMeasurements = Ae(
|
|
1906
1906
|
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
1907
1907
|
({ count: r, paddingStart: n, scrollMargin: s, getItemKey: o, enabled: a }, c) => {
|
|
1908
1908
|
if (!a)
|
|
@@ -1914,10 +1914,10 @@ class dr {
|
|
|
1914
1914
|
this.pendingMeasuredCacheIndexes = [];
|
|
1915
1915
|
const w = this.measurementsCache.slice(0, f);
|
|
1916
1916
|
for (let h = f; h < r; h++) {
|
|
1917
|
-
const E = o(h), q = this.options.lanes === 1 ? w[h - 1] : this.getFurthestMeasurement(w, h),
|
|
1917
|
+
const E = o(h), q = this.options.lanes === 1 ? w[h - 1] : this.getFurthestMeasurement(w, h), P = q ? q.end + this.options.gap : n + s, N = c.get(E), Z = typeof N == "number" ? N : this.options.estimateSize(h), re = P + Z, Y = q ? q.lane : h % this.options.lanes;
|
|
1918
1918
|
w[h] = {
|
|
1919
1919
|
index: h,
|
|
1920
|
-
start:
|
|
1920
|
+
start: P,
|
|
1921
1921
|
size: Z,
|
|
1922
1922
|
end: re,
|
|
1923
1923
|
key: E,
|
|
@@ -1930,7 +1930,7 @@ class dr {
|
|
|
1930
1930
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
1931
1931
|
debug: () => this.options.debug
|
|
1932
1932
|
}
|
|
1933
|
-
), this.calculateRange =
|
|
1933
|
+
), this.calculateRange = Ae(
|
|
1934
1934
|
() => [
|
|
1935
1935
|
this.getMeasurements(),
|
|
1936
1936
|
this.getSize(),
|
|
@@ -1947,7 +1947,7 @@ class dr {
|
|
|
1947
1947
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
1948
1948
|
debug: () => this.options.debug
|
|
1949
1949
|
}
|
|
1950
|
-
), this.getVirtualIndexes =
|
|
1950
|
+
), this.getVirtualIndexes = Ae(
|
|
1951
1951
|
() => {
|
|
1952
1952
|
let r = null, n = null;
|
|
1953
1953
|
const s = this.calculateRange();
|
|
@@ -1997,7 +1997,7 @@ class dr {
|
|
|
1997
1997
|
return;
|
|
1998
1998
|
}
|
|
1999
1999
|
this._measureElement(r, void 0);
|
|
2000
|
-
}, this.getVirtualItems =
|
|
2000
|
+
}, this.getVirtualItems = Ae(
|
|
2001
2001
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
2002
2002
|
(r, n) => {
|
|
2003
2003
|
const s = [];
|
|
@@ -2014,11 +2014,11 @@ class dr {
|
|
|
2014
2014
|
), this.getVirtualItemForOffset = (r) => {
|
|
2015
2015
|
const n = this.getMeasurements();
|
|
2016
2016
|
if (n.length !== 0)
|
|
2017
|
-
return
|
|
2018
|
-
n[
|
|
2017
|
+
return dt(
|
|
2018
|
+
n[xt(
|
|
2019
2019
|
0,
|
|
2020
2020
|
n.length - 1,
|
|
2021
|
-
(s) =>
|
|
2021
|
+
(s) => dt(n[s]).start,
|
|
2022
2022
|
r
|
|
2023
2023
|
)]
|
|
2024
2024
|
);
|
|
@@ -2066,12 +2066,12 @@ class dr {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
const [E, q] = h;
|
|
2068
2068
|
this._scrollToOffset(E, { adjustments: void 0, behavior: s }), this.targetWindow.requestAnimationFrame(() => {
|
|
2069
|
-
const
|
|
2070
|
-
if (!
|
|
2069
|
+
const P = this.getScrollOffset(), N = this.getOffsetForIndex(r, q);
|
|
2070
|
+
if (!N) {
|
|
2071
2071
|
console.warn("Failed to get offset for index:", r);
|
|
2072
2072
|
return;
|
|
2073
2073
|
}
|
|
2074
|
-
rr(
|
|
2074
|
+
rr(N[0], P) || f(q);
|
|
2075
2075
|
});
|
|
2076
2076
|
}, f = (w) => {
|
|
2077
2077
|
this.targetWindow && (o++, o < a ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", o, a), this.targetWindow.requestAnimationFrame(() => c(w))) : console.warn(
|
|
@@ -2117,7 +2117,7 @@ class dr {
|
|
|
2117
2117
|
}, this.setOptions(i);
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
|
-
const
|
|
2120
|
+
const xt = (t, i, r, n) => {
|
|
2121
2121
|
for (; t <= i; ) {
|
|
2122
2122
|
const s = (t + i) / 2 | 0, o = r(s);
|
|
2123
2123
|
if (o < n)
|
|
@@ -2141,7 +2141,7 @@ function ur({
|
|
|
2141
2141
|
startIndex: 0,
|
|
2142
2142
|
endIndex: s
|
|
2143
2143
|
};
|
|
2144
|
-
let a =
|
|
2144
|
+
let a = xt(
|
|
2145
2145
|
0,
|
|
2146
2146
|
s,
|
|
2147
2147
|
o,
|
|
@@ -2165,7 +2165,7 @@ function ur({
|
|
|
2165
2165
|
}
|
|
2166
2166
|
return { startIndex: a, endIndex: c };
|
|
2167
2167
|
}
|
|
2168
|
-
const
|
|
2168
|
+
const gt = typeof document < "u" ? Je.useLayoutEffect : Je.useEffect;
|
|
2169
2169
|
function fr(t) {
|
|
2170
2170
|
const i = Je.useReducer(() => ({}), {})[1], r = {
|
|
2171
2171
|
...t,
|
|
@@ -2176,7 +2176,7 @@ function fr(t) {
|
|
|
2176
2176
|
}, [n] = Je.useState(
|
|
2177
2177
|
() => new dr(r)
|
|
2178
2178
|
);
|
|
2179
|
-
return n.setOptions(r),
|
|
2179
|
+
return n.setOptions(r), gt(() => n._didMount(), []), gt(() => n._willUpdate()), n;
|
|
2180
2180
|
}
|
|
2181
2181
|
function hr(t) {
|
|
2182
2182
|
return fr({
|
|
@@ -2208,57 +2208,57 @@ function yr({
|
|
|
2208
2208
|
defaultExpandedRowKeys: h,
|
|
2209
2209
|
onExpandedRowsChange: E,
|
|
2210
2210
|
indentSize: q,
|
|
2211
|
-
expandIcon:
|
|
2212
|
-
bodyClassName:
|
|
2211
|
+
expandIcon: P,
|
|
2212
|
+
bodyClassName: N,
|
|
2213
2213
|
bodyStyle: Z,
|
|
2214
2214
|
bodyRowClassName: re,
|
|
2215
2215
|
bodyRowStyle: Y,
|
|
2216
2216
|
bodyCellClassName: g,
|
|
2217
|
-
bodyCellStyle:
|
|
2217
|
+
bodyCellStyle: ee,
|
|
2218
2218
|
bodyCellWrapperClassName: S,
|
|
2219
|
-
bodyCellWrapperStyle:
|
|
2219
|
+
bodyCellWrapperStyle: W,
|
|
2220
2220
|
noDataRender: ae,
|
|
2221
|
-
scrollContainerRef:
|
|
2221
|
+
scrollContainerRef: p,
|
|
2222
2222
|
recalculateRowHeight: _,
|
|
2223
|
-
virtualization:
|
|
2223
|
+
virtualization: y
|
|
2224
2224
|
}) {
|
|
2225
2225
|
var Re;
|
|
2226
|
-
const [
|
|
2227
|
-
w || G(new Set(
|
|
2228
|
-
}, [w, E]),
|
|
2226
|
+
const [b, m] = we(null), [j, R] = we(null), [M, G] = we(() => h && h.length > 0 ? new Set(h) : /* @__PURE__ */ new Set()), F = qe.useMemo(() => w ? new Set(w) : M, [w, M]), H = ue((d) => {
|
|
2227
|
+
w || G(new Set(d)), E == null || E(d);
|
|
2228
|
+
}, [w, E]), te = ue((d) => n ? n(d) : JSON.stringify(d), [n]), I = qe.useMemo(() => {
|
|
2229
2229
|
if (!f) return [];
|
|
2230
|
-
const
|
|
2230
|
+
const d = [], T = (U, x, J) => {
|
|
2231
2231
|
U.forEach((ge, de) => {
|
|
2232
|
-
const ke =
|
|
2233
|
-
|
|
2232
|
+
const ke = te(ge), be = ge == null ? void 0 : ge.children, Ce = be && be.length > 0;
|
|
2233
|
+
d.push({
|
|
2234
2234
|
record: ge,
|
|
2235
2235
|
key: ke,
|
|
2236
|
-
type:
|
|
2236
|
+
type: x === 0 ? "parent" : "child",
|
|
2237
2237
|
parentKey: J,
|
|
2238
|
-
depth:
|
|
2238
|
+
depth: x,
|
|
2239
2239
|
indexWithinGroup: de,
|
|
2240
2240
|
groupSize: U.length
|
|
2241
|
-
}), Ce &&
|
|
2241
|
+
}), Ce && F.has(ke) && T(be, x + 1, ke);
|
|
2242
2242
|
});
|
|
2243
2243
|
};
|
|
2244
|
-
return
|
|
2245
|
-
}, [f, i,
|
|
2246
|
-
const
|
|
2247
|
-
return I.forEach((
|
|
2244
|
+
return T(i, 0), d;
|
|
2245
|
+
}, [f, i, te, F]), z = qe.useMemo(() => {
|
|
2246
|
+
const d = /* @__PURE__ */ new Map();
|
|
2247
|
+
return I.forEach((T) => d.set(T.key, T)), d;
|
|
2248
2248
|
}, [I]);
|
|
2249
|
-
|
|
2249
|
+
Ie(() => {
|
|
2250
2250
|
mr && _ && (() => {
|
|
2251
|
-
const
|
|
2252
|
-
document.querySelectorAll(".radar-table__header-row").forEach((
|
|
2253
|
-
const J =
|
|
2251
|
+
const T = document.querySelectorAll(".radar-table__body-row");
|
|
2252
|
+
document.querySelectorAll(".radar-table__header-row").forEach((x) => {
|
|
2253
|
+
const J = x.querySelectorAll(".radar-table__header-cell-wrapper");
|
|
2254
2254
|
let ge = 0;
|
|
2255
2255
|
J.forEach((de) => {
|
|
2256
2256
|
de.style.height = "auto", ge = Math.max(ge, de.offsetHeight);
|
|
2257
2257
|
}), J.forEach((de) => {
|
|
2258
2258
|
de.style.height = ge + "px";
|
|
2259
2259
|
});
|
|
2260
|
-
}),
|
|
2261
|
-
const J =
|
|
2260
|
+
}), T.forEach((x) => {
|
|
2261
|
+
const J = x.querySelectorAll(".radar-table__body-cell-wrapper");
|
|
2262
2262
|
let ge = 0;
|
|
2263
2263
|
J.forEach((de) => {
|
|
2264
2264
|
de.style.height = "auto", ge = Math.max(ge, de.offsetHeight);
|
|
@@ -2268,37 +2268,37 @@ function yr({
|
|
|
2268
2268
|
});
|
|
2269
2269
|
})();
|
|
2270
2270
|
}, [i, r]);
|
|
2271
|
-
const
|
|
2272
|
-
const
|
|
2273
|
-
|
|
2274
|
-
J.children && J.children.length > 0 ? U(J.children) :
|
|
2271
|
+
const $ = ((d) => {
|
|
2272
|
+
const T = [], U = (x) => {
|
|
2273
|
+
x.forEach((J) => {
|
|
2274
|
+
J.children && J.children.length > 0 ? U(J.children) : T.push(J);
|
|
2275
2275
|
});
|
|
2276
2276
|
};
|
|
2277
|
-
return U(
|
|
2278
|
-
})(r), le = (
|
|
2279
|
-
if (
|
|
2280
|
-
return
|
|
2281
|
-
const
|
|
2282
|
-
for (const ge of
|
|
2277
|
+
return U(d), T;
|
|
2278
|
+
})(r), le = (d) => {
|
|
2279
|
+
if (d.groupColor)
|
|
2280
|
+
return d.groupColor;
|
|
2281
|
+
const T = (x, J) => {
|
|
2282
|
+
for (const ge of x)
|
|
2283
2283
|
if (ge.children) {
|
|
2284
2284
|
if (ge.children.some((ke) => ke.key === J))
|
|
2285
2285
|
return ge;
|
|
2286
|
-
const de =
|
|
2286
|
+
const de = T(ge.children, J);
|
|
2287
2287
|
if (de) return de;
|
|
2288
2288
|
}
|
|
2289
2289
|
return null;
|
|
2290
|
-
}, U =
|
|
2290
|
+
}, U = T(r, d.key);
|
|
2291
2291
|
return U == null ? void 0 : U.groupColor;
|
|
2292
|
-
},
|
|
2293
|
-
if (!
|
|
2294
|
-
|
|
2292
|
+
}, A = ue((d, T) => {
|
|
2293
|
+
if (!T) {
|
|
2294
|
+
d.preventDefault();
|
|
2295
2295
|
return;
|
|
2296
2296
|
}
|
|
2297
|
-
|
|
2298
|
-
const U = i.find((
|
|
2297
|
+
m(T), d.dataTransfer.effectAllowed = "move", d.dataTransfer.setData("text/plain", T), document.body.style.cursor = "grabbing";
|
|
2298
|
+
const U = i.find((x) => (n ? n(x) : JSON.stringify(x)) === T);
|
|
2299
2299
|
if (U) {
|
|
2300
|
-
const
|
|
2301
|
-
|
|
2300
|
+
const x = document.createElement("div");
|
|
2301
|
+
x.style.cssText = `
|
|
2302
2302
|
background: white;
|
|
2303
2303
|
border-radius: 6px;
|
|
2304
2304
|
padding: 8px 12px;
|
|
@@ -2312,72 +2312,72 @@ function yr({
|
|
|
2312
2312
|
overflow: hidden;
|
|
2313
2313
|
text-overflow: ellipsis;
|
|
2314
2314
|
`;
|
|
2315
|
-
const J =
|
|
2315
|
+
const J = $[0];
|
|
2316
2316
|
if (J) {
|
|
2317
2317
|
const de = U[J.key];
|
|
2318
|
-
|
|
2318
|
+
x.textContent = (de == null ? void 0 : de.toString()) || "Строка";
|
|
2319
2319
|
} else
|
|
2320
|
-
|
|
2321
|
-
document.body.appendChild(
|
|
2320
|
+
x.textContent = "Строка";
|
|
2321
|
+
document.body.appendChild(x), x.style.position = "absolute", x.style.top = "-1000px", x.style.left = "-1000px", d.dataTransfer.setDragImage(x, 10, 10);
|
|
2322
2322
|
const ge = setTimeout(() => {
|
|
2323
|
-
document.body.contains(
|
|
2323
|
+
document.body.contains(x) && document.body.removeChild(x);
|
|
2324
2324
|
}, 0);
|
|
2325
2325
|
return () => clearTimeout(ge);
|
|
2326
2326
|
}
|
|
2327
|
-
}, []), O = ue((
|
|
2328
|
-
|
|
2329
|
-
}, []), k = ue((
|
|
2330
|
-
if (
|
|
2327
|
+
}, []), O = ue((d) => {
|
|
2328
|
+
d.preventDefault(), d.dataTransfer.dropEffect = "move";
|
|
2329
|
+
}, []), k = ue((d, T) => {
|
|
2330
|
+
if (d.preventDefault(), !b) return;
|
|
2331
2331
|
if (!f) {
|
|
2332
|
-
|
|
2332
|
+
b !== T && R(T);
|
|
2333
2333
|
return;
|
|
2334
2334
|
}
|
|
2335
|
-
const U =
|
|
2336
|
-
if (!U || !
|
|
2337
|
-
const J = U.depth ===
|
|
2338
|
-
|
|
2339
|
-
}, [
|
|
2340
|
-
|
|
2335
|
+
const U = z.get(b), x = z.get(T);
|
|
2336
|
+
if (!U || !x) return;
|
|
2337
|
+
const J = U.depth === x.depth && U.parentKey === x.parentKey;
|
|
2338
|
+
R(J && b !== T ? T : null);
|
|
2339
|
+
}, [b, f, z]), C = ue((d) => {
|
|
2340
|
+
d.preventDefault(), R(null);
|
|
2341
2341
|
}, []), X = ue(() => {
|
|
2342
|
-
|
|
2343
|
-
}, []),
|
|
2344
|
-
if (
|
|
2342
|
+
m(null), R(null), document.body.style.cursor = "";
|
|
2343
|
+
}, []), D = ue((d, T) => {
|
|
2344
|
+
if (d.preventDefault(), !b || b === T)
|
|
2345
2345
|
return;
|
|
2346
2346
|
if (!f) {
|
|
2347
|
-
const de = i.findIndex((Oe) => (n ? n(Oe) : JSON.stringify(Oe)) ===
|
|
2347
|
+
const de = i.findIndex((Oe) => (n ? n(Oe) : JSON.stringify(Oe)) === b), ke = i.findIndex((Oe) => (n ? n(Oe) : JSON.stringify(Oe)) === T);
|
|
2348
2348
|
if (de === -1 || ke === -1)
|
|
2349
2349
|
return;
|
|
2350
|
-
const
|
|
2351
|
-
|
|
2350
|
+
const be = [...i], [Ce] = be.splice(de, 1);
|
|
2351
|
+
be.splice(ke, 0, Ce), o == null || o(be), m(null), R(null), document.body.style.cursor = "";
|
|
2352
2352
|
return;
|
|
2353
2353
|
}
|
|
2354
|
-
const U =
|
|
2355
|
-
if (!U || !
|
|
2354
|
+
const U = z.get(b), x = z.get(T);
|
|
2355
|
+
if (!U || !x || U.depth !== x.depth || U.parentKey !== x.parentKey)
|
|
2356
2356
|
return;
|
|
2357
2357
|
const J = (de, ke) => {
|
|
2358
2358
|
if (ke === U.parentKey) {
|
|
2359
|
-
const
|
|
2360
|
-
(
|
|
2359
|
+
const be = de.findIndex(
|
|
2360
|
+
(Le) => te(Le) === U.key
|
|
2361
2361
|
), Ce = de.findIndex(
|
|
2362
|
-
(
|
|
2362
|
+
(Le) => te(Le) === x.key
|
|
2363
2363
|
);
|
|
2364
|
-
if (
|
|
2365
|
-
const Oe = [...de], [Fe] = Oe.splice(
|
|
2364
|
+
if (be === -1 || Ce === -1) return de;
|
|
2365
|
+
const Oe = [...de], [Fe] = Oe.splice(be, 1);
|
|
2366
2366
|
return Oe.splice(Ce, 0, Fe), Oe;
|
|
2367
2367
|
}
|
|
2368
|
-
return de.map((
|
|
2369
|
-
const Ce =
|
|
2368
|
+
return de.map((be) => {
|
|
2369
|
+
const Ce = be == null ? void 0 : be.children;
|
|
2370
2370
|
return Ce && Ce.length > 0 ? {
|
|
2371
|
-
...
|
|
2372
|
-
children: J(Ce,
|
|
2373
|
-
} :
|
|
2371
|
+
...be,
|
|
2372
|
+
children: J(Ce, te(be))
|
|
2373
|
+
} : be;
|
|
2374
2374
|
});
|
|
2375
2375
|
}, ge = J(i);
|
|
2376
|
-
o == null || o(ge),
|
|
2377
|
-
}, [
|
|
2376
|
+
o == null || o(ge), m(null), R(null), document.body.style.cursor = "";
|
|
2377
|
+
}, [b, i, te, o, f, z]);
|
|
2378
2378
|
if (i.length === 0) {
|
|
2379
|
-
let
|
|
2380
|
-
return
|
|
2379
|
+
let d;
|
|
2380
|
+
return p && (d = ((Re = p.current) == null ? void 0 : Re.clientWidth) + "px"), /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${N}`, style: Z, children: /* @__PURE__ */ l.jsx(
|
|
2381
2381
|
"tr",
|
|
2382
2382
|
{
|
|
2383
2383
|
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re}`,
|
|
@@ -2386,176 +2386,196 @@ function yr({
|
|
|
2386
2386
|
"td",
|
|
2387
2387
|
{
|
|
2388
2388
|
className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${g}`,
|
|
2389
|
-
colSpan:
|
|
2389
|
+
colSpan: $.length,
|
|
2390
2390
|
style: {
|
|
2391
|
-
...
|
|
2391
|
+
...ee
|
|
2392
2392
|
},
|
|
2393
2393
|
children: [
|
|
2394
2394
|
ae && ae(),
|
|
2395
|
-
!ae && /* @__PURE__ */ l.jsx("div", { className: `${
|
|
2395
|
+
!ae && /* @__PURE__ */ l.jsx("div", { className: `${d ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: d || "" }, children: "Нет данных" })
|
|
2396
2396
|
]
|
|
2397
2397
|
}
|
|
2398
2398
|
)
|
|
2399
2399
|
}
|
|
2400
2400
|
) });
|
|
2401
2401
|
}
|
|
2402
|
-
const
|
|
2403
|
-
record:
|
|
2404
|
-
key: n ? n(
|
|
2402
|
+
const Q = f ? I : i.map((d) => ({
|
|
2403
|
+
record: d,
|
|
2404
|
+
key: n ? n(d) : JSON.stringify(d),
|
|
2405
2405
|
type: "parent",
|
|
2406
2406
|
depth: 0,
|
|
2407
2407
|
indexWithinGroup: 0,
|
|
2408
2408
|
groupSize: i.length
|
|
2409
|
-
})), fe = ue((
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2412
|
-
}, [
|
|
2413
|
-
function ie({ column:
|
|
2409
|
+
})), fe = ue((d) => {
|
|
2410
|
+
const T = new Set(F);
|
|
2411
|
+
T.has(d) ? T.delete(d) : T.add(d), H(Array.from(T));
|
|
2412
|
+
}, [F, H]);
|
|
2413
|
+
function ie({ column: d, index: T, row: U, item: x }) {
|
|
2414
2414
|
var He, Ue;
|
|
2415
|
-
const J = Ee(null), [ge, de] = we(0), ke =
|
|
2415
|
+
const J = Ee(null), [ge, de] = we(0), ke = d.fixed && !d.width ? 200 : d.width, be = d.fixed && !d.minWidth ? 200 : d.minWidth;
|
|
2416
2416
|
let Ce = !1;
|
|
2417
|
-
c && c.idx.includes(
|
|
2418
|
-
if (!
|
|
2417
|
+
c && c.idx.includes(d.dataIndex) && (Ce = !0), c && c.idx.length === 0 && (Ce = !0), Xe(() => {
|
|
2418
|
+
if (!d.fixed) {
|
|
2419
2419
|
de(0);
|
|
2420
2420
|
return;
|
|
2421
2421
|
}
|
|
2422
|
-
let
|
|
2423
|
-
if (
|
|
2424
|
-
for (let $e = 0; $e <
|
|
2425
|
-
if (
|
|
2426
|
-
const De =
|
|
2427
|
-
|
|
2422
|
+
let Pe = d.fixedLeft || 0;
|
|
2423
|
+
if (T !== 0) {
|
|
2424
|
+
for (let $e = 0; $e < T; $e++)
|
|
2425
|
+
if ($[$e].fixed && !$[$e].hidden) {
|
|
2426
|
+
const De = $[$e].width || $[$e].minWidth || 200, Be = pr($[$e].key);
|
|
2427
|
+
Pe += Math.floor(Be ?? De) - 0.05;
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
de(
|
|
2431
|
-
}, [
|
|
2432
|
-
const Oe = le(
|
|
2433
|
-
return
|
|
2430
|
+
de(Pe);
|
|
2431
|
+
}, [d.fixed, d.fixedLeft, d.width, T]);
|
|
2432
|
+
const Oe = le(d), Fe = T === 0, Le = f && Fe && U.depth > 0 ? U.depth * (q || 16) : void 0, ze = !!(f && (x != null && x.children) && x.children.length > 0), Me = !!(f && F.has(U.key));
|
|
2433
|
+
return d.hidden ? null : /* @__PURE__ */ l.jsx(
|
|
2434
2434
|
"td",
|
|
2435
2435
|
{
|
|
2436
2436
|
ref: J,
|
|
2437
|
-
"data-column-key":
|
|
2437
|
+
"data-column-key": d.key,
|
|
2438
2438
|
className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${g}`,
|
|
2439
2439
|
style: {
|
|
2440
2440
|
width: ke,
|
|
2441
|
-
minWidth:
|
|
2442
|
-
position:
|
|
2441
|
+
minWidth: be,
|
|
2442
|
+
position: d.fixed ? "sticky" : "static",
|
|
2443
2443
|
left: ge,
|
|
2444
|
-
borderRight:
|
|
2445
|
-
cursor: Fe &&
|
|
2446
|
-
...
|
|
2444
|
+
borderRight: d.fixed && !((He = $[T + 1]) != null && He.fixed) ? "1px solid #E8E8E8" : "none",
|
|
2445
|
+
cursor: Fe && ze ? "pointer" : "default",
|
|
2446
|
+
...ee
|
|
2447
2447
|
},
|
|
2448
|
-
onClick: Fe &&
|
|
2448
|
+
onClick: Fe && ze ? () => fe(U.key) : void 0,
|
|
2449
2449
|
children: /* @__PURE__ */ l.jsxs(
|
|
2450
2450
|
"div",
|
|
2451
2451
|
{
|
|
2452
2452
|
className: `radar-table__body-cell-wrapper ${a ? a + "__body-cell-wrapper" : ""} ${S}`,
|
|
2453
2453
|
style: {
|
|
2454
2454
|
backgroundColor: Oe || "white",
|
|
2455
|
-
paddingLeft:
|
|
2456
|
-
...
|
|
2455
|
+
paddingLeft: Le,
|
|
2456
|
+
...W
|
|
2457
2457
|
},
|
|
2458
2458
|
children: [
|
|
2459
|
-
Fe &&
|
|
2459
|
+
Fe && ze && f && /* @__PURE__ */ l.jsx(
|
|
2460
2460
|
"button",
|
|
2461
2461
|
{
|
|
2462
2462
|
type: "button",
|
|
2463
|
-
className: `radar-table__expander-btn ${
|
|
2464
|
-
"aria-expanded":
|
|
2463
|
+
className: `radar-table__expander-btn ${Me ? "expanded" : ""}`,
|
|
2464
|
+
"aria-expanded": Me,
|
|
2465
2465
|
onClick: () => fe(U.key),
|
|
2466
|
-
style: { marginRight: 8, background: "transparent", border: "none", transform:
|
|
2467
|
-
title:
|
|
2468
|
-
children:
|
|
2466
|
+
style: { marginRight: 8, background: "transparent", border: "none", transform: Me ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
|
|
2467
|
+
title: Me ? "Свернуть" : "Развернуть",
|
|
2468
|
+
children: P ? P(Me, x, U.depth) : /* @__PURE__ */ l.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
|
|
2469
2469
|
}
|
|
2470
2470
|
),
|
|
2471
|
-
Ce ? c == null ? void 0 : c.renderer(
|
|
2472
|
-
|
|
2473
|
-
!
|
|
2471
|
+
Ce ? c == null ? void 0 : c.renderer(x[d.dataIndex], x, T, d.dataIndex) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2472
|
+
d.units && tr(((Ue = x[d.key]) == null ? void 0 : Ue.toString()) || "", d.units),
|
|
2473
|
+
!d.units && x[d.key]
|
|
2474
2474
|
] })
|
|
2475
2475
|
]
|
|
2476
2476
|
}
|
|
2477
2477
|
)
|
|
2478
2478
|
},
|
|
2479
|
-
|
|
2479
|
+
d.key
|
|
2480
2480
|
);
|
|
2481
2481
|
}
|
|
2482
|
-
if (!(
|
|
2483
|
-
return /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${
|
|
2484
|
-
const
|
|
2482
|
+
if (!(y != null && y.enabled))
|
|
2483
|
+
return /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${N}`, style: Z, children: Q.map((d) => {
|
|
2484
|
+
const T = d.record, U = d.key;
|
|
2485
2485
|
return /* @__PURE__ */ l.jsx(
|
|
2486
2486
|
"tr",
|
|
2487
2487
|
{
|
|
2488
|
-
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${
|
|
2488
|
+
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${b === U ? "dragging" : ""} ${j === U ? "drag-over" : ""} ${f ? d.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
|
|
2489
2489
|
style: Y,
|
|
2490
2490
|
draggable: t,
|
|
2491
|
-
onDragStart: (
|
|
2491
|
+
onDragStart: (x) => A(x, U),
|
|
2492
2492
|
onDragOver: O,
|
|
2493
|
-
onDragEnter: (
|
|
2493
|
+
onDragEnter: (x) => k(x, U),
|
|
2494
2494
|
onDragLeave: C,
|
|
2495
|
-
onDrop: (
|
|
2495
|
+
onDrop: (x) => D(x, U),
|
|
2496
2496
|
onDragEnd: X,
|
|
2497
|
-
children:
|
|
2497
|
+
children: $.map((x, J) => /* @__PURE__ */ l.jsx(ie, { column: x, index: J, row: d, item: T }, x.key))
|
|
2498
2498
|
},
|
|
2499
2499
|
U
|
|
2500
2500
|
);
|
|
2501
2501
|
}) });
|
|
2502
|
-
const K =
|
|
2503
|
-
count:
|
|
2504
|
-
getScrollElement: () =>
|
|
2502
|
+
const K = y.estimateSize ?? 48, ne = y.overscan ?? 12, L = hr({
|
|
2503
|
+
count: Q.length,
|
|
2504
|
+
getScrollElement: () => p == null ? void 0 : p.current,
|
|
2505
2505
|
estimateSize: () => K,
|
|
2506
2506
|
overscan: ne,
|
|
2507
|
-
measureElement: (
|
|
2508
|
-
})
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2507
|
+
measureElement: (d) => d.getBoundingClientRect().height
|
|
2508
|
+
});
|
|
2509
|
+
Xe(() => {
|
|
2510
|
+
if (!(y != null && y.enabled) || !(p != null && p.current)) return;
|
|
2511
|
+
L.measure();
|
|
2512
|
+
const d = new ResizeObserver(() => {
|
|
2513
|
+
L.measure();
|
|
2514
|
+
}), T = p.current;
|
|
2515
|
+
return d.observe(T), () => {
|
|
2516
|
+
d.disconnect();
|
|
2517
|
+
};
|
|
2518
|
+
}, [y == null ? void 0 : y.enabled, p]), Ie(() => {
|
|
2519
|
+
if (!(y != null && y.enabled)) return;
|
|
2520
|
+
const d = setTimeout(() => {
|
|
2521
|
+
L.measure();
|
|
2522
|
+
}, 0);
|
|
2523
|
+
return () => clearTimeout(d);
|
|
2524
|
+
}, [Q.length, y == null ? void 0 : y.enabled]);
|
|
2525
|
+
const ce = L.getVirtualItems(), ye = L.getTotalSize(), pe = ce.length ? ce[0].start : 0, ve = ce.length ? ye - ce[ce.length - 1].end : 0;
|
|
2526
|
+
return /* @__PURE__ */ l.jsxs("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${N}`, style: Z, children: [
|
|
2527
|
+
pe > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: pe }, children: /* @__PURE__ */ l.jsx("td", { colSpan: $.length }) }),
|
|
2528
|
+
ce.map((d) => {
|
|
2529
|
+
const T = Q[d.index];
|
|
2530
|
+
if (!T) return null;
|
|
2531
|
+
const U = T.record, x = T.key;
|
|
2513
2532
|
return /* @__PURE__ */ l.jsx(
|
|
2514
2533
|
"tr",
|
|
2515
2534
|
{
|
|
2535
|
+
"data-index": d.index,
|
|
2516
2536
|
ref: (J) => {
|
|
2517
|
-
J &&
|
|
2537
|
+
J && L.measureElement(J);
|
|
2518
2538
|
},
|
|
2519
|
-
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${
|
|
2539
|
+
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${b === x ? "dragging" : ""} ${j === x ? "drag-over" : ""} ${f ? T.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
|
|
2520
2540
|
style: Y,
|
|
2521
2541
|
draggable: t,
|
|
2522
|
-
onDragStart: (J) =>
|
|
2542
|
+
onDragStart: (J) => A(J, x),
|
|
2523
2543
|
onDragOver: O,
|
|
2524
|
-
onDragEnter: (J) => k(J,
|
|
2544
|
+
onDragEnter: (J) => k(J, x),
|
|
2525
2545
|
onDragLeave: C,
|
|
2526
|
-
onDrop: (J) =>
|
|
2546
|
+
onDrop: (J) => D(J, x),
|
|
2527
2547
|
onDragEnd: X,
|
|
2528
|
-
children:
|
|
2548
|
+
children: $.map((J, ge) => /* @__PURE__ */ l.jsx(ie, { column: J, index: ge, row: T, item: U }, J.key))
|
|
2529
2549
|
},
|
|
2530
|
-
|
|
2550
|
+
x
|
|
2531
2551
|
);
|
|
2532
2552
|
}),
|
|
2533
|
-
ve > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: ve }, children: /* @__PURE__ */ l.jsx("td", { colSpan:
|
|
2553
|
+
ve > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: ve }, children: /* @__PURE__ */ l.jsx("td", { colSpan: $.length }) })
|
|
2534
2554
|
] });
|
|
2535
2555
|
}
|
|
2536
|
-
const
|
|
2556
|
+
const pt = ({ config: t }) => {
|
|
2537
2557
|
const [{ current: i, pageSize: r, total: n, onChange: s, showQuickJumper: o, buttonsCount: a = 4, hideOnSinglePage: c = !1 }, f] = we(t);
|
|
2538
|
-
|
|
2558
|
+
Ie(() => {
|
|
2539
2559
|
f(t);
|
|
2540
2560
|
}, [t]);
|
|
2541
2561
|
const w = Math.ceil(i / a), h = (w - 1) * a + 1, E = w * a, q = (g) => {
|
|
2542
|
-
const
|
|
2543
|
-
!/^[0-9]$/.test(g.key) && !
|
|
2544
|
-
},
|
|
2562
|
+
const ee = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
|
|
2563
|
+
!/^[0-9]$/.test(g.key) && !ee.includes(g.key) && g.preventDefault();
|
|
2564
|
+
}, P = (g) => {
|
|
2545
2565
|
if (g.key === "Enter") {
|
|
2546
|
-
const
|
|
2547
|
-
|
|
2566
|
+
const ee = parseInt(g.currentTarget.value);
|
|
2567
|
+
ee > 0 && ee <= n && (f({ ...t, current: ee }), s == null || s(ee, r), g.currentTarget.value = "");
|
|
2548
2568
|
}
|
|
2549
|
-
},
|
|
2569
|
+
}, N = (g) => {
|
|
2550
2570
|
const S = g.target.value.replace(/[^0-9]/g, "");
|
|
2551
2571
|
g.target.value = S;
|
|
2552
2572
|
}, Z = (g) => {
|
|
2553
2573
|
g.preventDefault();
|
|
2554
|
-
const S = g.clipboardData.getData("text").replace(/[^0-9]/g, ""),
|
|
2555
|
-
|
|
2574
|
+
const S = g.clipboardData.getData("text").replace(/[^0-9]/g, ""), W = g.target, ae = W.selectionStart || 0, p = W.selectionEnd || 0, _ = W.value.substring(0, ae) + S + W.value.substring(p);
|
|
2575
|
+
W.value = _, W.setSelectionRange(ae + S.length, ae + S.length);
|
|
2556
2576
|
}, re = (g) => {
|
|
2557
|
-
const
|
|
2558
|
-
|
|
2577
|
+
const ee = g.currentTarget.id;
|
|
2578
|
+
ee === "pagination_left_button" && i > 1 && (f({ ...t, current: i - 1 }), s == null || s(i - 1, r)), ee === "pagination_right_button" && i < n && (f({ ...t, current: i + 1 }), s == null || s(i + 1, r));
|
|
2559
2579
|
}, Y = (g) => {
|
|
2560
2580
|
f({ ...t, current: g }), s == null || s(g, r);
|
|
2561
2581
|
};
|
|
@@ -2569,10 +2589,10 @@ const gt = ({ config: t }) => {
|
|
|
2569
2589
|
},
|
|
2570
2590
|
children: [
|
|
2571
2591
|
/* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: re, title: "Назад", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
|
|
2572
|
-
Array.from({ length: n }, (g,
|
|
2573
|
-
const
|
|
2592
|
+
Array.from({ length: n }, (g, ee) => ee + 1).map((g) => {
|
|
2593
|
+
const ee = i === g;
|
|
2574
2594
|
if (g >= h && g <= E)
|
|
2575
|
-
return
|
|
2595
|
+
return ee ? /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: g }, g) : /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button", onClick: () => Y(g), children: g }, g);
|
|
2576
2596
|
}),
|
|
2577
2597
|
/* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: re, title: "Вперёд", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
|
|
2578
2598
|
]
|
|
@@ -2585,9 +2605,9 @@ const gt = ({ config: t }) => {
|
|
|
2585
2605
|
{
|
|
2586
2606
|
className: "radar-table__pagination-input",
|
|
2587
2607
|
onKeyDown: q,
|
|
2588
|
-
onChange:
|
|
2608
|
+
onChange: N,
|
|
2589
2609
|
onPaste: Z,
|
|
2590
|
-
onKeyUp: (g) =>
|
|
2610
|
+
onKeyUp: (g) => P(g)
|
|
2591
2611
|
}
|
|
2592
2612
|
),
|
|
2593
2613
|
" стр. из ",
|
|
@@ -2612,22 +2632,22 @@ function vr(t = !1) {
|
|
|
2612
2632
|
}, [t]), w = ue(() => {
|
|
2613
2633
|
if (!t || !a.current) return;
|
|
2614
2634
|
a.current = !1;
|
|
2615
|
-
const E = n.current, q = performance.now() - o.current,
|
|
2616
|
-
let
|
|
2635
|
+
const E = n.current, q = performance.now() - o.current, P = [];
|
|
2636
|
+
let N = 0, Z = 0;
|
|
2617
2637
|
if (E.length > 1) {
|
|
2618
2638
|
for (let S = 1; S < E.length; S++) {
|
|
2619
|
-
const
|
|
2620
|
-
|
|
2639
|
+
const W = E[S] - E[S - 1];
|
|
2640
|
+
P.push(W);
|
|
2621
2641
|
}
|
|
2622
|
-
|
|
2623
|
-
const re =
|
|
2642
|
+
N = P[P.length - 1], Z = 1e3 / N;
|
|
2643
|
+
const re = P.reduce((S, W) => S + W, 0) / P.length, Y = 1e3 / re, g = Math.min(...P), ee = Math.max(...P);
|
|
2624
2644
|
r({
|
|
2625
2645
|
totalFrames: E.length,
|
|
2626
2646
|
avgFrameTime: re,
|
|
2627
2647
|
minFrameTime: g,
|
|
2628
|
-
maxFrameTime:
|
|
2648
|
+
maxFrameTime: ee,
|
|
2629
2649
|
avgFps: Y,
|
|
2630
|
-
lastFrameTime:
|
|
2650
|
+
lastFrameTime: N,
|
|
2631
2651
|
lastFps: Z,
|
|
2632
2652
|
totalDuration: q
|
|
2633
2653
|
});
|
|
@@ -2666,64 +2686,64 @@ function Sr({
|
|
|
2666
2686
|
scrollContainerRef: h,
|
|
2667
2687
|
onResize: E,
|
|
2668
2688
|
onSort: q,
|
|
2669
|
-
onRowReorder:
|
|
2670
|
-
onColumnReorder:
|
|
2689
|
+
onRowReorder: P,
|
|
2690
|
+
onColumnReorder: N,
|
|
2671
2691
|
customCellRender: Z,
|
|
2672
2692
|
noDataRender: re,
|
|
2673
2693
|
sortIcon: Y,
|
|
2674
2694
|
expandIcon: g,
|
|
2675
|
-
recalculateRowHeight:
|
|
2695
|
+
recalculateRowHeight: ee = !1,
|
|
2676
2696
|
// sorting props
|
|
2677
2697
|
sorting: S,
|
|
2678
|
-
defaultSorting:
|
|
2698
|
+
defaultSorting: W,
|
|
2679
2699
|
// tree props
|
|
2680
2700
|
treeMode: ae,
|
|
2681
|
-
expandedRowKeys:
|
|
2701
|
+
expandedRowKeys: p,
|
|
2682
2702
|
defaultExpandedRowKeys: _,
|
|
2683
|
-
onExpandedRowsChange:
|
|
2684
|
-
indentSize:
|
|
2685
|
-
className:
|
|
2703
|
+
onExpandedRowsChange: y,
|
|
2704
|
+
indentSize: b,
|
|
2705
|
+
className: m = "",
|
|
2686
2706
|
style: j,
|
|
2687
|
-
headerClassName:
|
|
2688
|
-
headerStyle:
|
|
2707
|
+
headerClassName: R = "",
|
|
2708
|
+
headerStyle: M,
|
|
2689
2709
|
headerCellClassName: G = "",
|
|
2690
|
-
headerCellStyle:
|
|
2710
|
+
headerCellStyle: F,
|
|
2691
2711
|
headerRowClassName: H = "",
|
|
2692
|
-
headerRowStyle:
|
|
2712
|
+
headerRowStyle: te,
|
|
2693
2713
|
headerCellWrapperClassName: I = "",
|
|
2694
|
-
headerCellWrapperStyle:
|
|
2714
|
+
headerCellWrapperStyle: z,
|
|
2695
2715
|
bodyClassName: V = "",
|
|
2696
|
-
bodyStyle:
|
|
2716
|
+
bodyStyle: $,
|
|
2697
2717
|
bodyRowClassName: le = "",
|
|
2698
|
-
bodyRowStyle:
|
|
2718
|
+
bodyRowStyle: A,
|
|
2699
2719
|
bodyCellClassName: O = "",
|
|
2700
2720
|
bodyCellStyle: k,
|
|
2701
2721
|
bodyCellWrapperClassName: C = "",
|
|
2702
2722
|
bodyCellWrapperStyle: X,
|
|
2703
|
-
headerGroupRowClassName:
|
|
2704
|
-
headerGroupRowStyle:
|
|
2723
|
+
headerGroupRowClassName: D,
|
|
2724
|
+
headerGroupRowStyle: Q,
|
|
2705
2725
|
headerGroupCellClassName: fe,
|
|
2706
2726
|
headerGroupCellStyle: ie,
|
|
2707
2727
|
headerGroupCellWrapperClassName: K,
|
|
2708
2728
|
headerGroupCellWrapperStyle: ne,
|
|
2709
|
-
paginationContainerClassName:
|
|
2729
|
+
paginationContainerClassName: L = "",
|
|
2710
2730
|
paginationContainerStyle: ce,
|
|
2711
2731
|
resizeThrottle: ye = 0,
|
|
2712
2732
|
virtualization: pe,
|
|
2713
2733
|
benchmark: ve
|
|
2714
2734
|
}) {
|
|
2715
|
-
const Re = typeof ve == "boolean" ? ve : !1, { metrics:
|
|
2716
|
-
return
|
|
2717
|
-
Re &&
|
|
2718
|
-
}, [
|
|
2735
|
+
const Re = typeof ve == "boolean" ? ve : !1, { metrics: d, startResize: T, trackFrame: U, endResize: x } = vr(Re);
|
|
2736
|
+
return Ie(() => {
|
|
2737
|
+
Re && d.totalFrames > 0 && (console.group("📊 Resize Benchmark (Mouse Move)"), console.log("Total Frames:", d.totalFrames), console.log("Last Frame Time:", `${d.lastFrameTime.toFixed(2)}ms`), console.log("Last FPS:", d.lastFps.toFixed(1)), console.log("Avg Frame Time:", `${d.avgFrameTime.toFixed(2)}ms`), console.log("Avg FPS:", d.avgFps.toFixed(1)), console.log("Min Frame Time:", `${d.minFrameTime.toFixed(2)}ms`), console.log("Max Frame Time:", `${d.maxFrameTime.toFixed(2)}ms`), console.log("Total Duration:", `${d.totalDuration.toFixed(2)}ms`), console.groupEnd());
|
|
2738
|
+
}, [d, Re]), w ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2719
2739
|
/* @__PURE__ */ l.jsx(
|
|
2720
2740
|
Zt,
|
|
2721
2741
|
{
|
|
2722
2742
|
fullConfig: r,
|
|
2723
|
-
onColumnReorder:
|
|
2743
|
+
onColumnReorder: N,
|
|
2724
2744
|
scrollContainerRef: h,
|
|
2725
2745
|
children: /* @__PURE__ */ l.jsx(
|
|
2726
|
-
|
|
2746
|
+
mt,
|
|
2727
2747
|
{
|
|
2728
2748
|
dataSource: t,
|
|
2729
2749
|
preset: i,
|
|
@@ -2738,59 +2758,59 @@ function Sr({
|
|
|
2738
2758
|
scrollContainerRef: h,
|
|
2739
2759
|
onResize: E,
|
|
2740
2760
|
onSort: q,
|
|
2741
|
-
onRowReorder:
|
|
2742
|
-
onColumnReorder:
|
|
2761
|
+
onRowReorder: P,
|
|
2762
|
+
onColumnReorder: N,
|
|
2743
2763
|
customCellRender: Z,
|
|
2744
2764
|
sortIcon: Y,
|
|
2745
2765
|
expandIcon: g,
|
|
2746
2766
|
treeMode: ae,
|
|
2747
|
-
expandedRowKeys:
|
|
2767
|
+
expandedRowKeys: p,
|
|
2748
2768
|
defaultExpandedRowKeys: _,
|
|
2749
|
-
onExpandedRowsChange:
|
|
2750
|
-
indentSize:
|
|
2751
|
-
className:
|
|
2769
|
+
onExpandedRowsChange: y,
|
|
2770
|
+
indentSize: b,
|
|
2771
|
+
className: m,
|
|
2752
2772
|
style: j,
|
|
2753
|
-
headerClassName:
|
|
2754
|
-
headerStyle:
|
|
2773
|
+
headerClassName: R,
|
|
2774
|
+
headerStyle: M,
|
|
2755
2775
|
headerCellClassName: G,
|
|
2756
|
-
headerCellStyle:
|
|
2776
|
+
headerCellStyle: F,
|
|
2757
2777
|
headerRowClassName: H,
|
|
2758
|
-
headerRowStyle:
|
|
2778
|
+
headerRowStyle: te,
|
|
2759
2779
|
headerCellWrapperClassName: I,
|
|
2760
|
-
headerCellWrapperStyle:
|
|
2780
|
+
headerCellWrapperStyle: z,
|
|
2761
2781
|
bodyClassName: V,
|
|
2762
|
-
bodyStyle:
|
|
2782
|
+
bodyStyle: $,
|
|
2763
2783
|
bodyRowClassName: le,
|
|
2764
|
-
bodyRowStyle:
|
|
2784
|
+
bodyRowStyle: A,
|
|
2765
2785
|
bodyCellClassName: O,
|
|
2766
2786
|
bodyCellStyle: k,
|
|
2767
2787
|
bodyCellWrapperClassName: C,
|
|
2768
2788
|
bodyCellWrapperStyle: X,
|
|
2769
|
-
headerGroupRowClassName:
|
|
2770
|
-
headerGroupRowStyle:
|
|
2789
|
+
headerGroupRowClassName: D,
|
|
2790
|
+
headerGroupRowStyle: Q,
|
|
2771
2791
|
headerGroupCellClassName: fe,
|
|
2772
2792
|
headerGroupCellStyle: ie,
|
|
2773
2793
|
headerGroupCellWrapperClassName: K,
|
|
2774
2794
|
headerGroupCellWrapperStyle: ne,
|
|
2775
|
-
paginationContainerClassName:
|
|
2795
|
+
paginationContainerClassName: L,
|
|
2776
2796
|
paginationContainerStyle: ce,
|
|
2777
2797
|
noDataRender: re,
|
|
2778
|
-
recalculateRowHeight:
|
|
2798
|
+
recalculateRowHeight: ee,
|
|
2779
2799
|
sorting: S,
|
|
2780
|
-
defaultSorting:
|
|
2800
|
+
defaultSorting: W,
|
|
2781
2801
|
resizeThrottle: ye,
|
|
2782
2802
|
virtualization: pe,
|
|
2783
|
-
onResizeStart:
|
|
2803
|
+
onResizeStart: T,
|
|
2784
2804
|
onResizeFrame: U,
|
|
2785
|
-
onResizeEnd:
|
|
2805
|
+
onResizeEnd: x
|
|
2786
2806
|
}
|
|
2787
2807
|
)
|
|
2788
2808
|
}
|
|
2789
2809
|
),
|
|
2790
|
-
/* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${
|
|
2810
|
+
/* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${L}`, style: ce, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
|
|
2791
2811
|
] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2792
2812
|
/* @__PURE__ */ l.jsx(
|
|
2793
|
-
|
|
2813
|
+
mt,
|
|
2794
2814
|
{
|
|
2795
2815
|
dataSource: t,
|
|
2796
2816
|
preset: i,
|
|
@@ -2805,57 +2825,57 @@ function Sr({
|
|
|
2805
2825
|
scrollContainerRef: h,
|
|
2806
2826
|
onResize: E,
|
|
2807
2827
|
onSort: q,
|
|
2808
|
-
onRowReorder:
|
|
2809
|
-
onColumnReorder:
|
|
2828
|
+
onRowReorder: P,
|
|
2829
|
+
onColumnReorder: N,
|
|
2810
2830
|
customCellRender: Z,
|
|
2811
2831
|
sortIcon: Y,
|
|
2812
2832
|
expandIcon: g,
|
|
2813
2833
|
treeMode: ae,
|
|
2814
|
-
expandedRowKeys:
|
|
2834
|
+
expandedRowKeys: p,
|
|
2815
2835
|
defaultExpandedRowKeys: _,
|
|
2816
|
-
onExpandedRowsChange:
|
|
2817
|
-
indentSize:
|
|
2818
|
-
className:
|
|
2836
|
+
onExpandedRowsChange: y,
|
|
2837
|
+
indentSize: b,
|
|
2838
|
+
className: m,
|
|
2819
2839
|
style: j,
|
|
2820
|
-
headerClassName:
|
|
2821
|
-
headerStyle:
|
|
2840
|
+
headerClassName: R,
|
|
2841
|
+
headerStyle: M,
|
|
2822
2842
|
headerCellClassName: G,
|
|
2823
|
-
headerCellStyle:
|
|
2843
|
+
headerCellStyle: F,
|
|
2824
2844
|
headerRowClassName: H,
|
|
2825
|
-
headerRowStyle:
|
|
2845
|
+
headerRowStyle: te,
|
|
2826
2846
|
headerCellWrapperClassName: I,
|
|
2827
|
-
headerCellWrapperStyle:
|
|
2847
|
+
headerCellWrapperStyle: z,
|
|
2828
2848
|
bodyClassName: V,
|
|
2829
|
-
bodyStyle:
|
|
2849
|
+
bodyStyle: $,
|
|
2830
2850
|
bodyRowClassName: le,
|
|
2831
|
-
bodyRowStyle:
|
|
2851
|
+
bodyRowStyle: A,
|
|
2832
2852
|
bodyCellClassName: O,
|
|
2833
2853
|
bodyCellStyle: k,
|
|
2834
2854
|
bodyCellWrapperClassName: C,
|
|
2835
2855
|
bodyCellWrapperStyle: X,
|
|
2836
|
-
headerGroupRowClassName:
|
|
2837
|
-
headerGroupRowStyle:
|
|
2856
|
+
headerGroupRowClassName: D,
|
|
2857
|
+
headerGroupRowStyle: Q,
|
|
2838
2858
|
headerGroupCellClassName: fe,
|
|
2839
2859
|
headerGroupCellStyle: ie,
|
|
2840
2860
|
headerGroupCellWrapperClassName: K,
|
|
2841
2861
|
headerGroupCellWrapperStyle: ne,
|
|
2842
|
-
paginationContainerClassName:
|
|
2862
|
+
paginationContainerClassName: L,
|
|
2843
2863
|
paginationContainerStyle: ce,
|
|
2844
2864
|
noDataRender: re,
|
|
2845
|
-
recalculateRowHeight:
|
|
2865
|
+
recalculateRowHeight: ee,
|
|
2846
2866
|
sorting: S,
|
|
2847
|
-
defaultSorting:
|
|
2867
|
+
defaultSorting: W,
|
|
2848
2868
|
resizeThrottle: ye,
|
|
2849
2869
|
virtualization: pe,
|
|
2850
|
-
onResizeStart:
|
|
2870
|
+
onResizeStart: T,
|
|
2851
2871
|
onResizeFrame: U,
|
|
2852
|
-
onResizeEnd:
|
|
2872
|
+
onResizeEnd: x
|
|
2853
2873
|
}
|
|
2854
2874
|
),
|
|
2855
|
-
/* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${
|
|
2875
|
+
/* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${L}`, style: ce, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
|
|
2856
2876
|
] });
|
|
2857
2877
|
}
|
|
2858
|
-
function
|
|
2878
|
+
function mt(t) {
|
|
2859
2879
|
const {
|
|
2860
2880
|
dataSource: i,
|
|
2861
2881
|
preset: r,
|
|
@@ -2869,45 +2889,45 @@ function pt(t) {
|
|
|
2869
2889
|
scrollContainerRef: h,
|
|
2870
2890
|
onResize: E,
|
|
2871
2891
|
onResizeStart: q,
|
|
2872
|
-
onResizeFrame:
|
|
2873
|
-
onResizeEnd:
|
|
2892
|
+
onResizeFrame: P,
|
|
2893
|
+
onResizeEnd: N,
|
|
2874
2894
|
onSort: Z,
|
|
2875
2895
|
onRowReorder: re,
|
|
2876
2896
|
onColumnReorder: Y,
|
|
2877
2897
|
customCellRender: g,
|
|
2878
|
-
sortIcon:
|
|
2898
|
+
sortIcon: ee,
|
|
2879
2899
|
expandIcon: S,
|
|
2880
|
-
treeMode:
|
|
2900
|
+
treeMode: W,
|
|
2881
2901
|
expandedRowKeys: ae,
|
|
2882
|
-
defaultExpandedRowKeys:
|
|
2902
|
+
defaultExpandedRowKeys: p,
|
|
2883
2903
|
onExpandedRowsChange: _,
|
|
2884
|
-
indentSize:
|
|
2885
|
-
className:
|
|
2886
|
-
style:
|
|
2904
|
+
indentSize: y,
|
|
2905
|
+
className: b,
|
|
2906
|
+
style: m,
|
|
2887
2907
|
headerClassName: j,
|
|
2888
|
-
headerStyle:
|
|
2889
|
-
headerCellClassName:
|
|
2908
|
+
headerStyle: R,
|
|
2909
|
+
headerCellClassName: M,
|
|
2890
2910
|
headerCellStyle: G,
|
|
2891
|
-
headerRowClassName:
|
|
2911
|
+
headerRowClassName: F,
|
|
2892
2912
|
headerRowStyle: H,
|
|
2893
|
-
headerCellWrapperClassName:
|
|
2913
|
+
headerCellWrapperClassName: te,
|
|
2894
2914
|
headerCellWrapperStyle: I,
|
|
2895
|
-
bodyClassName:
|
|
2915
|
+
bodyClassName: z,
|
|
2896
2916
|
bodyStyle: V,
|
|
2897
|
-
bodyRowClassName:
|
|
2917
|
+
bodyRowClassName: $,
|
|
2898
2918
|
bodyRowStyle: le,
|
|
2899
|
-
bodyCellClassName:
|
|
2919
|
+
bodyCellClassName: A,
|
|
2900
2920
|
bodyCellStyle: O,
|
|
2901
2921
|
bodyCellWrapperClassName: k,
|
|
2902
2922
|
bodyCellWrapperStyle: C,
|
|
2903
2923
|
headerGroupRowClassName: X,
|
|
2904
|
-
headerGroupRowStyle:
|
|
2905
|
-
headerGroupCellClassName:
|
|
2924
|
+
headerGroupRowStyle: D,
|
|
2925
|
+
headerGroupCellClassName: Q,
|
|
2906
2926
|
headerGroupCellStyle: fe,
|
|
2907
2927
|
headerGroupCellWrapperClassName: ie,
|
|
2908
2928
|
headerGroupCellWrapperStyle: K,
|
|
2909
2929
|
noDataRender: ne,
|
|
2910
|
-
recalculateRowHeight:
|
|
2930
|
+
recalculateRowHeight: L,
|
|
2911
2931
|
sorting: ce,
|
|
2912
2932
|
defaultSorting: ye,
|
|
2913
2933
|
resizeThrottle: pe
|
|
@@ -2915,11 +2935,11 @@ function pt(t) {
|
|
|
2915
2935
|
return /* @__PURE__ */ l.jsxs(
|
|
2916
2936
|
"table",
|
|
2917
2937
|
{
|
|
2918
|
-
className: `radar-table ${r || ""} ${
|
|
2938
|
+
className: `radar-table ${r || ""} ${b}`,
|
|
2919
2939
|
style: {
|
|
2920
2940
|
tableLayout: c ? "fixed" : "auto",
|
|
2921
2941
|
width: c ? "max-content" : "auto",
|
|
2922
|
-
...
|
|
2942
|
+
...m
|
|
2923
2943
|
},
|
|
2924
2944
|
children: [
|
|
2925
2945
|
/* @__PURE__ */ l.jsx(
|
|
@@ -2931,21 +2951,21 @@ function pt(t) {
|
|
|
2931
2951
|
resizeable: c,
|
|
2932
2952
|
onResize: E,
|
|
2933
2953
|
onResizeStart: q,
|
|
2934
|
-
onResizeFrame:
|
|
2935
|
-
onResizeEnd:
|
|
2936
|
-
sortIcon:
|
|
2954
|
+
onResizeFrame: P,
|
|
2955
|
+
onResizeEnd: N,
|
|
2956
|
+
sortIcon: ee,
|
|
2937
2957
|
preset: r,
|
|
2938
2958
|
headerClassName: j,
|
|
2939
|
-
headerStyle:
|
|
2940
|
-
headerRowClassName:
|
|
2959
|
+
headerStyle: R,
|
|
2960
|
+
headerRowClassName: F,
|
|
2941
2961
|
headerRowStyle: H,
|
|
2942
|
-
headerCellClassName:
|
|
2962
|
+
headerCellClassName: M,
|
|
2943
2963
|
headerCellStyle: G,
|
|
2944
|
-
headerCellWrapperClassName:
|
|
2964
|
+
headerCellWrapperClassName: te,
|
|
2945
2965
|
headerCellWrapperStyle: I,
|
|
2946
2966
|
headerGroupRowClassName: X,
|
|
2947
|
-
headerGroupRowStyle:
|
|
2948
|
-
headerGroupCellClassName:
|
|
2967
|
+
headerGroupRowStyle: D,
|
|
2968
|
+
headerGroupCellClassName: Q,
|
|
2949
2969
|
headerGroupCellStyle: fe,
|
|
2950
2970
|
headerGroupCellWrapperClassName: ie,
|
|
2951
2971
|
headerGroupCellWrapperStyle: K,
|
|
@@ -2969,22 +2989,22 @@ function pt(t) {
|
|
|
2969
2989
|
preset: r,
|
|
2970
2990
|
customCellRender: g,
|
|
2971
2991
|
expandIcon: S,
|
|
2972
|
-
treeMode:
|
|
2992
|
+
treeMode: W,
|
|
2973
2993
|
expandedRowKeys: ae,
|
|
2974
|
-
defaultExpandedRowKeys:
|
|
2994
|
+
defaultExpandedRowKeys: p,
|
|
2975
2995
|
onExpandedRowsChange: _,
|
|
2976
|
-
indentSize:
|
|
2977
|
-
bodyClassName:
|
|
2996
|
+
indentSize: y,
|
|
2997
|
+
bodyClassName: z,
|
|
2978
2998
|
bodyStyle: V,
|
|
2979
|
-
bodyRowClassName:
|
|
2999
|
+
bodyRowClassName: $,
|
|
2980
3000
|
bodyRowStyle: le,
|
|
2981
|
-
bodyCellClassName:
|
|
3001
|
+
bodyCellClassName: A,
|
|
2982
3002
|
bodyCellStyle: O,
|
|
2983
3003
|
bodyCellWrapperClassName: k,
|
|
2984
3004
|
bodyCellWrapperStyle: C,
|
|
2985
3005
|
noDataRender: ne,
|
|
2986
3006
|
scrollContainerRef: h,
|
|
2987
|
-
recalculateRowHeight:
|
|
3007
|
+
recalculateRowHeight: L,
|
|
2988
3008
|
virtualization: t.virtualization
|
|
2989
3009
|
}
|
|
2990
3010
|
)
|
|
@@ -2992,7 +3012,7 @@ function pt(t) {
|
|
|
2992
3012
|
}
|
|
2993
3013
|
);
|
|
2994
3014
|
}
|
|
2995
|
-
const
|
|
3015
|
+
const yt = ({ children: t, tagType: i = "h1", ...r }) => {
|
|
2996
3016
|
if (i === "h1")
|
|
2997
3017
|
return /* @__PURE__ */ l.jsx(
|
|
2998
3018
|
"h1",
|
|
@@ -3047,7 +3067,7 @@ const mt = ({ children: t, tagType: i = "h1", ...r }) => {
|
|
|
3047
3067
|
children: t
|
|
3048
3068
|
}
|
|
3049
3069
|
);
|
|
3050
|
-
},
|
|
3070
|
+
}, br = ({ children: t, tagType: i = "h2", ...r }) => {
|
|
3051
3071
|
if (i === "h1")
|
|
3052
3072
|
return /* @__PURE__ */ l.jsx(
|
|
3053
3073
|
"h1",
|
|
@@ -3102,10 +3122,10 @@ const mt = ({ children: t, tagType: i = "h1", ...r }) => {
|
|
|
3102
3122
|
children: t
|
|
3103
3123
|
}
|
|
3104
3124
|
);
|
|
3105
|
-
}, kr = Object.assign(
|
|
3125
|
+
}, kr = Object.assign(yt, { H1: yt, H2: br }), vt = ({ children: t, fontStyle: i = "medium", ...r }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_m radar-text_${i}`, ...r, children: t }), xr = ({ children: t, fontStyle: i = "medium", ...r }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_s radar-text_${i}`, ...r, children: t }), jr = Object.assign(vt, { M: vt, S: xr });
|
|
3106
3126
|
export {
|
|
3107
3127
|
Qt as HeaderCell,
|
|
3108
|
-
|
|
3128
|
+
pt as Pagination,
|
|
3109
3129
|
jr as RadarText,
|
|
3110
3130
|
kr as RadarTitle,
|
|
3111
3131
|
Sr as Table,
|