radar-ui 1.1.37 → 1.1.39

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.
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAClG,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,iBAAiB,CAAC;AAIzB,UAAU,cAAc,CAAC,CAAC,GAAG,GAAG;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,CAAC,EAAE,CAAC;IAChB,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,qBAAqB,GAAG,oBAAoB,CAAC;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3C,YAAY,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACrC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAClD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,MAAM,EAAE,CAAC;QACd,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;KACxF,CAAA;IAED,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAC9E,cAAc,CAAC,EAAE,2BAA2B,CAAC;CAC9C;AAoBD,wBAAgB,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,EACjC,aAAqB,EACrB,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAe,EACf,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,GACf,EAAE,cAAc,CAAC,CAAC,CAAC,2CAqmBnB"}
1
+ {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAClG,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,iBAAiB,CAAC;AAIzB,UAAU,cAAc,CAAC,CAAC,GAAG,GAAG;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,CAAC,EAAE,CAAC;IAChB,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,qBAAqB,GAAG,oBAAoB,CAAC;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3C,YAAY,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACrC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAClD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,MAAM,EAAE,CAAC;QACd,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;KACxF,CAAA;IAED,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAC9E,cAAc,CAAC,EAAE,2BAA2B,CAAC;CAC9C;AAoBD,wBAAgB,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,EACjC,aAAqB,EACrB,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAe,EACf,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,GACf,EAAE,cAAc,CAAC,CAAC,CAAC,2CA2mBnB"}
package/dist/index.js CHANGED
@@ -46,11 +46,11 @@ var Ke = {};
46
46
  var at;
47
47
  function Ht() {
48
48
  return at || (at = 1, process.env.NODE_ENV !== "production" && function() {
49
- var t = qe, i = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), z = Symbol.for("react.offscreen"), P = Symbol.iterator, J = "@@iterator";
49
+ var t = qe, i = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), z = Symbol.for("react.offscreen"), P = Symbol.iterator, Z = "@@iterator";
50
50
  function re(e) {
51
51
  if (e === null || typeof e != "object")
52
52
  return null;
53
- var d = P && e[P] || e[J];
53
+ var d = P && e[P] || e[Z];
54
54
  return typeof d == "function" ? d : null;
55
55
  }
56
56
  var Y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -58,10 +58,10 @@ function Ht() {
58
58
  {
59
59
  for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), B = 1; B < d; B++)
60
60
  y[B - 1] = arguments[B];
61
- X("error", e, y);
61
+ Q("error", e, y);
62
62
  }
63
63
  }
