radar-ui 1.1.13 → 1.1.14
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/Table.d.ts +1 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/TableBody.d.ts +2 -1
- package/dist/components/Table/TableBody.d.ts.map +1 -1
- package/dist/index.js +792 -791
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18,18 +18,18 @@ var De = { exports: {} }, pe = {};
|
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
20
|
var Be;
|
|
21
|
-
function
|
|
21
|
+
function Nt() {
|
|
22
22
|
if (Be) return pe;
|
|
23
23
|
Be = 1;
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
var P,
|
|
24
|
+
var t = Xe, a = Symbol.for("react.element"), c = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function k(S, _, F) {
|
|
26
|
+
var P, I = {}, M = null, K = null;
|
|
27
27
|
F !== void 0 && (M = "" + F), _.key !== void 0 && (M = "" + _.key), _.ref !== void 0 && (K = _.ref);
|
|
28
|
-
for (P in _) s.call(_, P) && !
|
|
29
|
-
if (S && S.defaultProps) for (P in _ = S.defaultProps, _)
|
|
30
|
-
return { $$typeof: a, type: S, key: M, ref: K, props:
|
|
28
|
+
for (P in _) s.call(_, P) && !y.hasOwnProperty(P) && (I[P] = _[P]);
|
|
29
|
+
if (S && S.defaultProps) for (P in _ = S.defaultProps, _) I[P] === void 0 && (I[P] = _[P]);
|
|
30
|
+
return { $$typeof: a, type: S, key: M, ref: K, props: I, _owner: T.current };
|
|
31
31
|
}
|
|
32
|
-
return pe.Fragment = c, pe.jsx =
|
|
32
|
+
return pe.Fragment = c, pe.jsx = k, pe.jsxs = k, pe;
|
|
33
33
|
}
|
|
34
34
|
var xe = {};
|
|
35
35
|
/**
|
|
@@ -41,27 +41,27 @@ var xe = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
var
|
|
48
|
-
function
|
|
44
|
+
var He;
|
|
45
|
+
function It() {
|
|
46
|
+
return He || (He = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var t = Xe, a = Symbol.for("react.element"), c = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), S = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), K = Symbol.for("react.offscreen"), Y = Symbol.iterator, H = "@@iterator";
|
|
48
|
+
function j(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var n = Y && e[Y] || e[
|
|
51
|
+
var n = Y && e[Y] || e[H];
|
|
52
52
|
return typeof n == "function" ? n : null;
|
|
53
53
|
}
|
|
54
|
-
var u =
|
|
55
|
-
function
|
|
54
|
+
var u = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
+
function r(e) {
|
|
56
56
|
{
|
|
57
|
-
for (var n = arguments.length, l = new Array(n > 1 ? n - 1 : 0),
|
|
58
|
-
l[
|
|
57
|
+
for (var n = arguments.length, l = new Array(n > 1 ? n - 1 : 0), D = 1; D < n; D++)
|
|
58
|
+
l[D - 1] = arguments[D];
|
|
59
59
|
i("error", e, l);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
function i(e, n, l) {
|
|
63
63
|
{
|
|
64
|
-
var
|
|
64
|
+
var D = u.ReactDebugCurrentFrame, B = D.getStackAddendum();
|
|
65
65
|
B !== "" && (n += "%s", l = l.concat([B]));
|
|
66
66
|
var Z = l.map(function(A) {
|
|
67
67
|
return String(A);
|
|
@@ -69,19 +69,19 @@ function Nt() {
|
|
|
69
69
|
Z.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, Z);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var d = !1, v = !1, x = !1, p = !1, b = !1, m;
|
|
73
73
|
m = Symbol.for("react.module.reference");
|
|
74
74
|
function $(e) {
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e ===
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || b || e === T || e === F || e === P || p || e === K || d || v || x || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === I || e.$$typeof === k || e.$$typeof === S || e.$$typeof === _ || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
79
|
e.$$typeof === m || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
81
|
function W(e, n, l) {
|
|
82
|
-
var
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
82
|
+
var D = e.displayName;
|
|
83
|
+
if (D)
|
|
84
|
+
return D;
|
|
85
85
|
var B = n.displayName || n.name || "";
|
|
86
86
|
return B !== "" ? l + "(" + B + ")" : l;
|
|
87
87
|
}
|
|
@@ -91,7 +91,7 @@ function Nt() {
|
|
|
91
91
|
function z(e) {
|
|
92
92
|
if (e == null)
|
|
93
93
|
return null;
|
|
94
|
-
if (typeof e.tag == "number" &&
|
|
94
|
+
if (typeof e.tag == "number" && r("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
95
95
|
return e.displayName || e.name || null;
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
@@ -100,9 +100,9 @@ function Nt() {
|
|
|
100
100
|
return "Fragment";
|
|
101
101
|
case c:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case y:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case
|
|
105
|
+
case T:
|
|
106
106
|
return "StrictMode";
|
|
107
107
|
case F:
|
|
108
108
|
return "Suspense";
|
|
@@ -114,14 +114,14 @@ function Nt() {
|
|
|
114
114
|
case S:
|
|
115
115
|
var n = e;
|
|
116
116
|
return V(n) + ".Consumer";
|
|
117
|
-
case
|
|
117
|
+
case k:
|
|
118
118
|
var l = e;
|
|
119
119
|
return V(l._context) + ".Provider";
|
|
120
120
|
case _:
|
|
121
121
|
return W(e, e.render, "ForwardRef");
|
|
122
|
-
case
|
|
123
|
-
var
|
|
124
|
-
return
|
|
122
|
+
case I:
|
|
123
|
+
var D = e.displayName || null;
|
|
124
|
+
return D !== null ? D : z(e.type) || "Memo";
|
|
125
125
|
case M: {
|
|
126
126
|
var B = e, Z = B._payload, A = B._init;
|
|
127
127
|
try {
|
|
@@ -133,18 +133,18 @@ function Nt() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var q = Object.assign,
|
|
137
|
-
function
|
|
136
|
+
var q = Object.assign, U = 0, re, h, R, f, w, O, C;
|
|
137
|
+
function g() {
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
function
|
|
139
|
+
g.__reactDisabledLog = !0;
|
|
140
|
+
function J() {
|
|
141
141
|
{
|
|
142
|
-
if (
|
|
143
|
-
|
|
142
|
+
if (U === 0) {
|
|
143
|
+
re = console.log, h = console.info, R = console.warn, f = console.error, w = console.group, O = console.groupCollapsed, C = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
147
|
-
value:
|
|
147
|
+
value: g,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
@@ -157,12 +157,12 @@ function Nt() {
|
|
|
157
157
|
groupEnd: e
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
U++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function X() {
|
|
164
164
|
{
|
|
165
|
-
if (
|
|
165
|
+
if (U--, U === 0) {
|
|
166
166
|
var e = {
|
|
167
167
|
configurable: !0,
|
|
168
168
|
enumerable: !0,
|
|
@@ -170,43 +170,43 @@ function Nt() {
|
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
172
|
log: q({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: re
|
|
174
174
|
}),
|
|
175
175
|
info: q({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: h
|
|
177
177
|
}),
|
|
178
178
|
warn: q({}, e, {
|
|
179
|
-
value:
|
|
179
|
+
value: R
|
|
180
180
|
}),
|
|
181
181
|
error: q({}, e, {
|
|
182
|
-
value:
|
|
182
|
+
value: f
|
|
183
183
|
}),
|
|
184
184
|
group: q({}, e, {
|
|
185
|
-
value:
|
|
185
|
+
value: w
|
|
186
186
|
}),
|
|
187
187
|
groupCollapsed: q({}, e, {
|
|
188
|
-
value:
|
|
188
|
+
value: O
|
|
189
189
|
}),
|
|
190
190
|
groupEnd: q({}, e, {
|
|
191
|
-
value:
|
|
191
|
+
value: C
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
U < 0 && r("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var Q = u.ReactCurrentDispatcher, E;
|
|
199
|
+
function L(e, n, l) {
|
|
200
200
|
{
|
|
201
|
-
if (
|
|
201
|
+
if (E === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
204
|
} catch (B) {
|
|
205
|
-
var
|
|
206
|
-
|
|
205
|
+
var D = B.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
+
E = D && D[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
|
-
` +
|
|
209
|
+
` + E + e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
var oe = !1, se;
|
|
@@ -222,12 +222,12 @@ function Nt() {
|
|
|
222
222
|
if (l !== void 0)
|
|
223
223
|
return l;
|
|
224
224
|
}
|
|
225
|
-
var
|
|
225
|
+
var D;
|
|
226
226
|
oe = !0;
|
|
227
227
|
var B = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var Z;
|
|
230
|
-
Z =
|
|
230
|
+
Z = Q.current, Q.current = null, J();
|
|
231
231
|
try {
|
|
232
232
|
if (n) {
|
|
233
233
|
var A = function() {
|
|
@@ -241,14 +241,14 @@ function Nt() {
|
|
|
241
241
|
try {
|
|
242
242
|
Reflect.construct(A, []);
|
|
243
243
|
} catch (ie) {
|
|
244
|
-
|
|
244
|
+
D = ie;
|
|
245
245
|
}
|
|
246
246
|
Reflect.construct(e, [], A);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
A.call();
|
|
250
250
|
} catch (ie) {
|
|
251
|
-
|
|
251
|
+
D = ie;
|
|
252
252
|
}
|
|
253
253
|
e.call(A.prototype);
|
|
254
254
|
}
|
|
@@ -256,33 +256,33 @@ function Nt() {
|
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
258
|
} catch (ie) {
|
|
259
|
-
|
|
259
|
+
D = ie;
|
|
260
260
|
}
|
|
261
261
|
e();
|
|
262
262
|
}
|
|
263
263
|
} catch (ie) {
|
|
264
|
-
if (ie &&
|
|
265
|
-
for (var
|
|
266
|
-
`), ae =
|
|
267
|
-
`),
|
|
268
|
-
|
|
269
|
-
for (;
|
|
270
|
-
if (
|
|
271
|
-
if (
|
|
264
|
+
if (ie && D && typeof ie.stack == "string") {
|
|
265
|
+
for (var N = ie.stack.split(`
|
|
266
|
+
`), ae = D.stack.split(`
|
|
267
|
+
`), ee = N.length - 1, te = ae.length - 1; ee >= 1 && te >= 0 && N[ee] !== ae[te]; )
|
|
268
|
+
te--;
|
|
269
|
+
for (; ee >= 1 && te >= 0; ee--, te--)
|
|
270
|
+
if (N[ee] !== ae[te]) {
|
|
271
|
+
if (ee !== 1 || te !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (
|
|
273
|
+
if (ee--, te--, te < 0 || N[ee] !== ae[te]) {
|
|
274
274
|
var le = `
|
|
275
|
-
` +
|
|
275
|
+
` + N[ee].replace(" at new ", " at ");
|
|
276
276
|
return e.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", e.displayName)), typeof e == "function" && se.set(e, le), le;
|
|
277
277
|
}
|
|
278
|
-
while (
|
|
278
|
+
while (ee >= 1 && te >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
oe = !1,
|
|
283
|
+
oe = !1, Q.current = Z, X(), Error.prepareStackTrace = B;
|
|
284
284
|
}
|
|
285
|
-
var ge = e ? e.displayName || e.name : "", fe = ge ?
|
|
285
|
+
var ge = e ? e.displayName || e.name : "", fe = ge ? L(ge) : "";
|
|
286
286
|
return typeof e == "function" && se.set(e, fe), fe;
|
|
287
287
|
}
|
|
288
288
|
function de(e, n, l) {
|
|
@@ -298,21 +298,21 @@ function Nt() {
|
|
|
298
298
|
if (typeof e == "function")
|
|
299
299
|
return ne(e, we(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return L(e);
|
|
302
302
|
switch (e) {
|
|
303
303
|
case F:
|
|
304
|
-
return
|
|
304
|
+
return L("Suspense");
|
|
305
305
|
case P:
|
|
306
|
-
return
|
|
306
|
+
return L("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
310
|
case _:
|
|
311
311
|
return de(e.render);
|
|
312
|
-
case
|
|
312
|
+
case I:
|
|
313
313
|
return be(e.type, n, l);
|
|
314
314
|
case M: {
|
|
315
|
-
var
|
|
315
|
+
var D = e, B = D._payload, Z = D._init;
|
|
316
316
|
try {
|
|
317
317
|
return be(Z(B), n, l);
|
|
318
318
|
} catch {
|
|
@@ -329,22 +329,22 @@ function Nt() {
|
|
|
329
329
|
} else
|
|
330
330
|
Pe.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function et(e, n, l,
|
|
332
|
+
function et(e, n, l, D, B) {
|
|
333
333
|
{
|
|
334
334
|
var Z = Function.call.bind(ve);
|
|
335
335
|
for (var A in e)
|
|
336
336
|
if (Z(e, A)) {
|
|
337
|
-
var
|
|
337
|
+
var N = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof e[A] != "function") {
|
|
340
|
-
var ae = Error((
|
|
340
|
+
var ae = Error((D || "React class") + ": " + l + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
341
|
throw ae.name = "Invariant Violation", ae;
|
|
342
342
|
}
|
|
343
|
-
|
|
344
|
-
} catch (
|
|
345
|
-
|
|
343
|
+
N = e[A](n, A, D, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
|
+
} catch (ee) {
|
|
345
|
+
N = ee;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
N && !(N instanceof Error) && (_e(B), r("%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).", D || "React class", l, A, typeof N), _e(null)), N instanceof Error && !(N.message in Te) && (Te[N.message] = !0, _e(B), r("Failed %s type: %s", l, N.message), _e(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -370,14 +370,14 @@ function Nt() {
|
|
|
370
370
|
}
|
|
371
371
|
function Le(e) {
|
|
372
372
|
if (nt(e))
|
|
373
|
-
return
|
|
373
|
+
return r("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rt(e)), Oe(e);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var Ne = u.ReactCurrentOwner, at = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
|
-
},
|
|
380
|
+
}, Ie, $e;
|
|
381
381
|
function ot(e) {
|
|
382
382
|
if (ve.call(e, "ref")) {
|
|
383
383
|
var n = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -395,12 +395,12 @@ function Nt() {
|
|
|
395
395
|
return e.key !== void 0;
|
|
396
396
|
}
|
|
397
397
|
function st(e, n) {
|
|
398
|
-
typeof e.ref == "string" &&
|
|
398
|
+
typeof e.ref == "string" && Ne.current;
|
|
399
399
|
}
|
|
400
400
|
function lt(e, n) {
|
|
401
401
|
{
|
|
402
402
|
var l = function() {
|
|
403
|
-
|
|
403
|
+
Ie || (Ie = !0, r("%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)", n));
|
|
404
404
|
};
|
|
405
405
|
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: l,
|
|
@@ -411,7 +411,7 @@ function Nt() {
|
|
|
411
411
|
function ct(e, n) {
|
|
412
412
|
{
|
|
413
413
|
var l = function() {
|
|
414
|
-
$e || ($e = !0,
|
|
414
|
+
$e || ($e = !0, r("%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)", n));
|
|
415
415
|
};
|
|
416
416
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: l,
|
|
@@ -419,8 +419,8 @@ function Nt() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var dt = function(e, n, l,
|
|
423
|
-
var
|
|
422
|
+
var dt = function(e, n, l, D, B, Z, A) {
|
|
423
|
+
var N = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: a,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
@@ -431,39 +431,39 @@ function Nt() {
|
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: Z
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return N._store = {}, Object.defineProperty(N._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(N, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
443
|
+
value: D
|
|
444
|
+
}), Object.defineProperty(N, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
448
|
value: B
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
449
|
+
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
450
450
|
};
|
|
451
|
-
function ut(e, n, l,
|
|
451
|
+
function ut(e, n, l, D, B) {
|
|
452
452
|
{
|
|
453
|
-
var Z, A = {},
|
|
454
|
-
l !== void 0 && (Le(l),
|
|
453
|
+
var Z, A = {}, N = null, ae = null;
|
|
454
|
+
l !== void 0 && (Le(l), N = "" + l), it(n) && (Le(n.key), N = "" + n.key), ot(n) && (ae = n.ref, st(n, B));
|
|
455
455
|
for (Z in n)
|
|
456
456
|
ve.call(n, Z) && !at.hasOwnProperty(Z) && (A[Z] = n[Z]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (Z in
|
|
460
|
-
A[Z] === void 0 && (A[Z] =
|
|
458
|
+
var ee = e.defaultProps;
|
|
459
|
+
for (Z in ee)
|
|
460
|
+
A[Z] === void 0 && (A[Z] = ee[Z]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
463
|
-
var
|
|
464
|
-
|
|
462
|
+
if (N || ae) {
|
|
463
|
+
var te = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
N && lt(A, te), ae && ct(A, te);
|
|
465
465
|
}
|
|
466
|
-
return dt(e,
|
|
466
|
+
return dt(e, N, ae, B, D, Ne.current, A);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var je = u.ReactCurrentOwner, Fe = u.ReactDebugCurrentFrame;
|
|
@@ -516,8 +516,8 @@ Check the top-level render call using <` + l + ">.");
|
|
|
516
516
|
if (Ae[l])
|
|
517
517
|
return;
|
|
518
518
|
Ae[l] = !0;
|
|
519
|
-
var
|
|
520
|
-
e && e._owner && e._owner !== je.current && (
|
|
519
|
+
var D = "";
|
|
520
|
+
e && e._owner && e._owner !== je.current && (D = " It was passed a child from " + z(e._owner.type) + "."), he(e), r('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, D), he(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
function Ve(e, n) {
|
|
@@ -526,13 +526,13 @@ Check the top-level render call using <` + l + ">.");
|
|
|
526
526
|
return;
|
|
527
527
|
if (Ee(e))
|
|
528
528
|
for (var l = 0; l < e.length; l++) {
|
|
529
|
-
var
|
|
530
|
-
Se(
|
|
529
|
+
var D = e[l];
|
|
530
|
+
Se(D) && Me(D, n);
|
|
531
531
|
}
|
|
532
532
|
else if (Se(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var B =
|
|
535
|
+
var B = j(e);
|
|
536
536
|
if (typeof B == "function" && B !== e.entries)
|
|
537
537
|
for (var Z = B.call(e), A; !(A = Z.next()).done; )
|
|
538
538
|
Se(A.value) && Me(A.value, n);
|
|
@@ -549,58 +549,58 @@ Check the top-level render call using <` + l + ">.");
|
|
|
549
549
|
l = n.propTypes;
|
|
550
550
|
else if (typeof n == "object" && (n.$$typeof === _ || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
|
-
n.$$typeof ===
|
|
552
|
+
n.$$typeof === I))
|
|
553
553
|
l = n.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
556
|
if (l) {
|
|
557
|
-
var
|
|
558
|
-
et(l, e.props, "prop",
|
|
557
|
+
var D = z(n);
|
|
558
|
+
et(l, e.props, "prop", D, e);
|
|
559
559
|
} else if (n.PropTypes !== void 0 && !ke) {
|
|
560
560
|
ke = !0;
|
|
561
561
|
var B = z(n);
|
|
562
|
-
|
|
562
|
+
r("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved &&
|
|
564
|
+
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && r("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function vt(e) {
|
|
568
568
|
{
|
|
569
569
|
for (var n = Object.keys(e.props), l = 0; l < n.length; l++) {
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
he(e),
|
|
570
|
+
var D = n[l];
|
|
571
|
+
if (D !== "children" && D !== "key") {
|
|
572
|
+
he(e), r("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), he(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (he(e),
|
|
576
|
+
e.ref !== null && (he(e), r("Invalid attribute `ref` supplied to `React.Fragment`."), he(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ze = {};
|
|
580
|
-
function Ke(e, n, l,
|
|
580
|
+
function Ke(e, n, l, D, B, Z) {
|
|
581
581
|
{
|
|
582
582
|
var A = $(e);
|
|
583
583
|
if (!A) {
|
|
584
|
-
var
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
584
|
+
var N = "";
|
|
585
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
586
|
var ae = ft();
|
|
587
|
-
ae ?
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
587
|
+
ae ? N += ae : N += We();
|
|
588
|
+
var ee;
|
|
589
|
+
e === null ? ee = "null" : Ee(e) ? ee = "array" : e !== void 0 && e.$$typeof === a ? (ee = "<" + (z(e.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof e, r("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, N);
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
591
|
+
var te = ut(e, n, l, B, Z);
|
|
592
|
+
if (te == null)
|
|
593
|
+
return te;
|
|
594
594
|
if (A) {
|
|
595
595
|
var le = n.children;
|
|
596
596
|
if (le !== void 0)
|
|
597
|
-
if (
|
|
597
|
+
if (D)
|
|
598
598
|
if (Ee(le)) {
|
|
599
599
|
for (var ge = 0; ge < le.length; ge++)
|
|
600
600
|
Ve(le[ge], e);
|
|
601
601
|
Object.freeze && Object.freeze(le);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
r("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
605
|
Ve(le, e);
|
|
606
606
|
}
|
|
@@ -610,7 +610,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
610
610
|
}), Re = ie.length > 0 ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
611
|
if (!ze[fe + Re]) {
|
|
612
612
|
var _t = ie.length > 0 ? "{" + ie.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
-
|
|
613
|
+
r(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
616
616
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -618,7 +618,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
618
618
|
<%s key={someKey} {...props} />`, Re, fe, _t, fe), ze[fe + Re] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e === s ? vt(
|
|
621
|
+
return e === s ? vt(te) : gt(te), te;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function pt(e, n, l) {
|
|
@@ -631,50 +631,50 @@ React keys must be passed directly to JSX without using spread:
|
|
|
631
631
|
xe.Fragment = s, xe.jsx = yt, xe.jsxs = bt;
|
|
632
632
|
}()), xe;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ? De.exports =
|
|
634
|
+
process.env.NODE_ENV === "production" ? De.exports = Nt() : De.exports = It();
|
|
635
635
|
var o = De.exports;
|
|
636
|
-
const $t = ({ column:
|
|
637
|
-
const [
|
|
638
|
-
if (!
|
|
639
|
-
const
|
|
640
|
-
let
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
if (
|
|
644
|
-
const q =
|
|
645
|
-
|
|
646
|
-
}, 16)),
|
|
647
|
-
}, [
|
|
648
|
-
|
|
649
|
-
}, [
|
|
650
|
-
|
|
636
|
+
const $t = ({ column: t, currWidth: a, currMinWidth: c, onResize: s, scrollContainerRef: T }) => {
|
|
637
|
+
const [y, k] = ce(!1), [S, _] = ce(null), [F, P] = ce(0), [I, M] = ce(0), K = ye(null), Y = ye(0), H = ye(!1), j = ye(null), u = G((d) => {
|
|
638
|
+
if (!y || !S || !t) return;
|
|
639
|
+
const v = d.clientX - F;
|
|
640
|
+
let x = Math.min((t == null ? void 0 : t.maxWidth) || 9999999, I + v);
|
|
641
|
+
const p = T == null ? void 0 : T.current, b = -10, m = 10, $ = d.clientX, W = p == null ? void 0 : p.getBoundingClientRect(), V = W == null ? void 0 : W.right;
|
|
642
|
+
p && V && V - $ < b && !H.current && (H.current = !0, Y.current = x, K.current = setInterval(() => {
|
|
643
|
+
if (t != null && t.maxWidth && Y.current >= (t == null ? void 0 : t.maxWidth)) return;
|
|
644
|
+
const q = p.scrollWidth - p.clientWidth + m;
|
|
645
|
+
p.scrollLeft < q ? (p.scrollLeft += m, Y.current += m, console.log("Calling onResize with width:", Y.current), s == null || s(S, Y.current)) : (console.log("Max scroll reached, but continuing to resize"), Y.current += m, s == null || s(S, Y.current));
|
|
646
|
+
}, 16)), H.current || s == null || s(S, x);
|
|
647
|
+
}, [y, F, I, S, s, T]), r = G((d) => {
|
|
648
|
+
y && (S && d.clientX - F, K.current && (console.log("Stopping auto scroll on mouse up"), clearInterval(K.current), K.current = null), H.current = !1, k(!1), P(0), M(0), _(null), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", r));
|
|
649
|
+
}, [y, S, F, I, u]), i = G((d, v, x) => {
|
|
650
|
+
d.preventDefault(), k(!0), P(d.clientX), M(x), _(v);
|
|
651
651
|
}, []);
|
|
652
652
|
return Ce(() => {
|
|
653
|
-
|
|
654
|
-
}, [
|
|
655
|
-
document.removeEventListener("mousemove", u), document.removeEventListener("mouseup",
|
|
656
|
-
}, [u,
|
|
653
|
+
y && (document.addEventListener("mousemove", u), document.addEventListener("mouseup", r));
|
|
654
|
+
}, [y, u, r]), Ce(() => () => {
|
|
655
|
+
document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", r);
|
|
656
|
+
}, [u, r]), /* @__PURE__ */ o.jsx(
|
|
657
657
|
"button",
|
|
658
658
|
{
|
|
659
|
-
ref:
|
|
659
|
+
ref: j,
|
|
660
660
|
className: "radar-table__resize-button",
|
|
661
|
-
onMouseDown: (
|
|
661
|
+
onMouseDown: (d) => i(d, t.key, a || c || 200),
|
|
662
662
|
title: "Изменить ширину колонки",
|
|
663
663
|
children: /* @__PURE__ */ o.jsx("div", {})
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
|
-
}, Ft = ({ text:
|
|
667
|
-
const [c, s] = ce(!1), [
|
|
668
|
-
if (
|
|
669
|
-
const _ =
|
|
670
|
-
M < P +
|
|
666
|
+
}, Ft = ({ text: t, children: a }) => {
|
|
667
|
+
const [c, s] = ce(!1), [T, y] = ce("left"), k = ye(null), S = () => {
|
|
668
|
+
if (k.current) {
|
|
669
|
+
const _ = k.current.getBoundingClientRect(), F = window.innerWidth, P = 250, I = 20, M = F - _.left, K = _.right;
|
|
670
|
+
M < P + I && K > P + I ? y("right") : y("left");
|
|
671
671
|
}
|
|
672
672
|
s(!0);
|
|
673
673
|
};
|
|
674
674
|
return /* @__PURE__ */ o.jsxs(
|
|
675
675
|
"button",
|
|
676
676
|
{
|
|
677
|
-
ref:
|
|
677
|
+
ref: k,
|
|
678
678
|
className: "radar-table__tooltip-button",
|
|
679
679
|
onMouseOver: S,
|
|
680
680
|
onMouseOut: () => s(!1),
|
|
@@ -686,26 +686,26 @@ const $t = ({ column: r, currWidth: a, currMinWidth: c, onResize: s, scrollConta
|
|
|
686
686
|
/* @__PURE__ */ o.jsx(
|
|
687
687
|
"div",
|
|
688
688
|
{
|
|
689
|
-
className: `radar-table__tooltip-text ${c ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${
|
|
690
|
-
children:
|
|
689
|
+
className: `radar-table__tooltip-text ${c ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${T}`,
|
|
690
|
+
children: t
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
693
|
]
|
|
694
694
|
}
|
|
695
695
|
);
|
|
696
696
|
}, Qe = Ct(null), Wt = () => {
|
|
697
|
-
const
|
|
698
|
-
return
|
|
697
|
+
const t = wt(Qe);
|
|
698
|
+
return t || {
|
|
699
699
|
activeColumn: null,
|
|
700
700
|
isValidDropZone: () => !1
|
|
701
701
|
};
|
|
702
702
|
};
|
|
703
703
|
function At({
|
|
704
|
-
children:
|
|
704
|
+
children: t,
|
|
705
705
|
fullConfig: a,
|
|
706
706
|
onColumnReorder: c
|
|
707
707
|
}) {
|
|
708
|
-
const [s,
|
|
708
|
+
const [s, T] = ce(null), y = Et(
|
|
709
709
|
Ye(jt, {
|
|
710
710
|
activationConstraint: {
|
|
711
711
|
distance: 5
|
|
@@ -715,71 +715,71 @@ function At({
|
|
|
715
715
|
Ye(kt, {
|
|
716
716
|
coordinateGetter: Lt
|
|
717
717
|
})
|
|
718
|
-
),
|
|
719
|
-
const u = St(
|
|
718
|
+
), k = G((j) => {
|
|
719
|
+
const u = St(j);
|
|
720
720
|
if (u.length > 0) {
|
|
721
|
-
const
|
|
722
|
-
(
|
|
721
|
+
const d = u.filter(
|
|
722
|
+
(v) => v.id.toString().startsWith("drop-zone-")
|
|
723
723
|
);
|
|
724
|
-
if (
|
|
725
|
-
return console.log("🎯 Pointer collision found:",
|
|
724
|
+
if (d.length > 0)
|
|
725
|
+
return console.log("🎯 Pointer collision found:", d[0].id), d;
|
|
726
726
|
}
|
|
727
|
-
const i = Rt(
|
|
728
|
-
(
|
|
727
|
+
const i = Rt(j).filter(
|
|
728
|
+
(d) => d.id.toString().startsWith("drop-zone-")
|
|
729
729
|
);
|
|
730
730
|
return i.length > 0 ? (console.log("📦 Rect collision found:", i[0].id), [i[0]]) : [];
|
|
731
|
-
}, []), S = G((
|
|
732
|
-
const
|
|
733
|
-
for (const
|
|
734
|
-
if (
|
|
735
|
-
return { column:
|
|
736
|
-
if (
|
|
737
|
-
const
|
|
738
|
-
if (
|
|
731
|
+
}, []), S = G((j) => j.some((u) => u.children && u.children.length > 0), []), _ = G((j, u) => {
|
|
732
|
+
const r = (i, d, v = 0, x = null) => {
|
|
733
|
+
for (const p of i) {
|
|
734
|
+
if (p.key === d)
|
|
735
|
+
return { column: p, parent: x, level: v };
|
|
736
|
+
if (p.children && p.children.length > 0) {
|
|
737
|
+
const b = r(p.children, d, v + 1, p);
|
|
738
|
+
if (b) return b;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
return null;
|
|
742
742
|
};
|
|
743
|
-
return
|
|
744
|
-
}, []), F = G((
|
|
743
|
+
return r(j, u);
|
|
744
|
+
}, []), F = G((j, u) => {
|
|
745
745
|
var i;
|
|
746
|
-
const
|
|
747
|
-
return
|
|
748
|
-
}, [_]), P = G((
|
|
749
|
-
var
|
|
750
|
-
if (
|
|
746
|
+
const r = _(u, j);
|
|
747
|
+
return r && (r.column.fixed || ((i = r.parent) == null ? void 0 : i.fixed)) || !1;
|
|
748
|
+
}, [_]), P = G((j, u) => {
|
|
749
|
+
var d, v, x, p;
|
|
750
|
+
if (j.columnKey === u.columnKey)
|
|
751
751
|
return !1;
|
|
752
|
-
const
|
|
753
|
-
if (
|
|
752
|
+
const r = F(j.columnKey, a), i = F(u.columnKey, a);
|
|
753
|
+
if (r !== i)
|
|
754
754
|
return console.log("❌ Drop rejected: fixed status mismatch", {
|
|
755
|
-
draggedFixed:
|
|
755
|
+
draggedFixed: r,
|
|
756
756
|
targetFixed: i
|
|
757
757
|
}), !1;
|
|
758
758
|
if (S(a)) {
|
|
759
|
-
const
|
|
760
|
-
if (!
|
|
759
|
+
const b = _(a, j.columnKey), m = _(a, u.columnKey);
|
|
760
|
+
if (!b || !m)
|
|
761
761
|
return console.log("❌ Drop rejected: column info not found"), !1;
|
|
762
|
-
const $ =
|
|
762
|
+
const $ = j.isLeaf, W = u.isLeaf;
|
|
763
763
|
if (!$ && !W) {
|
|
764
|
-
const V =
|
|
764
|
+
const V = b.level === m.level, z = b.parent === null && m.parent === null || b.parent !== null && m.parent !== null && b.parent.key === m.parent.key;
|
|
765
765
|
return console.log("🔄 Group to group validation:", {
|
|
766
766
|
sameLevel: V,
|
|
767
767
|
sameParentLevel: z,
|
|
768
|
-
draggedLevel:
|
|
768
|
+
draggedLevel: b.level,
|
|
769
769
|
targetLevel: m.level,
|
|
770
|
-
draggedParent: (
|
|
771
|
-
targetParent: (
|
|
770
|
+
draggedParent: (d = b.parent) == null ? void 0 : d.key,
|
|
771
|
+
targetParent: (v = m.parent) == null ? void 0 : v.key
|
|
772
772
|
}), V && z;
|
|
773
773
|
}
|
|
774
774
|
if ($ && W) {
|
|
775
|
-
const V =
|
|
775
|
+
const V = b.level === m.level, z = b.parent === null && m.parent === null || b.parent !== null && m.parent !== null && b.parent.key === m.parent.key;
|
|
776
776
|
return console.log("🍃 Leaf to leaf validation:", {
|
|
777
777
|
sameLevel: V,
|
|
778
778
|
sameParent: z,
|
|
779
|
-
draggedLevel:
|
|
779
|
+
draggedLevel: b.level,
|
|
780
780
|
targetLevel: m.level,
|
|
781
|
-
draggedParent: (
|
|
782
|
-
targetParent: (
|
|
781
|
+
draggedParent: (x = b.parent) == null ? void 0 : x.key,
|
|
782
|
+
targetParent: (p = m.parent) == null ? void 0 : p.key
|
|
783
783
|
}), V && z;
|
|
784
784
|
}
|
|
785
785
|
return console.log("❌ Mixed group/leaf drop rejected", {
|
|
@@ -788,117 +788,117 @@ function At({
|
|
|
788
788
|
}), !1;
|
|
789
789
|
}
|
|
790
790
|
return !0;
|
|
791
|
-
}, [a, S, _, F]),
|
|
792
|
-
var
|
|
793
|
-
if (console.log("🔄 Performing column reorder:", { draggedKey:
|
|
794
|
-
const
|
|
795
|
-
if (
|
|
796
|
-
return console.log("❌ Column not found in simple config"),
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
const
|
|
800
|
-
return
|
|
801
|
-
}
|
|
802
|
-
const i = _(a,
|
|
803
|
-
if (!i || !
|
|
804
|
-
return console.log("❌ Column info not found in complex config"),
|
|
805
|
-
const
|
|
806
|
-
if (
|
|
807
|
-
return { container:
|
|
808
|
-
const
|
|
809
|
-
for (const
|
|
810
|
-
if (
|
|
811
|
-
return
|
|
812
|
-
if (
|
|
813
|
-
const
|
|
814
|
-
if (
|
|
791
|
+
}, [a, S, _, F]), I = G((j, u, r) => {
|
|
792
|
+
var U, re;
|
|
793
|
+
if (console.log("🔄 Performing column reorder:", { draggedKey: j, targetKey: u }), !S(a)) {
|
|
794
|
+
const h = r.findIndex((C) => C.key === j), R = r.findIndex((C) => C.key === u);
|
|
795
|
+
if (h === -1 || R === -1)
|
|
796
|
+
return console.log("❌ Column not found in simple config"), r;
|
|
797
|
+
const f = [...r], w = f[h];
|
|
798
|
+
f.splice(h, 1);
|
|
799
|
+
const O = (h < R, R);
|
|
800
|
+
return f.splice(O, 0, w), console.log("✅ Simple header reorder completed"), f;
|
|
801
|
+
}
|
|
802
|
+
const i = _(a, j), d = _(a, u);
|
|
803
|
+
if (!i || !d)
|
|
804
|
+
return console.log("❌ Column info not found in complex config"), r;
|
|
805
|
+
const v = JSON.parse(JSON.stringify(a)), x = (h, R) => {
|
|
806
|
+
if (R === null)
|
|
807
|
+
return { container: h, parentObj: null };
|
|
808
|
+
const f = (O) => {
|
|
809
|
+
for (const C of O) {
|
|
810
|
+
if (C.key === R)
|
|
811
|
+
return C;
|
|
812
|
+
if (C.children) {
|
|
813
|
+
const g = f(C.children);
|
|
814
|
+
if (g) return g;
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
return null;
|
|
818
|
-
},
|
|
818
|
+
}, w = f(h);
|
|
819
819
|
return {
|
|
820
|
-
container: (
|
|
821
|
-
parentObj:
|
|
820
|
+
container: (w == null ? void 0 : w.children) || h,
|
|
821
|
+
parentObj: w
|
|
822
822
|
};
|
|
823
|
-
},
|
|
823
|
+
}, p = ((U = i.parent) == null ? void 0 : U.key) || null, b = ((re = d.parent) == null ? void 0 : re.key) || null, { container: m } = x(v, p), { container: $ } = x(v, b);
|
|
824
824
|
if (m !== $)
|
|
825
|
-
return console.log("❌ Different containers for drag and target"),
|
|
826
|
-
const W = m.findIndex((
|
|
825
|
+
return console.log("❌ Different containers for drag and target"), r;
|
|
826
|
+
const W = m.findIndex((h) => h.key === j), V = m.findIndex((h) => h.key === u);
|
|
827
827
|
if (W === -1 || V === -1)
|
|
828
828
|
return console.log("❌ Column not found in container", {
|
|
829
829
|
draggedIndex: W,
|
|
830
830
|
targetIndex: V,
|
|
831
831
|
containerSize: m.length
|
|
832
|
-
}),
|
|
832
|
+
}), r;
|
|
833
833
|
const [z] = m.splice(W, 1), q = (W < V, V);
|
|
834
834
|
return m.splice(q, 0, z), console.log("✅ Complex header reorder completed", {
|
|
835
|
-
draggedKey:
|
|
835
|
+
draggedKey: j,
|
|
836
836
|
targetKey: u,
|
|
837
837
|
draggedIndex: W,
|
|
838
838
|
targetIndex: V,
|
|
839
839
|
insertIndex: q,
|
|
840
|
-
parentKey:
|
|
841
|
-
}),
|
|
842
|
-
}, [a, S, _]), M = G((
|
|
843
|
-
const u =
|
|
844
|
-
|
|
845
|
-
}, []), K = G((
|
|
846
|
-
const { active: u, over:
|
|
847
|
-
if (!
|
|
840
|
+
parentKey: p
|
|
841
|
+
}), v;
|
|
842
|
+
}, [a, S, _]), M = G((j) => {
|
|
843
|
+
const u = j.active.data.current;
|
|
844
|
+
T(u), document.body.style.cursor = "grabbing", console.log("🚀 Drag started:", u);
|
|
845
|
+
}, []), K = G((j) => {
|
|
846
|
+
const { active: u, over: r } = j;
|
|
847
|
+
if (!r || !u.data.current) {
|
|
848
848
|
document.body.style.cursor = "grabbing";
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
|
-
const i = u.data.current,
|
|
852
|
-
if (!
|
|
851
|
+
const i = u.data.current, d = r.data.current;
|
|
852
|
+
if (!d) {
|
|
853
853
|
document.body.style.cursor = "grabbing";
|
|
854
854
|
return;
|
|
855
855
|
}
|
|
856
|
-
const
|
|
857
|
-
document.body.style.cursor =
|
|
858
|
-
target:
|
|
859
|
-
isValid:
|
|
856
|
+
const v = P(i, d);
|
|
857
|
+
document.body.style.cursor = v ? "copy" : "not-allowed", console.log("🎯 Drag over:", {
|
|
858
|
+
target: d.columnKey,
|
|
859
|
+
isValid: v,
|
|
860
860
|
draggedType: i.isLeaf ? "leaf" : "group",
|
|
861
|
-
targetType:
|
|
861
|
+
targetType: d.isLeaf ? "leaf" : "group"
|
|
862
862
|
});
|
|
863
|
-
}, [P]), Y = G((
|
|
864
|
-
const { active: u, over:
|
|
865
|
-
if (document.body.style.cursor = "",
|
|
863
|
+
}, [P]), Y = G((j) => {
|
|
864
|
+
const { active: u, over: r } = j;
|
|
865
|
+
if (document.body.style.cursor = "", T(null), !r || !u.data.current || !r.data.current) {
|
|
866
866
|
console.log("❌ Invalid drop - no target");
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
|
-
const i = u.data.current,
|
|
870
|
-
if (!P(i,
|
|
869
|
+
const i = u.data.current, d = r.data.current;
|
|
870
|
+
if (!P(i, d)) {
|
|
871
871
|
console.log("❌ Invalid drop - validation failed");
|
|
872
872
|
return;
|
|
873
873
|
}
|
|
874
|
-
if (console.log("✅ Valid drop:", { dragData: i, dropData:
|
|
875
|
-
const
|
|
874
|
+
if (console.log("✅ Valid drop:", { dragData: i, dropData: d }), c) {
|
|
875
|
+
const v = I(
|
|
876
876
|
i.columnKey,
|
|
877
|
-
|
|
877
|
+
d.columnKey,
|
|
878
878
|
a
|
|
879
879
|
);
|
|
880
|
-
|
|
880
|
+
v._dragInfo = {
|
|
881
881
|
draggedKey: i.columnKey,
|
|
882
|
-
targetKey:
|
|
882
|
+
targetKey: d.columnKey,
|
|
883
883
|
draggedIndex: i.index,
|
|
884
884
|
targetIndex: -1
|
|
885
885
|
// будет вычислен в TableHeader если нужно
|
|
886
|
-
}, c(
|
|
886
|
+
}, c(v), console.log("🔄 Column reorder executed");
|
|
887
887
|
}
|
|
888
|
-
}, [P, c,
|
|
888
|
+
}, [P, c, I, a]), H = {
|
|
889
889
|
activeColumn: s,
|
|
890
890
|
isValidDropZone: P
|
|
891
891
|
};
|
|
892
|
-
return /* @__PURE__ */ o.jsx(Qe.Provider, { value:
|
|
892
|
+
return /* @__PURE__ */ o.jsx(Qe.Provider, { value: H, children: /* @__PURE__ */ o.jsxs(
|
|
893
893
|
Dt,
|
|
894
894
|
{
|
|
895
|
-
sensors:
|
|
896
|
-
collisionDetection:
|
|
895
|
+
sensors: y,
|
|
896
|
+
collisionDetection: k,
|
|
897
897
|
onDragStart: M,
|
|
898
898
|
onDragOver: K,
|
|
899
899
|
onDragEnd: Y,
|
|
900
900
|
children: [
|
|
901
|
-
|
|
901
|
+
t,
|
|
902
902
|
/* @__PURE__ */ o.jsx(Tt, { children: s ? /* @__PURE__ */ o.jsx("div", { className: "column-drag-overlay", children: /* @__PURE__ */ o.jsxs("div", { className: "drag-preview", children: [
|
|
903
903
|
s.isLeaf ? "🍃" : "📁",
|
|
904
904
|
" ",
|
|
@@ -911,155 +911,155 @@ function At({
|
|
|
911
911
|
) });
|
|
912
912
|
}
|
|
913
913
|
function Mt({
|
|
914
|
-
column:
|
|
914
|
+
column: t,
|
|
915
915
|
index: a,
|
|
916
916
|
config: c,
|
|
917
917
|
fullConfig: s,
|
|
918
|
-
sorting:
|
|
919
|
-
onSort:
|
|
920
|
-
onResize:
|
|
918
|
+
sorting: T,
|
|
919
|
+
onSort: y,
|
|
920
|
+
onResize: k,
|
|
921
921
|
sortIcon: S,
|
|
922
922
|
resizeable: _,
|
|
923
923
|
draggableColumns: F,
|
|
924
924
|
preset: P,
|
|
925
|
-
headerCellClassName:
|
|
925
|
+
headerCellClassName: I,
|
|
926
926
|
headerCellStyle: M,
|
|
927
927
|
headerCellWrapperClassName: K,
|
|
928
928
|
headerCellWrapperStyle: Y,
|
|
929
|
-
stickyHeader:
|
|
930
|
-
scrollContainerRef:
|
|
929
|
+
stickyHeader: H,
|
|
930
|
+
scrollContainerRef: j
|
|
931
931
|
}) {
|
|
932
|
-
var
|
|
933
|
-
if (
|
|
932
|
+
var Q;
|
|
933
|
+
if (t.hidden)
|
|
934
934
|
return null;
|
|
935
|
-
const { activeColumn: u, isValidDropZone:
|
|
936
|
-
me(() => (s == null ? void 0 : s.some((
|
|
937
|
-
const
|
|
935
|
+
const { activeColumn: u, isValidDropZone: r } = Wt(), i = !t.children || t.children.length === 0;
|
|
936
|
+
me(() => (s == null ? void 0 : s.some((E) => E.children && E.children.length > 0)) || !1, [s]);
|
|
937
|
+
const d = F, x = G((E) => {
|
|
938
938
|
if (!s) return null;
|
|
939
|
-
const
|
|
939
|
+
const L = (oe, se, ue = null) => {
|
|
940
940
|
for (const ne of oe) {
|
|
941
941
|
if (ne.key === se)
|
|
942
942
|
return ue;
|
|
943
943
|
if (ne.children && ne.children.length > 0) {
|
|
944
|
-
const de =
|
|
944
|
+
const de = L(ne.children, se, ne);
|
|
945
945
|
if (de !== null) return de;
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
return null;
|
|
949
949
|
};
|
|
950
|
-
return
|
|
951
|
-
}, [s])(
|
|
950
|
+
return L(s, E);
|
|
951
|
+
}, [s])(t.key), p = t.fixed || (x == null ? void 0 : x.fixed) || !1, m = G((E) => {
|
|
952
952
|
if (!s) return 0;
|
|
953
|
-
const
|
|
953
|
+
const L = (oe, se, ue = 0) => {
|
|
954
954
|
for (const ne of oe) {
|
|
955
955
|
if (ne.key === se)
|
|
956
956
|
return ue;
|
|
957
957
|
if (ne.children && ne.children.length > 0) {
|
|
958
|
-
const de =
|
|
958
|
+
const de = L(ne.children, se, ue + 1);
|
|
959
959
|
if (de !== -1) return de;
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
return -1;
|
|
963
963
|
};
|
|
964
|
-
return
|
|
965
|
-
}, [s])(
|
|
964
|
+
return L(s, E);
|
|
965
|
+
}, [s])(t.key), {
|
|
966
966
|
attributes: $,
|
|
967
967
|
listeners: W,
|
|
968
968
|
setNodeRef: V,
|
|
969
969
|
isDragging: z
|
|
970
970
|
} = Pt({
|
|
971
|
-
id: `column-${
|
|
971
|
+
id: `column-${t.key}`,
|
|
972
972
|
data: {
|
|
973
973
|
type: "table-column",
|
|
974
|
-
columnKey:
|
|
975
|
-
isFixed:
|
|
976
|
-
parentKey:
|
|
974
|
+
columnKey: t.key,
|
|
975
|
+
isFixed: p,
|
|
976
|
+
parentKey: x == null ? void 0 : x.key,
|
|
977
977
|
level: m,
|
|
978
978
|
index: a,
|
|
979
979
|
isLeaf: i
|
|
980
980
|
// ✅ Добавляем информацию о типе колонки
|
|
981
981
|
},
|
|
982
|
-
disabled: !
|
|
982
|
+
disabled: !d
|
|
983
983
|
}), {
|
|
984
984
|
setNodeRef: q,
|
|
985
|
-
isOver:
|
|
985
|
+
isOver: U
|
|
986
986
|
} = Ot({
|
|
987
|
-
id: `drop-zone-${
|
|
987
|
+
id: `drop-zone-${t.key}`,
|
|
988
988
|
data: {
|
|
989
989
|
type: "column-drop-zone",
|
|
990
|
-
columnKey:
|
|
991
|
-
isFixed:
|
|
992
|
-
accepts: [
|
|
990
|
+
columnKey: t.key,
|
|
991
|
+
isFixed: p,
|
|
992
|
+
accepts: [p ? "fixed" : "non-fixed"],
|
|
993
993
|
isLeaf: i
|
|
994
994
|
// ✅ Добавляем информацию о типе колонки
|
|
995
995
|
},
|
|
996
996
|
disabled: !1
|
|
997
|
-
}),
|
|
998
|
-
V(
|
|
999
|
-
}, [V, q]),
|
|
1000
|
-
if (!u || !
|
|
1001
|
-
const
|
|
997
|
+
}), re = G((E) => {
|
|
998
|
+
V(E), q(E);
|
|
999
|
+
}, [V, q]), h = me(() => {
|
|
1000
|
+
if (!u || !U) return !1;
|
|
1001
|
+
const E = {
|
|
1002
1002
|
type: "column-drop-zone",
|
|
1003
|
-
columnKey:
|
|
1004
|
-
isFixed:
|
|
1005
|
-
accepts: [
|
|
1003
|
+
columnKey: t.key,
|
|
1004
|
+
isFixed: p,
|
|
1005
|
+
accepts: [p ? "fixed" : "non-fixed"],
|
|
1006
1006
|
isLeaf: i
|
|
1007
1007
|
};
|
|
1008
|
-
return
|
|
1009
|
-
}, [u,
|
|
1010
|
-
let
|
|
1008
|
+
return r(u, E);
|
|
1009
|
+
}, [u, U, t.key, p, r, i]), R = me(() => z ? "grabbing" : U && u ? h ? "copy" : "not-allowed" : "default", [z, U, u, h]), f = t.fixed && !t.width ? 200 : t.width, w = t.fixed && !t.minWidth ? 200 : t.minWidth;
|
|
1010
|
+
let O = t.fixedLeft ? t.fixedLeft : 0;
|
|
1011
1011
|
if (a !== 0)
|
|
1012
|
-
for (let
|
|
1013
|
-
const
|
|
1014
|
-
|
|
1012
|
+
for (let E = 0; E < a; E++) {
|
|
1013
|
+
const L = c[E];
|
|
1014
|
+
L.fixed && !L.hidden && (O += (L.width || L.minWidth || 200) + (L.fixedLeft || 0));
|
|
1015
1015
|
}
|
|
1016
|
-
const
|
|
1017
|
-
if (
|
|
1018
|
-
return
|
|
1016
|
+
const g = ((E) => {
|
|
1017
|
+
if (E.groupColor)
|
|
1018
|
+
return E.groupColor;
|
|
1019
1019
|
if (s) {
|
|
1020
|
-
const
|
|
1020
|
+
const L = (se, ue) => {
|
|
1021
1021
|
for (const ne of se)
|
|
1022
1022
|
if (ne.children) {
|
|
1023
1023
|
if (ne.children.some((we) => we.key === ue))
|
|
1024
1024
|
return ne;
|
|
1025
|
-
const de =
|
|
1025
|
+
const de = L(ne.children, ue);
|
|
1026
1026
|
if (de) return de;
|
|
1027
1027
|
}
|
|
1028
1028
|
return null;
|
|
1029
|
-
}, oe =
|
|
1029
|
+
}, oe = L(s, E.key);
|
|
1030
1030
|
return oe == null ? void 0 : oe.groupColor;
|
|
1031
1031
|
}
|
|
1032
|
-
})(
|
|
1033
|
-
let
|
|
1034
|
-
return
|
|
1032
|
+
})(t);
|
|
1033
|
+
let J = "currentColor", X = "currentColor";
|
|
1034
|
+
return T.sort_field === t.key && (T.sort_order === "ASC" && (J = "#5329FF"), T.sort_order === "DESC" && (X = "#5329FF")), /* @__PURE__ */ o.jsx(
|
|
1035
1035
|
"th",
|
|
1036
1036
|
{
|
|
1037
|
-
ref:
|
|
1038
|
-
"data-column-key":
|
|
1037
|
+
ref: re,
|
|
1038
|
+
"data-column-key": t.key,
|
|
1039
1039
|
className: `
|
|
1040
1040
|
radar-table__header-cell
|
|
1041
1041
|
${P ? P + "__header-cell" : ""}
|
|
1042
|
-
${
|
|
1042
|
+
${I || ""}
|
|
1043
1043
|
${z ? "dragging" : ""}
|
|
1044
|
-
${
|
|
1045
|
-
${
|
|
1046
|
-
${
|
|
1044
|
+
${U ? "drag-over" : ""}
|
|
1045
|
+
${h && U ? "valid-drop-zone" : ""}
|
|
1046
|
+
${U && !h ? "invalid-drop-zone" : ""}
|
|
1047
1047
|
${i ? "leaf-header" : "group-header"}
|
|
1048
|
-
${
|
|
1049
|
-
colSpan:
|
|
1050
|
-
rowSpan:
|
|
1048
|
+
${t.className || ""}`,
|
|
1049
|
+
colSpan: t.colSpan || 1,
|
|
1050
|
+
rowSpan: t.rowSpan || 1,
|
|
1051
1051
|
style: {
|
|
1052
|
-
width:
|
|
1053
|
-
minWidth:
|
|
1054
|
-
position:
|
|
1055
|
-
top:
|
|
1056
|
-
left:
|
|
1057
|
-
borderRight:
|
|
1058
|
-
zIndex:
|
|
1059
|
-
backgroundColor:
|
|
1060
|
-
cursor:
|
|
1052
|
+
width: f,
|
|
1053
|
+
minWidth: w,
|
|
1054
|
+
position: t.fixed ? "sticky" : "static",
|
|
1055
|
+
top: H && typeof H == "number" ? H : 0,
|
|
1056
|
+
left: O,
|
|
1057
|
+
borderRight: t.fixed && !((Q = c[a + 1]) != null && Q.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1058
|
+
zIndex: t.fixed ? 2 : "auto",
|
|
1059
|
+
backgroundColor: g,
|
|
1060
|
+
cursor: R,
|
|
1061
1061
|
...M,
|
|
1062
|
-
...
|
|
1062
|
+
...t.style
|
|
1063
1063
|
},
|
|
1064
1064
|
children: /* @__PURE__ */ o.jsxs(
|
|
1065
1065
|
"div",
|
|
@@ -1071,7 +1071,7 @@ function Mt({
|
|
|
1071
1071
|
`,
|
|
1072
1072
|
style: Y,
|
|
1073
1073
|
children: [
|
|
1074
|
-
|
|
1074
|
+
d && /* @__PURE__ */ o.jsx(
|
|
1075
1075
|
"div",
|
|
1076
1076
|
{
|
|
1077
1077
|
className: `radar-table__drag-handle ${z ? "dragging" : ""} ${i ? "" : "group-drag-handle"}`,
|
|
@@ -1091,52 +1091,52 @@ function Mt({
|
|
|
1091
1091
|
/* @__PURE__ */ o.jsx("div", { className: "radar-table__header-cell-text-wrapper", children: /* @__PURE__ */ o.jsx(
|
|
1092
1092
|
"span",
|
|
1093
1093
|
{
|
|
1094
|
-
title:
|
|
1094
|
+
title: t.title,
|
|
1095
1095
|
onClick: () => {
|
|
1096
|
-
const { sort_order:
|
|
1097
|
-
let
|
|
1098
|
-
columnKey:
|
|
1096
|
+
const { sort_order: E } = T;
|
|
1097
|
+
let L = {
|
|
1098
|
+
columnKey: t.key,
|
|
1099
1099
|
direction: "ASC"
|
|
1100
1100
|
};
|
|
1101
|
-
|
|
1101
|
+
E === "ASC" && (L.direction = "DESC"), E === "DESC" && (L.columnKey = void 0, L.direction = void 0), y(L.columnKey, L.direction);
|
|
1102
1102
|
},
|
|
1103
1103
|
style: {
|
|
1104
|
-
cursor:
|
|
1104
|
+
cursor: t.sortable ? "pointer" : "default",
|
|
1105
1105
|
userSelect: "none"
|
|
1106
1106
|
},
|
|
1107
|
-
children:
|
|
1107
|
+
children: t.title
|
|
1108
1108
|
}
|
|
1109
1109
|
) }),
|
|
1110
|
-
|
|
1110
|
+
t.sortable && !S && i && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
|
|
1111
1111
|
/* @__PURE__ */ o.jsx(
|
|
1112
1112
|
"button",
|
|
1113
1113
|
{
|
|
1114
1114
|
className: "radar-table__sort-button",
|
|
1115
|
-
onClick: (
|
|
1116
|
-
title: `Сортировать по ${
|
|
1117
|
-
children: /* @__PURE__ */ o.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__ */ o.jsx("path", { fill:
|
|
1115
|
+
onClick: (E) => y(t.key, "ASC"),
|
|
1116
|
+
title: `Сортировать по ${t.title}`,
|
|
1117
|
+
children: /* @__PURE__ */ o.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__ */ o.jsx("path", { fill: J, 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" }) })
|
|
1118
1118
|
}
|
|
1119
1119
|
),
|
|
1120
1120
|
/* @__PURE__ */ o.jsx(
|
|
1121
1121
|
"button",
|
|
1122
1122
|
{
|
|
1123
1123
|
className: "radar-table__sort-button",
|
|
1124
|
-
onClick: (
|
|
1125
|
-
title: `Сортировать по ${
|
|
1126
|
-
children: /* @__PURE__ */ o.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__ */ o.jsx("path", { fill:
|
|
1124
|
+
onClick: (E) => y(t.key, "DESC"),
|
|
1125
|
+
title: `Сортировать по ${t.title}`,
|
|
1126
|
+
children: /* @__PURE__ */ o.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__ */ o.jsx("path", { fill: X, d: "M4.99264 6.78033C5.28553 7.07322 5.76041 7.07322 6.0533 6.78033L10.8263 2.00736C11.1192 1.71447 11.1192 1.23959 10.8263 0.946699C10.5334 0.653806 10.0585 0.653806 9.76561 0.946699L6.27297 4.43934L5.5 5.21231L4.77297 4.43934L1.28033 0.946699C0.987437 0.653806 0.512563 0.653806 0.21967 0.946699C-0.0732234 1.23959 -0.0732234 1.71447 0.21967 2.00736L4.99264 6.78033Z" }) })
|
|
1127
1127
|
}
|
|
1128
1128
|
)
|
|
1129
1129
|
] }),
|
|
1130
|
-
|
|
1131
|
-
|
|
1130
|
+
t.sortable && S && i && S(T.sort_field, T.sort_order),
|
|
1131
|
+
t.tooltipText && /* @__PURE__ */ o.jsx(Ft, { text: t.tooltipText, children: t.tooltipIcon }),
|
|
1132
1132
|
_ && i && /* @__PURE__ */ o.jsx(
|
|
1133
1133
|
$t,
|
|
1134
1134
|
{
|
|
1135
|
-
column:
|
|
1136
|
-
currWidth:
|
|
1137
|
-
currMinWidth:
|
|
1138
|
-
onResize:
|
|
1139
|
-
scrollContainerRef:
|
|
1135
|
+
column: t,
|
|
1136
|
+
currWidth: f,
|
|
1137
|
+
currMinWidth: w,
|
|
1138
|
+
onResize: k,
|
|
1139
|
+
scrollContainerRef: j
|
|
1140
1140
|
}
|
|
1141
1141
|
)
|
|
1142
1142
|
]
|
|
@@ -1145,225 +1145,225 @@ function Mt({
|
|
|
1145
1145
|
}
|
|
1146
1146
|
);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1149
|
-
config:
|
|
1148
|
+
function Je({
|
|
1149
|
+
config: t,
|
|
1150
1150
|
fullConfig: a,
|
|
1151
1151
|
onSort: c,
|
|
1152
1152
|
onResize: s,
|
|
1153
|
-
onColumnReorder:
|
|
1153
|
+
onColumnReorder: T,
|
|
1154
1154
|
// ✅ Сохранен (понадобится для передачи в TableDndProvider)
|
|
1155
|
-
sortIcon:
|
|
1156
|
-
resizeable:
|
|
1155
|
+
sortIcon: y,
|
|
1156
|
+
resizeable: k,
|
|
1157
1157
|
draggableColumns: S,
|
|
1158
1158
|
preset: _,
|
|
1159
1159
|
headerClassName: F,
|
|
1160
1160
|
headerStyle: P,
|
|
1161
|
-
headerRowClassName:
|
|
1161
|
+
headerRowClassName: I,
|
|
1162
1162
|
headerRowStyle: M,
|
|
1163
1163
|
headerCellClassName: K,
|
|
1164
1164
|
headerCellStyle: Y,
|
|
1165
|
-
headerCellWrapperClassName:
|
|
1166
|
-
headerCellWrapperStyle:
|
|
1165
|
+
headerCellWrapperClassName: H,
|
|
1166
|
+
headerCellWrapperStyle: j,
|
|
1167
1167
|
stickyHeader: u,
|
|
1168
|
-
scrollContainerRef:
|
|
1168
|
+
scrollContainerRef: r
|
|
1169
1169
|
// ✅ Сохранен (для передачи в HeaderCell)
|
|
1170
1170
|
}) {
|
|
1171
|
-
const [i,
|
|
1171
|
+
const [i, d] = ce({
|
|
1172
1172
|
sort_field: void 0,
|
|
1173
1173
|
sort_order: void 0
|
|
1174
|
-
}),
|
|
1175
|
-
const { sort_field:
|
|
1174
|
+
}), v = G((x, p) => {
|
|
1175
|
+
const { sort_field: b, sort_order: m } = i;
|
|
1176
1176
|
let $ = {
|
|
1177
|
-
sort_field:
|
|
1178
|
-
sort_order:
|
|
1177
|
+
sort_field: x,
|
|
1178
|
+
sort_order: p
|
|
1179
1179
|
};
|
|
1180
|
-
|
|
1180
|
+
b === x && m === p && ($ = {
|
|
1181
1181
|
sort_field: void 0,
|
|
1182
1182
|
sort_order: void 0
|
|
1183
|
-
}), console.log("newSortingState", $),
|
|
1183
|
+
}), console.log("newSortingState", $), d($), c == null || c($.sort_field, $.sort_order);
|
|
1184
1184
|
}, [i.sort_order, c]);
|
|
1185
1185
|
return /* @__PURE__ */ o.jsx(
|
|
1186
1186
|
"tr",
|
|
1187
1187
|
{
|
|
1188
|
-
className: `radar-table__header-row ${_ ? _ + "__header-row" : ""} ${
|
|
1188
|
+
className: `radar-table__header-row ${_ ? _ + "__header-row" : ""} ${I || ""}`,
|
|
1189
1189
|
style: M,
|
|
1190
|
-
children:
|
|
1190
|
+
children: t.map((x, p) => /* @__PURE__ */ o.jsx(
|
|
1191
1191
|
Mt,
|
|
1192
1192
|
{
|
|
1193
|
-
column:
|
|
1194
|
-
index:
|
|
1195
|
-
config:
|
|
1193
|
+
column: x,
|
|
1194
|
+
index: p,
|
|
1195
|
+
config: t,
|
|
1196
1196
|
fullConfig: a,
|
|
1197
1197
|
sorting: i,
|
|
1198
|
-
onSort:
|
|
1198
|
+
onSort: v,
|
|
1199
1199
|
onResize: s,
|
|
1200
|
-
sortIcon:
|
|
1201
|
-
resizeable:
|
|
1200
|
+
sortIcon: y,
|
|
1201
|
+
resizeable: k,
|
|
1202
1202
|
draggableColumns: S,
|
|
1203
1203
|
preset: _,
|
|
1204
1204
|
headerCellClassName: K,
|
|
1205
1205
|
headerCellStyle: Y,
|
|
1206
|
-
headerCellWrapperClassName:
|
|
1207
|
-
headerCellWrapperStyle:
|
|
1206
|
+
headerCellWrapperClassName: H,
|
|
1207
|
+
headerCellWrapperStyle: j,
|
|
1208
1208
|
stickyHeader: u,
|
|
1209
|
-
scrollContainerRef:
|
|
1209
|
+
scrollContainerRef: r
|
|
1210
1210
|
},
|
|
1211
|
-
|
|
1211
|
+
x.key
|
|
1212
1212
|
))
|
|
1213
1213
|
}
|
|
1214
1214
|
);
|
|
1215
1215
|
}
|
|
1216
|
-
function Vt(
|
|
1216
|
+
function Vt(t) {
|
|
1217
1217
|
const {
|
|
1218
1218
|
config: a,
|
|
1219
1219
|
preset: c,
|
|
1220
1220
|
headerClassName: s,
|
|
1221
|
-
headerStyle:
|
|
1222
|
-
stickyHeader:
|
|
1223
|
-
headerRowClassName:
|
|
1221
|
+
headerStyle: T,
|
|
1222
|
+
stickyHeader: y,
|
|
1223
|
+
headerRowClassName: k,
|
|
1224
1224
|
headerRowStyle: S,
|
|
1225
1225
|
headerCellClassName: _,
|
|
1226
1226
|
headerCellStyle: F,
|
|
1227
1227
|
headerCellWrapperClassName: P,
|
|
1228
|
-
headerCellWrapperStyle:
|
|
1228
|
+
headerCellWrapperStyle: I,
|
|
1229
1229
|
onResize: M,
|
|
1230
1230
|
onColumnReorder: K
|
|
1231
|
-
} =
|
|
1231
|
+
} = t, Y = a.some((r) => r.children && r.children.length > 0), H = me(() => {
|
|
1232
1232
|
if (!Y)
|
|
1233
1233
|
return null;
|
|
1234
|
-
const
|
|
1235
|
-
|
|
1236
|
-
|
|
1234
|
+
const r = {}, i = (d, v = 0) => {
|
|
1235
|
+
r[v] || (r[v] = []), d.forEach((x) => {
|
|
1236
|
+
x.hidden || (r[v].push(x), x.children && x.children.length > 0 && i(x.children, v + 1));
|
|
1237
1237
|
});
|
|
1238
1238
|
};
|
|
1239
|
-
return i(a),
|
|
1240
|
-
}, [a, Y]),
|
|
1239
|
+
return i(a), r;
|
|
1240
|
+
}, [a, Y]), j = G((r, i) => {
|
|
1241
1241
|
if (!M) return;
|
|
1242
|
-
const
|
|
1243
|
-
for (const m of
|
|
1244
|
-
if (m.key ===
|
|
1242
|
+
const d = (p, b) => {
|
|
1243
|
+
for (const m of p) {
|
|
1244
|
+
if (m.key === b) return m;
|
|
1245
1245
|
if (m.children) {
|
|
1246
|
-
const $ =
|
|
1246
|
+
const $ = d(m.children, b);
|
|
1247
1247
|
if ($) return $;
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
return null;
|
|
1251
|
-
},
|
|
1252
|
-
if (!
|
|
1253
|
-
return [
|
|
1254
|
-
const
|
|
1255
|
-
return
|
|
1256
|
-
m.hidden ||
|
|
1257
|
-
}),
|
|
1258
|
-
},
|
|
1259
|
-
if (
|
|
1260
|
-
if (
|
|
1261
|
-
const
|
|
1262
|
-
if (
|
|
1263
|
-
const
|
|
1264
|
-
|
|
1251
|
+
}, v = (p) => {
|
|
1252
|
+
if (!p.children || p.children.length === 0)
|
|
1253
|
+
return [p];
|
|
1254
|
+
const b = [];
|
|
1255
|
+
return p.children.forEach((m) => {
|
|
1256
|
+
m.hidden || b.push(...v(m));
|
|
1257
|
+
}), b;
|
|
1258
|
+
}, x = d(a, r);
|
|
1259
|
+
if (x)
|
|
1260
|
+
if (x.children && x.children.length > 0) {
|
|
1261
|
+
const p = v(x);
|
|
1262
|
+
if (p.length > 0) {
|
|
1263
|
+
const b = p.reduce(($, W) => $ + (W.width || W.minWidth || 200), 0), m = i / b;
|
|
1264
|
+
p.forEach(($) => {
|
|
1265
1265
|
const W = Math.max(50, Math.round(($.width || $.minWidth || 200) * m));
|
|
1266
1266
|
M($.key, W);
|
|
1267
1267
|
});
|
|
1268
1268
|
}
|
|
1269
1269
|
} else
|
|
1270
|
-
M(
|
|
1271
|
-
}, [a, M]), u = G((
|
|
1270
|
+
M(r, i);
|
|
1271
|
+
}, [a, M]), u = G((r) => {
|
|
1272
1272
|
if (!K) return;
|
|
1273
1273
|
if (!Y) {
|
|
1274
|
-
K(
|
|
1274
|
+
K(r);
|
|
1275
1275
|
return;
|
|
1276
1276
|
}
|
|
1277
|
-
const i = (
|
|
1278
|
-
for (let
|
|
1279
|
-
const
|
|
1280
|
-
if (
|
|
1277
|
+
const i = (C, g, J = [], X = null) => {
|
|
1278
|
+
for (let Q = 0; Q < C.length; Q++) {
|
|
1279
|
+
const E = C[Q], L = [...J, Q];
|
|
1280
|
+
if (E.key === g)
|
|
1281
1281
|
return {
|
|
1282
|
-
column:
|
|
1283
|
-
parent:
|
|
1284
|
-
path:
|
|
1285
|
-
level:
|
|
1282
|
+
column: E,
|
|
1283
|
+
parent: X,
|
|
1284
|
+
path: L,
|
|
1285
|
+
level: J.length
|
|
1286
1286
|
};
|
|
1287
|
-
if (
|
|
1288
|
-
const oe = i(
|
|
1287
|
+
if (E.children && E.children.length > 0) {
|
|
1288
|
+
const oe = i(E.children, g, L, E);
|
|
1289
1289
|
if (oe)
|
|
1290
1290
|
return oe;
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
return null;
|
|
1294
1294
|
};
|
|
1295
|
-
if (!Object.values(
|
|
1296
|
-
if (
|
|
1297
|
-
const
|
|
1298
|
-
return JSON.stringify(
|
|
1295
|
+
if (!Object.values(H).find((C) => {
|
|
1296
|
+
if (C.length !== r.length) return !1;
|
|
1297
|
+
const g = C.map((X) => X.key).sort(), J = r.map((X) => X.key).sort();
|
|
1298
|
+
return JSON.stringify(g) === JSON.stringify(J);
|
|
1299
1299
|
}))
|
|
1300
1300
|
return;
|
|
1301
|
-
const
|
|
1302
|
-
if (!(
|
|
1301
|
+
const v = r._dragInfo;
|
|
1302
|
+
if (!(v != null && v.draggedKey) || !(v != null && v.targetKey))
|
|
1303
1303
|
return;
|
|
1304
|
-
const { draggedKey:
|
|
1305
|
-
if (!
|
|
1306
|
-
const { column: $, parent: W, path: V, level: z } =
|
|
1307
|
-
if (z !==
|
|
1304
|
+
const { draggedKey: x, targetKey: p } = v, b = i(a, x), m = i(a, p);
|
|
1305
|
+
if (!b || !m) return;
|
|
1306
|
+
const { column: $, parent: W, path: V, level: z } = b, { column: q, parent: U, path: re, level: h } = m, R = (C, g) => C.fixed || (g == null ? void 0 : g.fixed) || !1, f = R($, W), w = R(q, U);
|
|
1307
|
+
if (z !== h || W !== U || W && U && W.key !== U.key || f !== w)
|
|
1308
1308
|
return;
|
|
1309
|
-
const
|
|
1309
|
+
const O = JSON.parse(JSON.stringify(a));
|
|
1310
1310
|
if (z === 0) {
|
|
1311
|
-
const
|
|
1312
|
-
|
|
1311
|
+
const C = V[0], g = re[0], [J] = O.splice(C, 1);
|
|
1312
|
+
O.splice(g, 0, J);
|
|
1313
1313
|
} else {
|
|
1314
|
-
const
|
|
1315
|
-
let
|
|
1316
|
-
for (let
|
|
1317
|
-
|
|
1318
|
-
if (!
|
|
1314
|
+
const C = V.slice(0, -1);
|
|
1315
|
+
let g = O;
|
|
1316
|
+
for (let E = 0; E < C.length; E++)
|
|
1317
|
+
E === 0 ? g = g[C[E]] : g = g.children[C[E]];
|
|
1318
|
+
if (!g || !g.children)
|
|
1319
1319
|
return;
|
|
1320
|
-
const
|
|
1321
|
-
if (
|
|
1320
|
+
const J = V[V.length - 1], X = re[re.length - 1];
|
|
1321
|
+
if (J < 0 || J >= g.children.length || X < 0 || X >= g.children.length)
|
|
1322
1322
|
return;
|
|
1323
|
-
const [
|
|
1324
|
-
|
|
1323
|
+
const [Q] = g.children.splice(J, 1);
|
|
1324
|
+
g.children.splice(X, 0, Q);
|
|
1325
1325
|
}
|
|
1326
|
-
K(
|
|
1327
|
-
}, [a, K,
|
|
1326
|
+
K(O);
|
|
1327
|
+
}, [a, K, H]);
|
|
1328
1328
|
return Y ? /* @__PURE__ */ o.jsx(
|
|
1329
1329
|
"thead",
|
|
1330
1330
|
{
|
|
1331
1331
|
className: `radar-table__header ${c ? c + "__header" : ""} ${s}`,
|
|
1332
1332
|
style: {
|
|
1333
|
-
position:
|
|
1334
|
-
top:
|
|
1335
|
-
...
|
|
1333
|
+
position: y ? "sticky" : "static",
|
|
1334
|
+
top: y && typeof y == "number" ? y : 0,
|
|
1335
|
+
...T
|
|
1336
1336
|
},
|
|
1337
|
-
children: Object.keys(
|
|
1338
|
-
const i =
|
|
1337
|
+
children: Object.keys(H).map((r) => {
|
|
1338
|
+
const i = H[parseInt(r)], d = parseInt(r);
|
|
1339
1339
|
return /* @__PURE__ */ o.jsx(
|
|
1340
|
-
|
|
1340
|
+
Je,
|
|
1341
1341
|
{
|
|
1342
1342
|
config: i,
|
|
1343
1343
|
fullConfig: a,
|
|
1344
|
-
onSort:
|
|
1345
|
-
onResize:
|
|
1344
|
+
onSort: t.onSort,
|
|
1345
|
+
onResize: j,
|
|
1346
1346
|
onColumnReorder: u,
|
|
1347
|
-
resizeable:
|
|
1348
|
-
draggableColumns:
|
|
1347
|
+
resizeable: t.resizeable,
|
|
1348
|
+
draggableColumns: t.draggableColumns,
|
|
1349
1349
|
preset: c,
|
|
1350
1350
|
headerClassName: s,
|
|
1351
|
-
headerStyle:
|
|
1352
|
-
headerRowClassName:
|
|
1351
|
+
headerStyle: T,
|
|
1352
|
+
headerRowClassName: k,
|
|
1353
1353
|
headerRowStyle: {
|
|
1354
1354
|
...S,
|
|
1355
|
-
position:
|
|
1356
|
-
top:
|
|
1355
|
+
position: y ? "sticky" : "static",
|
|
1356
|
+
top: y && typeof y == "number" ? y + (d - 1) * 50 : 0
|
|
1357
1357
|
},
|
|
1358
1358
|
headerCellClassName: _,
|
|
1359
1359
|
headerCellStyle: F,
|
|
1360
1360
|
headerCellWrapperClassName: P,
|
|
1361
|
-
headerCellWrapperStyle:
|
|
1362
|
-
stickyHeader:
|
|
1363
|
-
sortIcon:
|
|
1364
|
-
scrollContainerRef:
|
|
1361
|
+
headerCellWrapperStyle: I,
|
|
1362
|
+
stickyHeader: y,
|
|
1363
|
+
sortIcon: t.sortIcon,
|
|
1364
|
+
scrollContainerRef: t.scrollContainerRef
|
|
1365
1365
|
},
|
|
1366
|
-
|
|
1366
|
+
r
|
|
1367
1367
|
);
|
|
1368
1368
|
})
|
|
1369
1369
|
}
|
|
@@ -1372,18 +1372,18 @@ function Vt(r) {
|
|
|
1372
1372
|
{
|
|
1373
1373
|
className: `radar-table__header ${c ? c + "__header" : ""} ${s}`,
|
|
1374
1374
|
style: {
|
|
1375
|
-
position:
|
|
1376
|
-
top:
|
|
1377
|
-
...
|
|
1375
|
+
position: y ? "sticky" : "static",
|
|
1376
|
+
top: y && typeof y == "number" ? y : 0,
|
|
1377
|
+
...T
|
|
1378
1378
|
},
|
|
1379
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1379
|
+
children: /* @__PURE__ */ o.jsx(Je, { ...t, fullConfig: a, onResize: j, onColumnReorder: u, scrollContainerRef: t.scrollContainerRef })
|
|
1380
1380
|
}
|
|
1381
1381
|
);
|
|
1382
1382
|
}
|
|
1383
|
-
const zt = (
|
|
1383
|
+
const zt = (t, a) => {
|
|
1384
1384
|
let c = "0";
|
|
1385
|
-
if (
|
|
1386
|
-
const s = parseFloat(
|
|
1385
|
+
if (t != null) {
|
|
1386
|
+
const s = parseFloat(t);
|
|
1387
1387
|
if (Number.isNaN(s))
|
|
1388
1388
|
return a && (c += ` ${a}`), c;
|
|
1389
1389
|
c = s.toLocaleString("ru-RU", {
|
|
@@ -1393,85 +1393,81 @@ const zt = (r, a) => {
|
|
|
1393
1393
|
return c;
|
|
1394
1394
|
}, Kt = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
|
|
1395
1395
|
function Yt({
|
|
1396
|
-
draggableRows:
|
|
1396
|
+
draggableRows: t = !1,
|
|
1397
1397
|
dataSource: a,
|
|
1398
1398
|
config: c,
|
|
1399
1399
|
rowKey: s,
|
|
1400
|
-
loading:
|
|
1401
|
-
onRowReorder:
|
|
1402
|
-
preset:
|
|
1400
|
+
loading: T = !1,
|
|
1401
|
+
onRowReorder: y,
|
|
1402
|
+
preset: k,
|
|
1403
1403
|
customCellRender: S,
|
|
1404
1404
|
bodyClassName: _,
|
|
1405
1405
|
bodyStyle: F,
|
|
1406
1406
|
bodyRowClassName: P,
|
|
1407
|
-
bodyRowStyle:
|
|
1407
|
+
bodyRowStyle: I,
|
|
1408
1408
|
bodyCellClassName: M,
|
|
1409
1409
|
bodyCellStyle: K,
|
|
1410
1410
|
bodyCellWrapperClassName: Y,
|
|
1411
|
-
bodyCellWrapperStyle:
|
|
1412
|
-
noDataRender:
|
|
1413
|
-
scrollContainerRef: u
|
|
1411
|
+
bodyCellWrapperStyle: H,
|
|
1412
|
+
noDataRender: j,
|
|
1413
|
+
scrollContainerRef: u,
|
|
1414
|
+
recalculateRowHeight: r
|
|
1414
1415
|
}) {
|
|
1415
|
-
var
|
|
1416
|
-
const [
|
|
1416
|
+
var re;
|
|
1417
|
+
const [i, d] = ce(null), [v, x] = ce(null);
|
|
1417
1418
|
Ce(() => {
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
b.style.height = v + "px";
|
|
1428
|
-
});
|
|
1429
|
-
}), f.forEach((O) => {
|
|
1430
|
-
const L = O.querySelectorAll(".radar-table__body-cell-wrapper");
|
|
1431
|
-
let v = 0;
|
|
1432
|
-
L.forEach((b) => {
|
|
1433
|
-
b.style.height = "auto", v = Math.max(v, b.offsetHeight);
|
|
1434
|
-
}), L.forEach((b) => {
|
|
1435
|
-
b.style.height = v + "px";
|
|
1436
|
-
});
|
|
1419
|
+
Kt && r && (() => {
|
|
1420
|
+
const R = document.querySelectorAll(".radar-table__body-row");
|
|
1421
|
+
document.querySelectorAll(".radar-table__header-row").forEach((w) => {
|
|
1422
|
+
const O = w.querySelectorAll(".radar-table__header-cell-wrapper");
|
|
1423
|
+
let C = 0;
|
|
1424
|
+
O.forEach((g) => {
|
|
1425
|
+
g.style.height = "auto", C = Math.max(C, g.offsetHeight);
|
|
1426
|
+
}), O.forEach((g) => {
|
|
1427
|
+
g.style.height = C + "px";
|
|
1437
1428
|
});
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1429
|
+
}), R.forEach((w) => {
|
|
1430
|
+
const O = w.querySelectorAll(".radar-table__body-cell-wrapper");
|
|
1431
|
+
let C = 0;
|
|
1432
|
+
O.forEach((g) => {
|
|
1433
|
+
g.style.height = "auto", C = Math.max(C, g.offsetHeight);
|
|
1434
|
+
}), O.forEach((g) => {
|
|
1435
|
+
g.style.height = C + "px";
|
|
1436
|
+
});
|
|
1437
|
+
});
|
|
1438
|
+
})();
|
|
1443
1439
|
}, [a, c]);
|
|
1444
|
-
const
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1447
|
-
O.children && O.children.length > 0 ? f(O.children) :
|
|
1440
|
+
const b = ((h) => {
|
|
1441
|
+
const R = [], f = (w) => {
|
|
1442
|
+
w.forEach((O) => {
|
|
1443
|
+
O.children && O.children.length > 0 ? f(O.children) : R.push(O);
|
|
1448
1444
|
});
|
|
1449
1445
|
};
|
|
1450
|
-
return f(
|
|
1451
|
-
})(c),
|
|
1452
|
-
if (
|
|
1453
|
-
return
|
|
1454
|
-
const
|
|
1455
|
-
for (const
|
|
1456
|
-
if (
|
|
1457
|
-
if (
|
|
1458
|
-
return
|
|
1459
|
-
const
|
|
1460
|
-
if (
|
|
1446
|
+
return f(h), R;
|
|
1447
|
+
})(c), m = (h) => {
|
|
1448
|
+
if (h.groupColor)
|
|
1449
|
+
return h.groupColor;
|
|
1450
|
+
const R = (w, O) => {
|
|
1451
|
+
for (const C of w)
|
|
1452
|
+
if (C.children) {
|
|
1453
|
+
if (C.children.some((J) => J.key === O))
|
|
1454
|
+
return C;
|
|
1455
|
+
const g = R(C.children, O);
|
|
1456
|
+
if (g) return g;
|
|
1461
1457
|
}
|
|
1462
1458
|
return null;
|
|
1463
|
-
}, f =
|
|
1459
|
+
}, f = R(c, h.key);
|
|
1464
1460
|
return f == null ? void 0 : f.groupColor;
|
|
1465
|
-
},
|
|
1466
|
-
if (!
|
|
1467
|
-
|
|
1461
|
+
}, $ = G((h, R) => {
|
|
1462
|
+
if (!R) {
|
|
1463
|
+
h.preventDefault();
|
|
1468
1464
|
return;
|
|
1469
1465
|
}
|
|
1470
|
-
|
|
1471
|
-
const f = a.find((
|
|
1466
|
+
d(R), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", R), document.body.style.cursor = "grabbing";
|
|
1467
|
+
const f = a.find((w) => (s ? s(w) : JSON.stringify(w)) === R);
|
|
1472
1468
|
if (f) {
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1469
|
+
const w = document.createElement("div");
|
|
1470
|
+
w.style.cssText = `
|
|
1475
1471
|
background: white;
|
|
1476
1472
|
border-radius: 6px;
|
|
1477
1473
|
padding: 8px 12px;
|
|
@@ -1485,119 +1481,119 @@ function Yt({
|
|
|
1485
1481
|
overflow: hidden;
|
|
1486
1482
|
text-overflow: ellipsis;
|
|
1487
1483
|
`;
|
|
1488
|
-
const O =
|
|
1484
|
+
const O = b[0];
|
|
1489
1485
|
if (O) {
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1486
|
+
const g = f[O.key];
|
|
1487
|
+
w.textContent = (g == null ? void 0 : g.toString()) || "Строка";
|
|
1492
1488
|
} else
|
|
1493
|
-
|
|
1494
|
-
document.body.appendChild(
|
|
1495
|
-
const
|
|
1496
|
-
document.body.contains(
|
|
1489
|
+
w.textContent = "Строка";
|
|
1490
|
+
document.body.appendChild(w), w.style.position = "absolute", w.style.top = "-1000px", w.style.left = "-1000px", h.dataTransfer.setDragImage(w, 10, 10);
|
|
1491
|
+
const C = setTimeout(() => {
|
|
1492
|
+
document.body.contains(w) && document.body.removeChild(w);
|
|
1497
1493
|
}, 0);
|
|
1498
|
-
return () => clearTimeout(
|
|
1499
|
-
}
|
|
1500
|
-
}, []),
|
|
1501
|
-
|
|
1502
|
-
}, []),
|
|
1503
|
-
|
|
1504
|
-
}, [
|
|
1505
|
-
|
|
1506
|
-
}, []),
|
|
1507
|
-
|
|
1508
|
-
}, []),
|
|
1509
|
-
if (
|
|
1494
|
+
return () => clearTimeout(C);
|
|
1495
|
+
}
|
|
1496
|
+
}, []), W = G((h) => {
|
|
1497
|
+
h.preventDefault(), h.dataTransfer.dropEffect = "move";
|
|
1498
|
+
}, []), V = G((h, R) => {
|
|
1499
|
+
h.preventDefault(), i !== R && x(R);
|
|
1500
|
+
}, [i]), z = G((h) => {
|
|
1501
|
+
h.preventDefault(), x(null);
|
|
1502
|
+
}, []), q = G(() => {
|
|
1503
|
+
d(null), x(null), document.body.style.cursor = "";
|
|
1504
|
+
}, []), U = G((h, R) => {
|
|
1505
|
+
if (h.preventDefault(), !i || i === R)
|
|
1510
1506
|
return;
|
|
1511
|
-
const f = a.findIndex((
|
|
1512
|
-
if (f === -1 ||
|
|
1507
|
+
const f = a.findIndex((g) => (s ? s(g) : JSON.stringify(g)) === i), w = a.findIndex((g) => (s ? s(g) : JSON.stringify(g)) === R);
|
|
1508
|
+
if (f === -1 || w === -1)
|
|
1513
1509
|
return;
|
|
1514
|
-
const O = [...a], [
|
|
1515
|
-
O.splice(
|
|
1516
|
-
}, [
|
|
1510
|
+
const O = [...a], [C] = O.splice(f, 1);
|
|
1511
|
+
O.splice(w, 0, C), y && (y == null || y(O)), d(null), x(null);
|
|
1512
|
+
}, [i, a, s, y]);
|
|
1517
1513
|
if (a.length === 0) {
|
|
1518
|
-
let
|
|
1519
|
-
return u && (
|
|
1514
|
+
let h;
|
|
1515
|
+
return u && (h = ((re = u.current) == null ? void 0 : re.clientWidth) + "px"), /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${k ? k + "__body" : ""} ${_}`, style: F, children: /* @__PURE__ */ o.jsx(
|
|
1520
1516
|
"tr",
|
|
1521
1517
|
{
|
|
1522
|
-
className: `radar-table__body-row ${
|
|
1523
|
-
style:
|
|
1518
|
+
className: `radar-table__body-row ${k ? k + "__body-row" : ""} ${P}`,
|
|
1519
|
+
style: I,
|
|
1524
1520
|
children: /* @__PURE__ */ o.jsxs(
|
|
1525
1521
|
"td",
|
|
1526
1522
|
{
|
|
1527
|
-
className: `radar-table__body-cell ${
|
|
1528
|
-
colSpan:
|
|
1523
|
+
className: `radar-table__body-cell ${k ? k + "__body-cell" : ""} ${M}`,
|
|
1524
|
+
colSpan: b.length,
|
|
1529
1525
|
style: {
|
|
1530
1526
|
...K
|
|
1531
1527
|
},
|
|
1532
1528
|
children: [
|
|
1533
|
-
|
|
1534
|
-
!
|
|
1529
|
+
j && j(),
|
|
1530
|
+
!j && /* @__PURE__ */ o.jsx("div", { className: `${h ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: h || "" }, children: "Нет данных" })
|
|
1535
1531
|
]
|
|
1536
1532
|
}
|
|
1537
1533
|
)
|
|
1538
1534
|
}
|
|
1539
1535
|
) });
|
|
1540
1536
|
}
|
|
1541
|
-
return /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${
|
|
1542
|
-
const
|
|
1537
|
+
return /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${k ? k + "__body" : ""} ${_}`, style: F, children: a.map((h) => {
|
|
1538
|
+
const R = s ? s(h) : JSON.stringify(h);
|
|
1543
1539
|
return (
|
|
1544
1540
|
// Table row
|
|
1545
1541
|
/* @__PURE__ */ o.jsx(
|
|
1546
1542
|
"tr",
|
|
1547
1543
|
{
|
|
1548
|
-
className: `radar-table__body-row ${
|
|
1549
|
-
style:
|
|
1550
|
-
draggable:
|
|
1551
|
-
onDragStart: (f) =>
|
|
1552
|
-
onDragOver:
|
|
1553
|
-
onDragEnter: (f) =>
|
|
1554
|
-
onDragLeave:
|
|
1555
|
-
onDrop: (f) =>
|
|
1556
|
-
onDragEnd:
|
|
1557
|
-
children:
|
|
1558
|
-
var Q,
|
|
1559
|
-
const O = f.fixed && !f.width ? 200 : f.width,
|
|
1560
|
-
let
|
|
1561
|
-
if (S && S.idx.includes(f.dataIndex) && (
|
|
1562
|
-
for (let
|
|
1563
|
-
|
|
1564
|
-
const X =
|
|
1544
|
+
className: `radar-table__body-row ${k ? k + "__body-row" : ""} ${P} ${i === R ? "dragging" : ""} ${v === R ? "drag-over" : ""}`,
|
|
1545
|
+
style: I,
|
|
1546
|
+
draggable: t,
|
|
1547
|
+
onDragStart: (f) => $(f, R),
|
|
1548
|
+
onDragOver: W,
|
|
1549
|
+
onDragEnter: (f) => V(f, R),
|
|
1550
|
+
onDragLeave: z,
|
|
1551
|
+
onDrop: (f) => U(f, R),
|
|
1552
|
+
onDragEnd: q,
|
|
1553
|
+
children: b.map((f, w) => {
|
|
1554
|
+
var Q, E;
|
|
1555
|
+
const O = f.fixed && !f.width ? 200 : f.width, C = f.fixed && !f.minWidth ? 200 : f.minWidth;
|
|
1556
|
+
let g = f.fixedLeft ? f.fixedLeft : 0, J = !1;
|
|
1557
|
+
if (S && S.idx.includes(f.dataIndex) && (J = !0), S && S.idx.length === 0 && (J = !0), f.fixed && w !== 0)
|
|
1558
|
+
for (let L = 0; L < w; L++)
|
|
1559
|
+
b[L].fixed && !b[L].hidden && (g += (b[L].width || b[L].minWidth || 200) + (b[L].fixedLeft || 0));
|
|
1560
|
+
const X = m(f);
|
|
1565
1561
|
return !f.hidden && /* @__PURE__ */ o.jsxs(
|
|
1566
1562
|
"td",
|
|
1567
1563
|
{
|
|
1568
|
-
className: `radar-table__body-cell ${
|
|
1564
|
+
className: `radar-table__body-cell ${k ? k + "__body-cell" : ""} ${M}`,
|
|
1569
1565
|
style: {
|
|
1570
1566
|
width: O,
|
|
1571
|
-
minWidth:
|
|
1567
|
+
minWidth: C,
|
|
1572
1568
|
position: f.fixed ? "sticky" : "static",
|
|
1573
|
-
left:
|
|
1574
|
-
borderRight: f.fixed && !((Q =
|
|
1569
|
+
left: g,
|
|
1570
|
+
borderRight: f.fixed && !((Q = b[w + 1]) != null && Q.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1575
1571
|
...K
|
|
1576
1572
|
},
|
|
1577
1573
|
children: [
|
|
1578
|
-
!
|
|
1574
|
+
!J && /* @__PURE__ */ o.jsxs(
|
|
1579
1575
|
"div",
|
|
1580
1576
|
{
|
|
1581
|
-
className: `radar-table__body-cell-wrapper ${
|
|
1577
|
+
className: `radar-table__body-cell-wrapper ${k ? k + "__body-cell-wrapper" : ""} ${Y}`,
|
|
1582
1578
|
style: {
|
|
1583
1579
|
backgroundColor: X || "white",
|
|
1584
|
-
...
|
|
1580
|
+
...H
|
|
1585
1581
|
},
|
|
1586
1582
|
children: [
|
|
1587
|
-
f.units && zt(((
|
|
1588
|
-
!f.units &&
|
|
1583
|
+
f.units && zt(((E = h[f.key]) == null ? void 0 : E.toString()) || "", f.units),
|
|
1584
|
+
!f.units && h[f.key]
|
|
1589
1585
|
]
|
|
1590
1586
|
}
|
|
1591
1587
|
),
|
|
1592
|
-
|
|
1588
|
+
J && /* @__PURE__ */ o.jsx(
|
|
1593
1589
|
"div",
|
|
1594
1590
|
{
|
|
1595
|
-
className: `radar-table__body-cell-wrapper ${
|
|
1591
|
+
className: `radar-table__body-cell-wrapper ${k ? k + "__body-cell-wrapper" : ""} ${Y}`,
|
|
1596
1592
|
style: {
|
|
1597
|
-
...
|
|
1593
|
+
...H,
|
|
1598
1594
|
backgroundColor: X || "white"
|
|
1599
1595
|
},
|
|
1600
|
-
children: S == null ? void 0 : S.renderer(
|
|
1596
|
+
children: S == null ? void 0 : S.renderer(h[f.dataIndex], h, w, f.dataIndex)
|
|
1601
1597
|
}
|
|
1602
1598
|
)
|
|
1603
1599
|
]
|
|
@@ -1606,36 +1602,36 @@ function Yt({
|
|
|
1606
1602
|
);
|
|
1607
1603
|
})
|
|
1608
1604
|
},
|
|
1609
|
-
|
|
1605
|
+
R
|
|
1610
1606
|
)
|
|
1611
1607
|
);
|
|
1612
1608
|
}) });
|
|
1613
1609
|
}
|
|
1614
|
-
const Ue = ({ config:
|
|
1615
|
-
const [{ current: a, pageSize: c, total: s, onChange:
|
|
1610
|
+
const Ue = ({ config: t }) => {
|
|
1611
|
+
const [{ current: a, pageSize: c, total: s, onChange: T, showQuickJumper: y, buttonsCount: k = 4, hideOnSinglePage: S = !1 }, _] = ce(t);
|
|
1616
1612
|
Ce(() => {
|
|
1617
|
-
_(
|
|
1618
|
-
}, [
|
|
1619
|
-
const F = Math.ceil(a /
|
|
1613
|
+
_(t);
|
|
1614
|
+
}, [t]);
|
|
1615
|
+
const F = Math.ceil(a / k), P = (F - 1) * k + 1, I = F * k, M = (r) => {
|
|
1620
1616
|
const i = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
|
|
1621
|
-
!/^[0-9]$/.test(
|
|
1622
|
-
}, K = (
|
|
1623
|
-
if (
|
|
1624
|
-
const i = parseInt(
|
|
1625
|
-
i > 0 && i <= s && (_({ ...
|
|
1626
|
-
}
|
|
1627
|
-
}, Y = (
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1630
|
-
},
|
|
1631
|
-
|
|
1632
|
-
const
|
|
1633
|
-
|
|
1634
|
-
},
|
|
1635
|
-
const i =
|
|
1636
|
-
i === "pagination_left_button" && a > 1 && (_({ ...
|
|
1637
|
-
}, u = (
|
|
1638
|
-
_({ ...
|
|
1617
|
+
!/^[0-9]$/.test(r.key) && !i.includes(r.key) && r.preventDefault();
|
|
1618
|
+
}, K = (r) => {
|
|
1619
|
+
if (r.key === "Enter") {
|
|
1620
|
+
const i = parseInt(r.currentTarget.value);
|
|
1621
|
+
i > 0 && i <= s && (_({ ...t, current: i }), T == null || T(i, c), r.currentTarget.value = "");
|
|
1622
|
+
}
|
|
1623
|
+
}, Y = (r) => {
|
|
1624
|
+
const d = r.target.value.replace(/[^0-9]/g, "");
|
|
1625
|
+
r.target.value = d;
|
|
1626
|
+
}, H = (r) => {
|
|
1627
|
+
r.preventDefault();
|
|
1628
|
+
const d = r.clipboardData.getData("text").replace(/[^0-9]/g, ""), v = r.target, x = v.selectionStart || 0, p = v.selectionEnd || 0, b = v.value.substring(0, x) + d + v.value.substring(p);
|
|
1629
|
+
v.value = b, v.setSelectionRange(x + d.length, x + d.length);
|
|
1630
|
+
}, j = (r) => {
|
|
1631
|
+
const i = r.currentTarget.id;
|
|
1632
|
+
i === "pagination_left_button" && a > 1 && (_({ ...t, current: a - 1 }), T == null || T(a - 1, c)), i === "pagination_right_button" && a < s && (_({ ...t, current: a + 1 }), T == null || T(a + 1, c));
|
|
1633
|
+
}, u = (r) => {
|
|
1634
|
+
_({ ...t, current: r }), T == null || T(r, c);
|
|
1639
1635
|
};
|
|
1640
1636
|
return S && s <= 1 ? null : /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination", children: [
|
|
1641
1637
|
/* @__PURE__ */ o.jsxs(
|
|
@@ -1643,20 +1639,20 @@ const Ue = ({ config: r }) => {
|
|
|
1643
1639
|
{
|
|
1644
1640
|
className: "radar-table__pagination-main",
|
|
1645
1641
|
style: {
|
|
1646
|
-
gridTemplateColumns: `repeat(${
|
|
1642
|
+
gridTemplateColumns: `repeat(${k + 2}, 32px)`
|
|
1647
1643
|
},
|
|
1648
1644
|
children: [
|
|
1649
|
-
/* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick:
|
|
1650
|
-
Array.from({ length: s }, (
|
|
1651
|
-
const i = a ===
|
|
1652
|
-
if (
|
|
1653
|
-
return i ? /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children:
|
|
1645
|
+
/* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: j, title: "Назад", children: /* @__PURE__ */ o.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
|
|
1646
|
+
Array.from({ length: s }, (r, i) => i + 1).map((r) => {
|
|
1647
|
+
const i = a === r;
|
|
1648
|
+
if (r >= P && r <= I)
|
|
1649
|
+
return i ? /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: r }, r) : /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button", onClick: () => u(r), children: r }, r);
|
|
1654
1650
|
}),
|
|
1655
|
-
/* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick:
|
|
1651
|
+
/* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: j, title: "Вперёд", children: /* @__PURE__ */ o.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
|
|
1656
1652
|
]
|
|
1657
1653
|
}
|
|
1658
1654
|
),
|
|
1659
|
-
|
|
1655
|
+
y && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
|
|
1660
1656
|
"Перейти на ",
|
|
1661
1657
|
/* @__PURE__ */ o.jsx(
|
|
1662
1658
|
"input",
|
|
@@ -1664,8 +1660,8 @@ const Ue = ({ config: r }) => {
|
|
|
1664
1660
|
className: "radar-table__pagination-input",
|
|
1665
1661
|
onKeyDown: M,
|
|
1666
1662
|
onChange: Y,
|
|
1667
|
-
onPaste:
|
|
1668
|
-
onKeyUp: (
|
|
1663
|
+
onPaste: H,
|
|
1664
|
+
onKeyUp: (r) => K(r)
|
|
1669
1665
|
}
|
|
1670
1666
|
),
|
|
1671
1667
|
" стр. из ",
|
|
@@ -1674,50 +1670,51 @@ const Ue = ({ config: r }) => {
|
|
|
1674
1670
|
] });
|
|
1675
1671
|
};
|
|
1676
1672
|
function qt({
|
|
1677
|
-
dataSource:
|
|
1673
|
+
dataSource: t,
|
|
1678
1674
|
preset: a,
|
|
1679
1675
|
config: c,
|
|
1680
1676
|
rowKey: s,
|
|
1681
|
-
loading:
|
|
1682
|
-
pagination:
|
|
1683
|
-
stickyHeader:
|
|
1677
|
+
loading: T = !1,
|
|
1678
|
+
pagination: y,
|
|
1679
|
+
stickyHeader: k = !1,
|
|
1684
1680
|
resizeable: S = !1,
|
|
1685
1681
|
draggableRows: _ = !1,
|
|
1686
1682
|
draggableColumns: F = !1,
|
|
1687
1683
|
scrollContainerRef: P,
|
|
1688
|
-
onResize:
|
|
1684
|
+
onResize: I,
|
|
1689
1685
|
onSort: M,
|
|
1690
1686
|
onRowReorder: K,
|
|
1691
1687
|
onColumnReorder: Y,
|
|
1692
|
-
customCellRender:
|
|
1693
|
-
noDataRender:
|
|
1688
|
+
customCellRender: H,
|
|
1689
|
+
noDataRender: j,
|
|
1694
1690
|
sortIcon: u,
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1691
|
+
recalculateRowHeight: r = !1,
|
|
1692
|
+
className: i = "",
|
|
1693
|
+
style: d,
|
|
1694
|
+
headerClassName: v = "",
|
|
1695
|
+
headerStyle: x,
|
|
1696
|
+
headerCellClassName: p = "",
|
|
1697
|
+
headerCellStyle: b,
|
|
1698
|
+
headerRowClassName: m = "",
|
|
1699
|
+
headerRowStyle: $,
|
|
1700
|
+
headerCellWrapperClassName: W = "",
|
|
1701
|
+
headerCellWrapperStyle: V,
|
|
1702
|
+
bodyClassName: z = "",
|
|
1703
|
+
bodyStyle: q,
|
|
1704
|
+
bodyRowClassName: U = "",
|
|
1705
|
+
bodyRowStyle: re,
|
|
1706
|
+
bodyCellClassName: h = "",
|
|
1707
|
+
bodyCellStyle: R,
|
|
1711
1708
|
bodyCellWrapperClassName: f = "",
|
|
1712
|
-
bodyCellWrapperStyle:
|
|
1709
|
+
bodyCellWrapperStyle: w,
|
|
1713
1710
|
headerGroupRowClassName: O,
|
|
1714
|
-
headerGroupRowStyle:
|
|
1715
|
-
headerGroupCellClassName:
|
|
1716
|
-
headerGroupCellStyle:
|
|
1711
|
+
headerGroupRowStyle: C,
|
|
1712
|
+
headerGroupCellClassName: g,
|
|
1713
|
+
headerGroupCellStyle: J,
|
|
1717
1714
|
headerGroupCellWrapperClassName: X,
|
|
1718
1715
|
headerGroupCellWrapperStyle: Q,
|
|
1719
|
-
paginationContainerClassName:
|
|
1720
|
-
paginationContainerStyle:
|
|
1716
|
+
paginationContainerClassName: E = "",
|
|
1717
|
+
paginationContainerStyle: L
|
|
1721
1718
|
}) {
|
|
1722
1719
|
return F ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1723
1720
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1728,153 +1725,156 @@ function qt({
|
|
|
1728
1725
|
children: /* @__PURE__ */ o.jsx(
|
|
1729
1726
|
Ze,
|
|
1730
1727
|
{
|
|
1731
|
-
dataSource:
|
|
1728
|
+
dataSource: t,
|
|
1732
1729
|
preset: a,
|
|
1733
1730
|
config: c,
|
|
1734
1731
|
rowKey: s,
|
|
1735
|
-
loading:
|
|
1736
|
-
pagination:
|
|
1737
|
-
stickyHeader:
|
|
1732
|
+
loading: T,
|
|
1733
|
+
pagination: y,
|
|
1734
|
+
stickyHeader: k,
|
|
1738
1735
|
resizeable: S,
|
|
1739
1736
|
draggableRows: _,
|
|
1740
1737
|
draggableColumns: F,
|
|
1741
1738
|
scrollContainerRef: P,
|
|
1742
|
-
onResize:
|
|
1739
|
+
onResize: I,
|
|
1743
1740
|
onSort: M,
|
|
1744
1741
|
onRowReorder: K,
|
|
1745
1742
|
onColumnReorder: Y,
|
|
1746
|
-
customCellRender:
|
|
1743
|
+
customCellRender: H,
|
|
1747
1744
|
sortIcon: u,
|
|
1748
|
-
className:
|
|
1749
|
-
style:
|
|
1750
|
-
headerClassName:
|
|
1751
|
-
headerStyle:
|
|
1752
|
-
headerCellClassName:
|
|
1753
|
-
headerCellStyle:
|
|
1754
|
-
headerRowClassName:
|
|
1755
|
-
headerRowStyle:
|
|
1756
|
-
headerCellWrapperClassName:
|
|
1757
|
-
headerCellWrapperStyle:
|
|
1758
|
-
bodyClassName:
|
|
1759
|
-
bodyStyle:
|
|
1760
|
-
bodyRowClassName:
|
|
1761
|
-
bodyRowStyle:
|
|
1762
|
-
bodyCellClassName:
|
|
1763
|
-
bodyCellStyle:
|
|
1745
|
+
className: i,
|
|
1746
|
+
style: d,
|
|
1747
|
+
headerClassName: v,
|
|
1748
|
+
headerStyle: x,
|
|
1749
|
+
headerCellClassName: p,
|
|
1750
|
+
headerCellStyle: b,
|
|
1751
|
+
headerRowClassName: m,
|
|
1752
|
+
headerRowStyle: $,
|
|
1753
|
+
headerCellWrapperClassName: W,
|
|
1754
|
+
headerCellWrapperStyle: V,
|
|
1755
|
+
bodyClassName: z,
|
|
1756
|
+
bodyStyle: q,
|
|
1757
|
+
bodyRowClassName: U,
|
|
1758
|
+
bodyRowStyle: re,
|
|
1759
|
+
bodyCellClassName: h,
|
|
1760
|
+
bodyCellStyle: R,
|
|
1764
1761
|
bodyCellWrapperClassName: f,
|
|
1765
|
-
bodyCellWrapperStyle:
|
|
1762
|
+
bodyCellWrapperStyle: w,
|
|
1766
1763
|
headerGroupRowClassName: O,
|
|
1767
|
-
headerGroupRowStyle:
|
|
1768
|
-
headerGroupCellClassName:
|
|
1769
|
-
headerGroupCellStyle:
|
|
1764
|
+
headerGroupRowStyle: C,
|
|
1765
|
+
headerGroupCellClassName: g,
|
|
1766
|
+
headerGroupCellStyle: J,
|
|
1770
1767
|
headerGroupCellWrapperClassName: X,
|
|
1771
1768
|
headerGroupCellWrapperStyle: Q,
|
|
1772
|
-
paginationContainerClassName:
|
|
1773
|
-
paginationContainerStyle:
|
|
1774
|
-
noDataRender:
|
|
1769
|
+
paginationContainerClassName: E,
|
|
1770
|
+
paginationContainerStyle: L,
|
|
1771
|
+
noDataRender: j,
|
|
1772
|
+
recalculateRowHeight: r
|
|
1775
1773
|
}
|
|
1776
1774
|
)
|
|
1777
1775
|
}
|
|
1778
1776
|
),
|
|
1779
|
-
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${
|
|
1777
|
+
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${E}`, style: L, children: y && /* @__PURE__ */ o.jsx(Ue, { config: y }) })
|
|
1780
1778
|
] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1781
1779
|
/* @__PURE__ */ o.jsx(
|
|
1782
1780
|
Ze,
|
|
1783
1781
|
{
|
|
1784
|
-
dataSource:
|
|
1782
|
+
dataSource: t,
|
|
1785
1783
|
preset: a,
|
|
1786
1784
|
config: c,
|
|
1787
1785
|
rowKey: s,
|
|
1788
|
-
loading:
|
|
1789
|
-
pagination:
|
|
1790
|
-
stickyHeader:
|
|
1786
|
+
loading: T,
|
|
1787
|
+
pagination: y,
|
|
1788
|
+
stickyHeader: k,
|
|
1791
1789
|
resizeable: S,
|
|
1792
1790
|
draggableRows: _,
|
|
1793
1791
|
draggableColumns: F,
|
|
1794
1792
|
scrollContainerRef: P,
|
|
1795
|
-
onResize:
|
|
1793
|
+
onResize: I,
|
|
1796
1794
|
onSort: M,
|
|
1797
1795
|
onRowReorder: K,
|
|
1798
1796
|
onColumnReorder: Y,
|
|
1799
|
-
customCellRender:
|
|
1797
|
+
customCellRender: H,
|
|
1800
1798
|
sortIcon: u,
|
|
1801
|
-
className:
|
|
1802
|
-
style:
|
|
1803
|
-
headerClassName:
|
|
1804
|
-
headerStyle:
|
|
1805
|
-
headerCellClassName:
|
|
1806
|
-
headerCellStyle:
|
|
1807
|
-
headerRowClassName:
|
|
1808
|
-
headerRowStyle:
|
|
1809
|
-
headerCellWrapperClassName:
|
|
1810
|
-
headerCellWrapperStyle:
|
|
1811
|
-
bodyClassName:
|
|
1812
|
-
bodyStyle:
|
|
1813
|
-
bodyRowClassName:
|
|
1814
|
-
bodyRowStyle:
|
|
1815
|
-
bodyCellClassName:
|
|
1816
|
-
bodyCellStyle:
|
|
1799
|
+
className: i,
|
|
1800
|
+
style: d,
|
|
1801
|
+
headerClassName: v,
|
|
1802
|
+
headerStyle: x,
|
|
1803
|
+
headerCellClassName: p,
|
|
1804
|
+
headerCellStyle: b,
|
|
1805
|
+
headerRowClassName: m,
|
|
1806
|
+
headerRowStyle: $,
|
|
1807
|
+
headerCellWrapperClassName: W,
|
|
1808
|
+
headerCellWrapperStyle: V,
|
|
1809
|
+
bodyClassName: z,
|
|
1810
|
+
bodyStyle: q,
|
|
1811
|
+
bodyRowClassName: U,
|
|
1812
|
+
bodyRowStyle: re,
|
|
1813
|
+
bodyCellClassName: h,
|
|
1814
|
+
bodyCellStyle: R,
|
|
1817
1815
|
bodyCellWrapperClassName: f,
|
|
1818
|
-
bodyCellWrapperStyle:
|
|
1816
|
+
bodyCellWrapperStyle: w,
|
|
1819
1817
|
headerGroupRowClassName: O,
|
|
1820
|
-
headerGroupRowStyle:
|
|
1821
|
-
headerGroupCellClassName:
|
|
1822
|
-
headerGroupCellStyle:
|
|
1818
|
+
headerGroupRowStyle: C,
|
|
1819
|
+
headerGroupCellClassName: g,
|
|
1820
|
+
headerGroupCellStyle: J,
|
|
1823
1821
|
headerGroupCellWrapperClassName: X,
|
|
1824
1822
|
headerGroupCellWrapperStyle: Q,
|
|
1825
|
-
paginationContainerClassName:
|
|
1826
|
-
paginationContainerStyle:
|
|
1827
|
-
noDataRender:
|
|
1823
|
+
paginationContainerClassName: E,
|
|
1824
|
+
paginationContainerStyle: L,
|
|
1825
|
+
noDataRender: j,
|
|
1826
|
+
recalculateRowHeight: r
|
|
1828
1827
|
}
|
|
1829
1828
|
),
|
|
1830
|
-
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${
|
|
1829
|
+
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${E}`, style: L, children: y && /* @__PURE__ */ o.jsx(Ue, { config: y }) })
|
|
1831
1830
|
] });
|
|
1832
1831
|
}
|
|
1833
|
-
function Ze(
|
|
1832
|
+
function Ze(t) {
|
|
1834
1833
|
const {
|
|
1835
1834
|
dataSource: a,
|
|
1836
1835
|
preset: c,
|
|
1837
1836
|
config: s,
|
|
1838
|
-
rowKey:
|
|
1839
|
-
loading:
|
|
1840
|
-
stickyHeader:
|
|
1837
|
+
rowKey: T,
|
|
1838
|
+
loading: y,
|
|
1839
|
+
stickyHeader: k,
|
|
1841
1840
|
resizeable: S,
|
|
1842
1841
|
draggableRows: _,
|
|
1843
1842
|
draggableColumns: F,
|
|
1844
1843
|
scrollContainerRef: P,
|
|
1845
|
-
onResize:
|
|
1844
|
+
onResize: I,
|
|
1846
1845
|
onSort: M,
|
|
1847
1846
|
onRowReorder: K,
|
|
1848
1847
|
onColumnReorder: Y,
|
|
1849
|
-
customCellRender:
|
|
1850
|
-
sortIcon:
|
|
1848
|
+
customCellRender: H,
|
|
1849
|
+
sortIcon: j,
|
|
1851
1850
|
className: u,
|
|
1852
|
-
style:
|
|
1851
|
+
style: r,
|
|
1853
1852
|
headerClassName: i,
|
|
1854
|
-
headerStyle:
|
|
1855
|
-
headerCellClassName:
|
|
1856
|
-
headerCellStyle:
|
|
1857
|
-
headerRowClassName:
|
|
1858
|
-
headerRowStyle:
|
|
1853
|
+
headerStyle: d,
|
|
1854
|
+
headerCellClassName: v,
|
|
1855
|
+
headerCellStyle: x,
|
|
1856
|
+
headerRowClassName: p,
|
|
1857
|
+
headerRowStyle: b,
|
|
1859
1858
|
headerCellWrapperClassName: m,
|
|
1860
1859
|
headerCellWrapperStyle: $,
|
|
1861
1860
|
bodyClassName: W,
|
|
1862
1861
|
bodyStyle: V,
|
|
1863
1862
|
bodyRowClassName: z,
|
|
1864
1863
|
bodyRowStyle: q,
|
|
1865
|
-
bodyCellClassName:
|
|
1866
|
-
bodyCellStyle:
|
|
1867
|
-
bodyCellWrapperClassName:
|
|
1868
|
-
bodyCellWrapperStyle:
|
|
1869
|
-
headerGroupRowClassName:
|
|
1870
|
-
headerGroupRowStyle:
|
|
1871
|
-
headerGroupCellClassName:
|
|
1872
|
-
headerGroupCellStyle:
|
|
1873
|
-
headerGroupCellWrapperClassName:
|
|
1874
|
-
headerGroupCellWrapperStyle:
|
|
1875
|
-
noDataRender:
|
|
1876
|
-
|
|
1877
|
-
|
|
1864
|
+
bodyCellClassName: U,
|
|
1865
|
+
bodyCellStyle: re,
|
|
1866
|
+
bodyCellWrapperClassName: h,
|
|
1867
|
+
bodyCellWrapperStyle: R,
|
|
1868
|
+
headerGroupRowClassName: f,
|
|
1869
|
+
headerGroupRowStyle: w,
|
|
1870
|
+
headerGroupCellClassName: O,
|
|
1871
|
+
headerGroupCellStyle: C,
|
|
1872
|
+
headerGroupCellWrapperClassName: g,
|
|
1873
|
+
headerGroupCellWrapperStyle: J,
|
|
1874
|
+
noDataRender: X,
|
|
1875
|
+
recalculateRowHeight: Q
|
|
1876
|
+
} = t;
|
|
1877
|
+
return /* @__PURE__ */ o.jsxs("table", { className: `radar-table ${c || ""} ${u}`, style: r, children: [
|
|
1878
1878
|
/* @__PURE__ */ o.jsx(
|
|
1879
1879
|
Vt,
|
|
1880
1880
|
{
|
|
@@ -1882,24 +1882,24 @@ function Ze(r) {
|
|
|
1882
1882
|
config: s,
|
|
1883
1883
|
onSort: M,
|
|
1884
1884
|
resizeable: S,
|
|
1885
|
-
onResize:
|
|
1886
|
-
sortIcon:
|
|
1885
|
+
onResize: I,
|
|
1886
|
+
sortIcon: j,
|
|
1887
1887
|
preset: c,
|
|
1888
1888
|
headerClassName: i,
|
|
1889
|
-
headerStyle:
|
|
1890
|
-
headerRowClassName:
|
|
1891
|
-
headerRowStyle:
|
|
1892
|
-
headerCellClassName:
|
|
1893
|
-
headerCellStyle:
|
|
1889
|
+
headerStyle: d,
|
|
1890
|
+
headerRowClassName: p,
|
|
1891
|
+
headerRowStyle: b,
|
|
1892
|
+
headerCellClassName: v,
|
|
1893
|
+
headerCellStyle: x,
|
|
1894
1894
|
headerCellWrapperClassName: m,
|
|
1895
1895
|
headerCellWrapperStyle: $,
|
|
1896
|
-
headerGroupRowClassName:
|
|
1897
|
-
headerGroupRowStyle:
|
|
1898
|
-
headerGroupCellClassName:
|
|
1899
|
-
headerGroupCellStyle:
|
|
1900
|
-
headerGroupCellWrapperClassName:
|
|
1901
|
-
headerGroupCellWrapperStyle:
|
|
1902
|
-
stickyHeader:
|
|
1896
|
+
headerGroupRowClassName: f,
|
|
1897
|
+
headerGroupRowStyle: w,
|
|
1898
|
+
headerGroupCellClassName: O,
|
|
1899
|
+
headerGroupCellStyle: C,
|
|
1900
|
+
headerGroupCellWrapperClassName: g,
|
|
1901
|
+
headerGroupCellWrapperStyle: J,
|
|
1902
|
+
stickyHeader: k,
|
|
1903
1903
|
scrollContainerRef: P,
|
|
1904
1904
|
onColumnReorder: Y
|
|
1905
1905
|
}
|
|
@@ -1911,32 +1911,33 @@ function Ze(r) {
|
|
|
1911
1911
|
onRowReorder: K,
|
|
1912
1912
|
dataSource: a,
|
|
1913
1913
|
config: s,
|
|
1914
|
-
rowKey:
|
|
1915
|
-
loading:
|
|
1914
|
+
rowKey: T,
|
|
1915
|
+
loading: y,
|
|
1916
1916
|
preset: c,
|
|
1917
|
-
customCellRender:
|
|
1917
|
+
customCellRender: H,
|
|
1918
1918
|
bodyClassName: W,
|
|
1919
1919
|
bodyStyle: V,
|
|
1920
1920
|
bodyRowClassName: z,
|
|
1921
1921
|
bodyRowStyle: q,
|
|
1922
|
-
bodyCellClassName:
|
|
1923
|
-
bodyCellStyle:
|
|
1924
|
-
bodyCellWrapperClassName:
|
|
1925
|
-
bodyCellWrapperStyle:
|
|
1926
|
-
noDataRender:
|
|
1927
|
-
scrollContainerRef: P
|
|
1922
|
+
bodyCellClassName: U,
|
|
1923
|
+
bodyCellStyle: re,
|
|
1924
|
+
bodyCellWrapperClassName: h,
|
|
1925
|
+
bodyCellWrapperStyle: R,
|
|
1926
|
+
noDataRender: X,
|
|
1927
|
+
scrollContainerRef: P,
|
|
1928
|
+
recalculateRowHeight: Q
|
|
1928
1929
|
}
|
|
1929
1930
|
)
|
|
1930
1931
|
] });
|
|
1931
1932
|
}
|
|
1932
|
-
const qe = ({ children:
|
|
1933
|
+
const qe = ({ children: t, tagType: a = "h1", ...c }) => {
|
|
1933
1934
|
if (a === "h1")
|
|
1934
1935
|
return /* @__PURE__ */ o.jsx(
|
|
1935
1936
|
"h1",
|
|
1936
1937
|
{
|
|
1937
1938
|
className: "radar-title radar-title_h1",
|
|
1938
1939
|
...c,
|
|
1939
|
-
children:
|
|
1940
|
+
children: t
|
|
1940
1941
|
}
|
|
1941
1942
|
);
|
|
1942
1943
|
if (a === "h2")
|
|
@@ -1945,7 +1946,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
1945
1946
|
{
|
|
1946
1947
|
className: "radar-title radar-title_h1",
|
|
1947
1948
|
...c,
|
|
1948
|
-
children:
|
|
1949
|
+
children: t
|
|
1949
1950
|
}
|
|
1950
1951
|
);
|
|
1951
1952
|
if (a === "h3")
|
|
@@ -1954,7 +1955,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
1954
1955
|
{
|
|
1955
1956
|
className: "radar-title radar-title_h1",
|
|
1956
1957
|
...c,
|
|
1957
|
-
children:
|
|
1958
|
+
children: t
|
|
1958
1959
|
}
|
|
1959
1960
|
);
|
|
1960
1961
|
if (a === "h4")
|
|
@@ -1963,7 +1964,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
1963
1964
|
{
|
|
1964
1965
|
className: "radar-title radar-title_h1",
|
|
1965
1966
|
...c,
|
|
1966
|
-
children:
|
|
1967
|
+
children: t
|
|
1967
1968
|
}
|
|
1968
1969
|
);
|
|
1969
1970
|
if (a === "h5")
|
|
@@ -1972,7 +1973,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
1972
1973
|
{
|
|
1973
1974
|
className: "radar-title radar-title_h1",
|
|
1974
1975
|
...c,
|
|
1975
|
-
children:
|
|
1976
|
+
children: t
|
|
1976
1977
|
}
|
|
1977
1978
|
);
|
|
1978
1979
|
if (a === "h6")
|
|
@@ -1981,17 +1982,17 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
1981
1982
|
{
|
|
1982
1983
|
className: "radar-title radar-title_h1",
|
|
1983
1984
|
...c,
|
|
1984
|
-
children:
|
|
1985
|
+
children: t
|
|
1985
1986
|
}
|
|
1986
1987
|
);
|
|
1987
|
-
}, Bt = ({ children:
|
|
1988
|
+
}, Bt = ({ children: t, tagType: a = "h2", ...c }) => {
|
|
1988
1989
|
if (a === "h1")
|
|
1989
1990
|
return /* @__PURE__ */ o.jsx(
|
|
1990
1991
|
"h1",
|
|
1991
1992
|
{
|
|
1992
1993
|
className: "radar-title radar-title_h2",
|
|
1993
1994
|
...c,
|
|
1994
|
-
children:
|
|
1995
|
+
children: t
|
|
1995
1996
|
}
|
|
1996
1997
|
);
|
|
1997
1998
|
if (a === "h2")
|
|
@@ -2000,7 +2001,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
2000
2001
|
{
|
|
2001
2002
|
className: "radar-title radar-title_h2",
|
|
2002
2003
|
...c,
|
|
2003
|
-
children:
|
|
2004
|
+
children: t
|
|
2004
2005
|
}
|
|
2005
2006
|
);
|
|
2006
2007
|
if (a === "h3")
|
|
@@ -2009,7 +2010,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
2009
2010
|
{
|
|
2010
2011
|
className: "radar-title radar-title_h2",
|
|
2011
2012
|
...c,
|
|
2012
|
-
children:
|
|
2013
|
+
children: t
|
|
2013
2014
|
}
|
|
2014
2015
|
);
|
|
2015
2016
|
if (a === "h4")
|
|
@@ -2018,7 +2019,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
2018
2019
|
{
|
|
2019
2020
|
className: "radar-title radar-title_h2",
|
|
2020
2021
|
...c,
|
|
2021
|
-
children:
|
|
2022
|
+
children: t
|
|
2022
2023
|
}
|
|
2023
2024
|
);
|
|
2024
2025
|
if (a === "h5")
|
|
@@ -2027,7 +2028,7 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
2027
2028
|
{
|
|
2028
2029
|
className: "radar-title radar-title_h2",
|
|
2029
2030
|
...c,
|
|
2030
|
-
children:
|
|
2031
|
+
children: t
|
|
2031
2032
|
}
|
|
2032
2033
|
);
|
|
2033
2034
|
if (a === "h6")
|
|
@@ -2036,10 +2037,10 @@ const qe = ({ children: r, tagType: a = "h1", ...c }) => {
|
|
|
2036
2037
|
{
|
|
2037
2038
|
className: "radar-title radar-title_h2",
|
|
2038
2039
|
...c,
|
|
2039
|
-
children:
|
|
2040
|
+
children: t
|
|
2040
2041
|
}
|
|
2041
2042
|
);
|
|
2042
|
-
}, Gt = Object.assign(qe, { H1: qe, H2: Bt }), Ge = ({ children:
|
|
2043
|
+
}, Gt = Object.assign(qe, { H1: qe, H2: Bt }), Ge = ({ children: t, fontStyle: a = "medium", ...c }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_m radar-text_${a}`, ...c, children: t }), Ht = ({ children: t, fontStyle: a = "medium", ...c }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_s radar-text_${a}`, ...c, children: t }), Xt = Object.assign(Ge, { M: Ge, S: Ht });
|
|
2043
2044
|
export {
|
|
2044
2045
|
Mt as HeaderCell,
|
|
2045
2046
|
Ue as Pagination,
|