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