radar-ui 1.1.23 → 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 +1483 -1130
- package/package.json +1 -1
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
|
|
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 Pe = { exports: {} }, xe = {};
|
|
|
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 =
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
F !== void 0 && (
|
|
28
|
-
for (
|
|
29
|
-
if (
|
|
30
|
-
return { $$typeof:
|
|
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 be = {};
|
|
|
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 =
|
|
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
|
|
52
|
-
return typeof
|
|
51
|
+
var a = X && e[X] || e[G];
|
|
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
|
|
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
|
|
65
|
-
|
|
66
|
-
var
|
|
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
|
|
82
|
-
var
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
85
|
-
var
|
|
86
|
-
return
|
|
81
|
+
function L(e, a, f) {
|
|
82
|
+
var T = e.displayName;
|
|
83
|
+
if (T)
|
|
84
|
+
return T;
|
|
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,36 +96,36 @@ function Ft() {
|
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
|
-
case d:
|
|
100
|
-
return "Fragment";
|
|
101
99
|
case l:
|
|
100
|
+
return "Fragment";
|
|
101
|
+
case d:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case x:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case
|
|
105
|
+
case k:
|
|
106
106
|
return "StrictMode";
|
|
107
107
|
case F:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case S:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return w(
|
|
117
|
-
case
|
|
118
|
-
var
|
|
119
|
-
return w(
|
|
120
|
-
case
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
var
|
|
124
|
-
return
|
|
125
|
-
case
|
|
126
|
-
var
|
|
114
|
+
case D:
|
|
115
|
+
var a = e;
|
|
116
|
+
return w(a) + ".Consumer";
|
|
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
|
+
var T = e.displayName || null;
|
|
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,18 +133,18 @@ function Ft() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var
|
|
137
|
-
function
|
|
136
|
+
var z = Object.assign, B = 0, ne, Y, K, te, le, Q, ie;
|
|
137
|
+
function ge() {
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
function
|
|
139
|
+
ge.__reactDisabledLog = !0;
|
|
140
|
+
function ae() {
|
|
141
141
|
{
|
|
142
142
|
if (B === 0) {
|
|
143
|
-
|
|
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,
|
|
147
|
-
value:
|
|
147
|
+
value: ge,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
@@ -160,7 +160,7 @@ function Ft() {
|
|
|
160
160
|
B++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function H() {
|
|
164
164
|
{
|
|
165
165
|
if (B--, B === 0) {
|
|
166
166
|
var e = {
|
|
@@ -169,320 +169,320 @@ function Ft() {
|
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
|
-
log:
|
|
173
|
-
value:
|
|
172
|
+
log: z({}, e, {
|
|
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:
|
|
182
|
-
value:
|
|
181
|
+
error: z({}, e, {
|
|
182
|
+
value: te
|
|
183
183
|
}),
|
|
184
|
-
group:
|
|
185
|
-
value:
|
|
184
|
+
group: z({}, e, {
|
|
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
|
-
if (
|
|
201
|
+
if (se === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var
|
|
206
|
-
|
|
204
|
+
} catch (Z) {
|
|
205
|
+
var T = Z.stack.trim().match(/\n( *(at )?)/);
|
|
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
|
-
var
|
|
226
|
-
|
|
227
|
-
var
|
|
225
|
+
var T;
|
|
226
|
+
re = !0;
|
|
227
|
+
var Z = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
|
-
var
|
|
230
|
-
|
|
229
|
+
var ee;
|
|
230
|
+
ee = oe.current, oe.current = null, ae();
|
|
231
231
|
try {
|
|
232
|
-
if (
|
|
233
|
-
var
|
|
232
|
+
if (a) {
|
|
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(
|
|
243
|
-
} catch (
|
|
244
|
-
|
|
242
|
+
Reflect.construct(M, []);
|
|
243
|
+
} catch (ye) {
|
|
244
|
+
T = ye;
|
|
245
245
|
}
|
|
246
|
-
Reflect.construct(e, [],
|
|
246
|
+
Reflect.construct(e, [], M);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
|
-
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
249
|
+
M.call();
|
|
250
|
+
} catch (ye) {
|
|
251
|
+
T = ye;
|
|
252
252
|
}
|
|
253
|
-
e.call(
|
|
253
|
+
e.call(M.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
|
-
} catch (
|
|
259
|
-
|
|
258
|
+
} catch (ye) {
|
|
259
|
+
T = ye;
|
|
260
260
|
}
|
|
261
261
|
e();
|
|
262
262
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var
|
|
266
|
-
`),
|
|
267
|
-
`),
|
|
268
|
-
|
|
269
|
-
for (;
|
|
270
|
-
if (
|
|
271
|
-
if (
|
|
263
|
+
} catch (ye) {
|
|
264
|
+
if (ye && T && typeof ye.stack == "string") {
|
|
265
|
+
for (var W = ye.stack.split(`
|
|
266
|
+
`), ve = T.stack.split(`
|
|
267
|
+
`), de = W.length - 1, he = ve.length - 1; de >= 1 && he >= 0 && W[de] !== ve[he]; )
|
|
268
|
+
he--;
|
|
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
|
-
` +
|
|
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
|
|
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
|
|
292
|
-
var
|
|
293
|
-
return !!(
|
|
291
|
+
function _(e) {
|
|
292
|
+
var a = e.prototype;
|
|
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
303
|
case F:
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
304
|
+
return ce("Suspense");
|
|
305
|
+
case S:
|
|
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
|
|
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
|
|
325
|
-
function
|
|
324
|
+
var y = Object.prototype.hasOwnProperty, N = {}, I = b.ReactDebugCurrentFrame;
|
|
325
|
+
function pe(e) {
|
|
326
326
|
if (e) {
|
|
327
|
-
var
|
|
328
|
-
|
|
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
|
|
332
|
+
function ue(e, a, f, T, Z) {
|
|
333
333
|
{
|
|
334
|
-
var
|
|
335
|
-
for (var
|
|
336
|
-
if (
|
|
337
|
-
var
|
|
334
|
+
var ee = Function.call.bind(y);
|
|
335
|
+
for (var M in e)
|
|
336
|
+
if (ee(e, M)) {
|
|
337
|
+
var W = void 0;
|
|
338
338
|
try {
|
|
339
|
-
if (typeof e[
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
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
|
+
throw ve.name = "Invariant Violation", ve;
|
|
342
342
|
}
|
|
343
|
-
|
|
344
|
-
} catch (
|
|
345
|
-
|
|
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
|
-
|
|
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
|
}
|
|
351
|
-
var
|
|
352
|
-
function
|
|
353
|
-
return
|
|
351
|
+
var Ee = Array.isArray;
|
|
352
|
+
function fe(e) {
|
|
353
|
+
return Ee(e);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Se(e) {
|
|
356
356
|
{
|
|
357
|
-
var
|
|
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
|
-
function
|
|
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
|
-
function
|
|
372
|
-
if (
|
|
373
|
-
return n("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
371
|
+
function Te(e) {
|
|
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)), _e(e);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
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 (
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
380
|
+
}, me, $e;
|
|
381
|
+
function Fe(e) {
|
|
382
|
+
if (y.call(e, "ref")) {
|
|
383
|
+
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
|
+
if (a && a.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
if (
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
389
|
+
function ot(e) {
|
|
390
|
+
if (y.call(e, "key")) {
|
|
391
|
+
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
|
+
if (a && a.isReactWarning)
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
395
|
return e.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function st(e,
|
|
398
|
-
typeof e.ref == "string" &&
|
|
397
|
+
function st(e, a) {
|
|
398
|
+
typeof e.ref == "string" && De.current;
|
|
399
399
|
}
|
|
400
|
-
function lt(e,
|
|
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
|
-
function ct(e,
|
|
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
|
|
423
|
-
var
|
|
422
|
+
var dt = function(e, a, f, T, Z, ee, M) {
|
|
423
|
+
var W = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: r,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
|
-
key:
|
|
429
|
-
ref:
|
|
430
|
-
props:
|
|
428
|
+
key: a,
|
|
429
|
+
ref: f,
|
|
430
|
+
props: M,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: ee
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return W._store = {}, Object.defineProperty(W._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(W, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
443
|
+
value: T
|
|
444
|
+
}), Object.defineProperty(W, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
value: Z
|
|
449
|
+
}), Object.freeze && (Object.freeze(W.props), Object.freeze(W)), W;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function ut(e, a, f, T, Z) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
for (
|
|
456
|
-
|
|
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
|
+
for (ee in a)
|
|
456
|
+
y.call(a, ee) && !Ie.hasOwnProperty(ee) && (M[ee] = a[ee]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (
|
|
460
|
-
|
|
458
|
+
var de = e.defaultProps;
|
|
459
|
+
for (ee in de)
|
|
460
|
+
M[ee] === void 0 && (M[ee] = de[ee]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
463
|
-
var
|
|
464
|
-
|
|
462
|
+
if (W || ve) {
|
|
463
|
+
var he = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
W && lt(M, he), ve && ct(M, he);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return dt(e, W, ve, Z, T, De.current, M);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
469
|
+
var Ae = b.ReactCurrentOwner, Be = b.ReactDebugCurrentFrame;
|
|
470
|
+
function ke(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var
|
|
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
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
477
|
+
var Me;
|
|
478
|
+
Me = !1;
|
|
479
|
+
function Ve(e) {
|
|
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,622 +494,622 @@ 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
|
|
501
|
-
if (!
|
|
502
|
-
var
|
|
503
|
-
|
|
500
|
+
var a = Ye();
|
|
501
|
+
if (!a) {
|
|
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
|
-
return
|
|
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
|
-
|
|
519
|
-
var
|
|
520
|
-
e && e._owner && e._owner !==
|
|
518
|
+
He[f] = !0;
|
|
519
|
+
var T = "";
|
|
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
|
-
if (
|
|
528
|
-
for (var
|
|
529
|
-
var
|
|
530
|
-
|
|
527
|
+
if (fe(e))
|
|
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
|
|
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
|
}
|
|
542
542
|
function gt(e) {
|
|
543
543
|
{
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
544
|
+
var a = e.type;
|
|
545
|
+
if (a == null || typeof a == "string")
|
|
546
546
|
return;
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
|
|
550
|
-
else if (typeof
|
|
547
|
+
var f;
|
|
548
|
+
if (typeof a == "function")
|
|
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
|
-
|
|
553
|
-
|
|
552
|
+
a.$$typeof === $))
|
|
553
|
+
f = a.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
|
-
if (
|
|
557
|
-
var
|
|
558
|
-
|
|
559
|
-
} else if (
|
|
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
|
-
typeof
|
|
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
|
-
function
|
|
567
|
+
function pt(e) {
|
|
568
568
|
{
|
|
569
|
-
for (var
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
|
|
569
|
+
for (var a = Object.keys(e.props), f = 0; f < a.length; f++) {
|
|
570
|
+
var T = a[f];
|
|
571
|
+
if (T !== "children" && T !== "key") {
|
|
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;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (
|
|
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 (!
|
|
584
|
-
var
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
586
|
-
var
|
|
587
|
-
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
582
|
+
var M = A(e);
|
|
583
|
+
if (!M) {
|
|
584
|
+
var W = "";
|
|
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
|
+
var ve = ft();
|
|
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
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
594
|
-
if (
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
if (
|
|
599
|
-
for (var
|
|
600
|
-
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
var he = ut(e, a, f, Z, ee);
|
|
592
|
+
if (he == null)
|
|
593
|
+
return he;
|
|
594
|
+
if (M) {
|
|
595
|
+
var be = a.children;
|
|
596
|
+
if (be !== void 0)
|
|
597
|
+
if (T)
|
|
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
|
|
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 (!
|
|
612
|
-
var
|
|
610
|
+
}), ze = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!Ge[je + ze]) {
|
|
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
|
|
625
|
-
return
|
|
624
|
+
function vt(e, a, f) {
|
|
625
|
+
return qe(e, a, f, !0);
|
|
626
626
|
}
|
|
627
|
-
function yt(e,
|
|
628
|
-
return
|
|
627
|
+
function yt(e, a, f) {
|
|
628
|
+
return qe(e, a, f, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
}()),
|
|
630
|
+
var xt = yt, bt = vt;
|
|
631
|
+
Oe.Fragment = l, Oe.jsx = xt, Oe.jsxs = bt;
|
|
632
|
+
}()), Oe;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var o =
|
|
636
|
-
const
|
|
637
|
-
let
|
|
638
|
-
return function(...
|
|
639
|
-
const
|
|
640
|
-
t.apply(this,
|
|
641
|
-
|
|
642
|
-
},
|
|
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
|
+
d = !1;
|
|
642
|
+
}, r);
|
|
643
643
|
};
|
|
644
|
-
if (!
|
|
645
|
-
|
|
644
|
+
if (!d) {
|
|
645
|
+
D();
|
|
646
646
|
return;
|
|
647
647
|
}
|
|
648
|
-
!
|
|
648
|
+
!k && j - l >= r && (k = !0, requestAnimationFrame(() => D()));
|
|
649
649
|
};
|
|
650
|
-
},
|
|
650
|
+
}, Ft = ({
|
|
651
651
|
column: t,
|
|
652
|
-
currWidth:
|
|
653
|
-
currMinWidth:
|
|
654
|
-
onResize:
|
|
655
|
-
scrollContainerRef:
|
|
656
|
-
resizeThrottle:
|
|
652
|
+
currWidth: r,
|
|
653
|
+
currMinWidth: d,
|
|
654
|
+
onResize: l,
|
|
655
|
+
scrollContainerRef: k,
|
|
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
|
|
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
|
-
return
|
|
677
|
-
|
|
678
|
-
}, [
|
|
679
|
-
document.removeEventListener("mousemove",
|
|
680
|
-
}, [
|
|
676
|
+
return Ne(() => {
|
|
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
687
|
children: /* @__PURE__ */ o.jsx("div", {})
|
|
688
688
|
}
|
|
689
689
|
);
|
|
690
|
-
}, At = ({ text: t, children:
|
|
691
|
-
const [
|
|
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
698
|
return /* @__PURE__ */ o.jsxs(
|
|
699
699
|
"button",
|
|
700
700
|
{
|
|
701
|
-
ref:
|
|
701
|
+
ref: j,
|
|
702
702
|
className: "radar-table__tooltip-button",
|
|
703
|
-
onMouseOver:
|
|
704
|
-
onMouseOut: () =>
|
|
703
|
+
onMouseOver: D,
|
|
704
|
+
onMouseOut: () => l(!1),
|
|
705
705
|
children: [
|
|
706
|
-
|
|
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
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
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
710
|
/* @__PURE__ */ o.jsx(
|
|
711
711
|
"div",
|
|
712
712
|
{
|
|
713
|
-
className: `radar-table__tooltip-text ${
|
|
713
|
+
className: `radar-table__tooltip-text ${d ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${k}`,
|
|
714
714
|
children: t
|
|
715
715
|
}
|
|
716
716
|
)
|
|
717
717
|
]
|
|
718
718
|
}
|
|
719
719
|
);
|
|
720
|
-
},
|
|
721
|
-
const t =
|
|
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
|
-
fullConfig:
|
|
730
|
-
onColumnReorder:
|
|
729
|
+
fullConfig: r,
|
|
730
|
+
onColumnReorder: d
|
|
731
731
|
}) {
|
|
732
|
-
const [
|
|
733
|
-
|
|
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
|
-
|
|
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
|
-
}, []),
|
|
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
|
-
}, []), F =
|
|
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 = F(
|
|
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
|
-
if (
|
|
783
|
-
const
|
|
784
|
-
if (!
|
|
782
|
+
if (D(r)) {
|
|
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
|
-
}, [
|
|
816
|
-
var B,
|
|
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
|
|
822
|
-
|
|
823
|
-
const
|
|
824
|
-
return
|
|
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
|
|
833
|
-
for (const
|
|
834
|
-
if (
|
|
835
|
-
return
|
|
836
|
-
if (
|
|
837
|
-
const
|
|
838
|
-
if (
|
|
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
|
+
if (ge) return ge;
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
return null;
|
|
842
|
-
},
|
|
842
|
+
}, le = te(Y);
|
|
843
843
|
return {
|
|
844
|
-
container: (
|
|
845
|
-
parentObj:
|
|
844
|
+
container: (le == null ? void 0 : le.children) || Y,
|
|
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
|
-
}, [
|
|
867
|
-
const
|
|
868
|
-
|
|
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
|
-
}, [
|
|
888
|
-
const { active:
|
|
889
|
-
if (document.body.style.cursor = "",
|
|
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 (!
|
|
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
|
-
|
|
902
|
-
|
|
898
|
+
if (console.log("✅ Valid drop:", { dragData: g, dropData: c }), d) {
|
|
899
|
+
const E = $(
|
|
900
|
+
g.columnKey,
|
|
901
|
+
c.columnKey,
|
|
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
|
-
},
|
|
910
|
+
}, d(E), console.log("🔄 Column reorder executed");
|
|
911
911
|
}
|
|
912
|
-
}, [
|
|
913
|
-
activeColumn:
|
|
914
|
-
isValidDropZone:
|
|
912
|
+
}, [S, d, $, r]), G = {
|
|
913
|
+
activeColumn: l,
|
|
914
|
+
isValidDropZone: S
|
|
915
915
|
};
|
|
916
|
-
return /* @__PURE__ */ o.jsx(
|
|
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__ */ o.jsx(Ot, { children:
|
|
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
|
-
|
|
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
|
-
const
|
|
938
|
-
var
|
|
939
|
-
return typeof window < "u" && ((
|
|
940
|
-
},
|
|
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
941
|
if (typeof document > "u") return null;
|
|
942
|
-
const
|
|
943
|
-
return
|
|
942
|
+
const r = `th[data-column-key="${zt(t)}"]`, d = document.querySelector(r);
|
|
943
|
+
return d ? d.getBoundingClientRect().width : null;
|
|
944
944
|
};
|
|
945
|
-
function
|
|
945
|
+
function Bt({
|
|
946
946
|
column: t,
|
|
947
|
-
index:
|
|
948
|
-
config:
|
|
949
|
-
fullConfig:
|
|
950
|
-
sorting:
|
|
951
|
-
onSort:
|
|
952
|
-
onResize:
|
|
953
|
-
sortIcon:
|
|
954
|
-
resizeable:
|
|
947
|
+
index: r,
|
|
948
|
+
config: d,
|
|
949
|
+
fullConfig: l,
|
|
950
|
+
sorting: k,
|
|
951
|
+
onSort: x,
|
|
952
|
+
onResize: j,
|
|
953
|
+
sortIcon: D,
|
|
954
|
+
resizeable: u,
|
|
955
955
|
draggableColumns: F,
|
|
956
|
-
preset:
|
|
957
|
-
headerCellClassName:
|
|
958
|
-
headerCellStyle:
|
|
959
|
-
headerCellWrapperClassName:
|
|
960
|
-
headerCellWrapperStyle:
|
|
961
|
-
stickyHeader:
|
|
962
|
-
scrollContainerRef:
|
|
963
|
-
resizeThrottle:
|
|
956
|
+
preset: S,
|
|
957
|
+
headerCellClassName: $,
|
|
958
|
+
headerCellStyle: V,
|
|
959
|
+
headerCellWrapperClassName: U,
|
|
960
|
+
headerCellWrapperStyle: X,
|
|
961
|
+
stickyHeader: G,
|
|
962
|
+
scrollContainerRef: C,
|
|
963
|
+
resizeThrottle: b
|
|
964
964
|
}) {
|
|
965
|
-
var
|
|
965
|
+
var re;
|
|
966
966
|
if (t.hidden)
|
|
967
967
|
return null;
|
|
968
|
-
const { activeColumn: n, isValidDropZone:
|
|
969
|
-
|
|
970
|
-
const
|
|
971
|
-
if (!
|
|
972
|
-
const
|
|
973
|
-
for (const
|
|
974
|
-
if (
|
|
975
|
-
return
|
|
976
|
-
if (
|
|
977
|
-
const
|
|
978
|
-
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;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
return null;
|
|
982
982
|
};
|
|
983
|
-
return
|
|
984
|
-
}, [
|
|
985
|
-
if (!
|
|
986
|
-
const
|
|
987
|
-
for (const
|
|
988
|
-
if (
|
|
989
|
-
return
|
|
990
|
-
if (
|
|
991
|
-
const
|
|
992
|
-
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;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
return -1;
|
|
996
996
|
};
|
|
997
|
-
return
|
|
998
|
-
}, [
|
|
999
|
-
attributes:
|
|
997
|
+
return J(l, R);
|
|
998
|
+
}, [l])(t.key), {
|
|
999
|
+
attributes: L,
|
|
1000
1000
|
listeners: w,
|
|
1001
|
-
setNodeRef:
|
|
1002
|
-
isDragging:
|
|
1003
|
-
} =
|
|
1001
|
+
setNodeRef: P,
|
|
1002
|
+
isDragging: z
|
|
1003
|
+
} = Pt({
|
|
1004
1004
|
id: `column-${t.key}`,
|
|
1005
1005
|
data: {
|
|
1006
1006
|
type: "table-column",
|
|
1007
1007
|
columnKey: t.key,
|
|
1008
|
-
isFixed:
|
|
1009
|
-
parentKey:
|
|
1010
|
-
level:
|
|
1011
|
-
index:
|
|
1012
|
-
isLeaf:
|
|
1008
|
+
isFixed: p,
|
|
1009
|
+
parentKey: m == null ? void 0 : m.key,
|
|
1010
|
+
level: A,
|
|
1011
|
+
index: r,
|
|
1012
|
+
isLeaf: c
|
|
1013
1013
|
// ✅ Добавляем информацию о типе колонки
|
|
1014
1014
|
},
|
|
1015
|
-
disabled: !
|
|
1015
|
+
disabled: !E
|
|
1016
1016
|
}), {
|
|
1017
1017
|
setNodeRef: B,
|
|
1018
|
-
isOver:
|
|
1019
|
-
} =
|
|
1018
|
+
isOver: ne
|
|
1019
|
+
} = Rt({
|
|
1020
1020
|
id: `drop-zone-${t.key}`,
|
|
1021
1021
|
data: {
|
|
1022
1022
|
type: "column-drop-zone",
|
|
1023
1023
|
columnKey: t.key,
|
|
1024
|
-
isFixed:
|
|
1025
|
-
accepts: [
|
|
1026
|
-
isLeaf:
|
|
1024
|
+
isFixed: p,
|
|
1025
|
+
accepts: [p ? "fixed" : "non-fixed"],
|
|
1026
|
+
isLeaf: c
|
|
1027
1027
|
// ✅ Добавляем информацию о типе колонки
|
|
1028
1028
|
},
|
|
1029
1029
|
disabled: !1
|
|
1030
|
-
}),
|
|
1031
|
-
|
|
1032
|
-
}, [
|
|
1033
|
-
if (!n || !
|
|
1034
|
-
const
|
|
1030
|
+
}), Y = q((R) => {
|
|
1031
|
+
P(R), B(R);
|
|
1032
|
+
}, [P, B]), K = We(() => {
|
|
1033
|
+
if (!n || !ne) return !1;
|
|
1034
|
+
const R = {
|
|
1035
1035
|
type: "column-drop-zone",
|
|
1036
1036
|
columnKey: t.key,
|
|
1037
|
-
isFixed:
|
|
1038
|
-
accepts: [
|
|
1039
|
-
isLeaf:
|
|
1037
|
+
isFixed: p,
|
|
1038
|
+
accepts: [p ? "fixed" : "non-fixed"],
|
|
1039
|
+
isLeaf: c
|
|
1040
1040
|
};
|
|
1041
|
-
return
|
|
1042
|
-
}, [n,
|
|
1043
|
-
let
|
|
1044
|
-
if (!
|
|
1045
|
-
return
|
|
1046
|
-
for (let
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
}
|
|
1050
|
-
return
|
|
1051
|
-
}, [t.fixedLeft,
|
|
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
1052
|
jt(() => {
|
|
1053
|
-
if (!
|
|
1054
|
-
|
|
1053
|
+
if (!p) {
|
|
1054
|
+
ae(ie());
|
|
1055
1055
|
return;
|
|
1056
1056
|
}
|
|
1057
|
-
let
|
|
1058
|
-
for (let
|
|
1059
|
-
const
|
|
1060
|
-
if (
|
|
1061
|
-
const
|
|
1062
|
-
|
|
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
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
|
|
1066
|
-
}, [t.fixedLeft, t.width, t.minWidth,
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
return
|
|
1070
|
-
if (
|
|
1071
|
-
const
|
|
1072
|
-
for (const
|
|
1073
|
-
if (
|
|
1074
|
-
if (
|
|
1075
|
-
return
|
|
1076
|
-
const
|
|
1077
|
-
if (
|
|
1065
|
+
ae(R);
|
|
1066
|
+
}, [t.fixedLeft, t.width, t.minWidth, d, r, p, ie]);
|
|
1067
|
+
const oe = ((R) => {
|
|
1068
|
+
if (R.groupColor)
|
|
1069
|
+
return R.groupColor;
|
|
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;
|
|
1078
1078
|
}
|
|
1079
1079
|
return null;
|
|
1080
|
-
},
|
|
1081
|
-
return
|
|
1080
|
+
}, i = J(l, R.key);
|
|
1081
|
+
return i == null ? void 0 : i.groupColor;
|
|
1082
1082
|
}
|
|
1083
1083
|
})(t);
|
|
1084
|
-
let
|
|
1085
|
-
return
|
|
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(
|
|
1086
1086
|
"th",
|
|
1087
1087
|
{
|
|
1088
|
-
ref:
|
|
1088
|
+
ref: Y,
|
|
1089
1089
|
"data-column-key": t.key,
|
|
1090
1090
|
className: `
|
|
1091
1091
|
radar-table__header-cell
|
|
1092
|
-
${
|
|
1093
|
-
${
|
|
1094
|
-
${
|
|
1095
|
-
${
|
|
1096
|
-
${
|
|
1097
|
-
${
|
|
1098
|
-
${
|
|
1092
|
+
${S ? S + "__header-cell" : ""}
|
|
1093
|
+
${$ || ""}
|
|
1094
|
+
${z ? "dragging" : ""}
|
|
1095
|
+
${ne ? "drag-over" : ""}
|
|
1096
|
+
${K && ne ? "valid-drop-zone" : ""}
|
|
1097
|
+
${ne && !K ? "invalid-drop-zone" : ""}
|
|
1098
|
+
${c ? "leaf-header" : "group-header"}
|
|
1099
1099
|
${t.className || ""}`,
|
|
1100
1100
|
colSpan: t.colSpan || 1,
|
|
1101
1101
|
rowSpan: t.rowSpan || 1,
|
|
1102
1102
|
style: {
|
|
1103
|
-
width:
|
|
1104
|
-
minWidth:
|
|
1103
|
+
width: le,
|
|
1104
|
+
minWidth: Q,
|
|
1105
1105
|
position: t.fixed ? "sticky" : "static",
|
|
1106
|
-
top:
|
|
1107
|
-
left:
|
|
1108
|
-
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",
|
|
1109
1109
|
zIndex: t.fixed ? 2 : "auto",
|
|
1110
|
-
backgroundColor:
|
|
1111
|
-
cursor:
|
|
1112
|
-
...
|
|
1110
|
+
backgroundColor: oe,
|
|
1111
|
+
cursor: te,
|
|
1112
|
+
...V,
|
|
1113
1113
|
...t.style
|
|
1114
1114
|
},
|
|
1115
1115
|
children: /* @__PURE__ */ o.jsxs(
|
|
@@ -1117,18 +1117,18 @@ function Yt({
|
|
|
1117
1117
|
{
|
|
1118
1118
|
className: `
|
|
1119
1119
|
radar-table__header-cell-wrapper
|
|
1120
|
-
${
|
|
1121
|
-
${
|
|
1120
|
+
${S ? S + "__header-cell-wrapper" : ""}
|
|
1121
|
+
${U || ""}
|
|
1122
1122
|
`,
|
|
1123
|
-
style:
|
|
1123
|
+
style: X,
|
|
1124
1124
|
children: [
|
|
1125
|
-
|
|
1125
|
+
E && /* @__PURE__ */ o.jsx(
|
|
1126
1126
|
"div",
|
|
1127
1127
|
{
|
|
1128
|
-
className: `radar-table__drag-handle ${
|
|
1129
|
-
...
|
|
1128
|
+
className: `radar-table__drag-handle ${z ? "dragging" : ""} ${c ? "" : "group-drag-handle"}`,
|
|
1129
|
+
...L,
|
|
1130
1130
|
...w,
|
|
1131
|
-
style: { cursor:
|
|
1131
|
+
style: { cursor: z ? "grabbing" : "grab" },
|
|
1132
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
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
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" }),
|
|
@@ -1144,12 +1144,12 @@ function Yt({
|
|
|
1144
1144
|
{
|
|
1145
1145
|
title: t.title,
|
|
1146
1146
|
onClick: () => {
|
|
1147
|
-
const { sort_field:
|
|
1148
|
-
let
|
|
1147
|
+
const { sort_field: R, sort_order: J } = k;
|
|
1148
|
+
let i = {
|
|
1149
1149
|
columnKey: t.key,
|
|
1150
1150
|
direction: "ASC"
|
|
1151
1151
|
};
|
|
1152
|
-
|
|
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);
|
|
1153
1153
|
},
|
|
1154
1154
|
style: {
|
|
1155
1155
|
cursor: t.sortable ? "pointer" : "default",
|
|
@@ -1158,37 +1158,37 @@ function Yt({
|
|
|
1158
1158
|
children: t.title
|
|
1159
1159
|
}
|
|
1160
1160
|
) }),
|
|
1161
|
-
t.sortable && !
|
|
1161
|
+
t.sortable && !D && c && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
|
|
1162
1162
|
/* @__PURE__ */ o.jsx(
|
|
1163
1163
|
"button",
|
|
1164
1164
|
{
|
|
1165
1165
|
className: "radar-table__sort-button",
|
|
1166
|
-
onClick: (
|
|
1166
|
+
onClick: (R) => x(t.key, "ASC"),
|
|
1167
1167
|
title: `Сортировать по ${t.title}`,
|
|
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:
|
|
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" }) })
|
|
1169
1169
|
}
|
|
1170
1170
|
),
|
|
1171
1171
|
/* @__PURE__ */ o.jsx(
|
|
1172
1172
|
"button",
|
|
1173
1173
|
{
|
|
1174
1174
|
className: "radar-table__sort-button",
|
|
1175
|
-
onClick: (
|
|
1175
|
+
onClick: (R) => x(t.key, "DESC"),
|
|
1176
1176
|
title: `Сортировать по ${t.title}`,
|
|
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:
|
|
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" }) })
|
|
1178
1178
|
}
|
|
1179
1179
|
)
|
|
1180
1180
|
] }),
|
|
1181
|
-
t.sortable &&
|
|
1181
|
+
t.sortable && D && c && D(k.sort_field, k.sort_order),
|
|
1182
1182
|
t.tooltipText && /* @__PURE__ */ o.jsx(At, { text: t.tooltipText, children: t.tooltipIcon }),
|
|
1183
|
-
|
|
1184
|
-
|
|
1183
|
+
u && c && /* @__PURE__ */ o.jsx(
|
|
1184
|
+
Ft,
|
|
1185
1185
|
{
|
|
1186
1186
|
column: t,
|
|
1187
|
-
currWidth:
|
|
1188
|
-
currMinWidth:
|
|
1189
|
-
onResize:
|
|
1190
|
-
scrollContainerRef:
|
|
1191
|
-
resizeThrottle:
|
|
1187
|
+
currWidth: le,
|
|
1188
|
+
currMinWidth: Q,
|
|
1189
|
+
onResize: j,
|
|
1190
|
+
scrollContainerRef: C,
|
|
1191
|
+
resizeThrottle: b
|
|
1192
1192
|
}
|
|
1193
1193
|
)
|
|
1194
1194
|
]
|
|
@@ -1197,705 +1197,1058 @@ function Yt({
|
|
|
1197
1197
|
}
|
|
1198
1198
|
);
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function et({
|
|
1201
1201
|
config: t,
|
|
1202
|
-
fullConfig:
|
|
1203
|
-
onSort:
|
|
1204
|
-
onResize:
|
|
1205
|
-
onColumnReorder:
|
|
1202
|
+
fullConfig: r,
|
|
1203
|
+
onSort: d,
|
|
1204
|
+
onResize: l,
|
|
1205
|
+
onColumnReorder: k,
|
|
1206
1206
|
// ✅ Сохранен (понадобится для передачи в TableDndProvider)
|
|
1207
|
-
sortIcon:
|
|
1208
|
-
resizeable:
|
|
1209
|
-
draggableColumns:
|
|
1210
|
-
preset:
|
|
1207
|
+
sortIcon: x,
|
|
1208
|
+
resizeable: j,
|
|
1209
|
+
draggableColumns: D,
|
|
1210
|
+
preset: u,
|
|
1211
1211
|
headerClassName: F,
|
|
1212
|
-
headerStyle:
|
|
1213
|
-
headerRowClassName:
|
|
1214
|
-
headerRowStyle:
|
|
1215
|
-
headerCellClassName:
|
|
1216
|
-
headerCellStyle:
|
|
1217
|
-
headerCellWrapperClassName:
|
|
1218
|
-
headerCellWrapperStyle:
|
|
1219
|
-
stickyHeader:
|
|
1212
|
+
headerStyle: S,
|
|
1213
|
+
headerRowClassName: $,
|
|
1214
|
+
headerRowStyle: V,
|
|
1215
|
+
headerCellClassName: U,
|
|
1216
|
+
headerCellStyle: X,
|
|
1217
|
+
headerCellWrapperClassName: G,
|
|
1218
|
+
headerCellWrapperStyle: C,
|
|
1219
|
+
stickyHeader: b,
|
|
1220
1220
|
scrollContainerRef: n,
|
|
1221
1221
|
// ✅ Сохранен (для передачи в HeaderCell)
|
|
1222
|
-
sorting:
|
|
1223
|
-
defaultSorting:
|
|
1224
|
-
resizeThrottle:
|
|
1222
|
+
sorting: g,
|
|
1223
|
+
defaultSorting: c,
|
|
1224
|
+
resizeThrottle: E
|
|
1225
1225
|
}) {
|
|
1226
|
-
const [
|
|
1227
|
-
|
|
1228
|
-
!
|
|
1229
|
-
}, [
|
|
1230
|
-
const
|
|
1231
|
-
const { sort_field:
|
|
1226
|
+
const [O, m] = xe(() => c || { sort_field: void 0, sort_order: void 0 }), p = g !== void 0, h = p ? g : O;
|
|
1227
|
+
Ne(() => {
|
|
1228
|
+
!p && c && m(c);
|
|
1229
|
+
}, [c, p]);
|
|
1230
|
+
const A = q((L, w) => {
|
|
1231
|
+
const { sort_field: P, sort_order: z } = h;
|
|
1232
1232
|
let B = {
|
|
1233
|
-
sort_field:
|
|
1233
|
+
sort_field: L,
|
|
1234
1234
|
sort_order: w
|
|
1235
1235
|
};
|
|
1236
|
-
|
|
1236
|
+
P === L && z === w && (B = {
|
|
1237
1237
|
sort_field: void 0,
|
|
1238
1238
|
sort_order: void 0
|
|
1239
|
-
}),
|
|
1240
|
-
}, [
|
|
1239
|
+
}), p || m(B), d == null || d(B.sort_field, B.sort_order);
|
|
1240
|
+
}, [h, d, p]);
|
|
1241
1241
|
return /* @__PURE__ */ o.jsx(
|
|
1242
1242
|
"tr",
|
|
1243
1243
|
{
|
|
1244
|
-
className: `radar-table__header-row ${
|
|
1245
|
-
style:
|
|
1246
|
-
children: t.map((
|
|
1247
|
-
|
|
1244
|
+
className: `radar-table__header-row ${u ? u + "__header-row" : ""} ${$ || ""}`,
|
|
1245
|
+
style: V,
|
|
1246
|
+
children: t.map((L, w) => /* @__PURE__ */ o.jsx(
|
|
1247
|
+
Bt,
|
|
1248
1248
|
{
|
|
1249
|
-
column:
|
|
1249
|
+
column: L,
|
|
1250
1250
|
index: w,
|
|
1251
1251
|
config: t,
|
|
1252
|
-
fullConfig:
|
|
1253
|
-
sorting:
|
|
1254
|
-
onSort:
|
|
1255
|
-
onResize:
|
|
1256
|
-
sortIcon:
|
|
1257
|
-
resizeable:
|
|
1258
|
-
draggableColumns:
|
|
1259
|
-
preset:
|
|
1260
|
-
headerCellClassName:
|
|
1261
|
-
headerCellStyle:
|
|
1262
|
-
headerCellWrapperClassName:
|
|
1263
|
-
headerCellWrapperStyle:
|
|
1264
|
-
stickyHeader:
|
|
1252
|
+
fullConfig: r,
|
|
1253
|
+
sorting: h,
|
|
1254
|
+
onSort: A,
|
|
1255
|
+
onResize: l,
|
|
1256
|
+
sortIcon: x,
|
|
1257
|
+
resizeable: j,
|
|
1258
|
+
draggableColumns: D,
|
|
1259
|
+
preset: u,
|
|
1260
|
+
headerCellClassName: U,
|
|
1261
|
+
headerCellStyle: X,
|
|
1262
|
+
headerCellWrapperClassName: G,
|
|
1263
|
+
headerCellWrapperStyle: C,
|
|
1264
|
+
stickyHeader: b,
|
|
1265
1265
|
scrollContainerRef: n,
|
|
1266
|
-
resizeThrottle:
|
|
1266
|
+
resizeThrottle: E
|
|
1267
1267
|
},
|
|
1268
|
-
|
|
1268
|
+
L.key
|
|
1269
1269
|
))
|
|
1270
1270
|
}
|
|
1271
1271
|
);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function Yt(t) {
|
|
1274
1274
|
const {
|
|
1275
|
-
config:
|
|
1276
|
-
preset:
|
|
1277
|
-
headerClassName:
|
|
1278
|
-
headerStyle:
|
|
1279
|
-
stickyHeader:
|
|
1280
|
-
headerRowClassName:
|
|
1281
|
-
headerRowStyle:
|
|
1282
|
-
headerCellClassName:
|
|
1275
|
+
config: r,
|
|
1276
|
+
preset: d,
|
|
1277
|
+
headerClassName: l,
|
|
1278
|
+
headerStyle: k,
|
|
1279
|
+
stickyHeader: x,
|
|
1280
|
+
headerRowClassName: j,
|
|
1281
|
+
headerRowStyle: D,
|
|
1282
|
+
headerCellClassName: u,
|
|
1283
1283
|
headerCellStyle: F,
|
|
1284
|
-
headerCellWrapperClassName:
|
|
1285
|
-
headerCellWrapperStyle:
|
|
1286
|
-
onResize:
|
|
1287
|
-
onColumnReorder:
|
|
1288
|
-
sorting:
|
|
1289
|
-
defaultSorting:
|
|
1290
|
-
} = t,
|
|
1291
|
-
if (!
|
|
1284
|
+
headerCellWrapperClassName: S,
|
|
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)
|
|
1292
1292
|
return null;
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1295
|
-
|
|
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));
|
|
1296
1296
|
});
|
|
1297
1297
|
};
|
|
1298
|
-
return
|
|
1299
|
-
}, [
|
|
1300
|
-
if (!
|
|
1301
|
-
const
|
|
1302
|
-
for (const
|
|
1303
|
-
if (
|
|
1304
|
-
if (
|
|
1305
|
-
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);
|
|
1306
1306
|
if (w) return w;
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
1309
|
return null;
|
|
1310
|
-
},
|
|
1311
|
-
if (!
|
|
1312
|
-
return [
|
|
1313
|
-
const
|
|
1314
|
-
return
|
|
1315
|
-
|
|
1316
|
-
}),
|
|
1317
|
-
},
|
|
1318
|
-
if (
|
|
1319
|
-
if (
|
|
1320
|
-
const
|
|
1321
|
-
if (
|
|
1322
|
-
const
|
|
1323
|
-
|
|
1324
|
-
const
|
|
1325
|
-
|
|
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);
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
} else
|
|
1329
|
-
|
|
1330
|
-
}, [
|
|
1331
|
-
if (!
|
|
1332
|
-
if (!
|
|
1333
|
-
|
|
1329
|
+
V(c, E);
|
|
1330
|
+
}, [r, V]), g = q((c) => {
|
|
1331
|
+
if (!U) return;
|
|
1332
|
+
if (!C) {
|
|
1333
|
+
U(c);
|
|
1334
1334
|
return;
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1337
|
-
for (let
|
|
1338
|
-
const
|
|
1339
|
-
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)
|
|
1340
1340
|
return {
|
|
1341
|
-
column:
|
|
1342
|
-
parent:
|
|
1343
|
-
path:
|
|
1344
|
-
level:
|
|
1341
|
+
column: re,
|
|
1342
|
+
parent: se,
|
|
1343
|
+
path: R,
|
|
1344
|
+
level: oe.length
|
|
1345
1345
|
};
|
|
1346
|
-
if (
|
|
1347
|
-
const
|
|
1348
|
-
if (
|
|
1349
|
-
return
|
|
1346
|
+
if (re.children && re.children.length > 0) {
|
|
1347
|
+
const J = E(re.children, H, R, re);
|
|
1348
|
+
if (J)
|
|
1349
|
+
return J;
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
return null;
|
|
1353
1353
|
};
|
|
1354
|
-
if (!Object.values(
|
|
1355
|
-
if (
|
|
1356
|
-
const
|
|
1357
|
-
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);
|
|
1358
1358
|
}))
|
|
1359
1359
|
return;
|
|
1360
|
-
const
|
|
1361
|
-
if (!(
|
|
1360
|
+
const m = c._dragInfo;
|
|
1361
|
+
if (!(m != null && m.draggedKey) || !(m != null && m.targetKey))
|
|
1362
1362
|
return;
|
|
1363
|
-
const { draggedKey:
|
|
1364
|
-
if (
|
|
1365
|
-
const { column: w, parent:
|
|
1366
|
-
if (B !==
|
|
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)
|
|
1367
1367
|
return;
|
|
1368
|
-
const
|
|
1368
|
+
const ge = JSON.parse(JSON.stringify(r));
|
|
1369
1369
|
if (B === 0) {
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1370
|
+
const ae = z[0], H = K[0], [oe] = ge.splice(ae, 1);
|
|
1371
|
+
ge.splice(H, 0, oe);
|
|
1372
1372
|
} else {
|
|
1373
|
-
const
|
|
1374
|
-
let
|
|
1375
|
-
for (let
|
|
1376
|
-
|
|
1377
|
-
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)
|
|
1378
1378
|
return;
|
|
1379
|
-
const
|
|
1380
|
-
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)
|
|
1381
1381
|
return;
|
|
1382
|
-
const [
|
|
1383
|
-
|
|
1382
|
+
const [ce] = H.children.splice(oe, 1);
|
|
1383
|
+
H.children.splice(se, 0, ce);
|
|
1384
1384
|
}
|
|
1385
|
-
|
|
1386
|
-
}, [
|
|
1387
|
-
return
|
|
1385
|
+
U(ge);
|
|
1386
|
+
}, [r, U, b]);
|
|
1387
|
+
return C ? /* @__PURE__ */ o.jsx(
|
|
1388
1388
|
"thead",
|
|
1389
1389
|
{
|
|
1390
|
-
className: `radar-table__header ${
|
|
1390
|
+
className: `radar-table__header ${d ? d + "__header" : ""} ${l}`,
|
|
1391
1391
|
style: {
|
|
1392
|
-
position:
|
|
1393
|
-
top:
|
|
1394
|
-
...
|
|
1392
|
+
position: x ? "sticky" : "static",
|
|
1393
|
+
top: x && typeof x == "number" ? x : 0,
|
|
1394
|
+
...k
|
|
1395
1395
|
},
|
|
1396
|
-
children: Object.keys(
|
|
1397
|
-
const
|
|
1396
|
+
children: Object.keys(b).map((c) => {
|
|
1397
|
+
const E = b[parseInt(c)], O = parseInt(c);
|
|
1398
1398
|
return /* @__PURE__ */ o.jsx(
|
|
1399
|
-
|
|
1399
|
+
et,
|
|
1400
1400
|
{
|
|
1401
|
-
config:
|
|
1402
|
-
fullConfig:
|
|
1401
|
+
config: E,
|
|
1402
|
+
fullConfig: r,
|
|
1403
1403
|
onSort: t.onSort,
|
|
1404
1404
|
onResize: n,
|
|
1405
|
-
onColumnReorder:
|
|
1405
|
+
onColumnReorder: g,
|
|
1406
1406
|
resizeable: t.resizeable,
|
|
1407
1407
|
draggableColumns: t.draggableColumns,
|
|
1408
|
-
preset:
|
|
1409
|
-
headerClassName:
|
|
1410
|
-
headerStyle:
|
|
1411
|
-
headerRowClassName:
|
|
1408
|
+
preset: d,
|
|
1409
|
+
headerClassName: l,
|
|
1410
|
+
headerStyle: k,
|
|
1411
|
+
headerRowClassName: j,
|
|
1412
1412
|
headerRowStyle: {
|
|
1413
|
-
...
|
|
1414
|
-
position:
|
|
1415
|
-
top:
|
|
1413
|
+
...D,
|
|
1414
|
+
position: x ? "sticky" : "static",
|
|
1415
|
+
top: x && typeof x == "number" ? x + (O - 1) * 50 : 0
|
|
1416
1416
|
},
|
|
1417
|
-
headerCellClassName:
|
|
1417
|
+
headerCellClassName: u,
|
|
1418
1418
|
headerCellStyle: F,
|
|
1419
|
-
headerCellWrapperClassName:
|
|
1420
|
-
headerCellWrapperStyle:
|
|
1421
|
-
stickyHeader:
|
|
1419
|
+
headerCellWrapperClassName: S,
|
|
1420
|
+
headerCellWrapperStyle: $,
|
|
1421
|
+
stickyHeader: x,
|
|
1422
1422
|
sortIcon: t.sortIcon,
|
|
1423
1423
|
scrollContainerRef: t.scrollContainerRef,
|
|
1424
|
-
sorting:
|
|
1425
|
-
defaultSorting:
|
|
1424
|
+
sorting: X,
|
|
1425
|
+
defaultSorting: G,
|
|
1426
1426
|
resizeThrottle: t.resizeThrottle
|
|
1427
1427
|
},
|
|
1428
|
-
|
|
1428
|
+
c
|
|
1429
1429
|
);
|
|
1430
1430
|
})
|
|
1431
1431
|
}
|
|
1432
1432
|
) : /* @__PURE__ */ o.jsx(
|
|
1433
1433
|
"thead",
|
|
1434
1434
|
{
|
|
1435
|
-
className: `radar-table__header ${
|
|
1435
|
+
className: `radar-table__header ${d ? d + "__header" : ""} ${l}`,
|
|
1436
1436
|
style: {
|
|
1437
|
-
position:
|
|
1438
|
-
top:
|
|
1439
|
-
...
|
|
1437
|
+
position: x ? "sticky" : "static",
|
|
1438
|
+
top: x && typeof x == "number" ? x : 0,
|
|
1439
|
+
...k
|
|
1440
1440
|
},
|
|
1441
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1441
|
+
children: /* @__PURE__ */ o.jsx(et, { ...t, fullConfig: r, onResize: n, onColumnReorder: g, scrollContainerRef: t.scrollContainerRef, sorting: X, defaultSorting: G, resizeThrottle: t.resizeThrottle })
|
|
1442
1442
|
}
|
|
1443
1443
|
);
|
|
1444
1444
|
}
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1445
|
+
const Ht = (t, r) => {
|
|
1446
|
+
let d = "0";
|
|
1447
|
+
if (t != null) {
|
|
1448
|
+
const l = parseFloat(t);
|
|
1449
|
+
if (Number.isNaN(l))
|
|
1450
|
+
return r && (d += ` ${r}`), d;
|
|
1451
|
+
d = l.toLocaleString("ru-RU", {
|
|
1452
|
+
maximumFractionDigits: 2
|
|
1453
|
+
}), r && (d += ` ${r}`);
|
|
1454
|
+
}
|
|
1455
|
+
return d;
|
|
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({
|
|
1465
|
+
draggableRows: t = !1,
|
|
1466
|
+
dataSource: r,
|
|
1467
|
+
config: d,
|
|
1468
|
+
rowKey: l,
|
|
1469
|
+
loading: k = !1,
|
|
1470
|
+
onRowReorder: x,
|
|
1471
|
+
preset: j,
|
|
1472
|
+
customCellRender: D,
|
|
1473
|
+
treeMode: u,
|
|
1474
|
+
expandedRowKeys: F,
|
|
1475
|
+
defaultExpandedRowKeys: S,
|
|
1476
|
+
onExpandedRowsChange: $,
|
|
1477
|
+
indentSize: V,
|
|
1478
|
+
expandIcon: U,
|
|
1479
|
+
bodyClassName: X,
|
|
1480
|
+
bodyStyle: G,
|
|
1481
|
+
bodyRowClassName: C,
|
|
1482
|
+
bodyRowStyle: b,
|
|
1483
|
+
bodyCellClassName: n,
|
|
1484
|
+
bodyCellStyle: g,
|
|
1485
|
+
bodyCellWrapperClassName: c,
|
|
1486
|
+
bodyCellWrapperStyle: E,
|
|
1487
|
+
noDataRender: O,
|
|
1488
|
+
scrollContainerRef: m,
|
|
1489
|
+
recalculateRowHeight: p
|
|
1490
|
+
}) {
|
|
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,
|
|
1502
|
+
type: "parent",
|
|
1503
|
+
depth: 0,
|
|
1504
|
+
indexWithinGroup: s,
|
|
1505
|
+
groupSize: v.length
|
|
1506
|
+
}), N && N.length > 0 && B.has(y) && N.forEach((I, pe) => {
|
|
1507
|
+
i.push({
|
|
1508
|
+
record: I,
|
|
1509
|
+
key: Y(I),
|
|
1510
|
+
type: "child",
|
|
1511
|
+
parentKey: y,
|
|
1512
|
+
depth: 1,
|
|
1513
|
+
indexWithinGroup: pe,
|
|
1514
|
+
groupSize: N.length
|
|
1515
|
+
});
|
|
1516
|
+
});
|
|
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]);
|
|
1522
|
+
Ne(() => {
|
|
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";
|
|
1532
|
+
});
|
|
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";
|
|
1540
|
+
});
|
|
1541
|
+
});
|
|
1542
|
+
})();
|
|
1543
|
+
}, [r, d]);
|
|
1544
|
+
const Q = ((i) => {
|
|
1545
|
+
const v = [], _ = (s) => {
|
|
1546
|
+
s.forEach((y) => {
|
|
1547
|
+
y.children && y.children.length > 0 ? _(y.children) : v.push(y);
|
|
1548
|
+
});
|
|
1549
|
+
};
|
|
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);
|
|
1560
|
+
if (I) return I;
|
|
1561
|
+
}
|
|
1562
|
+
return null;
|
|
1563
|
+
}, _ = v(d, i.key);
|
|
1564
|
+
return _ == null ? void 0 : _.groupColor;
|
|
1565
|
+
}, ge = q((i, v) => {
|
|
1566
|
+
if (!v) {
|
|
1567
|
+
i.preventDefault();
|
|
1568
|
+
return;
|
|
1569
|
+
}
|
|
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 = `
|
|
1575
|
+
background: white;
|
|
1576
|
+
border-radius: 6px;
|
|
1577
|
+
padding: 8px 12px;
|
|
1578
|
+
box-shadow: 0 6px 16px rgba(0,0,0,0.25);
|
|
1579
|
+
font-size: 14px;
|
|
1580
|
+
color: #333;
|
|
1581
|
+
white-space: nowrap;
|
|
1582
|
+
pointer-events: none;
|
|
1583
|
+
transform: rotate(3deg) scale(0.95);
|
|
1584
|
+
max-width: 200px;
|
|
1585
|
+
overflow: hidden;
|
|
1586
|
+
text-overflow: ellipsis;
|
|
1587
|
+
`;
|
|
1588
|
+
const y = Q[0];
|
|
1589
|
+
if (y) {
|
|
1590
|
+
const I = _[y.key];
|
|
1591
|
+
s.textContent = (I == null ? void 0 : I.toString()) || "Строка";
|
|
1592
|
+
} else
|
|
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);
|
|
1597
|
+
}, 0);
|
|
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);
|
|
1606
|
+
return;
|
|
1607
|
+
}
|
|
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)
|
|
1618
|
+
return;
|
|
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)
|
|
1622
|
+
return;
|
|
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 = "";
|
|
1625
|
+
return;
|
|
1626
|
+
}
|
|
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 = "";
|
|
1634
|
+
return;
|
|
1635
|
+
}
|
|
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;
|
|
1640
|
+
if (!I || I.length === 0) return;
|
|
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);
|
|
1642
|
+
if (pe === -1 || ue === -1) return;
|
|
1643
|
+
const Ee = r.map((fe, Se) => {
|
|
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 };
|
|
1647
|
+
});
|
|
1648
|
+
x == null || x(Ee), A(null), w(null), document.body.style.cursor = "";
|
|
1649
|
+
return;
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
}, [h, r, l, x, u, te]);
|
|
1653
|
+
if (r.length === 0) {
|
|
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(
|
|
1656
|
+
"tr",
|
|
1657
|
+
{
|
|
1658
|
+
className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${C}`,
|
|
1659
|
+
style: b,
|
|
1660
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
1661
|
+
"td",
|
|
1662
|
+
{
|
|
1663
|
+
className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${n}`,
|
|
1664
|
+
colSpan: Q.length,
|
|
1665
|
+
style: {
|
|
1666
|
+
...g
|
|
1667
|
+
},
|
|
1668
|
+
children: [
|
|
1669
|
+
O && O(),
|
|
1670
|
+
!O && /* @__PURE__ */ o.jsx("div", { className: `${i ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: i || "" }, children: "Нет данных" })
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
)
|
|
1674
|
+
}
|
|
1675
|
+
) });
|
|
1676
|
+
}
|
|
1677
|
+
const re = u ? K : r.map((i) => ({
|
|
1678
|
+
record: i,
|
|
1679
|
+
key: l ? l(i) : JSON.stringify(i),
|
|
1680
|
+
type: "parent",
|
|
1681
|
+
depth: 0,
|
|
1682
|
+
indexWithinGroup: 0,
|
|
1683
|
+
groupSize: r.length
|
|
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(
|
|
1691
|
+
"tr",
|
|
1692
|
+
{
|
|
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,
|
|
1695
|
+
draggable: t,
|
|
1696
|
+
onDragStart: (s) => ge(s, _),
|
|
1697
|
+
onDragOver: ae,
|
|
1698
|
+
onDragEnter: (s) => H(s, _),
|
|
1699
|
+
onDragLeave: oe,
|
|
1700
|
+
onDrop: (s) => ce(s, _),
|
|
1701
|
+
onDragEnd: se,
|
|
1702
|
+
children: Q.map((s, y) => {
|
|
1703
|
+
var De, Ie;
|
|
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(
|
|
1715
|
+
"td",
|
|
1716
|
+
{
|
|
1717
|
+
className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${n}`,
|
|
1718
|
+
style: {
|
|
1719
|
+
width: N,
|
|
1720
|
+
minWidth: I,
|
|
1721
|
+
position: s.fixed ? "sticky" : "static",
|
|
1722
|
+
left: pe,
|
|
1723
|
+
borderRight: s.fixed && !((De = Q[y + 1]) != null && De.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1724
|
+
cursor: fe && Te ? "pointer" : "default",
|
|
1725
|
+
...g
|
|
1726
|
+
},
|
|
1727
|
+
onClick: fe && Te ? () => R(i.key) : void 0,
|
|
1728
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
1729
|
+
"div",
|
|
1730
|
+
{
|
|
1731
|
+
className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${c}`,
|
|
1732
|
+
style: {
|
|
1733
|
+
backgroundColor: Ee || "white",
|
|
1734
|
+
paddingLeft: Se,
|
|
1735
|
+
...E
|
|
1736
|
+
},
|
|
1737
|
+
children: [
|
|
1738
|
+
fe && Ce && u && (v == null ? void 0 : v.children) && v.children.length > 0 && /* @__PURE__ */ o.jsx(
|
|
1739
|
+
"button",
|
|
1740
|
+
{
|
|
1741
|
+
type: "button",
|
|
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" }) })
|
|
1748
|
+
}
|
|
1749
|
+
),
|
|
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]
|
|
1753
|
+
] })
|
|
1754
|
+
]
|
|
1755
|
+
}
|
|
1756
|
+
)
|
|
1757
|
+
},
|
|
1758
|
+
s.key
|
|
1759
|
+
);
|
|
1760
|
+
})
|
|
1761
|
+
},
|
|
1762
|
+
_
|
|
1763
|
+
);
|
|
1764
|
+
}) });
|
|
1765
|
+
}
|
|
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);
|
|
1768
|
+
Ne(() => {
|
|
1769
|
+
u(t);
|
|
1449
1770
|
}, [t]);
|
|
1450
|
-
const F = Math.ceil(
|
|
1451
|
-
const
|
|
1452
|
-
!/^[0-9]$/.test(n.key) && !
|
|
1453
|
-
},
|
|
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) => {
|
|
1454
1775
|
if (n.key === "Enter") {
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1776
|
+
const g = parseInt(n.currentTarget.value);
|
|
1777
|
+
g > 0 && g <= l && (u({ ...t, current: g }), k == null || k(g, d), n.currentTarget.value = "");
|
|
1457
1778
|
}
|
|
1458
|
-
},
|
|
1459
|
-
const
|
|
1460
|
-
n.target.value =
|
|
1461
|
-
},
|
|
1779
|
+
}, X = (n) => {
|
|
1780
|
+
const c = n.target.value.replace(/[^0-9]/g, "");
|
|
1781
|
+
n.target.value = c;
|
|
1782
|
+
}, G = (n) => {
|
|
1462
1783
|
n.preventDefault();
|
|
1463
|
-
const
|
|
1464
|
-
|
|
1465
|
-
},
|
|
1466
|
-
const
|
|
1467
|
-
|
|
1468
|
-
},
|
|
1469
|
-
|
|
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);
|
|
1470
1791
|
};
|
|
1471
|
-
return
|
|
1792
|
+
return D && l <= 1 ? null : /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination", children: [
|
|
1472
1793
|
/* @__PURE__ */ o.jsxs(
|
|
1473
1794
|
"div",
|
|
1474
1795
|
{
|
|
1475
1796
|
className: "radar-table__pagination-main",
|
|
1476
1797
|
style: {
|
|
1477
|
-
gridTemplateColumns: `repeat(${
|
|
1798
|
+
gridTemplateColumns: `repeat(${j + 2}, 32px)`
|
|
1478
1799
|
},
|
|
1479
1800
|
children: [
|
|
1480
|
-
/* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick:
|
|
1481
|
-
Array.from({ length:
|
|
1482
|
-
const
|
|
1483
|
-
if (n >=
|
|
1484
|
-
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);
|
|
1485
1806
|
}),
|
|
1486
|
-
/* @__PURE__ */ o.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick:
|
|
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" }) }) })
|
|
1487
1808
|
]
|
|
1488
1809
|
}
|
|
1489
1810
|
),
|
|
1490
|
-
|
|
1811
|
+
x && /* @__PURE__ */ o.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
|
|
1491
1812
|
"Перейти на ",
|
|
1492
1813
|
/* @__PURE__ */ o.jsx(
|
|
1493
1814
|
"input",
|
|
1494
1815
|
{
|
|
1495
1816
|
className: "radar-table__pagination-input",
|
|
1496
|
-
onKeyDown:
|
|
1497
|
-
onChange:
|
|
1498
|
-
onPaste:
|
|
1499
|
-
onKeyUp: (n) =>
|
|
1817
|
+
onKeyDown: V,
|
|
1818
|
+
onChange: X,
|
|
1819
|
+
onPaste: G,
|
|
1820
|
+
onKeyUp: (n) => U(n)
|
|
1500
1821
|
}
|
|
1501
1822
|
),
|
|
1502
1823
|
" стр. из ",
|
|
1503
|
-
|
|
1824
|
+
l
|
|
1504
1825
|
] })
|
|
1505
1826
|
] });
|
|
1506
1827
|
};
|
|
1507
|
-
function
|
|
1828
|
+
function rr({
|
|
1508
1829
|
dataSource: t,
|
|
1509
|
-
preset:
|
|
1510
|
-
config:
|
|
1511
|
-
rowKey:
|
|
1512
|
-
loading:
|
|
1513
|
-
pagination:
|
|
1514
|
-
stickyHeader:
|
|
1515
|
-
resizeable:
|
|
1516
|
-
draggableRows:
|
|
1830
|
+
preset: r,
|
|
1831
|
+
config: d,
|
|
1832
|
+
rowKey: l,
|
|
1833
|
+
loading: k = !1,
|
|
1834
|
+
pagination: x,
|
|
1835
|
+
stickyHeader: j = !1,
|
|
1836
|
+
resizeable: D = !1,
|
|
1837
|
+
draggableRows: u = !1,
|
|
1517
1838
|
draggableColumns: F = !1,
|
|
1518
|
-
scrollContainerRef:
|
|
1519
|
-
onResize:
|
|
1520
|
-
onSort:
|
|
1521
|
-
onRowReorder:
|
|
1522
|
-
onColumnReorder:
|
|
1523
|
-
customCellRender:
|
|
1524
|
-
noDataRender:
|
|
1525
|
-
sortIcon:
|
|
1839
|
+
scrollContainerRef: S,
|
|
1840
|
+
onResize: $,
|
|
1841
|
+
onSort: V,
|
|
1842
|
+
onRowReorder: U,
|
|
1843
|
+
onColumnReorder: X,
|
|
1844
|
+
customCellRender: G,
|
|
1845
|
+
noDataRender: C,
|
|
1846
|
+
sortIcon: b,
|
|
1526
1847
|
expandIcon: n,
|
|
1527
|
-
recalculateRowHeight:
|
|
1848
|
+
recalculateRowHeight: g = !1,
|
|
1528
1849
|
// sorting props
|
|
1529
|
-
sorting:
|
|
1530
|
-
defaultSorting:
|
|
1850
|
+
sorting: c,
|
|
1851
|
+
defaultSorting: E,
|
|
1531
1852
|
// tree props
|
|
1532
|
-
treeMode:
|
|
1533
|
-
expandedRowKeys:
|
|
1534
|
-
defaultExpandedRowKeys:
|
|
1535
|
-
onExpandedRowsChange:
|
|
1536
|
-
indentSize:
|
|
1537
|
-
className:
|
|
1853
|
+
treeMode: O,
|
|
1854
|
+
expandedRowKeys: m,
|
|
1855
|
+
defaultExpandedRowKeys: p,
|
|
1856
|
+
onExpandedRowsChange: h,
|
|
1857
|
+
indentSize: A,
|
|
1858
|
+
className: L = "",
|
|
1538
1859
|
style: w,
|
|
1539
|
-
headerClassName:
|
|
1540
|
-
headerStyle:
|
|
1860
|
+
headerClassName: P = "",
|
|
1861
|
+
headerStyle: z,
|
|
1541
1862
|
headerCellClassName: B = "",
|
|
1542
|
-
headerCellStyle:
|
|
1543
|
-
headerRowClassName:
|
|
1544
|
-
headerRowStyle:
|
|
1545
|
-
headerCellWrapperClassName:
|
|
1546
|
-
headerCellWrapperStyle:
|
|
1547
|
-
bodyClassName:
|
|
1548
|
-
bodyStyle:
|
|
1549
|
-
bodyRowClassName:
|
|
1550
|
-
bodyRowStyle:
|
|
1551
|
-
bodyCellClassName:
|
|
1552
|
-
bodyCellStyle:
|
|
1553
|
-
bodyCellWrapperClassName:
|
|
1554
|
-
bodyCellWrapperStyle:
|
|
1555
|
-
headerGroupRowClassName:
|
|
1556
|
-
headerGroupRowStyle:
|
|
1557
|
-
headerGroupCellClassName:
|
|
1558
|
-
headerGroupCellStyle:
|
|
1559
|
-
headerGroupCellWrapperClassName:
|
|
1560
|
-
headerGroupCellWrapperStyle:
|
|
1561
|
-
paginationContainerClassName:
|
|
1562
|
-
paginationContainerStyle:
|
|
1563
|
-
resizeThrottle:
|
|
1863
|
+
headerCellStyle: ne,
|
|
1864
|
+
headerRowClassName: Y = "",
|
|
1865
|
+
headerRowStyle: K,
|
|
1866
|
+
headerCellWrapperClassName: te = "",
|
|
1867
|
+
headerCellWrapperStyle: le,
|
|
1868
|
+
bodyClassName: Q = "",
|
|
1869
|
+
bodyStyle: ie,
|
|
1870
|
+
bodyRowClassName: ge = "",
|
|
1871
|
+
bodyRowStyle: ae,
|
|
1872
|
+
bodyCellClassName: H = "",
|
|
1873
|
+
bodyCellStyle: oe,
|
|
1874
|
+
bodyCellWrapperClassName: se = "",
|
|
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
|
|
1564
1885
|
}) {
|
|
1565
1886
|
return F ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1566
1887
|
/* @__PURE__ */ o.jsx(
|
|
1567
|
-
|
|
1888
|
+
Vt,
|
|
1568
1889
|
{
|
|
1569
|
-
fullConfig:
|
|
1570
|
-
onColumnReorder:
|
|
1890
|
+
fullConfig: d,
|
|
1891
|
+
onColumnReorder: X,
|
|
1571
1892
|
children: /* @__PURE__ */ o.jsx(
|
|
1572
|
-
|
|
1893
|
+
rt,
|
|
1573
1894
|
{
|
|
1574
1895
|
dataSource: t,
|
|
1575
|
-
preset:
|
|
1576
|
-
config:
|
|
1577
|
-
rowKey:
|
|
1578
|
-
loading:
|
|
1579
|
-
pagination:
|
|
1580
|
-
stickyHeader:
|
|
1581
|
-
resizeable:
|
|
1582
|
-
draggableRows:
|
|
1896
|
+
preset: r,
|
|
1897
|
+
config: d,
|
|
1898
|
+
rowKey: l,
|
|
1899
|
+
loading: k,
|
|
1900
|
+
pagination: x,
|
|
1901
|
+
stickyHeader: j,
|
|
1902
|
+
resizeable: D,
|
|
1903
|
+
draggableRows: u,
|
|
1583
1904
|
draggableColumns: F,
|
|
1584
|
-
scrollContainerRef:
|
|
1585
|
-
onResize:
|
|
1586
|
-
onSort:
|
|
1587
|
-
onRowReorder:
|
|
1588
|
-
onColumnReorder:
|
|
1589
|
-
customCellRender:
|
|
1590
|
-
sortIcon:
|
|
1905
|
+
scrollContainerRef: S,
|
|
1906
|
+
onResize: $,
|
|
1907
|
+
onSort: V,
|
|
1908
|
+
onRowReorder: U,
|
|
1909
|
+
onColumnReorder: X,
|
|
1910
|
+
customCellRender: G,
|
|
1911
|
+
sortIcon: b,
|
|
1591
1912
|
expandIcon: n,
|
|
1592
|
-
treeMode:
|
|
1593
|
-
expandedRowKeys:
|
|
1594
|
-
defaultExpandedRowKeys:
|
|
1595
|
-
onExpandedRowsChange:
|
|
1596
|
-
indentSize:
|
|
1597
|
-
className:
|
|
1913
|
+
treeMode: O,
|
|
1914
|
+
expandedRowKeys: m,
|
|
1915
|
+
defaultExpandedRowKeys: p,
|
|
1916
|
+
onExpandedRowsChange: h,
|
|
1917
|
+
indentSize: A,
|
|
1918
|
+
className: L,
|
|
1598
1919
|
style: w,
|
|
1599
|
-
headerClassName:
|
|
1600
|
-
headerStyle:
|
|
1920
|
+
headerClassName: P,
|
|
1921
|
+
headerStyle: z,
|
|
1601
1922
|
headerCellClassName: B,
|
|
1602
|
-
headerCellStyle:
|
|
1603
|
-
headerRowClassName:
|
|
1604
|
-
headerRowStyle:
|
|
1605
|
-
headerCellWrapperClassName:
|
|
1606
|
-
headerCellWrapperStyle:
|
|
1607
|
-
bodyClassName:
|
|
1608
|
-
bodyStyle:
|
|
1609
|
-
bodyRowClassName:
|
|
1610
|
-
bodyRowStyle:
|
|
1611
|
-
bodyCellClassName:
|
|
1612
|
-
bodyCellStyle:
|
|
1613
|
-
bodyCellWrapperClassName:
|
|
1614
|
-
bodyCellWrapperStyle:
|
|
1615
|
-
headerGroupRowClassName:
|
|
1616
|
-
headerGroupRowStyle:
|
|
1617
|
-
headerGroupCellClassName:
|
|
1618
|
-
headerGroupCellStyle:
|
|
1619
|
-
headerGroupCellWrapperClassName:
|
|
1620
|
-
headerGroupCellWrapperStyle:
|
|
1621
|
-
paginationContainerClassName:
|
|
1622
|
-
paginationContainerStyle:
|
|
1623
|
-
noDataRender:
|
|
1624
|
-
recalculateRowHeight:
|
|
1625
|
-
sorting:
|
|
1626
|
-
defaultSorting:
|
|
1627
|
-
resizeThrottle:
|
|
1923
|
+
headerCellStyle: ne,
|
|
1924
|
+
headerRowClassName: Y,
|
|
1925
|
+
headerRowStyle: K,
|
|
1926
|
+
headerCellWrapperClassName: te,
|
|
1927
|
+
headerCellWrapperStyle: le,
|
|
1928
|
+
bodyClassName: Q,
|
|
1929
|
+
bodyStyle: ie,
|
|
1930
|
+
bodyRowClassName: ge,
|
|
1931
|
+
bodyRowStyle: ae,
|
|
1932
|
+
bodyCellClassName: H,
|
|
1933
|
+
bodyCellStyle: oe,
|
|
1934
|
+
bodyCellWrapperClassName: se,
|
|
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
|
|
1628
1949
|
}
|
|
1629
1950
|
)
|
|
1630
1951
|
}
|
|
1631
1952
|
),
|
|
1632
|
-
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${
|
|
1953
|
+
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${s}`, style: y, children: x && /* @__PURE__ */ o.jsx(tt, { config: x }) })
|
|
1633
1954
|
] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1634
1955
|
/* @__PURE__ */ o.jsx(
|
|
1635
|
-
|
|
1956
|
+
rt,
|
|
1636
1957
|
{
|
|
1637
1958
|
dataSource: t,
|
|
1638
|
-
preset:
|
|
1639
|
-
config:
|
|
1640
|
-
rowKey:
|
|
1641
|
-
loading:
|
|
1642
|
-
pagination:
|
|
1643
|
-
stickyHeader:
|
|
1644
|
-
resizeable:
|
|
1645
|
-
draggableRows:
|
|
1959
|
+
preset: r,
|
|
1960
|
+
config: d,
|
|
1961
|
+
rowKey: l,
|
|
1962
|
+
loading: k,
|
|
1963
|
+
pagination: x,
|
|
1964
|
+
stickyHeader: j,
|
|
1965
|
+
resizeable: D,
|
|
1966
|
+
draggableRows: u,
|
|
1646
1967
|
draggableColumns: F,
|
|
1647
|
-
scrollContainerRef:
|
|
1648
|
-
onResize:
|
|
1649
|
-
onSort:
|
|
1650
|
-
onRowReorder:
|
|
1651
|
-
onColumnReorder:
|
|
1652
|
-
customCellRender:
|
|
1653
|
-
sortIcon:
|
|
1968
|
+
scrollContainerRef: S,
|
|
1969
|
+
onResize: $,
|
|
1970
|
+
onSort: V,
|
|
1971
|
+
onRowReorder: U,
|
|
1972
|
+
onColumnReorder: X,
|
|
1973
|
+
customCellRender: G,
|
|
1974
|
+
sortIcon: b,
|
|
1654
1975
|
expandIcon: n,
|
|
1655
|
-
treeMode:
|
|
1656
|
-
expandedRowKeys:
|
|
1657
|
-
defaultExpandedRowKeys:
|
|
1658
|
-
onExpandedRowsChange:
|
|
1659
|
-
indentSize:
|
|
1660
|
-
className:
|
|
1976
|
+
treeMode: O,
|
|
1977
|
+
expandedRowKeys: m,
|
|
1978
|
+
defaultExpandedRowKeys: p,
|
|
1979
|
+
onExpandedRowsChange: h,
|
|
1980
|
+
indentSize: A,
|
|
1981
|
+
className: L,
|
|
1661
1982
|
style: w,
|
|
1662
|
-
headerClassName:
|
|
1663
|
-
headerStyle:
|
|
1983
|
+
headerClassName: P,
|
|
1984
|
+
headerStyle: z,
|
|
1664
1985
|
headerCellClassName: B,
|
|
1665
|
-
headerCellStyle:
|
|
1666
|
-
headerRowClassName:
|
|
1667
|
-
headerRowStyle:
|
|
1668
|
-
headerCellWrapperClassName:
|
|
1669
|
-
headerCellWrapperStyle:
|
|
1670
|
-
bodyClassName:
|
|
1671
|
-
bodyStyle:
|
|
1672
|
-
bodyRowClassName:
|
|
1673
|
-
bodyRowStyle:
|
|
1674
|
-
bodyCellClassName:
|
|
1675
|
-
bodyCellStyle:
|
|
1676
|
-
bodyCellWrapperClassName:
|
|
1677
|
-
bodyCellWrapperStyle:
|
|
1678
|
-
headerGroupRowClassName:
|
|
1679
|
-
headerGroupRowStyle:
|
|
1680
|
-
headerGroupCellClassName:
|
|
1681
|
-
headerGroupCellStyle:
|
|
1682
|
-
headerGroupCellWrapperClassName:
|
|
1683
|
-
headerGroupCellWrapperStyle:
|
|
1684
|
-
paginationContainerClassName:
|
|
1685
|
-
paginationContainerStyle:
|
|
1686
|
-
noDataRender:
|
|
1687
|
-
recalculateRowHeight:
|
|
1688
|
-
sorting:
|
|
1689
|
-
defaultSorting:
|
|
1690
|
-
resizeThrottle:
|
|
1986
|
+
headerCellStyle: ne,
|
|
1987
|
+
headerRowClassName: Y,
|
|
1988
|
+
headerRowStyle: K,
|
|
1989
|
+
headerCellWrapperClassName: te,
|
|
1990
|
+
headerCellWrapperStyle: le,
|
|
1991
|
+
bodyClassName: Q,
|
|
1992
|
+
bodyStyle: ie,
|
|
1993
|
+
bodyRowClassName: ge,
|
|
1994
|
+
bodyRowStyle: ae,
|
|
1995
|
+
bodyCellClassName: H,
|
|
1996
|
+
bodyCellStyle: oe,
|
|
1997
|
+
bodyCellWrapperClassName: se,
|
|
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
|
|
1691
2012
|
}
|
|
1692
2013
|
),
|
|
1693
|
-
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${
|
|
2014
|
+
/* @__PURE__ */ o.jsx("div", { className: `radar-table-pagination-container ${s}`, style: y, children: x && /* @__PURE__ */ o.jsx(tt, { config: x }) })
|
|
1694
2015
|
] });
|
|
1695
2016
|
}
|
|
1696
|
-
function
|
|
2017
|
+
function rt(t) {
|
|
1697
2018
|
const {
|
|
1698
|
-
dataSource:
|
|
1699
|
-
preset:
|
|
1700
|
-
config:
|
|
1701
|
-
rowKey:
|
|
1702
|
-
loading:
|
|
1703
|
-
stickyHeader:
|
|
1704
|
-
resizeable:
|
|
1705
|
-
draggableRows:
|
|
2019
|
+
dataSource: r,
|
|
2020
|
+
preset: d,
|
|
2021
|
+
config: l,
|
|
2022
|
+
rowKey: k,
|
|
2023
|
+
loading: x,
|
|
2024
|
+
stickyHeader: j,
|
|
2025
|
+
resizeable: D,
|
|
2026
|
+
draggableRows: u,
|
|
1706
2027
|
draggableColumns: F,
|
|
1707
|
-
scrollContainerRef:
|
|
1708
|
-
onResize:
|
|
1709
|
-
onSort:
|
|
1710
|
-
onRowReorder:
|
|
1711
|
-
onColumnReorder:
|
|
1712
|
-
customCellRender:
|
|
1713
|
-
sortIcon:
|
|
1714
|
-
expandIcon:
|
|
2028
|
+
scrollContainerRef: S,
|
|
2029
|
+
onResize: $,
|
|
2030
|
+
onSort: V,
|
|
2031
|
+
onRowReorder: U,
|
|
2032
|
+
onColumnReorder: X,
|
|
2033
|
+
customCellRender: G,
|
|
2034
|
+
sortIcon: C,
|
|
2035
|
+
expandIcon: b,
|
|
1715
2036
|
treeMode: n,
|
|
1716
|
-
expandedRowKeys:
|
|
1717
|
-
defaultExpandedRowKeys:
|
|
1718
|
-
onExpandedRowsChange:
|
|
1719
|
-
indentSize:
|
|
1720
|
-
className:
|
|
1721
|
-
style:
|
|
1722
|
-
headerClassName:
|
|
1723
|
-
headerStyle:
|
|
1724
|
-
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,
|
|
1725
2046
|
headerCellStyle: w,
|
|
1726
|
-
headerRowClassName:
|
|
1727
|
-
headerRowStyle:
|
|
2047
|
+
headerRowClassName: P,
|
|
2048
|
+
headerRowStyle: z,
|
|
1728
2049
|
headerCellWrapperClassName: B,
|
|
1729
|
-
headerCellWrapperStyle:
|
|
1730
|
-
bodyClassName:
|
|
1731
|
-
bodyStyle:
|
|
1732
|
-
bodyRowClassName:
|
|
1733
|
-
bodyRowStyle:
|
|
1734
|
-
bodyCellClassName:
|
|
1735
|
-
bodyCellStyle:
|
|
1736
|
-
bodyCellWrapperClassName:
|
|
1737
|
-
bodyCellWrapperStyle:
|
|
1738
|
-
headerGroupRowClassName:
|
|
1739
|
-
headerGroupRowStyle:
|
|
1740
|
-
headerGroupCellClassName:
|
|
1741
|
-
headerGroupCellStyle:
|
|
1742
|
-
headerGroupCellWrapperClassName:
|
|
1743
|
-
headerGroupCellWrapperStyle:
|
|
1744
|
-
noDataRender:
|
|
1745
|
-
recalculateRowHeight:
|
|
1746
|
-
sorting:
|
|
1747
|
-
defaultSorting:
|
|
1748
|
-
resizeThrottle:
|
|
2050
|
+
headerCellWrapperStyle: ne,
|
|
2051
|
+
bodyClassName: Y,
|
|
2052
|
+
bodyStyle: K,
|
|
2053
|
+
bodyRowClassName: te,
|
|
2054
|
+
bodyRowStyle: le,
|
|
2055
|
+
bodyCellClassName: Q,
|
|
2056
|
+
bodyCellStyle: ie,
|
|
2057
|
+
bodyCellWrapperClassName: ge,
|
|
2058
|
+
bodyCellWrapperStyle: ae,
|
|
2059
|
+
headerGroupRowClassName: H,
|
|
2060
|
+
headerGroupRowStyle: oe,
|
|
2061
|
+
headerGroupCellClassName: se,
|
|
2062
|
+
headerGroupCellStyle: ce,
|
|
2063
|
+
headerGroupCellWrapperClassName: re,
|
|
2064
|
+
headerGroupCellWrapperStyle: R,
|
|
2065
|
+
noDataRender: J,
|
|
2066
|
+
recalculateRowHeight: i,
|
|
2067
|
+
sorting: v,
|
|
2068
|
+
defaultSorting: _,
|
|
2069
|
+
resizeThrottle: s
|
|
1749
2070
|
} = t;
|
|
1750
|
-
return /* @__PURE__ */ o.
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
2071
|
+
return /* @__PURE__ */ o.jsxs("table", { className: `radar-table ${d || ""} ${m}`, style: p, children: [
|
|
2072
|
+
/* @__PURE__ */ o.jsx(
|
|
2073
|
+
Yt,
|
|
2074
|
+
{
|
|
2075
|
+
draggableColumns: F,
|
|
2076
|
+
config: l,
|
|
2077
|
+
onSort: V,
|
|
2078
|
+
resizeable: D,
|
|
2079
|
+
onResize: $,
|
|
2080
|
+
sortIcon: C,
|
|
2081
|
+
preset: d,
|
|
2082
|
+
headerClassName: h,
|
|
2083
|
+
headerStyle: A,
|
|
2084
|
+
headerRowClassName: P,
|
|
2085
|
+
headerRowStyle: z,
|
|
2086
|
+
headerCellClassName: L,
|
|
2087
|
+
headerCellStyle: w,
|
|
2088
|
+
headerCellWrapperClassName: B,
|
|
2089
|
+
headerCellWrapperStyle: ne,
|
|
2090
|
+
headerGroupRowClassName: H,
|
|
2091
|
+
headerGroupRowStyle: oe,
|
|
2092
|
+
headerGroupCellClassName: se,
|
|
2093
|
+
headerGroupCellStyle: ce,
|
|
2094
|
+
headerGroupCellWrapperClassName: re,
|
|
2095
|
+
headerGroupCellWrapperStyle: R,
|
|
2096
|
+
stickyHeader: j,
|
|
2097
|
+
scrollContainerRef: S,
|
|
2098
|
+
onColumnReorder: X,
|
|
2099
|
+
sorting: v,
|
|
2100
|
+
defaultSorting: _,
|
|
2101
|
+
resizeThrottle: s
|
|
2102
|
+
}
|
|
2103
|
+
),
|
|
2104
|
+
/* @__PURE__ */ o.jsx(
|
|
2105
|
+
qt,
|
|
2106
|
+
{
|
|
2107
|
+
draggableRows: u,
|
|
2108
|
+
onRowReorder: U,
|
|
2109
|
+
dataSource: r,
|
|
2110
|
+
config: l,
|
|
2111
|
+
rowKey: k,
|
|
2112
|
+
loading: x,
|
|
2113
|
+
preset: d,
|
|
2114
|
+
customCellRender: G,
|
|
2115
|
+
expandIcon: b,
|
|
2116
|
+
treeMode: n,
|
|
2117
|
+
expandedRowKeys: g,
|
|
2118
|
+
defaultExpandedRowKeys: c,
|
|
2119
|
+
onExpandedRowsChange: E,
|
|
2120
|
+
indentSize: O,
|
|
2121
|
+
bodyClassName: Y,
|
|
2122
|
+
bodyStyle: K,
|
|
2123
|
+
bodyRowClassName: te,
|
|
2124
|
+
bodyRowStyle: le,
|
|
2125
|
+
bodyCellClassName: Q,
|
|
2126
|
+
bodyCellStyle: ie,
|
|
2127
|
+
bodyCellWrapperClassName: ge,
|
|
2128
|
+
bodyCellWrapperStyle: ae,
|
|
2129
|
+
noDataRender: J,
|
|
2130
|
+
scrollContainerRef: S,
|
|
2131
|
+
recalculateRowHeight: i
|
|
2132
|
+
}
|
|
2133
|
+
)
|
|
2134
|
+
] });
|
|
1782
2135
|
}
|
|
1783
|
-
const
|
|
1784
|
-
if (
|
|
2136
|
+
const nt = ({ children: t, tagType: r = "h1", ...d }) => {
|
|
2137
|
+
if (r === "h1")
|
|
1785
2138
|
return /* @__PURE__ */ o.jsx(
|
|
1786
2139
|
"h1",
|
|
1787
2140
|
{
|
|
1788
2141
|
className: "radar-title radar-title_h1",
|
|
1789
|
-
...
|
|
2142
|
+
...d,
|
|
1790
2143
|
children: t
|
|
1791
2144
|
}
|
|
1792
2145
|
);
|
|
1793
|
-
if (
|
|
2146
|
+
if (r === "h2")
|
|
1794
2147
|
return /* @__PURE__ */ o.jsx(
|
|
1795
2148
|
"h2",
|
|
1796
2149
|
{
|
|
1797
2150
|
className: "radar-title radar-title_h1",
|
|
1798
|
-
...
|
|
2151
|
+
...d,
|
|
1799
2152
|
children: t
|
|
1800
2153
|
}
|
|
1801
2154
|
);
|
|
1802
|
-
if (
|
|
2155
|
+
if (r === "h3")
|
|
1803
2156
|
return /* @__PURE__ */ o.jsx(
|
|
1804
2157
|
"h3",
|
|
1805
2158
|
{
|
|
1806
2159
|
className: "radar-title radar-title_h1",
|
|
1807
|
-
...
|
|
2160
|
+
...d,
|
|
1808
2161
|
children: t
|
|
1809
2162
|
}
|
|
1810
2163
|
);
|
|
1811
|
-
if (
|
|
2164
|
+
if (r === "h4")
|
|
1812
2165
|
return /* @__PURE__ */ o.jsx(
|
|
1813
2166
|
"h4",
|
|
1814
2167
|
{
|
|
1815
2168
|
className: "radar-title radar-title_h1",
|
|
1816
|
-
...
|
|
2169
|
+
...d,
|
|
1817
2170
|
children: t
|
|
1818
2171
|
}
|
|
1819
2172
|
);
|
|
1820
|
-
if (
|
|
2173
|
+
if (r === "h5")
|
|
1821
2174
|
return /* @__PURE__ */ o.jsx(
|
|
1822
2175
|
"h5",
|
|
1823
2176
|
{
|
|
1824
2177
|
className: "radar-title radar-title_h1",
|
|
1825
|
-
...
|
|
2178
|
+
...d,
|
|
1826
2179
|
children: t
|
|
1827
2180
|
}
|
|
1828
2181
|
);
|
|
1829
|
-
if (
|
|
2182
|
+
if (r === "h6")
|
|
1830
2183
|
return /* @__PURE__ */ o.jsx(
|
|
1831
2184
|
"h6",
|
|
1832
2185
|
{
|
|
1833
2186
|
className: "radar-title radar-title_h1",
|
|
1834
|
-
...
|
|
2187
|
+
...d,
|
|
1835
2188
|
children: t
|
|
1836
2189
|
}
|
|
1837
2190
|
);
|
|
1838
|
-
},
|
|
1839
|
-
if (
|
|
2191
|
+
}, Kt = ({ children: t, tagType: r = "h2", ...d }) => {
|
|
2192
|
+
if (r === "h1")
|
|
1840
2193
|
return /* @__PURE__ */ o.jsx(
|
|
1841
2194
|
"h1",
|
|
1842
2195
|
{
|
|
1843
2196
|
className: "radar-title radar-title_h2",
|
|
1844
|
-
...
|
|
2197
|
+
...d,
|
|
1845
2198
|
children: t
|
|
1846
2199
|
}
|
|
1847
2200
|
);
|
|
1848
|
-
if (
|
|
2201
|
+
if (r === "h2")
|
|
1849
2202
|
return /* @__PURE__ */ o.jsx(
|
|
1850
2203
|
"h2",
|
|
1851
2204
|
{
|
|
1852
2205
|
className: "radar-title radar-title_h2",
|
|
1853
|
-
...
|
|
2206
|
+
...d,
|
|
1854
2207
|
children: t
|
|
1855
2208
|
}
|
|
1856
2209
|
);
|
|
1857
|
-
if (
|
|
2210
|
+
if (r === "h3")
|
|
1858
2211
|
return /* @__PURE__ */ o.jsx(
|
|
1859
2212
|
"h3",
|
|
1860
2213
|
{
|
|
1861
2214
|
className: "radar-title radar-title_h2",
|
|
1862
|
-
...
|
|
2215
|
+
...d,
|
|
1863
2216
|
children: t
|
|
1864
2217
|
}
|
|
1865
2218
|
);
|
|
1866
|
-
if (
|
|
2219
|
+
if (r === "h4")
|
|
1867
2220
|
return /* @__PURE__ */ o.jsx(
|
|
1868
2221
|
"h4",
|
|
1869
2222
|
{
|
|
1870
2223
|
className: "radar-title radar-title_h2",
|
|
1871
|
-
...
|
|
2224
|
+
...d,
|
|
1872
2225
|
children: t
|
|
1873
2226
|
}
|
|
1874
2227
|
);
|
|
1875
|
-
if (
|
|
2228
|
+
if (r === "h5")
|
|
1876
2229
|
return /* @__PURE__ */ o.jsx(
|
|
1877
2230
|
"h5",
|
|
1878
2231
|
{
|
|
1879
2232
|
className: "radar-title radar-title_h2",
|
|
1880
|
-
...
|
|
2233
|
+
...d,
|
|
1881
2234
|
children: t
|
|
1882
2235
|
}
|
|
1883
2236
|
);
|
|
1884
|
-
if (
|
|
2237
|
+
if (r === "h6")
|
|
1885
2238
|
return /* @__PURE__ */ o.jsx(
|
|
1886
2239
|
"h6",
|
|
1887
2240
|
{
|
|
1888
2241
|
className: "radar-title radar-title_h2",
|
|
1889
|
-
...
|
|
2242
|
+
...d,
|
|
1890
2243
|
children: t
|
|
1891
2244
|
}
|
|
1892
2245
|
);
|
|
1893
|
-
},
|
|
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 });
|
|
1894
2247
|
export {
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
2248
|
+
Bt as HeaderCell,
|
|
2249
|
+
tt as Pagination,
|
|
2250
|
+
ar as RadarText,
|
|
2251
|
+
nr as RadarTitle,
|
|
2252
|
+
rr as Table,
|
|
1900
2253
|
At as Tooltip
|
|
1901
2254
|
};
|