64
- function X(e, d, y) {
64
+ function Q(e, d, y) {
65
65
  {
66
66
  var B = Y.ReactDebugCurrentFrame, he = B.getStackAddendum();
67
67
  he !== "" && (d += "%s", y = y.concat([he]));
@@ -135,14 +135,14 @@ function Ht() {
135
135
  }
136
136
  return null;
137
137
  }
138
- var L = Object.assign, Z = 0, R, H, Q, I, A, V, F;
138
+ var L = Object.assign, G = 0, R, H, ee, I, A, V, F;
139
139
  function le() {
140
140
  }
141
141
  le.__reactDisabledLog = !0;
142
142
  function N() {
143
143
  {
144
- if (Z === 0) {
145
- R = console.log, H = console.info, Q = console.warn, I = console.error, A = console.group, V = console.groupCollapsed, F = console.groupEnd;
144
+ if (G === 0) {
145
+ R = console.log, H = console.info, ee = console.warn, I = console.error, A = console.group, V = console.groupCollapsed, F = console.groupEnd;
146
146
  var e = {
147
147
  configurable: !0,
148
148
  enumerable: !0,
@@ -159,12 +159,12 @@ function Ht() {
159
159
  groupEnd: e
160
160
  });
161
161
  }
162
- Z++;
162
+ G++;
163
163
  }
164
164
  }
165
165
  function O() {
166
166
  {
167
- if (Z--, Z === 0) {
167
+ if (G--, G === 0) {
168
168
  var e = {
169
169
  configurable: !0,
170
170
  enumerable: !0,
@@ -178,7 +178,7 @@ function Ht() {
178
178
  value: H
179
179
  }),
180
180
  warn: L({}, e, {
181
- value: Q
181
+ value: ee
182
182
  }),
183
183
  error: L({}, e, {
184
184
  value: I
@@ -194,11 +194,11 @@ function Ht() {
194
194
  })
195
195
  });
196
196
  }
197
- Z < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
+ G < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
198
198
  }
199
199
  }
200
200
  var k = Y.ReactCurrentDispatcher, C;
201
- function G(e, d, y) {
201
+ function X(e, d, y) {
202
202
  {
203
203
  if (C === void 0)
204
204
  try {
@@ -211,16 +211,16 @@ function Ht() {
211
211
  ` + C + e;
212
212
  }
213
213
  }
214
- var $ = !1, ee;
214
+ var $ = !1, te;
215
215
  {
216
216
  var fe = typeof WeakMap == "function" ? WeakMap : Map;
217
- ee = new fe();
217
+ te = new fe();
218
218
  }
219
219
  function ie(e, d) {
220
220
  if (!e || $)
221
221
  return "";
222
222
  {
223
- var y = ee.get(e);
223
+ var y = te.get(e);
224
224
  if (y !== void 0)
225
225
  return y;
226
226
  }
@@ -275,7 +275,7 @@ function Ht() {
275
275
  if (be--, _e--, _e < 0 || se[be] !== Se[_e]) {
276
276
  var Te = `
277
277
  ` + se[be].replace(" at new ", " at ");
278
- return e.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, Te), Te;
278
+ return e.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, Te), Te;
279
279
  }
280
280
  while (be >= 1 && _e >= 0);
281
281
  break;
@@ -284,8 +284,8 @@ function Ht() {
284
284
  } finally {
285
285
  $ = !1, k.current = me, O(), Error.prepareStackTrace = he;
286
286
  }
287
- var Pe = e ? e.displayName || e.name : "", Me = Pe ? G(Pe) : "";
288
- return typeof e == "function" && ee.set(e, Me), Me;
287
+ var Pe = e ? e.displayName || e.name : "", Me = Pe ? X(Pe) : "";
288
+ return typeof e == "function" && te.set(e, Me), Me;
289
289
  }
290
290
  function K(e, d, y) {
291
291
  return ie(e, !1);
@@ -300,12 +300,12 @@ function Ht() {
300
300
  if (typeof e == "function")
301
301
  return ie(e, ne(e));
302
302
  if (typeof e == "string")
303
- return G(e);
303
+ return X(e);
304
304
  switch (e) {
305
305
  case w:
306
- return G("Suspense");
306
+ return X("Suspense");
307
307
  case h:
308
- return G("SuspenseList");
308
+ return X("SuspenseList");
309
309
  }
310
310
  if (typeof e == "object")
311
311
  switch (e.$$typeof) {
@@ -362,17 +362,17 @@ function Ht() {
362
362
  }
363
363
  function b(e) {
364
364
  try {
365
- return te(e), !1;
365
+ return J(e), !1;
366
366
  } catch {
367
367
  return !0;
368
368
  }
369
369
  }
370
- function te(e) {
370
+ function J(e) {
371
371
  return "" + e;
372
372
  }
373
373
  function ge(e) {
374
374
  if (b(e))
375
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", U(e)), te(e);
375
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", U(e)), J(e);
376
376
  }
377
377
  var de = Y.ReactCurrentOwner, ke = {
378
378
  key: !0,
@@ -645,32 +645,32 @@ const Ut = ({
645
645
  onResizeFrame: a,
646
646
  onResizeEnd: c
647
647
  }) => {
648
- const [f, w] = we(!1), [h, E] = we(null), [q, z] = we(0), [P, J] = we(0), [re, Y] = we(null), g = Ee(null);
648
+ const [f, w] = we(!1), [h, E] = we(null), [q, z] = we(0), [P, Z] = we(0), [re, Y] = we(null), g = Ee(null);
649
649
  Ee(0);
650
- const X = Ee(!1), S = Ee(null), M = Ee(0), ae = Ee(0), m = Ee(null), _ = Ee(null), x = Ee(!1), v = Ee(null), p = ue((L) => {
651
- !f || !h || !t || (v.current = L, !x.current && (x.current = !0, _.current = requestAnimationFrame((Z) => {
650
+ const Q = Ee(!1), S = Ee(null), M = Ee(0), ae = Ee(0), m = Ee(null), _ = Ee(null), x = Ee(!1), v = Ee(null), p = ue((L) => {
651
+ !f || !h || !t || (v.current = L, !x.current && (x.current = !0, _.current = requestAnimationFrame((G) => {
652
652
  var k;
653
- x.current = !1, a == null || a(Z);
653
+ x.current = !1, a == null || a(G);
654
654
  const R = v.current;
655
655
  if (!R) return;
656
- const H = R.clientX - q, Q = t.minWidth || 50;
656
+ const H = R.clientX - q, ee = t.minWidth || 50;
657
657
  let I = P + H;
658
- I < Q && (I = Q), t.maxWidth && I > t.maxWidth && (I = t.maxWidth), M.current = I;
658
+ I < ee && (I = ee), t.maxWidth && I > t.maxWidth && (I = t.maxWidth), M.current = I;
659
659
  const A = I - P;
660
660
  m.current && (m.current.style.transform = `translateX(${A}px)`);
661
661
  const V = (C) => {
662
- var G;
663
- return typeof window < "u" && ((G = window.CSS) != null && G.escape) ? window.CSS.escape(C) : C.replace(/([#.;?\[\]\s])/g, "\\$1");
662
+ var X;
663
+ return typeof window < "u" && ((X = window.CSS) != null && X.escape) ? window.CSS.escape(C) : C.replace(/([#.;?\[\]\s])/g, "\\$1");
664
664
  }, F = V(t.key), le = (k = S.current) == null ? void 0 : k.closest("table");
665
665
  if (!le) return;
666
666
  const N = le.querySelector(`th[data-column-key="${F}"]`);
667
667
  if (N && (N.style.width = `${I}px`, N.style.minWidth = `${I}px`), le.querySelectorAll(`td[data-column-key="${F}"]`).forEach((C) => {
668
- const G = C;
669
- G.style.width = `${I}px`, G.style.minWidth = `${I}px`;
668
+ const X = C;
669
+ X.style.width = `${I}px`, X.style.minWidth = `${I}px`;
670
670
  }), t.fixed) {
671
671
  const C = (ie) => window.getComputedStyle(ie).position === "sticky", $ = Array.from(
672
672
  le.querySelectorAll("th.radar-table__header-cell.leaf-header")
673
- ).filter((ie) => C(ie)), ee = N, fe = ee ? $.indexOf(ee) : -1;
673
+ ).filter((ie) => C(ie)), te = N, fe = te ? $.indexOf(te) : -1;
674
674
  if (fe !== -1) {
675
675
  let ie = parseFloat($[fe].style.left || "0") || 0, K = $[fe].getBoundingClientRect().width;
676
676
  for (let ne = fe + 1; ne < $.length; ne++) {
@@ -692,33 +692,33 @@ const Ut = ({
692
692
  var N;
693
693
  if (S.current.style.opacity = "", !f || !h) return;
694
694
  const L = t.minWidth || 50;
695
- let Z = M.current || P;
696
- Z < L && (Z = L), t != null && t.maxWidth && Z > t.maxWidth && (Z = t.maxWidth);
697
- const R = Z, H = h;
698
- _.current && (cancelAnimationFrame(_.current), _.current = null), x.current = !1, v.current = null, g.current && (clearInterval(g.current), g.current = null), X.current = !1, m.current && (m.current.style.transform = "translateX(0px)"), w(!1), z(0), J(0), E(null), Y(null), M.current = 0, ae.current = 0, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", j);
699
- const Q = (O) => {
695
+ let G = M.current || P;
696
+ G < L && (G = L), t != null && t.maxWidth && G > t.maxWidth && (G = t.maxWidth);
697
+ const R = G, H = h;
698
+ _.current && (cancelAnimationFrame(_.current), _.current = null), x.current = !1, v.current = null, g.current && (clearInterval(g.current), g.current = null), Q.current = !1, m.current && (m.current.style.transform = "translateX(0px)"), w(!1), z(0), Z(0), E(null), Y(null), M.current = 0, ae.current = 0, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", j);
699
+ const ee = (O) => {
700
700
  var k;
701
701
  return typeof window < "u" && ((k = window.CSS) != null && k.escape) ? window.CSS.escape(O) : O.replace(/([#.;?\[\]\s])/g, "\\$1");
702
- }, I = Q(H), A = (N = S.current) == null ? void 0 : N.closest("table");
702
+ }, I = ee(H), A = (N = S.current) == null ? void 0 : N.closest("table");
703
703
  if (!A) return;
704
704
  const V = A.querySelector(`th[data-column-key="${I}"]`);
705
705
  if (V && (V.style.width = `${R}px`, V.style.minWidth = `${R}px`), A.querySelectorAll(`td[data-column-key="${I}"]`).forEach((O) => {
706
706
  const k = O;
707
707
  k.style.width = `${R}px`, k.style.minWidth = `${R}px`;
708
708
  }), t.fixed) {
709
- const O = (ee) => window.getComputedStyle(ee).position === "sticky", C = Array.from(
709
+ const O = (te) => window.getComputedStyle(te).position === "sticky", C = Array.from(
710
710
  A.querySelectorAll("th.radar-table__header-cell.leaf-header")
711
- ).filter((ee) => O(ee)), G = V, $ = G ? C.indexOf(G) : -1;
711
+ ).filter((te) => O(te)), X = V, $ = X ? C.indexOf(X) : -1;
712
712
  if ($ !== -1) {
713
- let ee = parseFloat(C[$].style.left || "0") || 0, fe = C[$].getBoundingClientRect().width;
713
+ let te = parseFloat(C[$].style.left || "0") || 0, fe = C[$].getBoundingClientRect().width;
714
714
  for (let ie = $ + 1; ie < C.length; ie++) {
715
- ee += Math.floor(fe), C[ie].style.left = `${ee}px`;
715
+ te += Math.floor(fe), C[ie].style.left = `${te}px`;
716
716
  const K = C[ie].getAttribute("data-column-key");
717
717
  if (K) {
718
- const ne = Q(K);
718
+ const ne = ee(K);
719
719
  A.querySelectorAll(`td[data-column-key="${ne}"]`).forEach((ce) => {
720
720
  const ye = ce;
721
- window.getComputedStyle(ye).position === "sticky" && (ye.style.left = `${ee}px`);
721
+ window.getComputedStyle(ye).position === "sticky" && (ye.style.left = `${te}px`);
722
722
  });
723
723
  }
724
724
  fe = C[ie].getBoundingClientRect().width;
@@ -733,10 +733,10 @@ const Ut = ({
733
733
  }), c == null || c();
734
734
  }, 0);
735
735
  return () => clearTimeout(le);
736
- }, [f, h, t, P, n, p, c]), T = ue((L, Z, R) => {
736
+ }, [f, h, t, P, n, p, c]), T = ue((L, G, R) => {
737
737
  if (L.preventDefault(), o == null || o(), !S.current) return;
738
- const H = S.current.closest("th"), Q = (H == null ? void 0 : H.getBoundingClientRect().width) ?? R;
739
- w(!0), z(L.clientX), J(Q), E(Z), S.current.style.opacity = "1", S.current.classList.add("radar-table__resize-button_active");
738
+ const H = S.current.closest("th"), ee = (H == null ? void 0 : H.getBoundingClientRect().width) ?? R;
739
+ w(!0), z(L.clientX), Z(ee), E(G), S.current.style.opacity = "1", S.current.classList.add("radar-table__resize-button_active");
740
740
  const I = S.current.getBoundingClientRect(), A = s == null ? void 0 : s.current, V = S.current.closest("table");
741
741
  if (A) {
742
742
  const F = A.getBoundingClientRect();
@@ -848,14 +848,14 @@ function Zt({
848
848
  (p) => p.id.toString().startsWith("drop-zone-")
849
849
  );
850
850
  return v.length > 0 ? [v[0]] : [];
851
- }, []), P = ue((m) => m.some((_) => _.children && _.children.length > 0), []), J = ue((m, _) => {
851
+ }, []), P = ue((m) => m.some((_) => _.children && _.children.length > 0), []), Z = ue((m, _) => {
852
852
  const x = (v, p, j = 0, T = null) => {
853
853
  for (const L of v) {
854
854
  if (L.key === p)
855
855
  return { column: L, parent: T, level: j };
856
856
  if (L.children && L.children.length > 0) {
857
- const Z = x(L.children, p, j + 1, L);
858
- if (Z) return Z;
857
+ const G = x(L.children, p, j + 1, L);
858
+ if (G) return G;
859
859
  }
860
860
  }
861
861
  return null;
@@ -863,31 +863,31 @@ function Zt({
863
863
  return x(m, _);
864
864
  }, []), re = ue((m, _) => {
865
865
  var v;
866
- const x = J(_, m);
866
+ const x = Z(_, m);
867
867
  return x && (x.column.fixed || ((v = x.parent) == null ? void 0 : v.fixed)) || !1;
868
- }, [J]), Y = ue((m, _) => {
868
+ }, [Z]), Y = ue((m, _) => {
869
869
  if (m.columnKey === _.columnKey)
870
870
  return !1;
871
871
  const x = re(m.columnKey, i), v = re(_.columnKey, i);
872
872
  if (x !== v)
873
873
  return !1;
874
874
  if (P(i)) {
875
- const p = J(i, m.columnKey), j = J(i, _.columnKey);
875
+ const p = Z(i, m.columnKey), j = Z(i, _.columnKey);
876
876
  if (!p || !j)
877
877
  return !1;
878
878
  const T = m.isLeaf, L = _.isLeaf;
879
879
  if (!T && !L) {
880
- const Z = p.level === j.level, R = p.parent === null && j.parent === null || p.parent !== null && j.parent !== null && p.parent.key === j.parent.key;
881
- return Z && R;
880
+ const G = p.level === j.level, R = p.parent === null && j.parent === null || p.parent !== null && j.parent !== null && p.parent.key === j.parent.key;
881
+ return G && R;
882
882
  }
883
883
  if (T && L) {
884
- const Z = p.level === j.level, R = p.parent === null && j.parent === null || p.parent !== null && j.parent !== null && p.parent.key === j.parent.key;
885
- return Z && R;
884
+ const G = p.level === j.level, R = p.parent === null && j.parent === null || p.parent !== null && j.parent !== null && p.parent.key === j.parent.key;
885
+ return G && R;
886
886
  }
887
887
  return !1;
888
888
  }
889
889
  return !0;
890
- }, [i, P, J, re]), g = ue((m, _, x) => {
890
+ }, [i, P, Z, re]), g = ue((m, _, x) => {
891
891
  var F, le;
892
892
  if (!P(i)) {
893
893
  const N = x.findIndex(($) => $.key === m), O = x.findIndex(($) => $.key === _);
@@ -895,22 +895,22 @@ function Zt({
895
895
  return x;
896
896
  const k = [...x], C = k[N];
897
897
  k.splice(N, 1);
898
- const G = (N < O, O);
899
- return k.splice(G, 0, C), k;
898
+ const X = (N < O, O);
899
+ return k.splice(X, 0, C), k;
900
900
  }
901
- const v = J(i, m), p = J(i, _);
901
+ const v = Z(i, m), p = Z(i, _);
902
902
  if (!v || !p)
903
903
  return x;
904
904
  const j = JSON.parse(JSON.stringify(i)), T = (N, O) => {
905
905
  if (O === null)
906
906
  return { container: N, parentObj: null };
907
- const k = (G) => {
908
- for (const $ of G) {
907
+ const k = (X) => {
908
+ for (const $ of X) {
909
909
  if ($.key === O)
910
910
  return $;
911
911
  if ($.children) {
912
- const ee = k($.children);
913
- if (ee) return ee;
912
+ const te = k($.children);
913
+ if (te) return te;
914
914
  }
915
915
  }
916
916
  return null;
@@ -919,15 +919,15 @@ function Zt({
919
919
  container: (C == null ? void 0 : C.children) || N,
920
920
  parentObj: C
921
921
  };
922
- }, L = ((F = v.parent) == null ? void 0 : F.key) || null, Z = ((le = p.parent) == null ? void 0 : le.key) || null, { container: R } = T(j, L), { container: H } = T(j, Z);
922
+ }, L = ((F = v.parent) == null ? void 0 : F.key) || null, G = ((le = p.parent) == null ? void 0 : le.key) || null, { container: R } = T(j, L), { container: H } = T(j, G);
923
923
  if (R !== H)
924
924
  return x;
925
- const Q = R.findIndex((N) => N.key === m), I = R.findIndex((N) => N.key === _);
926
- if (Q === -1 || I === -1)
925
+ const ee = R.findIndex((N) => N.key === m), I = R.findIndex((N) => N.key === _);
926
+ if (ee === -1 || I === -1)
927
927
  return x;
928
- const [A] = R.splice(Q, 1), V = (Q < I, I);
928
+ const [A] = R.splice(ee, 1), V = (ee < I, I);
929
929
  return R.splice(V, 0, A), j;
930
- }, [i, P, J]), X = ue((m) => {
930
+ }, [i, P, Z]), Q = ue((m) => {
931
931
  const _ = m.active.data.current;
932
932
  o(_);
933
933
  const x = document.querySelector(`[data-column-key="${_.columnKey}"]`);
@@ -958,10 +958,10 @@ function Zt({
958
958
  }
959
959
  const j = Y(v, p);
960
960
  document.body.style.cursor = j ? "copy" : "not-allowed";
961
- const T = document.querySelectorAll(`th[data-column-key="${p.columnKey}"]`), L = P(i), Z = T.length > 0 ? L && p.isLeaf ? T[T.length - 1] : T[0] : null;
962
- if (Z) {
963
- const R = Z.getBoundingClientRect(), H = Z.closest("table");
964
- let Q = R.left;
961
+ const T = document.querySelectorAll(`th[data-column-key="${p.columnKey}"]`), L = P(i), G = T.length > 0 ? L && p.isLeaf ? T[T.length - 1] : T[0] : null;
962
+ if (G) {
963
+ const R = G.getBoundingClientRect(), H = G.closest("table");
964
+ let ee = R.left;
965
965
  const I = n == null ? void 0 : n.current;
966
966
  let A, V;
967
967
  if (I) {
@@ -973,7 +973,7 @@ function Zt({
973
973
  } else
974
974
  A = R.top, V = R.height * 10;
975
975
  E({
976
- left: Q,
976
+ left: ee,
977
977
  top: A,
978
978
  height: V,
979
979
  color: j ? "#5329FF" : "#ff3b3b"
@@ -1008,7 +1008,7 @@ function Zt({
1008
1008
  {
1009
1009
  sensors: q,
1010
1010
  collisionDetection: z,
1011
- onDragStart: X,
1011
+ onDragStart: Q,
1012
1012
  onDragOver: S,
1013
1013
  onDragEnd: M,
1014
1014
  children: [
@@ -1071,11 +1071,11 @@ function Qt({
1071
1071
  draggableColumns: q,
1072
1072
  preset: z,
1073
1073
  headerCellClassName: P,
1074
- headerCellStyle: J,
1074
+ headerCellStyle: Z,
1075
1075
  headerCellWrapperClassName: re,
1076
1076
  headerCellWrapperStyle: Y,
1077
1077
  stickyHeader: g,
1078
- scrollContainerRef: X,
1078
+ scrollContainerRef: Q,
1079
1079
  resizeThrottle: S
1080
1080
  }) {
1081
1081
  var ie;
@@ -1113,7 +1113,7 @@ function Qt({
1113
1113
  return ne(n, K);
1114
1114
  }, [n])(t.key), {
1115
1115
  attributes: L,
1116
- listeners: Z,
1116
+ listeners: G,
1117
1117
  setNodeRef: R,
1118
1118
  isDragging: H
1119
1119
  } = At({
@@ -1130,7 +1130,7 @@ function Qt({
1130
1130
  },
1131
1131
  disabled: !_
1132
1132
  }), {
1133
- setNodeRef: Q,
1133
+ setNodeRef: ee,
1134
1134
  isOver: I
1135
1135
  } = Bt({
1136
1136
  id: `drop-zone-${t.key}`,
@@ -1144,8 +1144,8 @@ function Qt({
1144
1144
  },
1145
1145
  disabled: !1
1146
1146
  }), A = ue((K) => {
1147
- R(K), Q(K);
1148
- }, [R, Q]), V = Ye(() => {
1147
+ R(K), ee(K);
1148
+ }, [R, ee]), V = Ye(() => {
1149
1149
  if (!M || !I) return !1;
1150
1150
  const K = {
1151
1151
  type: "column-drop-zone",
@@ -1197,8 +1197,8 @@ function Qt({
1197
1197
  return W == null ? void 0 : W.groupColor;
1198
1198
  }
1199
1199
  })(t);
1200
- let ee = "currentColor", fe = "currentColor";
1201
- return s.sort_field === t.key && (s.sort_order === "ASC" && (ee = "#5329FF"), s.sort_order === "DESC" && (fe = "#5329FF")), /* @__PURE__ */ l.jsx(
1200
+ let te = "currentColor", fe = "currentColor";
1201
+ return s.sort_field === t.key && (s.sort_order === "ASC" && (te = "#5329FF"), s.sort_order === "DESC" && (fe = "#5329FF")), /* @__PURE__ */ l.jsx(
1202
1202
  "th",
1203
1203
  {
1204
1204
  ref: A,
@@ -1225,7 +1225,7 @@ function Qt({
1225
1225
  zIndex: t.fixed ? 2 : "auto",
1226
1226
  backgroundColor: $,
1227
1227
  cursor: F,
1228
- ...J,
1228
+ ...Z,
1229
1229
  ...t.style
1230
1230
  },
1231
1231
  children: /* @__PURE__ */ l.jsxs(
@@ -1243,7 +1243,7 @@ function Qt({
1243
1243
  {
1244
1244
  className: `radar-table__drag-handle ${H ? "dragging" : ""} ${m ? "" : "group-drag-handle"}`,
1245
1245
  ...L,
1246
- ...Z,
1246
+ ...G,
1247
1247
  style: { cursor: H ? "grabbing" : "grab" },
1248
1248
  children: /* @__PURE__ */ l.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1249
1249
  /* @__PURE__ */ l.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" }),
@@ -1281,7 +1281,7 @@ function Qt({
1281
1281
  className: "radar-table__sort-button",
1282
1282
  onClick: (K) => o(t.key, "ASC"),
1283
1283
  title: `Сортировать по ${t.title}`,
1284
- children: /* @__PURE__ */ l.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__ */ l.jsx("path", { fill: ee, 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" }) })
1284
+ children: /* @__PURE__ */ l.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__ */ l.jsx("path", { fill: te, 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" }) })
1285
1285
  }
1286
1286
  ),
1287
1287
  /* @__PURE__ */ l.jsx(
@@ -1303,7 +1303,7 @@ function Qt({
1303
1303
  currWidth: le,
1304
1304
  currMinWidth: N,
1305
1305
  onResize: a,
1306
- scrollContainerRef: X,
1306
+ scrollContainerRef: Q,
1307
1307
  onResizeStart: c,
1308
1308
  onResizeFrame: f,
1309
1309
  onResizeEnd: w
@@ -1331,11 +1331,11 @@ function lt({
1331
1331
  headerClassName: q,
1332
1332
  headerStyle: z,
1333
1333
  headerRowClassName: P,
1334
- headerRowStyle: J,
1334
+ headerRowStyle: Z,
1335
1335
  headerCellClassName: re,
1336
1336
  headerCellStyle: Y,
1337
1337
  headerCellWrapperClassName: g,
1338
- headerCellWrapperStyle: X,
1338
+ headerCellWrapperStyle: Q,
1339
1339
  stickyHeader: S,
1340
1340
  scrollContainerRef: M,
1341
1341
  sorting: ae,
@@ -1346,13 +1346,13 @@ function lt({
1346
1346
  ze(() => {
1347
1347
  !T && m && v(m);
1348
1348
  }, [m, T]);
1349
- const Z = ue((R, H) => {
1350
- const { sort_field: Q, sort_order: I } = L;
1349
+ const G = ue((R, H) => {
1350
+ const { sort_field: ee, sort_order: I } = L;
1351
1351
  let A = {
1352
1352
  sort_field: R,
1353
1353
  sort_order: H
1354
1354
  };
1355
- Q === R && I === H && (A = {
1355
+ ee === R && I === H && (A = {
1356
1356
  sort_field: void 0,
1357
1357
  sort_order: void 0
1358
1358
  }), T || v(A), r == null || r(A.sort_field, A.sort_order);
@@ -1365,13 +1365,13 @@ function lt({
1365
1365
  const R = () => {
1366
1366
  const H = M == null ? void 0 : M.current;
1367
1367
  if (!H) return;
1368
- const Q = H.clientWidth, I = t.reduce((V, F) => V + ((F == null ? void 0 : F.width) ?? 0), 0);
1369
- if (I > Q) {
1368
+ const ee = H.clientWidth, I = t.reduce((V, F) => V + ((F == null ? void 0 : F.width) ?? 0), 0);
1369
+ if (I > ee) {
1370
1370
  j(t);
1371
1371
  return;
1372
1372
  }
1373
1373
  const A = t.map((V) => {
1374
- const F = ((V == null ? void 0 : V.width) ?? 0) / I, le = Math.floor(Q * F);
1374
+ const F = ((V == null ? void 0 : V.width) ?? 0) / I, le = Math.floor(ee * F);
1375
1375
  return V.width = Math.round(le), V.maxWidth = le * 2, V;
1376
1376
  });
1377
1377
  j([...A]), requestAnimationFrame(() => {
@@ -1382,10 +1382,10 @@ function lt({
1382
1382
  if (!F) return;
1383
1383
  A.forEach((k) => {
1384
1384
  if (k.hidden) return;
1385
- const C = V(k.key), G = k.width || k.minWidth || 200, $ = F.querySelector(`th[data-column-key="${C}"]`);
1386
- $ && ($.style.width = `${G}px`, $.style.minWidth = `${G}px`), F.querySelectorAll(`td[data-column-key="${C}"]`).forEach((fe) => {
1385
+ const C = V(k.key), X = k.width || k.minWidth || 200, $ = F.querySelector(`th[data-column-key="${C}"]`);
1386
+ $ && ($.style.width = `${X}px`, $.style.minWidth = `${X}px`), F.querySelectorAll(`td[data-column-key="${C}"]`).forEach((fe) => {
1387
1387
  const ie = fe;
1388
- ie.style.width = `${G}px`, ie.style.minWidth = `${G}px`;
1388
+ ie.style.width = `${X}px`, ie.style.minWidth = `${X}px`;
1389
1389
  });
1390
1390
  });
1391
1391
  const le = (k) => window.getComputedStyle(k).position === "sticky", O = Array.from(
@@ -1393,18 +1393,18 @@ function lt({
1393
1393
  ).filter((k) => le(k));
1394
1394
  if (O.length > 0) {
1395
1395
  let k = 0;
1396
- O.forEach((C, G) => {
1397
- if (G === 0) {
1398
- const ee = C.getAttribute("data-column-key"), fe = A.find((ie) => ie.key === ee);
1396
+ O.forEach((C, X) => {
1397
+ if (X === 0) {
1398
+ const te = C.getAttribute("data-column-key"), fe = A.find((ie) => ie.key === te);
1399
1399
  k = (fe == null ? void 0 : fe.fixedLeft) || 0, C.style.left = `${k}px`;
1400
1400
  } else {
1401
- const ee = O[G - 1].getBoundingClientRect().width;
1402
- k += Math.floor(ee), C.style.left = `${k}px`;
1401
+ const te = O[X - 1].getBoundingClientRect().width;
1402
+ k += Math.floor(te), C.style.left = `${k}px`;
1403
1403
  }
1404
1404
  const $ = C.getAttribute("data-column-key");
1405
1405
  if ($) {
1406
- const ee = V($);
1407
- F.querySelectorAll(`td[data-column-key="${ee}"]`).forEach((ie) => {
1406
+ const te = V($);
1407
+ F.querySelectorAll(`td[data-column-key="${te}"]`).forEach((ie) => {
1408
1408
  const K = ie;
1409
1409
  window.getComputedStyle(K).position === "sticky" && (K.style.left = `${C.style.left}`);
1410
1410
  });
@@ -1419,7 +1419,7 @@ function lt({
1419
1419
  "tr",
1420
1420
  {
1421
1421
  className: `radar-table__header-row ${E ? E + "__header-row" : ""} ${P || ""}`,
1422
- style: J,
1422
+ style: Z,
1423
1423
  children: p == null ? void 0 : p.map((R, H) => /* @__PURE__ */ l.jsx(
1424
1424
  Qt,
1425
1425
  {
@@ -1428,7 +1428,7 @@ function lt({
1428
1428
  config: t,
1429
1429
  fullConfig: i,
1430
1430
  sorting: L,
1431
- onSort: Z,
1431
+ onSort: G,
1432
1432
  onResize: n,
1433
1433
  onResizeStart: s,
1434
1434
  onResizeFrame: o,
@@ -1440,7 +1440,7 @@ function lt({
1440
1440
  headerCellClassName: re,
1441
1441
  headerCellStyle: Y,
1442
1442
  headerCellWrapperClassName: g,
1443
- headerCellWrapperStyle: X,
1443
+ headerCellWrapperStyle: Q,
1444
1444
  stickyHeader: S,
1445
1445
  scrollContainerRef: M,
1446
1446
  resizeThrottle: _
@@ -1466,7 +1466,7 @@ function er(t) {
1466
1466
  onResize: q,
1467
1467
  onColumnReorder: z,
1468
1468
  sorting: P,
1469
- defaultSorting: J
1469
+ defaultSorting: Z
1470
1470
  } = t, re = i.some((S) => S.children && S.children.length > 0), Y = Ye(() => {
1471
1471
  if (!re)
1472
1472
  return null;
@@ -1507,24 +1507,24 @@ function er(t) {
1507
1507
  }
1508
1508
  } else
1509
1509
  q(S, M);
1510
- }, [i, q]), X = ue((S) => {
1510
+ }, [i, q]), Q = ue((S) => {
1511
1511
  if (!z) return;
1512
1512
  if (!re) {
1513
1513
  z(S);
1514
1514
  return;
1515
1515
  }
1516
1516
  const M = (N, O, k = [], C = null) => {
1517
- for (let G = 0; G < N.length; G++) {
1518
- const $ = N[G], ee = [...k, G];
1517
+ for (let X = 0; X < N.length; X++) {
1518
+ const $ = N[X], te = [...k, X];
1519
1519
  if ($.key === O)
1520
1520
  return {
1521
1521
  column: $,
1522
1522
  parent: C,
1523
- path: ee,
1523
+ path: te,
1524
1524
  level: k.length
1525
1525
  };
1526
1526
  if ($.children && $.children.length > 0) {
1527
- const fe = M($.children, O, ee, $);
1527
+ const fe = M($.children, O, te, $);
1528
1528
  if (fe)
1529
1529
  return fe;
1530
1530
  }
@@ -1542,12 +1542,12 @@ function er(t) {
1542
1542
  return;
1543
1543
  const { draggedKey: _, targetKey: x } = m, v = M(i, _), p = M(i, x);
1544
1544
  if (!v || !p) return;
1545
- const { column: j, parent: T, path: L, level: Z } = v, { column: R, parent: H, path: Q, level: I } = p, A = (N, O) => N.fixed || (O == null ? void 0 : O.fixed) || !1, V = A(j, T), F = A(R, H);
1546
- if (Z !== I || T !== H || T && H && T.key !== H.key || V !== F)
1545
+ const { column: j, parent: T, path: L, level: G } = v, { column: R, parent: H, path: ee, level: I } = p, A = (N, O) => N.fixed || (O == null ? void 0 : O.fixed) || !1, V = A(j, T), F = A(R, H);
1546
+ if (G !== I || T !== H || T && H && T.key !== H.key || V !== F)
1547
1547
  return;
1548
1548
  const le = JSON.parse(JSON.stringify(i));
1549
- if (Z === 0) {
1550
- const N = L[0], O = Q[0], [k] = le.splice(N, 1);
1549
+ if (G === 0) {
1550
+ const N = L[0], O = ee[0], [k] = le.splice(N, 1);
1551
1551
  le.splice(O, 0, k);
1552
1552
  } else {
1553
1553
  const N = L.slice(0, -1);
@@ -1556,11 +1556,11 @@ function er(t) {
1556
1556
  $ === 0 ? O = O[N[$]] : O = O.children[N[$]];
1557
1557
  if (!O || !O.children)
1558
1558
  return;
1559
- const k = L[L.length - 1], C = Q[Q.length - 1];
1559
+ const k = L[L.length - 1], C = ee[ee.length - 1];
1560
1560
  if (k < 0 || k >= O.children.length || C < 0 || C >= O.children.length)
1561
1561
  return;
1562
- const [G] = O.children.splice(k, 1);
1563
- O.children.splice(C, 0, G);
1562
+ const [X] = O.children.splice(k, 1);
1563
+ O.children.splice(C, 0, X);
1564
1564
  }
1565
1565
  z(le);
1566
1566
  }, [i, z, Y]);
@@ -1585,7 +1585,7 @@ function er(t) {
1585
1585
  onResizeStart: t.onResizeStart,
1586
1586
  onResizeFrame: t.onResizeFrame,
1587
1587
  onResizeEnd: t.onResizeEnd,
1588
- onColumnReorder: X,
1588
+ onColumnReorder: Q,
1589
1589
  resizeable: t.resizeable,
1590
1590
  draggableColumns: t.draggableColumns,
1591
1591
  preset: r,
@@ -1605,7 +1605,7 @@ function er(t) {
1605
1605
  sortIcon: t.sortIcon,
1606
1606
  scrollContainerRef: t.scrollContainerRef,
1607
1607
  sorting: P,
1608
- defaultSorting: J,
1608
+ defaultSorting: Z,
1609
1609
  resizeThrottle: t.resizeThrottle
1610
1610
  },
1611
1611
  S
@@ -1621,7 +1621,7 @@ function er(t) {
1621
1621
  top: o && typeof o == "number" ? o : 0,
1622
1622
  ...s
1623
1623
  },
1624
- children: /* @__PURE__ */ l.jsx(lt, { ...t, fullConfig: i, onResize: g, onResizeStart: t.onResizeStart, onResizeFrame: t.onResizeFrame, onResizeEnd: t.onResizeEnd, onColumnReorder: X, scrollContainerRef: t.scrollContainerRef, sorting: P, defaultSorting: J, resizeThrottle: t.resizeThrottle })
1624
+ children: /* @__PURE__ */ l.jsx(lt, { ...t, fullConfig: i, onResize: g, onResizeStart: t.onResizeStart, onResizeFrame: t.onResizeFrame, onResizeEnd: t.onResizeEnd, onColumnReorder: Q, scrollContainerRef: t.scrollContainerRef, sorting: P, defaultSorting: Z, resizeThrottle: t.resizeThrottle })
1625
1625
  }
1626
1626
  );
1627
1627
  }
@@ -1644,18 +1644,18 @@ function Ne(t, i, r) {
1644
1644
  let h;
1645
1645
  r.key && ((a = r.debug) != null && a.call(r)) && (h = Date.now());
1646
1646
  const E = t();
1647
- if (!(E.length !== n.length || E.some((P, J) => n[J] !== P)))
1647
+ if (!(E.length !== n.length || E.some((P, Z) => n[Z] !== P)))
1648
1648
  return s;
1649
1649
  n = E;
1650
1650
  let z;
1651
1651
  if (r.key && ((c = r.debug) != null && c.call(r)) && (z = Date.now()), s = i(...E), r.key && ((f = r.debug) != null && f.call(r))) {
1652
- const P = Math.round((Date.now() - h) * 100) / 100, J = Math.round((Date.now() - z) * 100) / 100, re = J / 16, Y = (g, X) => {
1653
- for (g = String(g); g.length < X; )
1652
+ const P = Math.round((Date.now() - h) * 100) / 100, Z = Math.round((Date.now() - z) * 100) / 100, re = Z / 16, Y = (g, Q) => {
1653
+ for (g = String(g); g.length < Q; )
1654
1654
  g = " " + g;
1655
1655
  return g;
1656
1656
  };
1657
1657
  console.info(
1658
- `%c⏱ ${Y(J, 5)} /${Y(P, 5)} ms`,
1658
+ `%c⏱ ${Y(Z, 5)} /${Y(P, 5)} ms`,
1659
1659
  `
1660
1660
  font-size: .6rem;
1661
1661
  font-weight: bold;
@@ -1914,11 +1914,11 @@ class dr {
1914
1914
  this.pendingMeasuredCacheIndexes = [];
1915
1915
  const w = this.measurementsCache.slice(0, f);
1916
1916
  for (let h = f; h < r; h++) {
1917
- const E = o(h), q = this.options.lanes === 1 ? w[h - 1] : this.getFurthestMeasurement(w, h), z = q ? q.end + this.options.gap : n + s, P = c.get(E), J = typeof P == "number" ? P : this.options.estimateSize(h), re = z + J, Y = q ? q.lane : h % this.options.lanes;
1917
+ const E = o(h), q = this.options.lanes === 1 ? w[h - 1] : this.getFurthestMeasurement(w, h), z = q ? q.end + this.options.gap : n + s, P = c.get(E), Z = typeof P == "number" ? P : this.options.estimateSize(h), re = z + Z, Y = q ? q.lane : h % this.options.lanes;
1918
1918
  w[h] = {
1919
1919
  index: h,
1920
1920
  start: z,
1921
- size: J,
1921
+ size: Z,
1922
1922
  end: re,
1923
1923
  key: E,
1924
1924
  lane: Y
@@ -2210,11 +2210,11 @@ function yr({
2210
2210
  indentSize: q,
2211
2211
  expandIcon: z,
2212
2212
  bodyClassName: P,
2213
- bodyStyle: J,
2213
+ bodyStyle: Z,
2214
2214
  bodyRowClassName: re,
2215
2215
  bodyRowStyle: Y,
2216
2216
  bodyCellClassName: g,
2217
- bodyCellStyle: X,
2217
+ bodyCellStyle: Q,
2218
2218
  bodyCellWrapperClassName: S,
2219
2219
  bodyCellWrapperStyle: M,
2220
2220
  noDataRender: ae,
@@ -2223,18 +2223,18 @@ function yr({
2223
2223
  virtualization: x
2224
2224
  }) {
2225
2225
  var Re;
2226
- const [v, p] = we(null), [j, T] = we(null), [L, Z] = we(() => h && h.length > 0 ? new Set(h) : /* @__PURE__ */ new Set()), R = qe.useMemo(() => w ? new Set(w) : L, [w, L]), H = ue((u) => {
2227
- w || Z(new Set(u)), E == null || E(u);
2228
- }, [w, E]), Q = ue((u) => n ? n(u) : JSON.stringify(u), [n]), I = qe.useMemo(() => {
2226
+ const [v, p] = we(null), [j, T] = we(null), [L, G] = we(() => h && h.length > 0 ? new Set(h) : /* @__PURE__ */ new Set()), R = qe.useMemo(() => w ? new Set(w) : L, [w, L]), H = ue((u) => {
2227
+ w || G(new Set(u)), E == null || E(u);
2228
+ }, [w, E]), ee = ue((u) => n ? n(u) : JSON.stringify(u), [n]), I = qe.useMemo(() => {
2229
2229
  if (!f) return [];
2230
- const u = [], D = (U, b, te) => {
2230
+ const u = [], D = (U, b, J) => {
2231
2231
  U.forEach((ge, de) => {
2232
- const ke = Q(ge), xe = ge == null ? void 0 : ge.children, Ce = xe && xe.length > 0;
2232
+ const ke = ee(ge), xe = ge == null ? void 0 : ge.children, Ce = xe && xe.length > 0;
2233
2233
  u.push({
2234
2234
  record: ge,
2235
2235
  key: ke,
2236
2236
  type: b === 0 ? "parent" : "child",
2237
- parentKey: te,
2237
+ parentKey: J,
2238
2238
  depth: b,
2239
2239
  indexWithinGroup: de,
2240
2240
  groupSize: U.length
@@ -2242,7 +2242,7 @@ function yr({
2242
2242
  });
2243
2243
  };
2244
2244
  return D(i, 0), u;
2245
- }, [f, i, Q, R]), A = qe.useMemo(() => {
2245
+ }, [f, i, ee, R]), A = qe.useMemo(() => {
2246
2246
  const u = /* @__PURE__ */ new Map();
2247
2247
  return I.forEach((D) => u.set(D.key, D)), u;
2248
2248
  }, [I]);
@@ -2250,19 +2250,19 @@ function yr({
2250
2250
  mr && _ && (() => {
2251
2251
  const D = document.querySelectorAll(".radar-table__body-row");
2252
2252
  document.querySelectorAll(".radar-table__header-row").forEach((b) => {
2253
- const te = b.querySelectorAll(".radar-table__header-cell-wrapper");
2253
+ const J = b.querySelectorAll(".radar-table__header-cell-wrapper");
2254
2254
  let ge = 0;
2255
- te.forEach((de) => {
2255
+ J.forEach((de) => {
2256
2256
  de.style.height = "auto", ge = Math.max(ge, de.offsetHeight);
2257
- }), te.forEach((de) => {
2257
+ }), J.forEach((de) => {
2258
2258
  de.style.height = ge + "px";
2259
2259
  });
2260
2260
  }), D.forEach((b) => {
2261
- const te = b.querySelectorAll(".radar-table__body-cell-wrapper");
2261
+ const J = b.querySelectorAll(".radar-table__body-cell-wrapper");
2262
2262
  let ge = 0;
2263
- te.forEach((de) => {
2263
+ J.forEach((de) => {
2264
2264
  de.style.height = "auto", ge = Math.max(ge, de.offsetHeight);
2265
- }), te.forEach((de) => {
2265
+ }), J.forEach((de) => {
2266
2266
  de.style.height = ge + "px";
2267
2267
  });
2268
2268
  });
@@ -2270,20 +2270,20 @@ function yr({
2270
2270
  }, [i, r]);
2271
2271
  const F = ((u) => {
2272
2272
  const D = [], U = (b) => {
2273
- b.forEach((te) => {
2274
- te.children && te.children.length > 0 ? U(te.children) : D.push(te);
2273
+ b.forEach((J) => {
2274
+ J.children && J.children.length > 0 ? U(J.children) : D.push(J);
2275
2275
  });
2276
2276
  };
2277
2277
  return U(u), D;
2278
2278
  })(r), le = (u) => {
2279
2279
  if (u.groupColor)
2280
2280
  return u.groupColor;
2281
- const D = (b, te) => {
2281
+ const D = (b, J) => {
2282
2282
  for (const ge of b)
2283
2283
  if (ge.children) {
2284
- if (ge.children.some((ke) => ke.key === te))
2284
+ if (ge.children.some((ke) => ke.key === J))
2285
2285
  return ge;
2286
- const de = D(ge.children, te);
2286
+ const de = D(ge.children, J);
2287
2287
  if (de) return de;
2288
2288
  }
2289
2289
  return null;
@@ -2312,9 +2312,9 @@ function yr({
2312
2312
  overflow: hidden;
2313
2313
  text-overflow: ellipsis;
2314
2314
  `;
2315
- const te = F[0];
2316
- if (te) {
2317
- const de = U[te.key];
2315
+ const J = F[0];
2316
+ if (J) {
2317
+ const de = U[J.key];
2318
2318
  b.textContent = (de == null ? void 0 : de.toString()) || "Строка";
2319
2319
  } else
2320
2320
  b.textContent = "Строка";
@@ -2334,11 +2334,11 @@ function yr({
2334
2334
  }
2335
2335
  const U = A.get(v), b = A.get(D);
2336
2336
  if (!U || !b) return;
2337
- const te = U.depth === b.depth && U.parentKey === b.parentKey;
2338
- T(te && v !== D ? D : null);
2337
+ const J = U.depth === b.depth && U.parentKey === b.parentKey;
2338
+ T(J && v !== D ? D : null);
2339
2339
  }, [v, f, A]), C = ue((u) => {
2340
2340
  u.preventDefault(), T(null);
2341
- }, []), G = ue(() => {
2341
+ }, []), X = ue(() => {
2342
2342
  p(null), T(null), document.body.style.cursor = "";
2343
2343
  }, []), $ = ue((u, D) => {
2344
2344
  if (u.preventDefault(), !v || v === D)
@@ -2354,12 +2354,12 @@ function yr({
2354
2354
  const U = A.get(v), b = A.get(D);
2355
2355
  if (!U || !b || U.depth !== b.depth || U.parentKey !== b.parentKey)
2356
2356
  return;
2357
- const te = (de, ke) => {
2357
+ const J = (de, ke) => {
2358
2358
  if (ke === U.parentKey) {
2359
2359
  const xe = de.findIndex(
2360
- (Ie) => Q(Ie) === U.key
2360
+ (Ie) => ee(Ie) === U.key
2361
2361
  ), Ce = de.findIndex(
2362
- (Ie) => Q(Ie) === b.key
2362
+ (Ie) => ee(Ie) === b.key
2363
2363
  );
2364
2364
  if (xe === -1 || Ce === -1) return de;
2365
2365
  const Oe = [...de], [Fe] = Oe.splice(xe, 1);
@@ -2369,15 +2369,15 @@ function yr({
2369
2369
  const Ce = xe == null ? void 0 : xe.children;
2370
2370
  return Ce && Ce.length > 0 ? {
2371
2371
  ...xe,
2372
- children: te(Ce, Q(xe))
2372
+ children: J(Ce, ee(xe))
2373
2373
  } : xe;
2374
2374
  });
2375
- }, ge = te(i);
2375
+ }, ge = J(i);
2376
2376
  o == null || o(ge), p(null), T(null), document.body.style.cursor = "";
2377
- }, [v, i, Q, o, f, A]);
2377
+ }, [v, i, ee, o, f, A]);
2378
2378
  if (i.length === 0) {
2379
2379
  let u;
2380
- return m && (u = ((Re = m.current) == null ? void 0 : Re.clientWidth) + "px"), /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: J, children: /* @__PURE__ */ l.jsx(
2380
+ return m && (u = ((Re = m.current) == null ? void 0 : Re.clientWidth) + "px"), /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: Z, children: /* @__PURE__ */ l.jsx(
2381
2381
  "tr",
2382
2382
  {
2383
2383
  className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re}`,
@@ -2388,7 +2388,7 @@ function yr({
2388
2388
  className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${g}`,
2389
2389
  colSpan: F.length,
2390
2390
  style: {
2391
- ...X
2391
+ ...Q
2392
2392
  },
2393
2393
  children: [
2394
2394
  ae && ae(),
@@ -2399,7 +2399,7 @@ function yr({
2399
2399
  }
2400
2400
  ) });
2401
2401
  }
2402
- const ee = f ? I : i.map((u) => ({
2402
+ const te = f ? I : i.map((u) => ({
2403
2403
  record: u,
2404
2404
  key: n ? n(u) : JSON.stringify(u),
2405
2405
  type: "parent",
@@ -2412,7 +2412,7 @@ function yr({
2412
2412
  }, [R, H]);
2413
2413
  function ie({ column: u, index: D, row: U, item: b }) {
2414
2414
  var He, Ue;
2415
- const te = Ee(null), [ge, de] = we(0), ke = u.fixed && !u.width ? 200 : u.width, xe = u.fixed && !u.minWidth ? 200 : u.minWidth;
2415
+ const J = Ee(null), [ge, de] = we(0), ke = u.fixed && !u.width ? 200 : u.width, xe = u.fixed && !u.minWidth ? 200 : u.minWidth;
2416
2416
  let Ce = !1;
2417
2417
  c && c.idx.includes(u.dataIndex) && (Ce = !0), c && c.idx.length === 0 && (Ce = !0), vt(() => {
2418
2418
  if (!u.fixed) {
@@ -2433,7 +2433,7 @@ function yr({
2433
2433
  return u.hidden ? null : /* @__PURE__ */ l.jsx(
2434
2434
  "td",
2435
2435
  {
2436
- ref: te,
2436
+ ref: J,
2437
2437
  "data-column-key": u.key,
2438
2438
  className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${g}`,
2439
2439
  style: {
@@ -2443,7 +2443,7 @@ function yr({
2443
2443
  left: ge,
2444
2444
  borderRight: u.fixed && !((He = F[D + 1]) != null && He.fixed) ? "1px solid #E8E8E8" : "none",
2445
2445
  cursor: Fe && Ae ? "pointer" : "default",
2446
- ...X
2446
+ ...Q
2447
2447
  },
2448
2448
  onClick: Fe && Ae ? () => fe(U.key) : void 0,
2449
2449
  children: /* @__PURE__ */ l.jsxs(
@@ -2480,7 +2480,7 @@ function yr({
2480
2480
  );
2481
2481
  }
2482
2482
  if (!(x != null && x.enabled))
2483
- return /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: J, children: ee.map((u) => {
2483
+ return /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: Z, children: te.map((u) => {
2484
2484
  const D = u.record, U = u.key;
2485
2485
  return /* @__PURE__ */ l.jsx(
2486
2486
  "tr",
@@ -2493,37 +2493,42 @@ function yr({
2493
2493
  onDragEnter: (b) => k(b, U),
2494
2494
  onDragLeave: C,
2495
2495
  onDrop: (b) => $(b, U),
2496
- onDragEnd: G,
2497
- children: F.map((b, te) => /* @__PURE__ */ l.jsx(ie, { column: b, index: te, row: u, item: D }, b.key))
2496
+ onDragEnd: X,
2497
+ children: F.map((b, J) => /* @__PURE__ */ l.jsx(ie, { column: b, index: J, row: u, item: D }, b.key))
2498
2498
  },
2499
2499
  U
2500
2500
  );
2501
2501
  }) });
2502
2502
  const K = x.estimateSize ?? 48, ne = x.overscan ?? 12, W = hr({
2503
- count: ee.length,
2503
+ count: te.length,
2504
2504
  getScrollElement: () => m == null ? void 0 : m.current,
2505
2505
  estimateSize: () => K,
2506
2506
  overscan: ne,
2507
2507
  measureElement: (u) => u.getBoundingClientRect().height
2508
2508
  }), ce = W.getVirtualItems(), ye = W.getTotalSize(), pe = ce.length ? ce[0].start : 0, ve = ce.length ? ye - ce[ce.length - 1].end : 0;
2509
- return /* @__PURE__ */ l.jsxs("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: J, children: [
2509
+ return /* @__PURE__ */ l.jsxs("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: Z, children: [
2510
2510
  pe > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: pe }, children: /* @__PURE__ */ l.jsx("td", { colSpan: F.length }) }),
2511
2511
  ce.map((u) => {
2512
- const D = ee[u.index], U = D.record, b = D.key;
2512
+ const D = te[u.index];
2513
+ if (!D) return null;
2514
+ const U = D.record, b = D.key;
2513
2515
  return /* @__PURE__ */ l.jsx(
2514
2516
  "tr",
2515
2517
  {
2516
- ref: W.measureElement,
2518
+ "data-index": u.index,
2519
+ ref: (J) => {
2520
+ J && W.measureElement(J);
2521
+ },
2517
2522
  className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${v === b ? "dragging" : ""} ${j === b ? "drag-over" : ""} ${f ? D.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
2518
2523
  style: Y,
2519
2524
  draggable: t,
2520
- onDragStart: (te) => N(te, b),
2525
+ onDragStart: (J) => N(J, b),
2521
2526
  onDragOver: O,
2522
- onDragEnter: (te) => k(te, b),
2527
+ onDragEnter: (J) => k(J, b),
2523
2528
  onDragLeave: C,
2524
- onDrop: (te) => $(te, b),
2525
- onDragEnd: G,
2526
- children: F.map((te, ge) => /* @__PURE__ */ l.jsx(ie, { column: te, index: ge, row: D, item: U }, te.key))
2529
+ onDrop: (J) => $(J, b),
2530
+ onDragEnd: X,
2531
+ children: F.map((J, ge) => /* @__PURE__ */ l.jsx(ie, { column: J, index: ge, row: D, item: U }, J.key))
2527
2532
  },
2528
2533
  b
2529
2534
  );
@@ -2537,23 +2542,23 @@ const gt = ({ config: t }) => {
2537
2542
  f(t);
2538
2543
  }, [t]);
2539
2544
  const w = Math.ceil(i / a), h = (w - 1) * a + 1, E = w * a, q = (g) => {
2540
- const X = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
2541
- !/^[0-9]$/.test(g.key) && !X.includes(g.key) && g.preventDefault();
2545
+ const Q = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
2546
+ !/^[0-9]$/.test(g.key) && !Q.includes(g.key) && g.preventDefault();
2542
2547
  }, z = (g) => {
2543
2548
  if (g.key === "Enter") {
2544
- const X = parseInt(g.currentTarget.value);
2545
- X > 0 && X <= n && (f({ ...t, current: X }), s == null || s(X, r), g.currentTarget.value = "");
2549
+ const Q = parseInt(g.currentTarget.value);
2550
+ Q > 0 && Q <= n && (f({ ...t, current: Q }), s == null || s(Q, r), g.currentTarget.value = "");
2546
2551
  }
2547
2552
  }, P = (g) => {
2548
2553
  const S = g.target.value.replace(/[^0-9]/g, "");
2549
2554
  g.target.value = S;
2550
- }, J = (g) => {
2555
+ }, Z = (g) => {
2551
2556
  g.preventDefault();
2552
2557
  const S = g.clipboardData.getData("text").replace(/[^0-9]/g, ""), M = g.target, ae = M.selectionStart || 0, m = M.selectionEnd || 0, _ = M.value.substring(0, ae) + S + M.value.substring(m);
2553
2558
  M.value = _, M.setSelectionRange(ae + S.length, ae + S.length);
2554
2559
  }, re = (g) => {
2555
- const X = g.currentTarget.id;
2556
- X === "pagination_left_button" && i > 1 && (f({ ...t, current: i - 1 }), s == null || s(i - 1, r)), X === "pagination_right_button" && i < n && (f({ ...t, current: i + 1 }), s == null || s(i + 1, r));
2560
+ const Q = g.currentTarget.id;
2561
+ Q === "pagination_left_button" && i > 1 && (f({ ...t, current: i - 1 }), s == null || s(i - 1, r)), Q === "pagination_right_button" && i < n && (f({ ...t, current: i + 1 }), s == null || s(i + 1, r));
2557
2562
  }, Y = (g) => {
2558
2563
  f({ ...t, current: g }), s == null || s(g, r);
2559
2564
  };
@@ -2567,10 +2572,10 @@ const gt = ({ config: t }) => {
2567
2572
  },
2568
2573
  children: [
2569
2574
  /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: re, title: "Назад", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
2570
- Array.from({ length: n }, (g, X) => X + 1).map((g) => {
2571
- const X = i === g;
2575
+ Array.from({ length: n }, (g, Q) => Q + 1).map((g) => {
2576
+ const Q = i === g;
2572
2577
  if (g >= h && g <= E)
2573
- return X ? /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: g }, g) : /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button", onClick: () => Y(g), children: g }, g);
2578
+ return Q ? /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: g }, g) : /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button", onClick: () => Y(g), children: g }, g);
2574
2579
  }),
2575
2580
  /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: re, title: "Вперёд", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
2576
2581
  ]
@@ -2584,7 +2589,7 @@ const gt = ({ config: t }) => {
2584
2589
  className: "radar-table__pagination-input",
2585
2590
  onKeyDown: q,
2586
2591
  onChange: P,
2587
- onPaste: J,
2592
+ onPaste: Z,
2588
2593
  onKeyUp: (g) => z(g)
2589
2594
  }
2590
2595
  ),
@@ -2611,22 +2616,22 @@ function vr(t = !1) {
2611
2616
  if (!t || !a.current) return;
2612
2617
  a.current = !1;
2613
2618
  const E = n.current, q = performance.now() - o.current, z = [];
2614
- let P = 0, J = 0;
2619
+ let P = 0, Z = 0;
2615
2620
  if (E.length > 1) {
2616
2621
  for (let S = 1; S < E.length; S++) {
2617
2622
  const M = E[S] - E[S - 1];
2618
2623
  z.push(M);
2619
2624
  }
2620
- P = z[z.length - 1], J = 1e3 / P;
2621
- const re = z.reduce((S, M) => S + M, 0) / z.length, Y = 1e3 / re, g = Math.min(...z), X = Math.max(...z);
2625
+ P = z[z.length - 1], Z = 1e3 / P;
2626
+ const re = z.reduce((S, M) => S + M, 0) / z.length, Y = 1e3 / re, g = Math.min(...z), Q = Math.max(...z);
2622
2627
  r({
2623
2628
  totalFrames: E.length,
2624
2629
  avgFrameTime: re,
2625
2630
  minFrameTime: g,
2626
- maxFrameTime: X,
2631
+ maxFrameTime: Q,
2627
2632
  avgFps: Y,
2628
2633
  lastFrameTime: P,
2629
- lastFps: J,
2634
+ lastFps: Z,
2630
2635
  totalDuration: q
2631
2636
  });
2632
2637
  }
@@ -2666,11 +2671,11 @@ function Sr({
2666
2671
  onSort: q,
2667
2672
  onRowReorder: z,
2668
2673
  onColumnReorder: P,
2669
- customCellRender: J,
2674
+ customCellRender: Z,
2670
2675
  noDataRender: re,
2671
2676
  sortIcon: Y,
2672
2677
  expandIcon: g,
2673
- recalculateRowHeight: X = !1,
2678
+ recalculateRowHeight: Q = !1,
2674
2679
  // sorting props
2675
2680
  sorting: S,
2676
2681
  defaultSorting: M,
@@ -2684,10 +2689,10 @@ function Sr({
2684
2689
  style: j,
2685
2690
  headerClassName: T = "",
2686
2691
  headerStyle: L,
2687
- headerCellClassName: Z = "",
2692
+ headerCellClassName: G = "",
2688
2693
  headerCellStyle: R,
2689
2694
  headerRowClassName: H = "",
2690
- headerRowStyle: Q,
2695
+ headerRowStyle: ee,
2691
2696
  headerCellWrapperClassName: I = "",
2692
2697
  headerCellWrapperStyle: A,
2693
2698
  bodyClassName: V = "",
@@ -2697,9 +2702,9 @@ function Sr({
2697
2702
  bodyCellClassName: O = "",
2698
2703
  bodyCellStyle: k,
2699
2704
  bodyCellWrapperClassName: C = "",
2700
- bodyCellWrapperStyle: G,
2705
+ bodyCellWrapperStyle: X,
2701
2706
  headerGroupRowClassName: $,
2702
- headerGroupRowStyle: ee,
2707
+ headerGroupRowStyle: te,
2703
2708
  headerGroupCellClassName: fe,
2704
2709
  headerGroupCellStyle: ie,
2705
2710
  headerGroupCellWrapperClassName: K,
@@ -2738,7 +2743,7 @@ function Sr({
2738
2743
  onSort: q,
2739
2744
  onRowReorder: z,
2740
2745
  onColumnReorder: P,
2741
- customCellRender: J,
2746
+ customCellRender: Z,
2742
2747
  sortIcon: Y,
2743
2748
  expandIcon: g,
2744
2749
  treeMode: ae,
@@ -2750,10 +2755,10 @@ function Sr({
2750
2755
  style: j,
2751
2756
  headerClassName: T,
2752
2757
  headerStyle: L,
2753
- headerCellClassName: Z,
2758
+ headerCellClassName: G,
2754
2759
  headerCellStyle: R,
2755
2760
  headerRowClassName: H,
2756
- headerRowStyle: Q,
2761
+ headerRowStyle: ee,
2757
2762
  headerCellWrapperClassName: I,
2758
2763
  headerCellWrapperStyle: A,
2759
2764
  bodyClassName: V,
@@ -2763,9 +2768,9 @@ function Sr({
2763
2768
  bodyCellClassName: O,
2764
2769
  bodyCellStyle: k,
2765
2770
  bodyCellWrapperClassName: C,
2766
- bodyCellWrapperStyle: G,
2771
+ bodyCellWrapperStyle: X,
2767
2772
  headerGroupRowClassName: $,
2768
- headerGroupRowStyle: ee,
2773
+ headerGroupRowStyle: te,
2769
2774
  headerGroupCellClassName: fe,
2770
2775
  headerGroupCellStyle: ie,
2771
2776
  headerGroupCellWrapperClassName: K,
@@ -2773,7 +2778,7 @@ function Sr({
2773
2778
  paginationContainerClassName: W,
2774
2779
  paginationContainerStyle: ce,
2775
2780
  noDataRender: re,
2776
- recalculateRowHeight: X,
2781
+ recalculateRowHeight: Q,
2777
2782
  sorting: S,
2778
2783
  defaultSorting: M,
2779
2784
  resizeThrottle: ye,
@@ -2805,7 +2810,7 @@ function Sr({
2805
2810
  onSort: q,
2806
2811
  onRowReorder: z,
2807
2812
  onColumnReorder: P,
2808
- customCellRender: J,
2813
+ customCellRender: Z,
2809
2814
  sortIcon: Y,
2810
2815
  expandIcon: g,
2811
2816
  treeMode: ae,
@@ -2817,10 +2822,10 @@ function Sr({
2817
2822
  style: j,
2818
2823
  headerClassName: T,
2819
2824
  headerStyle: L,
2820
- headerCellClassName: Z,
2825
+ headerCellClassName: G,
2821
2826
  headerCellStyle: R,
2822
2827
  headerRowClassName: H,
2823
- headerRowStyle: Q,
2828
+ headerRowStyle: ee,
2824
2829
  headerCellWrapperClassName: I,
2825
2830
  headerCellWrapperStyle: A,
2826
2831
  bodyClassName: V,
@@ -2830,9 +2835,9 @@ function Sr({
2830
2835
  bodyCellClassName: O,
2831
2836
  bodyCellStyle: k,
2832
2837
  bodyCellWrapperClassName: C,
2833
- bodyCellWrapperStyle: G,
2838
+ bodyCellWrapperStyle: X,
2834
2839
  headerGroupRowClassName: $,
2835
- headerGroupRowStyle: ee,
2840
+ headerGroupRowStyle: te,
2836
2841
  headerGroupCellClassName: fe,
2837
2842
  headerGroupCellStyle: ie,
2838
2843
  headerGroupCellWrapperClassName: K,
@@ -2840,7 +2845,7 @@ function Sr({
2840
2845
  paginationContainerClassName: W,
2841
2846
  paginationContainerStyle: ce,
2842
2847
  noDataRender: re,
2843
- recalculateRowHeight: X,
2848
+ recalculateRowHeight: Q,
2844
2849
  sorting: S,
2845
2850
  defaultSorting: M,
2846
2851
  resizeThrottle: ye,
@@ -2869,11 +2874,11 @@ function pt(t) {
2869
2874
  onResizeStart: q,
2870
2875
  onResizeFrame: z,
2871
2876
  onResizeEnd: P,
2872
- onSort: J,
2877
+ onSort: Z,
2873
2878
  onRowReorder: re,
2874
2879
  onColumnReorder: Y,
2875
2880
  customCellRender: g,
2876
- sortIcon: X,
2881
+ sortIcon: Q,
2877
2882
  expandIcon: S,
2878
2883
  treeMode: M,
2879
2884
  expandedRowKeys: ae,
@@ -2885,10 +2890,10 @@ function pt(t) {
2885
2890
  headerClassName: j,
2886
2891
  headerStyle: T,
2887
2892
  headerCellClassName: L,
2888
- headerCellStyle: Z,
2893
+ headerCellStyle: G,
2889
2894
  headerRowClassName: R,
2890
2895
  headerRowStyle: H,
2891
- headerCellWrapperClassName: Q,
2896
+ headerCellWrapperClassName: ee,
2892
2897
  headerCellWrapperStyle: I,
2893
2898
  bodyClassName: A,
2894
2899
  bodyStyle: V,
@@ -2898,9 +2903,9 @@ function pt(t) {
2898
2903
  bodyCellStyle: O,
2899
2904
  bodyCellWrapperClassName: k,
2900
2905
  bodyCellWrapperStyle: C,
2901
- headerGroupRowClassName: G,
2906
+ headerGroupRowClassName: X,
2902
2907
  headerGroupRowStyle: $,
2903
- headerGroupCellClassName: ee,
2908
+ headerGroupCellClassName: te,
2904
2909
  headerGroupCellStyle: fe,
2905
2910
  headerGroupCellWrapperClassName: ie,
2906
2911
  headerGroupCellWrapperStyle: K,
@@ -2925,25 +2930,25 @@ function pt(t) {
2925
2930
  {
2926
2931
  draggableColumns: w,
2927
2932
  config: n,
2928
- onSort: J,
2933
+ onSort: Z,
2929
2934
  resizeable: c,
2930
2935
  onResize: E,
2931
2936
  onResizeStart: q,
2932
2937
  onResizeFrame: z,
2933
2938
  onResizeEnd: P,
2934
- sortIcon: X,
2939
+ sortIcon: Q,
2935
2940
  preset: r,
2936
2941
  headerClassName: j,
2937
2942
  headerStyle: T,
2938
2943
  headerRowClassName: R,
2939
2944
  headerRowStyle: H,
2940
2945
  headerCellClassName: L,
2941
- headerCellStyle: Z,
2942
- headerCellWrapperClassName: Q,
2946
+ headerCellStyle: G,
2947
+ headerCellWrapperClassName: ee,
2943
2948
  headerCellWrapperStyle: I,
2944
- headerGroupRowClassName: G,
2949
+ headerGroupRowClassName: X,
2945
2950
  headerGroupRowStyle: $,
2946
- headerGroupCellClassName: ee,
2951
+ headerGroupCellClassName: te,
2947
2952
  headerGroupCellStyle: fe,
2948
2953
  headerGroupCellWrapperClassName: ie,
2949
2954
  headerGroupCellWrapperStyle: K,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "radar-ui",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "A powerful React table component with drag & drop, resizing, sorting, grouped columns, and pagination",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",