radar-ui 1.1.33 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +453 -442
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23,11 +23,11 @@ var at;
|
|
|
23
23
|
function Ht() {
|
|
24
24
|
if (at) return Be;
|
|
25
25
|
at = 1;
|
|
26
|
-
var
|
|
26
|
+
var n = qe, i = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
27
|
function a(c, u, j) {
|
|
28
28
|
var g, T = {}, q = null, X = null;
|
|
29
29
|
j !== void 0 && (q = "" + j), u.key !== void 0 && (q = "" + u.key), u.ref !== void 0 && (X = u.ref);
|
|
30
|
-
for (g in u)
|
|
30
|
+
for (g in u) r.call(u, g) && !o.hasOwnProperty(g) && (T[g] = u[g]);
|
|
31
31
|
if (c && c.defaultProps) for (g in u = c.defaultProps, u) T[g] === void 0 && (T[g] = u[g]);
|
|
32
32
|
return { $$typeof: i, type: c, key: q, ref: X, props: T, _owner: s.current };
|
|
33
33
|
}
|
|
@@ -46,14 +46,14 @@ var Ve = {};
|
|
|
46
46
|
var lt;
|
|
47
47
|
function Kt() {
|
|
48
48
|
return lt || (lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
var
|
|
49
|
+
var n = qe, i = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = 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"), u = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), X = Symbol.for("react.offscreen"), U = Symbol.iterator, K = "@@iterator";
|
|
50
50
|
function ae(e) {
|
|
51
51
|
if (e === null || typeof e != "object")
|
|
52
52
|
return null;
|
|
53
53
|
var d = U && e[U] || e[K];
|
|
54
54
|
return typeof d == "function" ? d : null;
|
|
55
55
|
}
|
|
56
|
-
var I =
|
|
56
|
+
var I = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
57
|
function f(e) {
|
|
58
58
|
{
|
|
59
59
|
for (var d = arguments.length, C = new Array(d > 1 ? d - 1 : 0), F = 1; F < d; F++)
|
|
@@ -74,7 +74,7 @@ function Kt() {
|
|
|
74
74
|
var k = !1, B = !1, ie = !1, y = !1, _ = !1, m;
|
|
75
75
|
m = Symbol.for("react.module.reference");
|
|
76
76
|
function v(e) {
|
|
77
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
77
|
+
return !!(typeof e == "string" || typeof e == "function" || e === r || e === o || _ || e === s || e === j || e === g || y || e === X || k || B || ie || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === T || e.$$typeof === a || e.$$typeof === c || e.$$typeof === u || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
@@ -98,7 +98,7 @@ function Kt() {
|
|
|
98
98
|
if (typeof e == "string")
|
|
99
99
|
return e;
|
|
100
100
|
switch (e) {
|
|
101
|
-
case
|
|
101
|
+
case r:
|
|
102
102
|
return "Fragment";
|
|
103
103
|
case t:
|
|
104
104
|
return "Portal";
|
|
@@ -213,8 +213,8 @@ function Kt() {
|
|
|
213
213
|
}
|
|
214
214
|
var V = !1, M;
|
|
215
215
|
{
|
|
216
|
-
var
|
|
217
|
-
M = new
|
|
216
|
+
var ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
+
M = new ne();
|
|
218
218
|
}
|
|
219
219
|
function ee(e, d) {
|
|
220
220
|
if (!e || V)
|
|
@@ -370,7 +370,7 @@ function Kt() {
|
|
|
370
370
|
function W(e) {
|
|
371
371
|
return "" + e;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function re(e) {
|
|
374
374
|
if (w(e))
|
|
375
375
|
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", z(e)), W(e);
|
|
376
376
|
}
|
|
@@ -453,7 +453,7 @@ function Kt() {
|
|
|
453
453
|
function Ue(e, d, C, F, de) {
|
|
454
454
|
{
|
|
455
455
|
var fe, oe = {}, se = null, _e = null;
|
|
456
|
-
C !== void 0 && (
|
|
456
|
+
C !== void 0 && (re(C), se = "" + C), De(d) && (re(d.key), se = "" + d.key), xe(d) && (_e = d.ref, $e(d, de));
|
|
457
457
|
for (fe in d)
|
|
458
458
|
he.call(d, fe) && !Ce.hasOwnProperty(fe) && (oe[fe] = d[fe]);
|
|
459
459
|
if (e && e.defaultProps) {
|
|
@@ -509,7 +509,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
509
509
|
return d;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function nt(e, d) {
|
|
513
513
|
{
|
|
514
514
|
if (!e._store || e._store.validated || e.key != null)
|
|
515
515
|
return;
|
|
@@ -522,14 +522,14 @@ Check the top-level render call using <` + C + ">.");
|
|
|
522
522
|
e && e._owner && e._owner !== We.current && (F = " It was passed a child from " + x(e._owner.type) + "."), we(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, F), we(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function rt(e, d) {
|
|
526
526
|
{
|
|
527
527
|
if (typeof e != "object")
|
|
528
528
|
return;
|
|
529
529
|
if ($(e))
|
|
530
530
|
for (var C = 0; C < e.length; C++) {
|
|
531
531
|
var F = e[C];
|
|
532
|
-
Fe(F) &&
|
|
532
|
+
Fe(F) && nt(F, d);
|
|
533
533
|
}
|
|
534
534
|
else if (Fe(e))
|
|
535
535
|
e._store && (e._store.validated = !0);
|
|
@@ -537,7 +537,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
537
537
|
var de = ae(e);
|
|
538
538
|
if (typeof de == "function" && de !== e.entries)
|
|
539
539
|
for (var fe = de.call(e), oe; !(oe = fe.next()).done; )
|
|
540
|
-
Fe(oe.value) &&
|
|
540
|
+
Fe(oe.value) && nt(oe.value, d);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -599,12 +599,12 @@ Check the top-level render call using <` + C + ">.");
|
|
|
599
599
|
if (F)
|
|
600
600
|
if ($(Se)) {
|
|
601
601
|
for (var Pe = 0; Pe < Se.length; Pe++)
|
|
602
|
-
|
|
602
|
+
rt(Se[Pe], e);
|
|
603
603
|
Object.freeze && Object.freeze(Se);
|
|
604
604
|
} else
|
|
605
605
|
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
|
-
|
|
607
|
+
rt(Se, e);
|
|
608
608
|
}
|
|
609
609
|
if (he.call(d, "key")) {
|
|
610
610
|
var Le = x(e), Ee = Object.keys(d).filter(function(Dt) {
|
|
@@ -620,7 +620,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
<%s key={someKey} {...props} />`, Ge, Le, Rt, Le), st[Le + Ge] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
return e ===
|
|
623
|
+
return e === r ? Et(pe) : wt(pe), pe;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
function St(e, d, C) {
|
|
@@ -630,37 +630,37 @@ React keys must be passed directly to JSX without using spread:
|
|
|
630
630
|
return it(e, d, C, !1);
|
|
631
631
|
}
|
|
632
632
|
var jt = kt, Ot = St;
|
|
633
|
-
Ve.Fragment =
|
|
633
|
+
Ve.Fragment = r, Ve.jsx = jt, Ve.jsxs = Ot;
|
|
634
634
|
}()), Ve;
|
|
635
635
|
}
|
|
636
636
|
process.env.NODE_ENV === "production" ? Xe.exports = Ht() : Xe.exports = Kt();
|
|
637
637
|
var l = Xe.exports;
|
|
638
638
|
const Jt = ({
|
|
639
|
-
column:
|
|
639
|
+
column: n,
|
|
640
640
|
currWidth: i,
|
|
641
641
|
currMinWidth: t,
|
|
642
|
-
onResize:
|
|
642
|
+
onResize: r,
|
|
643
643
|
scrollContainerRef: s
|
|
644
644
|
}) => {
|
|
645
645
|
const [o, a] = ye(!1), [c, u] = ye(null), [j, g] = ye(0), [T, q] = ye(0), [X, U] = ye(null), K = je(null);
|
|
646
646
|
je(0);
|
|
647
647
|
const ae = je(!1), I = je(null), f = je(0), Y = je(0), k = je(null), B = je(null), ie = ue((m) => {
|
|
648
|
-
!o || !c || !
|
|
648
|
+
!o || !c || !n || (B.current && cancelAnimationFrame(B.current), B.current = requestAnimationFrame(() => {
|
|
649
649
|
var G;
|
|
650
|
-
const v = m.clientX - j, p =
|
|
650
|
+
const v = m.clientX - j, p = n.minWidth || 50;
|
|
651
651
|
let b = T + v;
|
|
652
|
-
b < p && (b = p),
|
|
652
|
+
b < p && (b = p), n.maxWidth && b > n.maxWidth && (b = n.maxWidth), f.current = b;
|
|
653
653
|
const x = b - T;
|
|
654
654
|
k.current && (k.current.style.transform = `translateX(${x}px)`);
|
|
655
655
|
const O = (L) => {
|
|
656
656
|
var ce;
|
|
657
657
|
return typeof window < "u" && ((ce = window.CSS) != null && ce.escape) ? window.CSS.escape(L) : L.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
658
|
-
}, P = O(
|
|
658
|
+
}, P = O(n.key), D = (G = I.current) == null ? void 0 : G.closest("table");
|
|
659
659
|
if (!D) return;
|
|
660
660
|
const H = D.querySelector(`th[data-column-key="${P}"]`);
|
|
661
661
|
if (H && (H.style.width = `${b}px`, H.style.minWidth = `${b}px`), D.querySelectorAll(`td[data-column-key="${P}"]`).forEach((L) => {
|
|
662
662
|
L.style.width = `${b}px`;
|
|
663
|
-
}),
|
|
663
|
+
}), n.fixed) {
|
|
664
664
|
const L = (E) => window.getComputedStyle(E).position === "sticky", R = Array.from(
|
|
665
665
|
D.querySelectorAll("th.radar-table__header-cell.leaf-header")
|
|
666
666
|
).filter((E) => L(E)), J = H, S = J ? R.indexOf(J) : -1;
|
|
@@ -671,8 +671,8 @@ const Jt = ({
|
|
|
671
671
|
const Q = R[N].getAttribute("data-column-key");
|
|
672
672
|
if (Q) {
|
|
673
673
|
const V = O(Q);
|
|
674
|
-
D.querySelectorAll(`td[data-column-key="${V}"]`).forEach((
|
|
675
|
-
|
|
674
|
+
D.querySelectorAll(`td[data-column-key="${V}"]`).forEach((ne) => {
|
|
675
|
+
ne.style.left = `${E}px`;
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
678
|
A = R[N].getBoundingClientRect().width;
|
|
@@ -680,12 +680,12 @@ const Jt = ({
|
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
}));
|
|
683
|
-
}, [o, j, T, c, s,
|
|
683
|
+
}, [o, j, T, c, s, n, k, B, f]), y = ue(() => {
|
|
684
684
|
var G;
|
|
685
685
|
if (I.current.style.opacity = "", !o || !c) return;
|
|
686
|
-
const m =
|
|
686
|
+
const m = n.minWidth || 50;
|
|
687
687
|
let v = f.current || T;
|
|
688
|
-
v < m && (v = m),
|
|
688
|
+
v < m && (v = m), n != null && n.maxWidth && v > n.maxWidth && (v = n.maxWidth);
|
|
689
689
|
const p = v, b = c;
|
|
690
690
|
B.current && (cancelAnimationFrame(B.current), B.current = null), K.current && (clearInterval(K.current), K.current = null), ae.current = !1, k.current && (k.current.style.transform = "translateX(0px)"), a(!1), g(0), q(0), u(null), U(null), f.current = 0, Y.current = 0, document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", y);
|
|
691
691
|
const x = (L) => {
|
|
@@ -696,7 +696,7 @@ const Jt = ({
|
|
|
696
696
|
const D = P.querySelector(`th[data-column-key="${O}"]`);
|
|
697
697
|
if (D && (D.style.width = `${p}px`, D.style.minWidth = `${p}px`), P.querySelectorAll(`td[data-column-key="${O}"]`).forEach((L) => {
|
|
698
698
|
L.style.width = `${p}px`;
|
|
699
|
-
}),
|
|
699
|
+
}), n.fixed) {
|
|
700
700
|
const L = (E) => window.getComputedStyle(E).position === "sticky", R = Array.from(
|
|
701
701
|
P.querySelectorAll("th.radar-table__header-cell.leaf-header")
|
|
702
702
|
).filter((E) => L(E)), J = D, S = J ? R.indexOf(J) : -1;
|
|
@@ -707,8 +707,8 @@ const Jt = ({
|
|
|
707
707
|
const Q = R[N].getAttribute("data-column-key");
|
|
708
708
|
if (Q) {
|
|
709
709
|
const V = x(Q);
|
|
710
|
-
P.querySelectorAll(`td[data-column-key="${V}"]`).forEach((
|
|
711
|
-
|
|
710
|
+
P.querySelectorAll(`td[data-column-key="${V}"]`).forEach((ne) => {
|
|
711
|
+
ne.style.left = `${E}px`;
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
A = R[N].getBoundingClientRect().width;
|
|
@@ -719,11 +719,11 @@ const Jt = ({
|
|
|
719
719
|
var R;
|
|
720
720
|
const L = (R = I == null ? void 0 : I.current) == null ? void 0 : R.closest("th"), ce = (L == null ? void 0 : L.getBoundingClientRect().width) ?? p;
|
|
721
721
|
Tt(() => {
|
|
722
|
-
|
|
722
|
+
r == null || r(b, ce);
|
|
723
723
|
});
|
|
724
724
|
}, 0);
|
|
725
725
|
return () => clearTimeout(Z);
|
|
726
|
-
}, [o, c,
|
|
726
|
+
}, [o, c, n, T, r, ie]), _ = ue((m, v, p) => {
|
|
727
727
|
if (m.preventDefault(), !I.current) return;
|
|
728
728
|
const b = I.current.closest("th"), x = (b == null ? void 0 : b.getBoundingClientRect().width) ?? p;
|
|
729
729
|
a(!0), g(m.clientX), q(x), u(v), I.current.style.opacity = "1", I.current.classList.add("radar-table__resize-button_active");
|
|
@@ -752,7 +752,7 @@ const Jt = ({
|
|
|
752
752
|
{
|
|
753
753
|
ref: I,
|
|
754
754
|
className: "radar-table__resize-button",
|
|
755
|
-
onMouseDown: (m) => _(m,
|
|
755
|
+
onMouseDown: (m) => _(m, n.key, i || t || 200),
|
|
756
756
|
title: "Изменить ширину колонки",
|
|
757
757
|
children: /* @__PURE__ */ l.jsx("div", {})
|
|
758
758
|
}
|
|
@@ -772,13 +772,13 @@ const Jt = ({
|
|
|
772
772
|
}
|
|
773
773
|
)
|
|
774
774
|
] });
|
|
775
|
-
}, Ut = ({ text:
|
|
776
|
-
const [t,
|
|
775
|
+
}, Ut = ({ text: n, children: i }) => {
|
|
776
|
+
const [t, r] = ye(!1), [s, o] = ye("left"), a = je(null), c = () => {
|
|
777
777
|
if (a.current) {
|
|
778
778
|
const u = a.current.getBoundingClientRect(), j = window.innerWidth, g = 250, T = 20, q = j - u.left, X = u.right;
|
|
779
779
|
q < g + T && X > g + T ? o("right") : o("left");
|
|
780
780
|
}
|
|
781
|
-
|
|
781
|
+
r(!0);
|
|
782
782
|
};
|
|
783
783
|
return /* @__PURE__ */ l.jsxs(
|
|
784
784
|
"button",
|
|
@@ -786,7 +786,7 @@ const Jt = ({
|
|
|
786
786
|
ref: a,
|
|
787
787
|
className: "radar-table__tooltip-button",
|
|
788
788
|
onMouseOver: c,
|
|
789
|
-
onMouseOut: () =>
|
|
789
|
+
onMouseOut: () => r(!1),
|
|
790
790
|
children: [
|
|
791
791
|
i || /* @__PURE__ */ l.jsxs("svg", { width: "1.5em", height: "1em", viewBox: "0 0 24 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
792
792
|
/* @__PURE__ */ l.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" }),
|
|
@@ -796,24 +796,24 @@ const Jt = ({
|
|
|
796
796
|
"div",
|
|
797
797
|
{
|
|
798
798
|
className: `radar-table__tooltip-text ${t ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${s}`,
|
|
799
|
-
children:
|
|
799
|
+
children: n
|
|
800
800
|
}
|
|
801
801
|
)
|
|
802
802
|
]
|
|
803
803
|
}
|
|
804
804
|
);
|
|
805
805
|
}, bt = $t(null), Yt = () => {
|
|
806
|
-
const
|
|
807
|
-
return
|
|
806
|
+
const n = It(bt);
|
|
807
|
+
return n || {
|
|
808
808
|
activeColumn: null,
|
|
809
809
|
isValidDropZone: () => !1
|
|
810
810
|
};
|
|
811
811
|
};
|
|
812
812
|
function Zt({
|
|
813
|
-
children:
|
|
813
|
+
children: n,
|
|
814
814
|
fullConfig: i,
|
|
815
815
|
onColumnReorder: t,
|
|
816
|
-
scrollContainerRef:
|
|
816
|
+
scrollContainerRef: r
|
|
817
817
|
}) {
|
|
818
818
|
const [s, o] = ye(null), [a, c] = ye(40), [u, j] = ye(200), [g, T] = ye(null), q = Lt(
|
|
819
819
|
ot(Nt, {
|
|
@@ -952,7 +952,7 @@ function Zt({
|
|
|
952
952
|
if (P) {
|
|
953
953
|
const D = P.getBoundingClientRect(), H = P.closest("table");
|
|
954
954
|
let Z = D.left;
|
|
955
|
-
const G =
|
|
955
|
+
const G = r == null ? void 0 : r.current;
|
|
956
956
|
let L, ce;
|
|
957
957
|
if (G) {
|
|
958
958
|
const R = G.getBoundingClientRect();
|
|
@@ -1002,7 +1002,7 @@ function Zt({
|
|
|
1002
1002
|
onDragOver: k,
|
|
1003
1003
|
onDragEnd: B,
|
|
1004
1004
|
children: [
|
|
1005
|
-
|
|
1005
|
+
n,
|
|
1006
1006
|
/* @__PURE__ */ l.jsx(zt, { dropAnimation: null, children: s ? /* @__PURE__ */ l.jsx(
|
|
1007
1007
|
"div",
|
|
1008
1008
|
{
|
|
@@ -1037,19 +1037,19 @@ function Zt({
|
|
|
1037
1037
|
}
|
|
1038
1038
|
) });
|
|
1039
1039
|
}
|
|
1040
|
-
const Gt = (
|
|
1040
|
+
const Gt = (n) => {
|
|
1041
1041
|
var i;
|
|
1042
|
-
return typeof window < "u" && ((i = window.CSS) != null && i.escape) ? window.CSS.escape(
|
|
1043
|
-
}, Xt = (
|
|
1042
|
+
return typeof window < "u" && ((i = window.CSS) != null && i.escape) ? window.CSS.escape(n) : n.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
1043
|
+
}, Xt = (n) => {
|
|
1044
1044
|
if (typeof document > "u") return null;
|
|
1045
|
-
const i = `th[data-column-key="${Gt(
|
|
1045
|
+
const i = `th[data-column-key="${Gt(n)}"]`, t = document.querySelector(i);
|
|
1046
1046
|
return t ? t.getBoundingClientRect().width : null;
|
|
1047
1047
|
};
|
|
1048
1048
|
function Qt({
|
|
1049
|
-
column:
|
|
1049
|
+
column: n,
|
|
1050
1050
|
index: i,
|
|
1051
1051
|
config: t,
|
|
1052
|
-
fullConfig:
|
|
1052
|
+
fullConfig: r,
|
|
1053
1053
|
sorting: s,
|
|
1054
1054
|
onSort: o,
|
|
1055
1055
|
onResize: a,
|
|
@@ -1066,48 +1066,48 @@ function Qt({
|
|
|
1066
1066
|
resizeThrottle: I
|
|
1067
1067
|
}) {
|
|
1068
1068
|
var V;
|
|
1069
|
-
if (
|
|
1069
|
+
if (n.hidden)
|
|
1070
1070
|
return null;
|
|
1071
|
-
const { activeColumn: f, isValidDropZone: Y } = Yt(), k = !
|
|
1072
|
-
Ye(() => (
|
|
1071
|
+
const { activeColumn: f, isValidDropZone: Y } = Yt(), k = !n.children || n.children.length === 0;
|
|
1072
|
+
Ye(() => (r == null ? void 0 : r.some((M) => M.children && M.children.length > 0)) || !1, [r]);
|
|
1073
1073
|
const B = j, y = ue((M) => {
|
|
1074
|
-
if (!
|
|
1075
|
-
const
|
|
1074
|
+
if (!r) return null;
|
|
1075
|
+
const ne = (ee, ve, be = null) => {
|
|
1076
1076
|
for (const le of ee) {
|
|
1077
1077
|
if (le.key === ve)
|
|
1078
1078
|
return be;
|
|
1079
1079
|
if (le.children && le.children.length > 0) {
|
|
1080
|
-
const he =
|
|
1080
|
+
const he = ne(le.children, ve, le);
|
|
1081
1081
|
if (he !== null) return he;
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
return null;
|
|
1085
1085
|
};
|
|
1086
|
-
return
|
|
1087
|
-
}, [
|
|
1088
|
-
if (!
|
|
1089
|
-
const
|
|
1086
|
+
return ne(r, M);
|
|
1087
|
+
}, [r])(n.key), _ = n.fixed || (y == null ? void 0 : y.fixed) || !1, v = ue((M) => {
|
|
1088
|
+
if (!r) return 0;
|
|
1089
|
+
const ne = (ee, ve, be = 0) => {
|
|
1090
1090
|
for (const le of ee) {
|
|
1091
1091
|
if (le.key === ve)
|
|
1092
1092
|
return be;
|
|
1093
1093
|
if (le.children && le.children.length > 0) {
|
|
1094
|
-
const he =
|
|
1094
|
+
const he = ne(le.children, ve, be + 1);
|
|
1095
1095
|
if (he !== -1) return he;
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
return -1;
|
|
1099
1099
|
};
|
|
1100
|
-
return
|
|
1101
|
-
}, [
|
|
1100
|
+
return ne(r, M);
|
|
1101
|
+
}, [r])(n.key), {
|
|
1102
1102
|
attributes: p,
|
|
1103
1103
|
listeners: b,
|
|
1104
1104
|
setNodeRef: x,
|
|
1105
1105
|
isDragging: O
|
|
1106
1106
|
} = Ft({
|
|
1107
|
-
id: `column-${
|
|
1107
|
+
id: `column-${n.key}`,
|
|
1108
1108
|
data: {
|
|
1109
1109
|
type: "table-column",
|
|
1110
|
-
columnKey:
|
|
1110
|
+
columnKey: n.key,
|
|
1111
1111
|
isFixed: _,
|
|
1112
1112
|
parentKey: y == null ? void 0 : y.key,
|
|
1113
1113
|
level: v,
|
|
@@ -1120,10 +1120,10 @@ function Qt({
|
|
|
1120
1120
|
setNodeRef: P,
|
|
1121
1121
|
isOver: D
|
|
1122
1122
|
} = Bt({
|
|
1123
|
-
id: `drop-zone-${
|
|
1123
|
+
id: `drop-zone-${n.key}`,
|
|
1124
1124
|
data: {
|
|
1125
1125
|
type: "column-drop-zone",
|
|
1126
|
-
columnKey:
|
|
1126
|
+
columnKey: n.key,
|
|
1127
1127
|
isFixed: _,
|
|
1128
1128
|
accepts: [_ ? "fixed" : "non-fixed"],
|
|
1129
1129
|
isLeaf: k
|
|
@@ -1136,60 +1136,60 @@ function Qt({
|
|
|
1136
1136
|
if (!f || !D) return !1;
|
|
1137
1137
|
const M = {
|
|
1138
1138
|
type: "column-drop-zone",
|
|
1139
|
-
columnKey:
|
|
1139
|
+
columnKey: n.key,
|
|
1140
1140
|
isFixed: _,
|
|
1141
1141
|
accepts: [_ ? "fixed" : "non-fixed"],
|
|
1142
1142
|
isLeaf: k
|
|
1143
1143
|
};
|
|
1144
1144
|
return Y(f, M);
|
|
1145
|
-
}, [f, D,
|
|
1146
|
-
let M =
|
|
1145
|
+
}, [f, D, n.key, _, Y, k]), G = Ye(() => O ? "grabbing" : D && f ? Z ? "copy" : "not-allowed" : "default", [O, D, f, Z]), L = n.fixed && !n.width ? 200 : n.width, ce = n.fixed && !n.minWidth ? 200 : n.minWidth, R = ue(() => {
|
|
1146
|
+
let M = n.fixedLeft || 0;
|
|
1147
1147
|
if (!_)
|
|
1148
1148
|
return M;
|
|
1149
|
-
for (let
|
|
1150
|
-
const ee = t[
|
|
1149
|
+
for (let ne = 0; ne < i; ne++) {
|
|
1150
|
+
const ee = t[ne];
|
|
1151
1151
|
ee.fixed && !ee.hidden && (M += (ee.width || ee.minWidth || 200) + (ee.fixedLeft || 0));
|
|
1152
1152
|
}
|
|
1153
1153
|
return M;
|
|
1154
|
-
}, [
|
|
1154
|
+
}, [n.fixedLeft, t, i, _]), [J, S] = ye(() => R());
|
|
1155
1155
|
Qe(() => {
|
|
1156
1156
|
if (!_) {
|
|
1157
1157
|
S(R());
|
|
1158
1158
|
return;
|
|
1159
1159
|
}
|
|
1160
|
-
let M =
|
|
1161
|
-
for (let
|
|
1162
|
-
const ee = t[
|
|
1160
|
+
let M = n.fixedLeft || 0;
|
|
1161
|
+
for (let ne = 0; ne < i; ne++) {
|
|
1162
|
+
const ee = t[ne];
|
|
1163
1163
|
if (ee.fixed && !ee.hidden) {
|
|
1164
1164
|
const ve = ee.width || ee.minWidth || 200, be = Xt(ee.key);
|
|
1165
1165
|
M += Math.floor(be ?? ve) + (ee.fixedLeft || 0) - 0.05;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
S(M);
|
|
1169
|
-
}, [
|
|
1169
|
+
}, [n.fixedLeft, n.width, n.minWidth, t, i, _, R]);
|
|
1170
1170
|
const A = ((M) => {
|
|
1171
1171
|
if (M.groupColor)
|
|
1172
1172
|
return M.groupColor;
|
|
1173
|
-
if (
|
|
1174
|
-
const
|
|
1173
|
+
if (r) {
|
|
1174
|
+
const ne = (ve, be) => {
|
|
1175
1175
|
for (const le of ve)
|
|
1176
1176
|
if (le.children) {
|
|
1177
1177
|
if (le.children.some((Oe) => Oe.key === be))
|
|
1178
1178
|
return le;
|
|
1179
|
-
const he =
|
|
1179
|
+
const he = ne(le.children, be);
|
|
1180
1180
|
if (he) return he;
|
|
1181
1181
|
}
|
|
1182
1182
|
return null;
|
|
1183
|
-
}, ee =
|
|
1183
|
+
}, ee = ne(r, M.key);
|
|
1184
1184
|
return ee == null ? void 0 : ee.groupColor;
|
|
1185
1185
|
}
|
|
1186
|
-
})(
|
|
1186
|
+
})(n);
|
|
1187
1187
|
let N = "currentColor", Q = "currentColor";
|
|
1188
|
-
return s.sort_field ===
|
|
1188
|
+
return s.sort_field === n.key && (s.sort_order === "ASC" && (N = "#5329FF"), s.sort_order === "DESC" && (Q = "#5329FF")), /* @__PURE__ */ l.jsx(
|
|
1189
1189
|
"th",
|
|
1190
1190
|
{
|
|
1191
1191
|
ref: H,
|
|
1192
|
-
"data-column-key":
|
|
1192
|
+
"data-column-key": n.key,
|
|
1193
1193
|
className: `
|
|
1194
1194
|
radar-table__header-cell
|
|
1195
1195
|
${g ? g + "__header-cell" : ""}
|
|
@@ -1199,21 +1199,21 @@ function Qt({
|
|
|
1199
1199
|
${Z && D ? "valid-drop-zone" : ""}
|
|
1200
1200
|
${D && !Z ? "invalid-drop-zone" : ""}
|
|
1201
1201
|
${k ? "leaf-header" : "group-header"}
|
|
1202
|
-
${
|
|
1203
|
-
colSpan:
|
|
1204
|
-
rowSpan:
|
|
1202
|
+
${n.className || ""}`,
|
|
1203
|
+
colSpan: n.colSpan || 1,
|
|
1204
|
+
rowSpan: n.rowSpan || 1,
|
|
1205
1205
|
style: {
|
|
1206
1206
|
width: L,
|
|
1207
1207
|
//minWidth: currWidth,
|
|
1208
|
-
position:
|
|
1208
|
+
position: n.fixed ? "sticky" : "static",
|
|
1209
1209
|
top: K && typeof K == "number" ? K : 0,
|
|
1210
1210
|
left: J,
|
|
1211
|
-
borderRight:
|
|
1212
|
-
zIndex:
|
|
1211
|
+
borderRight: n.fixed && !((V = t[i + 1]) != null && V.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1212
|
+
zIndex: n.fixed ? 2 : "auto",
|
|
1213
1213
|
backgroundColor: A,
|
|
1214
1214
|
cursor: G,
|
|
1215
1215
|
...q,
|
|
1216
|
-
...
|
|
1216
|
+
...n.style
|
|
1217
1217
|
},
|
|
1218
1218
|
children: /* @__PURE__ */ l.jsxs(
|
|
1219
1219
|
"div",
|
|
@@ -1245,29 +1245,29 @@ function Qt({
|
|
|
1245
1245
|
/* @__PURE__ */ l.jsx("div", { className: "radar-table__header-cell-text-wrapper", children: /* @__PURE__ */ l.jsx(
|
|
1246
1246
|
"span",
|
|
1247
1247
|
{
|
|
1248
|
-
title:
|
|
1248
|
+
title: n.title,
|
|
1249
1249
|
onClick: () => {
|
|
1250
|
-
const { sort_field: M, sort_order:
|
|
1250
|
+
const { sort_field: M, sort_order: ne } = s;
|
|
1251
1251
|
let ee = {
|
|
1252
|
-
columnKey:
|
|
1252
|
+
columnKey: n.key,
|
|
1253
1253
|
direction: "ASC"
|
|
1254
1254
|
};
|
|
1255
|
-
M ===
|
|
1255
|
+
M === n.key ? ne === "ASC" ? ee.direction = "DESC" : ne === "DESC" && (ee.columnKey = void 0, ee.direction = void 0) : (ee.columnKey = n.key, ee.direction = "ASC"), o(ee.columnKey, ee.direction);
|
|
1256
1256
|
},
|
|
1257
1257
|
style: {
|
|
1258
|
-
cursor:
|
|
1258
|
+
cursor: n.sortable ? "pointer" : "default",
|
|
1259
1259
|
userSelect: "none"
|
|
1260
1260
|
},
|
|
1261
|
-
children:
|
|
1261
|
+
children: n.title
|
|
1262
1262
|
}
|
|
1263
1263
|
) }),
|
|
1264
|
-
|
|
1264
|
+
n.sortable && !c && k && /* @__PURE__ */ l.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
|
|
1265
1265
|
/* @__PURE__ */ l.jsx(
|
|
1266
1266
|
"button",
|
|
1267
1267
|
{
|
|
1268
1268
|
className: "radar-table__sort-button",
|
|
1269
|
-
onClick: (M) => o(
|
|
1270
|
-
title: `Сортировать по ${
|
|
1269
|
+
onClick: (M) => o(n.key, "ASC"),
|
|
1270
|
+
title: `Сортировать по ${n.title}`,
|
|
1271
1271
|
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: N, 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" }) })
|
|
1272
1272
|
}
|
|
1273
1273
|
),
|
|
@@ -1275,18 +1275,18 @@ function Qt({
|
|
|
1275
1275
|
"button",
|
|
1276
1276
|
{
|
|
1277
1277
|
className: "radar-table__sort-button",
|
|
1278
|
-
onClick: (M) => o(
|
|
1279
|
-
title: `Сортировать по ${
|
|
1278
|
+
onClick: (M) => o(n.key, "DESC"),
|
|
1279
|
+
title: `Сортировать по ${n.title}`,
|
|
1280
1280
|
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: Q, 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" }) })
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] }),
|
|
1284
|
-
|
|
1285
|
-
|
|
1284
|
+
n.sortable && c && k && c(s.sort_field, s.sort_order),
|
|
1285
|
+
n.tooltipText && /* @__PURE__ */ l.jsx(Ut, { text: n.tooltipText, children: n.tooltipIcon }),
|
|
1286
1286
|
u && k && /* @__PURE__ */ l.jsx(
|
|
1287
1287
|
Jt,
|
|
1288
1288
|
{
|
|
1289
|
-
column:
|
|
1289
|
+
column: n,
|
|
1290
1290
|
currWidth: L,
|
|
1291
1291
|
currMinWidth: ce,
|
|
1292
1292
|
onResize: a,
|
|
@@ -1300,10 +1300,10 @@ function Qt({
|
|
|
1300
1300
|
);
|
|
1301
1301
|
}
|
|
1302
1302
|
function ct({
|
|
1303
|
-
config:
|
|
1303
|
+
config: n,
|
|
1304
1304
|
fullConfig: i,
|
|
1305
1305
|
onSort: t,
|
|
1306
|
-
onResize:
|
|
1306
|
+
onResize: r,
|
|
1307
1307
|
onColumnReorder: s,
|
|
1308
1308
|
sortIcon: o,
|
|
1309
1309
|
resizeable: a,
|
|
@@ -1339,19 +1339,19 @@ function ct({
|
|
|
1339
1339
|
}), v || y(H), t == null || t(H.sort_field, H.sort_order);
|
|
1340
1340
|
}, [p, t, v]);
|
|
1341
1341
|
return Qe(() => {
|
|
1342
|
-
if (
|
|
1343
|
-
m(
|
|
1342
|
+
if (n.some((x) => x.children || !a)) {
|
|
1343
|
+
m(n);
|
|
1344
1344
|
return;
|
|
1345
1345
|
} else {
|
|
1346
1346
|
const x = () => {
|
|
1347
1347
|
const O = f == null ? void 0 : f.current;
|
|
1348
1348
|
if (!O) return;
|
|
1349
|
-
const P = O.clientWidth, D =
|
|
1349
|
+
const P = O.clientWidth, D = n.reduce((Z, G) => Z + ((G == null ? void 0 : G.width) ?? 0), 0);
|
|
1350
1350
|
if (D > P) {
|
|
1351
|
-
m(
|
|
1351
|
+
m(n);
|
|
1352
1352
|
return;
|
|
1353
1353
|
}
|
|
1354
|
-
const H =
|
|
1354
|
+
const H = n.map((Z) => {
|
|
1355
1355
|
const G = ((Z == null ? void 0 : Z.width) ?? 0) / D, L = Math.floor(P * G);
|
|
1356
1356
|
return Z.width = Math.round(L), Z.maxWidth = L * 2, Z;
|
|
1357
1357
|
});
|
|
@@ -1394,7 +1394,7 @@ function ct({
|
|
|
1394
1394
|
};
|
|
1395
1395
|
return x(), window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
|
|
1396
1396
|
}
|
|
1397
|
-
}, [
|
|
1397
|
+
}, [n]), /* @__PURE__ */ l.jsx(
|
|
1398
1398
|
"tr",
|
|
1399
1399
|
{
|
|
1400
1400
|
className: `radar-table__header-row ${u ? u + "__header-row" : ""} ${T || ""}`,
|
|
@@ -1404,11 +1404,11 @@ function ct({
|
|
|
1404
1404
|
{
|
|
1405
1405
|
column: x,
|
|
1406
1406
|
index: O,
|
|
1407
|
-
config:
|
|
1407
|
+
config: n,
|
|
1408
1408
|
fullConfig: i,
|
|
1409
1409
|
sorting: p,
|
|
1410
1410
|
onSort: b,
|
|
1411
|
-
onResize:
|
|
1411
|
+
onResize: r,
|
|
1412
1412
|
sortIcon: o,
|
|
1413
1413
|
resizeable: a,
|
|
1414
1414
|
draggableColumns: c,
|
|
@@ -1426,11 +1426,11 @@ function ct({
|
|
|
1426
1426
|
}
|
|
1427
1427
|
);
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function en(n) {
|
|
1430
1430
|
const {
|
|
1431
1431
|
config: i,
|
|
1432
1432
|
preset: t,
|
|
1433
|
-
headerClassName:
|
|
1433
|
+
headerClassName: r,
|
|
1434
1434
|
headerStyle: s,
|
|
1435
1435
|
stickyHeader: o,
|
|
1436
1436
|
headerRowClassName: a,
|
|
@@ -1443,7 +1443,7 @@ function er(r) {
|
|
|
1443
1443
|
onColumnReorder: X,
|
|
1444
1444
|
sorting: U,
|
|
1445
1445
|
defaultSorting: K
|
|
1446
|
-
} =
|
|
1446
|
+
} = n, ae = i.some((k) => k.children && k.children.length > 0), I = Ye(() => {
|
|
1447
1447
|
if (!ae)
|
|
1448
1448
|
return null;
|
|
1449
1449
|
const k = {}, B = (ie, y = 0) => {
|
|
@@ -1500,9 +1500,9 @@ function er(r) {
|
|
|
1500
1500
|
level: A.length
|
|
1501
1501
|
};
|
|
1502
1502
|
if (V.children && V.children.length > 0) {
|
|
1503
|
-
const
|
|
1504
|
-
if (
|
|
1505
|
-
return
|
|
1503
|
+
const ne = B(V.children, E, M, V);
|
|
1504
|
+
if (ne)
|
|
1505
|
+
return ne;
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
return null;
|
|
@@ -1543,7 +1543,7 @@ function er(r) {
|
|
|
1543
1543
|
return ae ? /* @__PURE__ */ l.jsx(
|
|
1544
1544
|
"thead",
|
|
1545
1545
|
{
|
|
1546
|
-
className: `radar-table__header ${t ? t + "__header" : ""} ${
|
|
1546
|
+
className: `radar-table__header ${t ? t + "__header" : ""} ${r}`,
|
|
1547
1547
|
style: {
|
|
1548
1548
|
position: o ? "sticky" : "static",
|
|
1549
1549
|
top: o && typeof o == "number" ? o : 0,
|
|
@@ -1556,13 +1556,13 @@ function er(r) {
|
|
|
1556
1556
|
{
|
|
1557
1557
|
config: B,
|
|
1558
1558
|
fullConfig: i,
|
|
1559
|
-
onSort:
|
|
1559
|
+
onSort: n.onSort,
|
|
1560
1560
|
onResize: f,
|
|
1561
1561
|
onColumnReorder: Y,
|
|
1562
|
-
resizeable:
|
|
1563
|
-
draggableColumns:
|
|
1562
|
+
resizeable: n.resizeable,
|
|
1563
|
+
draggableColumns: n.draggableColumns,
|
|
1564
1564
|
preset: t,
|
|
1565
|
-
headerClassName:
|
|
1565
|
+
headerClassName: r,
|
|
1566
1566
|
headerStyle: s,
|
|
1567
1567
|
headerRowClassName: a,
|
|
1568
1568
|
headerRowStyle: {
|
|
@@ -1575,11 +1575,11 @@ function er(r) {
|
|
|
1575
1575
|
headerCellWrapperClassName: g,
|
|
1576
1576
|
headerCellWrapperStyle: T,
|
|
1577
1577
|
stickyHeader: o,
|
|
1578
|
-
sortIcon:
|
|
1579
|
-
scrollContainerRef:
|
|
1578
|
+
sortIcon: n.sortIcon,
|
|
1579
|
+
scrollContainerRef: n.scrollContainerRef,
|
|
1580
1580
|
sorting: U,
|
|
1581
1581
|
defaultSorting: K,
|
|
1582
|
-
resizeThrottle:
|
|
1582
|
+
resizeThrottle: n.resizeThrottle
|
|
1583
1583
|
},
|
|
1584
1584
|
k
|
|
1585
1585
|
);
|
|
@@ -1588,38 +1588,38 @@ function er(r) {
|
|
|
1588
1588
|
) : /* @__PURE__ */ l.jsx(
|
|
1589
1589
|
"thead",
|
|
1590
1590
|
{
|
|
1591
|
-
className: `radar-table__header ${t ? t + "__header" : ""} ${
|
|
1591
|
+
className: `radar-table__header ${t ? t + "__header" : ""} ${r}`,
|
|
1592
1592
|
style: {
|
|
1593
1593
|
position: o ? "sticky" : "static",
|
|
1594
1594
|
top: o && typeof o == "number" ? o : 0,
|
|
1595
1595
|
...s
|
|
1596
1596
|
},
|
|
1597
|
-
children: /* @__PURE__ */ l.jsx(ct, { ...
|
|
1597
|
+
children: /* @__PURE__ */ l.jsx(ct, { ...n, fullConfig: i, onResize: f, onColumnReorder: Y, scrollContainerRef: n.scrollContainerRef, sorting: U, defaultSorting: K, resizeThrottle: n.resizeThrottle })
|
|
1598
1598
|
}
|
|
1599
1599
|
);
|
|
1600
1600
|
}
|
|
1601
|
-
const
|
|
1601
|
+
const tn = (n, i) => {
|
|
1602
1602
|
let t = "0";
|
|
1603
|
-
if (
|
|
1604
|
-
const
|
|
1605
|
-
if (Number.isNaN(
|
|
1603
|
+
if (n != null) {
|
|
1604
|
+
const r = parseFloat(n);
|
|
1605
|
+
if (Number.isNaN(r))
|
|
1606
1606
|
return i && (t += ` ${i}`), t;
|
|
1607
|
-
t =
|
|
1607
|
+
t = r.toLocaleString("ru-RU", {
|
|
1608
1608
|
maximumFractionDigits: 2
|
|
1609
1609
|
}), i && (t += ` ${i}`);
|
|
1610
1610
|
}
|
|
1611
1611
|
return t;
|
|
1612
1612
|
};
|
|
1613
|
-
function Me(
|
|
1614
|
-
let
|
|
1613
|
+
function Me(n, i, t) {
|
|
1614
|
+
let r = t.initialDeps ?? [], s;
|
|
1615
1615
|
function o() {
|
|
1616
1616
|
var a, c, u, j;
|
|
1617
1617
|
let g;
|
|
1618
1618
|
t.key && ((a = t.debug) != null && a.call(t)) && (g = Date.now());
|
|
1619
|
-
const T =
|
|
1620
|
-
if (!(T.length !==
|
|
1619
|
+
const T = n();
|
|
1620
|
+
if (!(T.length !== r.length || T.some((U, K) => r[K] !== U)))
|
|
1621
1621
|
return s;
|
|
1622
|
-
|
|
1622
|
+
r = T;
|
|
1623
1623
|
let X;
|
|
1624
1624
|
if (t.key && ((c = t.debug) != null && c.call(t)) && (X = Date.now()), s = i(...T), t.key && ((u = t.debug) != null && u.call(t))) {
|
|
1625
1625
|
const U = Math.round((Date.now() - g) * 100) / 100, K = Math.round((Date.now() - X) * 100) / 100, ae = K / 16, I = (f, Y) => {
|
|
@@ -1642,42 +1642,42 @@ function Me(r, i, t) {
|
|
|
1642
1642
|
return (j = t == null ? void 0 : t.onChange) == null || j.call(t, s), s;
|
|
1643
1643
|
}
|
|
1644
1644
|
return o.updateDeps = (a) => {
|
|
1645
|
-
|
|
1645
|
+
r = a;
|
|
1646
1646
|
}, o;
|
|
1647
1647
|
}
|
|
1648
|
-
function dt(
|
|
1649
|
-
if (
|
|
1648
|
+
function dt(n, i) {
|
|
1649
|
+
if (n === void 0)
|
|
1650
1650
|
throw new Error("Unexpected undefined");
|
|
1651
|
-
return
|
|
1651
|
+
return n;
|
|
1652
1652
|
}
|
|
1653
|
-
const
|
|
1654
|
-
let
|
|
1653
|
+
const nn = (n, i) => Math.abs(n - i) < 1.01, rn = (n, i, t) => {
|
|
1654
|
+
let r;
|
|
1655
1655
|
return function(...s) {
|
|
1656
|
-
|
|
1656
|
+
n.clearTimeout(r), r = n.setTimeout(() => i.apply(this, s), t);
|
|
1657
1657
|
};
|
|
1658
|
-
}, ut = (
|
|
1659
|
-
const { offsetWidth: i, offsetHeight: t } =
|
|
1658
|
+
}, ut = (n) => {
|
|
1659
|
+
const { offsetWidth: i, offsetHeight: t } = n;
|
|
1660
1660
|
return { width: i, height: t };
|
|
1661
|
-
},
|
|
1662
|
-
const i = Math.max(
|
|
1661
|
+
}, sn = (n) => n, on = (n) => {
|
|
1662
|
+
const i = Math.max(n.startIndex - n.overscan, 0), t = Math.min(n.endIndex + n.overscan, n.count - 1), r = [];
|
|
1663
1663
|
for (let s = i; s <= t; s++)
|
|
1664
|
-
|
|
1665
|
-
return
|
|
1666
|
-
},
|
|
1667
|
-
const t =
|
|
1664
|
+
r.push(s);
|
|
1665
|
+
return r;
|
|
1666
|
+
}, an = (n, i) => {
|
|
1667
|
+
const t = n.scrollElement;
|
|
1668
1668
|
if (!t)
|
|
1669
1669
|
return;
|
|
1670
|
-
const
|
|
1671
|
-
if (!
|
|
1670
|
+
const r = n.targetWindow;
|
|
1671
|
+
if (!r)
|
|
1672
1672
|
return;
|
|
1673
1673
|
const s = (a) => {
|
|
1674
1674
|
const { width: c, height: u } = a;
|
|
1675
1675
|
i({ width: Math.round(c), height: Math.round(u) });
|
|
1676
1676
|
};
|
|
1677
|
-
if (s(ut(t)), !
|
|
1677
|
+
if (s(ut(t)), !r.ResizeObserver)
|
|
1678
1678
|
return () => {
|
|
1679
1679
|
};
|
|
1680
|
-
const o = new
|
|
1680
|
+
const o = new r.ResizeObserver((a) => {
|
|
1681
1681
|
const c = () => {
|
|
1682
1682
|
const u = a[0];
|
|
1683
1683
|
if (u != null && u.borderBoxSize) {
|
|
@@ -1689,62 +1689,62 @@ const rr = (r, i) => Math.abs(r - i) < 1.01, nr = (r, i, t) => {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
s(ut(t));
|
|
1691
1691
|
};
|
|
1692
|
-
|
|
1692
|
+
n.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(c) : c();
|
|
1693
1693
|
});
|
|
1694
1694
|
return o.observe(t, { box: "border-box" }), () => {
|
|
1695
1695
|
o.unobserve(t);
|
|
1696
1696
|
};
|
|
1697
1697
|
}, ft = {
|
|
1698
1698
|
passive: !0
|
|
1699
|
-
}, ht = typeof window > "u" ? !0 : "onscrollend" in window,
|
|
1700
|
-
const t =
|
|
1699
|
+
}, ht = typeof window > "u" ? !0 : "onscrollend" in window, ln = (n, i) => {
|
|
1700
|
+
const t = n.scrollElement;
|
|
1701
1701
|
if (!t)
|
|
1702
1702
|
return;
|
|
1703
|
-
const
|
|
1704
|
-
if (!
|
|
1703
|
+
const r = n.targetWindow;
|
|
1704
|
+
if (!r)
|
|
1705
1705
|
return;
|
|
1706
1706
|
let s = 0;
|
|
1707
|
-
const o =
|
|
1708
|
-
} :
|
|
1709
|
-
|
|
1707
|
+
const o = n.options.useScrollendEvent && ht ? () => {
|
|
1708
|
+
} : rn(
|
|
1709
|
+
r,
|
|
1710
1710
|
() => {
|
|
1711
1711
|
i(s, !1);
|
|
1712
1712
|
},
|
|
1713
|
-
|
|
1713
|
+
n.options.isScrollingResetDelay
|
|
1714
1714
|
), a = (g) => () => {
|
|
1715
|
-
const { horizontal: T, isRtl: q } =
|
|
1715
|
+
const { horizontal: T, isRtl: q } = n.options;
|
|
1716
1716
|
s = T ? t.scrollLeft * (q && -1 || 1) : t.scrollTop, o(), i(s, g);
|
|
1717
1717
|
}, c = a(!0), u = a(!1);
|
|
1718
1718
|
u(), t.addEventListener("scroll", c, ft);
|
|
1719
|
-
const j =
|
|
1719
|
+
const j = n.options.useScrollendEvent && ht;
|
|
1720
1720
|
return j && t.addEventListener("scrollend", u, ft), () => {
|
|
1721
1721
|
t.removeEventListener("scroll", c), j && t.removeEventListener("scrollend", u);
|
|
1722
1722
|
};
|
|
1723
|
-
},
|
|
1723
|
+
}, cn = (n, i, t) => {
|
|
1724
1724
|
if (i != null && i.borderBoxSize) {
|
|
1725
|
-
const
|
|
1726
|
-
if (
|
|
1725
|
+
const r = i.borderBoxSize[0];
|
|
1726
|
+
if (r)
|
|
1727
1727
|
return Math.round(
|
|
1728
|
-
|
|
1728
|
+
r[t.options.horizontal ? "inlineSize" : "blockSize"]
|
|
1729
1729
|
);
|
|
1730
1730
|
}
|
|
1731
|
-
return
|
|
1732
|
-
},
|
|
1731
|
+
return n[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
1732
|
+
}, dn = (n, {
|
|
1733
1733
|
adjustments: i = 0,
|
|
1734
1734
|
behavior: t
|
|
1735
|
-
},
|
|
1735
|
+
}, r) => {
|
|
1736
1736
|
var s, o;
|
|
1737
|
-
const a =
|
|
1738
|
-
(o = (s =
|
|
1739
|
-
[
|
|
1737
|
+
const a = n + i;
|
|
1738
|
+
(o = (s = r.scrollElement) == null ? void 0 : s.scrollTo) == null || o.call(s, {
|
|
1739
|
+
[r.options.horizontal ? "left" : "top"]: a,
|
|
1740
1740
|
behavior: t
|
|
1741
1741
|
});
|
|
1742
1742
|
};
|
|
1743
|
-
class
|
|
1743
|
+
class un {
|
|
1744
1744
|
constructor(i) {
|
|
1745
1745
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
1746
1746
|
let t = null;
|
|
1747
|
-
const
|
|
1747
|
+
const r = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((s) => {
|
|
1748
1748
|
s.forEach((o) => {
|
|
1749
1749
|
const a = () => {
|
|
1750
1750
|
this._measureElement(o.target, o);
|
|
@@ -1755,20 +1755,20 @@ class dr {
|
|
|
1755
1755
|
return {
|
|
1756
1756
|
disconnect: () => {
|
|
1757
1757
|
var s;
|
|
1758
|
-
(s =
|
|
1758
|
+
(s = r()) == null || s.disconnect(), t = null;
|
|
1759
1759
|
},
|
|
1760
1760
|
observe: (s) => {
|
|
1761
1761
|
var o;
|
|
1762
|
-
return (o =
|
|
1762
|
+
return (o = r()) == null ? void 0 : o.observe(s, { box: "border-box" });
|
|
1763
1763
|
},
|
|
1764
1764
|
unobserve: (s) => {
|
|
1765
1765
|
var o;
|
|
1766
|
-
return (o =
|
|
1766
|
+
return (o = r()) == null ? void 0 : o.unobserve(s);
|
|
1767
1767
|
}
|
|
1768
1768
|
};
|
|
1769
1769
|
})(), this.range = null, this.setOptions = (t) => {
|
|
1770
|
-
Object.entries(t).forEach(([
|
|
1771
|
-
typeof s > "u" && delete t[
|
|
1770
|
+
Object.entries(t).forEach(([r, s]) => {
|
|
1771
|
+
typeof s > "u" && delete t[r];
|
|
1772
1772
|
}), this.options = {
|
|
1773
1773
|
debug: !1,
|
|
1774
1774
|
initialOffset: 0,
|
|
@@ -1778,11 +1778,11 @@ class dr {
|
|
|
1778
1778
|
scrollPaddingStart: 0,
|
|
1779
1779
|
scrollPaddingEnd: 0,
|
|
1780
1780
|
horizontal: !1,
|
|
1781
|
-
getItemKey:
|
|
1782
|
-
rangeExtractor:
|
|
1781
|
+
getItemKey: sn,
|
|
1782
|
+
rangeExtractor: on,
|
|
1783
1783
|
onChange: () => {
|
|
1784
1784
|
},
|
|
1785
|
-
measureElement:
|
|
1785
|
+
measureElement: cn,
|
|
1786
1786
|
initialRect: { width: 0, height: 0 },
|
|
1787
1787
|
scrollMargin: 0,
|
|
1788
1788
|
gap: 0,
|
|
@@ -1797,8 +1797,8 @@ class dr {
|
|
|
1797
1797
|
...t
|
|
1798
1798
|
};
|
|
1799
1799
|
}, this.notify = (t) => {
|
|
1800
|
-
var
|
|
1801
|
-
(s = (
|
|
1800
|
+
var r, s;
|
|
1801
|
+
(s = (r = this.options).onChange) == null || s.call(r, this, t);
|
|
1802
1802
|
}, this.maybeNotify = Me(
|
|
1803
1803
|
() => (this.calculateRange(), [
|
|
1804
1804
|
this.isScrolling,
|
|
@@ -1823,13 +1823,13 @@ class dr {
|
|
|
1823
1823
|
this.cleanup();
|
|
1824
1824
|
}, this._willUpdate = () => {
|
|
1825
1825
|
var t;
|
|
1826
|
-
const
|
|
1827
|
-
if (this.scrollElement !==
|
|
1828
|
-
if (this.cleanup(), !
|
|
1826
|
+
const r = this.options.enabled ? this.options.getScrollElement() : null;
|
|
1827
|
+
if (this.scrollElement !== r) {
|
|
1828
|
+
if (this.cleanup(), !r) {
|
|
1829
1829
|
this.maybeNotify();
|
|
1830
1830
|
return;
|
|
1831
1831
|
}
|
|
1832
|
-
this.scrollElement =
|
|
1832
|
+
this.scrollElement = r, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((t = this.scrollElement) == null ? void 0 : t.window) ?? null, this.elementsCache.forEach((s) => {
|
|
1833
1833
|
this.observer.observe(s);
|
|
1834
1834
|
}), this._scrollToOffset(this.getScrollOffset(), {
|
|
1835
1835
|
adjustments: void 0,
|
|
@@ -1844,9 +1844,9 @@ class dr {
|
|
|
1844
1844
|
})
|
|
1845
1845
|
);
|
|
1846
1846
|
}
|
|
1847
|
-
}, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (t,
|
|
1847
|
+
}, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (t, r) => {
|
|
1848
1848
|
const s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
1849
|
-
for (let a =
|
|
1849
|
+
for (let a = r - 1; a >= 0; a--) {
|
|
1850
1850
|
const c = t[a];
|
|
1851
1851
|
if (s.has(c.lane))
|
|
1852
1852
|
continue;
|
|
@@ -1865,9 +1865,9 @@ class dr {
|
|
|
1865
1865
|
this.options.getItemKey,
|
|
1866
1866
|
this.options.enabled
|
|
1867
1867
|
],
|
|
1868
|
-
(t,
|
|
1868
|
+
(t, r, s, o, a) => (this.pendingMeasuredCacheIndexes = [], {
|
|
1869
1869
|
count: t,
|
|
1870
|
-
paddingStart:
|
|
1870
|
+
paddingStart: r,
|
|
1871
1871
|
scrollMargin: s,
|
|
1872
1872
|
getItemKey: o,
|
|
1873
1873
|
enabled: a
|
|
@@ -1877,7 +1877,7 @@ class dr {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
), this.getMeasurements = Me(
|
|
1879
1879
|
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
1880
|
-
({ count: t, paddingStart:
|
|
1880
|
+
({ count: t, paddingStart: r, scrollMargin: s, getItemKey: o, enabled: a }, c) => {
|
|
1881
1881
|
if (!a)
|
|
1882
1882
|
return this.measurementsCache = [], this.itemSizeCache.clear(), [];
|
|
1883
1883
|
this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((g) => {
|
|
@@ -1887,7 +1887,7 @@ class dr {
|
|
|
1887
1887
|
this.pendingMeasuredCacheIndexes = [];
|
|
1888
1888
|
const j = this.measurementsCache.slice(0, u);
|
|
1889
1889
|
for (let g = u; g < t; g++) {
|
|
1890
|
-
const T = o(g), q = this.options.lanes === 1 ? j[g - 1] : this.getFurthestMeasurement(j, g), X = q ? q.end + this.options.gap :
|
|
1890
|
+
const T = o(g), q = this.options.lanes === 1 ? j[g - 1] : this.getFurthestMeasurement(j, g), X = q ? q.end + this.options.gap : r + s, U = c.get(T), K = typeof U == "number" ? U : this.options.estimateSize(g), ae = X + K, I = q ? q.lane : g % this.options.lanes;
|
|
1891
1891
|
j[g] = {
|
|
1892
1892
|
index: g,
|
|
1893
1893
|
start: X,
|
|
@@ -1910,9 +1910,9 @@ class dr {
|
|
|
1910
1910
|
this.getScrollOffset(),
|
|
1911
1911
|
this.options.lanes
|
|
1912
1912
|
],
|
|
1913
|
-
(t,
|
|
1913
|
+
(t, r, s, o) => this.range = t.length > 0 && r > 0 ? fn({
|
|
1914
1914
|
measurements: t,
|
|
1915
|
-
outerSize:
|
|
1915
|
+
outerSize: r,
|
|
1916
1916
|
scrollOffset: s,
|
|
1917
1917
|
lanes: o
|
|
1918
1918
|
}) : null,
|
|
@@ -1922,20 +1922,20 @@ class dr {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
), this.getVirtualIndexes = Me(
|
|
1924
1924
|
() => {
|
|
1925
|
-
let t = null,
|
|
1925
|
+
let t = null, r = null;
|
|
1926
1926
|
const s = this.calculateRange();
|
|
1927
|
-
return s && (t = s.startIndex,
|
|
1927
|
+
return s && (t = s.startIndex, r = s.endIndex), this.maybeNotify.updateDeps([this.isScrolling, t, r]), [
|
|
1928
1928
|
this.options.rangeExtractor,
|
|
1929
1929
|
this.options.overscan,
|
|
1930
1930
|
this.options.count,
|
|
1931
1931
|
t,
|
|
1932
|
-
|
|
1932
|
+
r
|
|
1933
1933
|
];
|
|
1934
1934
|
},
|
|
1935
|
-
(t,
|
|
1935
|
+
(t, r, s, o, a) => o === null || a === null ? [] : t({
|
|
1936
1936
|
startIndex: o,
|
|
1937
1937
|
endIndex: a,
|
|
1938
|
-
overscan:
|
|
1938
|
+
overscan: r,
|
|
1939
1939
|
count: s
|
|
1940
1940
|
}),
|
|
1941
1941
|
{
|
|
@@ -1943,39 +1943,39 @@ class dr {
|
|
|
1943
1943
|
debug: () => this.options.debug
|
|
1944
1944
|
}
|
|
1945
1945
|
), this.indexFromElement = (t) => {
|
|
1946
|
-
const
|
|
1946
|
+
const r = this.options.indexAttribute, s = t.getAttribute(r);
|
|
1947
1947
|
return s ? parseInt(s, 10) : (console.warn(
|
|
1948
|
-
`Missing attribute name '${
|
|
1948
|
+
`Missing attribute name '${r}={index}' on measured element.`
|
|
1949
1949
|
), -1);
|
|
1950
|
-
}, this._measureElement = (t,
|
|
1950
|
+
}, this._measureElement = (t, r) => {
|
|
1951
1951
|
const s = this.indexFromElement(t), o = this.measurementsCache[s];
|
|
1952
1952
|
if (!o)
|
|
1953
1953
|
return;
|
|
1954
1954
|
const a = o.key, c = this.elementsCache.get(a);
|
|
1955
|
-
c !== t && (c && this.observer.unobserve(c), this.observer.observe(t), this.elementsCache.set(a, t)), t.isConnected && this.resizeItem(s, this.options.measureElement(t,
|
|
1956
|
-
}, this.resizeItem = (t,
|
|
1955
|
+
c !== t && (c && this.observer.unobserve(c), this.observer.observe(t), this.elementsCache.set(a, t)), t.isConnected && this.resizeItem(s, this.options.measureElement(t, r, this));
|
|
1956
|
+
}, this.resizeItem = (t, r) => {
|
|
1957
1957
|
const s = this.measurementsCache[t];
|
|
1958
1958
|
if (!s)
|
|
1959
1959
|
return;
|
|
1960
|
-
const o = this.itemSizeCache.get(s.key) ?? s.size, a =
|
|
1960
|
+
const o = this.itemSizeCache.get(s.key) ?? s.size, a = r - o;
|
|
1961
1961
|
a !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(s, a, this) : s.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", a), this._scrollToOffset(this.getScrollOffset(), {
|
|
1962
1962
|
adjustments: this.scrollAdjustments += a,
|
|
1963
1963
|
behavior: void 0
|
|
1964
|
-
})), this.pendingMeasuredCacheIndexes.push(s.index), this.itemSizeCache = new Map(this.itemSizeCache.set(s.key,
|
|
1964
|
+
})), this.pendingMeasuredCacheIndexes.push(s.index), this.itemSizeCache = new Map(this.itemSizeCache.set(s.key, r)), this.notify(!1));
|
|
1965
1965
|
}, this.measureElement = (t) => {
|
|
1966
1966
|
if (!t) {
|
|
1967
|
-
this.elementsCache.forEach((
|
|
1968
|
-
|
|
1967
|
+
this.elementsCache.forEach((r, s) => {
|
|
1968
|
+
r.isConnected || (this.observer.unobserve(r), this.elementsCache.delete(s));
|
|
1969
1969
|
});
|
|
1970
1970
|
return;
|
|
1971
1971
|
}
|
|
1972
1972
|
this._measureElement(t, void 0);
|
|
1973
1973
|
}, this.getVirtualItems = Me(
|
|
1974
1974
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
1975
|
-
(t,
|
|
1975
|
+
(t, r) => {
|
|
1976
1976
|
const s = [];
|
|
1977
1977
|
for (let o = 0, a = t.length; o < a; o++) {
|
|
1978
|
-
const c = t[o], u =
|
|
1978
|
+
const c = t[o], u = r[c];
|
|
1979
1979
|
s.push(u);
|
|
1980
1980
|
}
|
|
1981
1981
|
return s;
|
|
@@ -1985,47 +1985,47 @@ class dr {
|
|
|
1985
1985
|
debug: () => this.options.debug
|
|
1986
1986
|
}
|
|
1987
1987
|
), this.getVirtualItemForOffset = (t) => {
|
|
1988
|
-
const
|
|
1989
|
-
if (
|
|
1988
|
+
const r = this.getMeasurements();
|
|
1989
|
+
if (r.length !== 0)
|
|
1990
1990
|
return dt(
|
|
1991
|
-
|
|
1991
|
+
r[xt(
|
|
1992
1992
|
0,
|
|
1993
|
-
|
|
1994
|
-
(s) => dt(
|
|
1993
|
+
r.length - 1,
|
|
1994
|
+
(s) => dt(r[s]).start,
|
|
1995
1995
|
t
|
|
1996
1996
|
)]
|
|
1997
1997
|
);
|
|
1998
|
-
}, this.getOffsetForAlignment = (t,
|
|
1998
|
+
}, this.getOffsetForAlignment = (t, r, s = 0) => {
|
|
1999
1999
|
const o = this.getSize(), a = this.getScrollOffset();
|
|
2000
|
-
|
|
2000
|
+
r === "auto" && (r = t >= a + o ? "end" : "start"), r === "center" ? t += (s - o) / 2 : r === "end" && (t -= o);
|
|
2001
2001
|
const c = this.getTotalSize() + this.options.scrollMargin - o;
|
|
2002
2002
|
return Math.max(Math.min(c, t), 0);
|
|
2003
|
-
}, this.getOffsetForIndex = (t,
|
|
2003
|
+
}, this.getOffsetForIndex = (t, r = "auto") => {
|
|
2004
2004
|
t = Math.max(0, Math.min(t, this.options.count - 1));
|
|
2005
2005
|
const s = this.measurementsCache[t];
|
|
2006
2006
|
if (!s)
|
|
2007
2007
|
return;
|
|
2008
2008
|
const o = this.getSize(), a = this.getScrollOffset();
|
|
2009
|
-
if (
|
|
2009
|
+
if (r === "auto")
|
|
2010
2010
|
if (s.end >= a + o - this.options.scrollPaddingEnd)
|
|
2011
|
-
|
|
2011
|
+
r = "end";
|
|
2012
2012
|
else if (s.start <= a + this.options.scrollPaddingStart)
|
|
2013
|
-
|
|
2013
|
+
r = "start";
|
|
2014
2014
|
else
|
|
2015
|
-
return [a,
|
|
2016
|
-
const c =
|
|
2015
|
+
return [a, r];
|
|
2016
|
+
const c = r === "end" ? s.end + this.options.scrollPaddingEnd : s.start - this.options.scrollPaddingStart;
|
|
2017
2017
|
return [
|
|
2018
|
-
this.getOffsetForAlignment(c,
|
|
2019
|
-
|
|
2018
|
+
this.getOffsetForAlignment(c, r, s.size),
|
|
2019
|
+
r
|
|
2020
2020
|
];
|
|
2021
|
-
}, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (t, { align:
|
|
2021
|
+
}, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (t, { align: r = "start", behavior: s } = {}) => {
|
|
2022
2022
|
s === "smooth" && this.isDynamicMode() && console.warn(
|
|
2023
2023
|
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
2024
|
-
), this._scrollToOffset(this.getOffsetForAlignment(t,
|
|
2024
|
+
), this._scrollToOffset(this.getOffsetForAlignment(t, r), {
|
|
2025
2025
|
adjustments: void 0,
|
|
2026
2026
|
behavior: s
|
|
2027
2027
|
});
|
|
2028
|
-
}, this.scrollToIndex = (t, { align:
|
|
2028
|
+
}, this.scrollToIndex = (t, { align: r = "auto", behavior: s } = {}) => {
|
|
2029
2029
|
s === "smooth" && this.isDynamicMode() && console.warn(
|
|
2030
2030
|
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
2031
2031
|
), t = Math.max(0, Math.min(t, this.options.count - 1));
|
|
@@ -2044,34 +2044,34 @@ class dr {
|
|
|
2044
2044
|
console.warn("Failed to get offset for index:", t);
|
|
2045
2045
|
return;
|
|
2046
2046
|
}
|
|
2047
|
-
|
|
2047
|
+
nn(U[0], X) || u(q);
|
|
2048
2048
|
});
|
|
2049
2049
|
}, u = (j) => {
|
|
2050
2050
|
this.targetWindow && (o++, o < a ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", o, a), this.targetWindow.requestAnimationFrame(() => c(j))) : console.warn(
|
|
2051
2051
|
`Failed to scroll to index ${t} after ${a} attempts.`
|
|
2052
2052
|
));
|
|
2053
2053
|
};
|
|
2054
|
-
c(
|
|
2055
|
-
}, this.scrollBy = (t, { behavior:
|
|
2056
|
-
|
|
2054
|
+
c(r);
|
|
2055
|
+
}, this.scrollBy = (t, { behavior: r } = {}) => {
|
|
2056
|
+
r === "smooth" && this.isDynamicMode() && console.warn(
|
|
2057
2057
|
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
2058
2058
|
), this._scrollToOffset(this.getScrollOffset() + t, {
|
|
2059
2059
|
adjustments: void 0,
|
|
2060
|
-
behavior:
|
|
2060
|
+
behavior: r
|
|
2061
2061
|
});
|
|
2062
2062
|
}, this.getTotalSize = () => {
|
|
2063
2063
|
var t;
|
|
2064
|
-
const
|
|
2064
|
+
const r = this.getMeasurements();
|
|
2065
2065
|
let s;
|
|
2066
|
-
if (
|
|
2066
|
+
if (r.length === 0)
|
|
2067
2067
|
s = this.options.paddingStart;
|
|
2068
2068
|
else if (this.options.lanes === 1)
|
|
2069
|
-
s = ((t =
|
|
2069
|
+
s = ((t = r[r.length - 1]) == null ? void 0 : t.end) ?? 0;
|
|
2070
2070
|
else {
|
|
2071
2071
|
const o = Array(this.options.lanes).fill(null);
|
|
2072
|
-
let a =
|
|
2072
|
+
let a = r.length - 1;
|
|
2073
2073
|
for (; a >= 0 && o.some((c) => c === null); ) {
|
|
2074
|
-
const c =
|
|
2074
|
+
const c = r[a];
|
|
2075
2075
|
o[c.lane] === null && (o[c.lane] = c.end), a--;
|
|
2076
2076
|
}
|
|
2077
2077
|
s = Math.max(...o.filter((c) => c !== null));
|
|
@@ -2081,35 +2081,35 @@ class dr {
|
|
|
2081
2081
|
0
|
|
2082
2082
|
);
|
|
2083
2083
|
}, this._scrollToOffset = (t, {
|
|
2084
|
-
adjustments:
|
|
2084
|
+
adjustments: r,
|
|
2085
2085
|
behavior: s
|
|
2086
2086
|
}) => {
|
|
2087
|
-
this.options.scrollToFn(t, { behavior: s, adjustments:
|
|
2087
|
+
this.options.scrollToFn(t, { behavior: s, adjustments: r }, this);
|
|
2088
2088
|
}, this.measure = () => {
|
|
2089
2089
|
this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(!1);
|
|
2090
2090
|
}, this.setOptions(i);
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
const xt = (
|
|
2094
|
-
for (;
|
|
2095
|
-
const s = (
|
|
2096
|
-
if (o <
|
|
2097
|
-
|
|
2098
|
-
else if (o >
|
|
2093
|
+
const xt = (n, i, t, r) => {
|
|
2094
|
+
for (; n <= i; ) {
|
|
2095
|
+
const s = (n + i) / 2 | 0, o = t(s);
|
|
2096
|
+
if (o < r)
|
|
2097
|
+
n = s + 1;
|
|
2098
|
+
else if (o > r)
|
|
2099
2099
|
i = s - 1;
|
|
2100
2100
|
else
|
|
2101
2101
|
return s;
|
|
2102
2102
|
}
|
|
2103
|
-
return
|
|
2103
|
+
return n > 0 ? n - 1 : 0;
|
|
2104
2104
|
};
|
|
2105
|
-
function
|
|
2106
|
-
measurements:
|
|
2105
|
+
function fn({
|
|
2106
|
+
measurements: n,
|
|
2107
2107
|
outerSize: i,
|
|
2108
2108
|
scrollOffset: t,
|
|
2109
|
-
lanes:
|
|
2109
|
+
lanes: r
|
|
2110
2110
|
}) {
|
|
2111
|
-
const s =
|
|
2112
|
-
if (
|
|
2111
|
+
const s = n.length - 1, o = (u) => n[u].start;
|
|
2112
|
+
if (n.length <= r)
|
|
2113
2113
|
return {
|
|
2114
2114
|
startIndex: 0,
|
|
2115
2115
|
endIndex: s
|
|
@@ -2120,58 +2120,58 @@ function ur({
|
|
|
2120
2120
|
o,
|
|
2121
2121
|
t
|
|
2122
2122
|
), c = a;
|
|
2123
|
-
if (
|
|
2124
|
-
for (; c < s &&
|
|
2123
|
+
if (r === 1)
|
|
2124
|
+
for (; c < s && n[c].end < t + i; )
|
|
2125
2125
|
c++;
|
|
2126
|
-
else if (
|
|
2127
|
-
const u = Array(
|
|
2126
|
+
else if (r > 1) {
|
|
2127
|
+
const u = Array(r).fill(0);
|
|
2128
2128
|
for (; c < s && u.some((g) => g < t + i); ) {
|
|
2129
|
-
const g =
|
|
2129
|
+
const g = n[c];
|
|
2130
2130
|
u[g.lane] = g.end, c++;
|
|
2131
2131
|
}
|
|
2132
|
-
const j = Array(
|
|
2132
|
+
const j = Array(r).fill(t + i);
|
|
2133
2133
|
for (; a >= 0 && j.some((g) => g >= t); ) {
|
|
2134
|
-
const g =
|
|
2134
|
+
const g = n[a];
|
|
2135
2135
|
j[g.lane] = g.start, a--;
|
|
2136
2136
|
}
|
|
2137
|
-
a = Math.max(0, a - a %
|
|
2137
|
+
a = Math.max(0, a - a % r), c = Math.min(s, c + (r - 1 - c % r));
|
|
2138
2138
|
}
|
|
2139
2139
|
return { startIndex: a, endIndex: c };
|
|
2140
2140
|
}
|
|
2141
2141
|
const gt = typeof document < "u" ? Ze.useLayoutEffect : Ze.useEffect;
|
|
2142
|
-
function
|
|
2142
|
+
function hn(n) {
|
|
2143
2143
|
const i = Ze.useReducer(() => ({}), {})[1], t = {
|
|
2144
|
-
...
|
|
2144
|
+
...n,
|
|
2145
2145
|
onChange: (s, o) => {
|
|
2146
2146
|
var a;
|
|
2147
|
-
o ? qt(i) : i(), (a =
|
|
2147
|
+
o ? qt(i) : i(), (a = n.onChange) == null || a.call(n, s, o);
|
|
2148
2148
|
}
|
|
2149
|
-
}, [
|
|
2150
|
-
() => new
|
|
2149
|
+
}, [r] = Ze.useState(
|
|
2150
|
+
() => new un(t)
|
|
2151
2151
|
);
|
|
2152
|
-
return
|
|
2152
|
+
return r.setOptions(t), gt(() => r._didMount(), []), gt(() => r._willUpdate()), r;
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2155
|
-
return
|
|
2156
|
-
observeElementRect:
|
|
2157
|
-
observeElementOffset:
|
|
2158
|
-
scrollToFn:
|
|
2159
|
-
...
|
|
2154
|
+
function gn(n) {
|
|
2155
|
+
return hn({
|
|
2156
|
+
observeElementRect: an,
|
|
2157
|
+
observeElementOffset: ln,
|
|
2158
|
+
scrollToFn: dn,
|
|
2159
|
+
...n
|
|
2160
2160
|
});
|
|
2161
2161
|
}
|
|
2162
|
-
const
|
|
2162
|
+
const pn = (n) => {
|
|
2163
2163
|
var i;
|
|
2164
|
-
return typeof window < "u" && ((i = window.CSS) != null && i.escape) ? window.CSS.escape(
|
|
2165
|
-
},
|
|
2164
|
+
return typeof window < "u" && ((i = window.CSS) != null && i.escape) ? window.CSS.escape(n) : n.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
2165
|
+
}, mn = (n) => {
|
|
2166
2166
|
if (typeof document > "u") return null;
|
|
2167
|
-
const i = `th[data-column-key="${
|
|
2167
|
+
const i = `th[data-column-key="${pn(n)}"]`, t = document.querySelector(i);
|
|
2168
2168
|
return t ? t.getBoundingClientRect().width : null;
|
|
2169
|
-
},
|
|
2170
|
-
function
|
|
2171
|
-
draggableRows:
|
|
2169
|
+
}, yn = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
|
|
2170
|
+
function vn({
|
|
2171
|
+
draggableRows: n = !1,
|
|
2172
2172
|
dataSource: i,
|
|
2173
2173
|
config: t,
|
|
2174
|
-
rowKey:
|
|
2174
|
+
rowKey: r,
|
|
2175
2175
|
loading: s = !1,
|
|
2176
2176
|
onRowReorder: o,
|
|
2177
2177
|
preset: a,
|
|
@@ -2198,11 +2198,11 @@ function yr({
|
|
|
2198
2198
|
var Ke;
|
|
2199
2199
|
const [v, p] = ye(null), [b, x] = ye(null), [O, P] = ye(() => g && g.length > 0 ? new Set(g) : /* @__PURE__ */ new Set()), D = qe.useMemo(() => j ? new Set(j) : O, [j, O]), H = ue((h) => {
|
|
2200
2200
|
j || P(new Set(h)), T == null || T(h);
|
|
2201
|
-
}, [j, T]), Z = ue((h) =>
|
|
2201
|
+
}, [j, T]), Z = ue((h) => r ? r(h) : JSON.stringify(h), [r]), G = qe.useMemo(() => {
|
|
2202
2202
|
if (!u) return [];
|
|
2203
2203
|
const h = [], $ = i;
|
|
2204
2204
|
return $.forEach((z, w) => {
|
|
2205
|
-
const W = Z(z),
|
|
2205
|
+
const W = Z(z), re = z == null ? void 0 : z.children;
|
|
2206
2206
|
h.push({
|
|
2207
2207
|
record: z,
|
|
2208
2208
|
key: W,
|
|
@@ -2210,7 +2210,7 @@ function yr({
|
|
|
2210
2210
|
depth: 0,
|
|
2211
2211
|
indexWithinGroup: w,
|
|
2212
2212
|
groupSize: $.length
|
|
2213
|
-
}),
|
|
2213
|
+
}), re && re.length > 0 && D.has(W) && re.forEach((te, Ce) => {
|
|
2214
2214
|
h.push({
|
|
2215
2215
|
record: te,
|
|
2216
2216
|
key: Z(te),
|
|
@@ -2218,7 +2218,7 @@ function yr({
|
|
|
2218
2218
|
parentKey: W,
|
|
2219
2219
|
depth: 1,
|
|
2220
2220
|
indexWithinGroup: Ce,
|
|
2221
|
-
groupSize:
|
|
2221
|
+
groupSize: re.length
|
|
2222
2222
|
});
|
|
2223
2223
|
});
|
|
2224
2224
|
}), h;
|
|
@@ -2227,23 +2227,23 @@ function yr({
|
|
|
2227
2227
|
return G.forEach(($) => h.set($.key, $)), h;
|
|
2228
2228
|
}, [G]);
|
|
2229
2229
|
He(() => {
|
|
2230
|
-
|
|
2230
|
+
yn && _ && (() => {
|
|
2231
2231
|
const $ = document.querySelectorAll(".radar-table__body-row");
|
|
2232
2232
|
document.querySelectorAll(".radar-table__header-row").forEach((w) => {
|
|
2233
2233
|
const W = w.querySelectorAll(".radar-table__header-cell-wrapper");
|
|
2234
|
-
let
|
|
2234
|
+
let re = 0;
|
|
2235
2235
|
W.forEach((te) => {
|
|
2236
|
-
te.style.height = "auto",
|
|
2236
|
+
te.style.height = "auto", re = Math.max(re, te.offsetHeight);
|
|
2237
2237
|
}), W.forEach((te) => {
|
|
2238
|
-
te.style.height =
|
|
2238
|
+
te.style.height = re + "px";
|
|
2239
2239
|
});
|
|
2240
2240
|
}), $.forEach((w) => {
|
|
2241
2241
|
const W = w.querySelectorAll(".radar-table__body-cell-wrapper");
|
|
2242
|
-
let
|
|
2242
|
+
let re = 0;
|
|
2243
2243
|
W.forEach((te) => {
|
|
2244
|
-
te.style.height = "auto",
|
|
2244
|
+
te.style.height = "auto", re = Math.max(re, te.offsetHeight);
|
|
2245
2245
|
}), W.forEach((te) => {
|
|
2246
|
-
te.style.height =
|
|
2246
|
+
te.style.height = re + "px";
|
|
2247
2247
|
});
|
|
2248
2248
|
});
|
|
2249
2249
|
})();
|
|
@@ -2259,11 +2259,11 @@ function yr({
|
|
|
2259
2259
|
if (h.groupColor)
|
|
2260
2260
|
return h.groupColor;
|
|
2261
2261
|
const $ = (w, W) => {
|
|
2262
|
-
for (const
|
|
2263
|
-
if (
|
|
2264
|
-
if (
|
|
2265
|
-
return
|
|
2266
|
-
const te = $(
|
|
2262
|
+
for (const re of w)
|
|
2263
|
+
if (re.children) {
|
|
2264
|
+
if (re.children.some((Ce) => Ce.key === W))
|
|
2265
|
+
return re;
|
|
2266
|
+
const te = $(re.children, W);
|
|
2267
2267
|
if (te) return te;
|
|
2268
2268
|
}
|
|
2269
2269
|
return null;
|
|
@@ -2275,7 +2275,7 @@ function yr({
|
|
|
2275
2275
|
return;
|
|
2276
2276
|
}
|
|
2277
2277
|
p($), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", $), document.body.style.cursor = "grabbing";
|
|
2278
|
-
const z = i.find((w) => (
|
|
2278
|
+
const z = i.find((w) => (r ? r(w) : JSON.stringify(w)) === $);
|
|
2279
2279
|
if (z) {
|
|
2280
2280
|
const w = document.createElement("div");
|
|
2281
2281
|
w.style.cssText = `
|
|
@@ -2299,10 +2299,10 @@ function yr({
|
|
|
2299
2299
|
} else
|
|
2300
2300
|
w.textContent = "Строка";
|
|
2301
2301
|
document.body.appendChild(w), w.style.position = "absolute", w.style.top = "-1000px", w.style.left = "-1000px", h.dataTransfer.setDragImage(w, 10, 10);
|
|
2302
|
-
const
|
|
2302
|
+
const re = setTimeout(() => {
|
|
2303
2303
|
document.body.contains(w) && document.body.removeChild(w);
|
|
2304
2304
|
}, 0);
|
|
2305
|
-
return () => clearTimeout(
|
|
2305
|
+
return () => clearTimeout(re);
|
|
2306
2306
|
}
|
|
2307
2307
|
}, []), E = ue((h) => {
|
|
2308
2308
|
h.preventDefault(), h.dataTransfer.dropEffect = "move";
|
|
@@ -2324,28 +2324,28 @@ function yr({
|
|
|
2324
2324
|
if (h.preventDefault(), !v || v === $)
|
|
2325
2325
|
return;
|
|
2326
2326
|
if (!u) {
|
|
2327
|
-
const W = i.findIndex((me) => (
|
|
2328
|
-
if (W === -1 ||
|
|
2327
|
+
const W = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === v), re = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === $);
|
|
2328
|
+
if (W === -1 || re === -1)
|
|
2329
2329
|
return;
|
|
2330
2330
|
const te = [...i], [Ce] = te.splice(W, 1);
|
|
2331
|
-
te.splice(
|
|
2331
|
+
te.splice(re, 0, Ce), o == null || o(te), p(null), x(null), document.body.style.cursor = "";
|
|
2332
2332
|
return;
|
|
2333
2333
|
}
|
|
2334
2334
|
const z = L.get(v), w = L.get($);
|
|
2335
2335
|
if (!(!z || !w)) {
|
|
2336
2336
|
if (z.type === "parent" && w.type === "parent") {
|
|
2337
|
-
const W = i.findIndex((me) => (
|
|
2338
|
-
if (W === -1 ||
|
|
2337
|
+
const W = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === z.key), re = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === w.key);
|
|
2338
|
+
if (W === -1 || re === -1) return;
|
|
2339
2339
|
const te = [...i], [Ce] = te.splice(W, 1);
|
|
2340
|
-
te.splice(
|
|
2340
|
+
te.splice(re, 0, Ce), o == null || o(te), p(null), x(null), document.body.style.cursor = "";
|
|
2341
2341
|
return;
|
|
2342
2342
|
}
|
|
2343
2343
|
if (z.type === "child" && w.type === "child" && z.parentKey === w.parentKey) {
|
|
2344
|
-
const W = i.findIndex((xe) => (
|
|
2344
|
+
const W = i.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === z.parentKey);
|
|
2345
2345
|
if (W === -1) return;
|
|
2346
|
-
const
|
|
2346
|
+
const re = i[W], te = re == null ? void 0 : re.children;
|
|
2347
2347
|
if (!te || te.length === 0) return;
|
|
2348
|
-
const Ce = te.findIndex((xe) => (
|
|
2348
|
+
const Ce = te.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === z.key), me = te.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === w.key);
|
|
2349
2349
|
if (Ce === -1 || me === -1) return;
|
|
2350
2350
|
const ke = i.map((xe, De) => {
|
|
2351
2351
|
if (De !== W) return xe;
|
|
@@ -2356,7 +2356,7 @@ function yr({
|
|
|
2356
2356
|
return;
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
|
-
}, [v, i,
|
|
2359
|
+
}, [v, i, r, o, u, L]);
|
|
2360
2360
|
if (i.length === 0) {
|
|
2361
2361
|
let h;
|
|
2362
2362
|
return y && (h = ((Ke = y.current) == null ? void 0 : Ke.clientWidth) + "px"), /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${U}`, style: K, children: /* @__PURE__ */ l.jsx(
|
|
@@ -2383,18 +2383,18 @@ function yr({
|
|
|
2383
2383
|
}
|
|
2384
2384
|
const M = u ? G : i.map((h) => ({
|
|
2385
2385
|
record: h,
|
|
2386
|
-
key:
|
|
2386
|
+
key: r ? r(h) : JSON.stringify(h),
|
|
2387
2387
|
type: "parent",
|
|
2388
2388
|
depth: 0,
|
|
2389
2389
|
indexWithinGroup: 0,
|
|
2390
2390
|
groupSize: i.length
|
|
2391
|
-
})),
|
|
2391
|
+
})), ne = ue((h) => {
|
|
2392
2392
|
const $ = new Set(D);
|
|
2393
2393
|
$.has(h) ? $.delete(h) : $.add(h), H(Array.from($));
|
|
2394
2394
|
}, [D, H]);
|
|
2395
2395
|
function ee({ column: h, index: $, row: z, item: w }) {
|
|
2396
2396
|
var Ue, We;
|
|
2397
|
-
const W = je(null), [
|
|
2397
|
+
const W = je(null), [re, te] = ye(0), Ce = h.fixed && !h.width ? 200 : h.width, me = h.fixed && !h.minWidth ? 200 : h.minWidth;
|
|
2398
2398
|
let ke = !1;
|
|
2399
2399
|
c && c.idx.includes(h.dataIndex) && (ke = !0), c && c.idx.length === 0 && (ke = !0), Qe(() => {
|
|
2400
2400
|
if (!h.fixed) {
|
|
@@ -2405,7 +2405,7 @@ function yr({
|
|
|
2405
2405
|
if ($ !== 0) {
|
|
2406
2406
|
for (let we = 0; we < $; we++)
|
|
2407
2407
|
if (R[we].fixed && !R[we].hidden) {
|
|
2408
|
-
const ze = R[we].width || R[we].minWidth || 200, Fe =
|
|
2408
|
+
const ze = R[we].width || R[we].minWidth || 200, Fe = mn(R[we].key);
|
|
2409
2409
|
Ae += Math.floor(Fe ?? ze) - 0.05;
|
|
2410
2410
|
}
|
|
2411
2411
|
}
|
|
@@ -2422,12 +2422,12 @@ function yr({
|
|
|
2422
2422
|
width: Ce,
|
|
2423
2423
|
minWidth: me,
|
|
2424
2424
|
position: h.fixed ? "sticky" : "static",
|
|
2425
|
-
left:
|
|
2425
|
+
left: re,
|
|
2426
2426
|
borderRight: h.fixed && !((Ue = R[$ + 1]) != null && Ue.fixed) ? "1px solid #E8E8E8" : "none",
|
|
2427
2427
|
cursor: De && Je ? "pointer" : "default",
|
|
2428
2428
|
...Y
|
|
2429
2429
|
},
|
|
2430
|
-
onClick: De && Je ? () =>
|
|
2430
|
+
onClick: De && Je ? () => ne(z.key) : void 0,
|
|
2431
2431
|
children: /* @__PURE__ */ l.jsxs(
|
|
2432
2432
|
"div",
|
|
2433
2433
|
{
|
|
@@ -2444,14 +2444,14 @@ function yr({
|
|
|
2444
2444
|
type: "button",
|
|
2445
2445
|
className: `radar-table__expander-btn ${Ie ? "expanded" : ""}`,
|
|
2446
2446
|
"aria-expanded": Ie,
|
|
2447
|
-
onClick: () =>
|
|
2447
|
+
onClick: () => ne(z.key),
|
|
2448
2448
|
style: { marginRight: 8, background: "transparent", border: "none", transform: Ie ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
|
|
2449
2449
|
title: Ie ? "Свернуть" : "Развернуть",
|
|
2450
2450
|
children: X ? X(Ie, w) : /* @__PURE__ */ l.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.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" }) })
|
|
2451
2451
|
}
|
|
2452
2452
|
),
|
|
2453
2453
|
ke ? c == null ? void 0 : c.renderer(w[h.dataIndex], w, $, h.dataIndex) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2454
|
-
h.units &&
|
|
2454
|
+
h.units && tn(((We = w[h.key]) == null ? void 0 : We.toString()) || "", h.units),
|
|
2455
2455
|
!h.units && w[h.key]
|
|
2456
2456
|
] })
|
|
2457
2457
|
]
|
|
@@ -2469,7 +2469,7 @@ function yr({
|
|
|
2469
2469
|
{
|
|
2470
2470
|
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${ae} ${v === z ? "dragging" : ""} ${b === z ? "drag-over" : ""} ${u ? h.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
|
|
2471
2471
|
style: I,
|
|
2472
|
-
draggable:
|
|
2472
|
+
draggable: n,
|
|
2473
2473
|
onDragStart: (w) => S(w, z),
|
|
2474
2474
|
onDragOver: E,
|
|
2475
2475
|
onDragEnter: (w) => A(w, z),
|
|
@@ -2481,7 +2481,7 @@ function yr({
|
|
|
2481
2481
|
z
|
|
2482
2482
|
);
|
|
2483
2483
|
}) });
|
|
2484
|
-
const ve = m.estimateSize ?? 48, be = m.overscan ?? 12, le =
|
|
2484
|
+
const ve = m.estimateSize ?? 48, be = m.overscan ?? 12, le = gn({
|
|
2485
2485
|
count: M.length,
|
|
2486
2486
|
getScrollElement: () => y == null ? void 0 : y.current,
|
|
2487
2487
|
estimateSize: () => ve,
|
|
@@ -2498,14 +2498,14 @@ function yr({
|
|
|
2498
2498
|
ref: le.measureElement,
|
|
2499
2499
|
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${ae} ${v === w ? "dragging" : ""} ${b === w ? "drag-over" : ""} ${u ? $.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
|
|
2500
2500
|
style: I,
|
|
2501
|
-
draggable:
|
|
2501
|
+
draggable: n,
|
|
2502
2502
|
onDragStart: (W) => S(W, w),
|
|
2503
2503
|
onDragOver: E,
|
|
2504
2504
|
onDragEnter: (W) => A(W, w),
|
|
2505
2505
|
onDragLeave: N,
|
|
2506
2506
|
onDrop: (W) => V(W, w),
|
|
2507
2507
|
onDragEnd: Q,
|
|
2508
|
-
children: R.map((W,
|
|
2508
|
+
children: R.map((W, re) => /* @__PURE__ */ l.jsx(ee, { column: W, index: re, row: $, item: z }, W.key))
|
|
2509
2509
|
},
|
|
2510
2510
|
w
|
|
2511
2511
|
);
|
|
@@ -2513,18 +2513,18 @@ function yr({
|
|
|
2513
2513
|
Te > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: Te }, children: /* @__PURE__ */ l.jsx("td", { colSpan: R.length }) })
|
|
2514
2514
|
] });
|
|
2515
2515
|
}
|
|
2516
|
-
const pt = ({ config:
|
|
2517
|
-
const [{ current: i, pageSize: t, total:
|
|
2516
|
+
const pt = ({ config: n }) => {
|
|
2517
|
+
const [{ current: i, pageSize: t, total: r, onChange: s, showQuickJumper: o, buttonsCount: a = 4, hideOnSinglePage: c = !1 }, u] = ye(n);
|
|
2518
2518
|
He(() => {
|
|
2519
|
-
u(
|
|
2520
|
-
}, [
|
|
2519
|
+
u(n);
|
|
2520
|
+
}, [n]);
|
|
2521
2521
|
const j = Math.ceil(i / a), g = (j - 1) * a + 1, T = j * a, q = (f) => {
|
|
2522
2522
|
const Y = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
|
|
2523
2523
|
!/^[0-9]$/.test(f.key) && !Y.includes(f.key) && f.preventDefault();
|
|
2524
2524
|
}, X = (f) => {
|
|
2525
2525
|
if (f.key === "Enter") {
|
|
2526
2526
|
const Y = parseInt(f.currentTarget.value);
|
|
2527
|
-
Y > 0 && Y <=
|
|
2527
|
+
Y > 0 && Y <= r && (u({ ...n, current: Y }), s == null || s(Y, t), f.currentTarget.value = "");
|
|
2528
2528
|
}
|
|
2529
2529
|
}, U = (f) => {
|
|
2530
2530
|
const k = f.target.value.replace(/[^0-9]/g, "");
|
|
@@ -2535,11 +2535,11 @@ const pt = ({ config: r }) => {
|
|
|
2535
2535
|
B.value = _, B.setSelectionRange(ie + k.length, ie + k.length);
|
|
2536
2536
|
}, ae = (f) => {
|
|
2537
2537
|
const Y = f.currentTarget.id;
|
|
2538
|
-
Y === "pagination_left_button" && i > 1 && (u({ ...
|
|
2538
|
+
Y === "pagination_left_button" && i > 1 && (u({ ...n, current: i - 1 }), s == null || s(i - 1, t)), Y === "pagination_right_button" && i < r && (u({ ...n, current: i + 1 }), s == null || s(i + 1, t));
|
|
2539
2539
|
}, I = (f) => {
|
|
2540
|
-
u({ ...
|
|
2540
|
+
u({ ...n, current: f }), s == null || s(f, t);
|
|
2541
2541
|
};
|
|
2542
|
-
return c &&
|
|
2542
|
+
return c && r <= 1 ? null : /* @__PURE__ */ l.jsxs("div", { className: "radar-table__pagination", children: [
|
|
2543
2543
|
/* @__PURE__ */ l.jsxs(
|
|
2544
2544
|
"div",
|
|
2545
2545
|
{
|
|
@@ -2549,7 +2549,7 @@ const pt = ({ config: r }) => {
|
|
|
2549
2549
|
},
|
|
2550
2550
|
children: [
|
|
2551
2551
|
/* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: ae, 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" }) }) }),
|
|
2552
|
-
Array.from({ length:
|
|
2552
|
+
Array.from({ length: r }, (f, Y) => Y + 1).map((f) => {
|
|
2553
2553
|
const Y = i === f;
|
|
2554
2554
|
if (f >= g && f <= T)
|
|
2555
2555
|
return Y ? /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: f }, f) : /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button", onClick: () => I(f), children: f }, f);
|
|
@@ -2571,15 +2571,15 @@ const pt = ({ config: r }) => {
|
|
|
2571
2571
|
}
|
|
2572
2572
|
),
|
|
2573
2573
|
" стр. из ",
|
|
2574
|
-
|
|
2574
|
+
r
|
|
2575
2575
|
] })
|
|
2576
2576
|
] });
|
|
2577
2577
|
};
|
|
2578
|
-
function
|
|
2579
|
-
dataSource:
|
|
2578
|
+
function Sn({
|
|
2579
|
+
dataSource: n,
|
|
2580
2580
|
preset: i,
|
|
2581
2581
|
config: t,
|
|
2582
|
-
rowKey:
|
|
2582
|
+
rowKey: r,
|
|
2583
2583
|
loading: s = !1,
|
|
2584
2584
|
pagination: o,
|
|
2585
2585
|
stickyHeader: a = !1,
|
|
@@ -2625,7 +2625,7 @@ function Er({
|
|
|
2625
2625
|
bodyCellWrapperStyle: Q,
|
|
2626
2626
|
headerGroupRowClassName: V,
|
|
2627
2627
|
headerGroupRowStyle: M,
|
|
2628
|
-
headerGroupCellClassName:
|
|
2628
|
+
headerGroupCellClassName: ne,
|
|
2629
2629
|
headerGroupCellStyle: ee,
|
|
2630
2630
|
headerGroupCellWrapperClassName: ve,
|
|
2631
2631
|
headerGroupCellWrapperStyle: be,
|
|
@@ -2644,10 +2644,10 @@ function Er({
|
|
|
2644
2644
|
children: /* @__PURE__ */ l.jsx(
|
|
2645
2645
|
mt,
|
|
2646
2646
|
{
|
|
2647
|
-
dataSource:
|
|
2647
|
+
dataSource: n,
|
|
2648
2648
|
preset: i,
|
|
2649
2649
|
config: t,
|
|
2650
|
-
rowKey:
|
|
2650
|
+
rowKey: r,
|
|
2651
2651
|
loading: s,
|
|
2652
2652
|
pagination: o,
|
|
2653
2653
|
stickyHeader: a,
|
|
@@ -2687,7 +2687,7 @@ function Er({
|
|
|
2687
2687
|
bodyCellWrapperStyle: Q,
|
|
2688
2688
|
headerGroupRowClassName: V,
|
|
2689
2689
|
headerGroupRowStyle: M,
|
|
2690
|
-
headerGroupCellClassName:
|
|
2690
|
+
headerGroupCellClassName: ne,
|
|
2691
2691
|
headerGroupCellStyle: ee,
|
|
2692
2692
|
headerGroupCellWrapperClassName: ve,
|
|
2693
2693
|
headerGroupCellWrapperStyle: be,
|
|
@@ -2708,10 +2708,10 @@ function Er({
|
|
|
2708
2708
|
/* @__PURE__ */ l.jsx(
|
|
2709
2709
|
mt,
|
|
2710
2710
|
{
|
|
2711
|
-
dataSource:
|
|
2711
|
+
dataSource: n,
|
|
2712
2712
|
preset: i,
|
|
2713
2713
|
config: t,
|
|
2714
|
-
rowKey:
|
|
2714
|
+
rowKey: r,
|
|
2715
2715
|
loading: s,
|
|
2716
2716
|
pagination: o,
|
|
2717
2717
|
stickyHeader: a,
|
|
@@ -2751,7 +2751,7 @@ function Er({
|
|
|
2751
2751
|
bodyCellWrapperStyle: Q,
|
|
2752
2752
|
headerGroupRowClassName: V,
|
|
2753
2753
|
headerGroupRowStyle: M,
|
|
2754
|
-
headerGroupCellClassName:
|
|
2754
|
+
headerGroupCellClassName: ne,
|
|
2755
2755
|
headerGroupCellStyle: ee,
|
|
2756
2756
|
headerGroupCellWrapperClassName: ve,
|
|
2757
2757
|
headerGroupCellWrapperStyle: be,
|
|
@@ -2768,11 +2768,11 @@ function Er({
|
|
|
2768
2768
|
/* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${le}`, style: he, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
|
|
2769
2769
|
] });
|
|
2770
2770
|
}
|
|
2771
|
-
function mt(
|
|
2771
|
+
function mt(n) {
|
|
2772
2772
|
const {
|
|
2773
2773
|
dataSource: i,
|
|
2774
2774
|
preset: t,
|
|
2775
|
-
config:
|
|
2775
|
+
config: r,
|
|
2776
2776
|
rowKey: s,
|
|
2777
2777
|
loading: o,
|
|
2778
2778
|
stickyHeader: a,
|
|
@@ -2816,86 +2816,97 @@ function mt(r) {
|
|
|
2816
2816
|
headerGroupCellStyle: Q,
|
|
2817
2817
|
headerGroupCellWrapperClassName: V,
|
|
2818
2818
|
headerGroupCellWrapperStyle: M,
|
|
2819
|
-
noDataRender:
|
|
2819
|
+
noDataRender: ne,
|
|
2820
2820
|
recalculateRowHeight: ee,
|
|
2821
2821
|
sorting: ve,
|
|
2822
2822
|
defaultSorting: be,
|
|
2823
2823
|
resizeThrottle: le
|
|
2824
|
-
} =
|
|
2825
|
-
return /* @__PURE__ */ l.jsxs(
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
{
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2824
|
+
} = n;
|
|
2825
|
+
return /* @__PURE__ */ l.jsxs(
|
|
2826
|
+
"table",
|
|
2827
|
+
{
|
|
2828
|
+
className: `radar-table ${t || ""} ${y}`,
|
|
2829
|
+
style: {
|
|
2830
|
+
tableLayout: c ? "fixed" : "auto",
|
|
2831
|
+
width: c ? "max-content" : "auto",
|
|
2832
|
+
..._
|
|
2833
|
+
},
|
|
2834
|
+
children: [
|
|
2835
|
+
/* @__PURE__ */ l.jsx(
|
|
2836
|
+
en,
|
|
2837
|
+
{
|
|
2838
|
+
draggableColumns: j,
|
|
2839
|
+
config: r,
|
|
2840
|
+
onSort: q,
|
|
2841
|
+
resizeable: c,
|
|
2842
|
+
onResize: T,
|
|
2843
|
+
sortIcon: ae,
|
|
2844
|
+
preset: t,
|
|
2845
|
+
headerClassName: m,
|
|
2846
|
+
headerStyle: v,
|
|
2847
|
+
headerRowClassName: x,
|
|
2848
|
+
headerRowStyle: O,
|
|
2849
|
+
headerCellClassName: p,
|
|
2850
|
+
headerCellStyle: b,
|
|
2851
|
+
headerCellWrapperClassName: P,
|
|
2852
|
+
headerCellWrapperStyle: D,
|
|
2853
|
+
headerGroupRowClassName: E,
|
|
2854
|
+
headerGroupRowStyle: A,
|
|
2855
|
+
headerGroupCellClassName: N,
|
|
2856
|
+
headerGroupCellStyle: Q,
|
|
2857
|
+
headerGroupCellWrapperClassName: V,
|
|
2858
|
+
headerGroupCellWrapperStyle: M,
|
|
2859
|
+
stickyHeader: a,
|
|
2860
|
+
scrollContainerRef: g,
|
|
2861
|
+
onColumnReorder: U,
|
|
2862
|
+
sorting: ve,
|
|
2863
|
+
defaultSorting: be,
|
|
2864
|
+
resizeThrottle: le
|
|
2865
|
+
}
|
|
2866
|
+
),
|
|
2867
|
+
/* @__PURE__ */ l.jsx(
|
|
2868
|
+
vn,
|
|
2869
|
+
{
|
|
2870
|
+
draggableRows: u,
|
|
2871
|
+
onRowReorder: X,
|
|
2872
|
+
dataSource: i,
|
|
2873
|
+
config: r,
|
|
2874
|
+
rowKey: s,
|
|
2875
|
+
loading: o,
|
|
2876
|
+
preset: t,
|
|
2877
|
+
customCellRender: K,
|
|
2878
|
+
expandIcon: I,
|
|
2879
|
+
treeMode: f,
|
|
2880
|
+
expandedRowKeys: Y,
|
|
2881
|
+
defaultExpandedRowKeys: k,
|
|
2882
|
+
onExpandedRowsChange: B,
|
|
2883
|
+
indentSize: ie,
|
|
2884
|
+
bodyClassName: H,
|
|
2885
|
+
bodyStyle: Z,
|
|
2886
|
+
bodyRowClassName: G,
|
|
2887
|
+
bodyRowStyle: L,
|
|
2888
|
+
bodyCellClassName: ce,
|
|
2889
|
+
bodyCellStyle: R,
|
|
2890
|
+
bodyCellWrapperClassName: J,
|
|
2891
|
+
bodyCellWrapperStyle: S,
|
|
2892
|
+
noDataRender: ne,
|
|
2893
|
+
scrollContainerRef: g,
|
|
2894
|
+
recalculateRowHeight: ee,
|
|
2895
|
+
virtualization: n.virtualization
|
|
2896
|
+
}
|
|
2897
|
+
)
|
|
2898
|
+
]
|
|
2899
|
+
}
|
|
2900
|
+
);
|
|
2890
2901
|
}
|
|
2891
|
-
const yt = ({ children:
|
|
2902
|
+
const yt = ({ children: n, tagType: i = "h1", ...t }) => {
|
|
2892
2903
|
if (i === "h1")
|
|
2893
2904
|
return /* @__PURE__ */ l.jsx(
|
|
2894
2905
|
"h1",
|
|
2895
2906
|
{
|
|
2896
2907
|
className: "radar-title radar-title_h1",
|
|
2897
2908
|
...t,
|
|
2898
|
-
children:
|
|
2909
|
+
children: n
|
|
2899
2910
|
}
|
|
2900
2911
|
);
|
|
2901
2912
|
if (i === "h2")
|
|
@@ -2904,7 +2915,7 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2904
2915
|
{
|
|
2905
2916
|
className: "radar-title radar-title_h1",
|
|
2906
2917
|
...t,
|
|
2907
|
-
children:
|
|
2918
|
+
children: n
|
|
2908
2919
|
}
|
|
2909
2920
|
);
|
|
2910
2921
|
if (i === "h3")
|
|
@@ -2913,7 +2924,7 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2913
2924
|
{
|
|
2914
2925
|
className: "radar-title radar-title_h1",
|
|
2915
2926
|
...t,
|
|
2916
|
-
children:
|
|
2927
|
+
children: n
|
|
2917
2928
|
}
|
|
2918
2929
|
);
|
|
2919
2930
|
if (i === "h4")
|
|
@@ -2922,7 +2933,7 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2922
2933
|
{
|
|
2923
2934
|
className: "radar-title radar-title_h1",
|
|
2924
2935
|
...t,
|
|
2925
|
-
children:
|
|
2936
|
+
children: n
|
|
2926
2937
|
}
|
|
2927
2938
|
);
|
|
2928
2939
|
if (i === "h5")
|
|
@@ -2931,7 +2942,7 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2931
2942
|
{
|
|
2932
2943
|
className: "radar-title radar-title_h1",
|
|
2933
2944
|
...t,
|
|
2934
|
-
children:
|
|
2945
|
+
children: n
|
|
2935
2946
|
}
|
|
2936
2947
|
);
|
|
2937
2948
|
if (i === "h6")
|
|
@@ -2940,17 +2951,17 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2940
2951
|
{
|
|
2941
2952
|
className: "radar-title radar-title_h1",
|
|
2942
2953
|
...t,
|
|
2943
|
-
children:
|
|
2954
|
+
children: n
|
|
2944
2955
|
}
|
|
2945
2956
|
);
|
|
2946
|
-
},
|
|
2957
|
+
}, bn = ({ children: n, tagType: i = "h2", ...t }) => {
|
|
2947
2958
|
if (i === "h1")
|
|
2948
2959
|
return /* @__PURE__ */ l.jsx(
|
|
2949
2960
|
"h1",
|
|
2950
2961
|
{
|
|
2951
2962
|
className: "radar-title radar-title_h2",
|
|
2952
2963
|
...t,
|
|
2953
|
-
children:
|
|
2964
|
+
children: n
|
|
2954
2965
|
}
|
|
2955
2966
|
);
|
|
2956
2967
|
if (i === "h2")
|
|
@@ -2959,7 +2970,7 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2959
2970
|
{
|
|
2960
2971
|
className: "radar-title radar-title_h2",
|
|
2961
2972
|
...t,
|
|
2962
|
-
children:
|
|
2973
|
+
children: n
|
|
2963
2974
|
}
|
|
2964
2975
|
);
|
|
2965
2976
|
if (i === "h3")
|
|
@@ -2968,7 +2979,7 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2968
2979
|
{
|
|
2969
2980
|
className: "radar-title radar-title_h2",
|
|
2970
2981
|
...t,
|
|
2971
|
-
children:
|
|
2982
|
+
children: n
|
|
2972
2983
|
}
|
|
2973
2984
|
);
|
|
2974
2985
|
if (i === "h4")
|
|
@@ -2977,7 +2988,7 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2977
2988
|
{
|
|
2978
2989
|
className: "radar-title radar-title_h2",
|
|
2979
2990
|
...t,
|
|
2980
|
-
children:
|
|
2991
|
+
children: n
|
|
2981
2992
|
}
|
|
2982
2993
|
);
|
|
2983
2994
|
if (i === "h5")
|
|
@@ -2986,7 +2997,7 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2986
2997
|
{
|
|
2987
2998
|
className: "radar-title radar-title_h2",
|
|
2988
2999
|
...t,
|
|
2989
|
-
children:
|
|
3000
|
+
children: n
|
|
2990
3001
|
}
|
|
2991
3002
|
);
|
|
2992
3003
|
if (i === "h6")
|
|
@@ -2995,15 +3006,15 @@ const yt = ({ children: r, tagType: i = "h1", ...t }) => {
|
|
|
2995
3006
|
{
|
|
2996
3007
|
className: "radar-title radar-title_h2",
|
|
2997
3008
|
...t,
|
|
2998
|
-
children:
|
|
3009
|
+
children: n
|
|
2999
3010
|
}
|
|
3000
3011
|
);
|
|
3001
|
-
},
|
|
3012
|
+
}, kn = Object.assign(yt, { H1: yt, H2: bn }), vt = ({ children: n, fontStyle: i = "medium", ...t }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_m radar-text_${i}`, ...t, children: n }), xn = ({ children: n, fontStyle: i = "medium", ...t }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_s radar-text_${i}`, ...t, children: n }), jn = Object.assign(vt, { M: vt, S: xn });
|
|
3002
3013
|
export {
|
|
3003
3014
|
Qt as HeaderCell,
|
|
3004
3015
|
pt as Pagination,
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3016
|
+
jn as RadarText,
|
|
3017
|
+
kn as RadarTitle,
|
|
3018
|
+
Sn as Table,
|
|
3008
3019
|
Ut as Tooltip
|
|
3009
3020
|
};
|