react-crud-mui 0.2.101 → 0.2.102
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/more-button/MoreButton.d.ts +1 -0
- package/dist/coreui.js +169 -168
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export type MoreButtonItem = {
|
|
|
9
9
|
divider?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
onClick?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
12
|
+
render?: (func: () => void) => ReactNode;
|
|
12
13
|
};
|
|
13
14
|
export interface MoreButtonProps extends IconButtonProps {
|
|
14
15
|
options?: MoreButtonItem[];
|
package/dist/coreui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
1
|
+
import { jsx as c, jsxs as D, Fragment as Ge } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import * as Ui from "react";
|
|
3
3
|
import Rt, { forwardRef as Dt, useState as Ve, Fragment as Pl, isValidElement as hm, useRef as dt, useCallback as xe, useContext as xn, useMemo as Ye, useEffect as qe, useReducer as uu } from "react";
|
|
4
4
|
import Ir from "@mui/material/Card";
|
|
@@ -226,7 +226,7 @@ function ho({
|
|
|
226
226
|
...s
|
|
227
227
|
}) {
|
|
228
228
|
const [f, d] = Ve(null), m = () => d(null);
|
|
229
|
-
return /* @__PURE__ */
|
|
229
|
+
return /* @__PURE__ */ D("div", { children: [
|
|
230
230
|
/* @__PURE__ */ c(Mx, { size: n, "aria-label": "more", "aria-haspopup": "true", onClick: (p) => {
|
|
231
231
|
p.preventDefault(), p.stopPropagation(), d(p.currentTarget);
|
|
232
232
|
}, ...s, children: /* @__PURE__ */ c(o, { fontSize: "small" }) }),
|
|
@@ -237,9 +237,10 @@ function ho({
|
|
|
237
237
|
icon: w,
|
|
238
238
|
onClick: I,
|
|
239
239
|
divider: S,
|
|
240
|
-
disabled: k
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
disabled: k,
|
|
241
|
+
render: O
|
|
242
|
+
}) => S ? /* @__PURE__ */ c(pu, {}, x) : O ? O(m) : /* @__PURE__ */ D(lo, { disabled: k, onClick: ($) => {
|
|
243
|
+
I == null || I($), m();
|
|
243
244
|
}, sx: {
|
|
244
245
|
color: y ? "error.main" : null,
|
|
245
246
|
"& .MuiSvgIcon-root": {
|
|
@@ -394,17 +395,17 @@ function Mr({
|
|
|
394
395
|
styles: p,
|
|
395
396
|
...x
|
|
396
397
|
}) {
|
|
397
|
-
return /* @__PURE__ */
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
-
/* @__PURE__ */ c(xt, { children: /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
399
|
+
/* @__PURE__ */ D(Yr, { flexWrap: "wrap", p: 2, gap: 1, sx: p == null ? void 0 : p.wrapper, ...x, children: [
|
|
400
|
+
/* @__PURE__ */ c(xt, { children: /* @__PURE__ */ D(It, { alignItems: "center", gap: 1, children: [
|
|
400
401
|
s ? m ? /* @__PURE__ */ c(kx, { sx: p == null ? void 0 : p.icon, children: s }) : s : null,
|
|
401
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ D(It, { flexDirection: "column", children: [
|
|
402
403
|
i ? /* @__PURE__ */ c(xt, { fontSize: 16, fontWeight: 600, component: Tu, sx: p == null ? void 0 : p.title, children: i }) : null,
|
|
403
404
|
a ? /* @__PURE__ */ c(fn, { color: "text.secondary", sx: p == null ? void 0 : p.helperText, children: a }) : null
|
|
404
405
|
] })
|
|
405
406
|
] }) }),
|
|
406
407
|
n,
|
|
407
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ D(Cr, { direction: "row", alignItems: "center", gap: 2, children: [
|
|
408
409
|
d,
|
|
409
410
|
f != null && f.length ? /* @__PURE__ */ c(ho, { options: f }) : null
|
|
410
411
|
] })
|
|
@@ -456,19 +457,19 @@ function Tx({
|
|
|
456
457
|
styles: w,
|
|
457
458
|
...I
|
|
458
459
|
}) {
|
|
459
|
-
const [S, k] = Ve(x ?? (n ? n[0].value : "")),
|
|
460
|
+
const [S, k] = Ve(x ?? (n ? n[0].value : "")), O = (B) => () => {
|
|
460
461
|
k(B), y == null || y(B);
|
|
461
462
|
}, $ = x || S, U = () => {
|
|
462
463
|
const B = n == null ? void 0 : n.find((X) => X.value === $);
|
|
463
464
|
return B == null ? void 0 : B.children;
|
|
464
465
|
};
|
|
465
|
-
return /* @__PURE__ */
|
|
466
|
-
n ? /* @__PURE__ */
|
|
466
|
+
return /* @__PURE__ */ D(Ir, { ...I, children: [
|
|
467
|
+
n ? /* @__PURE__ */ D(Ax, { gap: 4, children: [
|
|
467
468
|
/* @__PURE__ */ c(Cr, { className: "list", gap: 1, direction: {
|
|
468
469
|
sm: "row",
|
|
469
470
|
xs: "column"
|
|
470
|
-
}, children: n.map((B) => /* @__PURE__ */ c(Lx, { className: "list-item", onClick:
|
|
471
|
-
/* @__PURE__ */
|
|
471
|
+
}, children: n.map((B) => /* @__PURE__ */ c(Lx, { className: "list-item", onClick: O(B.value), active: $ === B.value ? 1 : 0, children: B.title }, B.key)) }),
|
|
472
|
+
/* @__PURE__ */ D(Cr, { direction: "row", alignItems: "center", gap: 2, children: [
|
|
472
473
|
i,
|
|
473
474
|
m != null && m.length ? /* @__PURE__ */ c(ho, { options: m, sx: {
|
|
474
475
|
mr: 2
|
|
@@ -902,7 +903,7 @@ function Kl(n) {
|
|
|
902
903
|
handleOpen: d,
|
|
903
904
|
...m
|
|
904
905
|
} = n;
|
|
905
|
-
return /* @__PURE__ */
|
|
906
|
+
return /* @__PURE__ */ D(Pl, { children: [
|
|
906
907
|
/* @__PURE__ */ c(sr, { color: "secondary", onClick: (x) => {
|
|
907
908
|
x.stopPropagation(), d(x);
|
|
908
909
|
}, disabled: i, children: o ?? /* @__PURE__ */ c(du, { fontSize: "small" }) }),
|
|
@@ -922,7 +923,7 @@ function Xn(n) {
|
|
|
922
923
|
handleClick: s,
|
|
923
924
|
...f
|
|
924
925
|
} = n;
|
|
925
|
-
return /* @__PURE__ */
|
|
926
|
+
return /* @__PURE__ */ D(lo, { onClick: (m) => {
|
|
926
927
|
m.stopPropagation(), s == null || s();
|
|
927
928
|
}, disabled: o, ...f, children: [
|
|
928
929
|
/* @__PURE__ */ c(gu, { sx: {
|
|
@@ -947,14 +948,14 @@ function qr({
|
|
|
947
948
|
disabled: I,
|
|
948
949
|
children: S,
|
|
949
950
|
titles: k,
|
|
950
|
-
...
|
|
951
|
+
...O
|
|
951
952
|
}) {
|
|
952
953
|
const {
|
|
953
954
|
t: $
|
|
954
955
|
} = et(), [U, B] = Ve(null), X = (G) => {
|
|
955
956
|
B(G.currentTarget);
|
|
956
957
|
}, Z = () => B(null);
|
|
957
|
-
return /* @__PURE__ */
|
|
958
|
+
return /* @__PURE__ */ D(Kl, { open: U, handleOpen: X, handleClose: Z, disabled: I, ...O, children: [
|
|
958
959
|
x ? /* @__PURE__ */ c(Xn, { Icon: Im, title: (k == null ? void 0 : k.view) ?? $("browse"), handleClick: () => {
|
|
959
960
|
a == null || a(), Z();
|
|
960
961
|
}, disabled: !s }) : null,
|
|
@@ -1095,7 +1096,7 @@ function ib({
|
|
|
1095
1096
|
optionTemplate: I = Ou,
|
|
1096
1097
|
label: S,
|
|
1097
1098
|
size: k,
|
|
1098
|
-
value:
|
|
1099
|
+
value: O,
|
|
1099
1100
|
renderOption: $,
|
|
1100
1101
|
selectRef: U,
|
|
1101
1102
|
...B
|
|
@@ -1201,7 +1202,7 @@ function ib({
|
|
|
1201
1202
|
filterOptions: Te,
|
|
1202
1203
|
renderOption: N,
|
|
1203
1204
|
renderInput: ae,
|
|
1204
|
-
value: Fu(
|
|
1205
|
+
value: Fu(O)
|
|
1205
1206
|
}
|
|
1206
1207
|
);
|
|
1207
1208
|
}
|
|
@@ -1353,7 +1354,7 @@ function Bu({
|
|
|
1353
1354
|
data: I,
|
|
1354
1355
|
disabled: S,
|
|
1355
1356
|
reason: k,
|
|
1356
|
-
onAfterDelete:
|
|
1357
|
+
onAfterDelete: O,
|
|
1357
1358
|
onAfterSave: $,
|
|
1358
1359
|
...U
|
|
1359
1360
|
} = {}) => {
|
|
@@ -1367,7 +1368,7 @@ function Bu({
|
|
|
1367
1368
|
// this is needed for array field usage
|
|
1368
1369
|
uid: B === "fetch" ? s(I) : void 0,
|
|
1369
1370
|
index: B === "fetch" ? f(I) : void 0,
|
|
1370
|
-
onAfterDelete:
|
|
1371
|
+
onAfterDelete: O,
|
|
1371
1372
|
onAfterSave: $
|
|
1372
1373
|
});
|
|
1373
1374
|
}, [s, f]), y = xe((I) => {
|
|
@@ -1421,19 +1422,19 @@ function Wu({
|
|
|
1421
1422
|
} = qt(), d = Gl(), m = cb(), [p, x] = Vl(), [y, w] = Ve();
|
|
1422
1423
|
let I = y;
|
|
1423
1424
|
const S = Array.isArray(o) ? o : s == null ? void 0 : s.map(({
|
|
1424
|
-
key:
|
|
1425
|
-
}) =>
|
|
1425
|
+
key: O
|
|
1426
|
+
}) => O);
|
|
1426
1427
|
i && (I = o && S ? m(S) : Number(p.get(n ?? f))), I && I < 0 && a > -1 && (I = a);
|
|
1427
|
-
const k = xe((
|
|
1428
|
+
const k = xe((O) => {
|
|
1428
1429
|
i ? o && S ? d({
|
|
1429
|
-
pathname: `../${S[
|
|
1430
|
+
pathname: `../${S[O]}`,
|
|
1430
1431
|
search: p.size > 0 ? `?${p.toString()}` : ""
|
|
1431
1432
|
}, {
|
|
1432
1433
|
relative: "path"
|
|
1433
1434
|
}) : x(new URLSearchParams({
|
|
1434
1435
|
...Object.fromEntries(p),
|
|
1435
|
-
[n ?? f]:
|
|
1436
|
-
})) : w(
|
|
1436
|
+
[n ?? f]: O.toString()
|
|
1437
|
+
})) : w(O);
|
|
1437
1438
|
}, [p, n, o, i, d, S, f, x]);
|
|
1438
1439
|
return [I, k, {
|
|
1439
1440
|
segmentParamName: f
|
|
@@ -1535,7 +1536,7 @@ function no(n) {
|
|
|
1535
1536
|
moreCommands: S,
|
|
1536
1537
|
commandsProps: k
|
|
1537
1538
|
} = n, {
|
|
1538
|
-
currentForm:
|
|
1539
|
+
currentForm: O,
|
|
1539
1540
|
showPrevButton: $,
|
|
1540
1541
|
showNextButton: U,
|
|
1541
1542
|
prevButtonTitle: B,
|
|
@@ -1563,8 +1564,8 @@ function no(n) {
|
|
|
1563
1564
|
} = Pu(), {
|
|
1564
1565
|
isValid: Oe
|
|
1565
1566
|
} = Yt({
|
|
1566
|
-
control:
|
|
1567
|
-
disabled: o === "steps" && !
|
|
1567
|
+
control: O == null ? void 0 : O.control,
|
|
1568
|
+
disabled: o === "steps" && !O
|
|
1568
1569
|
}), Ee = {
|
|
1569
1570
|
save: {
|
|
1570
1571
|
key: "save",
|
|
@@ -1734,12 +1735,12 @@ function no(n) {
|
|
|
1734
1735
|
const ce = Q();
|
|
1735
1736
|
if (o === "steps") {
|
|
1736
1737
|
const At = We(), Ht = Ze(), Re = Ie(), _e = De(z);
|
|
1737
|
-
return /* @__PURE__ */
|
|
1738
|
-
/* @__PURE__ */
|
|
1738
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
1739
|
+
/* @__PURE__ */ D(mn, { children: [
|
|
1739
1740
|
At,
|
|
1740
1741
|
I
|
|
1741
1742
|
] }),
|
|
1742
|
-
/* @__PURE__ */
|
|
1743
|
+
/* @__PURE__ */ D(It, { gap: 1, children: [
|
|
1743
1744
|
Re,
|
|
1744
1745
|
Y.save && Z.length === G + 1 ? _e : null,
|
|
1745
1746
|
Ht,
|
|
@@ -1748,7 +1749,7 @@ function no(n) {
|
|
|
1748
1749
|
] });
|
|
1749
1750
|
}
|
|
1750
1751
|
const ne = De(z), tt = Fe(), pt = ee(), de = se(), bt = [Ie(), pt, tt, de, ne];
|
|
1751
|
-
return /* @__PURE__ */
|
|
1752
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
1752
1753
|
I,
|
|
1753
1754
|
bt,
|
|
1754
1755
|
ce
|
|
@@ -1760,7 +1761,7 @@ function Ql({
|
|
|
1760
1761
|
stepsContent: o,
|
|
1761
1762
|
autoSaveContent: i
|
|
1762
1763
|
}) {
|
|
1763
|
-
return /* @__PURE__ */
|
|
1764
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
1764
1765
|
n,
|
|
1765
1766
|
o,
|
|
1766
1767
|
i
|
|
@@ -1795,17 +1796,17 @@ function db({
|
|
|
1795
1796
|
const {
|
|
1796
1797
|
t: d
|
|
1797
1798
|
} = et(), [m, p] = Ve(o);
|
|
1798
|
-
return /* @__PURE__ */
|
|
1799
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
1799
1800
|
m ? n : null,
|
|
1800
|
-
/* @__PURE__ */
|
|
1801
|
+
/* @__PURE__ */ D(Yr, { alignItems: "center", width: "100%", p: 1.5, ...f, children: [
|
|
1801
1802
|
i ?? /* @__PURE__ */ c(xt, {}),
|
|
1802
|
-
/* @__PURE__ */ c(fb, { disableRipple: !0, children: /* @__PURE__ */ c(Cr, { flexDirection: "row", alignItems: "center", onClick: () => p((x) => !x), children: m ? /* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ c(fb, { disableRipple: !0, children: /* @__PURE__ */ c(Cr, { flexDirection: "row", alignItems: "center", onClick: () => p((x) => !x), children: m ? /* @__PURE__ */ D(Ge, { children: [
|
|
1803
1804
|
/* @__PURE__ */ c(r3, { sx: {
|
|
1804
1805
|
color: "text.secondary",
|
|
1805
1806
|
fontSize: "1.5em"
|
|
1806
1807
|
} }),
|
|
1807
1808
|
/* @__PURE__ */ c(fn, { color: "text.secondary", fontWeight: 600, children: s ?? d("show_less") })
|
|
1808
|
-
] }) : /* @__PURE__ */
|
|
1809
|
+
] }) : /* @__PURE__ */ D(Ge, { children: [
|
|
1809
1810
|
/* @__PURE__ */ c(Zl, { sx: {
|
|
1810
1811
|
color: "text.secondary",
|
|
1811
1812
|
fontSize: "1.5em"
|
|
@@ -1907,7 +1908,7 @@ function jl({
|
|
|
1907
1908
|
tabsContent: p,
|
|
1908
1909
|
tabsHeaderContent: x
|
|
1909
1910
|
}) {
|
|
1910
|
-
return /* @__PURE__ */
|
|
1911
|
+
return /* @__PURE__ */ D(Ir, { style: f == null ? void 0 : f.style, sx: f == null ? void 0 : f.sx, children: [
|
|
1911
1912
|
d,
|
|
1912
1913
|
s,
|
|
1913
1914
|
n,
|
|
@@ -1958,7 +1959,7 @@ function Zu({
|
|
|
1958
1959
|
hidden: x,
|
|
1959
1960
|
...y
|
|
1960
1961
|
}) => /* @__PURE__ */ c(c3, { disableRipple: !0, iconPosition: "start", ...y }, p));
|
|
1961
|
-
return s && d.length === 1 ? null : /* @__PURE__ */
|
|
1962
|
+
return s && d.length === 1 ? null : /* @__PURE__ */ D(It, { sx: i, alignItems: "center", children: [
|
|
1962
1963
|
/* @__PURE__ */ c(xb, { variant: "scrollable", ...f, sx: {
|
|
1963
1964
|
flexGrow: 1,
|
|
1964
1965
|
...a
|
|
@@ -2075,7 +2076,7 @@ function wn({
|
|
|
2075
2076
|
const {
|
|
2076
2077
|
t: w
|
|
2077
2078
|
} = et();
|
|
2078
|
-
return /* @__PURE__ */ c(p3, { open: o, onClose: i, disableAutoFocus: s, disablePortal: f, disableScrollLock: d, disableEnforceFocus: m, disableEscapeKeyDown: p, disableRestoreFocus: x, children: /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ c(p3, { open: o, onClose: i, disableAutoFocus: s, disablePortal: f, disableScrollLock: d, disableEnforceFocus: m, disableEscapeKeyDown: p, disableRestoreFocus: x, children: /* @__PURE__ */ D(Sb, { ...y, children: [
|
|
2079
2080
|
a && /* @__PURE__ */ c(sr, { onClick: i, title: w("close"), disableRipple: !0, sx: {
|
|
2080
2081
|
position: "absolute",
|
|
2081
2082
|
right: 5,
|
|
@@ -2118,7 +2119,7 @@ function St({
|
|
|
2118
2119
|
morePanelProps: I,
|
|
2119
2120
|
onHeader: S,
|
|
2120
2121
|
onLayout: k,
|
|
2121
|
-
onTabChanged:
|
|
2122
|
+
onTabChanged: O,
|
|
2122
2123
|
onTabs: $,
|
|
2123
2124
|
panels: U,
|
|
2124
2125
|
rightContent: B,
|
|
@@ -2141,7 +2142,7 @@ function St({
|
|
|
2141
2142
|
value: se,
|
|
2142
2143
|
onChange: (We, Ze) => {
|
|
2143
2144
|
const Q = N.findIndex((J) => J.value === Ze);
|
|
2144
|
-
|
|
2145
|
+
O == null || O({
|
|
2145
2146
|
selectedTabIndex: Q,
|
|
2146
2147
|
selectedTabValue: Ze
|
|
2147
2148
|
});
|
|
@@ -2183,11 +2184,11 @@ function St({
|
|
|
2183
2184
|
return null;
|
|
2184
2185
|
const ee = {
|
|
2185
2186
|
p: Vr[z],
|
|
2186
|
-
rightContent: /* @__PURE__ */
|
|
2187
|
+
rightContent: /* @__PURE__ */ D(Ge, { children: [
|
|
2187
2188
|
le === "top" ? ye() : null,
|
|
2188
2189
|
B
|
|
2189
2190
|
] }),
|
|
2190
|
-
centerContent: /* @__PURE__ */
|
|
2191
|
+
centerContent: /* @__PURE__ */ D(Ge, { children: [
|
|
2191
2192
|
Te === "in-center" ? Y() : null,
|
|
2192
2193
|
i
|
|
2193
2194
|
] }),
|
|
@@ -2196,7 +2197,7 @@ function St({
|
|
|
2196
2197
|
return S ? S(ee) : /* @__PURE__ */ c(Mr, { ...ee });
|
|
2197
2198
|
}, Oe = () => {
|
|
2198
2199
|
const ee = le === "bottom" ? ye() : null;
|
|
2199
|
-
return /* @__PURE__ */
|
|
2200
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
2200
2201
|
ee ? /* @__PURE__ */ c(xt, { p: Vr[z], children: ee }) : null,
|
|
2201
2202
|
p ? /* @__PURE__ */ c(xt, { p: Vr[z], children: p }) : null
|
|
2202
2203
|
] });
|
|
@@ -2285,7 +2286,7 @@ function Qu({
|
|
|
2285
2286
|
tabsContent: x,
|
|
2286
2287
|
tabsHeaderContent: y
|
|
2287
2288
|
}) {
|
|
2288
|
-
return /* @__PURE__ */
|
|
2289
|
+
return /* @__PURE__ */ D(mu, { style: f == null ? void 0 : f.style, sx: {
|
|
2289
2290
|
height: "100%",
|
|
2290
2291
|
display: "flex",
|
|
2291
2292
|
flexDirection: "column",
|
|
@@ -2299,7 +2300,7 @@ function Qu({
|
|
|
2299
2300
|
/* @__PURE__ */ c(mn, { sx: {
|
|
2300
2301
|
flex: 1,
|
|
2301
2302
|
position: "relative"
|
|
2302
|
-
}, children: /* @__PURE__ */
|
|
2303
|
+
}, children: /* @__PURE__ */ D(xo, { style: {
|
|
2303
2304
|
top: 0,
|
|
2304
2305
|
bottom: 0,
|
|
2305
2306
|
left: 0,
|
|
@@ -2333,7 +2334,7 @@ function es({
|
|
|
2333
2334
|
height: "100%",
|
|
2334
2335
|
display: "flex",
|
|
2335
2336
|
flexDirection: "column"
|
|
2336
|
-
}, defaultSaveMode: "save-close", onCommands: (m) => /* @__PURE__ */ c(qu, { ...m }), onLayout: (m) => /* @__PURE__ */
|
|
2337
|
+
}, defaultSaveMode: "save-close", onCommands: (m) => /* @__PURE__ */ c(qu, { ...m }), onLayout: (m) => /* @__PURE__ */ D(Ge, { children: [
|
|
2337
2338
|
/* @__PURE__ */ c(Yu, { onDirtyStateChange: f }),
|
|
2338
2339
|
/* @__PURE__ */ c(Qu, { ...m })
|
|
2339
2340
|
] }), enableCreate: !1, enableClose: !1, enableDelete: !1, bordered: !s.tabs, ...s, onClose: d }) });
|
|
@@ -2572,9 +2573,9 @@ function Rb({
|
|
|
2572
2573
|
return o.reduce((y, {
|
|
2573
2574
|
fields: w,
|
|
2574
2575
|
message: I
|
|
2575
|
-
}) => (w.every((k) => typeof k == "function" ? k(f, n) : n.fields.findIndex((
|
|
2576
|
-
if (!(p === "fetch" && a(
|
|
2577
|
-
return Dn(
|
|
2576
|
+
}) => (w.every((k) => typeof k == "function" ? k(f, n) : n.fields.findIndex((O) => {
|
|
2577
|
+
if (!(p === "fetch" && a(O) === d))
|
|
2578
|
+
return Dn(O, k) == Dn(m, k);
|
|
2578
2579
|
}) > -1) && y.push(I ?? i("uniqueconstraint", {
|
|
2579
2580
|
fields: w.filter((k) => typeof k == "string").join(",")
|
|
2580
2581
|
})), y), []);
|
|
@@ -2628,11 +2629,11 @@ function zb({
|
|
|
2628
2629
|
const I = a.current;
|
|
2629
2630
|
f(!0);
|
|
2630
2631
|
try {
|
|
2631
|
-
const
|
|
2632
|
-
return I !== a.current || !i ? void 0 : ((S = w == null ? void 0 : w.done) == null || S.call(w,
|
|
2633
|
-
} catch (
|
|
2632
|
+
const O = await y;
|
|
2633
|
+
return I !== a.current || !i ? void 0 : ((S = w == null ? void 0 : w.done) == null || S.call(w, O), O);
|
|
2634
|
+
} catch (O) {
|
|
2634
2635
|
if (i)
|
|
2635
|
-
throw m(
|
|
2636
|
+
throw m(O), (k = w == null ? void 0 : w.failed) == null || k.call(w, O), O;
|
|
2636
2637
|
} finally {
|
|
2637
2638
|
i && f(void 0);
|
|
2638
2639
|
}
|
|
@@ -2703,10 +2704,10 @@ function Lw({
|
|
|
2703
2704
|
let y, w;
|
|
2704
2705
|
const I = x.refine(async (S) => {
|
|
2705
2706
|
if (o) {
|
|
2706
|
-
const
|
|
2707
|
-
if (y ===
|
|
2707
|
+
const O = x3(S);
|
|
2708
|
+
if (y === O)
|
|
2708
2709
|
return w;
|
|
2709
|
-
y =
|
|
2710
|
+
y = O;
|
|
2710
2711
|
}
|
|
2711
2712
|
const k = m(S);
|
|
2712
2713
|
return o && (w = ro(k) ? await k : k), k;
|
|
@@ -2838,7 +2839,7 @@ function jr({
|
|
|
2838
2839
|
const f = [];
|
|
2839
2840
|
for (const d in i) {
|
|
2840
2841
|
const m = i[d][0].title;
|
|
2841
|
-
f.push(/* @__PURE__ */
|
|
2842
|
+
f.push(/* @__PURE__ */ D(y3, { variant: "outlined", severity: d, sx: {
|
|
2842
2843
|
borderRadius: 0,
|
|
2843
2844
|
border: "none",
|
|
2844
2845
|
display: a ? "flex" : "none"
|
|
@@ -2881,7 +2882,7 @@ var Ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2881
2882
|
io.exports;
|
|
2882
2883
|
(function(n, o) {
|
|
2883
2884
|
(function() {
|
|
2884
|
-
var i, a = "4.17.21", s = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", d = "Expected a function", m = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", x = 500, y = "__lodash_placeholder__", w = 1, I = 2, S = 4, k = 1,
|
|
2885
|
+
var i, a = "4.17.21", s = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", d = "Expected a function", m = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", x = 500, y = "__lodash_placeholder__", w = 1, I = 2, S = 4, k = 1, O = 2, $ = 1, U = 2, B = 4, X = 8, Z = 16, G = 32, z = 64, A = 128, P = 256, N = 512, ge = 30, Te = "...", ae = 800, te = 16, le = 1, Y = 2, fe = 3, ye = 1 / 0, we = 9007199254740991, Oe = 17976931348623157e292, Ee = NaN, De = 4294967295, Fe = De - 1, ee = De >>> 1, se = [
|
|
2885
2886
|
["ary", A],
|
|
2886
2887
|
["bind", $],
|
|
2887
2888
|
["bindKey", U],
|
|
@@ -3971,7 +3972,7 @@ io.exports;
|
|
|
3971
3972
|
var R = new pn();
|
|
3972
3973
|
if (l)
|
|
3973
3974
|
var H = l(T, E, C, e, t, R);
|
|
3974
|
-
if (!(H === i ? $r(E, T, k |
|
|
3975
|
+
if (!(H === i ? $r(E, T, k | O, l, R) : H))
|
|
3975
3976
|
return !1;
|
|
3976
3977
|
}
|
|
3977
3978
|
}
|
|
@@ -4029,7 +4030,7 @@ io.exports;
|
|
|
4029
4030
|
function ba(e, t) {
|
|
4030
4031
|
return pl(e) && Qa(t) ? ja(bn(e), t) : function(r) {
|
|
4031
4032
|
var l = _l(r, e);
|
|
4032
|
-
return l === i && l === t ? Cl(r, e) : $r(t, l, k |
|
|
4033
|
+
return l === i && l === t ? Cl(r, e) : $r(t, l, k | O);
|
|
4033
4034
|
};
|
|
4034
4035
|
}
|
|
4035
4036
|
function Ci(e, t, r, l, u) {
|
|
@@ -4695,7 +4696,7 @@ io.exports;
|
|
|
4695
4696
|
var T = h.get(e), E = h.get(t);
|
|
4696
4697
|
if (T && E)
|
|
4697
4698
|
return T == t && E == e;
|
|
4698
|
-
var R = -1, H = !0, K = r &
|
|
4699
|
+
var R = -1, H = !0, K = r & O ? new jn() : i;
|
|
4699
4700
|
for (h.set(e, t), h.set(t, e); ++R < b; ) {
|
|
4700
4701
|
var ie = e[R], ve = t[R];
|
|
4701
4702
|
if (l)
|
|
@@ -4747,7 +4748,7 @@ io.exports;
|
|
|
4747
4748
|
var T = v.get(e);
|
|
4748
4749
|
if (T)
|
|
4749
4750
|
return T == t;
|
|
4750
|
-
l |=
|
|
4751
|
+
l |= O, v.set(e, t);
|
|
4751
4752
|
var E = Ka(b(e), b(t), l, u, h, v);
|
|
4752
4753
|
return v.delete(e), E;
|
|
4753
4754
|
case Me:
|
|
@@ -6595,7 +6596,7 @@ function Xb({
|
|
|
6595
6596
|
save: I,
|
|
6596
6597
|
saveAndNewItem: S,
|
|
6597
6598
|
saveClose: k,
|
|
6598
|
-
delete:
|
|
6599
|
+
delete: O,
|
|
6599
6600
|
newItem: $
|
|
6600
6601
|
}
|
|
6601
6602
|
} = qt();
|
|
@@ -6623,7 +6624,7 @@ function Xb({
|
|
|
6623
6624
|
scopes: f,
|
|
6624
6625
|
...Gr,
|
|
6625
6626
|
...m
|
|
6626
|
-
}), On(
|
|
6627
|
+
}), On(O, o, {
|
|
6627
6628
|
enabled: !p.delete && y.delete && !x,
|
|
6628
6629
|
description: w("deletetitle"),
|
|
6629
6630
|
scopes: f,
|
|
@@ -6676,12 +6677,12 @@ function Yb({
|
|
|
6676
6677
|
form: m
|
|
6677
6678
|
}), vo(() => {
|
|
6678
6679
|
(s == null ? void 0 : s.runValidationsOnDataChange) !== !1 && m.trigger();
|
|
6679
|
-
}), /* @__PURE__ */ c(ns, { form: m, children: /* @__PURE__ */
|
|
6680
|
+
}), /* @__PURE__ */ c(ns, { form: m, children: /* @__PURE__ */ D(ts, { ...s, children: [
|
|
6680
6681
|
/* @__PURE__ */ c(ss, {}),
|
|
6681
6682
|
i
|
|
6682
6683
|
] }) });
|
|
6683
6684
|
}
|
|
6684
|
-
const qb = (n) => /* @__PURE__ */
|
|
6685
|
+
const qb = (n) => /* @__PURE__ */ D(Dm, { viewBox: "0 0 12 12", ...n, children: [
|
|
6685
6686
|
/* @__PURE__ */ c("circle", { cx: "6", cy: "6", r: "6", fill: "currentColor" }),
|
|
6686
6687
|
/* @__PURE__ */ c("path", { d: "M4.00007 5.84661L5.42338 7.26991L8.26998 4.4233", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
6687
6688
|
] });
|
|
@@ -6691,8 +6692,8 @@ function Qb({
|
|
|
6691
6692
|
helperText: i,
|
|
6692
6693
|
commands: a
|
|
6693
6694
|
}) {
|
|
6694
|
-
return /* @__PURE__ */ c(St.Content, { children: /* @__PURE__ */
|
|
6695
|
-
/* @__PURE__ */
|
|
6695
|
+
return /* @__PURE__ */ c(St.Content, { children: /* @__PURE__ */ D(It, { flexDirection: "column", justifyContent: "center", alignItems: "center", minHeight: "300px", children: [
|
|
6696
|
+
/* @__PURE__ */ D(mn, { sx: {
|
|
6696
6697
|
textAlign: "center",
|
|
6697
6698
|
flex: 1,
|
|
6698
6699
|
mt: 3
|
|
@@ -6724,7 +6725,7 @@ function jb({
|
|
|
6724
6725
|
enableCopy: I = !0,
|
|
6725
6726
|
enableCreate: S = !0,
|
|
6726
6727
|
enableDelete: k,
|
|
6727
|
-
enableDiscardChanges:
|
|
6728
|
+
enableDiscardChanges: O,
|
|
6728
6729
|
enableSave: $ = !0,
|
|
6729
6730
|
error: U,
|
|
6730
6731
|
form: B,
|
|
@@ -6797,7 +6798,7 @@ function jb({
|
|
|
6797
6798
|
return A ? A(Pe) : /* @__PURE__ */ c(Ql, { ...Pe });
|
|
6798
6799
|
}, bt = () => i ? /* @__PURE__ */ c(Zb, { onAutoSave: fe, ...typeof i == "object" ? i : {
|
|
6799
6800
|
delay: 500
|
|
6800
|
-
} }) : null, st = () => /* @__PURE__ */
|
|
6801
|
+
} }) : null, st = () => /* @__PURE__ */ D(mn, { ref: tt, children: [
|
|
6801
6802
|
/* @__PURE__ */ c(jr, { messages: o }),
|
|
6802
6803
|
/* @__PURE__ */ c(ss, {})
|
|
6803
6804
|
] }), At = () => !!(se != null && se.length) ? Re() : Ht(), Ht = () => {
|
|
@@ -6894,7 +6895,7 @@ function jb({
|
|
|
6894
6895
|
defaultValues: q,
|
|
6895
6896
|
key: Ne
|
|
6896
6897
|
}) => ct ? /* @__PURE__ */ c(Yb, { name: ct, schema: F, defaultValues: q, validationOptions: W, children: Pe }, Ne) : Pe;
|
|
6897
|
-
return /* @__PURE__ */
|
|
6898
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
6898
6899
|
Se,
|
|
6899
6900
|
se.map((Pe, ct) => {
|
|
6900
6901
|
if (ct === n)
|
|
@@ -6918,7 +6919,7 @@ function jb({
|
|
|
6918
6919
|
return Q ? Q(B.getValues(), Se) : /* @__PURE__ */ c(Qb, { title: ne("savedsuccesfully"), ...ue });
|
|
6919
6920
|
}, Xe = (ue, Se, Ke) => {
|
|
6920
6921
|
const Pe = !!(se != null && se.length), ct = typeof J == "function" ? J(m) : J;
|
|
6921
|
-
return /* @__PURE__ */
|
|
6922
|
+
return /* @__PURE__ */ D(St, { title: ne(Fe === "fetch" ? "edit" : Fe === "view" ? "browse" : "newitem"), tabsPosition: "in-subrow", ...ce, tabExtraContent: ct, disabled: x || De || Z || Fe === "view", commandsContent: Se, commandsPosition: Pe ? "bottom-between" : s, onHeader: _e, onClose: G, loading: Z, alertsContent: Ke, onTabChanged: ({
|
|
6922
6923
|
selectedTabIndex: F,
|
|
6923
6924
|
selectedTabValue: W
|
|
6924
6925
|
}) => {
|
|
@@ -6931,7 +6932,7 @@ function jb({
|
|
|
6931
6932
|
j()
|
|
6932
6933
|
] });
|
|
6933
6934
|
};
|
|
6934
|
-
return /* @__PURE__ */ c(sb, { data: m, reason: Fe, loading: Z, enableCopy: I && S, enableClose: w, enableCreate: S, enableDelete: k, enableDiscardChanges:
|
|
6935
|
+
return /* @__PURE__ */ c(sb, { data: m, reason: Fe, loading: Z, enableCopy: I && S, enableClose: w, enableCreate: S, enableDelete: k, enableDiscardChanges: O, enableSave: $, disabled: x, activeSegmentIndex: n, onSave: fe, setActiveSegmentIndex: ae, children: de() });
|
|
6935
6936
|
}
|
|
6936
6937
|
function e4({
|
|
6937
6938
|
alerts: n,
|
|
@@ -6949,7 +6950,7 @@ function e4({
|
|
|
6949
6950
|
onNavigate: I,
|
|
6950
6951
|
onSave: S,
|
|
6951
6952
|
reason: k = "create",
|
|
6952
|
-
showSuccessMessages:
|
|
6953
|
+
showSuccessMessages: O = !0,
|
|
6953
6954
|
successPanelProps: $,
|
|
6954
6955
|
...U
|
|
6955
6956
|
}) {
|
|
@@ -6981,7 +6982,7 @@ function e4({
|
|
|
6981
6982
|
mode: ee
|
|
6982
6983
|
};
|
|
6983
6984
|
let We = S == null ? void 0 : S(Ie, s);
|
|
6984
|
-
ro(We) && (We = await X(We)), N(We ?? se),
|
|
6985
|
+
ro(We) && (We = await X(We)), N(We ?? se), O && !o && qi.success(B("savedsuccesfully")), k === "create" && $ && !o && ee === "save" && P(!0), m == null || m(We, Ie, s);
|
|
6985
6986
|
}, fe = async () => {
|
|
6986
6987
|
await Y();
|
|
6987
6988
|
}, ye = async () => {
|
|
@@ -6995,7 +6996,7 @@ function e4({
|
|
|
6995
6996
|
data: i,
|
|
6996
6997
|
model: ee
|
|
6997
6998
|
}, Ie = x == null ? void 0 : x(se, s);
|
|
6998
|
-
ro(Ie) && await X(Ie),
|
|
6999
|
+
ro(Ie) && await X(Ie), O && qi.success(B("deletedsuccesfully")), d == null || d(se, s), p == null || p("action");
|
|
6999
7000
|
}, Ee = () => {
|
|
7000
7001
|
N(), y == null || y();
|
|
7001
7002
|
}, De = (ee = "create") => {
|
|
@@ -7036,7 +7037,7 @@ function df({
|
|
|
7036
7037
|
const I = typeof i == "function" ? i == null ? void 0 : i(s, o) : i;
|
|
7037
7038
|
w(I);
|
|
7038
7039
|
}
|
|
7039
|
-
}, [o, i, y, s, w]), /* @__PURE__ */
|
|
7040
|
+
}, [o, i, y, s, w]), /* @__PURE__ */ D(ns, { form: x, validationOptions: d, children: [
|
|
7040
7041
|
/* @__PURE__ */ c(e4, { ...m, activeSegmentIndex: n, form: x, data: o, reason: s }),
|
|
7041
7042
|
/* @__PURE__ */ c(Nb, {})
|
|
7042
7043
|
] });
|
|
@@ -7054,13 +7055,13 @@ function pf({
|
|
|
7054
7055
|
tabsContent: x,
|
|
7055
7056
|
tabsHeaderContent: y
|
|
7056
7057
|
}) {
|
|
7057
|
-
return /* @__PURE__ */
|
|
7058
|
+
return /* @__PURE__ */ D(Ir, { style: n == null ? void 0 : n.style, sx: n == null ? void 0 : n.sx, children: [
|
|
7058
7059
|
f,
|
|
7059
7060
|
m,
|
|
7060
7061
|
i,
|
|
7061
7062
|
p,
|
|
7062
7063
|
y,
|
|
7063
|
-
/* @__PURE__ */
|
|
7064
|
+
/* @__PURE__ */ D(wn.Scroll, { autoHide: !1, children: [
|
|
7064
7065
|
o,
|
|
7065
7066
|
x,
|
|
7066
7067
|
d,
|
|
@@ -7084,7 +7085,7 @@ function gf({
|
|
|
7084
7085
|
...s,
|
|
7085
7086
|
onClose: o
|
|
7086
7087
|
});
|
|
7087
|
-
return /* @__PURE__ */ c(wn, { open: !!i, onClose: () => m("backdrop"), closable: a, ...n, children: /* @__PURE__ */ c(Nt, { defaultSaveMode: "save-close", enableClose: a, enableDelete: !0, enableDiscardChanges: !1, commandsPosition: "bottom-right", onLayout: (p) => /* @__PURE__ */
|
|
7088
|
+
return /* @__PURE__ */ c(wn, { open: !!i, onClose: () => m("backdrop"), closable: a, ...n, children: /* @__PURE__ */ c(Nt, { defaultSaveMode: "save-close", enableClose: a, enableDelete: !0, enableDiscardChanges: !1, commandsPosition: "bottom-right", onLayout: (p) => /* @__PURE__ */ D(Ge, { children: [
|
|
7088
7089
|
/* @__PURE__ */ c(Yu, { onDirtyStateChange: d }),
|
|
7089
7090
|
/* @__PURE__ */ c(pf, { ...p })
|
|
7090
7091
|
] }), bordered: !f.tabs, ...f, onClose: m }) });
|
|
@@ -7154,7 +7155,7 @@ function cs({
|
|
|
7154
7155
|
} = p, {
|
|
7155
7156
|
reason: S,
|
|
7156
7157
|
segment: k,
|
|
7157
|
-
setSegment:
|
|
7158
|
+
setSegment: O,
|
|
7158
7159
|
disabled: $,
|
|
7159
7160
|
readonly: U
|
|
7160
7161
|
} = Nu({
|
|
@@ -7200,7 +7201,7 @@ function cs({
|
|
|
7200
7201
|
},
|
|
7201
7202
|
relative: "path"
|
|
7202
7203
|
});
|
|
7203
|
-
}, activeSegmentIndex: k, onSegmentChanged:
|
|
7204
|
+
}, activeSegmentIndex: k, onSegmentChanged: O, onContentLayout: (z) => /* @__PURE__ */ D(Ge, { children: [
|
|
7204
7205
|
/* @__PURE__ */ c(r4, { ...i }),
|
|
7205
7206
|
/* @__PURE__ */ c(Ql, { ...z })
|
|
7206
7207
|
] }), disabled: $ || U, ...p });
|
|
@@ -7325,9 +7326,9 @@ function hf({
|
|
|
7325
7326
|
emptyImageUrl: a = o4,
|
|
7326
7327
|
...s
|
|
7327
7328
|
}) {
|
|
7328
|
-
return /* @__PURE__ */
|
|
7329
|
+
return /* @__PURE__ */ D(It, { justifyContent: "center", flexDirection: "column", alignItems: "center", gap: 2, ...s, children: [
|
|
7329
7330
|
o && /* @__PURE__ */ c("img", { src: a, width: 150, height: 150, alt: "no record" }),
|
|
7330
|
-
/* @__PURE__ */
|
|
7331
|
+
/* @__PURE__ */ D(It, { alignItems: "center", flexDirection: "column", gap: 1, children: [
|
|
7331
7332
|
/* @__PURE__ */ c(fn, { sx: {
|
|
7332
7333
|
color: "text.secondary"
|
|
7333
7334
|
}, children: n }),
|
|
@@ -7414,7 +7415,7 @@ function Jn({
|
|
|
7414
7415
|
headerSx: I,
|
|
7415
7416
|
loading: S,
|
|
7416
7417
|
newRowButtonText: k,
|
|
7417
|
-
newRowButtonContent:
|
|
7418
|
+
newRowButtonContent: O,
|
|
7418
7419
|
onCellProps: $,
|
|
7419
7420
|
onFooterCellProps: U,
|
|
7420
7421
|
onHeadCellProps: B,
|
|
@@ -7543,7 +7544,7 @@ function Jn({
|
|
|
7543
7544
|
break;
|
|
7544
7545
|
}
|
|
7545
7546
|
}, At = (F, W) => {
|
|
7546
|
-
const q = /* @__PURE__ */
|
|
7547
|
+
const q = /* @__PURE__ */ D(eu, { gap: 1, sx: {
|
|
7547
7548
|
textAlign: "center"
|
|
7548
7549
|
}, children: [
|
|
7549
7550
|
F.column.icon,
|
|
@@ -7630,7 +7631,7 @@ function Jn({
|
|
|
7630
7631
|
}, Me = () => {
|
|
7631
7632
|
if (!Oe || S || typeof Oe == "string" && Oe === "empty" && (s != null && s.length))
|
|
7632
7633
|
return null;
|
|
7633
|
-
const F =
|
|
7634
|
+
const F = O ?? /* @__PURE__ */ c(xf, { disableRipple: !0, onClick: X, children: /* @__PURE__ */ D(Cr, { flexDirection: "row", alignItems: "center", gap: 0.5, p: 0.4, children: [
|
|
7634
7635
|
/* @__PURE__ */ c(A3, { sx: {
|
|
7635
7636
|
fontSize: "14px"
|
|
7636
7637
|
} }),
|
|
@@ -7644,7 +7645,7 @@ function Jn({
|
|
|
7644
7645
|
let Ne;
|
|
7645
7646
|
d && (Ne = typeof d == "function" ? d(q) : Dn(q.original, d));
|
|
7646
7647
|
const Qe = Z && q.getIsExpanded(), mt = q.getIsSelected(), ot = A == null ? void 0 : A(q, de);
|
|
7647
|
-
return /* @__PURE__ */
|
|
7648
|
+
return /* @__PURE__ */ D(Pl, { children: [
|
|
7648
7649
|
/* @__PURE__ */ ao(
|
|
7649
7650
|
Nl,
|
|
7650
7651
|
{
|
|
@@ -7678,7 +7679,7 @@ function Jn({
|
|
|
7678
7679
|
}) : null,
|
|
7679
7680
|
Qe && Ke(q)
|
|
7680
7681
|
] }, q.id);
|
|
7681
|
-
}), Xe = () => /* @__PURE__ */
|
|
7682
|
+
}), Xe = () => /* @__PURE__ */ D(R3, { ref: Ie, children: [
|
|
7682
7683
|
ht(),
|
|
7683
7684
|
ct(Ee),
|
|
7684
7685
|
_e(),
|
|
@@ -7693,7 +7694,7 @@ function Jn({
|
|
|
7693
7694
|
pageSize: q,
|
|
7694
7695
|
pageIndex: Ne
|
|
7695
7696
|
} = de.getState().pagination, Qe = /* @__PURE__ */ c(z3, { component: "div", rowsPerPageOptions: s4, page: Ne, rowsPerPage: q, count: de.getRowCount(), onPageChange: (mt, ot) => de.setPageIndex(ot), onRowsPerPageChange: (mt) => de.setPageSize(+mt.target.value || 5), ...W });
|
|
7696
|
-
return F ? /* @__PURE__ */
|
|
7697
|
+
return F ? /* @__PURE__ */ D(Yr, { sx: {
|
|
7697
7698
|
pl: 1
|
|
7698
7699
|
}, children: [
|
|
7699
7700
|
F,
|
|
@@ -7724,9 +7725,9 @@ function Jn({
|
|
|
7724
7725
|
const W = de.getVisibleFlatColumns();
|
|
7725
7726
|
return [...Array(F)].map((q, Ne) => /* @__PURE__ */ c(or, { children: W.map((Qe, mt) => /* @__PURE__ */ c(_r, { scope: "row", children: /* @__PURE__ */ c(E3, { animation: "wave", variant: "text" }) }, `skeloton-${mt}`)) }, Ne));
|
|
7726
7727
|
};
|
|
7727
|
-
return /* @__PURE__ */
|
|
7728
|
-
/* @__PURE__ */
|
|
7729
|
-
/* @__PURE__ */
|
|
7728
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
7729
|
+
/* @__PURE__ */ D(xo, { autoHide: !1, forceVisible: !0, ...ye, children: [
|
|
7730
|
+
/* @__PURE__ */ D(F3, { stickyHeader: fe, size: ae, sx: {
|
|
7730
7731
|
border: i ? "1px solid" : "none",
|
|
7731
7732
|
borderColor: (F) => F.palette.grey[200],
|
|
7732
7733
|
...J.applyStyles("dark", {
|
|
@@ -7758,7 +7759,7 @@ function wf({
|
|
|
7758
7759
|
tableContent: a,
|
|
7759
7760
|
errors: s
|
|
7760
7761
|
}) {
|
|
7761
|
-
return /* @__PURE__ */
|
|
7762
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
7762
7763
|
i || n ? /* @__PURE__ */ c(Mr, { ...i, rightContent: n }) : null,
|
|
7763
7764
|
a,
|
|
7764
7765
|
s == null ? void 0 : s.map((f, d) => /* @__PURE__ */ c(fn, { color: "text.secondary", children: f }, d)),
|
|
@@ -7779,7 +7780,7 @@ function Sf({
|
|
|
7779
7780
|
} = et(), [m, p] = Ve(null), x = (w) => {
|
|
7780
7781
|
p(w.currentTarget);
|
|
7781
7782
|
}, y = () => p(null);
|
|
7782
|
-
return /* @__PURE__ */
|
|
7783
|
+
return /* @__PURE__ */ D(Kl, { open: m, handleOpen: x, handleClose: y, disabled: s, children: [
|
|
7783
7784
|
/* @__PURE__ */ c(Xn, { Icon: Hl, title: a ?? d("newitem"), handleClick: () => {
|
|
7784
7785
|
y(), n();
|
|
7785
7786
|
}, disabled: s }),
|
|
@@ -7806,7 +7807,7 @@ function us({
|
|
|
7806
7807
|
detailType: I = "drawer",
|
|
7807
7808
|
disabled: S,
|
|
7808
7809
|
enableDeleteAllButton: k,
|
|
7809
|
-
enableRowClickToDetails:
|
|
7810
|
+
enableRowClickToDetails: O,
|
|
7810
7811
|
headerProps: $,
|
|
7811
7812
|
name: U,
|
|
7812
7813
|
newItemTitle: B,
|
|
@@ -7933,9 +7934,9 @@ function us({
|
|
|
7933
7934
|
}, [Oe, J, X, fe, ce]), gt = () => /* @__PURE__ */ c(Jn, { showEmptyImage: !1, onNewRow: () => Q(), newRowButtonText: B, ...P, rowIdField: Wl, data: le, enableSorting: !0, state: {
|
|
7934
7935
|
sorting: Te
|
|
7935
7936
|
}, onSortingChange: ae, getSortedRowModel: _u(), columns: tt, onRowClick: (Re, _e) => {
|
|
7936
|
-
if (!
|
|
7937
|
+
if (!O || S || typeof O == "function" && !O(_e.original))
|
|
7937
7938
|
return;
|
|
7938
|
-
const j = typeof
|
|
7939
|
+
const j = typeof O == "string" ? O : "view";
|
|
7939
7940
|
Q({
|
|
7940
7941
|
data: _e.original,
|
|
7941
7942
|
reason: j,
|
|
@@ -8007,7 +8008,7 @@ function f4({
|
|
|
8007
8008
|
const m = uo({
|
|
8008
8009
|
name: n
|
|
8009
8010
|
});
|
|
8010
|
-
return f ? f(m) : o && !lr(m) ? /* @__PURE__ */ c("code", { children: JSON.stringify(m) }) : i ? /* @__PURE__ */
|
|
8011
|
+
return f ? f(m) : o && !lr(m) ? /* @__PURE__ */ c("code", { children: JSON.stringify(m) }) : i ? /* @__PURE__ */ D(Cr, { spacing: 1, direction: "row", sx: d, children: [
|
|
8011
8012
|
/* @__PURE__ */ c(fn, { ...a, children: i }),
|
|
8012
8013
|
/* @__PURE__ */ c(fn, { ...s, children: m })
|
|
8013
8014
|
] }) : /* @__PURE__ */ c(fn, { ...s, children: m });
|
|
@@ -8030,11 +8031,11 @@ function p4({
|
|
|
8030
8031
|
wrapperProps: m,
|
|
8031
8032
|
disabled: p
|
|
8032
8033
|
}) {
|
|
8033
|
-
const x = () => s ? /* @__PURE__ */ c(Cu, { error: !0, children: s.message }) : null, y = (I) => /* @__PURE__ */
|
|
8034
|
+
const x = () => s ? /* @__PURE__ */ c(Cu, { error: !0, children: s.message }) : null, y = (I) => /* @__PURE__ */ D(xt, { children: [
|
|
8034
8035
|
/* @__PURE__ */ c(ji, { fontWeight: 500, lineHeight: 1, color: p ? "text.secondary" : f ? "error.main" : "text.primary", ...d, children: I }),
|
|
8035
8036
|
a ? /* @__PURE__ */ c(fn, { color: "text.secondary", children: a }) : null
|
|
8036
8037
|
] }, "label");
|
|
8037
|
-
return /* @__PURE__ */
|
|
8038
|
+
return /* @__PURE__ */ D(xt, { children: [
|
|
8038
8039
|
(() => {
|
|
8039
8040
|
const I = Array.isArray(i) ? [y(i[0]), o, y(i[1])] : n === "left" || n === "bottom" ? [o, y(i)] : [y(i), o];
|
|
8040
8041
|
return /* @__PURE__ */ c(It, { alignItems: n === "left" || n === "right" ? "center" : "flex-start", flexDirection: n === "left" || n === "right" ? "row" : "column", gap: 1, ...m, children: I });
|
|
@@ -8094,8 +8095,8 @@ function m4({
|
|
|
8094
8095
|
invalid: w,
|
|
8095
8096
|
error: I
|
|
8096
8097
|
}) => /* @__PURE__ */ c(W3, { ...x, ...y, value: tb(y.value), onChange: (S, k) => {
|
|
8097
|
-
var
|
|
8098
|
-
y.onChange(S), (
|
|
8098
|
+
var O;
|
|
8099
|
+
y.onChange(S), (O = x == null ? void 0 : x.onChange) == null || O.call(x, S, k);
|
|
8099
8100
|
}, slotProps: {
|
|
8100
8101
|
textField: {
|
|
8101
8102
|
...i == null ? void 0 : i.textField,
|
|
@@ -8410,10 +8411,10 @@ function Mf({
|
|
|
8410
8411
|
const I = (S) => {
|
|
8411
8412
|
S.stopPropagation(), d == null || d();
|
|
8412
8413
|
};
|
|
8413
|
-
return /* @__PURE__ */
|
|
8414
|
-
/* @__PURE__ */
|
|
8415
|
-
/* @__PURE__ */
|
|
8416
|
-
/* @__PURE__ */
|
|
8414
|
+
return /* @__PURE__ */ D(L4, { onClick: f, selected: p, sx: y, disabled: o, children: [
|
|
8415
|
+
/* @__PURE__ */ D(Yr, { children: [
|
|
8416
|
+
/* @__PURE__ */ D("div", { children: [
|
|
8417
|
+
/* @__PURE__ */ D("div", { className: "place", children: [
|
|
8417
8418
|
a,
|
|
8418
8419
|
/* @__PURE__ */ c(ji, { className: "panel-label", fontWeight: 500, children: s })
|
|
8419
8420
|
] }),
|
|
@@ -8443,7 +8444,7 @@ function Af({
|
|
|
8443
8444
|
deleteable: I,
|
|
8444
8445
|
helperText: S,
|
|
8445
8446
|
icon: k,
|
|
8446
|
-
rightContent:
|
|
8447
|
+
rightContent: O,
|
|
8447
8448
|
selectedIcon: $,
|
|
8448
8449
|
sx: U,
|
|
8449
8450
|
children: B,
|
|
@@ -8456,7 +8457,7 @@ function Af({
|
|
|
8456
8457
|
disabled: X || s,
|
|
8457
8458
|
helperText: S,
|
|
8458
8459
|
icon: k,
|
|
8459
|
-
rightContent:
|
|
8460
|
+
rightContent: O,
|
|
8460
8461
|
selectedIcon: d === "horizontal" ? "" : $,
|
|
8461
8462
|
deleteable: d === "horizontal" ? !1 : I,
|
|
8462
8463
|
sx: U,
|
|
@@ -8570,16 +8571,16 @@ function F4({
|
|
|
8570
8571
|
svg: {
|
|
8571
8572
|
right: 0
|
|
8572
8573
|
}
|
|
8573
|
-
}, value: S.iso2, onChange: (
|
|
8574
|
+
}, value: S.iso2, onChange: (O) => k(O.target.value), renderValue: (O) => /* @__PURE__ */ c(Jc, { iso2: O, style: {
|
|
8574
8575
|
display: "flex"
|
|
8575
|
-
} }), children: Kc.map((
|
|
8576
|
-
const $ = U3(
|
|
8577
|
-
return /* @__PURE__ */
|
|
8576
|
+
} }), children: Kc.map((O) => {
|
|
8577
|
+
const $ = U3(O);
|
|
8578
|
+
return /* @__PURE__ */ D(lo, { value: $.iso2, children: [
|
|
8578
8579
|
/* @__PURE__ */ c(Jc, { iso2: $.iso2, style: {
|
|
8579
8580
|
marginRight: "8px"
|
|
8580
8581
|
} }),
|
|
8581
8582
|
/* @__PURE__ */ c($l, { marginRight: "8px", children: $.name }),
|
|
8582
|
-
/* @__PURE__ */
|
|
8583
|
+
/* @__PURE__ */ D($l, { color: "gray", children: [
|
|
8583
8584
|
"+",
|
|
8584
8585
|
$.dialCode
|
|
8585
8586
|
] })
|
|
@@ -8644,9 +8645,9 @@ function D4({
|
|
|
8644
8645
|
helperText: i,
|
|
8645
8646
|
placement: a,
|
|
8646
8647
|
...p
|
|
8647
|
-
}, disabled: m, render: (I) => /* @__PURE__ */
|
|
8648
|
-
var
|
|
8649
|
-
I.onChange(k), (
|
|
8648
|
+
}, disabled: m, render: (I) => /* @__PURE__ */ D(V3, { row: !0, ...y, ...I, onChange: (S, k) => {
|
|
8649
|
+
var O;
|
|
8650
|
+
I.onChange(k), (O = y == null ? void 0 : y.onChange) == null || O.call(y, S, k);
|
|
8650
8651
|
}, children: [
|
|
8651
8652
|
f && /* @__PURE__ */ c(su, { value: d, control: /* @__PURE__ */ c(zl, {}), label: w("all") }),
|
|
8652
8653
|
x == null ? void 0 : x.map(({
|
|
@@ -8721,7 +8722,7 @@ function W4({
|
|
|
8721
8722
|
label: I,
|
|
8722
8723
|
onChange: S,
|
|
8723
8724
|
optionImg: k,
|
|
8724
|
-
optionImgProps:
|
|
8725
|
+
optionImgProps: O,
|
|
8725
8726
|
optionTemplate: $ = Ou,
|
|
8726
8727
|
optionAsValue: U,
|
|
8727
8728
|
readOnly: B,
|
|
@@ -8817,20 +8818,20 @@ function W4({
|
|
|
8817
8818
|
}, []);
|
|
8818
8819
|
}, Ee = (Q, J) => Q == null ? void 0 : Q.map((ce) => {
|
|
8819
8820
|
const ne = cn.get(ce, P), tt = te(ce), pt = le == null ? void 0 : le(ce), de = k ? cn.get(ce, k) : null, gt = N ? Y == null ? void 0 : Y.includes(ne) : Y === ne;
|
|
8820
|
-
let bt = N ? tt : /* @__PURE__ */
|
|
8821
|
+
let bt = N ? tt : /* @__PURE__ */ D(xt, { width: "100%", height: "100%", sx: {
|
|
8821
8822
|
fontSize: ge === "smaller" ? "smaller" : void 0
|
|
8822
8823
|
}, children: [
|
|
8823
8824
|
tt,
|
|
8824
8825
|
typeof pt == "string" ? /* @__PURE__ */ c(eo, { color: "text.secondary", children: pt }) : pt
|
|
8825
8826
|
] });
|
|
8826
|
-
return de && (bt = /* @__PURE__ */
|
|
8827
|
+
return de && (bt = /* @__PURE__ */ D(It, { alignItems: "center", gap: 1, children: [
|
|
8827
8828
|
/* @__PURE__ */ c(K3, { src: de, sx: {
|
|
8828
8829
|
width: 40,
|
|
8829
8830
|
height: 40,
|
|
8830
8831
|
backgroundColor: (st) => st.palette.action.disabledBackground
|
|
8831
|
-
}, variant: "rounded", ...
|
|
8832
|
+
}, variant: "rounded", ...O }),
|
|
8832
8833
|
bt
|
|
8833
|
-
] })), G && (bt = /* @__PURE__ */
|
|
8834
|
+
] })), G && (bt = /* @__PURE__ */ D(It, { alignItems: "center", gap: 1, children: [
|
|
8834
8835
|
/* @__PURE__ */ c(Zr, { size: "small", disableRipple: !0, sx: {
|
|
8835
8836
|
p: 0
|
|
8836
8837
|
}, checked: gt, tabIndex: -1, inputProps: {
|
|
@@ -8845,7 +8846,7 @@ function W4({
|
|
|
8845
8846
|
return null;
|
|
8846
8847
|
const J = U ? Q : ye(Q);
|
|
8847
8848
|
return J ? Array.isArray(J) ? J.map((ce) => ae == null ? void 0 : ae(ce)).join(", ") : ae == null ? void 0 : ae(J) : null;
|
|
8848
|
-
}, Fe = () => /* @__PURE__ */
|
|
8849
|
+
}, Fe = () => /* @__PURE__ */ D(ku, { ...Te, readOnly: B, notched: N ? !!(A != null && A.length) : !!A, error: m, multiple: N, ref: Z, labelId: `${w}-label`, id: `${w}-select`, label: I, value: Y, title: N && to(De(A)) || "", onChange: we, disabled: s, MenuProps: {
|
|
8849
8850
|
PaperProps: {
|
|
8850
8851
|
sx: {
|
|
8851
8852
|
maxHeight: d
|
|
@@ -8878,14 +8879,14 @@ function W4({
|
|
|
8878
8879
|
}, renderValue: lr(A) ? () => null : f || G ? () => De(A) : void 0, children: [
|
|
8879
8880
|
o,
|
|
8880
8881
|
p ? Oe(i) : Ee(i)
|
|
8881
|
-
] }), ee = () => x ? /* @__PURE__ */ c(Cu, { error: !0, children: x }) : null, se = (Q, J) => /* @__PURE__ */
|
|
8882
|
+
] }), ee = () => x ? /* @__PURE__ */ c(Cu, { error: !0, children: x }) : null, se = (Q, J) => /* @__PURE__ */ D(J3, { fullWidth: !0, ...y, error: !!m, size: ge === "smaller" ? "small" : ge, children: [
|
|
8882
8883
|
/* @__PURE__ */ c(Y3, { shrink: N ? !!(A != null && A.length) : !!A, id: `${w}-label`, sx: {
|
|
8883
8884
|
lineHeight: ge === "smaller" ? 1.4 : void 0
|
|
8884
8885
|
}, children: I }),
|
|
8885
8886
|
Q,
|
|
8886
8887
|
J
|
|
8887
8888
|
] }), Ie = Fe(), We = ee();
|
|
8888
|
-
return I ? se(Ie, We) : /* @__PURE__ */
|
|
8889
|
+
return I ? se(Ie, We) : /* @__PURE__ */ D(Ge, { children: [
|
|
8889
8890
|
Ie,
|
|
8890
8891
|
We
|
|
8891
8892
|
] });
|
|
@@ -8952,7 +8953,7 @@ function Be({
|
|
|
8952
8953
|
} = kr(), {
|
|
8953
8954
|
getName: k
|
|
8954
8955
|
} = Wb(), {
|
|
8955
|
-
setTouched:
|
|
8956
|
+
setTouched: O
|
|
8956
8957
|
} = os(), $ = Ye(() => k(s), [k, s]), {
|
|
8957
8958
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8958
8959
|
field: {
|
|
@@ -8987,7 +8988,7 @@ function Be({
|
|
|
8987
8988
|
onChange: (Te) => {
|
|
8988
8989
|
I($, Te.target.value, {
|
|
8989
8990
|
shouldDirty: !0
|
|
8990
|
-
}),
|
|
8991
|
+
}), O(!0);
|
|
8991
8992
|
},
|
|
8992
8993
|
onBlur: () => {
|
|
8993
8994
|
B.onBlur(), S();
|
|
@@ -8995,7 +8996,7 @@ function Be({
|
|
|
8995
8996
|
} : {
|
|
8996
8997
|
...B,
|
|
8997
8998
|
onChange: (Te) => {
|
|
8998
|
-
B.onChange(Te),
|
|
8999
|
+
B.onChange(Te), O(!0);
|
|
8999
9000
|
}
|
|
9000
9001
|
}, ge = A == null ? void 0 : A({
|
|
9001
9002
|
...N,
|
|
@@ -9037,11 +9038,11 @@ function Fw({
|
|
|
9037
9038
|
t: S
|
|
9038
9039
|
} = et(), k = ($) => {
|
|
9039
9040
|
$.stopPropagation(), p == null || p(!y), w((U) => !U);
|
|
9040
|
-
},
|
|
9041
|
+
}, O = ($) => {
|
|
9041
9042
|
I.current && I.current.contains($.target) || w(!1);
|
|
9042
9043
|
};
|
|
9043
|
-
return /* @__PURE__ */
|
|
9044
|
-
/* @__PURE__ */
|
|
9044
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
9045
|
+
/* @__PURE__ */ D(Wm, { variant: m, ref: I, disabled: o, size: a, color: d, ...f, children: [
|
|
9045
9046
|
/* @__PURE__ */ c(Sr, { ...x }),
|
|
9046
9047
|
/* @__PURE__ */ c(Sr, { "aria-controls": y ? "split-button-menu" : void 0, "aria-expanded": y ? "true" : void 0, "aria-haspopup": "menu", onClick: k, sx: {
|
|
9047
9048
|
px: a === "small" ? 0.5 : 0.7,
|
|
@@ -9055,20 +9056,20 @@ function Fw({
|
|
|
9055
9056
|
placement: U
|
|
9056
9057
|
}) => /* @__PURE__ */ c(Hm, { ...$, style: {
|
|
9057
9058
|
transformOrigin: U === "bottom" ? "center top" : "center bottom"
|
|
9058
|
-
}, children: /* @__PURE__ */ c(Pm, { children: /* @__PURE__ */ c(Um, { onClickAway:
|
|
9059
|
+
}, children: /* @__PURE__ */ c(Pm, { children: /* @__PURE__ */ c(Um, { onClickAway: O, children: /* @__PURE__ */ D(Gm, { id: "split-button-menu", autoFocusItem: !0, sx: {
|
|
9059
9060
|
textAlign: "left",
|
|
9060
9061
|
maxHeight: i,
|
|
9061
9062
|
overflowY: i ? "auto" : "visible"
|
|
9062
9063
|
}, children: [
|
|
9063
9064
|
s && /* @__PURE__ */ c(Xc, { disabled: !0, children: S("tags.loading") }, "loading"),
|
|
9064
|
-
n.map((B) => /* @__PURE__ */
|
|
9065
|
+
n.map((B) => /* @__PURE__ */ D(Xc, { disabled: B.disabled, onClick: (X) => {
|
|
9065
9066
|
var Z;
|
|
9066
9067
|
X.stopPropagation(), w(!1), (Z = B.onClick) == null || Z.call(B, X);
|
|
9067
9068
|
}, children: [
|
|
9068
9069
|
B.icon ? /* @__PURE__ */ c(Vm, { sx: {
|
|
9069
9070
|
color: "inherit"
|
|
9070
9071
|
}, children: B.icon }) : null,
|
|
9071
|
-
/* @__PURE__ */
|
|
9072
|
+
/* @__PURE__ */ D(Zm, { disableTypography: !0, children: [
|
|
9072
9073
|
B.label,
|
|
9073
9074
|
B.helperText ? /* @__PURE__ */ c(eo, { fontSize: 12, color: "text.secondary", children: B.helperText }) : null
|
|
9074
9075
|
] })
|
|
@@ -9138,11 +9139,11 @@ function X4({
|
|
|
9138
9139
|
} = qt();
|
|
9139
9140
|
if (!n)
|
|
9140
9141
|
return m ? p : null;
|
|
9141
|
-
const
|
|
9142
|
+
const O = d ?? (a ? S : o ? I : w);
|
|
9142
9143
|
let $, U = k;
|
|
9143
9144
|
f != null && (U = f), U ? $ = Ot.utc(n, i).local() : $ = Ot(n, i);
|
|
9144
|
-
const B = $.format(d ??
|
|
9145
|
-
return /* @__PURE__ */
|
|
9145
|
+
const B = $.format(d ?? O);
|
|
9146
|
+
return /* @__PURE__ */ D(It, { alignItems: "center", title: B, ...x, ref: y, gap: 1, children: [
|
|
9146
9147
|
s && /* @__PURE__ */ c(Z4, { sx: {
|
|
9147
9148
|
color: "currentColor"
|
|
9148
9149
|
} }),
|
|
@@ -9158,7 +9159,7 @@ function J4({
|
|
|
9158
9159
|
unDefinedMessage: a = "-",
|
|
9159
9160
|
...s
|
|
9160
9161
|
}) {
|
|
9161
|
-
return n ? /* @__PURE__ */ c(xt, { ...s, children: /* @__PURE__ */
|
|
9162
|
+
return n ? /* @__PURE__ */ c(xt, { ...s, children: /* @__PURE__ */ D(It, { gap: 0.8, alignItems: "center", children: [
|
|
9162
9163
|
o ? /* @__PURE__ */ c(j3, { sx: {
|
|
9163
9164
|
fontSize: "1.2em",
|
|
9164
9165
|
color: "currentColor"
|
|
@@ -9179,7 +9180,7 @@ function Y4({
|
|
|
9179
9180
|
const d = Ye(() => n ? Au(n).formatInternational() : "", [n]);
|
|
9180
9181
|
return d ? /* @__PURE__ */ c(xt, { ...f, onClick: (p) => {
|
|
9181
9182
|
p.stopPropagation();
|
|
9182
|
-
}, children: /* @__PURE__ */
|
|
9183
|
+
}, children: /* @__PURE__ */ D(It, { gap: 0.5, alignItems: "center", children: [
|
|
9183
9184
|
o && /* @__PURE__ */ c(ex, { sx: {
|
|
9184
9185
|
fontSize: "1.2em",
|
|
9185
9186
|
color: "currentColor"
|
|
@@ -9279,7 +9280,7 @@ function Rf(n) {
|
|
|
9279
9280
|
search: I,
|
|
9280
9281
|
newItem: S,
|
|
9281
9282
|
clear: k,
|
|
9282
|
-
export:
|
|
9283
|
+
export: O
|
|
9283
9284
|
}
|
|
9284
9285
|
} = qt(), $ = () => !x.search || d != null && d.search ? null : /* @__PURE__ */ c(
|
|
9285
9286
|
Ki,
|
|
@@ -9315,7 +9316,7 @@ function Rf(n) {
|
|
|
9315
9316
|
color: "secondary",
|
|
9316
9317
|
variant: "outlined",
|
|
9317
9318
|
title: `${p("listpage.settings.exportExcel")}
|
|
9318
|
-
(${
|
|
9319
|
+
(${O.toUpperCase()})`,
|
|
9319
9320
|
onClick: s,
|
|
9320
9321
|
disabled: y.export,
|
|
9321
9322
|
children: /* @__PURE__ */ c(qc, {}),
|
|
@@ -9376,7 +9377,7 @@ function Rf(n) {
|
|
|
9376
9377
|
};
|
|
9377
9378
|
return /* @__PURE__ */ c(Ge, { children: (() => {
|
|
9378
9379
|
const z = Z(), A = $(), P = B(), N = U(), ge = X();
|
|
9379
|
-
return /* @__PURE__ */
|
|
9380
|
+
return /* @__PURE__ */ D(Ge, { children: [
|
|
9380
9381
|
f,
|
|
9381
9382
|
[P, N, ge, A],
|
|
9382
9383
|
z
|
|
@@ -9397,7 +9398,7 @@ function Of({
|
|
|
9397
9398
|
tabsContent: y,
|
|
9398
9399
|
tabsHeaderContent: w
|
|
9399
9400
|
}) {
|
|
9400
|
-
return /* @__PURE__ */
|
|
9401
|
+
return /* @__PURE__ */ D(Ir, { style: m == null ? void 0 : m.style, sx: m == null ? void 0 : m.sx, children: [
|
|
9401
9402
|
p,
|
|
9402
9403
|
d,
|
|
9403
9404
|
i,
|
|
@@ -9444,7 +9445,7 @@ function n5({
|
|
|
9444
9445
|
showEmptyText: k = !0
|
|
9445
9446
|
}) {
|
|
9446
9447
|
const {
|
|
9447
|
-
t:
|
|
9448
|
+
t: O
|
|
9448
9449
|
} = et(), $ = dt(!0);
|
|
9449
9450
|
qe(() => {
|
|
9450
9451
|
a != null && a.length && ($.current = !1);
|
|
@@ -9466,9 +9467,9 @@ function n5({
|
|
|
9466
9467
|
xs: 12
|
|
9467
9468
|
}, ...n, children: ge }, A);
|
|
9468
9469
|
}), Z = U(S);
|
|
9469
|
-
return !(a != null && a.length) && k && !y ? /* @__PURE__ */ c(hf, { emptyText:
|
|
9470
|
+
return !(a != null && a.length) && k && !y ? /* @__PURE__ */ c(hf, { emptyText: O("nodatafound"), sx: {
|
|
9470
9471
|
py: 2
|
|
9471
|
-
}, ...s }) : /* @__PURE__ */ c(St.Content, { pt: 0, ...i, children: /* @__PURE__ */
|
|
9472
|
+
}, ...s }) : /* @__PURE__ */ c(St.Content, { pt: 0, ...i, children: /* @__PURE__ */ D(Gi, { container: !0, spacing: 2, ...o, children: [
|
|
9472
9473
|
Z,
|
|
9473
9474
|
X,
|
|
9474
9475
|
d && !y ? /* @__PURE__ */ c(Gi, { size: {
|
|
@@ -9481,7 +9482,7 @@ function r5({
|
|
|
9481
9482
|
dataCount: o,
|
|
9482
9483
|
...i
|
|
9483
9484
|
}) {
|
|
9484
|
-
return /* @__PURE__ */ c(Mr, { ...i, header: n && o ? /* @__PURE__ */
|
|
9485
|
+
return /* @__PURE__ */ c(Mr, { ...i, header: n && o ? /* @__PURE__ */ D(It, { alignItems: "center", gap: 0.5, children: [
|
|
9485
9486
|
/* @__PURE__ */ c("span", { children: i.header }),
|
|
9486
9487
|
`(${o})`
|
|
9487
9488
|
] }) : i.header });
|
|
@@ -9564,7 +9565,7 @@ function s5({
|
|
|
9564
9565
|
disableShortCuts: I,
|
|
9565
9566
|
enableActionCommands: S,
|
|
9566
9567
|
enableRowClickToDetails: k,
|
|
9567
|
-
enableClear:
|
|
9568
|
+
enableClear: O,
|
|
9568
9569
|
enableCreateItem: $ = !0,
|
|
9569
9570
|
enableRefetch: U,
|
|
9570
9571
|
enableExport: B,
|
|
@@ -9625,7 +9626,7 @@ function s5({
|
|
|
9625
9626
|
autoSearchContent: Xe,
|
|
9626
9627
|
shortCutContent: ue
|
|
9627
9628
|
};
|
|
9628
|
-
return ee ? ee(Pe) : /* @__PURE__ */
|
|
9629
|
+
return ee ? ee(Pe) : /* @__PURE__ */ D(Ge, { children: [
|
|
9629
9630
|
Se,
|
|
9630
9631
|
Ke,
|
|
9631
9632
|
Xe,
|
|
@@ -9668,7 +9669,7 @@ function s5({
|
|
|
9668
9669
|
return /* @__PURE__ */ c(Rf, { ...j, children: Me });
|
|
9669
9670
|
}, st = () => {
|
|
9670
9671
|
const j = a ?? [];
|
|
9671
|
-
return Z && j.push(...ls(Z)), /* @__PURE__ */
|
|
9672
|
+
return Z && j.push(...ls(Z)), /* @__PURE__ */ D(mn, { ref: Q, children: [
|
|
9672
9673
|
/* @__PURE__ */ c(jr, { messages: j }),
|
|
9673
9674
|
/* @__PURE__ */ c(ss, {})
|
|
9674
9675
|
] });
|
|
@@ -9754,7 +9755,7 @@ function s5({
|
|
|
9754
9755
|
};
|
|
9755
9756
|
return typeof Y == "function" ? Y(Xe, J) : (Pe = Y[j]) == null ? void 0 : Pe.call(Y, Xe, J);
|
|
9756
9757
|
};
|
|
9757
|
-
return /* @__PURE__ */ c(Q4, { triggerAction: ne, loading: P, data: x, search: Ee, clear: Te, enableClear:
|
|
9758
|
+
return /* @__PURE__ */ c(Q4, { triggerAction: ne, loading: P, data: x, search: Ee, clear: Te, enableClear: O, enableCreateItem: $, enableExport: B, enableSearch: X, children: tt() });
|
|
9758
9759
|
}
|
|
9759
9760
|
function a5({
|
|
9760
9761
|
cardProps: n,
|
|
@@ -9775,7 +9776,7 @@ function a5({
|
|
|
9775
9776
|
}) {
|
|
9776
9777
|
var z;
|
|
9777
9778
|
const {
|
|
9778
|
-
reset:
|
|
9779
|
+
reset: O,
|
|
9779
9780
|
formState: {
|
|
9780
9781
|
defaultValues: $,
|
|
9781
9782
|
isLoading: U
|
|
@@ -9838,7 +9839,7 @@ function a5({
|
|
|
9838
9839
|
} catch {
|
|
9839
9840
|
}
|
|
9840
9841
|
}, G = () => {
|
|
9841
|
-
|
|
9842
|
+
O($, {
|
|
9842
9843
|
keepDefaultValues: !0
|
|
9843
9844
|
}), Z({
|
|
9844
9845
|
...a,
|
|
@@ -9914,13 +9915,13 @@ function fs({
|
|
|
9914
9915
|
tabsContent: w,
|
|
9915
9916
|
tabsHeaderContent: I
|
|
9916
9917
|
}) {
|
|
9917
|
-
return /* @__PURE__ */
|
|
9918
|
+
return /* @__PURE__ */ D(Ir, { style: m == null ? void 0 : m.style, sx: m == null ? void 0 : m.sx, children: [
|
|
9918
9919
|
p,
|
|
9919
9920
|
d,
|
|
9920
9921
|
i,
|
|
9921
9922
|
I,
|
|
9922
9923
|
y,
|
|
9923
|
-
/* @__PURE__ */
|
|
9924
|
+
/* @__PURE__ */ D(wn.Scroll, { autoHide: !1, children: [
|
|
9924
9925
|
a,
|
|
9925
9926
|
w,
|
|
9926
9927
|
s,
|
|
@@ -10027,7 +10028,7 @@ function f5({
|
|
|
10027
10028
|
newItemParamValue: y,
|
|
10028
10029
|
uniqueIdParamName: w
|
|
10029
10030
|
} = qt(), I = Gl(), [S, k, {
|
|
10030
|
-
segmentParamName:
|
|
10031
|
+
segmentParamName: O
|
|
10031
10032
|
}] = Wu({
|
|
10032
10033
|
enableNestedSegments: i,
|
|
10033
10034
|
fallbackSegmentIndex: f,
|
|
@@ -10071,7 +10072,7 @@ function f5({
|
|
|
10071
10072
|
if (a) {
|
|
10072
10073
|
let ge;
|
|
10073
10074
|
s && !i && N && (ge = {
|
|
10074
|
-
[
|
|
10075
|
+
[O]: N
|
|
10075
10076
|
}), U(z, A, ge);
|
|
10076
10077
|
}
|
|
10077
10078
|
d == null || d(z, A);
|
|
@@ -10098,7 +10099,7 @@ function f5({
|
|
|
10098
10099
|
};
|
|
10099
10100
|
return /* @__PURE__ */ c($n, { onActionClick: (z, A) => {
|
|
10100
10101
|
z !== "delete" && (z === "create" ? Z() : G(z, A)), p == null || p(z, A);
|
|
10101
|
-
}, activeSegmentIndex: S, onWrapperLayout: (z) => /* @__PURE__ */
|
|
10102
|
+
}, activeSegmentIndex: S, onWrapperLayout: (z) => /* @__PURE__ */ D(Ge, { children: [
|
|
10102
10103
|
z.pageContent,
|
|
10103
10104
|
z.detailPageContent,
|
|
10104
10105
|
z.autoSearchContent,
|
|
@@ -10128,7 +10129,7 @@ function d5({
|
|
|
10128
10129
|
skeletonRows: 5,
|
|
10129
10130
|
size: "small",
|
|
10130
10131
|
...f
|
|
10131
|
-
}, onClear: () => x({}), onCommands: (w) => /* @__PURE__ */
|
|
10132
|
+
}, onClear: () => x({}), onCommands: (w) => /* @__PURE__ */ D(Ge, { children: [
|
|
10132
10133
|
/* @__PURE__ */ c($n.Commands, { ...w }),
|
|
10133
10134
|
/* @__PURE__ */ c(rx, { badgeContent: y, color: "primary", children: /* @__PURE__ */ c(Xr, { startIcon: /* @__PURE__ */ c(nx, {}), color: "success", onClick: () => o == null ? void 0 : o(p), disabled: !y, children: m("listpage.selection.selectClose") }) })
|
|
10134
10135
|
] }) }) });
|
|
@@ -12074,7 +12075,7 @@ function F9({
|
|
|
12074
12075
|
color: d.palette.text.primary
|
|
12075
12076
|
}
|
|
12076
12077
|
};
|
|
12077
|
-
return /* @__PURE__ */
|
|
12078
|
+
return /* @__PURE__ */ D(fx, { theme: d, children: [
|
|
12078
12079
|
/* @__PURE__ */ c(i3, { toastOptions: m, position: "bottom-right" }),
|
|
12079
12080
|
/* @__PURE__ */ c(ux, {}),
|
|
12080
12081
|
s
|
|
@@ -12270,14 +12271,14 @@ function Dw({
|
|
|
12270
12271
|
textAlign: "left"
|
|
12271
12272
|
}, children: w.name }) }, w.key)) });
|
|
12272
12273
|
if (p) {
|
|
12273
|
-
const w = a || /* @__PURE__ */
|
|
12274
|
+
const w = a || /* @__PURE__ */ D(Ge, { children: [
|
|
12274
12275
|
/* @__PURE__ */ c(Rm, { sx: {
|
|
12275
12276
|
color: "text.primary",
|
|
12276
12277
|
fontSize: 16
|
|
12277
12278
|
} }),
|
|
12278
12279
|
/* @__PURE__ */ c(Km, { variant: "body2", fontWeight: 500, children: f("more") })
|
|
12279
12280
|
] });
|
|
12280
|
-
return /* @__PURE__ */
|
|
12281
|
+
return /* @__PURE__ */ D(Pl, { children: [
|
|
12281
12282
|
/* @__PURE__ */ c(mn, { onClick: () => m(!0), sx: {
|
|
12282
12283
|
gap: 0.5,
|
|
12283
12284
|
cursor: "pointer",
|