radar-ui 1.1.22 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
style.textContent = ".radar-table-container{display:flex;flex-direction:column;gap:16px;position:relative}.radar-table{width:100%;border-collapse:separate;border-spacing:0;font-family:inherit;overflow:clip;scroll-snap-type:x mandatory;scroll-behavior:smooth;table-layout:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.radar-table-default{border-radius:12px;background-color:#fff}.radar-table-pagination-container{position:sticky;bottom:-16px;left:0;background-color:#fff;padding:16px;border-top:1px solid #E8E8E8;width:100%}.radar-table *,.radar-table *:before,.radar-table *:after{box-sizing:border-box}@-moz-document url-prefix(){.radar-table{border-collapse:separate;border-spacing:0}.radar-table__body-row{box-sizing:border-box}.radar-table__body-cell{vertical-align:top;box-sizing:border-box}.radar-table__body-cell-wrapper,.radar-table__header-cell-wrapper{display:flex!important;align-items:center!important;box-sizing:border-box!important;padding:9px 12px!important;height:1px;min-height:32px;vertical-align:top}.radar-table-default__body-cell-wrapper,.radar-table-simple__body-cell-wrapper{line-height:1!important;padding:9px 12px!important;font-size:14px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px!important}.radar-table-simple__header-cell-wrapper{padding:20px 10px!important}}.column-drag-overlay{pointer-events:none;z-index:9999}.drag-preview{background:#fff;border-radius:6px;padding:8px 12px;box-shadow:0 6px 16px #00000040;font-size:14px;color:#333;white-space:nowrap;transform:rotate(3deg) scale(.95);max-width:200px;overflow:hidden;text-overflow:ellipsis}.radar-table__header{text-align:left;z-index:1}.radar-table-default__header{background-color:#f7f6fe}.radar-table-simple__header{background-color:#fff}.radar-table__header-group-cell{scroll-snap-align:start}.radar-table-simple__header-group-cell{font-family:inherit;font-weight:700;font-size:18px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;vertical-align:top}.radar-table__header-group-cell-wrapper{width:100%}.radar-table-simple__header-group-cell-wrapper{padding:12px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:44px}.radar-table__header-cell{scroll-snap-align:start;box-sizing:border-box}.radar-table-default__header-cell{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;font-weight:500!important;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;background-color:#f7f6fe;box-sizing:border-box}.radar-table-simple__header-cell{font-weight:500!important;font-size:16px;line-height:1.2;letter-spacing:0%;color:#8c8c8c;background-color:#fff;box-sizing:border-box;vertical-align:top}.radar-table-default__header-cell:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.radar-table-default__header-cell:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.radar-table__header-cell-wrapper{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table__header-cell-wrapper:hover .radar-table__resize-button{opacity:1}.radar-table__header-cell-wrapper:hover{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px;display:flex;gap:8px;align-items:center;box-sizing:border-box}.radar-table-simple__header-cell-wrapper{padding:20px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:60px}.radar-table__header-cell-text-wrapper{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.radar-table__sort-button-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.radar-table__sort-button{border:none;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.radar-table__sort-button svg{width:1em;height:1em}.radar-table__sort-button:hover{opacity:.75}.radar-table__drag-handle{display:flex;align-items:center;justify-content:center;cursor:move;opacity:.5;transition:opacity .2s ease;padding:2px;margin-right:4px}.radar-table__drag-handle:hover{opacity:.8}.radar-table__drag-handle.dragging{opacity:1}.radar-table__header-cell.dragging{opacity:.5;transform:rotate(2deg);z-index:1000}.radar-table__header-cell.drag-over.valid-drop-zone{background-color:#5329ff1a!important;border-left:2px solid #5329FF;transition:all .2s ease;z-index:1000}.radar-table__header-cell.drag-over.invalid-drop-zone{background-color:#ff3b3b1a!important;border-left:2px solid #ff3b3b;transition:all .2s ease;z-index:1000}.radar-table__drag-handle{cursor:grab;transition:transform .2s ease}.radar-table__drag-handle:hover{transform:scale(1.1)}.radar-table__drag-handle.dragging{cursor:grabbing}.radar-table__header-cell.group-header{cursor:default!important}.column-drag-overlay .drag-preview{background:#fff;border-radius:6px;padding:8px 12px;box-shadow:0 6px 16px #00000040;font-size:14px;color:#333;white-space:nowrap;transform:rotate(3deg) scale(.95);max-width:200px;overflow:hidden;text-overflow:ellipsis;border:2px solid #5329FF}.radar-table__header-cell.group-header{cursor:grab}.radar-table__header-cell.group-header.dragging{cursor:grabbing}.radar-table__body-row[draggable=true]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.radar-table__body-row.dragging{opacity:.25;cursor:grabbing;border-radius:20px}.radar-table__body-row.drag-over{border-top:2px solid #5329FF!important}.radar-table__body-row[draggable=true]{cursor:grab}.radar-table__body-row[draggable=true]:active{cursor:grabbing}.radar-table__body-cell{scroll-snap-align:start;box-sizing:border-box;vertical-align:top}.radar-table-default__body-cell,.radar-table-simple__body-cell{height:1px}.radar-table__body-cell-wrapper{width:100%;height:100%;font-family:inherit;background-color:#fff;display:flex;align-items:center}.radar-table__expander-btn{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:16px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:transform .15s ease}.radar-table__expander-btn:focus{outline:none}.radar-table-default__body-cell-wrapper{padding:7px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:14px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-simple__body-cell-wrapper{padding:18px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:16px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-default__body-row:last-of-type .radar-table-default__body-cell-wrapper{border-bottom:none}.radar-table-simple__body-row:last-of-type .radar-table-simple__body-cell-wrapper{border-bottom:none}.radar-table__body-noData{padding:18px 12px;display:flex;align-items:center;font-size:16px;line-height:1.2;width:100%}.radar-table__body-noData_width{padding:18px 12px;display:flex;justify-content:center;align-items:center;font-size:16px;line-height:1.2}.radar-table__body-cell-wrapper--stretch,.radar-table-default__body-cell-wrapper--stretch,.radar-table-simple__body-cell-wrapper--stretch{align-items:stretch!important}.radar-table__body-cell-wrapper .salary-cell,.radar-table-default__body-cell-wrapper .salary-cell,.radar-table-simple__body-cell-wrapper .salary-cell{width:100%;height:auto;min-height:auto}.radar-table__custom-content-wrapper{width:100%;height:auto;min-height:100%}.radar-table__footer{pointer-events:auto}.radar-table__footer.resizing{pointer-events:none}.radar-table-default__footer,.radar-table-simple__footer{background-color:#fff}.radar-table-default__footer-cell,.radar-table-simple__footer-cell{border-top:1px solid #E8E8E8}.radar-table__footer-cell-wrapper{width:100%;font-family:inherit}.radar-table-default__footer-cell-wrapper,.radar-table-simple__footer-cell-wrapper{padding:12px 0;display:flex;gap:8px}.radar-table__resize-button{opacity:0;position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;width:20px;padding-right:6px;background-color:transparent;cursor:col-resize;border:none;display:flex;justify-content:flex-end;align-items:center;transition:all .2s cubic-bezier(.4,0,.2,1)}.radar-table__resize-button:hover{cursor:col-resize!important}.radar-table__resize-button div{background-color:#8c8c8c;width:2px;height:50%;opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);border-radius:1px}.radar-table__resize-button:hover div{opacity:.5}.radar-table__pagination{display:flex;align-items:center;gap:24px}.radar-table__pagination-main{display:grid;grid-template-rows:32px;gap:4px}.radar-table__pagination-button{width:100%;height:100%;max-width:32px;max-height:32px;border-radius:8px;border:none;cursor:pointer;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;opacity:1;transition:all .2s ease;display:flex;align-items:center;justify-content:center;border:1px solid #F7F7F7}.radar-table__pagination-button_active{color:#5329ff;background-color:#eeeaff;border:1px solid #5329FF}.radar-table__pagination-button_control{background-color:transparent;border:none}.radar-table__pagination-button_control:hover{background-color:#f7f7f7}.radar-table__pagination-button:hover{opacity:.75}.radar-table__pagination-quick-jumper{display:flex;align-items:center;gap:8px;font-family:inherit;font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a}.radar-table__pagination-input{width:32px;height:32px;border-radius:8px;border:1px solid #F7F7F7;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#5329ff;background-color:#eeeaff;text-align:center;outline:none;border:none}.radar-table__tooltip-button{border:none;display:flex;align-items:center;justify-content:center;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;position:relative}.radar-table__tooltip-button:hover{color:#5329ff}.radar-table__tooltip-text{position:absolute;top:calc(100% + 10px);left:0;background-color:#fff;padding:8px;width:250px;transform:scale(0);opacity:0;transition:all .2s ease;transform-origin:top left;border-radius:8px;box-shadow:0 0 20px #00000014;white-space:pre-line;text-align:left;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a;z-index:1000}.radar-table__tooltip-text_visible{transform:scale(1);opacity:1}.radar-table__tooltip-text--right{left:auto!important;right:0!important;transform-origin:top right!important}.radar-table__tooltip-text--right.radar-table__tooltip-text_visible{transform:scale(1)!important}.radar-table__drag-handle{height:20px;cursor:grab;border-radius:4px;border:none}.radar-title{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-title_h1{font-size:22px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-title_h2{font-size:18px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-text{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-text_m{font-size:14px}.radar-text_s{font-size:12px}.radar-text_medium{font-weight:500}.radar-text_semibold{font-weight:600}.radar-text_bold{font-weight:700}\n";
|
|
5
5
|
document.head.appendChild(style);
|
|
6
6
|
})();
|
|
7
|
-
import Re, { useState as
|
|
8
|
-
import { useSensors as
|
|
9
|
-
import { sortableKeyboardCoordinates as
|
|
10
|
-
var
|
|
7
|
+
import Re, { useState as xe, useRef as Pe, useCallback as q, useEffect as Ne, createContext as Ct, useContext as Et, useMemo as We, useLayoutEffect as jt } from "react";
|
|
8
|
+
import { useSensors as kt, useSensor as Ke, PointerSensor as wt, KeyboardSensor as St, pointerWithin as Tt, rectIntersection as Dt, DndContext as Lt, DragOverlay as Ot, useDraggable as Pt, useDroppable as Rt } from "@dnd-kit/core";
|
|
9
|
+
import { sortableKeyboardCoordinates as Nt } from "@dnd-kit/sortable";
|
|
10
|
+
var Je = { exports: {} }, Le = {};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,21 +17,21 @@ var Ve = { exports: {} }, Oe = {};
|
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
var t = Re, r = Symbol.for("react.element"), d = Symbol.for("react.fragment"),
|
|
25
|
-
function
|
|
26
|
-
var S,
|
|
27
|
-
|
|
28
|
-
for (S in
|
|
29
|
-
if (D && D.defaultProps) for (S in
|
|
30
|
-
return { $$typeof: r, type: D, key:
|
|
20
|
+
var Xe;
|
|
21
|
+
function It() {
|
|
22
|
+
if (Xe) return Le;
|
|
23
|
+
Xe = 1;
|
|
24
|
+
var t = Re, r = Symbol.for("react.element"), d = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function j(D, u, F) {
|
|
26
|
+
var S, $ = {}, V = null, U = null;
|
|
27
|
+
F !== void 0 && (V = "" + F), u.key !== void 0 && (V = "" + u.key), u.ref !== void 0 && (U = u.ref);
|
|
28
|
+
for (S in u) l.call(u, S) && !x.hasOwnProperty(S) && ($[S] = u[S]);
|
|
29
|
+
if (D && D.defaultProps) for (S in u = D.defaultProps, u) $[S] === void 0 && ($[S] = u[S]);
|
|
30
|
+
return { $$typeof: r, type: D, key: V, ref: U, props: $, _owner: k.current };
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return Le.Fragment = d, Le.jsx = j, Le.jsxs = j, Le;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var Oe = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -41,54 +41,54 @@ var Pe = {};
|
|
|
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 t = Re, r = Symbol.for("react.element"), d = Symbol.for("react.portal"),
|
|
48
|
-
function
|
|
44
|
+
var Qe;
|
|
45
|
+
function $t() {
|
|
46
|
+
return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var t = Re, r = Symbol.for("react.element"), d = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), D = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), $ = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.for("react.offscreen"), X = Symbol.iterator, G = "@@iterator";
|
|
48
|
+
function C(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var a =
|
|
51
|
+
var a = X && e[X] || e[G];
|
|
52
52
|
return typeof a == "function" ? a : null;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
55
|
function n(e) {
|
|
56
56
|
{
|
|
57
|
-
for (var a = arguments.length,
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
for (var a = arguments.length, f = new Array(a > 1 ? a - 1 : 0), T = 1; T < a; T++)
|
|
58
|
+
f[T - 1] = arguments[T];
|
|
59
|
+
g("error", e, f);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function g(e, a, f) {
|
|
63
63
|
{
|
|
64
|
-
var T =
|
|
65
|
-
|
|
66
|
-
var ee =
|
|
67
|
-
return String(
|
|
64
|
+
var T = b.ReactDebugCurrentFrame, Z = T.getStackAddendum();
|
|
65
|
+
Z !== "" && (a += "%s", f = f.concat([Z]));
|
|
66
|
+
var ee = f.map(function(M) {
|
|
67
|
+
return String(M);
|
|
68
68
|
});
|
|
69
69
|
ee.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, ee);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
72
|
+
var c = !1, E = !1, O = !1, m = !1, p = !1, h;
|
|
73
|
+
h = Symbol.for("react.module.reference");
|
|
74
|
+
function A(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === x || p || e === k || e === F || e === S || m || e === U || c || E || O || typeof e == "object" && e !== null && (e.$$typeof === V || e.$$typeof === $ || e.$$typeof === j || e.$$typeof === D || e.$$typeof === u || // 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
|
-
e.$$typeof ===
|
|
79
|
+
e.$$typeof === h || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function L(e, a, f) {
|
|
82
82
|
var T = e.displayName;
|
|
83
83
|
if (T)
|
|
84
84
|
return T;
|
|
85
|
-
var
|
|
86
|
-
return
|
|
85
|
+
var Z = a.displayName || a.name || "";
|
|
86
|
+
return Z !== "" ? f + "(" + Z + ")" : f;
|
|
87
87
|
}
|
|
88
88
|
function w(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function P(e) {
|
|
92
92
|
if (e == null)
|
|
93
93
|
return null;
|
|
94
94
|
if (typeof e.tag == "number" && n("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -96,15 +96,15 @@ function It() {
|
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
|
-
case
|
|
99
|
+
case l:
|
|
100
100
|
return "Fragment";
|
|
101
101
|
case d:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case x:
|
|
104
104
|
return "Profiler";
|
|
105
105
|
case k:
|
|
106
106
|
return "StrictMode";
|
|
107
|
-
case
|
|
107
|
+
case F:
|
|
108
108
|
return "Suspense";
|
|
109
109
|
case S:
|
|
110
110
|
return "SuspenseList";
|
|
@@ -114,18 +114,18 @@ function It() {
|
|
|
114
114
|
case D:
|
|
115
115
|
var a = e;
|
|
116
116
|
return w(a) + ".Consumer";
|
|
117
|
-
case
|
|
118
|
-
var
|
|
119
|
-
return w(
|
|
120
|
-
case
|
|
121
|
-
return
|
|
122
|
-
case
|
|
117
|
+
case j:
|
|
118
|
+
var f = e;
|
|
119
|
+
return w(f._context) + ".Provider";
|
|
120
|
+
case u:
|
|
121
|
+
return L(e, e.render, "ForwardRef");
|
|
122
|
+
case $:
|
|
123
123
|
var T = e.displayName || null;
|
|
124
|
-
return T !== null ? T :
|
|
125
|
-
case
|
|
126
|
-
var
|
|
124
|
+
return T !== null ? T : P(e.type) || "Memo";
|
|
125
|
+
case V: {
|
|
126
|
+
var Z = e, ee = Z._payload, M = Z._init;
|
|
127
127
|
try {
|
|
128
|
-
return
|
|
128
|
+
return P(M(ee));
|
|
129
129
|
} catch {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
@@ -133,14 +133,14 @@ function It() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var z = Object.assign, B = 0, ne, Y, K, te, le, Q, ie;
|
|
137
137
|
function ge() {
|
|
138
138
|
}
|
|
139
139
|
ge.__reactDisabledLog = !0;
|
|
140
140
|
function ae() {
|
|
141
141
|
{
|
|
142
|
-
if (
|
|
143
|
-
ne = console.log,
|
|
142
|
+
if (B === 0) {
|
|
143
|
+
ne = console.log, Y = console.info, K = console.warn, te = console.error, le = console.group, Q = console.groupCollapsed, ie = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
@@ -157,100 +157,100 @@ function It() {
|
|
|
157
157
|
groupEnd: e
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
B++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function H() {
|
|
164
164
|
{
|
|
165
|
-
if (
|
|
165
|
+
if (B--, B === 0) {
|
|
166
166
|
var e = {
|
|
167
167
|
configurable: !0,
|
|
168
168
|
enumerable: !0,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
|
-
log:
|
|
172
|
+
log: z({}, e, {
|
|
173
173
|
value: ne
|
|
174
174
|
}),
|
|
175
|
-
info:
|
|
176
|
-
value:
|
|
175
|
+
info: z({}, e, {
|
|
176
|
+
value: Y
|
|
177
177
|
}),
|
|
178
|
-
warn:
|
|
179
|
-
value:
|
|
178
|
+
warn: z({}, e, {
|
|
179
|
+
value: K
|
|
180
180
|
}),
|
|
181
|
-
error:
|
|
181
|
+
error: z({}, e, {
|
|
182
182
|
value: te
|
|
183
183
|
}),
|
|
184
|
-
group:
|
|
184
|
+
group: z({}, e, {
|
|
185
185
|
value: le
|
|
186
186
|
}),
|
|
187
|
-
groupCollapsed:
|
|
188
|
-
value:
|
|
187
|
+
groupCollapsed: z({}, e, {
|
|
188
|
+
value: Q
|
|
189
189
|
}),
|
|
190
|
-
groupEnd:
|
|
191
|
-
value:
|
|
190
|
+
groupEnd: z({}, e, {
|
|
191
|
+
value: ie
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
B < 0 && n("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var oe = b.ReactCurrentDispatcher, se;
|
|
199
|
+
function ce(e, a, f) {
|
|
200
200
|
{
|
|
201
201
|
if (se === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var T =
|
|
204
|
+
} catch (Z) {
|
|
205
|
+
var T = Z.stack.trim().match(/\n( *(at )?)/);
|
|
206
206
|
se = T && T[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
209
|
` + se + e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var re = !1, R;
|
|
213
213
|
{
|
|
214
|
-
var
|
|
215
|
-
|
|
214
|
+
var J = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
+
R = new J();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!e ||
|
|
217
|
+
function i(e, a) {
|
|
218
|
+
if (!e || re)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
return
|
|
221
|
+
var f = R.get(e);
|
|
222
|
+
if (f !== void 0)
|
|
223
|
+
return f;
|
|
224
224
|
}
|
|
225
225
|
var T;
|
|
226
|
-
|
|
227
|
-
var
|
|
226
|
+
re = !0;
|
|
227
|
+
var Z = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var ee;
|
|
230
|
-
ee =
|
|
230
|
+
ee = oe.current, oe.current = null, ae();
|
|
231
231
|
try {
|
|
232
232
|
if (a) {
|
|
233
|
-
var
|
|
233
|
+
var M = function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
};
|
|
236
|
-
if (Object.defineProperty(
|
|
236
|
+
if (Object.defineProperty(M.prototype, "props", {
|
|
237
237
|
set: function() {
|
|
238
238
|
throw Error();
|
|
239
239
|
}
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
|
-
Reflect.construct(
|
|
242
|
+
Reflect.construct(M, []);
|
|
243
243
|
} catch (ye) {
|
|
244
244
|
T = ye;
|
|
245
245
|
}
|
|
246
|
-
Reflect.construct(e, [],
|
|
246
|
+
Reflect.construct(e, [], M);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
|
-
|
|
249
|
+
M.call();
|
|
250
250
|
} catch (ye) {
|
|
251
251
|
T = ye;
|
|
252
252
|
}
|
|
253
|
-
e.call(
|
|
253
|
+
e.call(M.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
@@ -264,87 +264,87 @@ function It() {
|
|
|
264
264
|
if (ye && T && typeof ye.stack == "string") {
|
|
265
265
|
for (var W = ye.stack.split(`
|
|
266
266
|
`), ve = T.stack.split(`
|
|
267
|
-
`),
|
|
267
|
+
`), de = W.length - 1, he = ve.length - 1; de >= 1 && he >= 0 && W[de] !== ve[he]; )
|
|
268
268
|
he--;
|
|
269
|
-
for (;
|
|
270
|
-
if (W[
|
|
271
|
-
if (
|
|
269
|
+
for (; de >= 1 && he >= 0; de--, he--)
|
|
270
|
+
if (W[de] !== ve[he]) {
|
|
271
|
+
if (de !== 1 || he !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (
|
|
274
|
-
var
|
|
275
|
-
` + W[
|
|
276
|
-
return e.displayName &&
|
|
273
|
+
if (de--, he--, he < 0 || W[de] !== ve[he]) {
|
|
274
|
+
var be = `
|
|
275
|
+
` + W[de].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", e.displayName)), typeof e == "function" && R.set(e, be), be;
|
|
277
277
|
}
|
|
278
|
-
while (
|
|
278
|
+
while (de >= 1 && he >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
re = !1, oe.current = ee, H(), Error.prepareStackTrace = Z;
|
|
284
284
|
}
|
|
285
|
-
var we = e ? e.displayName || e.name : "", je = we ?
|
|
286
|
-
return typeof e == "function" &&
|
|
285
|
+
var we = e ? e.displayName || e.name : "", je = we ? ce(we) : "";
|
|
286
|
+
return typeof e == "function" && R.set(e, je), je;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function v(e, a, f) {
|
|
289
|
+
return i(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function _(e) {
|
|
292
292
|
var a = e.prototype;
|
|
293
293
|
return !!(a && a.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function s(e, a, f) {
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
299
|
+
return i(e, _(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return ce(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
303
|
+
case F:
|
|
304
|
+
return ce("Suspense");
|
|
305
305
|
case S:
|
|
306
|
-
return
|
|
306
|
+
return ce("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
|
-
case
|
|
311
|
-
return
|
|
312
|
-
case
|
|
313
|
-
return
|
|
314
|
-
case
|
|
315
|
-
var T = e,
|
|
310
|
+
case u:
|
|
311
|
+
return v(e.render);
|
|
312
|
+
case $:
|
|
313
|
+
return s(e.type, a, f);
|
|
314
|
+
case V: {
|
|
315
|
+
var T = e, Z = T._payload, ee = T._init;
|
|
316
316
|
try {
|
|
317
|
-
return
|
|
317
|
+
return s(ee(Z), a, f);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var
|
|
324
|
+
var y = Object.prototype.hasOwnProperty, N = {}, I = b.ReactDebugCurrentFrame;
|
|
325
325
|
function pe(e) {
|
|
326
326
|
if (e) {
|
|
327
|
-
var a = e._owner,
|
|
328
|
-
I.setExtraStackFrame(
|
|
327
|
+
var a = e._owner, f = s(e.type, e._source, a ? a.type : null);
|
|
328
|
+
I.setExtraStackFrame(f);
|
|
329
329
|
} else
|
|
330
330
|
I.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function ue(e, a,
|
|
332
|
+
function ue(e, a, f, T, Z) {
|
|
333
333
|
{
|
|
334
|
-
var ee = Function.call.bind(
|
|
335
|
-
for (var
|
|
336
|
-
if (ee(e,
|
|
334
|
+
var ee = Function.call.bind(y);
|
|
335
|
+
for (var M in e)
|
|
336
|
+
if (ee(e, M)) {
|
|
337
337
|
var W = void 0;
|
|
338
338
|
try {
|
|
339
|
-
if (typeof e[
|
|
340
|
-
var ve = Error((T || "React class") + ": " +
|
|
339
|
+
if (typeof e[M] != "function") {
|
|
340
|
+
var ve = Error((T || "React class") + ": " + f + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
341
|
throw ve.name = "Invariant Violation", ve;
|
|
342
342
|
}
|
|
343
|
-
W = e[
|
|
344
|
-
} catch (
|
|
345
|
-
W =
|
|
343
|
+
W = e[M](a, M, T, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
|
+
} catch (de) {
|
|
345
|
+
W = de;
|
|
346
346
|
}
|
|
347
|
-
W && !(W instanceof Error) && (pe(
|
|
347
|
+
W && !(W instanceof Error) && (pe(Z), n("%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).", T || "React class", f, M, typeof W), pe(null)), W instanceof Error && !(W.message in N) && (N[W.message] = !0, pe(Z), n("Failed %s type: %s", f, W.message), pe(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -354,32 +354,32 @@ function It() {
|
|
|
354
354
|
}
|
|
355
355
|
function Se(e) {
|
|
356
356
|
{
|
|
357
|
-
var a = typeof Symbol == "function" && Symbol.toStringTag,
|
|
358
|
-
return
|
|
357
|
+
var a = typeof Symbol == "function" && Symbol.toStringTag, f = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
358
|
+
return f;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
function Ce(e) {
|
|
362
362
|
try {
|
|
363
|
-
return
|
|
363
|
+
return _e(e), !1;
|
|
364
364
|
} catch {
|
|
365
365
|
return !0;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function _e(e) {
|
|
369
369
|
return "" + e;
|
|
370
370
|
}
|
|
371
371
|
function Te(e) {
|
|
372
372
|
if (Ce(e))
|
|
373
|
-
return n("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Se(e)),
|
|
373
|
+
return n("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Se(e)), _e(e);
|
|
374
374
|
}
|
|
375
|
-
var De =
|
|
375
|
+
var De = b.ReactCurrentOwner, Ie = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
|
-
},
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
380
|
+
}, me, $e;
|
|
381
|
+
function Fe(e) {
|
|
382
|
+
if (y.call(e, "ref")) {
|
|
383
383
|
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
384
|
if (a && a.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -387,7 +387,7 @@ function It() {
|
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function ot(e) {
|
|
390
|
-
if (
|
|
390
|
+
if (y.call(e, "key")) {
|
|
391
391
|
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
392
|
if (a && a.isReactWarning)
|
|
393
393
|
return !1;
|
|
@@ -399,35 +399,35 @@ function It() {
|
|
|
399
399
|
}
|
|
400
400
|
function lt(e, a) {
|
|
401
401
|
{
|
|
402
|
-
var
|
|
403
|
-
|
|
402
|
+
var f = function() {
|
|
403
|
+
me || (me = !0, n("%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)", a));
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
get:
|
|
405
|
+
f.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: f,
|
|
407
407
|
configurable: !0
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
function ct(e, a) {
|
|
412
412
|
{
|
|
413
|
-
var
|
|
414
|
-
|
|
413
|
+
var f = function() {
|
|
414
|
+
$e || ($e = !0, n("%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)", a));
|
|
415
415
|
};
|
|
416
|
-
|
|
417
|
-
get:
|
|
416
|
+
f.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: f,
|
|
418
418
|
configurable: !0
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var dt = function(e, a,
|
|
422
|
+
var dt = function(e, a, f, T, Z, ee, M) {
|
|
423
423
|
var W = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: r,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: a,
|
|
429
|
-
ref:
|
|
430
|
-
props:
|
|
429
|
+
ref: f,
|
|
430
|
+
props: M,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: ee
|
|
433
433
|
};
|
|
@@ -445,44 +445,44 @@ function It() {
|
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: Z
|
|
449
449
|
}), Object.freeze && (Object.freeze(W.props), Object.freeze(W)), W;
|
|
450
450
|
};
|
|
451
|
-
function ut(e, a,
|
|
451
|
+
function ut(e, a, f, T, Z) {
|
|
452
452
|
{
|
|
453
|
-
var ee,
|
|
454
|
-
|
|
453
|
+
var ee, M = {}, W = null, ve = null;
|
|
454
|
+
f !== void 0 && (Te(f), W = "" + f), ot(a) && (Te(a.key), W = "" + a.key), Fe(a) && (ve = a.ref, st(a, Z));
|
|
455
455
|
for (ee in a)
|
|
456
|
-
|
|
456
|
+
y.call(a, ee) && !Ie.hasOwnProperty(ee) && (M[ee] = a[ee]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (ee in
|
|
460
|
-
|
|
458
|
+
var de = e.defaultProps;
|
|
459
|
+
for (ee in de)
|
|
460
|
+
M[ee] === void 0 && (M[ee] = de[ee]);
|
|
461
461
|
}
|
|
462
462
|
if (W || ve) {
|
|
463
463
|
var he = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
W && lt(
|
|
464
|
+
W && lt(M, he), ve && ct(M, he);
|
|
465
465
|
}
|
|
466
|
-
return dt(e, W, ve,
|
|
466
|
+
return dt(e, W, ve, Z, T, De.current, M);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
469
|
+
var Ae = b.ReactCurrentOwner, Be = b.ReactDebugCurrentFrame;
|
|
470
470
|
function ke(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var a = e._owner,
|
|
473
|
-
|
|
472
|
+
var a = e._owner, f = s(e.type, e._source, a ? a.type : null);
|
|
473
|
+
Be.setExtraStackFrame(f);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
Be.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var Me;
|
|
478
|
+
Me = !1;
|
|
479
|
+
function Ve(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Ye() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e =
|
|
484
|
+
if (Ae.current) {
|
|
485
|
+
var e = P(Ae.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -494,48 +494,48 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
function ft(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var He = {};
|
|
498
498
|
function ht(e) {
|
|
499
499
|
{
|
|
500
|
-
var a =
|
|
500
|
+
var a = Ye();
|
|
501
501
|
if (!a) {
|
|
502
|
-
var
|
|
503
|
-
|
|
502
|
+
var f = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
+
f && (a = `
|
|
504
504
|
|
|
505
|
-
Check the top-level render call using <` +
|
|
505
|
+
Check the top-level render call using <` + f + ">.");
|
|
506
506
|
}
|
|
507
507
|
return a;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Ue(e, a) {
|
|
511
511
|
{
|
|
512
512
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
513
|
return;
|
|
514
514
|
e._store.validated = !0;
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
515
|
+
var f = ht(a);
|
|
516
|
+
if (He[f])
|
|
517
517
|
return;
|
|
518
|
-
|
|
518
|
+
He[f] = !0;
|
|
519
519
|
var T = "";
|
|
520
|
-
e && e._owner && e._owner !==
|
|
520
|
+
e && e._owner && e._owner !== Ae.current && (T = " It was passed a child from " + P(e._owner.type) + "."), ke(e), n('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, T), ke(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ze(e, a) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
527
|
if (fe(e))
|
|
528
|
-
for (var
|
|
529
|
-
var T = e[
|
|
530
|
-
|
|
528
|
+
for (var f = 0; f < e.length; f++) {
|
|
529
|
+
var T = e[f];
|
|
530
|
+
Ve(T) && Ue(T, a);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (Ve(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var ee =
|
|
538
|
-
|
|
535
|
+
var Z = C(e);
|
|
536
|
+
if (typeof Z == "function" && Z !== e.entries)
|
|
537
|
+
for (var ee = Z.call(e), M; !(M = ee.next()).done; )
|
|
538
|
+
Ve(M.value) && Ue(M.value, a);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -544,30 +544,30 @@ Check the top-level render call using <` + h + ">.");
|
|
|
544
544
|
var a = e.type;
|
|
545
545
|
if (a == null || typeof a == "string")
|
|
546
546
|
return;
|
|
547
|
-
var
|
|
547
|
+
var f;
|
|
548
548
|
if (typeof a == "function")
|
|
549
|
-
|
|
550
|
-
else if (typeof a == "object" && (a.$$typeof ===
|
|
549
|
+
f = a.propTypes;
|
|
550
|
+
else if (typeof a == "object" && (a.$$typeof === u || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
|
-
a.$$typeof ===
|
|
553
|
-
|
|
552
|
+
a.$$typeof === $))
|
|
553
|
+
f = a.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
|
-
if (
|
|
557
|
-
var T =
|
|
558
|
-
ue(
|
|
559
|
-
} else if (a.PropTypes !== void 0 && !
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
n("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
556
|
+
if (f) {
|
|
557
|
+
var T = P(a);
|
|
558
|
+
ue(f, e.props, "prop", T, e);
|
|
559
|
+
} else if (a.PropTypes !== void 0 && !Me) {
|
|
560
|
+
Me = !0;
|
|
561
|
+
var Z = P(a);
|
|
562
|
+
n("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
|
|
563
563
|
}
|
|
564
564
|
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && n("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function pt(e) {
|
|
568
568
|
{
|
|
569
|
-
for (var a = Object.keys(e.props),
|
|
570
|
-
var T = a[
|
|
569
|
+
for (var a = Object.keys(e.props), f = 0; f < a.length; f++) {
|
|
570
|
+
var T = a[f];
|
|
571
571
|
if (T !== "children" && T !== "key") {
|
|
572
572
|
ke(e), n("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), ke(null);
|
|
573
573
|
break;
|
|
@@ -576,68 +576,68 @@ Check the top-level render call using <` + h + ">.");
|
|
|
576
576
|
e.ref !== null && (ke(e), n("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
579
|
+
var Ge = {};
|
|
580
|
+
function qe(e, a, f, T, Z, ee) {
|
|
581
581
|
{
|
|
582
|
-
var
|
|
583
|
-
if (!
|
|
582
|
+
var M = A(e);
|
|
583
|
+
if (!M) {
|
|
584
584
|
var W = "";
|
|
585
585
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (W += " 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 ve = ft();
|
|
587
|
-
ve ? W += ve : W +=
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
587
|
+
ve ? W += ve : W += Ye();
|
|
588
|
+
var de;
|
|
589
|
+
e === null ? de = "null" : fe(e) ? de = "array" : e !== void 0 && e.$$typeof === r ? (de = "<" + (P(e.type) || "Unknown") + " />", W = " Did you accidentally export a JSX literal instead of a component?") : de = typeof e, n("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", de, W);
|
|
590
590
|
}
|
|
591
|
-
var he = ut(e, a,
|
|
591
|
+
var he = ut(e, a, f, Z, ee);
|
|
592
592
|
if (he == null)
|
|
593
593
|
return he;
|
|
594
|
-
if (
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
594
|
+
if (M) {
|
|
595
|
+
var be = a.children;
|
|
596
|
+
if (be !== void 0)
|
|
597
597
|
if (T)
|
|
598
|
-
if (fe(
|
|
599
|
-
for (var we = 0; we <
|
|
600
|
-
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
598
|
+
if (fe(be)) {
|
|
599
|
+
for (var we = 0; we < be.length; we++)
|
|
600
|
+
Ze(be[we], e);
|
|
601
|
+
Object.freeze && Object.freeze(be);
|
|
602
602
|
} else
|
|
603
603
|
n("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
|
+
Ze(be, e);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
var je =
|
|
607
|
+
if (y.call(a, "key")) {
|
|
608
|
+
var je = P(e), ye = Object.keys(a).filter(function(_t) {
|
|
609
609
|
return _t !== "key";
|
|
610
|
-
}),
|
|
611
|
-
if (!
|
|
610
|
+
}), ze = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!Ge[je + ze]) {
|
|
612
612
|
var mt = ye.length > 0 ? "{" + ye.join(": ..., ") + ": ...}" : "{}";
|
|
613
613
|
n(`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:
|
|
617
617
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`,
|
|
618
|
+
<%s key={someKey} {...props} />`, ze, je, mt, je), Ge[je + ze] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === l ? pt(he) : gt(he), he;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function vt(e, a,
|
|
625
|
-
return
|
|
624
|
+
function vt(e, a, f) {
|
|
625
|
+
return qe(e, a, f, !0);
|
|
626
626
|
}
|
|
627
|
-
function yt(e, a,
|
|
628
|
-
return
|
|
627
|
+
function yt(e, a, f) {
|
|
628
|
+
return qe(e, a, f, !1);
|
|
629
629
|
}
|
|
630
630
|
var xt = yt, bt = vt;
|
|
631
|
-
|
|
632
|
-
}()),
|
|
631
|
+
Oe.Fragment = l, Oe.jsx = xt, Oe.jsxs = bt;
|
|
632
|
+
}()), Oe;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var
|
|
636
|
-
const
|
|
637
|
-
let d = !1,
|
|
638
|
-
return function(...
|
|
639
|
-
const
|
|
640
|
-
t.apply(this,
|
|
634
|
+
process.env.NODE_ENV === "production" ? Je.exports = It() : Je.exports = $t();
|
|
635
|
+
var o = Je.exports;
|
|
636
|
+
const Wt = (t, r) => {
|
|
637
|
+
let d = !1, l = 0, k = !1;
|
|
638
|
+
return function(...x) {
|
|
639
|
+
const j = performance.now(), D = () => {
|
|
640
|
+
t.apply(this, x), l = performance.now(), d = !0, k = !1, setTimeout(() => {
|
|
641
641
|
d = !1;
|
|
642
642
|
}, r);
|
|
643
643
|
};
|
|
@@ -645,69 +645,69 @@ const $t = (t, r) => {
|
|
|
645
645
|
D();
|
|
646
646
|
return;
|
|
647
647
|
}
|
|
648
|
-
!k &&
|
|
648
|
+
!k && j - l >= r && (k = !0, requestAnimationFrame(() => D()));
|
|
649
649
|
};
|
|
650
650
|
}, Ft = ({
|
|
651
651
|
column: t,
|
|
652
652
|
currWidth: r,
|
|
653
653
|
currMinWidth: d,
|
|
654
|
-
onResize:
|
|
654
|
+
onResize: l,
|
|
655
655
|
scrollContainerRef: k,
|
|
656
|
-
resizeThrottle:
|
|
656
|
+
resizeThrottle: x = 0
|
|
657
657
|
}) => {
|
|
658
|
-
const [
|
|
659
|
-
if (!
|
|
660
|
-
const
|
|
661
|
-
let
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
if (t != null && t.maxWidth &&
|
|
665
|
-
const ne =
|
|
666
|
-
|
|
667
|
-
}, 16)),
|
|
668
|
-
}, [
|
|
669
|
-
|
|
670
|
-
[n,
|
|
671
|
-
),
|
|
672
|
-
|
|
673
|
-
}, [
|
|
674
|
-
|
|
658
|
+
const [j, D] = xe(!1), [u, F] = xe(null), [S, $] = xe(0), [V, U] = xe(0), X = Pe(null), G = Pe(0), C = Pe(!1), b = Pe(null), n = q((O) => {
|
|
659
|
+
if (!j || !u || !t) return;
|
|
660
|
+
const m = O.clientX - S;
|
|
661
|
+
let p = Math.min((t == null ? void 0 : t.maxWidth) || 9999999, V + m);
|
|
662
|
+
const h = k == null ? void 0 : k.current, A = -10, L = 10, w = O.clientX, P = h == null ? void 0 : h.getBoundingClientRect(), z = P == null ? void 0 : P.right;
|
|
663
|
+
h && z && z - w < A && !C.current && (C.current = !0, G.current = p, X.current = setInterval(() => {
|
|
664
|
+
if (t != null && t.maxWidth && G.current >= (t == null ? void 0 : t.maxWidth)) return;
|
|
665
|
+
const ne = h.scrollWidth - h.clientWidth + L;
|
|
666
|
+
h.scrollLeft < ne ? (h.scrollLeft += L, G.current += L, l == null || l(u, G.current)) : (G.current += L, l == null || l(u, G.current));
|
|
667
|
+
}, 16)), C.current || l == null || l(u, p);
|
|
668
|
+
}, [j, S, V, u, l, k, t]), g = q(
|
|
669
|
+
x > 0 ? Wt(n, x) : n,
|
|
670
|
+
[n, x]
|
|
671
|
+
), c = q((O) => {
|
|
672
|
+
j && (u && O.clientX - S, X.current && (clearInterval(X.current), X.current = null), C.current = !1, D(!1), $(0), U(0), F(null), document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", c));
|
|
673
|
+
}, [j, u, S, V, g]), E = q((O, m, p) => {
|
|
674
|
+
O.preventDefault(), D(!0), $(O.clientX), U(p), F(m);
|
|
675
675
|
}, []);
|
|
676
676
|
return Ne(() => {
|
|
677
|
-
|
|
678
|
-
}, [
|
|
679
|
-
document.removeEventListener("mousemove",
|
|
680
|
-
}, [
|
|
677
|
+
j && (document.addEventListener("mousemove", g), document.addEventListener("mouseup", c));
|
|
678
|
+
}, [j, g, c]), Ne(() => () => {
|
|
679
|
+
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", c);
|
|
680
|
+
}, [g, c]), /* @__PURE__ */ o.jsx(
|
|
681
681
|
"button",
|
|
682
682
|
{
|
|
683
|
-
ref:
|
|
683
|
+
ref: b,
|
|
684
684
|
className: "radar-table__resize-button",
|
|
685
|
-
onMouseDown: (
|
|
685
|
+
onMouseDown: (O) => E(O, t.key, r || d || 200),
|
|
686
686
|
title: "Изменить ширину колонки",
|
|
687
|
-
children: /* @__PURE__ */
|
|
687
|
+
children: /* @__PURE__ */ o.jsx("div", {})
|
|
688
688
|
}
|
|
689
689
|
);
|
|
690
|
-
},
|
|
691
|
-
const [d,
|
|
692
|
-
if (
|
|
693
|
-
const
|
|
694
|
-
|
|
690
|
+
}, At = ({ text: t, children: r }) => {
|
|
691
|
+
const [d, l] = xe(!1), [k, x] = xe("left"), j = Pe(null), D = () => {
|
|
692
|
+
if (j.current) {
|
|
693
|
+
const u = j.current.getBoundingClientRect(), F = window.innerWidth, S = 250, $ = 20, V = F - u.left, U = u.right;
|
|
694
|
+
V < S + $ && U > S + $ ? x("right") : x("left");
|
|
695
695
|
}
|
|
696
|
-
|
|
696
|
+
l(!0);
|
|
697
697
|
};
|
|
698
|
-
return /* @__PURE__ */
|
|
698
|
+
return /* @__PURE__ */ o.jsxs(
|
|
699
699
|
"button",
|
|
700
700
|
{
|
|
701
|
-
ref:
|
|
701
|
+
ref: j,
|
|
702
702
|
className: "radar-table__tooltip-button",
|
|
703
703
|
onMouseOver: D,
|
|
704
|
-
onMouseOut: () =>
|
|
704
|
+
onMouseOut: () => l(!1),
|
|
705
705
|
children: [
|
|
706
|
-
r || /* @__PURE__ */
|
|
707
|
-
/* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
706
|
+
r || /* @__PURE__ */ o.jsxs("svg", { width: "1.5em", height: "1em", viewBox: "0 0 24 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
707
|
+
/* @__PURE__ */ o.jsx("rect", { stroke: "currentColor", x: "0.75", y: "0.75", width: "18.5", height: "18.5", rx: "9.25", strokeOpacity: "0.25", strokeWidth: "1.5" }),
|
|
708
|
+
/* @__PURE__ */ o.jsx("path", { fill: "currentColor", d: "M9.064 15V7.958H10.338V15H9.064ZM8.952 6.418V5.046H10.464V6.418H8.952Z", fillOpacity: "0.5" })
|
|
709
709
|
] }),
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ o.jsx(
|
|
711
711
|
"div",
|
|
712
712
|
{
|
|
713
713
|
className: `radar-table__tooltip-text ${d ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${k}`,
|
|
@@ -717,413 +717,439 @@ const $t = (t, r) => {
|
|
|
717
717
|
]
|
|
718
718
|
}
|
|
719
719
|
);
|
|
720
|
-
},
|
|
721
|
-
const t = Et(
|
|
720
|
+
}, it = Ct(null), Mt = () => {
|
|
721
|
+
const t = Et(it);
|
|
722
722
|
return t || {
|
|
723
723
|
activeColumn: null,
|
|
724
724
|
isValidDropZone: () => !1
|
|
725
725
|
};
|
|
726
726
|
};
|
|
727
|
-
function
|
|
727
|
+
function Vt({
|
|
728
728
|
children: t,
|
|
729
729
|
fullConfig: r,
|
|
730
730
|
onColumnReorder: d
|
|
731
731
|
}) {
|
|
732
|
-
const [
|
|
733
|
-
Ke(
|
|
732
|
+
const [l, k] = xe(null), x = kt(
|
|
733
|
+
Ke(wt, {
|
|
734
734
|
activationConstraint: {
|
|
735
735
|
distance: 5
|
|
736
736
|
// Уменьшили дистанцию
|
|
737
737
|
}
|
|
738
738
|
}),
|
|
739
|
-
Ke(
|
|
740
|
-
coordinateGetter:
|
|
739
|
+
Ke(St, {
|
|
740
|
+
coordinateGetter: Nt
|
|
741
741
|
})
|
|
742
|
-
),
|
|
743
|
-
const
|
|
744
|
-
if (
|
|
745
|
-
const
|
|
746
|
-
(
|
|
742
|
+
), j = q((C) => {
|
|
743
|
+
const b = Tt(C);
|
|
744
|
+
if (b.length > 0) {
|
|
745
|
+
const c = b.filter(
|
|
746
|
+
(E) => E.id.toString().startsWith("drop-zone-")
|
|
747
747
|
);
|
|
748
|
-
if (
|
|
749
|
-
return console.log("🎯 Pointer collision found:",
|
|
748
|
+
if (c.length > 0)
|
|
749
|
+
return console.log("🎯 Pointer collision found:", c[0].id), c;
|
|
750
750
|
}
|
|
751
|
-
const
|
|
752
|
-
(
|
|
751
|
+
const g = Dt(C).filter(
|
|
752
|
+
(c) => c.id.toString().startsWith("drop-zone-")
|
|
753
753
|
);
|
|
754
|
-
return
|
|
755
|
-
}, []), D =
|
|
756
|
-
const n = (
|
|
757
|
-
for (const
|
|
758
|
-
if (
|
|
759
|
-
return { column:
|
|
760
|
-
if (
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
754
|
+
return g.length > 0 ? (console.log("📦 Rect collision found:", g[0].id), [g[0]]) : [];
|
|
755
|
+
}, []), D = q((C) => C.some((b) => b.children && b.children.length > 0), []), u = q((C, b) => {
|
|
756
|
+
const n = (g, c, E = 0, O = null) => {
|
|
757
|
+
for (const m of g) {
|
|
758
|
+
if (m.key === c)
|
|
759
|
+
return { column: m, parent: O, level: E };
|
|
760
|
+
if (m.children && m.children.length > 0) {
|
|
761
|
+
const p = n(m.children, c, E + 1, m);
|
|
762
|
+
if (p) return p;
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
return null;
|
|
766
766
|
};
|
|
767
|
-
return n(
|
|
768
|
-
}, []),
|
|
769
|
-
var
|
|
770
|
-
const n =
|
|
771
|
-
return n && (n.column.fixed || ((
|
|
772
|
-
}, [
|
|
773
|
-
var
|
|
774
|
-
if (
|
|
767
|
+
return n(C, b);
|
|
768
|
+
}, []), F = q((C, b) => {
|
|
769
|
+
var g;
|
|
770
|
+
const n = u(b, C);
|
|
771
|
+
return n && (n.column.fixed || ((g = n.parent) == null ? void 0 : g.fixed)) || !1;
|
|
772
|
+
}, [u]), S = q((C, b) => {
|
|
773
|
+
var c, E, O, m;
|
|
774
|
+
if (C.columnKey === b.columnKey)
|
|
775
775
|
return !1;
|
|
776
|
-
const n =
|
|
777
|
-
if (n !==
|
|
776
|
+
const n = F(C.columnKey, r), g = F(b.columnKey, r);
|
|
777
|
+
if (n !== g)
|
|
778
778
|
return console.log("❌ Drop rejected: fixed status mismatch", {
|
|
779
779
|
draggedFixed: n,
|
|
780
|
-
targetFixed:
|
|
780
|
+
targetFixed: g
|
|
781
781
|
}), !1;
|
|
782
782
|
if (D(r)) {
|
|
783
|
-
const
|
|
784
|
-
if (!
|
|
783
|
+
const p = u(r, C.columnKey), h = u(r, b.columnKey);
|
|
784
|
+
if (!p || !h)
|
|
785
785
|
return console.log("❌ Drop rejected: column info not found"), !1;
|
|
786
|
-
const
|
|
787
|
-
if (!
|
|
788
|
-
const w =
|
|
786
|
+
const A = C.isLeaf, L = b.isLeaf;
|
|
787
|
+
if (!A && !L) {
|
|
788
|
+
const w = p.level === h.level, P = p.parent === null && h.parent === null || p.parent !== null && h.parent !== null && p.parent.key === h.parent.key;
|
|
789
789
|
return console.log("🔄 Group to group validation:", {
|
|
790
790
|
sameLevel: w,
|
|
791
|
-
sameParentLevel:
|
|
792
|
-
draggedLevel:
|
|
793
|
-
targetLevel:
|
|
794
|
-
draggedParent: (
|
|
795
|
-
targetParent: (
|
|
796
|
-
}), w &&
|
|
791
|
+
sameParentLevel: P,
|
|
792
|
+
draggedLevel: p.level,
|
|
793
|
+
targetLevel: h.level,
|
|
794
|
+
draggedParent: (c = p.parent) == null ? void 0 : c.key,
|
|
795
|
+
targetParent: (E = h.parent) == null ? void 0 : E.key
|
|
796
|
+
}), w && P;
|
|
797
797
|
}
|
|
798
|
-
if (
|
|
799
|
-
const w =
|
|
798
|
+
if (A && L) {
|
|
799
|
+
const w = p.level === h.level, P = p.parent === null && h.parent === null || p.parent !== null && h.parent !== null && p.parent.key === h.parent.key;
|
|
800
800
|
return console.log("🍃 Leaf to leaf validation:", {
|
|
801
801
|
sameLevel: w,
|
|
802
|
-
sameParent:
|
|
803
|
-
draggedLevel:
|
|
804
|
-
targetLevel:
|
|
805
|
-
draggedParent: (
|
|
806
|
-
targetParent: (
|
|
807
|
-
}), w &&
|
|
802
|
+
sameParent: P,
|
|
803
|
+
draggedLevel: p.level,
|
|
804
|
+
targetLevel: h.level,
|
|
805
|
+
draggedParent: (O = p.parent) == null ? void 0 : O.key,
|
|
806
|
+
targetParent: (m = h.parent) == null ? void 0 : m.key
|
|
807
|
+
}), w && P;
|
|
808
808
|
}
|
|
809
809
|
return console.log("❌ Mixed group/leaf drop rejected", {
|
|
810
|
-
draggedIsLeaf:
|
|
811
|
-
targetIsLeaf:
|
|
810
|
+
draggedIsLeaf: A,
|
|
811
|
+
targetIsLeaf: L
|
|
812
812
|
}), !1;
|
|
813
813
|
}
|
|
814
814
|
return !0;
|
|
815
|
-
}, [r, D,
|
|
816
|
-
var
|
|
817
|
-
if (console.log("🔄 Performing column reorder:", { draggedKey:
|
|
818
|
-
const
|
|
819
|
-
if (
|
|
815
|
+
}, [r, D, u, F]), $ = q((C, b, n) => {
|
|
816
|
+
var B, ne;
|
|
817
|
+
if (console.log("🔄 Performing column reorder:", { draggedKey: C, targetKey: b }), !D(r)) {
|
|
818
|
+
const Y = n.findIndex((ie) => ie.key === C), K = n.findIndex((ie) => ie.key === b);
|
|
819
|
+
if (Y === -1 || K === -1)
|
|
820
820
|
return console.log("❌ Column not found in simple config"), n;
|
|
821
|
-
const te = [...n], le = te[
|
|
822
|
-
te.splice(
|
|
823
|
-
const
|
|
824
|
-
return te.splice(
|
|
821
|
+
const te = [...n], le = te[Y];
|
|
822
|
+
te.splice(Y, 1);
|
|
823
|
+
const Q = (Y < K, K);
|
|
824
|
+
return te.splice(Q, 0, le), console.log("✅ Simple header reorder completed"), te;
|
|
825
825
|
}
|
|
826
|
-
const
|
|
827
|
-
if (!
|
|
826
|
+
const g = u(r, C), c = u(r, b);
|
|
827
|
+
if (!g || !c)
|
|
828
828
|
return console.log("❌ Column info not found in complex config"), n;
|
|
829
|
-
const
|
|
830
|
-
if (
|
|
831
|
-
return { container:
|
|
832
|
-
const te = (
|
|
833
|
-
for (const
|
|
834
|
-
if (
|
|
835
|
-
return
|
|
836
|
-
if (
|
|
837
|
-
const ge = te(
|
|
829
|
+
const E = JSON.parse(JSON.stringify(r)), O = (Y, K) => {
|
|
830
|
+
if (K === null)
|
|
831
|
+
return { container: Y, parentObj: null };
|
|
832
|
+
const te = (Q) => {
|
|
833
|
+
for (const ie of Q) {
|
|
834
|
+
if (ie.key === K)
|
|
835
|
+
return ie;
|
|
836
|
+
if (ie.children) {
|
|
837
|
+
const ge = te(ie.children);
|
|
838
838
|
if (ge) return ge;
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
return null;
|
|
842
|
-
}, le = te(
|
|
842
|
+
}, le = te(Y);
|
|
843
843
|
return {
|
|
844
|
-
container: (le == null ? void 0 : le.children) ||
|
|
844
|
+
container: (le == null ? void 0 : le.children) || Y,
|
|
845
845
|
parentObj: le
|
|
846
846
|
};
|
|
847
|
-
},
|
|
848
|
-
if (
|
|
847
|
+
}, m = ((B = g.parent) == null ? void 0 : B.key) || null, p = ((ne = c.parent) == null ? void 0 : ne.key) || null, { container: h } = O(E, m), { container: A } = O(E, p);
|
|
848
|
+
if (h !== A)
|
|
849
849
|
return console.log("❌ Different containers for drag and target"), n;
|
|
850
|
-
const
|
|
851
|
-
if (
|
|
850
|
+
const L = h.findIndex((Y) => Y.key === C), w = h.findIndex((Y) => Y.key === b);
|
|
851
|
+
if (L === -1 || w === -1)
|
|
852
852
|
return console.log("❌ Column not found in container", {
|
|
853
|
-
draggedIndex:
|
|
853
|
+
draggedIndex: L,
|
|
854
854
|
targetIndex: w,
|
|
855
|
-
containerSize:
|
|
855
|
+
containerSize: h.length
|
|
856
856
|
}), n;
|
|
857
|
-
const [
|
|
858
|
-
return
|
|
859
|
-
draggedKey:
|
|
860
|
-
targetKey:
|
|
861
|
-
draggedIndex:
|
|
857
|
+
const [P] = h.splice(L, 1), z = (L < w, w);
|
|
858
|
+
return h.splice(z, 0, P), console.log("✅ Complex header reorder completed", {
|
|
859
|
+
draggedKey: C,
|
|
860
|
+
targetKey: b,
|
|
861
|
+
draggedIndex: L,
|
|
862
862
|
targetIndex: w,
|
|
863
|
-
insertIndex:
|
|
864
|
-
parentKey:
|
|
865
|
-
}),
|
|
866
|
-
}, [r, D,
|
|
867
|
-
const
|
|
868
|
-
k(
|
|
869
|
-
}, []),
|
|
870
|
-
const { active:
|
|
871
|
-
if (!n || !
|
|
863
|
+
insertIndex: z,
|
|
864
|
+
parentKey: m
|
|
865
|
+
}), E;
|
|
866
|
+
}, [r, D, u]), V = q((C) => {
|
|
867
|
+
const b = C.active.data.current;
|
|
868
|
+
k(b), document.body.style.cursor = "grabbing", console.log("🚀 Drag started:", b);
|
|
869
|
+
}, []), U = q((C) => {
|
|
870
|
+
const { active: b, over: n } = C;
|
|
871
|
+
if (!n || !b.data.current) {
|
|
872
872
|
document.body.style.cursor = "grabbing";
|
|
873
873
|
return;
|
|
874
874
|
}
|
|
875
|
-
const
|
|
876
|
-
if (!
|
|
875
|
+
const g = b.data.current, c = n.data.current;
|
|
876
|
+
if (!c) {
|
|
877
877
|
document.body.style.cursor = "grabbing";
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
|
-
const
|
|
881
|
-
document.body.style.cursor =
|
|
882
|
-
target:
|
|
883
|
-
isValid:
|
|
884
|
-
draggedType:
|
|
885
|
-
targetType:
|
|
880
|
+
const E = S(g, c);
|
|
881
|
+
document.body.style.cursor = E ? "copy" : "not-allowed", console.log("🎯 Drag over:", {
|
|
882
|
+
target: c.columnKey,
|
|
883
|
+
isValid: E,
|
|
884
|
+
draggedType: g.isLeaf ? "leaf" : "group",
|
|
885
|
+
targetType: c.isLeaf ? "leaf" : "group"
|
|
886
886
|
});
|
|
887
|
-
}, [S]),
|
|
888
|
-
const { active:
|
|
889
|
-
if (document.body.style.cursor = "", k(null), !n || !
|
|
887
|
+
}, [S]), X = q((C) => {
|
|
888
|
+
const { active: b, over: n } = C;
|
|
889
|
+
if (document.body.style.cursor = "", k(null), !n || !b.data.current || !n.data.current) {
|
|
890
890
|
console.log("❌ Invalid drop - no target");
|
|
891
891
|
return;
|
|
892
892
|
}
|
|
893
|
-
const
|
|
894
|
-
if (!S(
|
|
893
|
+
const g = b.data.current, c = n.data.current;
|
|
894
|
+
if (!S(g, c)) {
|
|
895
895
|
console.log("❌ Invalid drop - validation failed");
|
|
896
896
|
return;
|
|
897
897
|
}
|
|
898
|
-
if (console.log("✅ Valid drop:", { dragData:
|
|
899
|
-
const
|
|
900
|
-
|
|
901
|
-
|
|
898
|
+
if (console.log("✅ Valid drop:", { dragData: g, dropData: c }), d) {
|
|
899
|
+
const E = $(
|
|
900
|
+
g.columnKey,
|
|
901
|
+
c.columnKey,
|
|
902
902
|
r
|
|
903
903
|
);
|
|
904
|
-
|
|
905
|
-
draggedKey:
|
|
906
|
-
targetKey:
|
|
907
|
-
draggedIndex:
|
|
904
|
+
E._dragInfo = {
|
|
905
|
+
draggedKey: g.columnKey,
|
|
906
|
+
targetKey: c.columnKey,
|
|
907
|
+
draggedIndex: g.index,
|
|
908
908
|
targetIndex: -1
|
|
909
909
|
// будет вычислен в TableHeader если нужно
|
|
910
|
-
}, d(
|
|
910
|
+
}, d(E), console.log("🔄 Column reorder executed");
|
|
911
911
|
}
|
|
912
|
-
}, [S, d,
|
|
913
|
-
activeColumn:
|
|
912
|
+
}, [S, d, $, r]), G = {
|
|
913
|
+
activeColumn: l,
|
|
914
914
|
isValidDropZone: S
|
|
915
915
|
};
|
|
916
|
-
return /* @__PURE__ */
|
|
917
|
-
|
|
916
|
+
return /* @__PURE__ */ o.jsx(it.Provider, { value: G, children: /* @__PURE__ */ o.jsxs(
|
|
917
|
+
Lt,
|
|
918
918
|
{
|
|
919
|
-
sensors:
|
|
920
|
-
collisionDetection:
|
|
921
|
-
onDragStart:
|
|
922
|
-
onDragOver:
|
|
923
|
-
onDragEnd:
|
|
919
|
+
sensors: x,
|
|
920
|
+
collisionDetection: j,
|
|
921
|
+
onDragStart: V,
|
|
922
|
+
onDragOver: U,
|
|
923
|
+
onDragEnd: X,
|
|
924
924
|
children: [
|
|
925
925
|
t,
|
|
926
|
-
/* @__PURE__ */
|
|
927
|
-
|
|
926
|
+
/* @__PURE__ */ o.jsx(Ot, { children: l ? /* @__PURE__ */ o.jsx("div", { className: "column-drag-overlay", children: /* @__PURE__ */ o.jsxs("div", { className: "drag-preview", children: [
|
|
927
|
+
l.isLeaf ? "🍃" : "📁",
|
|
928
928
|
" ",
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
D(r) && /* @__PURE__ */
|
|
929
|
+
l.columnKey,
|
|
930
|
+
l.isFixed && " 📌",
|
|
931
|
+
D(r) && /* @__PURE__ */ o.jsx("span", { className: "drag-type", children: l.isLeaf ? " (leaf)" : " (group)" })
|
|
932
932
|
] }) }) : null })
|
|
933
933
|
]
|
|
934
934
|
}
|
|
935
935
|
) });
|
|
936
936
|
}
|
|
937
|
-
|
|
937
|
+
const zt = (t) => {
|
|
938
|
+
var r;
|
|
939
|
+
return typeof window < "u" && ((r = window.CSS) != null && r.escape) ? window.CSS.escape(t) : t.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
940
|
+
}, Jt = (t) => {
|
|
941
|
+
if (typeof document > "u") return null;
|
|
942
|
+
const r = `th[data-column-key="${zt(t)}"]`, d = document.querySelector(r);
|
|
943
|
+
return d ? d.getBoundingClientRect().width : null;
|
|
944
|
+
};
|
|
945
|
+
function Bt({
|
|
938
946
|
column: t,
|
|
939
947
|
index: r,
|
|
940
948
|
config: d,
|
|
941
|
-
fullConfig:
|
|
949
|
+
fullConfig: l,
|
|
942
950
|
sorting: k,
|
|
943
|
-
onSort:
|
|
944
|
-
onResize:
|
|
951
|
+
onSort: x,
|
|
952
|
+
onResize: j,
|
|
945
953
|
sortIcon: D,
|
|
946
|
-
resizeable:
|
|
947
|
-
draggableColumns:
|
|
954
|
+
resizeable: u,
|
|
955
|
+
draggableColumns: F,
|
|
948
956
|
preset: S,
|
|
949
|
-
headerCellClassName:
|
|
950
|
-
headerCellStyle:
|
|
951
|
-
headerCellWrapperClassName:
|
|
952
|
-
headerCellWrapperStyle:
|
|
953
|
-
stickyHeader:
|
|
954
|
-
scrollContainerRef:
|
|
955
|
-
resizeThrottle:
|
|
957
|
+
headerCellClassName: $,
|
|
958
|
+
headerCellStyle: V,
|
|
959
|
+
headerCellWrapperClassName: U,
|
|
960
|
+
headerCellWrapperStyle: X,
|
|
961
|
+
stickyHeader: G,
|
|
962
|
+
scrollContainerRef: C,
|
|
963
|
+
resizeThrottle: b
|
|
956
964
|
}) {
|
|
957
|
-
var
|
|
965
|
+
var re;
|
|
958
966
|
if (t.hidden)
|
|
959
967
|
return null;
|
|
960
|
-
const { activeColumn: n, isValidDropZone:
|
|
961
|
-
|
|
962
|
-
const
|
|
963
|
-
if (!
|
|
964
|
-
const
|
|
965
|
-
for (const
|
|
966
|
-
if (
|
|
967
|
-
return
|
|
968
|
-
if (
|
|
969
|
-
const
|
|
970
|
-
if (
|
|
968
|
+
const { activeColumn: n, isValidDropZone: g } = Mt(), c = !t.children || t.children.length === 0;
|
|
969
|
+
We(() => (l == null ? void 0 : l.some((R) => R.children && R.children.length > 0)) || !1, [l]);
|
|
970
|
+
const E = F, m = q((R) => {
|
|
971
|
+
if (!l) return null;
|
|
972
|
+
const J = (i, v, _ = null) => {
|
|
973
|
+
for (const s of i) {
|
|
974
|
+
if (s.key === v)
|
|
975
|
+
return _;
|
|
976
|
+
if (s.children && s.children.length > 0) {
|
|
977
|
+
const y = J(s.children, v, s);
|
|
978
|
+
if (y !== null) return y;
|
|
971
979
|
}
|
|
972
980
|
}
|
|
973
981
|
return null;
|
|
974
982
|
};
|
|
975
|
-
return
|
|
976
|
-
}, [
|
|
977
|
-
if (!
|
|
978
|
-
const
|
|
979
|
-
for (const
|
|
980
|
-
if (
|
|
981
|
-
return
|
|
982
|
-
if (
|
|
983
|
-
const
|
|
984
|
-
if (
|
|
983
|
+
return J(l, R);
|
|
984
|
+
}, [l])(t.key), p = t.fixed || (m == null ? void 0 : m.fixed) || !1, A = q((R) => {
|
|
985
|
+
if (!l) return 0;
|
|
986
|
+
const J = (i, v, _ = 0) => {
|
|
987
|
+
for (const s of i) {
|
|
988
|
+
if (s.key === v)
|
|
989
|
+
return _;
|
|
990
|
+
if (s.children && s.children.length > 0) {
|
|
991
|
+
const y = J(s.children, v, _ + 1);
|
|
992
|
+
if (y !== -1) return y;
|
|
985
993
|
}
|
|
986
994
|
}
|
|
987
995
|
return -1;
|
|
988
996
|
};
|
|
989
|
-
return
|
|
990
|
-
}, [
|
|
991
|
-
attributes:
|
|
997
|
+
return J(l, R);
|
|
998
|
+
}, [l])(t.key), {
|
|
999
|
+
attributes: L,
|
|
992
1000
|
listeners: w,
|
|
993
|
-
setNodeRef:
|
|
994
|
-
isDragging:
|
|
1001
|
+
setNodeRef: P,
|
|
1002
|
+
isDragging: z
|
|
995
1003
|
} = Pt({
|
|
996
1004
|
id: `column-${t.key}`,
|
|
997
1005
|
data: {
|
|
998
1006
|
type: "table-column",
|
|
999
1007
|
columnKey: t.key,
|
|
1000
|
-
isFixed:
|
|
1001
|
-
parentKey:
|
|
1002
|
-
level:
|
|
1008
|
+
isFixed: p,
|
|
1009
|
+
parentKey: m == null ? void 0 : m.key,
|
|
1010
|
+
level: A,
|
|
1003
1011
|
index: r,
|
|
1004
|
-
isLeaf:
|
|
1012
|
+
isLeaf: c
|
|
1005
1013
|
// ✅ Добавляем информацию о типе колонки
|
|
1006
1014
|
},
|
|
1007
|
-
disabled: !
|
|
1015
|
+
disabled: !E
|
|
1008
1016
|
}), {
|
|
1009
|
-
setNodeRef:
|
|
1017
|
+
setNodeRef: B,
|
|
1010
1018
|
isOver: ne
|
|
1011
|
-
} =
|
|
1019
|
+
} = Rt({
|
|
1012
1020
|
id: `drop-zone-${t.key}`,
|
|
1013
1021
|
data: {
|
|
1014
1022
|
type: "column-drop-zone",
|
|
1015
1023
|
columnKey: t.key,
|
|
1016
|
-
isFixed:
|
|
1017
|
-
accepts: [
|
|
1018
|
-
isLeaf:
|
|
1024
|
+
isFixed: p,
|
|
1025
|
+
accepts: [p ? "fixed" : "non-fixed"],
|
|
1026
|
+
isLeaf: c
|
|
1019
1027
|
// ✅ Добавляем информацию о типе колонки
|
|
1020
1028
|
},
|
|
1021
1029
|
disabled: !1
|
|
1022
|
-
}),
|
|
1023
|
-
|
|
1024
|
-
}, [
|
|
1030
|
+
}), Y = q((R) => {
|
|
1031
|
+
P(R), B(R);
|
|
1032
|
+
}, [P, B]), K = We(() => {
|
|
1025
1033
|
if (!n || !ne) return !1;
|
|
1026
1034
|
const R = {
|
|
1027
1035
|
type: "column-drop-zone",
|
|
1028
1036
|
columnKey: t.key,
|
|
1029
|
-
isFixed:
|
|
1030
|
-
accepts: [
|
|
1031
|
-
isLeaf:
|
|
1037
|
+
isFixed: p,
|
|
1038
|
+
accepts: [p ? "fixed" : "non-fixed"],
|
|
1039
|
+
isLeaf: c
|
|
1032
1040
|
};
|
|
1033
|
-
return
|
|
1034
|
-
}, [n, ne, t.key,
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1041
|
+
return g(n, R);
|
|
1042
|
+
}, [n, ne, t.key, p, g, c]), te = We(() => z ? "grabbing" : ne && n ? K ? "copy" : "not-allowed" : "default", [z, ne, n, K]), le = t.fixed && !t.width ? 200 : t.width, Q = t.fixed && !t.minWidth ? 200 : t.minWidth, ie = q(() => {
|
|
1043
|
+
let R = t.fixedLeft || 0;
|
|
1044
|
+
if (!p)
|
|
1045
|
+
return R;
|
|
1046
|
+
for (let J = 0; J < r; J++) {
|
|
1047
|
+
const i = d[J];
|
|
1048
|
+
i.fixed && !i.hidden && (R += (i.width || i.minWidth || 200) + (i.fixedLeft || 0));
|
|
1049
|
+
}
|
|
1050
|
+
return R;
|
|
1051
|
+
}, [t.fixedLeft, d, r, p]), [ge, ae] = xe(() => ie());
|
|
1052
|
+
jt(() => {
|
|
1053
|
+
if (!p) {
|
|
1054
|
+
ae(ie());
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
let R = t.fixedLeft || 0;
|
|
1058
|
+
for (let J = 0; J < r; J++) {
|
|
1059
|
+
const i = d[J];
|
|
1060
|
+
if (i.fixed && !i.hidden) {
|
|
1061
|
+
const v = i.width || i.minWidth || 200, _ = Jt(i.key);
|
|
1062
|
+
R += (_ ?? v) + (i.fixedLeft || 0);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
ae(R);
|
|
1066
|
+
}, [t.fixedLeft, t.width, t.minWidth, d, r, p, ie]);
|
|
1067
|
+
const oe = ((R) => {
|
|
1042
1068
|
if (R.groupColor)
|
|
1043
1069
|
return R.groupColor;
|
|
1044
|
-
if (
|
|
1045
|
-
const
|
|
1046
|
-
for (const
|
|
1047
|
-
if (
|
|
1048
|
-
if (
|
|
1049
|
-
return
|
|
1050
|
-
const
|
|
1051
|
-
if (
|
|
1070
|
+
if (l) {
|
|
1071
|
+
const J = (v, _) => {
|
|
1072
|
+
for (const s of v)
|
|
1073
|
+
if (s.children) {
|
|
1074
|
+
if (s.children.some((N) => N.key === _))
|
|
1075
|
+
return s;
|
|
1076
|
+
const y = J(s.children, _);
|
|
1077
|
+
if (y) return y;
|
|
1052
1078
|
}
|
|
1053
1079
|
return null;
|
|
1054
|
-
},
|
|
1055
|
-
return
|
|
1080
|
+
}, i = J(l, R.key);
|
|
1081
|
+
return i == null ? void 0 : i.groupColor;
|
|
1056
1082
|
}
|
|
1057
1083
|
})(t);
|
|
1058
|
-
let
|
|
1059
|
-
return k.sort_field === t.key && (k.sort_order === "ASC" && (
|
|
1084
|
+
let se = "currentColor", ce = "currentColor";
|
|
1085
|
+
return k.sort_field === t.key && (k.sort_order === "ASC" && (se = "#5329FF"), k.sort_order === "DESC" && (ce = "#5329FF")), /* @__PURE__ */ o.jsx(
|
|
1060
1086
|
"th",
|
|
1061
1087
|
{
|
|
1062
|
-
ref:
|
|
1088
|
+
ref: Y,
|
|
1063
1089
|
"data-column-key": t.key,
|
|
1064
1090
|
className: `
|
|
1065
1091
|
radar-table__header-cell
|
|
1066
1092
|
${S ? S + "__header-cell" : ""}
|
|
1067
|
-
${
|
|
1068
|
-
${
|
|
1093
|
+
${$ || ""}
|
|
1094
|
+
${z ? "dragging" : ""}
|
|
1069
1095
|
${ne ? "drag-over" : ""}
|
|
1070
|
-
${
|
|
1071
|
-
${ne && !
|
|
1072
|
-
${
|
|
1096
|
+
${K && ne ? "valid-drop-zone" : ""}
|
|
1097
|
+
${ne && !K ? "invalid-drop-zone" : ""}
|
|
1098
|
+
${c ? "leaf-header" : "group-header"}
|
|
1073
1099
|
${t.className || ""}`,
|
|
1074
1100
|
colSpan: t.colSpan || 1,
|
|
1075
1101
|
rowSpan: t.rowSpan || 1,
|
|
1076
1102
|
style: {
|
|
1077
1103
|
width: le,
|
|
1078
|
-
minWidth:
|
|
1104
|
+
minWidth: Q,
|
|
1079
1105
|
position: t.fixed ? "sticky" : "static",
|
|
1080
|
-
top:
|
|
1081
|
-
left:
|
|
1082
|
-
borderRight: t.fixed && !((
|
|
1106
|
+
top: G && typeof G == "number" ? G : 0,
|
|
1107
|
+
left: ge,
|
|
1108
|
+
borderRight: t.fixed && !((re = d[r + 1]) != null && re.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1083
1109
|
zIndex: t.fixed ? 2 : "auto",
|
|
1084
|
-
backgroundColor:
|
|
1110
|
+
backgroundColor: oe,
|
|
1085
1111
|
cursor: te,
|
|
1086
|
-
...
|
|
1112
|
+
...V,
|
|
1087
1113
|
...t.style
|
|
1088
1114
|
},
|
|
1089
|
-
children: /* @__PURE__ */
|
|
1115
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
1090
1116
|
"div",
|
|
1091
1117
|
{
|
|
1092
1118
|
className: `
|
|
1093
1119
|
radar-table__header-cell-wrapper
|
|
1094
1120
|
${S ? S + "__header-cell-wrapper" : ""}
|
|
1095
|
-
${
|
|
1121
|
+
${U || ""}
|
|
1096
1122
|
`,
|
|
1097
|
-
style:
|
|
1123
|
+
style: X,
|
|
1098
1124
|
children: [
|
|
1099
|
-
|
|
1125
|
+
E && /* @__PURE__ */ o.jsx(
|
|
1100
1126
|
"div",
|
|
1101
1127
|
{
|
|
1102
|
-
className: `radar-table__drag-handle ${
|
|
1103
|
-
...
|
|
1128
|
+
className: `radar-table__drag-handle ${z ? "dragging" : ""} ${c ? "" : "group-drag-handle"}`,
|
|
1129
|
+
...L,
|
|
1104
1130
|
...w,
|
|
1105
|
-
style: { cursor:
|
|
1106
|
-
children: /* @__PURE__ */
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
-
/* @__PURE__ */
|
|
1110
|
-
/* @__PURE__ */
|
|
1111
|
-
/* @__PURE__ */
|
|
1112
|
-
/* @__PURE__ */
|
|
1131
|
+
style: { cursor: z ? "grabbing" : "grab" },
|
|
1132
|
+
children: /* @__PURE__ */ o.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1133
|
+
/* @__PURE__ */ o.jsx("path", { d: "M2 2.62268e-07C3.10457 4.07115e-07 4 0.89543 4 2C4 3.10457 3.10457 4 2 4C0.895433 4 2.21557e-06 3.10457 2.36042e-06 2C2.50526e-06 0.89543 0.895433 1.17422e-07 2 2.62268e-07Z", fill: "#999999" }),
|
|
1134
|
+
/* @__PURE__ */ o.jsx("path", { d: "M14 16C15.1046 16 16 16.8954 16 18C16 19.1046 15.1046 20 14 20C12.8954 20 12 19.1046 12 18C12 16.8954 12.8954 16 14 16Z", fill: "#999999" }),
|
|
1135
|
+
/* @__PURE__ */ o.jsx("path", { d: "M2 16C3.10457 16 4 16.8954 4 18C4 19.1046 3.10457 20 2 20C0.895432 20 2.21557e-06 19.1046 2.36042e-06 18C2.50526e-06 16.8954 0.895433 16 2 16Z", fill: "#999999" }),
|
|
1136
|
+
/* @__PURE__ */ o.jsx("path", { d: "M14 8C15.1046 8 16 8.89543 16 10C16 11.1046 15.1046 12 14 12C12.8954 12 12 11.1046 12 10C12 8.89543 12.8954 8 14 8Z", fill: "#999999" }),
|
|
1137
|
+
/* @__PURE__ */ o.jsx("path", { d: "M2 8C3.10457 8 4 8.89543 4 10C4 11.1046 3.10457 12 2 12C0.895433 12 2.21557e-06 11.1046 2.36042e-06 10C2.50526e-06 8.89543 0.895433 8 2 8Z", fill: "#999999" }),
|
|
1138
|
+
/* @__PURE__ */ o.jsx("path", { d: "M14 -7.14702e-08C15.1046 7.33766e-08 16 0.89543 16 2C16 3.10457 15.1046 4 14 4C12.8954 4 12 3.10457 12 2C12 0.895429 12.8954 -2.16317e-07 14 -7.14702e-08Z", fill: "#999999" })
|
|
1113
1139
|
] })
|
|
1114
1140
|
}
|
|
1115
1141
|
),
|
|
1116
|
-
/* @__PURE__ */
|
|
1142
|
+
/* @__PURE__ */ o.jsx("div", { className: "radar-table__header-cell-text-wrapper", children: /* @__PURE__ */ o.jsx(
|
|
1117
1143
|
"span",
|
|
1118
1144
|
{
|
|
1119
1145
|
title: t.title,
|
|
1120
1146
|
onClick: () => {
|
|
1121
|
-
const { sort_field: R, sort_order:
|
|
1122
|
-
let
|
|
1147
|
+
const { sort_field: R, sort_order: J } = k;
|
|
1148
|
+
let i = {
|
|
1123
1149
|
columnKey: t.key,
|
|
1124
1150
|
direction: "ASC"
|
|
1125
1151
|
};
|
|
1126
|
-
R === t.key ?
|
|
1152
|
+
R === t.key ? J === "ASC" ? i.direction = "DESC" : J === "DESC" && (i.columnKey = void 0, i.direction = void 0) : (i.columnKey = t.key, i.direction = "ASC"), x(i.columnKey, i.direction);
|
|
1127
1153
|
},
|
|
1128
1154
|
style: {
|
|
1129
1155
|
cursor: t.sortable ? "pointer" : "default",
|
|
@@ -1132,37 +1158,37 @@ function Vt({
|
|
|
1132
1158
|
children: t.title
|
|
1133
1159
|
}
|
|
1134
1160
|
) }),
|
|
1135
|
-
t.sortable && !D &&
|
|
1136
|
-
/* @__PURE__ */
|
|
1161
|
+
t.sortable && !D && c && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
|
|
1162
|
+
/* @__PURE__ */ o.jsx(
|
|
1137
1163
|
"button",
|
|
1138
1164
|
{
|
|
1139
1165
|
className: "radar-table__sort-button",
|
|
1140
|
-
onClick: (R) =>
|
|
1166
|
+
onClick: (R) => x(t.key, "ASC"),
|
|
1141
1167
|
title: `Сортировать по ${t.title}`,
|
|
1142
|
-
children: /* @__PURE__ */
|
|
1168
|
+
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: se, 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" }) })
|
|
1143
1169
|
}
|
|
1144
1170
|
),
|
|
1145
|
-
/* @__PURE__ */
|
|
1171
|
+
/* @__PURE__ */ o.jsx(
|
|
1146
1172
|
"button",
|
|
1147
1173
|
{
|
|
1148
1174
|
className: "radar-table__sort-button",
|
|
1149
|
-
onClick: (R) =>
|
|
1175
|
+
onClick: (R) => x(t.key, "DESC"),
|
|
1150
1176
|
title: `Сортировать по ${t.title}`,
|
|
1151
|
-
children: /* @__PURE__ */
|
|
1177
|
+
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: ce, 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" }) })
|
|
1152
1178
|
}
|
|
1153
1179
|
)
|
|
1154
1180
|
] }),
|
|
1155
|
-
t.sortable && D &&
|
|
1156
|
-
t.tooltipText && /* @__PURE__ */
|
|
1157
|
-
|
|
1181
|
+
t.sortable && D && c && D(k.sort_field, k.sort_order),
|
|
1182
|
+
t.tooltipText && /* @__PURE__ */ o.jsx(At, { text: t.tooltipText, children: t.tooltipIcon }),
|
|
1183
|
+
u && c && /* @__PURE__ */ o.jsx(
|
|
1158
1184
|
Ft,
|
|
1159
1185
|
{
|
|
1160
1186
|
column: t,
|
|
1161
1187
|
currWidth: le,
|
|
1162
|
-
currMinWidth:
|
|
1163
|
-
onResize:
|
|
1164
|
-
scrollContainerRef:
|
|
1165
|
-
resizeThrottle:
|
|
1188
|
+
currMinWidth: Q,
|
|
1189
|
+
onResize: j,
|
|
1190
|
+
scrollContainerRef: C,
|
|
1191
|
+
resizeThrottle: b
|
|
1166
1192
|
}
|
|
1167
1193
|
)
|
|
1168
1194
|
]
|
|
@@ -1171,374 +1197,381 @@ function Vt({
|
|
|
1171
1197
|
}
|
|
1172
1198
|
);
|
|
1173
1199
|
}
|
|
1174
|
-
function
|
|
1200
|
+
function et({
|
|
1175
1201
|
config: t,
|
|
1176
1202
|
fullConfig: r,
|
|
1177
1203
|
onSort: d,
|
|
1178
|
-
onResize:
|
|
1204
|
+
onResize: l,
|
|
1179
1205
|
onColumnReorder: k,
|
|
1180
1206
|
// ✅ Сохранен (понадобится для передачи в TableDndProvider)
|
|
1181
|
-
sortIcon:
|
|
1182
|
-
resizeable:
|
|
1207
|
+
sortIcon: x,
|
|
1208
|
+
resizeable: j,
|
|
1183
1209
|
draggableColumns: D,
|
|
1184
|
-
preset:
|
|
1185
|
-
headerClassName:
|
|
1210
|
+
preset: u,
|
|
1211
|
+
headerClassName: F,
|
|
1186
1212
|
headerStyle: S,
|
|
1187
|
-
headerRowClassName:
|
|
1188
|
-
headerRowStyle:
|
|
1189
|
-
headerCellClassName:
|
|
1190
|
-
headerCellStyle:
|
|
1191
|
-
headerCellWrapperClassName:
|
|
1192
|
-
headerCellWrapperStyle:
|
|
1193
|
-
stickyHeader:
|
|
1213
|
+
headerRowClassName: $,
|
|
1214
|
+
headerRowStyle: V,
|
|
1215
|
+
headerCellClassName: U,
|
|
1216
|
+
headerCellStyle: X,
|
|
1217
|
+
headerCellWrapperClassName: G,
|
|
1218
|
+
headerCellWrapperStyle: C,
|
|
1219
|
+
stickyHeader: b,
|
|
1194
1220
|
scrollContainerRef: n,
|
|
1195
1221
|
// ✅ Сохранен (для передачи в HeaderCell)
|
|
1196
|
-
sorting:
|
|
1197
|
-
defaultSorting:
|
|
1198
|
-
resizeThrottle:
|
|
1222
|
+
sorting: g,
|
|
1223
|
+
defaultSorting: c,
|
|
1224
|
+
resizeThrottle: E
|
|
1199
1225
|
}) {
|
|
1200
|
-
const [
|
|
1226
|
+
const [O, m] = xe(() => c || { sort_field: void 0, sort_order: void 0 }), p = g !== void 0, h = p ? g : O;
|
|
1201
1227
|
Ne(() => {
|
|
1202
|
-
!
|
|
1203
|
-
}, [
|
|
1204
|
-
const
|
|
1205
|
-
const { sort_field:
|
|
1206
|
-
let
|
|
1207
|
-
sort_field:
|
|
1228
|
+
!p && c && m(c);
|
|
1229
|
+
}, [c, p]);
|
|
1230
|
+
const A = q((L, w) => {
|
|
1231
|
+
const { sort_field: P, sort_order: z } = h;
|
|
1232
|
+
let B = {
|
|
1233
|
+
sort_field: L,
|
|
1208
1234
|
sort_order: w
|
|
1209
1235
|
};
|
|
1210
|
-
|
|
1236
|
+
P === L && z === w && (B = {
|
|
1211
1237
|
sort_field: void 0,
|
|
1212
1238
|
sort_order: void 0
|
|
1213
|
-
}),
|
|
1214
|
-
}, [
|
|
1215
|
-
return /* @__PURE__ */
|
|
1239
|
+
}), p || m(B), d == null || d(B.sort_field, B.sort_order);
|
|
1240
|
+
}, [h, d, p]);
|
|
1241
|
+
return /* @__PURE__ */ o.jsx(
|
|
1216
1242
|
"tr",
|
|
1217
1243
|
{
|
|
1218
|
-
className: `radar-table__header-row ${
|
|
1219
|
-
style:
|
|
1220
|
-
children: t.map((
|
|
1221
|
-
|
|
1244
|
+
className: `radar-table__header-row ${u ? u + "__header-row" : ""} ${$ || ""}`,
|
|
1245
|
+
style: V,
|
|
1246
|
+
children: t.map((L, w) => /* @__PURE__ */ o.jsx(
|
|
1247
|
+
Bt,
|
|
1222
1248
|
{
|
|
1223
|
-
column:
|
|
1249
|
+
column: L,
|
|
1224
1250
|
index: w,
|
|
1225
1251
|
config: t,
|
|
1226
1252
|
fullConfig: r,
|
|
1227
|
-
sorting:
|
|
1228
|
-
onSort:
|
|
1229
|
-
onResize:
|
|
1230
|
-
sortIcon:
|
|
1231
|
-
resizeable:
|
|
1253
|
+
sorting: h,
|
|
1254
|
+
onSort: A,
|
|
1255
|
+
onResize: l,
|
|
1256
|
+
sortIcon: x,
|
|
1257
|
+
resizeable: j,
|
|
1232
1258
|
draggableColumns: D,
|
|
1233
|
-
preset:
|
|
1234
|
-
headerCellClassName:
|
|
1235
|
-
headerCellStyle:
|
|
1236
|
-
headerCellWrapperClassName:
|
|
1237
|
-
headerCellWrapperStyle:
|
|
1238
|
-
stickyHeader:
|
|
1259
|
+
preset: u,
|
|
1260
|
+
headerCellClassName: U,
|
|
1261
|
+
headerCellStyle: X,
|
|
1262
|
+
headerCellWrapperClassName: G,
|
|
1263
|
+
headerCellWrapperStyle: C,
|
|
1264
|
+
stickyHeader: b,
|
|
1239
1265
|
scrollContainerRef: n,
|
|
1240
|
-
resizeThrottle:
|
|
1266
|
+
resizeThrottle: E
|
|
1241
1267
|
},
|
|
1242
|
-
|
|
1268
|
+
L.key
|
|
1243
1269
|
))
|
|
1244
1270
|
}
|
|
1245
1271
|
);
|
|
1246
1272
|
}
|
|
1247
|
-
function
|
|
1273
|
+
function Yt(t) {
|
|
1248
1274
|
const {
|
|
1249
1275
|
config: r,
|
|
1250
1276
|
preset: d,
|
|
1251
|
-
headerClassName:
|
|
1277
|
+
headerClassName: l,
|
|
1252
1278
|
headerStyle: k,
|
|
1253
|
-
stickyHeader:
|
|
1254
|
-
headerRowClassName:
|
|
1279
|
+
stickyHeader: x,
|
|
1280
|
+
headerRowClassName: j,
|
|
1255
1281
|
headerRowStyle: D,
|
|
1256
|
-
headerCellClassName:
|
|
1257
|
-
headerCellStyle:
|
|
1282
|
+
headerCellClassName: u,
|
|
1283
|
+
headerCellStyle: F,
|
|
1258
1284
|
headerCellWrapperClassName: S,
|
|
1259
|
-
headerCellWrapperStyle:
|
|
1260
|
-
onResize:
|
|
1261
|
-
onColumnReorder:
|
|
1262
|
-
sorting:
|
|
1263
|
-
defaultSorting:
|
|
1264
|
-
} = t,
|
|
1265
|
-
if (!
|
|
1285
|
+
headerCellWrapperStyle: $,
|
|
1286
|
+
onResize: V,
|
|
1287
|
+
onColumnReorder: U,
|
|
1288
|
+
sorting: X,
|
|
1289
|
+
defaultSorting: G
|
|
1290
|
+
} = t, C = r.some((c) => c.children && c.children.length > 0), b = We(() => {
|
|
1291
|
+
if (!C)
|
|
1266
1292
|
return null;
|
|
1267
|
-
const
|
|
1268
|
-
|
|
1269
|
-
|
|
1293
|
+
const c = {}, E = (O, m = 0) => {
|
|
1294
|
+
c[m] || (c[m] = []), O.forEach((p) => {
|
|
1295
|
+
p.hidden || (c[m].push(p), p.children && p.children.length > 0 && E(p.children, m + 1));
|
|
1270
1296
|
});
|
|
1271
1297
|
};
|
|
1272
|
-
return
|
|
1273
|
-
}, [r,
|
|
1274
|
-
if (!
|
|
1275
|
-
const
|
|
1276
|
-
for (const
|
|
1277
|
-
if (
|
|
1278
|
-
if (
|
|
1279
|
-
const w =
|
|
1298
|
+
return E(r), c;
|
|
1299
|
+
}, [r, C]), n = q((c, E) => {
|
|
1300
|
+
if (!V) return;
|
|
1301
|
+
const O = (h, A) => {
|
|
1302
|
+
for (const L of h) {
|
|
1303
|
+
if (L.key === A) return L;
|
|
1304
|
+
if (L.children) {
|
|
1305
|
+
const w = O(L.children, A);
|
|
1280
1306
|
if (w) return w;
|
|
1281
1307
|
}
|
|
1282
1308
|
}
|
|
1283
1309
|
return null;
|
|
1284
|
-
},
|
|
1285
|
-
if (!
|
|
1286
|
-
return [
|
|
1287
|
-
const
|
|
1288
|
-
return
|
|
1289
|
-
|
|
1290
|
-
}),
|
|
1291
|
-
},
|
|
1292
|
-
if (
|
|
1293
|
-
if (
|
|
1294
|
-
const
|
|
1295
|
-
if (
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1310
|
+
}, m = (h) => {
|
|
1311
|
+
if (!h.children || h.children.length === 0)
|
|
1312
|
+
return [h];
|
|
1313
|
+
const A = [];
|
|
1314
|
+
return h.children.forEach((L) => {
|
|
1315
|
+
L.hidden || A.push(...m(L));
|
|
1316
|
+
}), A;
|
|
1317
|
+
}, p = O(r, c);
|
|
1318
|
+
if (p)
|
|
1319
|
+
if (p.children && p.children.length > 0) {
|
|
1320
|
+
const h = m(p);
|
|
1321
|
+
if (h.length > 0) {
|
|
1322
|
+
const A = h.reduce((w, P) => w + (P.width || P.minWidth || 200), 0), L = E / A;
|
|
1323
|
+
h.forEach((w) => {
|
|
1324
|
+
const P = Math.max(50, Math.round((w.width || w.minWidth || 200) * L));
|
|
1325
|
+
V(w.key, P);
|
|
1300
1326
|
});
|
|
1301
1327
|
}
|
|
1302
1328
|
} else
|
|
1303
|
-
|
|
1304
|
-
}, [r,
|
|
1305
|
-
if (!
|
|
1306
|
-
if (!
|
|
1307
|
-
|
|
1329
|
+
V(c, E);
|
|
1330
|
+
}, [r, V]), g = q((c) => {
|
|
1331
|
+
if (!U) return;
|
|
1332
|
+
if (!C) {
|
|
1333
|
+
U(c);
|
|
1308
1334
|
return;
|
|
1309
1335
|
}
|
|
1310
|
-
const
|
|
1311
|
-
for (let
|
|
1312
|
-
const
|
|
1313
|
-
if (
|
|
1336
|
+
const E = (ae, H, oe = [], se = null) => {
|
|
1337
|
+
for (let ce = 0; ce < ae.length; ce++) {
|
|
1338
|
+
const re = ae[ce], R = [...oe, ce];
|
|
1339
|
+
if (re.key === H)
|
|
1314
1340
|
return {
|
|
1315
|
-
column:
|
|
1341
|
+
column: re,
|
|
1316
1342
|
parent: se,
|
|
1317
|
-
path:
|
|
1318
|
-
level:
|
|
1343
|
+
path: R,
|
|
1344
|
+
level: oe.length
|
|
1319
1345
|
};
|
|
1320
|
-
if (
|
|
1321
|
-
const
|
|
1322
|
-
if (
|
|
1323
|
-
return
|
|
1346
|
+
if (re.children && re.children.length > 0) {
|
|
1347
|
+
const J = E(re.children, H, R, re);
|
|
1348
|
+
if (J)
|
|
1349
|
+
return J;
|
|
1324
1350
|
}
|
|
1325
1351
|
}
|
|
1326
1352
|
return null;
|
|
1327
1353
|
};
|
|
1328
|
-
if (!Object.values(
|
|
1329
|
-
if (ae.length !==
|
|
1330
|
-
const
|
|
1331
|
-
return JSON.stringify(
|
|
1354
|
+
if (!Object.values(b).find((ae) => {
|
|
1355
|
+
if (ae.length !== c.length) return !1;
|
|
1356
|
+
const H = ae.map((se) => se.key).sort(), oe = c.map((se) => se.key).sort();
|
|
1357
|
+
return JSON.stringify(H) === JSON.stringify(oe);
|
|
1332
1358
|
}))
|
|
1333
1359
|
return;
|
|
1334
|
-
const
|
|
1335
|
-
if (!(
|
|
1360
|
+
const m = c._dragInfo;
|
|
1361
|
+
if (!(m != null && m.draggedKey) || !(m != null && m.targetKey))
|
|
1336
1362
|
return;
|
|
1337
|
-
const { draggedKey:
|
|
1338
|
-
if (!
|
|
1339
|
-
const { column: w, parent:
|
|
1340
|
-
if (
|
|
1363
|
+
const { draggedKey: p, targetKey: h } = m, A = E(r, p), L = E(r, h);
|
|
1364
|
+
if (!A || !L) return;
|
|
1365
|
+
const { column: w, parent: P, path: z, level: B } = A, { column: ne, parent: Y, path: K, level: te } = L, le = (ae, H) => ae.fixed || (H == null ? void 0 : H.fixed) || !1, Q = le(w, P), ie = le(ne, Y);
|
|
1366
|
+
if (B !== te || P !== Y || P && Y && P.key !== Y.key || Q !== ie)
|
|
1341
1367
|
return;
|
|
1342
1368
|
const ge = JSON.parse(JSON.stringify(r));
|
|
1343
|
-
if (
|
|
1344
|
-
const ae =
|
|
1345
|
-
ge.splice(
|
|
1369
|
+
if (B === 0) {
|
|
1370
|
+
const ae = z[0], H = K[0], [oe] = ge.splice(ae, 1);
|
|
1371
|
+
ge.splice(H, 0, oe);
|
|
1346
1372
|
} else {
|
|
1347
|
-
const ae =
|
|
1348
|
-
let
|
|
1349
|
-
for (let
|
|
1350
|
-
|
|
1351
|
-
if (!
|
|
1373
|
+
const ae = z.slice(0, -1);
|
|
1374
|
+
let H = ge;
|
|
1375
|
+
for (let re = 0; re < ae.length; re++)
|
|
1376
|
+
re === 0 ? H = H[ae[re]] : H = H.children[ae[re]];
|
|
1377
|
+
if (!H || !H.children)
|
|
1352
1378
|
return;
|
|
1353
|
-
const
|
|
1354
|
-
if (
|
|
1379
|
+
const oe = z[z.length - 1], se = K[K.length - 1];
|
|
1380
|
+
if (oe < 0 || oe >= H.children.length || se < 0 || se >= H.children.length)
|
|
1355
1381
|
return;
|
|
1356
|
-
const [
|
|
1357
|
-
|
|
1382
|
+
const [ce] = H.children.splice(oe, 1);
|
|
1383
|
+
H.children.splice(se, 0, ce);
|
|
1358
1384
|
}
|
|
1359
|
-
|
|
1360
|
-
}, [r,
|
|
1361
|
-
return
|
|
1385
|
+
U(ge);
|
|
1386
|
+
}, [r, U, b]);
|
|
1387
|
+
return C ? /* @__PURE__ */ o.jsx(
|
|
1362
1388
|
"thead",
|
|
1363
1389
|
{
|
|
1364
|
-
className: `radar-table__header ${d ? d + "__header" : ""} ${
|
|
1390
|
+
className: `radar-table__header ${d ? d + "__header" : ""} ${l}`,
|
|
1365
1391
|
style: {
|
|
1366
|
-
position:
|
|
1367
|
-
top:
|
|
1392
|
+
position: x ? "sticky" : "static",
|
|
1393
|
+
top: x && typeof x == "number" ? x : 0,
|
|
1368
1394
|
...k
|
|
1369
1395
|
},
|
|
1370
|
-
children: Object.keys(
|
|
1371
|
-
const
|
|
1372
|
-
return /* @__PURE__ */
|
|
1373
|
-
|
|
1396
|
+
children: Object.keys(b).map((c) => {
|
|
1397
|
+
const E = b[parseInt(c)], O = parseInt(c);
|
|
1398
|
+
return /* @__PURE__ */ o.jsx(
|
|
1399
|
+
et,
|
|
1374
1400
|
{
|
|
1375
|
-
config:
|
|
1401
|
+
config: E,
|
|
1376
1402
|
fullConfig: r,
|
|
1377
1403
|
onSort: t.onSort,
|
|
1378
1404
|
onResize: n,
|
|
1379
|
-
onColumnReorder:
|
|
1405
|
+
onColumnReorder: g,
|
|
1380
1406
|
resizeable: t.resizeable,
|
|
1381
1407
|
draggableColumns: t.draggableColumns,
|
|
1382
1408
|
preset: d,
|
|
1383
|
-
headerClassName:
|
|
1409
|
+
headerClassName: l,
|
|
1384
1410
|
headerStyle: k,
|
|
1385
|
-
headerRowClassName:
|
|
1411
|
+
headerRowClassName: j,
|
|
1386
1412
|
headerRowStyle: {
|
|
1387
1413
|
...D,
|
|
1388
|
-
position:
|
|
1389
|
-
top:
|
|
1414
|
+
position: x ? "sticky" : "static",
|
|
1415
|
+
top: x && typeof x == "number" ? x + (O - 1) * 50 : 0
|
|
1390
1416
|
},
|
|
1391
|
-
headerCellClassName:
|
|
1392
|
-
headerCellStyle:
|
|
1417
|
+
headerCellClassName: u,
|
|
1418
|
+
headerCellStyle: F,
|
|
1393
1419
|
headerCellWrapperClassName: S,
|
|
1394
|
-
headerCellWrapperStyle:
|
|
1395
|
-
stickyHeader:
|
|
1420
|
+
headerCellWrapperStyle: $,
|
|
1421
|
+
stickyHeader: x,
|
|
1396
1422
|
sortIcon: t.sortIcon,
|
|
1397
1423
|
scrollContainerRef: t.scrollContainerRef,
|
|
1398
|
-
sorting:
|
|
1399
|
-
defaultSorting:
|
|
1424
|
+
sorting: X,
|
|
1425
|
+
defaultSorting: G,
|
|
1400
1426
|
resizeThrottle: t.resizeThrottle
|
|
1401
1427
|
},
|
|
1402
|
-
|
|
1428
|
+
c
|
|
1403
1429
|
);
|
|
1404
1430
|
})
|
|
1405
1431
|
}
|
|
1406
|
-
) : /* @__PURE__ */
|
|
1432
|
+
) : /* @__PURE__ */ o.jsx(
|
|
1407
1433
|
"thead",
|
|
1408
1434
|
{
|
|
1409
|
-
className: `radar-table__header ${d ? d + "__header" : ""} ${
|
|
1435
|
+
className: `radar-table__header ${d ? d + "__header" : ""} ${l}`,
|
|
1410
1436
|
style: {
|
|
1411
|
-
position:
|
|
1412
|
-
top:
|
|
1437
|
+
position: x ? "sticky" : "static",
|
|
1438
|
+
top: x && typeof x == "number" ? x : 0,
|
|
1413
1439
|
...k
|
|
1414
1440
|
},
|
|
1415
|
-
children: /* @__PURE__ */
|
|
1441
|
+
children: /* @__PURE__ */ o.jsx(et, { ...t, fullConfig: r, onResize: n, onColumnReorder: g, scrollContainerRef: t.scrollContainerRef, sorting: X, defaultSorting: G, resizeThrottle: t.resizeThrottle })
|
|
1416
1442
|
}
|
|
1417
1443
|
);
|
|
1418
1444
|
}
|
|
1419
|
-
const
|
|
1445
|
+
const Ht = (t, r) => {
|
|
1420
1446
|
let d = "0";
|
|
1421
1447
|
if (t != null) {
|
|
1422
|
-
const
|
|
1423
|
-
if (Number.isNaN(
|
|
1448
|
+
const l = parseFloat(t);
|
|
1449
|
+
if (Number.isNaN(l))
|
|
1424
1450
|
return r && (d += ` ${r}`), d;
|
|
1425
|
-
d =
|
|
1451
|
+
d = l.toLocaleString("ru-RU", {
|
|
1426
1452
|
maximumFractionDigits: 2
|
|
1427
1453
|
}), r && (d += ` ${r}`);
|
|
1428
1454
|
}
|
|
1429
1455
|
return d;
|
|
1430
|
-
},
|
|
1431
|
-
|
|
1456
|
+
}, Ut = (t) => {
|
|
1457
|
+
var r;
|
|
1458
|
+
return typeof window < "u" && ((r = window.CSS) != null && r.escape) ? window.CSS.escape(t) : t.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
1459
|
+
}, Zt = (t) => {
|
|
1460
|
+
if (typeof document > "u") return null;
|
|
1461
|
+
const r = `th[data-column-key="${Ut(t)}"]`, d = document.querySelector(r);
|
|
1462
|
+
return d ? d.getBoundingClientRect().width : null;
|
|
1463
|
+
}, Gt = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
|
|
1464
|
+
function qt({
|
|
1432
1465
|
draggableRows: t = !1,
|
|
1433
1466
|
dataSource: r,
|
|
1434
1467
|
config: d,
|
|
1435
|
-
rowKey:
|
|
1468
|
+
rowKey: l,
|
|
1436
1469
|
loading: k = !1,
|
|
1437
|
-
onRowReorder:
|
|
1438
|
-
preset:
|
|
1470
|
+
onRowReorder: x,
|
|
1471
|
+
preset: j,
|
|
1439
1472
|
customCellRender: D,
|
|
1440
|
-
treeMode:
|
|
1441
|
-
expandedRowKeys:
|
|
1473
|
+
treeMode: u,
|
|
1474
|
+
expandedRowKeys: F,
|
|
1442
1475
|
defaultExpandedRowKeys: S,
|
|
1443
|
-
onExpandedRowsChange:
|
|
1444
|
-
indentSize:
|
|
1445
|
-
expandIcon:
|
|
1446
|
-
bodyClassName:
|
|
1447
|
-
bodyStyle:
|
|
1448
|
-
bodyRowClassName:
|
|
1449
|
-
bodyRowStyle:
|
|
1476
|
+
onExpandedRowsChange: $,
|
|
1477
|
+
indentSize: V,
|
|
1478
|
+
expandIcon: U,
|
|
1479
|
+
bodyClassName: X,
|
|
1480
|
+
bodyStyle: G,
|
|
1481
|
+
bodyRowClassName: C,
|
|
1482
|
+
bodyRowStyle: b,
|
|
1450
1483
|
bodyCellClassName: n,
|
|
1451
|
-
bodyCellStyle:
|
|
1452
|
-
bodyCellWrapperClassName:
|
|
1453
|
-
bodyCellWrapperStyle:
|
|
1454
|
-
noDataRender:
|
|
1455
|
-
scrollContainerRef:
|
|
1456
|
-
recalculateRowHeight:
|
|
1484
|
+
bodyCellStyle: g,
|
|
1485
|
+
bodyCellWrapperClassName: c,
|
|
1486
|
+
bodyCellWrapperStyle: E,
|
|
1487
|
+
noDataRender: O,
|
|
1488
|
+
scrollContainerRef: m,
|
|
1489
|
+
recalculateRowHeight: p
|
|
1457
1490
|
}) {
|
|
1458
|
-
var
|
|
1459
|
-
const [
|
|
1460
|
-
|
|
1461
|
-
}, [
|
|
1462
|
-
if (!
|
|
1463
|
-
const
|
|
1464
|
-
return
|
|
1465
|
-
const
|
|
1466
|
-
|
|
1467
|
-
record:
|
|
1468
|
-
key:
|
|
1491
|
+
var J;
|
|
1492
|
+
const [h, A] = xe(null), [L, w] = xe(null), [P, z] = xe(() => S && S.length > 0 ? new Set(S) : /* @__PURE__ */ new Set()), B = Re.useMemo(() => F ? new Set(F) : P, [F, P]), ne = q((i) => {
|
|
1493
|
+
F || z(new Set(i)), $ == null || $(i);
|
|
1494
|
+
}, [F, $]), Y = q((i) => l ? l(i) : JSON.stringify(i), [l]), K = Re.useMemo(() => {
|
|
1495
|
+
if (!u) return [];
|
|
1496
|
+
const i = [], v = r;
|
|
1497
|
+
return v.forEach((_, s) => {
|
|
1498
|
+
const y = Y(_), N = _ == null ? void 0 : _.children;
|
|
1499
|
+
i.push({
|
|
1500
|
+
record: _,
|
|
1501
|
+
key: y,
|
|
1469
1502
|
type: "parent",
|
|
1470
1503
|
depth: 0,
|
|
1471
|
-
indexWithinGroup:
|
|
1472
|
-
groupSize:
|
|
1473
|
-
}),
|
|
1474
|
-
|
|
1504
|
+
indexWithinGroup: s,
|
|
1505
|
+
groupSize: v.length
|
|
1506
|
+
}), N && N.length > 0 && B.has(y) && N.forEach((I, pe) => {
|
|
1507
|
+
i.push({
|
|
1475
1508
|
record: I,
|
|
1476
|
-
key:
|
|
1509
|
+
key: Y(I),
|
|
1477
1510
|
type: "child",
|
|
1478
|
-
parentKey:
|
|
1511
|
+
parentKey: y,
|
|
1479
1512
|
depth: 1,
|
|
1480
1513
|
indexWithinGroup: pe,
|
|
1481
|
-
groupSize:
|
|
1514
|
+
groupSize: N.length
|
|
1482
1515
|
});
|
|
1483
1516
|
});
|
|
1484
|
-
}),
|
|
1485
|
-
}, [
|
|
1486
|
-
const
|
|
1487
|
-
return
|
|
1488
|
-
}, [
|
|
1517
|
+
}), i;
|
|
1518
|
+
}, [u, r, Y, B]), te = Re.useMemo(() => {
|
|
1519
|
+
const i = /* @__PURE__ */ new Map();
|
|
1520
|
+
return K.forEach((v) => i.set(v.key, v)), i;
|
|
1521
|
+
}, [K]);
|
|
1489
1522
|
Ne(() => {
|
|
1490
|
-
|
|
1491
|
-
const
|
|
1492
|
-
document.querySelectorAll(".radar-table__header-row").forEach((
|
|
1493
|
-
const
|
|
1494
|
-
let
|
|
1495
|
-
|
|
1496
|
-
I.style.height = "auto",
|
|
1497
|
-
}),
|
|
1498
|
-
I.style.height =
|
|
1523
|
+
Gt && p && (() => {
|
|
1524
|
+
const v = document.querySelectorAll(".radar-table__body-row");
|
|
1525
|
+
document.querySelectorAll(".radar-table__header-row").forEach((s) => {
|
|
1526
|
+
const y = s.querySelectorAll(".radar-table__header-cell-wrapper");
|
|
1527
|
+
let N = 0;
|
|
1528
|
+
y.forEach((I) => {
|
|
1529
|
+
I.style.height = "auto", N = Math.max(N, I.offsetHeight);
|
|
1530
|
+
}), y.forEach((I) => {
|
|
1531
|
+
I.style.height = N + "px";
|
|
1499
1532
|
});
|
|
1500
|
-
}),
|
|
1501
|
-
const
|
|
1502
|
-
let
|
|
1503
|
-
|
|
1504
|
-
I.style.height = "auto",
|
|
1505
|
-
}),
|
|
1506
|
-
I.style.height =
|
|
1533
|
+
}), v.forEach((s) => {
|
|
1534
|
+
const y = s.querySelectorAll(".radar-table__body-cell-wrapper");
|
|
1535
|
+
let N = 0;
|
|
1536
|
+
y.forEach((I) => {
|
|
1537
|
+
I.style.height = "auto", N = Math.max(N, I.offsetHeight);
|
|
1538
|
+
}), y.forEach((I) => {
|
|
1539
|
+
I.style.height = N + "px";
|
|
1507
1540
|
});
|
|
1508
1541
|
});
|
|
1509
1542
|
})();
|
|
1510
1543
|
}, [r, d]);
|
|
1511
|
-
const
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
|
|
1544
|
+
const Q = ((i) => {
|
|
1545
|
+
const v = [], _ = (s) => {
|
|
1546
|
+
s.forEach((y) => {
|
|
1547
|
+
y.children && y.children.length > 0 ? _(y.children) : v.push(y);
|
|
1515
1548
|
});
|
|
1516
1549
|
};
|
|
1517
|
-
return
|
|
1518
|
-
})(d),
|
|
1519
|
-
if (
|
|
1520
|
-
return
|
|
1521
|
-
const
|
|
1522
|
-
for (const
|
|
1523
|
-
if (
|
|
1524
|
-
if (
|
|
1525
|
-
return
|
|
1526
|
-
const I =
|
|
1550
|
+
return _(i), v;
|
|
1551
|
+
})(d), ie = (i) => {
|
|
1552
|
+
if (i.groupColor)
|
|
1553
|
+
return i.groupColor;
|
|
1554
|
+
const v = (s, y) => {
|
|
1555
|
+
for (const N of s)
|
|
1556
|
+
if (N.children) {
|
|
1557
|
+
if (N.children.some((pe) => pe.key === y))
|
|
1558
|
+
return N;
|
|
1559
|
+
const I = v(N.children, y);
|
|
1527
1560
|
if (I) return I;
|
|
1528
1561
|
}
|
|
1529
1562
|
return null;
|
|
1530
|
-
},
|
|
1531
|
-
return
|
|
1532
|
-
}, ge =
|
|
1533
|
-
if (!
|
|
1534
|
-
|
|
1563
|
+
}, _ = v(d, i.key);
|
|
1564
|
+
return _ == null ? void 0 : _.groupColor;
|
|
1565
|
+
}, ge = q((i, v) => {
|
|
1566
|
+
if (!v) {
|
|
1567
|
+
i.preventDefault();
|
|
1535
1568
|
return;
|
|
1536
1569
|
}
|
|
1537
|
-
|
|
1538
|
-
const
|
|
1539
|
-
if (
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1570
|
+
A(v), i.dataTransfer.effectAllowed = "move", i.dataTransfer.setData("text/plain", v), document.body.style.cursor = "grabbing";
|
|
1571
|
+
const _ = r.find((s) => (l ? l(s) : JSON.stringify(s)) === v);
|
|
1572
|
+
if (_) {
|
|
1573
|
+
const s = document.createElement("div");
|
|
1574
|
+
s.style.cssText = `
|
|
1542
1575
|
background: white;
|
|
1543
1576
|
border-radius: 6px;
|
|
1544
1577
|
padding: 8px 12px;
|
|
@@ -1552,553 +1585,557 @@ function Yt({
|
|
|
1552
1585
|
overflow: hidden;
|
|
1553
1586
|
text-overflow: ellipsis;
|
|
1554
1587
|
`;
|
|
1555
|
-
const
|
|
1556
|
-
if (
|
|
1557
|
-
const I =
|
|
1558
|
-
|
|
1588
|
+
const y = Q[0];
|
|
1589
|
+
if (y) {
|
|
1590
|
+
const I = _[y.key];
|
|
1591
|
+
s.textContent = (I == null ? void 0 : I.toString()) || "Строка";
|
|
1559
1592
|
} else
|
|
1560
|
-
|
|
1561
|
-
document.body.appendChild(
|
|
1562
|
-
const
|
|
1563
|
-
document.body.contains(
|
|
1593
|
+
s.textContent = "Строка";
|
|
1594
|
+
document.body.appendChild(s), s.style.position = "absolute", s.style.top = "-1000px", s.style.left = "-1000px", i.dataTransfer.setDragImage(s, 10, 10);
|
|
1595
|
+
const N = setTimeout(() => {
|
|
1596
|
+
document.body.contains(s) && document.body.removeChild(s);
|
|
1564
1597
|
}, 0);
|
|
1565
|
-
return () => clearTimeout(
|
|
1566
|
-
}
|
|
1567
|
-
}, []), ae =
|
|
1568
|
-
|
|
1569
|
-
}, []),
|
|
1570
|
-
if (
|
|
1571
|
-
if (!
|
|
1572
|
-
|
|
1598
|
+
return () => clearTimeout(N);
|
|
1599
|
+
}
|
|
1600
|
+
}, []), ae = q((i) => {
|
|
1601
|
+
i.preventDefault(), i.dataTransfer.dropEffect = "move";
|
|
1602
|
+
}, []), H = q((i, v) => {
|
|
1603
|
+
if (i.preventDefault(), !h) return;
|
|
1604
|
+
if (!u) {
|
|
1605
|
+
h !== v && w(v);
|
|
1573
1606
|
return;
|
|
1574
1607
|
}
|
|
1575
|
-
const
|
|
1576
|
-
if (!
|
|
1577
|
-
const
|
|
1578
|
-
w(
|
|
1579
|
-
}, [
|
|
1580
|
-
|
|
1581
|
-
}, []), se =
|
|
1582
|
-
|
|
1583
|
-
}, []),
|
|
1584
|
-
if (
|
|
1608
|
+
const _ = te.get(h), s = te.get(v);
|
|
1609
|
+
if (!_ || !s) return;
|
|
1610
|
+
const y = _.type === "parent" && s.type === "parent" || _.type === "child" && s.type === "child" && _.parentKey === s.parentKey;
|
|
1611
|
+
w(y && h !== v ? v : null);
|
|
1612
|
+
}, [h, u, te]), oe = q((i) => {
|
|
1613
|
+
i.preventDefault(), w(null);
|
|
1614
|
+
}, []), se = q(() => {
|
|
1615
|
+
A(null), w(null), document.body.style.cursor = "";
|
|
1616
|
+
}, []), ce = q((i, v) => {
|
|
1617
|
+
if (i.preventDefault(), !h || h === v)
|
|
1585
1618
|
return;
|
|
1586
|
-
if (!
|
|
1587
|
-
const
|
|
1588
|
-
if (
|
|
1619
|
+
if (!u) {
|
|
1620
|
+
const y = r.findIndex((ue) => (l ? l(ue) : JSON.stringify(ue)) === h), N = r.findIndex((ue) => (l ? l(ue) : JSON.stringify(ue)) === v);
|
|
1621
|
+
if (y === -1 || N === -1)
|
|
1589
1622
|
return;
|
|
1590
|
-
const I = [...r], [pe] = I.splice(
|
|
1591
|
-
I.splice(
|
|
1623
|
+
const I = [...r], [pe] = I.splice(y, 1);
|
|
1624
|
+
I.splice(N, 0, pe), x == null || x(I), A(null), w(null), document.body.style.cursor = "";
|
|
1592
1625
|
return;
|
|
1593
1626
|
}
|
|
1594
|
-
const
|
|
1595
|
-
if (!(!
|
|
1596
|
-
if (
|
|
1597
|
-
const
|
|
1598
|
-
if (
|
|
1599
|
-
const I = [...r], [pe] = I.splice(
|
|
1600
|
-
I.splice(
|
|
1627
|
+
const _ = te.get(h), s = te.get(v);
|
|
1628
|
+
if (!(!_ || !s)) {
|
|
1629
|
+
if (_.type === "parent" && s.type === "parent") {
|
|
1630
|
+
const y = r.findIndex((ue) => (l ? l(ue) : JSON.stringify(ue)) === _.key), N = r.findIndex((ue) => (l ? l(ue) : JSON.stringify(ue)) === s.key);
|
|
1631
|
+
if (y === -1 || N === -1) return;
|
|
1632
|
+
const I = [...r], [pe] = I.splice(y, 1);
|
|
1633
|
+
I.splice(N, 0, pe), x == null || x(I), A(null), w(null), document.body.style.cursor = "";
|
|
1601
1634
|
return;
|
|
1602
1635
|
}
|
|
1603
|
-
if (
|
|
1604
|
-
const
|
|
1605
|
-
if (
|
|
1606
|
-
const
|
|
1636
|
+
if (_.type === "child" && s.type === "child" && _.parentKey === s.parentKey) {
|
|
1637
|
+
const y = r.findIndex((fe) => (l ? l(fe) : JSON.stringify(fe)) === _.parentKey);
|
|
1638
|
+
if (y === -1) return;
|
|
1639
|
+
const N = r[y], I = N == null ? void 0 : N.children;
|
|
1607
1640
|
if (!I || I.length === 0) return;
|
|
1608
|
-
const pe = I.findIndex((fe) => (
|
|
1641
|
+
const pe = I.findIndex((fe) => (l ? l(fe) : JSON.stringify(fe)) === _.key), ue = I.findIndex((fe) => (l ? l(fe) : JSON.stringify(fe)) === s.key);
|
|
1609
1642
|
if (pe === -1 || ue === -1) return;
|
|
1610
1643
|
const Ee = r.map((fe, Se) => {
|
|
1611
|
-
if (Se !==
|
|
1612
|
-
const Ce = [...I], [
|
|
1613
|
-
return Ce.splice(ue, 0,
|
|
1644
|
+
if (Se !== y) return fe;
|
|
1645
|
+
const Ce = [...I], [_e] = Ce.splice(pe, 1);
|
|
1646
|
+
return Ce.splice(ue, 0, _e), { ...fe, children: Ce };
|
|
1614
1647
|
});
|
|
1615
|
-
|
|
1648
|
+
x == null || x(Ee), A(null), w(null), document.body.style.cursor = "";
|
|
1616
1649
|
return;
|
|
1617
1650
|
}
|
|
1618
1651
|
}
|
|
1619
|
-
}, [
|
|
1652
|
+
}, [h, r, l, x, u, te]);
|
|
1620
1653
|
if (r.length === 0) {
|
|
1621
|
-
let
|
|
1622
|
-
return
|
|
1654
|
+
let i;
|
|
1655
|
+
return m && (i = ((J = m.current) == null ? void 0 : J.clientWidth) + "px"), /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${j ? j + "__body" : ""} ${X}`, style: G, children: /* @__PURE__ */ o.jsx(
|
|
1623
1656
|
"tr",
|
|
1624
1657
|
{
|
|
1625
|
-
className: `radar-table__body-row ${
|
|
1626
|
-
style:
|
|
1627
|
-
children: /* @__PURE__ */
|
|
1658
|
+
className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${C}`,
|
|
1659
|
+
style: b,
|
|
1660
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
1628
1661
|
"td",
|
|
1629
1662
|
{
|
|
1630
|
-
className: `radar-table__body-cell ${
|
|
1631
|
-
colSpan:
|
|
1663
|
+
className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${n}`,
|
|
1664
|
+
colSpan: Q.length,
|
|
1632
1665
|
style: {
|
|
1633
|
-
...
|
|
1666
|
+
...g
|
|
1634
1667
|
},
|
|
1635
1668
|
children: [
|
|
1636
|
-
|
|
1637
|
-
!
|
|
1669
|
+
O && O(),
|
|
1670
|
+
!O && /* @__PURE__ */ o.jsx("div", { className: `${i ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: i || "" }, children: "Нет данных" })
|
|
1638
1671
|
]
|
|
1639
1672
|
}
|
|
1640
1673
|
)
|
|
1641
1674
|
}
|
|
1642
1675
|
) });
|
|
1643
1676
|
}
|
|
1644
|
-
const
|
|
1645
|
-
record:
|
|
1646
|
-
key:
|
|
1677
|
+
const re = u ? K : r.map((i) => ({
|
|
1678
|
+
record: i,
|
|
1679
|
+
key: l ? l(i) : JSON.stringify(i),
|
|
1647
1680
|
type: "parent",
|
|
1648
1681
|
depth: 0,
|
|
1649
1682
|
indexWithinGroup: 0,
|
|
1650
1683
|
groupSize: r.length
|
|
1651
|
-
})),
|
|
1652
|
-
const
|
|
1653
|
-
|
|
1654
|
-
}, [
|
|
1655
|
-
return /* @__PURE__ */
|
|
1656
|
-
const
|
|
1657
|
-
return /* @__PURE__ */
|
|
1684
|
+
})), R = q((i) => {
|
|
1685
|
+
const v = new Set(B);
|
|
1686
|
+
v.has(i) ? v.delete(i) : v.add(i), ne(Array.from(v));
|
|
1687
|
+
}, [B, ne]);
|
|
1688
|
+
return /* @__PURE__ */ o.jsx("tbody", { className: `radar-table__body ${j ? j + "__body" : ""} ${X}`, style: G, children: re.map((i) => {
|
|
1689
|
+
const v = i.record, _ = i.key;
|
|
1690
|
+
return /* @__PURE__ */ o.jsx(
|
|
1658
1691
|
"tr",
|
|
1659
1692
|
{
|
|
1660
|
-
className: `radar-table__body-row ${
|
|
1661
|
-
style:
|
|
1693
|
+
className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${C} ${h === _ ? "dragging" : ""} ${L === _ ? "drag-over" : ""} ${u ? i.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
|
|
1694
|
+
style: b,
|
|
1662
1695
|
draggable: t,
|
|
1663
|
-
onDragStart: (
|
|
1696
|
+
onDragStart: (s) => ge(s, _),
|
|
1664
1697
|
onDragOver: ae,
|
|
1665
|
-
onDragEnter: (
|
|
1666
|
-
onDragLeave:
|
|
1667
|
-
onDrop: (
|
|
1698
|
+
onDragEnter: (s) => H(s, _),
|
|
1699
|
+
onDragLeave: oe,
|
|
1700
|
+
onDrop: (s) => ce(s, _),
|
|
1668
1701
|
onDragEnd: se,
|
|
1669
|
-
children:
|
|
1702
|
+
children: Q.map((s, y) => {
|
|
1670
1703
|
var De, Ie;
|
|
1671
|
-
const
|
|
1672
|
-
let pe =
|
|
1673
|
-
if (D && D.idx.includes(
|
|
1674
|
-
for (let
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1704
|
+
const N = s.fixed && !s.width ? 200 : s.width, I = s.fixed && !s.minWidth ? 200 : s.minWidth;
|
|
1705
|
+
let pe = s.fixedLeft ? s.fixedLeft : 0, ue = !1;
|
|
1706
|
+
if (D && D.idx.includes(s.dataIndex) && (ue = !0), D && D.idx.length === 0 && (ue = !0), s.fixed && y !== 0) {
|
|
1707
|
+
for (let me = 0; me < y; me++)
|
|
1708
|
+
if (Q[me].fixed && !Q[me].hidden) {
|
|
1709
|
+
const $e = Q[me].width || Q[me].minWidth || 200, Fe = Zt(Q[me].key);
|
|
1710
|
+
pe += (Fe ?? $e) + (Q[me].fixedLeft || 0);
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
const Ee = ie(s), fe = y === 0, Se = u && fe && i.depth > 0 ? i.depth * (V || 16) : void 0, Ce = !!(u && i.type === "parent"), _e = !!(u && B.has(i.key)), Te = !!(u && Ce && (v != null && v.children) && v.children.length > 0);
|
|
1714
|
+
return !s.hidden && /* @__PURE__ */ o.jsx(
|
|
1678
1715
|
"td",
|
|
1679
1716
|
{
|
|
1680
|
-
className: `radar-table__body-cell ${
|
|
1717
|
+
className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${n}`,
|
|
1681
1718
|
style: {
|
|
1682
|
-
width:
|
|
1719
|
+
width: N,
|
|
1683
1720
|
minWidth: I,
|
|
1684
|
-
position:
|
|
1721
|
+
position: s.fixed ? "sticky" : "static",
|
|
1685
1722
|
left: pe,
|
|
1686
|
-
borderRight:
|
|
1723
|
+
borderRight: s.fixed && !((De = Q[y + 1]) != null && De.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1687
1724
|
cursor: fe && Te ? "pointer" : "default",
|
|
1688
|
-
...
|
|
1725
|
+
...g
|
|
1689
1726
|
},
|
|
1690
|
-
onClick: fe && Te ? () =>
|
|
1691
|
-
children: /* @__PURE__ */
|
|
1727
|
+
onClick: fe && Te ? () => R(i.key) : void 0,
|
|
1728
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
1692
1729
|
"div",
|
|
1693
1730
|
{
|
|
1694
|
-
className: `radar-table__body-cell-wrapper ${
|
|
1731
|
+
className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${c}`,
|
|
1695
1732
|
style: {
|
|
1696
1733
|
backgroundColor: Ee || "white",
|
|
1697
1734
|
paddingLeft: Se,
|
|
1698
|
-
...
|
|
1735
|
+
...E
|
|
1699
1736
|
},
|
|
1700
1737
|
children: [
|
|
1701
|
-
fe && Ce &&
|
|
1738
|
+
fe && Ce && u && (v == null ? void 0 : v.children) && v.children.length > 0 && /* @__PURE__ */ o.jsx(
|
|
1702
1739
|
"button",
|
|
1703
1740
|
{
|
|
1704
1741
|
type: "button",
|
|
1705
|
-
className: `radar-table__expander-btn ${
|
|
1706
|
-
"aria-expanded":
|
|
1707
|
-
onClick: () =>
|
|
1708
|
-
style: { marginRight: 8, background: "transparent", border: "none", transform:
|
|
1709
|
-
title:
|
|
1710
|
-
children:
|
|
1742
|
+
className: `radar-table__expander-btn ${_e ? "expanded" : ""}`,
|
|
1743
|
+
"aria-expanded": _e,
|
|
1744
|
+
onClick: () => R(i.key),
|
|
1745
|
+
style: { marginRight: 8, background: "transparent", border: "none", transform: _e ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
|
|
1746
|
+
title: _e ? "Свернуть" : "Развернуть",
|
|
1747
|
+
children: U ? U(_e, v) : /* @__PURE__ */ o.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
|
|
1711
1748
|
}
|
|
1712
1749
|
),
|
|
1713
|
-
ue ? D == null ? void 0 : D.renderer(
|
|
1714
|
-
|
|
1715
|
-
!
|
|
1750
|
+
ue ? D == null ? void 0 : D.renderer(v[s.dataIndex], v, y, s.dataIndex) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1751
|
+
s.units && Ht(((Ie = v[s.key]) == null ? void 0 : Ie.toString()) || "", s.units),
|
|
1752
|
+
!s.units && v[s.key]
|
|
1716
1753
|
] })
|
|
1717
1754
|
]
|
|
1718
1755
|
}
|
|
1719
1756
|
)
|
|
1720
1757
|
},
|
|
1721
|
-
|
|
1758
|
+
s.key
|
|
1722
1759
|
);
|
|
1723
1760
|
})
|
|
1724
1761
|
},
|
|
1725
|
-
|
|
1762
|
+
_
|
|
1726
1763
|
);
|
|
1727
1764
|
}) });
|
|
1728
1765
|
}
|
|
1729
|
-
const
|
|
1730
|
-
const [{ current: r, pageSize: d, total:
|
|
1766
|
+
const tt = ({ config: t }) => {
|
|
1767
|
+
const [{ current: r, pageSize: d, total: l, onChange: k, showQuickJumper: x, buttonsCount: j = 4, hideOnSinglePage: D = !1 }, u] = xe(t);
|
|
1731
1768
|
Ne(() => {
|
|
1732
|
-
|
|
1769
|
+
u(t);
|
|
1733
1770
|
}, [t]);
|
|
1734
|
-
const
|
|
1735
|
-
const
|
|
1736
|
-
!/^[0-9]$/.test(n.key) && !
|
|
1737
|
-
},
|
|
1771
|
+
const F = Math.ceil(r / j), S = (F - 1) * j + 1, $ = F * j, V = (n) => {
|
|
1772
|
+
const g = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
|
|
1773
|
+
!/^[0-9]$/.test(n.key) && !g.includes(n.key) && n.preventDefault();
|
|
1774
|
+
}, U = (n) => {
|
|
1738
1775
|
if (n.key === "Enter") {
|
|
1739
|
-
const
|
|
1740
|
-
|
|
1776
|
+
const g = parseInt(n.currentTarget.value);
|
|
1777
|
+
g > 0 && g <= l && (u({ ...t, current: g }), k == null || k(g, d), n.currentTarget.value = "");
|
|
1741
1778
|
}
|
|
1742
|
-
},
|
|
1743
|
-
const
|
|
1744
|
-
n.target.value =
|
|
1745
|
-
},
|
|
1779
|
+
}, X = (n) => {
|
|
1780
|
+
const c = n.target.value.replace(/[^0-9]/g, "");
|
|
1781
|
+
n.target.value = c;
|
|
1782
|
+
}, G = (n) => {
|
|
1746
1783
|
n.preventDefault();
|
|
1747
|
-
const
|
|
1748
|
-
|
|
1749
|
-
},
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1752
|
-
},
|
|
1753
|
-
|
|
1784
|
+
const c = n.clipboardData.getData("text").replace(/[^0-9]/g, ""), E = n.target, O = E.selectionStart || 0, m = E.selectionEnd || 0, p = E.value.substring(0, O) + c + E.value.substring(m);
|
|
1785
|
+
E.value = p, E.setSelectionRange(O + c.length, O + c.length);
|
|
1786
|
+
}, C = (n) => {
|
|
1787
|
+
const g = n.currentTarget.id;
|
|
1788
|
+
g === "pagination_left_button" && r > 1 && (u({ ...t, current: r - 1 }), k == null || k(r - 1, d)), g === "pagination_right_button" && r < l && (u({ ...t, current: r + 1 }), k == null || k(r + 1, d));
|
|
1789
|
+
}, b = (n) => {
|
|
1790
|
+
u({ ...t, current: n }), k == null || k(n, d);
|
|
1754
1791
|
};
|
|
1755
|
-
return D &&
|
|
1756
|
-
/* @__PURE__ */
|
|
1792
|
+
return D && l <= 1 ? null : /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination", children: [
|
|
1793
|
+
/* @__PURE__ */ o.jsxs(
|
|
1757
1794
|
"div",
|
|
1758
1795
|
{
|
|
1759
1796
|
className: "radar-table__pagination-main",
|
|
1760
1797
|
style: {
|
|
1761
|
-
gridTemplateColumns: `repeat(${
|
|
1798
|
+
gridTemplateColumns: `repeat(${j + 2}, 32px)`
|
|
1762
1799
|
},
|
|
1763
1800
|
children: [
|
|
1764
|
-
/* @__PURE__ */
|
|
1765
|
-
Array.from({ length:
|
|
1766
|
-
const
|
|
1767
|
-
if (n >= S && n <=
|
|
1768
|
-
return
|
|
1801
|
+
/* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: C, 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" }) }) }),
|
|
1802
|
+
Array.from({ length: l }, (n, g) => g + 1).map((n) => {
|
|
1803
|
+
const g = r === n;
|
|
1804
|
+
if (n >= S && n <= $)
|
|
1805
|
+
return g ? /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: n }, n) : /* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button", onClick: () => b(n), children: n }, n);
|
|
1769
1806
|
}),
|
|
1770
|
-
/* @__PURE__ */
|
|
1807
|
+
/* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: C, 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" }) }) })
|
|
1771
1808
|
]
|
|
1772
1809
|
}
|
|
1773
1810
|
),
|
|
1774
|
-
|
|
1811
|
+
x && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
|
|
1775
1812
|
"Перейти на ",
|
|
1776
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ o.jsx(
|
|
1777
1814
|
"input",
|
|
1778
1815
|
{
|
|
1779
1816
|
className: "radar-table__pagination-input",
|
|
1780
|
-
onKeyDown:
|
|
1781
|
-
onChange:
|
|
1782
|
-
onPaste:
|
|
1783
|
-
onKeyUp: (n) =>
|
|
1817
|
+
onKeyDown: V,
|
|
1818
|
+
onChange: X,
|
|
1819
|
+
onPaste: G,
|
|
1820
|
+
onKeyUp: (n) => U(n)
|
|
1784
1821
|
}
|
|
1785
1822
|
),
|
|
1786
1823
|
" стр. из ",
|
|
1787
|
-
|
|
1824
|
+
l
|
|
1788
1825
|
] })
|
|
1789
1826
|
] });
|
|
1790
1827
|
};
|
|
1791
|
-
function
|
|
1828
|
+
function rr({
|
|
1792
1829
|
dataSource: t,
|
|
1793
1830
|
preset: r,
|
|
1794
1831
|
config: d,
|
|
1795
|
-
rowKey:
|
|
1832
|
+
rowKey: l,
|
|
1796
1833
|
loading: k = !1,
|
|
1797
|
-
pagination:
|
|
1798
|
-
stickyHeader:
|
|
1834
|
+
pagination: x,
|
|
1835
|
+
stickyHeader: j = !1,
|
|
1799
1836
|
resizeable: D = !1,
|
|
1800
|
-
draggableRows:
|
|
1801
|
-
draggableColumns:
|
|
1837
|
+
draggableRows: u = !1,
|
|
1838
|
+
draggableColumns: F = !1,
|
|
1802
1839
|
scrollContainerRef: S,
|
|
1803
|
-
onResize:
|
|
1804
|
-
onSort:
|
|
1805
|
-
onRowReorder:
|
|
1806
|
-
onColumnReorder:
|
|
1807
|
-
customCellRender:
|
|
1808
|
-
noDataRender:
|
|
1809
|
-
sortIcon:
|
|
1840
|
+
onResize: $,
|
|
1841
|
+
onSort: V,
|
|
1842
|
+
onRowReorder: U,
|
|
1843
|
+
onColumnReorder: X,
|
|
1844
|
+
customCellRender: G,
|
|
1845
|
+
noDataRender: C,
|
|
1846
|
+
sortIcon: b,
|
|
1810
1847
|
expandIcon: n,
|
|
1811
|
-
recalculateRowHeight:
|
|
1848
|
+
recalculateRowHeight: g = !1,
|
|
1812
1849
|
// sorting props
|
|
1813
|
-
sorting:
|
|
1814
|
-
defaultSorting:
|
|
1850
|
+
sorting: c,
|
|
1851
|
+
defaultSorting: E,
|
|
1815
1852
|
// tree props
|
|
1816
|
-
treeMode:
|
|
1817
|
-
expandedRowKeys:
|
|
1818
|
-
defaultExpandedRowKeys:
|
|
1819
|
-
onExpandedRowsChange:
|
|
1820
|
-
indentSize:
|
|
1821
|
-
className:
|
|
1853
|
+
treeMode: O,
|
|
1854
|
+
expandedRowKeys: m,
|
|
1855
|
+
defaultExpandedRowKeys: p,
|
|
1856
|
+
onExpandedRowsChange: h,
|
|
1857
|
+
indentSize: A,
|
|
1858
|
+
className: L = "",
|
|
1822
1859
|
style: w,
|
|
1823
|
-
headerClassName:
|
|
1824
|
-
headerStyle:
|
|
1825
|
-
headerCellClassName:
|
|
1860
|
+
headerClassName: P = "",
|
|
1861
|
+
headerStyle: z,
|
|
1862
|
+
headerCellClassName: B = "",
|
|
1826
1863
|
headerCellStyle: ne,
|
|
1827
|
-
headerRowClassName:
|
|
1828
|
-
headerRowStyle:
|
|
1864
|
+
headerRowClassName: Y = "",
|
|
1865
|
+
headerRowStyle: K,
|
|
1829
1866
|
headerCellWrapperClassName: te = "",
|
|
1830
1867
|
headerCellWrapperStyle: le,
|
|
1831
|
-
bodyClassName:
|
|
1832
|
-
bodyStyle:
|
|
1868
|
+
bodyClassName: Q = "",
|
|
1869
|
+
bodyStyle: ie,
|
|
1833
1870
|
bodyRowClassName: ge = "",
|
|
1834
1871
|
bodyRowStyle: ae,
|
|
1835
|
-
bodyCellClassName:
|
|
1836
|
-
bodyCellStyle:
|
|
1872
|
+
bodyCellClassName: H = "",
|
|
1873
|
+
bodyCellStyle: oe,
|
|
1837
1874
|
bodyCellWrapperClassName: se = "",
|
|
1838
|
-
bodyCellWrapperStyle:
|
|
1839
|
-
headerGroupRowClassName:
|
|
1840
|
-
headerGroupRowStyle:
|
|
1841
|
-
headerGroupCellClassName:
|
|
1842
|
-
headerGroupCellStyle:
|
|
1843
|
-
headerGroupCellWrapperClassName:
|
|
1844
|
-
headerGroupCellWrapperStyle:
|
|
1845
|
-
paginationContainerClassName:
|
|
1846
|
-
paginationContainerStyle:
|
|
1847
|
-
resizeThrottle:
|
|
1875
|
+
bodyCellWrapperStyle: ce,
|
|
1876
|
+
headerGroupRowClassName: re,
|
|
1877
|
+
headerGroupRowStyle: R,
|
|
1878
|
+
headerGroupCellClassName: J,
|
|
1879
|
+
headerGroupCellStyle: i,
|
|
1880
|
+
headerGroupCellWrapperClassName: v,
|
|
1881
|
+
headerGroupCellWrapperStyle: _,
|
|
1882
|
+
paginationContainerClassName: s = "",
|
|
1883
|
+
paginationContainerStyle: y,
|
|
1884
|
+
resizeThrottle: N = 0
|
|
1848
1885
|
}) {
|
|
1849
|
-
return
|
|
1850
|
-
/* @__PURE__ */
|
|
1851
|
-
|
|
1886
|
+
return F ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1887
|
+
/* @__PURE__ */ o.jsx(
|
|
1888
|
+
Vt,
|
|
1852
1889
|
{
|
|
1853
1890
|
fullConfig: d,
|
|
1854
|
-
onColumnReorder:
|
|
1855
|
-
children: /* @__PURE__ */
|
|
1856
|
-
|
|
1891
|
+
onColumnReorder: X,
|
|
1892
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1893
|
+
rt,
|
|
1857
1894
|
{
|
|
1858
1895
|
dataSource: t,
|
|
1859
1896
|
preset: r,
|
|
1860
1897
|
config: d,
|
|
1861
|
-
rowKey:
|
|
1898
|
+
rowKey: l,
|
|
1862
1899
|
loading: k,
|
|
1863
|
-
pagination:
|
|
1864
|
-
stickyHeader:
|
|
1900
|
+
pagination: x,
|
|
1901
|
+
stickyHeader: j,
|
|
1865
1902
|
resizeable: D,
|
|
1866
|
-
draggableRows:
|
|
1867
|
-
draggableColumns:
|
|
1903
|
+
draggableRows: u,
|
|
1904
|
+
draggableColumns: F,
|
|
1868
1905
|
scrollContainerRef: S,
|
|
1869
|
-
onResize:
|
|
1870
|
-
onSort:
|
|
1871
|
-
onRowReorder:
|
|
1872
|
-
onColumnReorder:
|
|
1873
|
-
customCellRender:
|
|
1874
|
-
sortIcon:
|
|
1906
|
+
onResize: $,
|
|
1907
|
+
onSort: V,
|
|
1908
|
+
onRowReorder: U,
|
|
1909
|
+
onColumnReorder: X,
|
|
1910
|
+
customCellRender: G,
|
|
1911
|
+
sortIcon: b,
|
|
1875
1912
|
expandIcon: n,
|
|
1876
|
-
treeMode:
|
|
1877
|
-
expandedRowKeys:
|
|
1878
|
-
defaultExpandedRowKeys:
|
|
1879
|
-
onExpandedRowsChange:
|
|
1880
|
-
indentSize:
|
|
1881
|
-
className:
|
|
1913
|
+
treeMode: O,
|
|
1914
|
+
expandedRowKeys: m,
|
|
1915
|
+
defaultExpandedRowKeys: p,
|
|
1916
|
+
onExpandedRowsChange: h,
|
|
1917
|
+
indentSize: A,
|
|
1918
|
+
className: L,
|
|
1882
1919
|
style: w,
|
|
1883
|
-
headerClassName:
|
|
1884
|
-
headerStyle:
|
|
1885
|
-
headerCellClassName:
|
|
1920
|
+
headerClassName: P,
|
|
1921
|
+
headerStyle: z,
|
|
1922
|
+
headerCellClassName: B,
|
|
1886
1923
|
headerCellStyle: ne,
|
|
1887
|
-
headerRowClassName:
|
|
1888
|
-
headerRowStyle:
|
|
1924
|
+
headerRowClassName: Y,
|
|
1925
|
+
headerRowStyle: K,
|
|
1889
1926
|
headerCellWrapperClassName: te,
|
|
1890
1927
|
headerCellWrapperStyle: le,
|
|
1891
|
-
bodyClassName:
|
|
1892
|
-
bodyStyle:
|
|
1928
|
+
bodyClassName: Q,
|
|
1929
|
+
bodyStyle: ie,
|
|
1893
1930
|
bodyRowClassName: ge,
|
|
1894
1931
|
bodyRowStyle: ae,
|
|
1895
|
-
bodyCellClassName:
|
|
1896
|
-
bodyCellStyle:
|
|
1932
|
+
bodyCellClassName: H,
|
|
1933
|
+
bodyCellStyle: oe,
|
|
1897
1934
|
bodyCellWrapperClassName: se,
|
|
1898
|
-
bodyCellWrapperStyle:
|
|
1899
|
-
headerGroupRowClassName:
|
|
1900
|
-
headerGroupRowStyle:
|
|
1901
|
-
headerGroupCellClassName:
|
|
1902
|
-
headerGroupCellStyle:
|
|
1903
|
-
headerGroupCellWrapperClassName:
|
|
1904
|
-
headerGroupCellWrapperStyle:
|
|
1905
|
-
paginationContainerClassName:
|
|
1906
|
-
paginationContainerStyle:
|
|
1907
|
-
noDataRender:
|
|
1908
|
-
recalculateRowHeight:
|
|
1909
|
-
sorting:
|
|
1910
|
-
defaultSorting:
|
|
1911
|
-
resizeThrottle:
|
|
1935
|
+
bodyCellWrapperStyle: ce,
|
|
1936
|
+
headerGroupRowClassName: re,
|
|
1937
|
+
headerGroupRowStyle: R,
|
|
1938
|
+
headerGroupCellClassName: J,
|
|
1939
|
+
headerGroupCellStyle: i,
|
|
1940
|
+
headerGroupCellWrapperClassName: v,
|
|
1941
|
+
headerGroupCellWrapperStyle: _,
|
|
1942
|
+
paginationContainerClassName: s,
|
|
1943
|
+
paginationContainerStyle: y,
|
|
1944
|
+
noDataRender: C,
|
|
1945
|
+
recalculateRowHeight: g,
|
|
1946
|
+
sorting: c,
|
|
1947
|
+
defaultSorting: E,
|
|
1948
|
+
resizeThrottle: N
|
|
1912
1949
|
}
|
|
1913
1950
|
)
|
|
1914
1951
|
}
|
|
1915
1952
|
),
|
|
1916
|
-
/* @__PURE__ */
|
|
1917
|
-
] }) : /* @__PURE__ */
|
|
1918
|
-
/* @__PURE__ */
|
|
1919
|
-
|
|
1953
|
+
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${s}`, style: y, children: x && /* @__PURE__ */ o.jsx(tt, { config: x }) })
|
|
1954
|
+
] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1955
|
+
/* @__PURE__ */ o.jsx(
|
|
1956
|
+
rt,
|
|
1920
1957
|
{
|
|
1921
1958
|
dataSource: t,
|
|
1922
1959
|
preset: r,
|
|
1923
1960
|
config: d,
|
|
1924
|
-
rowKey:
|
|
1961
|
+
rowKey: l,
|
|
1925
1962
|
loading: k,
|
|
1926
|
-
pagination:
|
|
1927
|
-
stickyHeader:
|
|
1963
|
+
pagination: x,
|
|
1964
|
+
stickyHeader: j,
|
|
1928
1965
|
resizeable: D,
|
|
1929
|
-
draggableRows:
|
|
1930
|
-
draggableColumns:
|
|
1966
|
+
draggableRows: u,
|
|
1967
|
+
draggableColumns: F,
|
|
1931
1968
|
scrollContainerRef: S,
|
|
1932
|
-
onResize:
|
|
1933
|
-
onSort:
|
|
1934
|
-
onRowReorder:
|
|
1935
|
-
onColumnReorder:
|
|
1936
|
-
customCellRender:
|
|
1937
|
-
sortIcon:
|
|
1969
|
+
onResize: $,
|
|
1970
|
+
onSort: V,
|
|
1971
|
+
onRowReorder: U,
|
|
1972
|
+
onColumnReorder: X,
|
|
1973
|
+
customCellRender: G,
|
|
1974
|
+
sortIcon: b,
|
|
1938
1975
|
expandIcon: n,
|
|
1939
|
-
treeMode:
|
|
1940
|
-
expandedRowKeys:
|
|
1941
|
-
defaultExpandedRowKeys:
|
|
1942
|
-
onExpandedRowsChange:
|
|
1943
|
-
indentSize:
|
|
1944
|
-
className:
|
|
1976
|
+
treeMode: O,
|
|
1977
|
+
expandedRowKeys: m,
|
|
1978
|
+
defaultExpandedRowKeys: p,
|
|
1979
|
+
onExpandedRowsChange: h,
|
|
1980
|
+
indentSize: A,
|
|
1981
|
+
className: L,
|
|
1945
1982
|
style: w,
|
|
1946
|
-
headerClassName:
|
|
1947
|
-
headerStyle:
|
|
1948
|
-
headerCellClassName:
|
|
1983
|
+
headerClassName: P,
|
|
1984
|
+
headerStyle: z,
|
|
1985
|
+
headerCellClassName: B,
|
|
1949
1986
|
headerCellStyle: ne,
|
|
1950
|
-
headerRowClassName:
|
|
1951
|
-
headerRowStyle:
|
|
1987
|
+
headerRowClassName: Y,
|
|
1988
|
+
headerRowStyle: K,
|
|
1952
1989
|
headerCellWrapperClassName: te,
|
|
1953
1990
|
headerCellWrapperStyle: le,
|
|
1954
|
-
bodyClassName:
|
|
1955
|
-
bodyStyle:
|
|
1991
|
+
bodyClassName: Q,
|
|
1992
|
+
bodyStyle: ie,
|
|
1956
1993
|
bodyRowClassName: ge,
|
|
1957
1994
|
bodyRowStyle: ae,
|
|
1958
|
-
bodyCellClassName:
|
|
1959
|
-
bodyCellStyle:
|
|
1995
|
+
bodyCellClassName: H,
|
|
1996
|
+
bodyCellStyle: oe,
|
|
1960
1997
|
bodyCellWrapperClassName: se,
|
|
1961
|
-
bodyCellWrapperStyle:
|
|
1962
|
-
headerGroupRowClassName:
|
|
1963
|
-
headerGroupRowStyle:
|
|
1964
|
-
headerGroupCellClassName:
|
|
1965
|
-
headerGroupCellStyle:
|
|
1966
|
-
headerGroupCellWrapperClassName:
|
|
1967
|
-
headerGroupCellWrapperStyle:
|
|
1968
|
-
paginationContainerClassName:
|
|
1969
|
-
paginationContainerStyle:
|
|
1970
|
-
noDataRender:
|
|
1971
|
-
recalculateRowHeight:
|
|
1972
|
-
sorting:
|
|
1973
|
-
defaultSorting:
|
|
1974
|
-
resizeThrottle:
|
|
1998
|
+
bodyCellWrapperStyle: ce,
|
|
1999
|
+
headerGroupRowClassName: re,
|
|
2000
|
+
headerGroupRowStyle: R,
|
|
2001
|
+
headerGroupCellClassName: J,
|
|
2002
|
+
headerGroupCellStyle: i,
|
|
2003
|
+
headerGroupCellWrapperClassName: v,
|
|
2004
|
+
headerGroupCellWrapperStyle: _,
|
|
2005
|
+
paginationContainerClassName: s,
|
|
2006
|
+
paginationContainerStyle: y,
|
|
2007
|
+
noDataRender: C,
|
|
2008
|
+
recalculateRowHeight: g,
|
|
2009
|
+
sorting: c,
|
|
2010
|
+
defaultSorting: E,
|
|
2011
|
+
resizeThrottle: N
|
|
1975
2012
|
}
|
|
1976
2013
|
),
|
|
1977
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${s}`, style: y, children: x && /* @__PURE__ */ o.jsx(tt, { config: x }) })
|
|
1978
2015
|
] });
|
|
1979
2016
|
}
|
|
1980
|
-
function
|
|
2017
|
+
function rt(t) {
|
|
1981
2018
|
const {
|
|
1982
2019
|
dataSource: r,
|
|
1983
2020
|
preset: d,
|
|
1984
|
-
config:
|
|
2021
|
+
config: l,
|
|
1985
2022
|
rowKey: k,
|
|
1986
|
-
loading:
|
|
1987
|
-
stickyHeader:
|
|
2023
|
+
loading: x,
|
|
2024
|
+
stickyHeader: j,
|
|
1988
2025
|
resizeable: D,
|
|
1989
|
-
draggableRows:
|
|
1990
|
-
draggableColumns:
|
|
2026
|
+
draggableRows: u,
|
|
2027
|
+
draggableColumns: F,
|
|
1991
2028
|
scrollContainerRef: S,
|
|
1992
|
-
onResize:
|
|
1993
|
-
onSort:
|
|
1994
|
-
onRowReorder:
|
|
1995
|
-
onColumnReorder:
|
|
1996
|
-
customCellRender:
|
|
1997
|
-
sortIcon:
|
|
1998
|
-
expandIcon:
|
|
2029
|
+
onResize: $,
|
|
2030
|
+
onSort: V,
|
|
2031
|
+
onRowReorder: U,
|
|
2032
|
+
onColumnReorder: X,
|
|
2033
|
+
customCellRender: G,
|
|
2034
|
+
sortIcon: C,
|
|
2035
|
+
expandIcon: b,
|
|
1999
2036
|
treeMode: n,
|
|
2000
|
-
expandedRowKeys:
|
|
2001
|
-
defaultExpandedRowKeys:
|
|
2002
|
-
onExpandedRowsChange:
|
|
2003
|
-
indentSize:
|
|
2004
|
-
className:
|
|
2005
|
-
style:
|
|
2006
|
-
headerClassName:
|
|
2007
|
-
headerStyle:
|
|
2008
|
-
headerCellClassName:
|
|
2037
|
+
expandedRowKeys: g,
|
|
2038
|
+
defaultExpandedRowKeys: c,
|
|
2039
|
+
onExpandedRowsChange: E,
|
|
2040
|
+
indentSize: O,
|
|
2041
|
+
className: m,
|
|
2042
|
+
style: p,
|
|
2043
|
+
headerClassName: h,
|
|
2044
|
+
headerStyle: A,
|
|
2045
|
+
headerCellClassName: L,
|
|
2009
2046
|
headerCellStyle: w,
|
|
2010
|
-
headerRowClassName:
|
|
2011
|
-
headerRowStyle:
|
|
2012
|
-
headerCellWrapperClassName:
|
|
2047
|
+
headerRowClassName: P,
|
|
2048
|
+
headerRowStyle: z,
|
|
2049
|
+
headerCellWrapperClassName: B,
|
|
2013
2050
|
headerCellWrapperStyle: ne,
|
|
2014
|
-
bodyClassName:
|
|
2015
|
-
bodyStyle:
|
|
2051
|
+
bodyClassName: Y,
|
|
2052
|
+
bodyStyle: K,
|
|
2016
2053
|
bodyRowClassName: te,
|
|
2017
2054
|
bodyRowStyle: le,
|
|
2018
|
-
bodyCellClassName:
|
|
2019
|
-
bodyCellStyle:
|
|
2055
|
+
bodyCellClassName: Q,
|
|
2056
|
+
bodyCellStyle: ie,
|
|
2020
2057
|
bodyCellWrapperClassName: ge,
|
|
2021
2058
|
bodyCellWrapperStyle: ae,
|
|
2022
|
-
headerGroupRowClassName:
|
|
2023
|
-
headerGroupRowStyle:
|
|
2059
|
+
headerGroupRowClassName: H,
|
|
2060
|
+
headerGroupRowStyle: oe,
|
|
2024
2061
|
headerGroupCellClassName: se,
|
|
2025
|
-
headerGroupCellStyle:
|
|
2026
|
-
headerGroupCellWrapperClassName:
|
|
2027
|
-
headerGroupCellWrapperStyle:
|
|
2028
|
-
noDataRender:
|
|
2029
|
-
recalculateRowHeight:
|
|
2030
|
-
sorting:
|
|
2031
|
-
defaultSorting:
|
|
2032
|
-
resizeThrottle:
|
|
2062
|
+
headerGroupCellStyle: ce,
|
|
2063
|
+
headerGroupCellWrapperClassName: re,
|
|
2064
|
+
headerGroupCellWrapperStyle: R,
|
|
2065
|
+
noDataRender: J,
|
|
2066
|
+
recalculateRowHeight: i,
|
|
2067
|
+
sorting: v,
|
|
2068
|
+
defaultSorting: _,
|
|
2069
|
+
resizeThrottle: s
|
|
2033
2070
|
} = t;
|
|
2034
|
-
return /* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
|
|
2071
|
+
return /* @__PURE__ */ o.jsxs("table", { className: `radar-table ${d || ""} ${m}`, style: p, children: [
|
|
2072
|
+
/* @__PURE__ */ o.jsx(
|
|
2073
|
+
Yt,
|
|
2037
2074
|
{
|
|
2038
|
-
draggableColumns:
|
|
2039
|
-
config:
|
|
2040
|
-
onSort:
|
|
2075
|
+
draggableColumns: F,
|
|
2076
|
+
config: l,
|
|
2077
|
+
onSort: V,
|
|
2041
2078
|
resizeable: D,
|
|
2042
|
-
onResize:
|
|
2043
|
-
sortIcon:
|
|
2079
|
+
onResize: $,
|
|
2080
|
+
sortIcon: C,
|
|
2044
2081
|
preset: d,
|
|
2045
|
-
headerClassName:
|
|
2046
|
-
headerStyle:
|
|
2047
|
-
headerRowClassName:
|
|
2048
|
-
headerRowStyle:
|
|
2049
|
-
headerCellClassName:
|
|
2082
|
+
headerClassName: h,
|
|
2083
|
+
headerStyle: A,
|
|
2084
|
+
headerRowClassName: P,
|
|
2085
|
+
headerRowStyle: z,
|
|
2086
|
+
headerCellClassName: L,
|
|
2050
2087
|
headerCellStyle: w,
|
|
2051
|
-
headerCellWrapperClassName:
|
|
2088
|
+
headerCellWrapperClassName: B,
|
|
2052
2089
|
headerCellWrapperStyle: ne,
|
|
2053
|
-
headerGroupRowClassName:
|
|
2054
|
-
headerGroupRowStyle:
|
|
2090
|
+
headerGroupRowClassName: H,
|
|
2091
|
+
headerGroupRowStyle: oe,
|
|
2055
2092
|
headerGroupCellClassName: se,
|
|
2056
|
-
headerGroupCellStyle:
|
|
2057
|
-
headerGroupCellWrapperClassName:
|
|
2058
|
-
headerGroupCellWrapperStyle:
|
|
2059
|
-
stickyHeader:
|
|
2093
|
+
headerGroupCellStyle: ce,
|
|
2094
|
+
headerGroupCellWrapperClassName: re,
|
|
2095
|
+
headerGroupCellWrapperStyle: R,
|
|
2096
|
+
stickyHeader: j,
|
|
2060
2097
|
scrollContainerRef: S,
|
|
2061
|
-
onColumnReorder:
|
|
2062
|
-
sorting:
|
|
2063
|
-
defaultSorting:
|
|
2064
|
-
resizeThrottle:
|
|
2098
|
+
onColumnReorder: X,
|
|
2099
|
+
sorting: v,
|
|
2100
|
+
defaultSorting: _,
|
|
2101
|
+
resizeThrottle: s
|
|
2065
2102
|
}
|
|
2066
2103
|
),
|
|
2067
|
-
/* @__PURE__ */
|
|
2068
|
-
|
|
2104
|
+
/* @__PURE__ */ o.jsx(
|
|
2105
|
+
qt,
|
|
2069
2106
|
{
|
|
2070
|
-
draggableRows:
|
|
2071
|
-
onRowReorder:
|
|
2107
|
+
draggableRows: u,
|
|
2108
|
+
onRowReorder: U,
|
|
2072
2109
|
dataSource: r,
|
|
2073
|
-
config:
|
|
2110
|
+
config: l,
|
|
2074
2111
|
rowKey: k,
|
|
2075
|
-
loading:
|
|
2112
|
+
loading: x,
|
|
2076
2113
|
preset: d,
|
|
2077
|
-
customCellRender:
|
|
2078
|
-
expandIcon:
|
|
2114
|
+
customCellRender: G,
|
|
2115
|
+
expandIcon: b,
|
|
2079
2116
|
treeMode: n,
|
|
2080
|
-
expandedRowKeys:
|
|
2081
|
-
defaultExpandedRowKeys:
|
|
2082
|
-
onExpandedRowsChange:
|
|
2083
|
-
indentSize:
|
|
2084
|
-
bodyClassName:
|
|
2085
|
-
bodyStyle:
|
|
2117
|
+
expandedRowKeys: g,
|
|
2118
|
+
defaultExpandedRowKeys: c,
|
|
2119
|
+
onExpandedRowsChange: E,
|
|
2120
|
+
indentSize: O,
|
|
2121
|
+
bodyClassName: Y,
|
|
2122
|
+
bodyStyle: K,
|
|
2086
2123
|
bodyRowClassName: te,
|
|
2087
2124
|
bodyRowStyle: le,
|
|
2088
|
-
bodyCellClassName:
|
|
2089
|
-
bodyCellStyle:
|
|
2125
|
+
bodyCellClassName: Q,
|
|
2126
|
+
bodyCellStyle: ie,
|
|
2090
2127
|
bodyCellWrapperClassName: ge,
|
|
2091
2128
|
bodyCellWrapperStyle: ae,
|
|
2092
|
-
noDataRender:
|
|
2129
|
+
noDataRender: J,
|
|
2093
2130
|
scrollContainerRef: S,
|
|
2094
|
-
recalculateRowHeight:
|
|
2131
|
+
recalculateRowHeight: i
|
|
2095
2132
|
}
|
|
2096
2133
|
)
|
|
2097
2134
|
] });
|
|
2098
2135
|
}
|
|
2099
|
-
const
|
|
2136
|
+
const nt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
2100
2137
|
if (r === "h1")
|
|
2101
|
-
return /* @__PURE__ */
|
|
2138
|
+
return /* @__PURE__ */ o.jsx(
|
|
2102
2139
|
"h1",
|
|
2103
2140
|
{
|
|
2104
2141
|
className: "radar-title radar-title_h1",
|
|
@@ -2107,7 +2144,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2107
2144
|
}
|
|
2108
2145
|
);
|
|
2109
2146
|
if (r === "h2")
|
|
2110
|
-
return /* @__PURE__ */
|
|
2147
|
+
return /* @__PURE__ */ o.jsx(
|
|
2111
2148
|
"h2",
|
|
2112
2149
|
{
|
|
2113
2150
|
className: "radar-title radar-title_h1",
|
|
@@ -2116,7 +2153,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2116
2153
|
}
|
|
2117
2154
|
);
|
|
2118
2155
|
if (r === "h3")
|
|
2119
|
-
return /* @__PURE__ */
|
|
2156
|
+
return /* @__PURE__ */ o.jsx(
|
|
2120
2157
|
"h3",
|
|
2121
2158
|
{
|
|
2122
2159
|
className: "radar-title radar-title_h1",
|
|
@@ -2125,7 +2162,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2125
2162
|
}
|
|
2126
2163
|
);
|
|
2127
2164
|
if (r === "h4")
|
|
2128
|
-
return /* @__PURE__ */
|
|
2165
|
+
return /* @__PURE__ */ o.jsx(
|
|
2129
2166
|
"h4",
|
|
2130
2167
|
{
|
|
2131
2168
|
className: "radar-title radar-title_h1",
|
|
@@ -2134,7 +2171,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2134
2171
|
}
|
|
2135
2172
|
);
|
|
2136
2173
|
if (r === "h5")
|
|
2137
|
-
return /* @__PURE__ */
|
|
2174
|
+
return /* @__PURE__ */ o.jsx(
|
|
2138
2175
|
"h5",
|
|
2139
2176
|
{
|
|
2140
2177
|
className: "radar-title radar-title_h1",
|
|
@@ -2143,7 +2180,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2143
2180
|
}
|
|
2144
2181
|
);
|
|
2145
2182
|
if (r === "h6")
|
|
2146
|
-
return /* @__PURE__ */
|
|
2183
|
+
return /* @__PURE__ */ o.jsx(
|
|
2147
2184
|
"h6",
|
|
2148
2185
|
{
|
|
2149
2186
|
className: "radar-title radar-title_h1",
|
|
@@ -2151,9 +2188,9 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2151
2188
|
children: t
|
|
2152
2189
|
}
|
|
2153
2190
|
);
|
|
2154
|
-
},
|
|
2191
|
+
}, Kt = ({ children: t, tagType: r = "h2", ...d }) => {
|
|
2155
2192
|
if (r === "h1")
|
|
2156
|
-
return /* @__PURE__ */
|
|
2193
|
+
return /* @__PURE__ */ o.jsx(
|
|
2157
2194
|
"h1",
|
|
2158
2195
|
{
|
|
2159
2196
|
className: "radar-title radar-title_h2",
|
|
@@ -2162,7 +2199,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2162
2199
|
}
|
|
2163
2200
|
);
|
|
2164
2201
|
if (r === "h2")
|
|
2165
|
-
return /* @__PURE__ */
|
|
2202
|
+
return /* @__PURE__ */ o.jsx(
|
|
2166
2203
|
"h2",
|
|
2167
2204
|
{
|
|
2168
2205
|
className: "radar-title radar-title_h2",
|
|
@@ -2171,7 +2208,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2171
2208
|
}
|
|
2172
2209
|
);
|
|
2173
2210
|
if (r === "h3")
|
|
2174
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ o.jsx(
|
|
2175
2212
|
"h3",
|
|
2176
2213
|
{
|
|
2177
2214
|
className: "radar-title radar-title_h2",
|
|
@@ -2180,7 +2217,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2180
2217
|
}
|
|
2181
2218
|
);
|
|
2182
2219
|
if (r === "h4")
|
|
2183
|
-
return /* @__PURE__ */
|
|
2220
|
+
return /* @__PURE__ */ o.jsx(
|
|
2184
2221
|
"h4",
|
|
2185
2222
|
{
|
|
2186
2223
|
className: "radar-title radar-title_h2",
|
|
@@ -2189,7 +2226,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2189
2226
|
}
|
|
2190
2227
|
);
|
|
2191
2228
|
if (r === "h5")
|
|
2192
|
-
return /* @__PURE__ */
|
|
2229
|
+
return /* @__PURE__ */ o.jsx(
|
|
2193
2230
|
"h5",
|
|
2194
2231
|
{
|
|
2195
2232
|
className: "radar-title radar-title_h2",
|
|
@@ -2198,7 +2235,7 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2198
2235
|
}
|
|
2199
2236
|
);
|
|
2200
2237
|
if (r === "h6")
|
|
2201
|
-
return /* @__PURE__ */
|
|
2238
|
+
return /* @__PURE__ */ o.jsx(
|
|
2202
2239
|
"h6",
|
|
2203
2240
|
{
|
|
2204
2241
|
className: "radar-title radar-title_h2",
|
|
@@ -2206,12 +2243,12 @@ const rt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
|
2206
2243
|
children: t
|
|
2207
2244
|
}
|
|
2208
2245
|
);
|
|
2209
|
-
},
|
|
2246
|
+
}, nr = Object.assign(nt, { H1: nt, H2: Kt }), at = ({ children: t, fontStyle: r = "medium", ...d }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_m radar-text_${r}`, ...d, children: t }), Xt = ({ children: t, fontStyle: r = "medium", ...d }) => /* @__PURE__ */ o.jsx("p", { className: `radar-text radar-text_s radar-text_${r}`, ...d, children: t }), ar = Object.assign(at, { M: at, S: Xt });
|
|
2210
2247
|
export {
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2248
|
+
Bt as HeaderCell,
|
|
2249
|
+
tt as Pagination,
|
|
2250
|
+
ar as RadarText,
|
|
2251
|
+
nr as RadarTitle,
|
|
2252
|
+
rr as Table,
|
|
2253
|
+
At as Tooltip
|
|
2217
2254
|
};
|