master-components-react-ts 2.3.4 → 2.3.5
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 +2 -2
- package/dist/index.js +125 -132
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export type ColumnType = {
|
|
|
7
7
|
};
|
|
8
8
|
export type ActionButtonType = {
|
|
9
9
|
text?: string;
|
|
10
|
-
icon?:
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
11
|
onClick?: (row: any, rowIndex?: number) => void;
|
|
12
12
|
};
|
|
13
13
|
export type SortType = {
|
|
@@ -15,7 +15,7 @@ export type SortType = {
|
|
|
15
15
|
desc: boolean;
|
|
16
16
|
};
|
|
17
17
|
export type RowActionType = {
|
|
18
|
-
icon?:
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
19
|
text?: string;
|
|
20
20
|
onClick?: (row: any, rowIndex: number) => void;
|
|
21
21
|
};
|
package/dist/index.js
CHANGED
|
@@ -60,10 +60,10 @@ const Pe = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
60
60
|
fill: a = "none",
|
|
61
61
|
d = "M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",
|
|
62
62
|
stroke: i = "#A4A7AE",
|
|
63
|
-
strokeWidth:
|
|
63
|
+
strokeWidth: y = "1.66667",
|
|
64
64
|
strokeLinecap: M = "round",
|
|
65
65
|
strokeLinejoin: p = "round"
|
|
66
|
-
}) => /* @__PURE__ */ e("svg", { xmlns: n, width: t, height: o, viewBox: s, fill: a, children: /* @__PURE__ */ e("path", { d, stroke: i, strokeWidth:
|
|
66
|
+
}) => /* @__PURE__ */ e("svg", { xmlns: n, width: t, height: o, viewBox: s, fill: a, children: /* @__PURE__ */ e("path", { d, stroke: i, strokeWidth: y, strokeLinecap: M, strokeLinejoin: p }) }), yt = ({ color: t = "#131314" }) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", color: t, children: /* @__PURE__ */ e(
|
|
67
67
|
"path",
|
|
68
68
|
{
|
|
69
69
|
fillRule: "evenodd",
|
|
@@ -253,7 +253,7 @@ const Pe = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
253
253
|
type: a = "button",
|
|
254
254
|
colorType: d = "neutral",
|
|
255
255
|
buttonType: i = "primary",
|
|
256
|
-
withFocus:
|
|
256
|
+
withFocus: y = !1,
|
|
257
257
|
customFocus: M,
|
|
258
258
|
disabled: p,
|
|
259
259
|
loading: f = !1,
|
|
@@ -266,7 +266,7 @@ const Pe = 50 / 2, Mt = ({ size: t = 24, strokeWidth: o = 5, linecap: r = "round
|
|
|
266
266
|
onClick: L
|
|
267
267
|
}) => {
|
|
268
268
|
const [k, K] = E(M || !1), V = oe(null), Z = (A) => {
|
|
269
|
-
p || f || (
|
|
269
|
+
p || f || (y && K((j) => !j), L?.(A));
|
|
270
270
|
}, G = () => {
|
|
271
271
|
let A = "#ffffff";
|
|
272
272
|
return d === "neutral" && i !== "primary" && (A = "#0058FF"), d === "positive" && i !== "primary" && (A = "#328707"), d === "negative" && i !== "primary" && (A = "#E3292F"), A;
|
|
@@ -347,7 +347,7 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
347
347
|
readOnly: a = !1,
|
|
348
348
|
withFocus: d = !0,
|
|
349
349
|
withActive: i = !0,
|
|
350
|
-
searchComponent:
|
|
350
|
+
searchComponent: y = !1,
|
|
351
351
|
size: M = "md",
|
|
352
352
|
toggleFocus: p = !1,
|
|
353
353
|
rightSlot: f,
|
|
@@ -374,7 +374,7 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
374
374
|
inputSlotStyle: T
|
|
375
375
|
}) => {
|
|
376
376
|
const C = oe(null), [N, B] = E(I ?? ""), [Q, U] = E(!1), [ne, de] = E(!1), pe = (J) => {
|
|
377
|
-
|
|
377
|
+
y && B(J.target.value), Z?.(J.target.value);
|
|
378
378
|
}, ue = () => {
|
|
379
379
|
G?.(), !w && U(!0);
|
|
380
380
|
}, ge = () => {
|
|
@@ -383,7 +383,7 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
383
383
|
const u = J.currentTarget.value, S = u.length === 0;
|
|
384
384
|
D === "number" && (J.keyCode === 69 || !S && (J.keyCode === 187 || J.keyCode === 107 || J.keyCode === 189 || J.keyCode === 109)) && J.preventDefault(), J.key === "Enter" && u && u.length > 0 && j?.();
|
|
385
385
|
}, ae = (J) => J, le = () => {
|
|
386
|
-
|
|
386
|
+
y && (B(""), Z?.(""));
|
|
387
387
|
};
|
|
388
388
|
return X(() => {
|
|
389
389
|
ee?.(Q);
|
|
@@ -406,7 +406,7 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
406
406
|
onClick: () => p && U((J) => !J),
|
|
407
407
|
children: [
|
|
408
408
|
g && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children: ae(g) }),
|
|
409
|
-
|
|
409
|
+
y && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children: ae(/* @__PURE__ */ e(Dt, {})) }),
|
|
410
410
|
V ? /* @__PURE__ */ e("div", { className: ce.formInputSlot, style: T ?? {}, children: ae(V) }) : /* @__PURE__ */ e(
|
|
411
411
|
"input",
|
|
412
412
|
{
|
|
@@ -414,7 +414,7 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
414
414
|
ref: C,
|
|
415
415
|
style: z ?? {},
|
|
416
416
|
type: D ?? "text",
|
|
417
|
-
value:
|
|
417
|
+
value: y ? N : I,
|
|
418
418
|
onChange: (J) => pe(J),
|
|
419
419
|
onMouseDown: () => !w && de(!0),
|
|
420
420
|
onMouseUp: () => !w && de(!1),
|
|
@@ -431,8 +431,8 @@ const co = "mc__FormInput-module__inputWrapper", uo = "mc__FormInput-module__sm"
|
|
|
431
431
|
maxLength: h
|
|
432
432
|
}
|
|
433
433
|
),
|
|
434
|
-
f && /* @__PURE__ */ e("div", { style:
|
|
435
|
-
|
|
434
|
+
f && /* @__PURE__ */ e("div", { style: y ? { cursor: "pointer" } : {}, className: ce.formInputSlot, children: ae(f) }),
|
|
435
|
+
y && /* @__PURE__ */ e("div", { className: ce.formInputSlot, children: /* @__PURE__ */ e("div", { onClick: le, style: y ? { cursor: "pointer" } : {}, className: ce.formInputSlot, children: N?.length > 0 ? ae(/* @__PURE__ */ e(Ke, {})) : null }) })
|
|
436
436
|
]
|
|
437
437
|
}
|
|
438
438
|
),
|
|
@@ -505,7 +505,7 @@ const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__
|
|
|
505
505
|
inputState: a = { error: !1, success: !0 },
|
|
506
506
|
maxLength: d = 20,
|
|
507
507
|
withFocus: i = !0,
|
|
508
|
-
withActive:
|
|
508
|
+
withActive: y = !0,
|
|
509
509
|
withResize: M = !0,
|
|
510
510
|
withClose: p = !0,
|
|
511
511
|
onChange: f,
|
|
@@ -575,7 +575,7 @@ const $o = "mc__Textarea-module__textareaContainer", Mo = "mc__Textarea-module__
|
|
|
575
575
|
/* @__PURE__ */ e(
|
|
576
576
|
"textarea",
|
|
577
577
|
{
|
|
578
|
-
className: `${Ce.textarea} ${Z ? Ce.focused : ""} ${D ? Ce.disabled : ""} ${i && Z ? a.error ? Ce.errorFocused : Ce.focused : ""} ${
|
|
578
|
+
className: `${Ce.textarea} ${Z ? Ce.focused : ""} ${D ? Ce.disabled : ""} ${i && Z ? a.error ? Ce.errorFocused : Ce.focused : ""} ${y && A ? a.error ? Ce.errorActive : Ce.active : ""} ${a.error ? Ce.error : ""} ${a.success ? Ce.success : ""}`,
|
|
579
579
|
value: s,
|
|
580
580
|
placeholder: t ?? "",
|
|
581
581
|
cols: r,
|
|
@@ -666,7 +666,7 @@ const qo = "mc__Checkbox-module__checkboxWrapper", Xo = "mc__Checkbox-module__ch
|
|
|
666
666
|
multipleChecked: a = !1,
|
|
667
667
|
activeStyle: d,
|
|
668
668
|
checkBoxStyle: i,
|
|
669
|
-
theme:
|
|
669
|
+
theme: y = "light"
|
|
670
670
|
}) => {
|
|
671
671
|
const M = tt(), p = oe(null), [f, g] = E(!1), b = () => {
|
|
672
672
|
n || o && typeof o == "function" && o(!t);
|
|
@@ -675,7 +675,7 @@ const qo = "mc__Checkbox-module__checkboxWrapper", Xo = "mc__Checkbox-module__ch
|
|
|
675
675
|
"div",
|
|
676
676
|
{
|
|
677
677
|
style: f ? n ? { boxShadow: "none" } : d ?? {} : i ?? {},
|
|
678
|
-
className: `${
|
|
678
|
+
className: `${y === "dark" ? Me.dark : ""} ${Me[M]} ${Me.checkboxWrapper} ${r === "error" ? Me.error : ""} ${t ? Me.checked : Me.unChecked} ${n ? Me.disabled : ""}`,
|
|
679
679
|
onMouseDown: () => g(!0),
|
|
680
680
|
onMouseUp: () => g(!1),
|
|
681
681
|
onMouseLeave: () => g(!1),
|
|
@@ -743,7 +743,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
743
743
|
fromDropdown: a = !1,
|
|
744
744
|
withSelectAll: d = !1,
|
|
745
745
|
withClearAll: i = !1,
|
|
746
|
-
expandedNodes:
|
|
746
|
+
expandedNodes: y,
|
|
747
747
|
SearchValue: M,
|
|
748
748
|
SelectedData: p,
|
|
749
749
|
treeContainerStyle: f,
|
|
@@ -809,7 +809,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
809
809
|
checkboxProps: r,
|
|
810
810
|
onCollapse: G,
|
|
811
811
|
depth: 0,
|
|
812
|
-
expandedNodes:
|
|
812
|
+
expandedNodes: y,
|
|
813
813
|
SearchValue: M,
|
|
814
814
|
SelectedData: p,
|
|
815
815
|
treeContainerStyle: f,
|
|
@@ -836,7 +836,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
836
836
|
depth: a,
|
|
837
837
|
expandedNodes: d,
|
|
838
838
|
SearchValue: i,
|
|
839
|
-
SelectedData:
|
|
839
|
+
SelectedData: y,
|
|
840
840
|
treeContainerStyle: M,
|
|
841
841
|
treeNodeItemStyle: p,
|
|
842
842
|
treeFooterStyle: f,
|
|
@@ -846,7 +846,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
846
846
|
collapseToggleStyle: I
|
|
847
847
|
}) => {
|
|
848
848
|
const h = d?.find((Z) => Z.id === t.id);
|
|
849
|
-
|
|
849
|
+
y?.find((Z) => Z.id === t.id);
|
|
850
850
|
const [w, L] = E(h ? !1 : r || !0), k = () => {
|
|
851
851
|
L((Z) => !Z), s?.(w, t);
|
|
852
852
|
}, K = () => {
|
|
@@ -888,7 +888,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
888
888
|
depth: a + 1,
|
|
889
889
|
expandedNodes: d,
|
|
890
890
|
SearchValue: i,
|
|
891
|
-
SelectedData:
|
|
891
|
+
SelectedData: y,
|
|
892
892
|
treeContainerStyle: M,
|
|
893
893
|
treeNodeItemStyle: p,
|
|
894
894
|
treeFooterStyle: f,
|
|
@@ -909,7 +909,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
909
909
|
selectedOptionID: a,
|
|
910
910
|
withInput: d = !1,
|
|
911
911
|
withTree: i = !1,
|
|
912
|
-
withSelectAll:
|
|
912
|
+
withSelectAll: y = !0,
|
|
913
913
|
dropdownType: M = "country",
|
|
914
914
|
onSelect: p,
|
|
915
915
|
onFocus: f,
|
|
@@ -954,7 +954,7 @@ const nn = "mc__Dropdown-module__dropdownWrapper", rn = "mc__Dropdown-module__dr
|
|
|
954
954
|
ae(t);
|
|
955
955
|
return;
|
|
956
956
|
}
|
|
957
|
-
const m = t?.some((te) => "selected" in te), H =
|
|
957
|
+
const m = t?.some((te) => "selected" in te), H = y ? [{ id: "SELECT_ALL", label: "Select All", selected: C }] : [];
|
|
958
958
|
m ? ae([...H, ...t]) : (t?.forEach((te) => {
|
|
959
959
|
te.selected = !1;
|
|
960
960
|
}), ae([...H, ...t]));
|
|
@@ -1159,8 +1159,8 @@ const Fn = "mc__Radio-module__radioWrapper", En = {
|
|
|
1159
1159
|
const d = () => {
|
|
1160
1160
|
r || o?.(s ? !t : !0);
|
|
1161
1161
|
}, i = () => {
|
|
1162
|
-
let
|
|
1163
|
-
return t ? r ?
|
|
1162
|
+
let y = null, M = r ? "#95969C" : a === "error" ? "#E3292F" : "#0058FF";
|
|
1163
|
+
return t ? r ? y = /* @__PURE__ */ e(Bt, { color: M }) : y = /* @__PURE__ */ e(At, { color: M }) : r ? y = /* @__PURE__ */ e(Wt, { color: M }) : y = /* @__PURE__ */ e(Rt, { color: M }), y;
|
|
1164
1164
|
};
|
|
1165
1165
|
return /* @__PURE__ */ l("div", { className: En.radioWrapper, style: { cursor: r ? "not-allowed" : "pointer" }, onClick: d, children: [
|
|
1166
1166
|
/* @__PURE__ */ e("input", { type: "radio", checked: !0, readOnly: !0, hidden: !0, disabled: r ?? !1, required: n }),
|
|
@@ -1190,7 +1190,7 @@ const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__too
|
|
|
1190
1190
|
title: a,
|
|
1191
1191
|
text: d,
|
|
1192
1192
|
customText: i,
|
|
1193
|
-
tooltipContentStyle:
|
|
1193
|
+
tooltipContentStyle: y,
|
|
1194
1194
|
tooltipTitlestyle: M,
|
|
1195
1195
|
tooltipTextStyle: p,
|
|
1196
1196
|
tooltipContainerStyle: f,
|
|
@@ -1265,7 +1265,7 @@ const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__too
|
|
|
1265
1265
|
A && o ? /* @__PURE__ */ e(
|
|
1266
1266
|
"div",
|
|
1267
1267
|
{
|
|
1268
|
-
style:
|
|
1268
|
+
style: y ?? {},
|
|
1269
1269
|
onClick: (c) => c.stopPropagation(),
|
|
1270
1270
|
ref: Z,
|
|
1271
1271
|
className: `${xe.tooltipContent} ${n ? xe[n] : xe.bottom}`,
|
|
@@ -1274,7 +1274,7 @@ const On = "mc__Tooltip-module__tooltipContainer", Vn = "mc__Tooltip-module__too
|
|
|
1274
1274
|
) : A && /* @__PURE__ */ l(
|
|
1275
1275
|
"div",
|
|
1276
1276
|
{
|
|
1277
|
-
style:
|
|
1277
|
+
style: y ?? {},
|
|
1278
1278
|
onClick: (c) => c.stopPropagation(),
|
|
1279
1279
|
ref: Z,
|
|
1280
1280
|
className: `${xe.tooltipContent} ${n ? xe[n] : xe.bottom}`,
|
|
@@ -1331,7 +1331,7 @@ const Qn = "mc__Popup-module__modalOverlay", Jn = "mc__Popup-module__popupDrawer
|
|
|
1331
1331
|
widthType: d,
|
|
1332
1332
|
// "horizontal"
|
|
1333
1333
|
modalOverlayStyle: i,
|
|
1334
|
-
popupContainerStyle:
|
|
1334
|
+
popupContainerStyle: y,
|
|
1335
1335
|
templateWrapperStyle: M,
|
|
1336
1336
|
closeButtonStyle: p
|
|
1337
1337
|
}) => {
|
|
@@ -1354,7 +1354,7 @@ const Qn = "mc__Popup-module__modalOverlay", Jn = "mc__Popup-module__popupDrawer
|
|
|
1354
1354
|
children: /* @__PURE__ */ l(
|
|
1355
1355
|
"div",
|
|
1356
1356
|
{
|
|
1357
|
-
style:
|
|
1357
|
+
style: y ?? {},
|
|
1358
1358
|
className: `
|
|
1359
1359
|
mcPopup_global
|
|
1360
1360
|
${We.popupContainer}
|
|
@@ -1417,14 +1417,14 @@ const nr = "mc__NotificationToast-module__toastContainer", rr = "mc__Notificatio
|
|
|
1417
1417
|
withInfoIcon: a = !0,
|
|
1418
1418
|
description: d,
|
|
1419
1419
|
customAction: i,
|
|
1420
|
-
timeout:
|
|
1420
|
+
timeout: y = 4e3,
|
|
1421
1421
|
children: M,
|
|
1422
1422
|
onUndo: p,
|
|
1423
1423
|
onClose: f
|
|
1424
1424
|
}) => {
|
|
1425
1425
|
const [g, b] = E("fadeIn");
|
|
1426
1426
|
X(() => {
|
|
1427
|
-
const I =
|
|
1427
|
+
const I = y, h = 300, w = setTimeout(() => {
|
|
1428
1428
|
b("fadeOut"), setTimeout(() => {
|
|
1429
1429
|
f?.();
|
|
1430
1430
|
}, h);
|
|
@@ -1465,10 +1465,10 @@ const kr = ({ children: t }) => {
|
|
|
1465
1465
|
r((d) => {
|
|
1466
1466
|
const i = a.max ?? 1 / 0;
|
|
1467
1467
|
if (d.length >= i) return d;
|
|
1468
|
-
const
|
|
1468
|
+
const y = br++;
|
|
1469
1469
|
return setTimeout(() => {
|
|
1470
|
-
r((M) => M.filter((p) => p.id !==
|
|
1471
|
-
}, a.timeout || 4e3), [...d, { id:
|
|
1470
|
+
r((M) => M.filter((p) => p.id !== y));
|
|
1471
|
+
}, a.timeout || 4e3), [...d, { id: y, props: a }];
|
|
1472
1472
|
});
|
|
1473
1473
|
}, s = je(() => {
|
|
1474
1474
|
if (o.length > 0)
|
|
@@ -1496,7 +1496,7 @@ const kr = ({ children: t }) => {
|
|
|
1496
1496
|
{
|
|
1497
1497
|
...d,
|
|
1498
1498
|
onClose: () => {
|
|
1499
|
-
r((i) => i.filter((
|
|
1499
|
+
r((i) => i.filter((y) => y.id !== a));
|
|
1500
1500
|
}
|
|
1501
1501
|
},
|
|
1502
1502
|
a
|
|
@@ -1551,7 +1551,7 @@ var Lt = { exports: {} };
|
|
|
1551
1551
|
(function(r, n) {
|
|
1552
1552
|
t.exports = n();
|
|
1553
1553
|
})(Fr, function() {
|
|
1554
|
-
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, s = /\d/, a = /\d\d/, d = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/,
|
|
1554
|
+
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, s = /\d/, a = /\d\d/, d = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, y = {}, M = function(h) {
|
|
1555
1555
|
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
1556
1556
|
}, p = function(h) {
|
|
1557
1557
|
return function(w) {
|
|
@@ -1564,10 +1564,10 @@ var Lt = { exports: {} };
|
|
|
1564
1564
|
return k === 0 ? 0 : L[0] === "+" ? -k : k;
|
|
1565
1565
|
}(h);
|
|
1566
1566
|
}], g = function(h) {
|
|
1567
|
-
var w =
|
|
1567
|
+
var w = y[h];
|
|
1568
1568
|
return w && (w.indexOf ? w : w.s.concat(w.f));
|
|
1569
1569
|
}, b = function(h, w) {
|
|
1570
|
-
var L, k =
|
|
1570
|
+
var L, k = y.meridiem;
|
|
1571
1571
|
if (k) {
|
|
1572
1572
|
for (var K = 1; K <= 24; K += 1) if (h.indexOf(k(K, 0, w)) > -1) {
|
|
1573
1573
|
L = K > 12;
|
|
@@ -1588,7 +1588,7 @@ var Lt = { exports: {} };
|
|
|
1588
1588
|
}], SSS: [/\d{3}/, function(h) {
|
|
1589
1589
|
this.milliseconds = +h;
|
|
1590
1590
|
}], s: [d, p("seconds")], ss: [d, p("seconds")], m: [d, p("minutes")], mm: [d, p("minutes")], H: [d, p("hours")], h: [d, p("hours")], HH: [d, p("hours")], hh: [d, p("hours")], D: [d, p("day")], DD: [a, p("day")], Do: [i, function(h) {
|
|
1591
|
-
var w =
|
|
1591
|
+
var w = y.ordinal, L = h.match(/\d+/);
|
|
1592
1592
|
if (this.day = L[0], w) for (var k = 1; k <= 31; k += 1) w(k).replace(/\[|\]/g, "") === h && (this.day = k);
|
|
1593
1593
|
}], w: [d, p("week")], ww: [a, p("week")], M: [d, p("month")], MM: [a, p("month")], MMM: [i, function(h) {
|
|
1594
1594
|
var w = g("months"), L = (g("monthsShort") || w.map(function(k) {
|
|
@@ -1605,7 +1605,7 @@ var Lt = { exports: {} };
|
|
|
1605
1605
|
}], YYYY: [/\d{4}/, p("year")], Z: f, ZZ: f };
|
|
1606
1606
|
function I(h) {
|
|
1607
1607
|
var w, L;
|
|
1608
|
-
w = h, L =
|
|
1608
|
+
w = h, L = y && y.formats;
|
|
1609
1609
|
for (var k = (h = w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ee, W, R) {
|
|
1610
1610
|
var z = R && R.toUpperCase();
|
|
1611
1611
|
return W || L[R] || r[R] || L[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_, c, T) {
|
|
@@ -1642,7 +1642,7 @@ var Lt = { exports: {} };
|
|
|
1642
1642
|
var j = A[1];
|
|
1643
1643
|
if (typeof j == "string") {
|
|
1644
1644
|
var ee = A[2] === !0, W = A[3] === !0, R = ee || W, z = A[2];
|
|
1645
|
-
W && (z = A[2]),
|
|
1645
|
+
W && (z = A[2]), y = this.$locale(), !ee && z && (y = L.Ls[z]), this.$d = function(C, N, B, Q) {
|
|
1646
1646
|
try {
|
|
1647
1647
|
if (["x", "X"].indexOf(N) > -1) return new Date((N === "X" ? 1e3 : 1) * C);
|
|
1648
1648
|
var U = I(N)(C), ne = U.year, de = U.month, pe = U.day, ue = U.hours, ge = U.minutes, he = U.seconds, ae = U.milliseconds, le = U.zone, J = U.week, u = /* @__PURE__ */ new Date(), S = pe || (ne || de ? 1 : u.getDate()), $ = ne || u.getFullYear(), Y = 0;
|
|
@@ -1652,7 +1652,7 @@ var Lt = { exports: {} };
|
|
|
1652
1652
|
} catch {
|
|
1653
1653
|
return /* @__PURE__ */ new Date("");
|
|
1654
1654
|
}
|
|
1655
|
-
}(Z, j, G, L), this.init(), z && z !== !0 && (this.$L = this.locale(z).$L), R && Z != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")),
|
|
1655
|
+
}(Z, j, G, L), this.init(), z && z !== !0 && (this.$L = this.locale(z).$L), R && Z != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")), y = {};
|
|
1656
1656
|
} else if (j instanceof Array) for (var _ = j.length, c = 1; c <= _; c += 1) {
|
|
1657
1657
|
A[1] = j[c - 1];
|
|
1658
1658
|
var T = L.apply(this, A);
|
|
@@ -1679,7 +1679,7 @@ const st = ({
|
|
|
1679
1679
|
onChange: a,
|
|
1680
1680
|
onFocus: d,
|
|
1681
1681
|
onBlur: i,
|
|
1682
|
-
...
|
|
1682
|
+
...y
|
|
1683
1683
|
}) => {
|
|
1684
1684
|
const M = oe(null), p = oe(null), [f, g] = E(!1), [b, D] = E(o), I = Array.from({ length: 12 }, (_, c) => c < 10 ? `0${c}` : `${c}`), h = Array.from({ length: 24 }, (_, c) => c < 10 ? `0${c}` : `${c}`), w = Array.from({ length: 60 }, (_, c) => c < 10 ? `0${c}` : `${c}`), [L, k] = E(""), [K, V] = E(null), [Z, G] = E(null), [A, j] = E(r), ee = () => {
|
|
1685
1685
|
const _ = M.current, c = p.current;
|
|
@@ -1722,7 +1722,7 @@ const st = ({
|
|
|
1722
1722
|
/* @__PURE__ */ e("div", { ref: M, className: me.timepickerInputWrapper, onClick: () => (g((_) => !_), ee()), onFocus: W, children: /* @__PURE__ */ e(
|
|
1723
1723
|
He,
|
|
1724
1724
|
{
|
|
1725
|
-
...
|
|
1725
|
+
...y,
|
|
1726
1726
|
onFocusChange: (_) => g(_),
|
|
1727
1727
|
customFocus: f,
|
|
1728
1728
|
withActive: !1,
|
|
@@ -1827,7 +1827,7 @@ const gl = ({
|
|
|
1827
1827
|
SelectedDate: a,
|
|
1828
1828
|
namespace: d,
|
|
1829
1829
|
customYears: i,
|
|
1830
|
-
setSelectedDate:
|
|
1830
|
+
setSelectedDate: y,
|
|
1831
1831
|
IsFocused: M,
|
|
1832
1832
|
setIsFocused: p,
|
|
1833
1833
|
mode: f,
|
|
@@ -1913,7 +1913,7 @@ const gl = ({
|
|
|
1913
1913
|
}), C.current = vt(C.current, "key"), u = C.current, u;
|
|
1914
1914
|
}, pe = (u) => {
|
|
1915
1915
|
let S = { start: "", end: "" };
|
|
1916
|
-
switch (
|
|
1916
|
+
switch (y(null), u.key?.toLowerCase()) {
|
|
1917
1917
|
case "today":
|
|
1918
1918
|
b({
|
|
1919
1919
|
start: x(),
|
|
@@ -1921,7 +1921,7 @@ const gl = ({
|
|
|
1921
1921
|
}), S.start = x();
|
|
1922
1922
|
break;
|
|
1923
1923
|
case "yesterday":
|
|
1924
|
-
|
|
1924
|
+
y(x().subtract(1, "day")), b({
|
|
1925
1925
|
start: x().subtract(1, "day"),
|
|
1926
1926
|
end: x().subtract(1, "day")
|
|
1927
1927
|
}), S.start = x().subtract(1, "day");
|
|
@@ -1990,7 +1990,7 @@ const gl = ({
|
|
|
1990
1990
|
}), { start: u ?? "", end: Y?.start ?? "" }) : (r({
|
|
1991
1991
|
...Y,
|
|
1992
1992
|
end: u ?? ""
|
|
1993
|
-
}), { ...Y, end: u ?? "" }) : Y) : (b({ start: null, end: null }),
|
|
1993
|
+
}), { ...Y, end: u ?? "" }) : Y) : (b({ start: null, end: null }), y(u), $ || (p(!1), r && typeof r == "function" && r(u.format(t))));
|
|
1994
1994
|
}, he = () => {
|
|
1995
1995
|
s(n.add(1, "month"));
|
|
1996
1996
|
}, ae = () => {
|
|
@@ -2144,7 +2144,7 @@ const at = ({
|
|
|
2144
2144
|
customYears: a,
|
|
2145
2145
|
fixedDropdown: d = !0,
|
|
2146
2146
|
disabledDatesFrom: i,
|
|
2147
|
-
disabledDatesTill:
|
|
2147
|
+
disabledDatesTill: y,
|
|
2148
2148
|
disabledDatesRange: M,
|
|
2149
2149
|
datepickerStyle: p,
|
|
2150
2150
|
datepickerLabelStyle: f,
|
|
@@ -2234,7 +2234,7 @@ const at = ({
|
|
|
2234
2234
|
defaultValue: C.current,
|
|
2235
2235
|
CalendarRef: N,
|
|
2236
2236
|
disabledDatesFrom: i,
|
|
2237
|
-
disabledDatesTill:
|
|
2237
|
+
disabledDatesTill: y,
|
|
2238
2238
|
disabledDatesRange: M,
|
|
2239
2239
|
valueFormat: o,
|
|
2240
2240
|
onChange: (u) => ge(u, !1, !1),
|
|
@@ -2314,8 +2314,8 @@ const Ll = "mc__ActionDropdown-module__actionDropdownContainer", Tl = "mc__Actio
|
|
|
2314
2314
|
actionDropdownItem: Ml,
|
|
2315
2315
|
selected: Dl
|
|
2316
2316
|
}, dt = ({ title: t, data: o, onSelect: r }) => {
|
|
2317
|
-
const [n, s] = E(!1), a = oe(null), d = oe(null), [i,
|
|
2318
|
-
|
|
2317
|
+
const [n, s] = E(!1), a = oe(null), d = oe(null), [i, y] = E(null), M = (f) => {
|
|
2318
|
+
y(f), r?.(f), s(!1);
|
|
2319
2319
|
}, p = () => {
|
|
2320
2320
|
const f = a.current, g = d.current;
|
|
2321
2321
|
if (!g || !f) return;
|
|
@@ -2436,7 +2436,7 @@ const Bl = "mc__Slider-module__sliderContainer", Wl = "mc__Slider-module__slider
|
|
|
2436
2436
|
range: a = !0,
|
|
2437
2437
|
debounceTime: d,
|
|
2438
2438
|
onChange: i,
|
|
2439
|
-
sliderContainerStyle:
|
|
2439
|
+
sliderContainerStyle: y,
|
|
2440
2440
|
sliderStyle: M,
|
|
2441
2441
|
sliderProgressStyle: p,
|
|
2442
2442
|
thumbStyle: f,
|
|
@@ -2505,7 +2505,7 @@ const Bl = "mc__Slider-module__sliderContainer", Wl = "mc__Slider-module__slider
|
|
|
2505
2505
|
return;
|
|
2506
2506
|
}
|
|
2507
2507
|
i && typeof i == "function" && V(D ? () => i([I.minValue, I.maxValue]) : () => i(I.singleValue), d ?? 100);
|
|
2508
|
-
}, [I]), /* @__PURE__ */ e("div", { style:
|
|
2508
|
+
}, [I]), /* @__PURE__ */ e("div", { style: y ?? {}, className: `${be.sliderContainer}`, children: /* @__PURE__ */ l("div", { ref: Z, style: M ?? {}, className: be.slider, onMouseDown: R, children: [
|
|
2509
2509
|
/* @__PURE__ */ e("div", { className: be.sliderProgress, style: { ...z, ...p ?? {} } }),
|
|
2510
2510
|
D ? /* @__PURE__ */ l($t, { children: [
|
|
2511
2511
|
/* @__PURE__ */ e(
|
|
@@ -2605,7 +2605,7 @@ const Yl = "mc__FilterWithTags-module__filterWithTagsContainer", jl = "mc__Filte
|
|
|
2605
2605
|
cancelButtonProps: d,
|
|
2606
2606
|
applyButtonProps: i
|
|
2607
2607
|
}) => {
|
|
2608
|
-
const [
|
|
2608
|
+
const [y, M] = E(!1), p = () => {
|
|
2609
2609
|
o && M(!0);
|
|
2610
2610
|
};
|
|
2611
2611
|
return /* @__PURE__ */ l("div", { className: De.filterWithTagsContainer, children: [
|
|
@@ -2620,7 +2620,7 @@ const Yl = "mc__FilterWithTags-module__filterWithTagsContainer", jl = "mc__Filte
|
|
|
2620
2620
|
...s
|
|
2621
2621
|
}
|
|
2622
2622
|
) }) }),
|
|
2623
|
-
/* @__PURE__ */ l(qe, { ...a, popupContainerStyle: { width: "725px" }, onClose: () => M(!1), visible:
|
|
2623
|
+
/* @__PURE__ */ l(qe, { ...a, popupContainerStyle: { width: "725px" }, onClose: () => M(!1), visible: y, children: [
|
|
2624
2624
|
/* @__PURE__ */ e("h2", { className: De.filterWithTagsPopupTitle, children: "Filter" }),
|
|
2625
2625
|
/* @__PURE__ */ e("div", { className: `${De.filterWithTagsPopupContent} ${a?.mode === "drawer" ? De.filterWithTagsPopupContentDrawer : ""}`, children: /* @__PURE__ */ e(ni, { filterOptions: t }) }),
|
|
2626
2626
|
/* @__PURE__ */ l("div", { className: De.filterWithTagsPopupFooter, children: [
|
|
@@ -2697,7 +2697,7 @@ const ji = (t, o = {}) => {
|
|
|
2697
2697
|
return t.forEach((h) => {
|
|
2698
2698
|
h.key && (I[h.key] = o[h.key] || h.width || 200);
|
|
2699
2699
|
}), I;
|
|
2700
|
-
}), [s, a] = E(!1), [d, i] = E(null), [
|
|
2700
|
+
}), [s, a] = E(!1), [d, i] = E(null), [y, M] = E(0), [p, f] = E(0), g = je(
|
|
2701
2701
|
(I, h) => {
|
|
2702
2702
|
console.log("Resize start for column:", h), I.preventDefault(), I.stopPropagation(), a(!0), i(h), M(I.clientX), f(r[h]);
|
|
2703
2703
|
},
|
|
@@ -2706,13 +2706,13 @@ const ji = (t, o = {}) => {
|
|
|
2706
2706
|
(I) => {
|
|
2707
2707
|
if (!s || !d) return;
|
|
2708
2708
|
I.preventDefault();
|
|
2709
|
-
const h = I.clientX -
|
|
2709
|
+
const h = I.clientX - y, w = Math.max(50, p + h);
|
|
2710
2710
|
console.log("Resizing column:", d, "new width:", w), n((L) => ({
|
|
2711
2711
|
...L,
|
|
2712
2712
|
[d]: w
|
|
2713
2713
|
}));
|
|
2714
2714
|
},
|
|
2715
|
-
[s, d,
|
|
2715
|
+
[s, d, y, p]
|
|
2716
2716
|
), D = je(() => {
|
|
2717
2717
|
console.log("Resize end"), a(!1), i(null);
|
|
2718
2718
|
}, []);
|
|
@@ -2729,10 +2729,10 @@ const ji = (t, o = {}) => {
|
|
|
2729
2729
|
};
|
|
2730
2730
|
};
|
|
2731
2731
|
function Ki({ currentValue: t, options: o, onChange: r }) {
|
|
2732
|
-
const [n, s] = E(!1), [a, d] = E(!1), i = oe(null),
|
|
2732
|
+
const [n, s] = E(!1), [a, d] = E(!1), i = oe(null), y = oe(null);
|
|
2733
2733
|
X(() => {
|
|
2734
|
-
if (n && i.current &&
|
|
2735
|
-
const p = i.current.getBoundingClientRect(), f =
|
|
2734
|
+
if (n && i.current && y.current) {
|
|
2735
|
+
const p = i.current.getBoundingClientRect(), f = y.current.offsetHeight, b = window.innerHeight - p.bottom, D = p.top;
|
|
2736
2736
|
d(b < f && D >= f);
|
|
2737
2737
|
}
|
|
2738
2738
|
}, [n]), X(() => {
|
|
@@ -2771,7 +2771,7 @@ function Ki({ currentValue: t, options: o, onChange: r }) {
|
|
|
2771
2771
|
onClick: () => s(!n)
|
|
2772
2772
|
}
|
|
2773
2773
|
),
|
|
2774
|
-
n && /* @__PURE__ */ e("ul", { ref:
|
|
2774
|
+
n && /* @__PURE__ */ e("ul", { ref: y, className: `${F.rowsPerPageList} ${a ? F.openUpward : F.openDownward}`, role: "listbox", children: o.map((p) => /* @__PURE__ */ e(
|
|
2775
2775
|
"li",
|
|
2776
2776
|
{
|
|
2777
2777
|
className: `${F.rowsPerPageOption} ${p === t ? F.selected : ""}`,
|
|
@@ -2793,7 +2793,7 @@ const ht = ({
|
|
|
2793
2793
|
selectedRows: a = [],
|
|
2794
2794
|
onSelectionChange: d,
|
|
2795
2795
|
withSelectAll: i = !1,
|
|
2796
|
-
actionButtonText:
|
|
2796
|
+
actionButtonText: y,
|
|
2797
2797
|
actionButtonIcon: M,
|
|
2798
2798
|
onActionButtonClick: p,
|
|
2799
2799
|
actionButtons: f,
|
|
@@ -2821,20 +2821,20 @@ const ht = ({
|
|
|
2821
2821
|
}) => {
|
|
2822
2822
|
const { columnWidths: _, isResizing: c, resizeColumn: T, handleResizeStart: C } = ji(t), N = oe(null), [B, Q] = E(null), [U, ne] = E(null), de = oe({}), pe = oe(null), ue = oe(null), [ge, he] = E(!1), [ae, le] = E(null), [J, u] = E(null), [S, $] = E(t);
|
|
2823
2823
|
X(() => {
|
|
2824
|
-
const
|
|
2824
|
+
const v = t.map((P) => ({
|
|
2825
2825
|
...P,
|
|
2826
2826
|
visible: P.visible !== void 0 ? P.visible : !0
|
|
2827
2827
|
}));
|
|
2828
|
-
$(
|
|
2828
|
+
$(v);
|
|
2829
2829
|
}, [t]);
|
|
2830
|
-
const Y = (
|
|
2831
|
-
le(P),
|
|
2832
|
-
}, ie = (
|
|
2833
|
-
|
|
2830
|
+
const Y = (v, P) => {
|
|
2831
|
+
le(P), v.dataTransfer.effectAllowed = "move", v.dataTransfer.setData("text/html", v.currentTarget.outerHTML);
|
|
2832
|
+
}, ie = (v, P) => {
|
|
2833
|
+
v.preventDefault(), v.dataTransfer.dropEffect = "move", P !== ae && u(P);
|
|
2834
2834
|
}, re = () => {
|
|
2835
2835
|
u(null);
|
|
2836
|
-
}, we = (
|
|
2837
|
-
if (
|
|
2836
|
+
}, we = (v, P) => {
|
|
2837
|
+
if (v.preventDefault(), ae === null || ae === P) {
|
|
2838
2838
|
le(null), u(null);
|
|
2839
2839
|
return;
|
|
2840
2840
|
}
|
|
@@ -2844,27 +2844,27 @@ const ht = ({
|
|
|
2844
2844
|
O.splice(Ue, 0, Ie), $(O), le(null), u(null), D?.(O);
|
|
2845
2845
|
}, _e = () => {
|
|
2846
2846
|
le(null), u(null);
|
|
2847
|
-
}, fe = (
|
|
2848
|
-
const P = S.map((O) => O.key ===
|
|
2847
|
+
}, fe = (v) => {
|
|
2848
|
+
const P = S.map((O) => O.key === v.key ? { ...O, visible: !O.visible } : O);
|
|
2849
2849
|
$(P), I?.(P);
|
|
2850
|
-
}, ve = S.filter((
|
|
2851
|
-
d?.(
|
|
2852
|
-
}, H = (
|
|
2853
|
-
d?.(P ? [...a,
|
|
2854
|
-
}, te = o.length > 0 && a.length === o.length, Le = a.length > 0 && a.length < o.length, Ee = (
|
|
2855
|
-
W?.(
|
|
2856
|
-
}, Oe = (
|
|
2857
|
-
R?.(
|
|
2858
|
-
}, Xe = (
|
|
2859
|
-
const P = de.current[
|
|
2850
|
+
}, ve = S.filter((v) => v.visible), m = (v) => {
|
|
2851
|
+
d?.(v ? o.map((P, O) => O) : []);
|
|
2852
|
+
}, H = (v, P) => {
|
|
2853
|
+
d?.(P ? [...a, v] : a.filter((O) => O !== v));
|
|
2854
|
+
}, te = o.length > 0 && a.length === o.length, Le = a.length > 0 && a.length < o.length, Ee = (v, P) => {
|
|
2855
|
+
W?.(v, P);
|
|
2856
|
+
}, Oe = (v, P) => {
|
|
2857
|
+
R?.(v, P);
|
|
2858
|
+
}, Xe = (v) => {
|
|
2859
|
+
const P = de.current[v];
|
|
2860
2860
|
if (!P) return null;
|
|
2861
2861
|
const O = P.getBoundingClientRect(), Ie = window.innerHeight, Ue = window.innerWidth, Qe = 120, Je = 120;
|
|
2862
2862
|
let Ve = O.right - Je - 50;
|
|
2863
2863
|
Ve < 0 && (Ve = O.left), Ve + Je > Ue && (Ve = Ue - Je - 10);
|
|
2864
2864
|
const It = Ie - O.bottom, Nt = O.top, ft = It < Qe && Nt >= Qe;
|
|
2865
2865
|
return { top: ft ? O.top - Qe + 8 : O.bottom + 4, left: Ve, shouldOpenUpward: ft };
|
|
2866
|
-
}, xt = (
|
|
2867
|
-
if (
|
|
2866
|
+
}, xt = (v, P) => {
|
|
2867
|
+
if (v.stopPropagation(), B === P)
|
|
2868
2868
|
Q(null), ne(null);
|
|
2869
2869
|
else {
|
|
2870
2870
|
Q(P);
|
|
@@ -2873,7 +2873,7 @@ const ht = ({
|
|
|
2873
2873
|
}
|
|
2874
2874
|
};
|
|
2875
2875
|
return X(() => {
|
|
2876
|
-
const
|
|
2876
|
+
const v = (Ie) => {
|
|
2877
2877
|
(!Ie.target || !Ie.target.closest(`.${F.actionsCell}`)) && (Q(null), ne(null));
|
|
2878
2878
|
}, P = () => {
|
|
2879
2879
|
if (B !== null) {
|
|
@@ -2886,22 +2886,22 @@ const ht = ({
|
|
|
2886
2886
|
ne(Ie);
|
|
2887
2887
|
}
|
|
2888
2888
|
};
|
|
2889
|
-
return document.addEventListener("click",
|
|
2890
|
-
document.removeEventListener("click",
|
|
2889
|
+
return document.addEventListener("click", v), window.addEventListener("scroll", P, !0), window.addEventListener("resize", O), () => {
|
|
2890
|
+
document.removeEventListener("click", v), window.removeEventListener("scroll", P, !0), window.removeEventListener("resize", O);
|
|
2891
2891
|
};
|
|
2892
2892
|
}, [B]), X(() => {
|
|
2893
|
-
const
|
|
2893
|
+
const v = (P) => {
|
|
2894
2894
|
ge && pe.current && ue.current && !pe.current.contains(P.target) && !ue.current.contains(P.target) && he(!1);
|
|
2895
2895
|
};
|
|
2896
|
-
return document.addEventListener("click",
|
|
2897
|
-
document.removeEventListener("click",
|
|
2896
|
+
return document.addEventListener("click", v), () => {
|
|
2897
|
+
document.removeEventListener("click", v);
|
|
2898
2898
|
};
|
|
2899
2899
|
}, [ge]), /* @__PURE__ */ l("div", { className: F.tableContainer, children: [
|
|
2900
2900
|
(b || g) && /* @__PURE__ */ l("div", { className: F.gridHeader, children: [
|
|
2901
2901
|
/* @__PURE__ */ e("div", { children: b }),
|
|
2902
2902
|
g && /* @__PURE__ */ l("div", { className: F.columnConfiguration, children: [
|
|
2903
|
-
/* @__PURE__ */ e("div", { className: F.columnConfigurationIcon, ref: pe, onClick: () => he((
|
|
2904
|
-
ge && /* @__PURE__ */ e("ul", { className: F.columnConfigurationDropdown, ref: ue, children: S.map((
|
|
2903
|
+
/* @__PURE__ */ e("div", { className: F.columnConfigurationIcon, ref: pe, onClick: () => he((v) => !v), children: /* @__PURE__ */ e(Zt, {}) }),
|
|
2904
|
+
ge && /* @__PURE__ */ e("ul", { className: F.columnConfigurationDropdown, ref: ue, children: S.map((v, P) => /* @__PURE__ */ l(
|
|
2905
2905
|
"li",
|
|
2906
2906
|
{
|
|
2907
2907
|
className: `${F.columnConfigurationItem} ${ae === P ? F.dragging : ""} ${J === P ? F.dragOver : ""}`,
|
|
@@ -2913,11 +2913,11 @@ const ht = ({
|
|
|
2913
2913
|
onDragEnd: _e,
|
|
2914
2914
|
children: [
|
|
2915
2915
|
/* @__PURE__ */ e("div", { className: F.columnConfigurationItemIcon, children: /* @__PURE__ */ e(Ut, {}) }),
|
|
2916
|
-
/* @__PURE__ */ e("div", { className: F.columnConfigurationItemCheckbox, onClick: (O) => O.stopPropagation(), children: /* @__PURE__ */ e(Fe, { checked:
|
|
2917
|
-
/* @__PURE__ */ e("p", { children:
|
|
2916
|
+
/* @__PURE__ */ e("div", { className: F.columnConfigurationItemCheckbox, onClick: (O) => O.stopPropagation(), children: /* @__PURE__ */ e(Fe, { checked: v.visible, change: () => fe(v) }) }),
|
|
2917
|
+
/* @__PURE__ */ e("p", { children: v.label })
|
|
2918
2918
|
]
|
|
2919
2919
|
},
|
|
2920
|
-
|
|
2920
|
+
v.key || v.id || P
|
|
2921
2921
|
)) })
|
|
2922
2922
|
] })
|
|
2923
2923
|
] }),
|
|
@@ -2933,12 +2933,12 @@ const ht = ({
|
|
|
2933
2933
|
" rows selected"
|
|
2934
2934
|
] }),
|
|
2935
2935
|
/* @__PURE__ */ e("div", { className: F.tableHeaderSeparator }),
|
|
2936
|
-
Array.isArray(f) && f.length > 0 ? f.map((
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
] },
|
|
2940
|
-
|
|
2941
|
-
M &&
|
|
2936
|
+
Array.isArray(f) && f.length > 0 ? f.map((v, P) => /* @__PURE__ */ l("div", { className: F.actionButton, onClick: () => v.onClick?.(a), children: [
|
|
2937
|
+
v.text,
|
|
2938
|
+
v.icon
|
|
2939
|
+
] }, v.text || P)) : /* @__PURE__ */ l("div", { className: F.actionButton, onClick: () => p?.(a), children: [
|
|
2940
|
+
y || "Delete",
|
|
2941
|
+
M && M
|
|
2942
2942
|
] })
|
|
2943
2943
|
] })
|
|
2944
2944
|
}
|
|
@@ -2950,22 +2950,22 @@ const ht = ({
|
|
|
2950
2950
|
{
|
|
2951
2951
|
type: "checkbox",
|
|
2952
2952
|
checked: te,
|
|
2953
|
-
ref: (
|
|
2954
|
-
|
|
2953
|
+
ref: (v) => {
|
|
2954
|
+
v && (v.indeterminate = Le);
|
|
2955
2955
|
},
|
|
2956
|
-
onChange: (
|
|
2956
|
+
onChange: (v) => m(v.target.checked),
|
|
2957
2957
|
className: F.checkbox
|
|
2958
2958
|
}
|
|
2959
2959
|
) }),
|
|
2960
|
-
ve.map((
|
|
2960
|
+
ve.map((v) => /* @__PURE__ */ l(
|
|
2961
2961
|
"th",
|
|
2962
2962
|
{
|
|
2963
|
-
onClick: () => n?.(
|
|
2964
|
-
style: { width: _[
|
|
2963
|
+
onClick: () => n?.(v.key),
|
|
2964
|
+
style: { width: _[v.key], position: "relative" },
|
|
2965
2965
|
children: [
|
|
2966
2966
|
/* @__PURE__ */ l("div", { className: F.headerContent, children: [
|
|
2967
|
-
|
|
2968
|
-
s?.[0]?.selector ===
|
|
2967
|
+
v.label,
|
|
2968
|
+
s?.[0]?.selector === v.key && (s[0].desc ? /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2969
2969
|
/* @__PURE__ */ e(
|
|
2970
2970
|
"path",
|
|
2971
2971
|
{
|
|
@@ -3009,14 +3009,14 @@ const ht = ({
|
|
|
3009
3009
|
"div",
|
|
3010
3010
|
{
|
|
3011
3011
|
className: Ye(F.resizeHandle, {
|
|
3012
|
-
[F.resizing]: c && T ===
|
|
3012
|
+
[F.resizing]: c && T === v.key
|
|
3013
3013
|
}),
|
|
3014
|
-
onMouseDown: (P) => C(P,
|
|
3014
|
+
onMouseDown: (P) => C(P, v.key)
|
|
3015
3015
|
}
|
|
3016
3016
|
)
|
|
3017
3017
|
]
|
|
3018
3018
|
},
|
|
3019
|
-
|
|
3019
|
+
v.key
|
|
3020
3020
|
)),
|
|
3021
3021
|
h && /* @__PURE__ */ e("th", { className: F.actionsHeader, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
|
|
3022
3022
|
"path",
|
|
@@ -3026,12 +3026,12 @@ const ht = ({
|
|
|
3026
3026
|
}
|
|
3027
3027
|
) }) })
|
|
3028
3028
|
] }) }),
|
|
3029
|
-
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: i ? ve.length + 2 : ve.length + 1, className: F.empty, children: "No data available" }) }) : o.map((
|
|
3029
|
+
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: i ? ve.length + 2 : ve.length + 1, className: F.empty, children: "No data available" }) }) : o.map((v, P) => /* @__PURE__ */ l(
|
|
3030
3030
|
"tr",
|
|
3031
3031
|
{
|
|
3032
3032
|
className: Ye({ [F.clickable]: !!r }),
|
|
3033
3033
|
onClick: (O) => {
|
|
3034
|
-
O.target.type !== "checkbox" && !O.target.closest(`.${F.actionsCell}`) && r?.(
|
|
3034
|
+
O.target.type !== "checkbox" && !O.target.closest(`.${F.actionsCell}`) && r?.(v, P);
|
|
3035
3035
|
},
|
|
3036
3036
|
children: [
|
|
3037
3037
|
i && /* @__PURE__ */ e("td", { className: F.checkboxCell, children: /* @__PURE__ */ e(
|
|
@@ -3044,7 +3044,7 @@ const ht = ({
|
|
|
3044
3044
|
className: F.checkbox
|
|
3045
3045
|
}
|
|
3046
3046
|
) }),
|
|
3047
|
-
ve.map((O) => /* @__PURE__ */ e("td", { style: { width: _[O.key] }, children: O.render ? O.render(
|
|
3047
|
+
ve.map((O) => /* @__PURE__ */ e("td", { style: { width: _[O.key] }, children: O.render ? O.render(v) : v[O.key] }, O.key)),
|
|
3048
3048
|
h && /* @__PURE__ */ e("td", { className: F.actionsCell, children: /* @__PURE__ */ e(
|
|
3049
3049
|
"div",
|
|
3050
3050
|
{
|
|
@@ -3097,8 +3097,8 @@ const ht = ({
|
|
|
3097
3097
|
"div",
|
|
3098
3098
|
{
|
|
3099
3099
|
className: F.actionItem,
|
|
3100
|
-
onClick: (
|
|
3101
|
-
|
|
3100
|
+
onClick: (v) => {
|
|
3101
|
+
v.stopPropagation(), Ee(o[B], B), Q(null), ne(null);
|
|
3102
3102
|
},
|
|
3103
3103
|
children: [
|
|
3104
3104
|
/* @__PURE__ */ e("svg", { width: "23", height: "23", viewBox: "0 0 23 23", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { transform: "scale(0.7)" }, children: /* @__PURE__ */ e(
|
|
@@ -3120,8 +3120,8 @@ const ht = ({
|
|
|
3120
3120
|
{
|
|
3121
3121
|
className: F.actionItem,
|
|
3122
3122
|
style: { color: "#E3292F" },
|
|
3123
|
-
onClick: (
|
|
3124
|
-
|
|
3123
|
+
onClick: (v) => {
|
|
3124
|
+
v.stopPropagation(), Oe(o[B], B), Q(null), ne(null);
|
|
3125
3125
|
},
|
|
3126
3126
|
children: [
|
|
3127
3127
|
/* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -3162,23 +3162,16 @@ const ht = ({
|
|
|
3162
3162
|
]
|
|
3163
3163
|
}
|
|
3164
3164
|
),
|
|
3165
|
-
z.map((
|
|
3165
|
+
z.map((v, P) => /* @__PURE__ */ l(
|
|
3166
3166
|
"div",
|
|
3167
3167
|
{
|
|
3168
3168
|
className: F.actionItem,
|
|
3169
3169
|
onClick: (O) => {
|
|
3170
|
-
O.stopPropagation(),
|
|
3170
|
+
O.stopPropagation(), v.onClick?.(o[B], B), Q(null), ne(null);
|
|
3171
3171
|
},
|
|
3172
3172
|
children: [
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
{
|
|
3176
|
-
dangerouslySetInnerHTML: {
|
|
3177
|
-
__html: y.icon
|
|
3178
|
-
}
|
|
3179
|
-
}
|
|
3180
|
-
),
|
|
3181
|
-
y.text
|
|
3173
|
+
v.icon && /* @__PURE__ */ e("div", { children: v.icon }),
|
|
3174
|
+
v.text
|
|
3182
3175
|
]
|
|
3183
3176
|
},
|
|
3184
3177
|
P
|