master-components-react-ts 2.11.8 → 2.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/index.js +206 -203
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -521,12 +521,12 @@ const Ft = 50 / 2, wl = (l) => {
|
|
|
521
521
|
r || z || (R && U(m1), g?.(Q));
|
|
522
522
|
}, e[23] = r, e[24] = z, e[25] = g, e[26] = R, e[27] = G) : G = e[27];
|
|
523
523
|
const X = G;
|
|
524
|
-
let
|
|
525
|
-
e[28] !== F || e[29] !== H ? (
|
|
524
|
+
let I;
|
|
525
|
+
e[28] !== F || e[29] !== H ? (I = () => {
|
|
526
526
|
let Q = "#ffffff";
|
|
527
527
|
return H === "neutral" && F !== "primary" && (Q = "#0058FF"), H === "positive" && F !== "primary" && (Q = "#328707"), H === "negative" && F !== "primary" && (Q = "#E3292F"), Q;
|
|
528
|
-
}, e[28] = F, e[29] = H, e[30] =
|
|
529
|
-
const M =
|
|
528
|
+
}, e[28] = F, e[29] = H, e[30] = I) : I = e[30];
|
|
529
|
+
const M = I;
|
|
530
530
|
let le;
|
|
531
531
|
e[31] !== r ? (le = () => {
|
|
532
532
|
const Q = (W) => {
|
|
@@ -624,7 +624,7 @@ const p1 = "mc__b37edd2c__FormInput-module__inputWrapper", f1 = "mc__438d9e79__F
|
|
|
624
624
|
inputSlotStyle: a,
|
|
625
625
|
...v
|
|
626
626
|
} = l, e[0] = l, e[1] = o, e[2] = n, e[3] = i, e[4] = c, e[5] = r, e[6] = s, e[7] = a, e[8] = d, e[9] = C, e[10] = x, e[11] = g, e[12] = u, e[13] = S, e[14] = _, e[15] = m, e[16] = f, e[17] = L, e[18] = p, e[19] = v, e[20] = b, e[21] = N, e[22] = $, e[23] = T, e[24] = H, e[25] = F, e[26] = R, e[27] = Z, e[28] = z, e[29] = E, e[30] = ee, e[31] = U, e[32] = O, e[33] = G) : (o = e[1], n = e[2], i = e[3], c = e[4], r = e[5], s = e[6], a = e[7], d = e[8], C = e[9], x = e[10], g = e[11], u = e[12], S = e[13], _ = e[14], m = e[15], f = e[16], L = e[17], p = e[18], v = e[19], b = e[20], N = e[21], $ = e[22], T = e[23], H = e[24], F = e[25], R = e[26], Z = e[27], z = e[28], E = e[29], ee = e[30], U = e[31], O = e[32], G = e[33]);
|
|
627
|
-
const X = N === void 0 ? !1 : N,
|
|
627
|
+
const X = N === void 0 ? !1 : N, I = F === void 0 ? !1 : F, M = R === void 0 ? !1 : R, le = Z === void 0 ? !0 : Z, ie = z === void 0 ? !1 : z, q = E === void 0 ? !1 : E, oe = ee === void 0 ? "md" : ee, re = U === void 0 ? !1 : U, te = O === void 0 ? "text" : O, ce = $ === void 0 ? !1 : $, Q = T === void 0 ? null : T;
|
|
628
628
|
let W;
|
|
629
629
|
e[34] !== H ? (W = H === void 0 ? {
|
|
630
630
|
error: !1,
|
|
@@ -672,9 +672,9 @@ const p1 = "mc__b37edd2c__FormInput-module__inputWrapper", f1 = "mc__438d9e79__F
|
|
|
672
672
|
Q != null && ue(Q);
|
|
673
673
|
}, gt = [Q], e[59] = Q, e[60] = rt, e[61] = gt) : (rt = e[60], gt = e[61]), he(rt, gt);
|
|
674
674
|
let ze;
|
|
675
|
-
e[62] !==
|
|
676
|
-
}, e[62] =
|
|
677
|
-
const Je = `${Ue.inputWrapper} ${
|
|
675
|
+
e[62] !== I ? (ze = () => {
|
|
676
|
+
}, e[62] = I, e[63] = ze) : ze = e[63];
|
|
677
|
+
const Je = `${Ue.inputWrapper} ${I ? Ue.disabled : ""} ${Ue[oe]}`;
|
|
678
678
|
let dt;
|
|
679
679
|
e[64] !== d ? (dt = d ?? {}, e[64] = d, e[65] = dt) : dt = e[65];
|
|
680
680
|
let ct;
|
|
@@ -690,24 +690,24 @@ const p1 = "mc__b37edd2c__FormInput-module__inputWrapper", f1 = "mc__438d9e79__F
|
|
|
690
690
|
let lt;
|
|
691
691
|
e[72] !== n ? (lt = n ?? {}, e[72] = n, e[73] = lt) : lt = e[73];
|
|
692
692
|
let w;
|
|
693
|
-
e[74] !==
|
|
694
|
-
|
|
695
|
-
}, e[74] =
|
|
693
|
+
e[74] !== I || e[75] !== re ? (w = () => {
|
|
694
|
+
I || re && ue(M1);
|
|
695
|
+
}, e[74] = I, e[75] = re, e[76] = w) : w = e[76];
|
|
696
696
|
let y;
|
|
697
697
|
e[77] !== Re || e[78] !== g ? (y = g && /* @__PURE__ */ t("div", { className: Ue.formInputSlot, children: Re(g) }), e[77] = Re, e[78] = g, e[79] = y) : y = e[79];
|
|
698
698
|
let P;
|
|
699
699
|
e[80] !== Re || e[81] !== q ? (P = q && /* @__PURE__ */ t("div", { className: Ue.formInputSlot, children: Re(/* @__PURE__ */ t(vl, {})) }), e[80] = Re, e[81] = q, e[82] = P) : P = e[82];
|
|
700
700
|
let be;
|
|
701
|
-
e[83] !== Ee || e[84] !== $e || e[85] !== Se || e[86] !== V || e[87] !==
|
|
701
|
+
e[83] !== Ee || e[84] !== $e || e[85] !== Se || e[86] !== V || e[87] !== I || e[88] !== ce || e[89] !== o || e[90] !== Re || e[91] !== Pe || e[92] !== s || e[93] !== a || e[94] !== u || e[95] !== p || e[96] !== M || e[97] !== X || e[98] !== v || e[99] !== q || e[100] !== te || e[101] !== G ? (be = s ? /* @__PURE__ */ t("div", { className: Ue.formInputSlot, style: a ?? {}, children: Re(s) }) : /* @__PURE__ */ t("input", { className: Ue.formInput, ref: j, style: o ?? {}, type: te ?? "text", value: q ? V : G, onChange: (De) => $e(De), onMouseDown: () => !ce && _e(!0), onMouseUp: () => !ce && _e(!1), onMouseLeave: () => !ce && _e(!1), onFocus: Se, onBlur: Ee, disabled: I, required: X, onKeyDown: Pe, readOnly: M, spellCheck: !1, placeholder: p ?? "", autoComplete: "off", maxLength: u, ...v }), e[83] = Ee, e[84] = $e, e[85] = Se, e[86] = V, e[87] = I, e[88] = ce, e[89] = o, e[90] = Re, e[91] = Pe, e[92] = s, e[93] = a, e[94] = u, e[95] = p, e[96] = M, e[97] = X, e[98] = v, e[99] = q, e[100] = te, e[101] = G, e[102] = be) : be = e[102];
|
|
702
702
|
let Ce;
|
|
703
|
-
e[103] !==
|
|
704
|
-
cursor:
|
|
703
|
+
e[103] !== I || e[104] !== Re || e[105] !== b || e[106] !== q ? (Ce = b && /* @__PURE__ */ t("div", { style: q ? {
|
|
704
|
+
cursor: I ? "not-allowed" : "pointer"
|
|
705
705
|
} : {}, onClick: () => {
|
|
706
|
-
}, className: Ue.formInputSlot, children: Re(b) }), e[103] =
|
|
706
|
+
}, className: Ue.formInputSlot, children: Re(b) }), e[103] = I, e[104] = Re, e[105] = b, e[106] = q, e[107] = Ce) : Ce = e[107];
|
|
707
707
|
let Me;
|
|
708
|
-
e[108] !== at || e[109] !== V || e[110] !==
|
|
709
|
-
cursor:
|
|
710
|
-
} : {}, className: Ue.formInputSlot, children: typeof V == "string" && V?.length > 0 ? Re(/* @__PURE__ */ t(fn, {})) : null }) }), e[108] = at, e[109] = V, e[110] =
|
|
708
|
+
e[108] !== at || e[109] !== V || e[110] !== I || e[111] !== Re || e[112] !== q ? (Me = q && /* @__PURE__ */ t("div", { className: Ue.formInputSlot, children: /* @__PURE__ */ t("div", { onClick: at, style: q ? {
|
|
709
|
+
cursor: I ? "not-allowed" : "pointer"
|
|
710
|
+
} : {}, className: Ue.formInputSlot, children: typeof V == "string" && V?.length > 0 ? Re(/* @__PURE__ */ t(fn, {})) : null }) }), e[108] = at, e[109] = V, e[110] = I, e[111] = Re, e[112] = q, e[113] = Me) : Me = e[113];
|
|
711
711
|
let Ze;
|
|
712
712
|
e[114] !== nt || e[115] !== lt || e[116] !== w || e[117] !== y || e[118] !== P || e[119] !== be || e[120] !== Ce || e[121] !== Me ? (Ze = /* @__PURE__ */ h("div", { className: nt, style: lt, onClick: w, children: [
|
|
713
713
|
y,
|
|
@@ -772,44 +772,44 @@ const R1 = "mc__3ba2da63__Textarea-module__textareaContainer", D1 = "mc__228e7e7
|
|
|
772
772
|
textareaFooterStyle: b,
|
|
773
773
|
...N
|
|
774
774
|
}) => {
|
|
775
|
-
const $ = fe(null), [T, H] = se(!1), [F, R] = se(!1), Z = (
|
|
776
|
-
let M =
|
|
775
|
+
const $ = fe(null), [T, H] = se(!1), [F, R] = se(!1), Z = (I) => {
|
|
776
|
+
let M = I.target.value;
|
|
777
777
|
g && typeof g == "function" && g(M);
|
|
778
|
-
}, z = (
|
|
779
|
-
H(!0), u && typeof u == "function" && u(
|
|
780
|
-
}, ee = (
|
|
781
|
-
H(!1), S && typeof S == "function" && S(
|
|
778
|
+
}, z = (I) => I, E = (I) => {
|
|
779
|
+
H(!0), u && typeof u == "function" && u(I);
|
|
780
|
+
}, ee = (I) => {
|
|
781
|
+
H(!1), S && typeof S == "function" && S(I);
|
|
782
782
|
};
|
|
783
783
|
let U = !1;
|
|
784
784
|
he(() => {
|
|
785
785
|
if (!$.current) return;
|
|
786
|
-
const
|
|
787
|
-
if (!
|
|
786
|
+
const I = $.current.querySelector("textarea");
|
|
787
|
+
if (!I) return;
|
|
788
788
|
let M = !1;
|
|
789
789
|
const le = (q) => {
|
|
790
|
-
const oe =
|
|
790
|
+
const oe = I.getBoundingClientRect();
|
|
791
791
|
q.clientX > oe.right - 20 && q.clientY > oe.bottom - 20 && (M = !0);
|
|
792
792
|
}, ie = new ResizeObserver(() => {
|
|
793
793
|
M && (U = !0, M = !1);
|
|
794
794
|
});
|
|
795
|
-
return
|
|
796
|
-
|
|
795
|
+
return I.addEventListener("mousedown", le), ie.observe(I), () => {
|
|
796
|
+
I.removeEventListener("mousedown", le), ie.disconnect();
|
|
797
797
|
};
|
|
798
798
|
}, []);
|
|
799
799
|
const O = () => {
|
|
800
800
|
if (!$.current) return;
|
|
801
|
-
const
|
|
802
|
-
!
|
|
801
|
+
const I = $.current.querySelector("textarea");
|
|
802
|
+
!I || U || (I.style.height = "auto", I.style.height = `${I.scrollHeight}px`);
|
|
803
803
|
};
|
|
804
804
|
he(() => {
|
|
805
805
|
if (!$.current) return;
|
|
806
|
-
const
|
|
807
|
-
U =
|
|
806
|
+
const I = $.current.querySelector("textarea"), M = new ResizeObserver(() => {
|
|
807
|
+
U = I.offsetHeight < I.scrollHeight;
|
|
808
808
|
});
|
|
809
|
-
return M.observe(
|
|
809
|
+
return M.observe(I), () => M.disconnect();
|
|
810
810
|
}, []);
|
|
811
|
-
const G = (
|
|
812
|
-
U = !1, g?.(
|
|
811
|
+
const G = (I) => {
|
|
812
|
+
U = !1, g?.(I.target.value), O();
|
|
813
813
|
}, X = () => {
|
|
814
814
|
g && typeof g == "function" && g("");
|
|
815
815
|
};
|
|
@@ -1089,12 +1089,12 @@ const ri = "mc__014b960c__Dropdown-module__dropdownWrapper", ci = "mc__d058c05d_
|
|
|
1089
1089
|
}, e[6] = R, e[7] = c, e[8] = r, e[9] = ee, e[10] = O, e[11] = G, e[12] = X;
|
|
1090
1090
|
} else
|
|
1091
1091
|
O = e[10], G = e[11], X = e[12];
|
|
1092
|
-
let
|
|
1093
|
-
e[15] !== r || e[16] !== U || e[17] !== z ? (
|
|
1092
|
+
let I;
|
|
1093
|
+
e[15] !== r || e[16] !== U || e[17] !== z ? (I = () => {
|
|
1094
1094
|
const Y = U(z, !1);
|
|
1095
1095
|
E(Y), r?.([]);
|
|
1096
|
-
}, e[15] = r, e[16] = U, e[17] = z, e[18] =
|
|
1097
|
-
const M =
|
|
1096
|
+
}, e[15] = r, e[16] = U, e[17] = z, e[18] = I) : I = e[18];
|
|
1097
|
+
const M = I;
|
|
1098
1098
|
let le;
|
|
1099
1099
|
e[19] !== O || e[20] !== r || e[21] !== U || e[22] !== z ? (le = () => {
|
|
1100
1100
|
const Y = U(z, !0);
|
|
@@ -1181,13 +1181,13 @@ const ri = "mc__014b960c__Dropdown-module__dropdownWrapper", ci = "mc__d058c05d_
|
|
|
1181
1181
|
e[13] !== r || e[14] !== F || e[15] !== O ? (G = /* @__PURE__ */ t(Ht, { checked: O, change: F, ...r, withActive: !1 }), e[13] = r, e[14] = F, e[15] = O, e[16] = G) : G = e[16];
|
|
1182
1182
|
let X;
|
|
1183
1183
|
e[17] !== U || e[18] !== G ? (X = /* @__PURE__ */ t("div", { style: U, onClick: ns, children: G }), e[17] = U, e[18] = G, e[19] = X) : X = e[19];
|
|
1184
|
-
let
|
|
1185
|
-
e[20] !== o || e[21] !== L || e[22] !== b ? (
|
|
1184
|
+
let I;
|
|
1185
|
+
e[20] !== o || e[21] !== L || e[22] !== b ? (I = !o && /* @__PURE__ */ t("div", { className: wt.collapseToggle, style: L, children: /* @__PURE__ */ t("div", { style: {
|
|
1186
1186
|
display: "flex",
|
|
1187
1187
|
alignItems: "center",
|
|
1188
1188
|
justifyContent: "center",
|
|
1189
1189
|
transform: b ? "rotate(0deg)" : "rotate(90deg)"
|
|
1190
|
-
}, children: /* @__PURE__ */ t(Gi, {}) }) }), e[20] = o, e[21] = L, e[22] = b, e[23] =
|
|
1190
|
+
}, children: /* @__PURE__ */ t(Gi, {}) }) }), e[20] = o, e[21] = L, e[22] = b, e[23] = I) : I = e[23];
|
|
1191
1191
|
const M = `${wt.label} ${n.selected ? wt.selected : ""}`;
|
|
1192
1192
|
let le;
|
|
1193
1193
|
e[24] !== n.label || e[25] !== M ? (le = /* @__PURE__ */ t("span", { className: M, children: n.label }), e[24] = n.label, e[25] = M, e[26] = le) : le = e[26];
|
|
@@ -1199,12 +1199,12 @@ const ri = "mc__014b960c__Dropdown-module__dropdownWrapper", ci = "mc__d058c05d_
|
|
|
1199
1199
|
transform: b ? "rotate(0deg)" : "rotate(90deg)"
|
|
1200
1200
|
}, children: /* @__PURE__ */ t(sl, {}) }) }), e[27] = o, e[28] = L, e[29] = b, e[30] = n.children, e[31] = ie) : ie = e[31];
|
|
1201
1201
|
let q;
|
|
1202
|
-
e[32] !== T || e[33] !== f || e[34] !== X || e[35] !==
|
|
1202
|
+
e[32] !== T || e[33] !== f || e[34] !== X || e[35] !== I || e[36] !== le || e[37] !== ie ? (q = /* @__PURE__ */ h("div", { className: wt.labelRow, onClick: T, style: f, children: [
|
|
1203
1203
|
X,
|
|
1204
|
-
|
|
1204
|
+
I,
|
|
1205
1205
|
le,
|
|
1206
1206
|
ie
|
|
1207
|
-
] }), e[32] = T, e[33] = f, e[34] = X, e[35] =
|
|
1207
|
+
] }), e[32] = T, e[33] = f, e[34] = X, e[35] = I, e[36] = le, e[37] = ie, e[38] = q) : q = e[38];
|
|
1208
1208
|
let oe;
|
|
1209
1209
|
e[39] !== C || e[40] !== x || e[41] !== p || e[42] !== r || e[43] !== o || e[44] !== L || e[45] !== b || e[46] !== c || e[47] !== a || e[48] !== d || e[49] !== f || e[50] !== n.children || e[51] !== s || e[52] !== i || e[53] !== g || e[54] !== S || e[55] !== _ || e[56] !== u || e[57] !== m ? (oe = n.children && n.children.length > 0 && /* @__PURE__ */ t("div", { className: wt.children, style: {
|
|
1210
1210
|
display: b ? "none" : "block"
|
|
@@ -1266,7 +1266,7 @@ const Hn = ({
|
|
|
1266
1266
|
},
|
|
1267
1267
|
...G
|
|
1268
1268
|
}) => {
|
|
1269
|
-
const [X,
|
|
1269
|
+
const [X, I] = se(!1), [M, le] = se(""), [ie, q] = se(!1), [oe, re] = se(!1), [te, ce] = se(!1), Q = fe(null), W = fe(null), Y = fe(null), j = fe(null), [V, K] = se([]), A = fe([]), ue = fe(0), [we, _e] = se(""), [ve, $e] = se(null), [ke, Se] = se(null), He = fe(null), Ee = fe(/* @__PURE__ */ new Map()), Ae = fe(void 0), Pe = (w) => `https://flagsapi.com/${w}/flat/64.png`, Fe = (w = []) => {
|
|
1270
1270
|
const y = [];
|
|
1271
1271
|
return w.forEach((P) => {
|
|
1272
1272
|
P.selected && y.push(P), Array.isArray(P.children) && P.children.length > 0 && y.push(...Fe(P.children));
|
|
@@ -1288,7 +1288,7 @@ const Hn = ({
|
|
|
1288
1288
|
});
|
|
1289
1289
|
}, Ge = (w) => {
|
|
1290
1290
|
let y;
|
|
1291
|
-
ee?.checkIndividualItems ? y = w : y = w.flatMap((P) => [P, ...P.children || []]), y = mn(y, "id"), at(V, y), A.current = y, g?.(w),
|
|
1291
|
+
ee?.checkIndividualItems ? y = w : y = w.flatMap((P) => [P, ...P.children || []]), y = mn(y, "id"), at(V, y), A.current = y, g?.(w), I((P) => !P);
|
|
1292
1292
|
}, st = (w) => {
|
|
1293
1293
|
if (w.selected = !w.selected, !i && !s) {
|
|
1294
1294
|
g?.(w);
|
|
@@ -1300,7 +1300,7 @@ const Hn = ({
|
|
|
1300
1300
|
const y = V.filter((be) => be.id !== "SELECT_ALL" && !be.disabled), P = y.length > 0 && y.every((be) => be.selected);
|
|
1301
1301
|
q(P), g?.(A.current), re(!1);
|
|
1302
1302
|
}
|
|
1303
|
-
|
|
1303
|
+
I((y) => !y);
|
|
1304
1304
|
}, rt = (w, y = !1) => {
|
|
1305
1305
|
$e(w), ce(!1), g?.(w);
|
|
1306
1306
|
}, gt = () => {
|
|
@@ -1638,45 +1638,45 @@ const ss = "mc__9882c79c__Tooltip-module__tooltipContainer", rs = "mc__c7271480_
|
|
|
1638
1638
|
if (!G || !O) return;
|
|
1639
1639
|
const X = O.getBoundingClientRect();
|
|
1640
1640
|
G.style.position = "fixed", G.style.visibility = "hidden";
|
|
1641
|
-
const
|
|
1641
|
+
const I = G.getBoundingClientRect(), M = window.innerWidth, le = window.innerHeight, ie = (te, ce) => ({
|
|
1642
1642
|
fitsTop: te >= 0,
|
|
1643
|
-
fitsBottom: te +
|
|
1643
|
+
fitsBottom: te + I.height <= le,
|
|
1644
1644
|
fitsLeft: ce >= 0,
|
|
1645
|
-
fitsRight: ce +
|
|
1645
|
+
fitsRight: ce + I.width <= M
|
|
1646
1646
|
}), q = (te, ce) => {
|
|
1647
1647
|
G.style.top = `${te}px`, G.style.left = `${ce}px`, G.style.visibility = "visible";
|
|
1648
1648
|
};
|
|
1649
1649
|
let oe, re;
|
|
1650
1650
|
switch (n) {
|
|
1651
1651
|
case "top":
|
|
1652
|
-
oe = X.top -
|
|
1652
|
+
oe = X.top - I.height - 8 + m - f, re = X.left + L - p;
|
|
1653
1653
|
const te = ie(oe, re);
|
|
1654
|
-
te.fitsTop || (oe = X.bottom + 8 + f - m), te.fitsLeft ? te.fitsRight || (re = M -
|
|
1654
|
+
te.fitsTop || (oe = X.bottom + 8 + f - m), te.fitsLeft ? te.fitsRight || (re = M - I.width) : re = 0, q(oe, re);
|
|
1655
1655
|
break;
|
|
1656
1656
|
case "bottom":
|
|
1657
1657
|
oe = X.bottom + 8 + f - m, re = X.left + L - p;
|
|
1658
1658
|
const ce = ie(oe, re);
|
|
1659
|
-
ce.fitsBottom || (oe = X.top -
|
|
1659
|
+
ce.fitsBottom || (oe = X.top - I.height - 8 + m - f), ce.fitsLeft ? ce.fitsRight || (re = M - I.width) : re = 0, q(oe, re);
|
|
1660
1660
|
break;
|
|
1661
1661
|
case "left":
|
|
1662
|
-
oe = X.top + m - f, re = X.left -
|
|
1662
|
+
oe = X.top + m - f, re = X.left - I.width - 8 + L - p;
|
|
1663
1663
|
const Q = ie(oe, re);
|
|
1664
|
-
Q.fitsLeft || (re = X.right + 8 + p - L), Q.fitsTop ? Q.fitsBottom || (oe = le -
|
|
1664
|
+
Q.fitsLeft || (re = X.right + 8 + p - L), Q.fitsTop ? Q.fitsBottom || (oe = le - I.height) : oe = 0, q(oe, re);
|
|
1665
1665
|
break;
|
|
1666
1666
|
case "right":
|
|
1667
1667
|
oe = X.top + m - f, re = X.right + 8 + p - L;
|
|
1668
1668
|
const W = ie(oe, re);
|
|
1669
|
-
W.fitsRight || (re = X.left -
|
|
1669
|
+
W.fitsRight || (re = X.left - I.width - 8 + L - p), W.fitsTop ? W.fitsBottom || (oe = le - I.height) : oe = 0, q(oe, re);
|
|
1670
1670
|
break;
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
1673
|
ul(() => {
|
|
1674
1674
|
ee();
|
|
1675
1675
|
}, [N, H, l, n, e, s, c, r]), he(() => {
|
|
1676
|
-
const O = (
|
|
1677
|
-
N.current?.contains(
|
|
1678
|
-
}, G = (
|
|
1679
|
-
|
|
1676
|
+
const O = (I) => {
|
|
1677
|
+
N.current?.contains(I.target) || F(!1);
|
|
1678
|
+
}, G = (I) => {
|
|
1679
|
+
I.composedPath().includes(N.current) || F(!1);
|
|
1680
1680
|
}, X = () => {
|
|
1681
1681
|
H && ee();
|
|
1682
1682
|
};
|
|
@@ -1856,8 +1856,8 @@ const ys = "mc__a00ebb2e__NotificationToast-module__toastContainer", ks = "mc__9
|
|
|
1856
1856
|
E,
|
|
1857
1857
|
G
|
|
1858
1858
|
] }), e[25] = z, e[26] = E, e[27] = G, e[28] = X) : X = e[28];
|
|
1859
|
-
let
|
|
1860
|
-
e[29] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1859
|
+
let I;
|
|
1860
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ t("div", { className: pt.notificationToastContentDescription }), e[29] = I) : I = e[29];
|
|
1861
1861
|
const M = d && d;
|
|
1862
1862
|
let le;
|
|
1863
1863
|
e[30] !== a || e[31] !== g || e[32] !== f ? (le = !a && f && /* @__PURE__ */ t("p", { className: pt.notificationToastContentRightUndoText, onClick: () => g?.(), children: "Undo" }), e[30] = a, e[31] = g, e[32] = f, e[33] = le) : le = e[33];
|
|
@@ -1874,7 +1874,7 @@ const ys = "mc__a00ebb2e__NotificationToast-module__toastContainer", ks = "mc__9
|
|
|
1874
1874
|
let oe;
|
|
1875
1875
|
e[45] !== Z || e[46] !== X || e[47] !== q ? (oe = /* @__PURE__ */ h("div", { className: pt.notificationToastContent, style: Z, children: [
|
|
1876
1876
|
X,
|
|
1877
|
-
|
|
1877
|
+
I,
|
|
1878
1878
|
q
|
|
1879
1879
|
] }), e[45] = Z, e[46] = X, e[47] = q, e[48] = oe) : oe = e[48];
|
|
1880
1880
|
let re;
|
|
@@ -2096,10 +2096,10 @@ function cr() {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
return (function(X) {
|
|
2099
|
-
var
|
|
2100
|
-
if (
|
|
2099
|
+
var I = X.afternoon;
|
|
2100
|
+
if (I !== void 0) {
|
|
2101
2101
|
var M = X.hours;
|
|
2102
|
-
|
|
2102
|
+
I ? M < 12 && (X.hours += 12) : M === 12 && (X.hours = 0), delete X.afternoon;
|
|
2103
2103
|
}
|
|
2104
2104
|
})(R), R;
|
|
2105
2105
|
};
|
|
@@ -2113,13 +2113,13 @@ function cr() {
|
|
|
2113
2113
|
var H = T[1];
|
|
2114
2114
|
if (typeof H == "string") {
|
|
2115
2115
|
var F = T[2] === !0, R = T[3] === !0, Z = F || R, z = T[2];
|
|
2116
|
-
R && (z = T[2]), a = this.$locale(), !F && z && (a = L.Ls[z]), this.$d = (function(O, G, X,
|
|
2116
|
+
R && (z = T[2]), a = this.$locale(), !F && z && (a = L.Ls[z]), this.$d = (function(O, G, X, I) {
|
|
2117
2117
|
try {
|
|
2118
2118
|
if (["x", "X"].indexOf(G) > -1) return new Date((G === "X" ? 1e3 : 1) * O);
|
|
2119
2119
|
var M = _(G)(O), le = M.year, ie = M.month, q = M.day, oe = M.hours, re = M.minutes, te = M.seconds, ce = M.milliseconds, Q = M.zone, W = M.week, Y = /* @__PURE__ */ new Date(), j = q || (le || ie ? 1 : Y.getDate()), V = le || Y.getFullYear(), K = 0;
|
|
2120
2120
|
le && !ie || (K = ie > 0 ? ie - 1 : Y.getMonth());
|
|
2121
2121
|
var A, ue = oe || 0, we = re || 0, _e = te || 0, ve = ce || 0;
|
|
2122
|
-
return Q ? new Date(Date.UTC(V, K, j, ue, we, _e, ve + 60 * Q.offset * 1e3)) : X ? new Date(Date.UTC(V, K, j, ue, we, _e, ve)) : (A = new Date(V, K, j, ue, we, _e, ve), W && (A =
|
|
2122
|
+
return Q ? new Date(Date.UTC(V, K, j, ue, we, _e, ve + 60 * Q.offset * 1e3)) : X ? new Date(Date.UTC(V, K, j, ue, we, _e, ve)) : (A = new Date(V, K, j, ue, we, _e, ve), W && (A = I(A).week(W).toDate()), A);
|
|
2123
2123
|
} catch {
|
|
2124
2124
|
return /* @__PURE__ */ new Date("");
|
|
2125
2125
|
}
|
|
@@ -2159,15 +2159,15 @@ const Pn = ({
|
|
|
2159
2159
|
}) => {
|
|
2160
2160
|
const u = fe(null), S = fe(null), [_, m] = se(!1), [f, L] = se(e), p = c ?? Array.from({
|
|
2161
2161
|
length: 12
|
|
2162
|
-
}, (
|
|
2162
|
+
}, (I, M) => M < 10 ? `0${M}` : `${M}`), v = c ?? Array.from({
|
|
2163
2163
|
length: 24
|
|
2164
|
-
}, (
|
|
2164
|
+
}, (I, M) => M < 10 ? `0${M}` : `${M}`), b = r ?? Array.from({
|
|
2165
2165
|
length: 60
|
|
2166
|
-
}, (
|
|
2166
|
+
}, (I, M) => M < 10 ? `0${M}` : `${M}`), [N, $] = se(""), [T, H] = se(null), [F, R] = se(null), [Z, z] = se(o), E = () => {
|
|
2167
2167
|
if (!u.current || !S.current) return;
|
|
2168
|
-
const
|
|
2169
|
-
if (!M || !
|
|
2170
|
-
const le =
|
|
2168
|
+
const I = u.current, M = S.current;
|
|
2169
|
+
if (!M || !I) return;
|
|
2170
|
+
const le = I.getBoundingClientRect(), ie = window.innerHeight, q = window.innerWidth;
|
|
2171
2171
|
M.style.position = "fixed", le.bottom + M.offsetHeight > ie ? (M.style.top = `${le.top - M.offsetHeight + 20}px`, M.style.bottom = "unset") : (M.style.top = `${le.bottom + 8}px`, M.style.bottom = "unset"), le.right + le.width > q - 120 ? M.style.left = `${le.left + le.width - M.offsetWidth}px` : M.style.left = `${le.left}px`;
|
|
2172
2172
|
}, ee = () => {
|
|
2173
2173
|
requestAnimationFrame(() => {
|
|
@@ -2182,7 +2182,7 @@ const Pn = ({
|
|
|
2182
2182
|
l && l.length > 0 && $(l);
|
|
2183
2183
|
}, [l]), he(() => {
|
|
2184
2184
|
if (!F && !T) return;
|
|
2185
|
-
const
|
|
2185
|
+
const I = parseInt(F ?? "0", 10), M = parseInt(T ?? "0", 10), le = f === "12" ? Z === "PM" && I < 12 ? I + 12 : Z === "AM" && I === 12 ? 0 : I : I, ie = ae().hour(le).minute(M).format(f === "12" ? "hh:mm A" : "HH:mm");
|
|
2186
2186
|
$(ie), n || d?.(ie);
|
|
2187
2187
|
}, [F, T, Z, f]);
|
|
2188
2188
|
const G = fe(!0);
|
|
@@ -2195,14 +2195,14 @@ const Pn = ({
|
|
|
2195
2195
|
}, [_]), he(() => {
|
|
2196
2196
|
ee();
|
|
2197
2197
|
}, [u, _]);
|
|
2198
|
-
const X = (
|
|
2199
|
-
!u.current || !S.current ||
|
|
2198
|
+
const X = (I) => {
|
|
2199
|
+
!u.current || !S.current || I.composedPath().includes(u.current) || I.composedPath().includes(S.current) || m(!1);
|
|
2200
2200
|
};
|
|
2201
2201
|
return he(() => {
|
|
2202
|
-
const
|
|
2202
|
+
const I = () => {
|
|
2203
2203
|
_ && ee();
|
|
2204
2204
|
}, M = () => {
|
|
2205
|
-
i ? m(!1) :
|
|
2205
|
+
i ? m(!1) : I();
|
|
2206
2206
|
};
|
|
2207
2207
|
document.addEventListener("click", X);
|
|
2208
2208
|
let le = [], ie = null;
|
|
@@ -2210,7 +2210,7 @@ const Pn = ({
|
|
|
2210
2210
|
q.addEventListener("scroll", M, {
|
|
2211
2211
|
passive: !0
|
|
2212
2212
|
});
|
|
2213
|
-
}), window.addEventListener("resize",
|
|
2213
|
+
}), window.addEventListener("resize", I), u.current && (ie = new IntersectionObserver((q) => {
|
|
2214
2214
|
q.forEach((oe) => {
|
|
2215
2215
|
oe.isIntersecting || m(!1);
|
|
2216
2216
|
});
|
|
@@ -2220,14 +2220,14 @@ const Pn = ({
|
|
|
2220
2220
|
root: null
|
|
2221
2221
|
// Use viewport as root
|
|
2222
2222
|
}), ie.observe(u.current))), () => {
|
|
2223
|
-
document.removeEventListener("click", X), le.forEach((q) => q.removeEventListener("scroll", M)), window.removeEventListener("resize",
|
|
2223
|
+
document.removeEventListener("click", X), le.forEach((q) => q.removeEventListener("scroll", M)), window.removeEventListener("resize", I), ie && ie.disconnect();
|
|
2224
2224
|
};
|
|
2225
2225
|
}, [_, i]), /* @__PURE__ */ h("div", { className: `${je.timepickerWrapper} ${_ ? je.focused : ""}`, children: [
|
|
2226
|
-
/* @__PURE__ */ t("div", { ref: u, className: je.timepickerInputWrapper, onClick: () => (m((
|
|
2226
|
+
/* @__PURE__ */ t("div", { ref: u, className: je.timepickerInputWrapper, onClick: () => (m((I) => !I), ee()), onFocus: U, children: /* @__PURE__ */ t(zt, { ...g, onFocusChange: (I) => m(I), customFocus: _, withActive: !1, value: N, toggleFocus: !0, formInputStyle: {
|
|
2227
2227
|
cursor: "pointer"
|
|
2228
2228
|
}, rightSlot: /* @__PURE__ */ h("div", { className: `${je.dropdownRightIcon} ${_ ? je.focused : ""}`, children: [
|
|
2229
|
-
N && /* @__PURE__ */ t("div", { onClick: (
|
|
2230
|
-
|
|
2229
|
+
N && /* @__PURE__ */ t("div", { onClick: (I) => {
|
|
2230
|
+
I.stopPropagation(), O();
|
|
2231
2231
|
}, className: je.dropdownRightIconClose, children: /* @__PURE__ */ t(fn, {}) }),
|
|
2232
2232
|
/* @__PURE__ */ t("div", { className: je.dropdownRightIconArrow, children: /* @__PURE__ */ t(Eo, {}) })
|
|
2233
2233
|
] }), readOnly: !0, forDropdown: !0 }) }),
|
|
@@ -2243,8 +2243,8 @@ const Pn = ({
|
|
|
2243
2243
|
/* @__PURE__ */ h("div", { className: je.timepickerDropdownBody, style: s ? {} : {
|
|
2244
2244
|
borderTop: "none"
|
|
2245
2245
|
}, children: [
|
|
2246
|
-
/* @__PURE__ */ t("div", { className: je.timepickerDropdownBodyHours, children: (f === "12" ? p : v).map((
|
|
2247
|
-
/* @__PURE__ */ t("div", { className: je.timepickerDropdownBodyMinutes, children: b.map((
|
|
2246
|
+
/* @__PURE__ */ t("div", { className: je.timepickerDropdownBodyHours, children: (f === "12" ? p : v).map((I) => /* @__PURE__ */ t("p", { className: F === I || N?.split(":")[0] === I ? je.active : "", onClick: () => R(I), children: I }, I)) }),
|
|
2247
|
+
/* @__PURE__ */ t("div", { className: je.timepickerDropdownBodyMinutes, children: b.map((I) => /* @__PURE__ */ t("p", { className: T === I || N?.split(":")[1] === I ? je.active : "", onClick: () => H(I), children: I }, I)) }),
|
|
2248
2248
|
f === "12" && /* @__PURE__ */ h("div", { className: je.timepickerDropdownBodyAmPm, children: [
|
|
2249
2249
|
/* @__PURE__ */ t("p", { className: Z === "AM" ? je.active : "", onClick: () => z("AM"), children: "AM" }, "AM"),
|
|
2250
2250
|
/* @__PURE__ */ t("p", { className: Z === "PM" ? je.active : "", onClick: () => z("PM"), children: "PM" }, "PM")
|
|
@@ -2357,7 +2357,7 @@ const zr = ({
|
|
|
2357
2357
|
K.push(A);
|
|
2358
2358
|
}
|
|
2359
2359
|
return K;
|
|
2360
|
-
},
|
|
2360
|
+
}, I = X(n), M = S === "dual" ? X(n.add(1, "month")) : null, le = () => {
|
|
2361
2361
|
let W = [];
|
|
2362
2362
|
return e && Array.isArray(e) && e.length > 0 && e.forEach((Y) => {
|
|
2363
2363
|
switch (Y) {
|
|
@@ -2616,7 +2616,7 @@ const zr = ({
|
|
|
2616
2616
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: z.map((W) => /* @__PURE__ */ t("th", { style: F ?? {}, children: W }, W)) }) }),
|
|
2617
2617
|
/* @__PURE__ */ h("tbody", { children: [
|
|
2618
2618
|
/* @__PURE__ */ t("tr", { className: ge.spacerRow, children: /* @__PURE__ */ t("td", {}) }),
|
|
2619
|
-
|
|
2619
|
+
I.map((W, Y) => /* @__PURE__ */ t("tr", { children: W.map(({
|
|
2620
2620
|
date: j,
|
|
2621
2621
|
currentMonth: V
|
|
2622
2622
|
}, K) => {
|
|
@@ -2718,7 +2718,7 @@ const Bn = ({
|
|
|
2718
2718
|
disabled: z = !1,
|
|
2719
2719
|
...E
|
|
2720
2720
|
}) => {
|
|
2721
|
-
const ee = hn(), [U, O] = se(!1), [G, X] = se(""),
|
|
2721
|
+
const ee = hn(), [U, O] = se(!1), [G, X] = se(""), I = fe({
|
|
2722
2722
|
state: !1,
|
|
2723
2723
|
value: ""
|
|
2724
2724
|
}), M = fe(null), [le, ie] = se(() => {
|
|
@@ -2737,9 +2737,9 @@ const Bn = ({
|
|
|
2737
2737
|
start: "",
|
|
2738
2738
|
end: ""
|
|
2739
2739
|
};
|
|
2740
|
-
(R === "single" || typeof K == "string") && (we = K, X(we)), (R !== "single" || typeof K != "string") && (K?.start || K?.end ? we = `${K?.start ? ae(K?.start).format(e) : ""} / ${K?.end ? ae(K?.end).format(e) : ""}` : we = "", _e.start = K?.start ? ae(K?.start).format(e) : "", _e.end = K?.end ? ae(K?.end).format(e) : "", X(we)), K?.end && O(!1), o && typeof o == "function" && !ue && (o(_e.start !== "" ? _e : we),
|
|
2740
|
+
(R === "single" || typeof K == "string") && (we = K, X(we)), (R !== "single" || typeof K != "string") && (K?.start || K?.end ? we = `${K?.start ? ae(K?.start).format(e) : ""} / ${K?.end ? ae(K?.end).format(e) : ""}` : we = "", _e.start = K?.start ? ae(K?.start).format(e) : "", _e.end = K?.end ? ae(K?.end).format(e) : "", X(we)), K?.end && O(!1), o && typeof o == "function" && !ue && (o(_e.start !== "" ? _e : we), I.current.value = _e.start !== "" ? _e : we);
|
|
2741
2741
|
}, W = (K) => {
|
|
2742
|
-
K.stopPropagation(), oe(""),
|
|
2742
|
+
K.stopPropagation(), oe(""), I.current.value = "", X(""), te({
|
|
2743
2743
|
start: null,
|
|
2744
2744
|
end: null
|
|
2745
2745
|
}), o && typeof o == "function" && o("");
|
|
@@ -2755,12 +2755,12 @@ const Bn = ({
|
|
|
2755
2755
|
ue.bottom + A.offsetHeight > we ? (A.style.top = `${ue.top - A.offsetHeight + ve}px`, A.style.bottom = "unset") : (A.style.top = `${ue.bottom + 8}px`, A.style.bottom = "unset"), ue.right + ue.width > _e - 120 ? A.style.left = `${ue.left + ue.width - A.offsetWidth}px` : A.style.left = `${ue.left}px`;
|
|
2756
2756
|
};
|
|
2757
2757
|
he(() => {
|
|
2758
|
-
if (l && l.length > 0 &&
|
|
2758
|
+
if (l && l.length > 0 && I.current.value === "") {
|
|
2759
2759
|
let K = Array.isArray(l) ? {
|
|
2760
2760
|
start: l[0] ? ae(l[0], e) : "",
|
|
2761
2761
|
end: l[1] ? ae(l[1], e) : null
|
|
2762
2762
|
} : ae(l, e).format(e);
|
|
2763
|
-
|
|
2763
|
+
I.current.value = l, I.current.state = !0, K && Q(K, !1, !0);
|
|
2764
2764
|
}
|
|
2765
2765
|
}, []);
|
|
2766
2766
|
const V = () => {
|
|
@@ -2798,7 +2798,7 @@ const Bn = ({
|
|
|
2798
2798
|
} }) : /* @__PURE__ */ t(zt, { ...E, customFocus: U, withActive: !1, value: G, toggleFocus: !0, formInputStyle: {
|
|
2799
2799
|
cursor: "pointer"
|
|
2800
2800
|
}, leftSlot: /* @__PURE__ */ t("div", { className: To.datepickerLeftIcon, children: /* @__PURE__ */ t(Nl, {}) }), rightSlot: /* @__PURE__ */ t("div", { className: `${To.datepickerRightIcon}`, onClick: W, children: G && /* @__PURE__ */ t(fn, {}) }), readOnly: !0 }) }),
|
|
2801
|
-
U && /* @__PURE__ */ t(zr, { namespace: ee, defaultValue:
|
|
2801
|
+
U && /* @__PURE__ */ t(zr, { namespace: ee, defaultValue: I.current, CalendarRef: M, disabledDatesFrom: d, disabledDatesTill: C, disabledDatesRange: x, valueFormat: e, onChange: (K) => Q(K, !1, !1), customYears: s, CurrentMonth: le, setCurrentMonth: ie, SelectedDate: q, setSelectedDate: oe, IsFocused: U, setIsFocused: O, quickPick: F, mode: R, RangeSelection: re, setRangeSelection: te, pickerType: Z, selectedStyle: f, endDateStyle: L, startDateStyle: p, inRangeStyle: v, otherMonthStyle: b, todayStyle: N, weekDayStyle: $, quickPickStyle: T, monthStyle: H })
|
|
2802
2802
|
] });
|
|
2803
2803
|
};
|
|
2804
2804
|
Bn.propKeys = ["defaultValue", "valueFormat", "onChange", "onBlur", "onFocus", "customYears", "fixedDropdown", "closeOnScroll", "disabledDatesFrom", "disabledDatesTill", "disabledDatesRange", "datepickerStyle", "datepickerLabelStyle", "requiredStyle", "datepickerHelperTextStyle", "selectedStyle", "endDateStyle", "startDateStyle", "inRangeStyle", "otherMonthStyle", "todayStyle", "weekDayStyle", "quickPickStyle", "monthStyle", "quickPick", "mode", "pickerType", "disabled"];
|
|
@@ -3070,7 +3070,7 @@ const mc = "mc__9ec01c79__Slider-module__sliderContainer", pc = "mc__c9787023__S
|
|
|
3070
3070
|
max: !1,
|
|
3071
3071
|
single: !1
|
|
3072
3072
|
}, e[5] = z) : z = e[5];
|
|
3073
|
-
const [E, ee] = se(z), U = vc(), O = fe(null), G = fe(null), X = fe(null),
|
|
3073
|
+
const [E, ee] = se(z), U = vc(), O = fe(null), G = fe(null), X = fe(null), I = fe(null), M = ($e) => {
|
|
3074
3074
|
const Se = O.current?.getBoundingClientRect(), He = Math.min(Math.max(0, ($e - Se.left) / Se.width), 1);
|
|
3075
3075
|
return Math.round(He * (m - _) + _);
|
|
3076
3076
|
}, le = ($e) => (ke) => {
|
|
@@ -3131,7 +3131,7 @@ const mc = "mc__9ec01c79__Slider-module__sliderContainer", pc = "mc__c9787023__S
|
|
|
3131
3131
|
const oe = q, re = bc;
|
|
3132
3132
|
let te;
|
|
3133
3133
|
e[13] !== E.max || e[14] !== E.min || e[15] !== E.single || e[16] !== R.max || e[17] !== R.min || e[18] !== R.single ? (te = () => {
|
|
3134
|
-
(R.min || E.min) && re(G), (R.max || E.max) && re(X), (R.single || E.single) && re(
|
|
3134
|
+
(R.min || E.min) && re(G), (R.max || E.max) && re(X), (R.single || E.single) && re(I);
|
|
3135
3135
|
}, e[13] = E.max, e[14] = E.min, e[15] = E.single, e[16] = R.max, e[17] = R.min, e[18] = R.single, e[19] = te) : te = e[19];
|
|
3136
3136
|
let ce;
|
|
3137
3137
|
e[20] !== T || e[21] !== E || e[22] !== R ? (ce = [T, R, E], e[20] = T, e[21] = E, e[22] = R, e[23] = ce) : ce = e[23], he(te, ce);
|
|
@@ -3176,7 +3176,7 @@ const mc = "mc__9ec01c79__Slider-module__sliderContainer", pc = "mc__c9787023__S
|
|
|
3176
3176
|
] }) : /* @__PURE__ */ t("div", { className: `${kt.thumb} ${kt.thumbSingle}`, style: {
|
|
3177
3177
|
left: `${(T.singleValue - _) / (m - _) * 100}%`,
|
|
3178
3178
|
...u ?? {}
|
|
3179
|
-
}, onMouseEnter: () => !E.single && Z(xc), onMouseLeave: () => !E.single && Z(Tc), onMouseDown: le("single"), children: (R.single || E.single) && /* @__PURE__ */ h("div", { ref:
|
|
3179
|
+
}, onMouseEnter: () => !E.single && Z(xc), onMouseLeave: () => !E.single && Z(Tc), onMouseDown: le("single"), children: (R.single || E.single) && /* @__PURE__ */ h("div", { ref: I, className: kt.tooltip, children: [
|
|
3180
3180
|
T.singleValue,
|
|
3181
3181
|
" ",
|
|
3182
3182
|
S
|
|
@@ -3575,7 +3575,7 @@ const ja = (l) => {
|
|
|
3575
3575
|
// Row actions props
|
|
3576
3576
|
onRowEdit: G,
|
|
3577
3577
|
onRowDelete: X,
|
|
3578
|
-
rowActions:
|
|
3578
|
+
rowActions: I = [],
|
|
3579
3579
|
childrenKey: M = null,
|
|
3580
3580
|
withChildrenSelection: le = !1,
|
|
3581
3581
|
paginationFooterStyle: ie
|
|
@@ -3585,27 +3585,27 @@ const ja = (l) => {
|
|
|
3585
3585
|
isResizing: oe,
|
|
3586
3586
|
resizeColumn: re,
|
|
3587
3587
|
handleResizeStart: te
|
|
3588
|
-
} = Ya(o, e.map((
|
|
3589
|
-
...
|
|
3590
|
-
customWidth:
|
|
3588
|
+
} = Ya(o, e.map((k) => ({
|
|
3589
|
+
...k,
|
|
3590
|
+
customWidth: k.customWidth
|
|
3591
3591
|
}))), ce = fe(null), [Q, W] = se(null), [Y, j] = se(null), V = fe({}), K = fe(null), A = fe(null), [ue, we] = se(!1), [_e, ve] = se(null), [$e, ke] = se(null), [Se, He] = se(e), [Ee, Ae] = se([]), [Pe, Fe] = se(null), [Re, Ke] = se(!1), at = fe(null), Ge = fe(null), st = fe({});
|
|
3592
3592
|
he(() => {
|
|
3593
|
-
const
|
|
3593
|
+
const k = e.map((B) => ({
|
|
3594
3594
|
...B,
|
|
3595
3595
|
visible: B.visible !== void 0 ? B.visible : !0,
|
|
3596
3596
|
sortable: B.sortable !== void 0 ? B.sortable : !0,
|
|
3597
3597
|
customWidth: B?.customWidth || 500
|
|
3598
3598
|
}));
|
|
3599
|
-
He(
|
|
3599
|
+
He(k);
|
|
3600
3600
|
}, [e]);
|
|
3601
|
-
const rt = (
|
|
3602
|
-
ve(B),
|
|
3603
|
-
}, gt = (
|
|
3604
|
-
|
|
3601
|
+
const rt = (k, B) => {
|
|
3602
|
+
ve(B), k.dataTransfer.effectAllowed = "move", k.dataTransfer.setData("text/html", k.currentTarget.outerHTML);
|
|
3603
|
+
}, gt = (k, B) => {
|
|
3604
|
+
k.preventDefault(), k.dataTransfer.dropEffect = "move", B !== _e && ke(B);
|
|
3605
3605
|
}, ze = () => {
|
|
3606
3606
|
ke(null);
|
|
3607
|
-
}, Je = (
|
|
3608
|
-
if (
|
|
3607
|
+
}, Je = (k, B) => {
|
|
3608
|
+
if (k.preventDefault(), _e === null || _e === B) {
|
|
3609
3609
|
ve(null), ke(null);
|
|
3610
3610
|
return;
|
|
3611
3611
|
}
|
|
@@ -3615,27 +3615,27 @@ const ja = (l) => {
|
|
|
3615
3615
|
ne.splice(me, 0, pe), He(ne), ve(null), ke(null), m?.(ne);
|
|
3616
3616
|
}, dt = () => {
|
|
3617
3617
|
ve(null), ke(null);
|
|
3618
|
-
}, ct = (
|
|
3619
|
-
const B = Se.map((ne) => ne.key ===
|
|
3618
|
+
}, ct = (k) => {
|
|
3619
|
+
const B = Se.map((ne) => ne.key === k.key ? {
|
|
3620
3620
|
...ne,
|
|
3621
3621
|
visible: !ne.visible
|
|
3622
3622
|
} : ne);
|
|
3623
3623
|
He(B), f?.(B);
|
|
3624
|
-
}, nt = Se.filter((
|
|
3624
|
+
}, nt = Se.filter((k) => k.visible), lt = (k) => {
|
|
3625
3625
|
const B = [], ne = (pe) => {
|
|
3626
3626
|
pe.forEach((me) => {
|
|
3627
3627
|
B.push(me[l]), le && M && me[M] && Array.isArray(me[M]) && ne(me[M]);
|
|
3628
3628
|
});
|
|
3629
3629
|
};
|
|
3630
|
-
if (ne(o),
|
|
3630
|
+
if (ne(o), k) {
|
|
3631
3631
|
const pe = [.../* @__PURE__ */ new Set([...s, ...B])];
|
|
3632
3632
|
a?.(pe);
|
|
3633
3633
|
} else {
|
|
3634
3634
|
const pe = s.filter((me) => !B.includes(me));
|
|
3635
3635
|
a?.(pe);
|
|
3636
3636
|
}
|
|
3637
|
-
}, w = (
|
|
3638
|
-
let pe = [
|
|
3637
|
+
}, w = (k, B, ne = null) => {
|
|
3638
|
+
let pe = [k];
|
|
3639
3639
|
const me = (We) => {
|
|
3640
3640
|
We.forEach((Be) => {
|
|
3641
3641
|
const Ve = Be[l];
|
|
@@ -3643,17 +3643,17 @@ const ja = (l) => {
|
|
|
3643
3643
|
});
|
|
3644
3644
|
};
|
|
3645
3645
|
le && M && ne?.[M] && Array.isArray(ne[M]) && me(ne[M]), a?.(B ? [.../* @__PURE__ */ new Set([...s, ...pe])] : s.filter((We) => !pe.includes(We)), ne);
|
|
3646
|
-
}, y = (
|
|
3646
|
+
}, y = (k) => {
|
|
3647
3647
|
let B = [];
|
|
3648
|
-
return
|
|
3648
|
+
return k.forEach((ne) => {
|
|
3649
3649
|
B.push(ne[l]), le && M && ne[M] && Array.isArray(ne[M]) && (B = [...B, ...y(ne[M])]);
|
|
3650
3650
|
}), B;
|
|
3651
|
-
}, P = y(o), be = o.length > 0 && P.every((
|
|
3652
|
-
G?.(
|
|
3653
|
-
}, Ze = (
|
|
3654
|
-
X?.(
|
|
3655
|
-
}, et = (
|
|
3656
|
-
const B = V.current[
|
|
3651
|
+
}, P = y(o), be = o.length > 0 && P.every((k) => s.includes(k)), Ce = P.some((k) => s.includes(k)) && !be, Me = (k, B) => {
|
|
3652
|
+
G?.(k, B);
|
|
3653
|
+
}, Ze = (k, B) => {
|
|
3654
|
+
X?.(k, B);
|
|
3655
|
+
}, et = (k) => {
|
|
3656
|
+
const B = V.current[k];
|
|
3657
3657
|
if (!B) return null;
|
|
3658
3658
|
const ne = B.getBoundingClientRect(), pe = window.innerHeight, me = window.innerWidth, We = 120, Be = 120;
|
|
3659
3659
|
let Ve = ne.right - Be - 50;
|
|
@@ -3664,53 +3664,56 @@ const ja = (l) => {
|
|
|
3664
3664
|
left: Ve,
|
|
3665
3665
|
shouldOpenUpward: ut
|
|
3666
3666
|
};
|
|
3667
|
-
}, ht = (
|
|
3668
|
-
if (
|
|
3667
|
+
}, ht = (k, B) => {
|
|
3668
|
+
if (k.stopPropagation(), Q === B)
|
|
3669
3669
|
W(null), j(null);
|
|
3670
3670
|
else {
|
|
3671
3671
|
W(B);
|
|
3672
3672
|
const ne = et(B);
|
|
3673
3673
|
j(ne);
|
|
3674
3674
|
}
|
|
3675
|
-
}, De = (
|
|
3675
|
+
}, De = (k) => {
|
|
3676
3676
|
if (!M) return;
|
|
3677
|
-
const B =
|
|
3677
|
+
const B = k?.[l];
|
|
3678
3678
|
B != null && Ae((ne) => ne.includes(B) ? ne.filter((pe) => pe !== B) : [...ne, B]);
|
|
3679
3679
|
}, qe = () => {
|
|
3680
3680
|
Fe(null);
|
|
3681
|
-
}, Dt = (
|
|
3682
|
-
|
|
3681
|
+
}, Dt = (k, B, ne) => {
|
|
3682
|
+
k.stopPropagation(), Fe((pe) => pe?.rowKey === B && pe.columnKey === ne ? pe : {
|
|
3683
3683
|
rowKey: B,
|
|
3684
3684
|
columnKey: ne
|
|
3685
3685
|
});
|
|
3686
|
-
}, eo = (
|
|
3686
|
+
}, eo = (k, B, ne, pe, me) => ({
|
|
3687
3687
|
close: qe,
|
|
3688
3688
|
save: () => {
|
|
3689
|
-
me.onInlineEditSave?.(
|
|
3689
|
+
me.onInlineEditSave?.(k, {
|
|
3690
3690
|
close: qe,
|
|
3691
3691
|
save: qe,
|
|
3692
3692
|
cancel: qe,
|
|
3693
3693
|
rowIndex: B,
|
|
3694
3694
|
rowKey: ne,
|
|
3695
|
-
columnKey: pe
|
|
3695
|
+
columnKey: pe,
|
|
3696
|
+
row: k
|
|
3696
3697
|
}), qe();
|
|
3697
3698
|
},
|
|
3698
3699
|
cancel: () => {
|
|
3699
|
-
me.onInlineEditCancel?.(
|
|
3700
|
+
me.onInlineEditCancel?.(k, {
|
|
3700
3701
|
close: qe,
|
|
3701
3702
|
save: qe,
|
|
3702
3703
|
cancel: qe,
|
|
3703
3704
|
rowIndex: B,
|
|
3704
3705
|
rowKey: ne,
|
|
3705
|
-
columnKey: pe
|
|
3706
|
+
columnKey: pe,
|
|
3707
|
+
row: k
|
|
3706
3708
|
}), qe();
|
|
3707
3709
|
},
|
|
3708
3710
|
rowIndex: B,
|
|
3709
3711
|
rowKey: ne,
|
|
3710
|
-
columnKey: pe
|
|
3711
|
-
|
|
3712
|
+
columnKey: pe,
|
|
3713
|
+
row: k
|
|
3714
|
+
}), Ot = (k, B) => `${String(k)}::${B}`;
|
|
3712
3715
|
he(() => {
|
|
3713
|
-
const
|
|
3716
|
+
const k = (pe) => {
|
|
3714
3717
|
(!pe.target || !pe.target.closest(`.${D.actionsCell}`)) && (W(null), j(null));
|
|
3715
3718
|
}, B = () => {
|
|
3716
3719
|
if (Q !== null) {
|
|
@@ -3723,35 +3726,35 @@ const ja = (l) => {
|
|
|
3723
3726
|
j(pe);
|
|
3724
3727
|
}
|
|
3725
3728
|
};
|
|
3726
|
-
return document.addEventListener("click",
|
|
3727
|
-
document.removeEventListener("click",
|
|
3729
|
+
return document.addEventListener("click", k), window.addEventListener("scroll", B, !0), window.addEventListener("resize", ne), () => {
|
|
3730
|
+
document.removeEventListener("click", k), window.removeEventListener("scroll", B, !0), window.removeEventListener("resize", ne);
|
|
3728
3731
|
};
|
|
3729
3732
|
}, [Q]), he(() => {
|
|
3730
3733
|
if (!Pe) return;
|
|
3731
|
-
const
|
|
3734
|
+
const k = (ne) => {
|
|
3732
3735
|
(!ne.target || !ne.target.closest(`.${D.inlineEditableCell}`)) && qe();
|
|
3733
3736
|
}, B = (ne) => {
|
|
3734
3737
|
ne.key === "Escape" && qe();
|
|
3735
3738
|
};
|
|
3736
|
-
return document.addEventListener("click",
|
|
3737
|
-
document.removeEventListener("click",
|
|
3739
|
+
return document.addEventListener("click", k), document.addEventListener("keydown", B), () => {
|
|
3740
|
+
document.removeEventListener("click", k), document.removeEventListener("keydown", B);
|
|
3738
3741
|
};
|
|
3739
3742
|
}, [Pe]), he(() => {
|
|
3740
3743
|
if (!Pe) {
|
|
3741
3744
|
Ke(!1);
|
|
3742
3745
|
return;
|
|
3743
3746
|
}
|
|
3744
|
-
const
|
|
3747
|
+
const k = () => {
|
|
3745
3748
|
const pe = Ot(Pe.rowKey, Pe.columnKey), me = st.current[pe], We = Ge.current;
|
|
3746
3749
|
if (!me || !We) return;
|
|
3747
3750
|
const Be = me.getBoundingClientRect(), Ve = We.getBoundingClientRect(), Xe = at.current?.getBoundingClientRect(), it = Xe ? Math.max(Xe.top, 0) : 0, ut = Xe ? Math.min(Xe.bottom, window.innerHeight) : window.innerHeight, mt = Ve.height + 8, Lt = ut - Be.bottom, Et = Be.top - it, Ie = Lt < mt && Et > Lt;
|
|
3748
3751
|
Ke(Ie);
|
|
3749
|
-
}, B = window.requestAnimationFrame(
|
|
3750
|
-
return window.addEventListener("resize",
|
|
3751
|
-
window.cancelAnimationFrame(B), window.removeEventListener("resize",
|
|
3752
|
+
}, B = window.requestAnimationFrame(k), ne = at.current;
|
|
3753
|
+
return window.addEventListener("resize", k), window.addEventListener("scroll", k, !0), ne?.addEventListener("scroll", k), () => {
|
|
3754
|
+
window.cancelAnimationFrame(B), window.removeEventListener("resize", k), window.removeEventListener("scroll", k, !0), ne?.removeEventListener("scroll", k);
|
|
3752
3755
|
};
|
|
3753
3756
|
}, [Pe]);
|
|
3754
|
-
const vt = (
|
|
3757
|
+
const vt = (k, B = 0, ne = "") => k.flatMap((pe, me) => {
|
|
3755
3758
|
const We = `${ne}${me}`, Be = pe?.[l] ?? We, Ve = typeof Be == "string" || typeof Be == "number" ? Be : String(Be), Xe = Ee.includes(Be), it = M ? pe?.[M] : void 0, ut = !!M && Array.isArray(it) && it.length > 0, mt = B > 0, Lt = /* @__PURE__ */ h("tr", { className: Qe({
|
|
3756
3759
|
[D.clickable]: !!n
|
|
3757
3760
|
}, mt && D.childRow), onClick: (Ie) => {
|
|
@@ -3799,11 +3802,11 @@ const ja = (l) => {
|
|
|
3799
3802
|
return [Lt, ...Et];
|
|
3800
3803
|
});
|
|
3801
3804
|
he(() => {
|
|
3802
|
-
const
|
|
3805
|
+
const k = (B) => {
|
|
3803
3806
|
ue && K.current && A.current && !K.current.contains(B.target) && !A.current.contains(B.target) && we(!1);
|
|
3804
3807
|
};
|
|
3805
|
-
return document.addEventListener("click",
|
|
3806
|
-
document.removeEventListener("click",
|
|
3808
|
+
return document.addEventListener("click", k), () => {
|
|
3809
|
+
document.removeEventListener("click", k);
|
|
3807
3810
|
};
|
|
3808
3811
|
}, [ue]);
|
|
3809
3812
|
const Xt = () => /* @__PURE__ */ t(It, { children: (_ || S) && /* @__PURE__ */ h("div", { className: D.gridHeader, style: {
|
|
@@ -3814,12 +3817,12 @@ const ja = (l) => {
|
|
|
3814
3817
|
width: "100%"
|
|
3815
3818
|
}, children: _ }),
|
|
3816
3819
|
S && /* @__PURE__ */ h("div", { className: D.columnConfiguration, children: [
|
|
3817
|
-
/* @__PURE__ */ t("div", { className: D.columnConfigurationIcon, ref: K, onClick: () => we((
|
|
3818
|
-
ue && /* @__PURE__ */ t("ul", { className: D.columnConfigurationDropdown, ref: A, children: Se.map((
|
|
3820
|
+
/* @__PURE__ */ t("div", { className: D.columnConfigurationIcon, ref: K, onClick: () => we((k) => !k), children: /* @__PURE__ */ t(Ml, {}) }),
|
|
3821
|
+
ue && /* @__PURE__ */ t("ul", { className: D.columnConfigurationDropdown, ref: A, children: Se.map((k, B) => /* @__PURE__ */ h("li", { className: `${D.columnConfigurationItem} ${_e === B ? D.dragging : ""} ${$e === B ? D.dragOver : ""}`, draggable: !0, onDragStart: (ne) => rt(ne, B), onDragOver: (ne) => gt(ne, B), onDragLeave: ze, onDrop: (ne) => Je(ne, B), onDragEnd: dt, children: [
|
|
3819
3822
|
/* @__PURE__ */ t("div", { className: D.columnConfigurationItemIcon, children: /* @__PURE__ */ t(Dl, {}) }),
|
|
3820
|
-
/* @__PURE__ */ t("div", { className: D.columnConfigurationItemCheckbox, onClick: (ne) => ne.stopPropagation(), children: /* @__PURE__ */ t(Ht, { checked:
|
|
3821
|
-
/* @__PURE__ */ t("p", { children:
|
|
3822
|
-
] },
|
|
3823
|
+
/* @__PURE__ */ t("div", { className: D.columnConfigurationItemCheckbox, onClick: (ne) => ne.stopPropagation(), children: /* @__PURE__ */ t(Ht, { checked: k.visible, change: () => ct(k) }) }),
|
|
3824
|
+
/* @__PURE__ */ t("p", { children: k.label })
|
|
3825
|
+
] }, k.key || k.id || B)) })
|
|
3823
3826
|
] })
|
|
3824
3827
|
] }) });
|
|
3825
3828
|
return /* @__PURE__ */ h("div", { className: D.tableContainer, children: [
|
|
@@ -3832,10 +3835,10 @@ const ja = (l) => {
|
|
|
3832
3835
|
" rows selected"
|
|
3833
3836
|
] }),
|
|
3834
3837
|
(Array.isArray(u) && u.length || C) && /* @__PURE__ */ t("div", { className: D.tableHeaderSeparator }),
|
|
3835
|
-
Array.isArray(u) && u.length > 0 ? u.map((
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
] },
|
|
3838
|
+
Array.isArray(u) && u.length > 0 ? u.map((k, B) => /* @__PURE__ */ h("div", { className: D.actionButton, onClick: () => k.onClick?.(s), children: [
|
|
3839
|
+
k.text,
|
|
3840
|
+
k.icon
|
|
3841
|
+
] }, k.text || B)) : /* @__PURE__ */ t(It, { children: C && /* @__PURE__ */ h("div", { className: D.actionButton, onClick: () => g?.(s), children: [
|
|
3839
3842
|
C,
|
|
3840
3843
|
x && x
|
|
3841
3844
|
] }) })
|
|
@@ -3844,31 +3847,31 @@ const ja = (l) => {
|
|
|
3844
3847
|
[D.resizing]: oe
|
|
3845
3848
|
}), ref: at, children: [
|
|
3846
3849
|
!L && /* @__PURE__ */ h("div", { className: D.pseudoTableHead, children: [
|
|
3847
|
-
d && /* @__PURE__ */ t("div", { className: D.pseudoCheckboxHeader, children: /* @__PURE__ */ t(Ht, { ref: (
|
|
3848
|
-
|
|
3849
|
-
}, checked: be, change: (
|
|
3850
|
+
d && /* @__PURE__ */ t("div", { className: D.pseudoCheckboxHeader, children: /* @__PURE__ */ t(Ht, { ref: (k) => {
|
|
3851
|
+
k && (k.indeterminate = Ce);
|
|
3852
|
+
}, checked: be, change: (k) => lt(k) }) }),
|
|
3850
3853
|
/* @__PURE__ */ t("div", { className: D.headerContentWithoutTitle, children: /* @__PURE__ */ t(Xt, {}) })
|
|
3851
3854
|
] }),
|
|
3852
3855
|
/* @__PURE__ */ h("table", { className: D.table, style: !o || o.length === 0 ? {
|
|
3853
3856
|
tableLayout: "auto"
|
|
3854
3857
|
} : {}, ref: ce, children: [
|
|
3855
3858
|
L && /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ h("tr", { children: [
|
|
3856
|
-
d && /* @__PURE__ */ t("th", { className: D.checkboxHeader, children: /* @__PURE__ */ t(Ht, { ref: (
|
|
3857
|
-
|
|
3858
|
-
}, checked: be, change: (
|
|
3859
|
-
nt.map((
|
|
3860
|
-
width: q[
|
|
3859
|
+
d && /* @__PURE__ */ t("th", { className: D.checkboxHeader, children: /* @__PURE__ */ t(Ht, { ref: (k) => {
|
|
3860
|
+
k && (k.indeterminate = Ce);
|
|
3861
|
+
}, checked: be, change: (k) => lt(k) }) }),
|
|
3862
|
+
nt.map((k) => /* @__PURE__ */ h("th", { style: {
|
|
3863
|
+
width: q[k.key],
|
|
3861
3864
|
position: "relative"
|
|
3862
3865
|
}, children: [
|
|
3863
|
-
/* @__PURE__ */ h("div", { className: D.headerContent, onClick:
|
|
3864
|
-
|
|
3865
|
-
c &&
|
|
3866
|
+
/* @__PURE__ */ h("div", { className: D.headerContent, onClick: k.sortable ? () => i?.(k.key) : void 0, children: [
|
|
3867
|
+
k.label,
|
|
3868
|
+
c && k.sortable && r?.[0]?.selector !== k.key && r?.[1]?.selector !== k.key && /* @__PURE__ */ h("svg", { width: "13", height: "13", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3866
3869
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 1.49012e-08C13.5523 1.49012e-08 14 0.447715 14 1V17C14 17.5523 13.5523 18 13 18C12.4477 18 12 17.5523 12 17V1C12 0.447715 12.4477 1.49012e-08 13 1.49012e-08Z", fill: "#95969C" }),
|
|
3867
3870
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.7071 17.7071C13.3166 18.0976 12.6834 18.0976 12.2929 17.7071L8.29289 13.7071C7.90237 13.3166 7.90237 12.6834 8.29289 12.2929C8.68342 11.9024 9.31658 11.9024 9.70711 12.2929L13 15.5858L16.2929 12.2929C16.6834 11.9024 17.3166 11.9024 17.7071 12.2929C18.0976 12.6834 18.0976 13.3166 17.7071 13.7071L13.7071 17.7071Z", fill: "#95969C" }),
|
|
3868
3871
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 1.49012e-08C5.55228 1.49012e-08 6 0.447715 6 1V17C6 17.5523 5.55228 18 5 18C4.44772 18 4 17.5523 4 17V1C4 0.447715 4.44772 1.49012e-08 5 1.49012e-08Z", fill: "#95969C" }),
|
|
3869
3872
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.29289 0.292893C4.68342 -0.0976311 5.31658 -0.0976311 5.70711 0.292893L9.70711 4.29289C10.0976 4.68342 10.0976 5.31658 9.70711 5.70711C9.31658 6.09763 8.68342 6.09763 8.29289 5.70711L5 2.41421L1.70711 5.70711C1.31658 6.09763 0.683417 6.09763 0.292893 5.70711C-0.0976311 5.31658 -0.0976311 4.68342 0.292893 4.29289L4.29289 0.292893Z", fill: "#95969C" })
|
|
3870
3873
|
] }),
|
|
3871
|
-
r?.[0]?.selector ===
|
|
3874
|
+
r?.[0]?.selector === k.key && (r[0].desc ? /* @__PURE__ */ h("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3872
3875
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.9987 18.3346C9.53846 18.3346 9.16536 17.9615 9.16536 17.5013L9.16536 2.5013C9.16536 2.04107 9.53846 1.66797 9.9987 1.66797C10.4589 1.66797 10.832 2.04107 10.832 2.5013L10.832 17.5013C10.832 17.9615 10.4589 18.3346 9.9987 18.3346Z", fill: "#95969C" }),
|
|
3873
3876
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.588 18.0906C10.2625 18.416 9.73489 18.416 9.40945 18.0906L3.57611 12.2572C3.25067 11.9318 3.25067 11.4042 3.57611 11.0787C3.90154 10.7533 4.42918 10.7533 4.75462 11.0787L9.9987 16.3228L15.2428 11.0787C15.5682 10.7533 16.0958 10.7533 16.4213 11.0787C16.7467 11.4042 16.7467 11.9318 16.4213 12.2572L10.588 18.0906Z", fill: "#95969C" })
|
|
3874
3877
|
] }) : /* @__PURE__ */ h("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: {
|
|
@@ -3879,21 +3882,21 @@ const ja = (l) => {
|
|
|
3879
3882
|
] }))
|
|
3880
3883
|
] }),
|
|
3881
3884
|
/* @__PURE__ */ t("div", { className: Qe(D.resizeHandle, {
|
|
3882
|
-
[D.resizing]: oe && re ===
|
|
3883
|
-
}), onMouseDown: (B) => te(B,
|
|
3884
|
-
] },
|
|
3885
|
+
[D.resizing]: oe && re === k.key
|
|
3886
|
+
}), onMouseDown: (B) => te(B, k.key) })
|
|
3887
|
+
] }, k.key)),
|
|
3885
3888
|
b && /* @__PURE__ */ t("th", { className: D.actionsHeader, children: /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("path", { d: "M13.8194 22H10.1794C9.70955 22 9.30299 21.673 9.20243 21.214L8.79543 19.33C8.25248 19.0921 7.73765 18.7946 7.26043 18.443L5.42343 19.028C4.97543 19.1709 4.48842 18.9823 4.25343 18.575L2.42943 15.424C2.19702 15.0165 2.27709 14.5025 2.62243 14.185L4.04743 12.885C3.98263 12.2961 3.98263 11.7019 4.04743 11.113L2.62243 9.816C2.27658 9.49837 2.19648 8.98372 2.42943 8.576L4.24943 5.423C4.48442 5.0157 4.97143 4.82714 5.41943 4.97L7.25643 5.555C7.50049 5.37416 7.75456 5.20722 8.01743 5.055C8.26977 4.91269 8.52947 4.78385 8.79543 4.669L9.20343 2.787C9.3035 2.32797 9.70962 2.00049 10.1794 2H13.8194C14.2892 2.00049 14.6954 2.32797 14.7954 2.787L15.2074 4.67C15.4882 4.79352 15.7617 4.93308 16.0264 5.088C16.2734 5.23081 16.5121 5.38739 16.7414 5.557L18.5794 4.972C19.0271 4.82967 19.5135 5.01816 19.7484 5.425L21.5684 8.578C21.8008 8.98548 21.7208 9.49951 21.3754 9.817L19.9504 11.117C20.0152 11.7059 20.0152 12.3001 19.9504 12.889L21.3754 14.189C21.7208 14.5065 21.8008 15.0205 21.5684 15.428L19.7484 18.581C19.5135 18.9878 19.0271 19.1763 18.5794 19.034L16.7414 18.449C16.5089 18.6203 16.2672 18.7789 16.0174 18.924C15.7553 19.0759 15.4848 19.2131 15.2074 19.335L14.7954 21.214C14.695 21.6726 14.2889 21.9996 13.8194 22ZM7.61943 16.229L8.43943 16.829C8.62428 16.9652 8.81694 17.0904 9.01643 17.204C9.20413 17.3127 9.3974 17.4115 9.59543 17.5L10.5284 17.909L10.9854 20H13.0154L13.4724 17.908L14.4054 17.499C14.8127 17.3194 15.1993 17.0961 15.5584 16.833L16.3794 16.233L18.4204 16.883L19.4354 15.125L17.8524 13.682L17.9644 12.67C18.0136 12.2274 18.0136 11.7806 17.9644 11.338L17.8524 10.326L19.4364 8.88L18.4204 7.121L16.3794 7.771L15.5584 7.171C15.1992 6.90671 14.8127 6.68175 14.4054 6.5L13.4724 6.091L13.0154 4H10.9854L10.5264 6.092L9.59543 6.5C9.39724 6.58704 9.20395 6.68486 9.01643 6.793C8.81817 6.90633 8.62652 7.03086 8.44243 7.166L7.62143 7.766L5.58143 7.116L4.56443 8.88L6.14743 10.321L6.03543 11.334C5.98623 11.7766 5.98623 12.2234 6.03543 12.666L6.14743 13.678L4.56443 15.121L5.57943 16.879L7.61943 16.229ZM11.9954 16C9.78629 16 7.99543 14.2091 7.99543 12C7.99543 9.79086 9.78629 8 11.9954 8C14.2046 8 15.9954 9.79086 15.9954 12C15.9927 14.208 14.2034 15.9972 11.9954 16ZM11.9954 10C10.9028 10.0011 10.0133 10.8788 9.99766 11.9713C9.98201 13.0638 10.846 13.9667 11.9381 13.9991C13.0302 14.0315 13.9463 13.1815 13.9954 12.09V12.49V12C13.9954 10.8954 13.1 10 11.9954 10Z", fill: "#131314" }) }) })
|
|
3886
3889
|
] }) }),
|
|
3887
|
-
/* @__PURE__ */ t("tbody", { children: o.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: d ? nt.length + 2 : nt.length + 1, className: D.empty, children: "No data available" }) }) : /* @__PURE__ */ t(It, { children: M ? vt(o) : o.map((
|
|
3888
|
-
const ne =
|
|
3890
|
+
/* @__PURE__ */ t("tbody", { children: o.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: d ? nt.length + 2 : nt.length + 1, className: D.empty, children: "No data available" }) }) : /* @__PURE__ */ t(It, { children: M ? vt(o) : o.map((k, B) => {
|
|
3891
|
+
const ne = k?.[l] ?? B, pe = typeof ne == "string" || typeof ne == "number" ? ne : String(ne);
|
|
3889
3892
|
return /* @__PURE__ */ h("tr", { className: Qe({
|
|
3890
3893
|
[D.clickable]: !!n
|
|
3891
3894
|
}), onClick: (me) => {
|
|
3892
|
-
me.target.type !== "checkbox" && !me.target.closest(`.${D.actionsCell}`) && !me.target.closest(`.${D.checkboxCell}`) && !me.target.closest(`.${D.inlineEditableCell}`) && n?.(
|
|
3895
|
+
me.target.type !== "checkbox" && !me.target.closest(`.${D.actionsCell}`) && !me.target.closest(`.${D.checkboxCell}`) && !me.target.closest(`.${D.inlineEditableCell}`) && n?.(k, B);
|
|
3893
3896
|
}, children: [
|
|
3894
|
-
d && /* @__PURE__ */ t("td", { className: D.checkboxCell, onClick: (me) => me.stopPropagation(), children: /* @__PURE__ */ t(Ht, { checked: s.includes(
|
|
3897
|
+
d && /* @__PURE__ */ t("td", { className: D.checkboxCell, onClick: (me) => me.stopPropagation(), children: /* @__PURE__ */ t(Ht, { checked: s.includes(k[l]), change: (me) => w(k[l], me, k) }) }),
|
|
3895
3898
|
nt.map((me, We) => {
|
|
3896
|
-
const Be = typeof me.rowTooltipProps == "function" ? me.rowTooltipProps(
|
|
3899
|
+
const Be = typeof me.rowTooltipProps == "function" ? me.rowTooltipProps(k) : me.rowTooltipProps, Ve = String(me.key ?? We), Xe = !!me.inlineEdit && typeof me.editRender == "function", it = Xe && Pe?.rowKey === pe && Pe.columnKey === Ve, ut = me.render ? me.render(k) : k[me.key], mt = eo(k, B, pe, Ve, me), Lt = it ? me.editRender?.(k, mt) ?? ut : ut, Et = Ot(pe, Ve), Ie = /* @__PURE__ */ t("div", { className: Qe(D.cellValue, it && D.editingCellValue), style: {
|
|
3897
3900
|
width: "100%"
|
|
3898
3901
|
}, children: Lt });
|
|
3899
3902
|
return /* @__PURE__ */ t("td", { className: Qe(Xe && D.inlineEditableCell, it && D.editingCell), style: {
|
|
@@ -3927,8 +3930,8 @@ const ja = (l) => {
|
|
|
3927
3930
|
left: `${Y.left}px`,
|
|
3928
3931
|
zIndex: 1e3
|
|
3929
3932
|
}, children: [
|
|
3930
|
-
G && /* @__PURE__ */ h("div", { className: D.actionItem, onClick: (
|
|
3931
|
-
|
|
3933
|
+
G && /* @__PURE__ */ h("div", { className: D.actionItem, onClick: (k) => {
|
|
3934
|
+
k.stopPropagation(), Me(o[Q], Q), W(null), j(null);
|
|
3932
3935
|
}, children: [
|
|
3933
3936
|
/* @__PURE__ */ t("svg", { width: "23", height: "23", viewBox: "0 0 23 23", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: {
|
|
3934
3937
|
transform: "scale(0.7)"
|
|
@@ -3937,8 +3940,8 @@ const ja = (l) => {
|
|
|
3937
3940
|
] }),
|
|
3938
3941
|
X && /* @__PURE__ */ h("div", { className: D.actionItem, style: {
|
|
3939
3942
|
color: "#E3292F"
|
|
3940
|
-
}, onClick: (
|
|
3941
|
-
|
|
3943
|
+
}, onClick: (k) => {
|
|
3944
|
+
k.stopPropagation(), Ze(o[Q], Q), W(null), j(null);
|
|
3942
3945
|
}, children: [
|
|
3943
3946
|
/* @__PURE__ */ h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3944
3947
|
/* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.83203 6.66602V14.9993C5.83203 15.9198 6.57822 16.666 7.4987 16.666H12.4987C13.4192 16.666 14.1654 15.9198 14.1654 14.9993V6.66602H15.832V14.9993C15.832 16.8403 14.3396 18.3327 12.4987 18.3327H7.4987C5.65775 18.3327 4.16536 16.8403 4.16536 14.9993V6.66602H5.83203Z", fill: "#E3292F" }),
|
|
@@ -3948,11 +3951,11 @@ const ja = (l) => {
|
|
|
3948
3951
|
] }),
|
|
3949
3952
|
"Delete"
|
|
3950
3953
|
] }),
|
|
3951
|
-
|
|
3952
|
-
ne.stopPropagation(),
|
|
3954
|
+
I.map((k, B) => /* @__PURE__ */ h("div", { className: D.actionItem, onClick: (ne) => {
|
|
3955
|
+
ne.stopPropagation(), k.onClick?.(o[Q], Q), W(null), j(null);
|
|
3953
3956
|
}, children: [
|
|
3954
|
-
|
|
3955
|
-
|
|
3957
|
+
k.icon && /* @__PURE__ */ t("div", { children: k.icon }),
|
|
3958
|
+
k.text
|
|
3956
3959
|
] }, B))
|
|
3957
3960
|
] }),
|
|
3958
3961
|
H && /* @__PURE__ */ h("div", { className: D.paginationFooter, style: ie ?? {}, children: [
|
|
@@ -3964,14 +3967,14 @@ const ja = (l) => {
|
|
|
3964
3967
|
transform: "rotate(180deg)"
|
|
3965
3968
|
}, children: /* @__PURE__ */ t("path", { d: "M12.6008 12.0047L8.70078 8.10469C8.51745 7.92135 8.42578 7.68802 8.42578 7.40469C8.42578 7.12135 8.51745 6.88802 8.70078 6.70469C8.88411 6.52135 9.11745 6.42969 9.40078 6.42969C9.68411 6.42969 9.91745 6.52135 10.1008 6.70469L14.7008 11.3047C14.8008 11.4047 14.8716 11.513 14.9133 11.6297C14.9549 11.7464 14.9758 11.8714 14.9758 12.0047C14.9758 12.138 14.9549 12.263 14.9133 12.3797C14.8716 12.4964 14.8008 12.6047 14.7008 12.7047L10.1008 17.3047C9.91745 17.488 9.68411 17.5797 9.40078 17.5797C9.11745 17.5797 8.88411 17.488 8.70078 17.3047C8.51745 17.1214 8.42578 16.888 8.42578 16.6047C8.42578 16.3214 8.51745 16.088 8.70078 15.9047L12.6008 12.0047Z", fill: "currentColor" }) }) }),
|
|
3966
3969
|
(() => {
|
|
3967
|
-
const
|
|
3970
|
+
const k = [], B = R || 5, ne = Math.floor(B / 2);
|
|
3968
3971
|
let pe = Math.max(0, N - ne), me = Math.min($ - 1, pe + B - 1);
|
|
3969
|
-
me - pe < B - 1 && (pe = Math.max(0, me - B + 1)), pe > 0 && (
|
|
3972
|
+
me - pe < B - 1 && (pe = Math.max(0, me - B + 1)), pe > 0 && (k.push(/* @__PURE__ */ t("button", { className: Qe(D.paginationButton, D.pageNumber), onClick: () => T?.(0), children: "1" }, 0)), pe > 1 && k.push(/* @__PURE__ */ t("span", { className: D.ellipsis, children: "..." }, "ellipsis1")));
|
|
3970
3973
|
for (let We = pe; We <= me; We++)
|
|
3971
|
-
|
|
3974
|
+
k.push(/* @__PURE__ */ t("button", { className: Qe(D.paginationButton, D.pageNumber, {
|
|
3972
3975
|
[D.active]: We === N
|
|
3973
3976
|
}), onClick: () => T?.(We), children: We + 1 }, We));
|
|
3974
|
-
return me < $ - 1 && (me < $ - 2 &&
|
|
3977
|
+
return me < $ - 1 && (me < $ - 2 && k.push(/* @__PURE__ */ t("span", { className: D.ellipsis, children: "..." }, "ellipsis2")), k.push(/* @__PURE__ */ t("button", { className: Qe(D.paginationButton, D.pageNumber), onClick: () => T?.($ - 1), children: $ }, $ - 1))), k;
|
|
3975
3978
|
})(),
|
|
3976
3979
|
/* @__PURE__ */ t("button", { className: D.paginationButton, onClick: () => T?.(N + 1 < $ ? N + 1 : N), disabled: N + 1 >= $, children: /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("path", { d: "M12.6008 12.0047L8.70078 8.10469C8.51745 7.92135 8.42578 7.68802 8.42578 7.40469C8.42578 7.12135 8.51745 6.88802 8.70078 6.70469C8.88411 6.52135 9.11745 6.42969 9.40078 6.42969C9.68411 6.42969 9.91745 6.52135 10.1008 6.70469L14.7008 11.3047C14.8008 11.4047 14.8716 11.513 14.9133 11.6297C14.9549 11.7464 14.9758 11.8714 14.9758 12.0047C14.9758 12.138 14.9549 12.263 14.9133 12.3797C14.8716 12.4964 14.8008 12.6047 14.7008 12.7047L10.1008 17.3047C9.91745 17.488 9.68411 17.5797 9.40078 17.5797C9.11745 17.5797 8.88411 17.488 8.70078 17.3047C8.51745 17.1214 8.42578 16.888 8.42578 16.6047C8.42578 16.3214 8.51745 16.088 8.70078 15.9047L12.6008 12.0047Z", fill: "currentColor" }) }) })
|
|
3977
3980
|
] }) : /* @__PURE__ */ h(It, { children: [
|
|
@@ -4332,7 +4335,7 @@ const kd = "mc__ede5d68d__ColourPicker-module__colourPickerWrapper", Id = "mc__0
|
|
|
4332
4335
|
};
|
|
4333
4336
|
return So(J);
|
|
4334
4337
|
}, e[0] = o, e[1] = X) : X = e[1];
|
|
4335
|
-
const [
|
|
4338
|
+
const [I, M] = se(X);
|
|
4336
4339
|
let le;
|
|
4337
4340
|
e[2] !== o ? (le = () => {
|
|
4338
4341
|
const J = an(o) ?? {
|
|
@@ -4372,7 +4375,7 @@ const kd = "mc__ede5d68d__ColourPicker-module__colourPickerWrapper", Id = "mc__0
|
|
|
4372
4375
|
}, e[21] = u, e[22] = Pe, e[23] = g, e[24] = Re) : Re = e[24];
|
|
4373
4376
|
const Ke = Re;
|
|
4374
4377
|
let at;
|
|
4375
|
-
e[25] !==
|
|
4378
|
+
e[25] !== I ? (at = Do(I), e[25] = I, e[26] = at) : at = e[26];
|
|
4376
4379
|
const Ge = at;
|
|
4377
4380
|
let st;
|
|
4378
4381
|
e[27] !== Ge ? (st = Mo(Ge), e[27] = Ge, e[28] = st) : st = e[28];
|
|
@@ -4538,7 +4541,7 @@ const kd = "mc__ede5d68d__ColourPicker-module__colourPickerWrapper", Id = "mc__0
|
|
|
4538
4541
|
s: 1,
|
|
4539
4542
|
v: 1
|
|
4540
4543
|
}), e[65] = ie, e[66] = Xt) : Xt = e[66];
|
|
4541
|
-
const
|
|
4544
|
+
const k = Xt;
|
|
4542
4545
|
let B;
|
|
4543
4546
|
e[67] === Symbol.for("react.memo_cache_sentinel") ? (B = () => {
|
|
4544
4547
|
const J = b.current, Te = N.current;
|
|
@@ -4602,7 +4605,7 @@ const kd = "mc__ede5d68d__ColourPicker-module__colourPickerWrapper", Id = "mc__0
|
|
|
4602
4605
|
}, ut = () => {
|
|
4603
4606
|
H.current = null;
|
|
4604
4607
|
}, mt = /* @__PURE__ */ t("div", { className: Ye.svWhite }), Lt = /* @__PURE__ */ t("div", { className: Ye.svBlack }), e[81] = it, e[82] = ut, e[83] = mt, e[84] = Lt) : (it = e[81], ut = e[82], mt = e[83], Lt = e[84]);
|
|
4605
|
-
const Et = `${
|
|
4608
|
+
const Et = `${I.s * 100}%`, Ie = `${(1 - I.v) * 100}%`;
|
|
4606
4609
|
let tt;
|
|
4607
4610
|
e[85] !== ze || e[86] !== Et || e[87] !== Ie ? (tt = /* @__PURE__ */ t("div", { className: Ye.svThumb, style: {
|
|
4608
4611
|
left: Et,
|
|
@@ -4648,17 +4651,17 @@ const kd = "mc__ede5d68d__ColourPicker-module__colourPickerWrapper", Id = "mc__0
|
|
|
4648
4651
|
H.current = null;
|
|
4649
4652
|
}, e[111] = _t, e[112] = Vo) : (_t = e[111], Vo = e[112]);
|
|
4650
4653
|
let Ao;
|
|
4651
|
-
e[113] !==
|
|
4654
|
+
e[113] !== k.r ? (Ao = Math.round(k.r), e[113] = k.r, e[114] = Ao) : Ao = e[114];
|
|
4652
4655
|
let Fo;
|
|
4653
|
-
e[115] !==
|
|
4656
|
+
e[115] !== k.g ? (Fo = Math.round(k.g), e[115] = k.g, e[116] = Fo) : Fo = e[116];
|
|
4654
4657
|
let Wo;
|
|
4655
|
-
e[117] !==
|
|
4658
|
+
e[117] !== k.b ? (Wo = Math.round(k.b), e[117] = k.b, e[118] = Wo) : Wo = e[118];
|
|
4656
4659
|
let Zo;
|
|
4657
|
-
e[119] !==
|
|
4660
|
+
e[119] !== k.r ? (Zo = Math.round(k.r), e[119] = k.r, e[120] = Zo) : Zo = e[120];
|
|
4658
4661
|
let zo;
|
|
4659
|
-
e[121] !==
|
|
4662
|
+
e[121] !== k.g ? (zo = Math.round(k.g), e[121] = k.g, e[122] = zo) : zo = e[122];
|
|
4660
4663
|
let Oo;
|
|
4661
|
-
e[123] !==
|
|
4664
|
+
e[123] !== k.b ? (Oo = Math.round(k.b), e[123] = k.b, e[124] = Oo) : Oo = e[124];
|
|
4662
4665
|
const gn = `linear-gradient(to right, rgba(${Ao}, ${Fo}, ${Wo}, 0), rgba(${Zo}, ${zo}, ${Oo}, 1))`;
|
|
4663
4666
|
let no;
|
|
4664
4667
|
e[125] !== gn ? (no = /* @__PURE__ */ t("div", { className: Ye.opacityGradient, style: {
|