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