react-crud-mui 0.2.88 → 0.2.89
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/coreui.js +88 -88
- package/package.json +1 -1
package/dist/coreui.js
CHANGED
|
@@ -1660,7 +1660,7 @@ function no(n) {
|
|
|
1660
1660
|
...M == null ? void 0 : M.next
|
|
1661
1661
|
},
|
|
1662
1662
|
"next"
|
|
1663
|
-
),
|
|
1663
|
+
), q = () => {
|
|
1664
1664
|
const se = Object.keys(_ ?? {}).map((oe) => {
|
|
1665
1665
|
if (_ != null && _[oe] && Y[oe])
|
|
1666
1666
|
switch (oe) {
|
|
@@ -1729,7 +1729,7 @@ function no(n) {
|
|
|
1729
1729
|
return se.length ? /* @__PURE__ */ c(ho, { options: se }, "more-options") : null;
|
|
1730
1730
|
};
|
|
1731
1731
|
return /* @__PURE__ */ c(Pe, { children: (() => {
|
|
1732
|
-
const se =
|
|
1732
|
+
const se = q();
|
|
1733
1733
|
if (o === "steps") {
|
|
1734
1734
|
const At = Le(), Ht = je(), Re = _e(), Ce = he(z);
|
|
1735
1735
|
return /* @__PURE__ */ O(Pe, { children: [
|
|
@@ -2133,9 +2133,9 @@ function It({
|
|
|
2133
2133
|
tabs: W,
|
|
2134
2134
|
value: He,
|
|
2135
2135
|
onChange: (Le, je) => {
|
|
2136
|
-
const
|
|
2136
|
+
const q = W.findIndex((j) => j.value === je);
|
|
2137
2137
|
D == null || D({
|
|
2138
|
-
selectedTabIndex:
|
|
2138
|
+
selectedTabIndex: q,
|
|
2139
2139
|
selectedTabValue: je
|
|
2140
2140
|
});
|
|
2141
2141
|
},
|
|
@@ -2878,7 +2878,7 @@ io.exports;
|
|
|
2878
2878
|
["partial", V],
|
|
2879
2879
|
["partialRight", z],
|
|
2880
2880
|
["rearg", P]
|
|
2881
|
-
], _e = "[object Arguments]", Le = "[object Array]", je = "[object AsyncFunction]",
|
|
2881
|
+
], _e = "[object Arguments]", Le = "[object Array]", je = "[object AsyncFunction]", q = "[object Boolean]", j = "[object Date]", se = "[object DOMException]", oe = "[object Error]", et = "[object Function]", pt = "[object GeneratorFunction]", fe = "[object Map]", gt = "[object Number]", bt = "[object Null]", lt = "[object Object]", At = "[object Promise]", Ht = "[object Proxy]", Re = "[object RegExp]", Ce = "[object Set]", ee = "[object String]", Me = "[object Symbol]", at = "[object Undefined]", ae = "[object WeakMap]", ge = "[object WeakSet]", De = "[object ArrayBuffer]", Fe = "[object DataView]", rt = "[object Float32Array]", ht = "[object Float64Array]", R = "[object Int8Array]", N = "[object Int16Array]", Q = "[object Int32Array]", Ve = "[object Uint8Array]", qe = "[object Uint8ClampedArray]", wt = "[object Uint16Array]", ct = "[object Uint32Array]", Tt = /\b__p \+= '';/g, Qt = /\b(__p \+=) '' \+/g, $f = /(__e\(.*?\)|\b__t\)) \+\n'';/g, us = /&(?:amp|lt|gt|quot|#39);/g, fs = /[&<>"']/g, Bf = RegExp(us.source), Wf = RegExp(fs.source), Nf = /<%-([\s\S]+?)%>/g, Hf = /<%([\s\S]+?)%>/g, ds = /<%=([\s\S]+?)%>/g, Uf = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Pf = /^\w*$/, Gf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, yo = /[\\^$.*+?()[\]{}|]/g, Vf = RegExp(yo.source), wo = /^\s+/, Zf = /\s/, Xf = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Jf = /\{\n\/\* \[wrapped with (.+)\] \*/, Kf = /,? & /, Yf = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, qf = /[()=,{}\[\]\/\s]/, Qf = /\\(\\)?/g, jf = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ps = /\w*$/, ed = /^[-+]0x[0-9a-f]+$/i, td = /^0b[01]+$/i, nd = /^\[object .+?Constructor\]$/, rd = /^0o[0-7]+$/i, id = /^(?:0|[1-9]\d*)$/, od = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ti = /($^)/, ld = /['\n\r\u2028\u2029\\]/g, ni = "\\ud800-\\udfff", sd = "\\u0300-\\u036f", ad = "\\ufe20-\\ufe2f", cd = "\\u20d0-\\u20ff", gs = sd + ad + cd, hs = "\\u2700-\\u27bf", ms = "a-z\\xdf-\\xf6\\xf8-\\xff", ud = "\\xac\\xb1\\xd7\\xf7", fd = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", dd = "\\u2000-\\u206f", pd = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", xs = "A-Z\\xc0-\\xd6\\xd8-\\xde", vs = "\\ufe0e\\ufe0f", bs = ud + fd + dd + pd, So = "['’]", gd = "[" + ni + "]", ys = "[" + bs + "]", ri = "[" + gs + "]", ws = "\\d+", hd = "[" + hs + "]", Ss = "[" + ms + "]", _s = "[^" + ni + bs + ws + hs + ms + xs + "]", _o = "\\ud83c[\\udffb-\\udfff]", md = "(?:" + ri + "|" + _o + ")", Cs = "[^" + ni + "]", Co = "(?:\\ud83c[\\udde6-\\uddff]){2}", Io = "[\\ud800-\\udbff][\\udc00-\\udfff]", ar = "[" + xs + "]", Is = "\\u200d", ks = "(?:" + Ss + "|" + _s + ")", xd = "(?:" + ar + "|" + _s + ")", Ms = "(?:" + So + "(?:d|ll|m|re|s|t|ve))?", As = "(?:" + So + "(?:D|LL|M|RE|S|T|VE))?", Ts = md + "?", Ls = "[" + vs + "]?", vd = "(?:" + Is + "(?:" + [Cs, Co, Io].join("|") + ")" + Ls + Ts + ")*", bd = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", yd = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Es = Ls + Ts + vd, wd = "(?:" + [hd, Co, Io].join("|") + ")" + Es, Sd = "(?:" + [Cs + ri + "?", ri, Co, Io, gd].join("|") + ")", _d = RegExp(So, "g"), Cd = RegExp(ri, "g"), ko = RegExp(_o + "(?=" + _o + ")|" + Sd + Es, "g"), Id = RegExp([
|
|
2882
2882
|
ar + "?" + Ss + "+" + Ms + "(?=" + [ys, ar, "$"].join("|") + ")",
|
|
2883
2883
|
xd + "+" + As + "(?=" + [ys, ar + ks, "$"].join("|") + ")",
|
|
2884
2884
|
ar + "?" + ks + "+" + Ms,
|
|
@@ -2919,9 +2919,9 @@ io.exports;
|
|
|
2919
2919
|
"parseInt",
|
|
2920
2920
|
"setTimeout"
|
|
2921
2921
|
], Td = -1, Qe = {};
|
|
2922
|
-
Qe[rt] = Qe[ht] = Qe[R] = Qe[N] = Qe[
|
|
2922
|
+
Qe[rt] = Qe[ht] = Qe[R] = Qe[N] = Qe[Q] = Qe[Ve] = Qe[qe] = Qe[wt] = Qe[ct] = !0, Qe[_e] = Qe[Le] = Qe[De] = Qe[q] = Qe[Fe] = Qe[j] = Qe[oe] = Qe[et] = Qe[fe] = Qe[gt] = Qe[lt] = Qe[Re] = Qe[Ce] = Qe[ee] = Qe[ae] = !1;
|
|
2923
2923
|
var Je = {};
|
|
2924
|
-
Je[_e] = Je[Le] = Je[De] = Je[Fe] = Je[
|
|
2924
|
+
Je[_e] = Je[Le] = Je[De] = Je[Fe] = Je[q] = Je[j] = Je[rt] = Je[ht] = Je[R] = Je[N] = Je[Q] = Je[fe] = Je[gt] = Je[lt] = Je[Re] = Je[Ce] = Je[ee] = Je[Me] = Je[Ve] = Je[qe] = Je[wt] = Je[ct] = !0, Je[oe] = Je[et] = Je[ae] = !1;
|
|
2925
2925
|
var Ld = {
|
|
2926
2926
|
// Latin-1 Supplement block.
|
|
2927
2927
|
À: "A",
|
|
@@ -4716,7 +4716,7 @@ io.exports;
|
|
|
4716
4716
|
e = e.buffer, t = t.buffer;
|
|
4717
4717
|
case De:
|
|
4718
4718
|
return !(e.byteLength != t.byteLength || !h(new di(e), new di(t)));
|
|
4719
|
-
case
|
|
4719
|
+
case q:
|
|
4720
4720
|
case j:
|
|
4721
4721
|
case gt:
|
|
4722
4722
|
return gn(+e, +t);
|
|
@@ -4899,7 +4899,7 @@ io.exports;
|
|
|
4899
4899
|
switch (t) {
|
|
4900
4900
|
case De:
|
|
4901
4901
|
return ol(e);
|
|
4902
|
-
case
|
|
4902
|
+
case q:
|
|
4903
4903
|
case j:
|
|
4904
4904
|
return new l(+e);
|
|
4905
4905
|
case Fe:
|
|
@@ -4908,7 +4908,7 @@ io.exports;
|
|
|
4908
4908
|
case ht:
|
|
4909
4909
|
case R:
|
|
4910
4910
|
case N:
|
|
4911
|
-
case
|
|
4911
|
+
case Q:
|
|
4912
4912
|
case Ve:
|
|
4913
4913
|
case qe:
|
|
4914
4914
|
case wt:
|
|
@@ -5749,7 +5749,7 @@ io.exports;
|
|
|
5749
5749
|
return st(e) && $t(e);
|
|
5750
5750
|
}
|
|
5751
5751
|
function nh(e) {
|
|
5752
|
-
return e === !0 || e === !1 || st(e) && Lt(e) ==
|
|
5752
|
+
return e === !0 || e === !1 || st(e) && Lt(e) == q;
|
|
5753
5753
|
}
|
|
5754
5754
|
var Xn = m0 || El, rh = Ds ? Pt(Ds) : up;
|
|
5755
5755
|
function ih(e) {
|
|
@@ -6740,7 +6740,7 @@ function qy({
|
|
|
6740
6740
|
successPanelVisible: _e,
|
|
6741
6741
|
successPanelProps: Le,
|
|
6742
6742
|
onSuccessPanel: je,
|
|
6743
|
-
tabExtraContent:
|
|
6743
|
+
tabExtraContent: q,
|
|
6744
6744
|
...j
|
|
6745
6745
|
}) {
|
|
6746
6746
|
const {
|
|
@@ -6859,8 +6859,8 @@ function qy({
|
|
|
6859
6859
|
};
|
|
6860
6860
|
if (z)
|
|
6861
6861
|
return z(N);
|
|
6862
|
-
const
|
|
6863
|
-
return /* @__PURE__ */ c(no, { ...N, children:
|
|
6862
|
+
const Q = te == null ? void 0 : te();
|
|
6863
|
+
return /* @__PURE__ */ c(no, { ...N, children: Q });
|
|
6864
6864
|
}, Re = (ae) => {
|
|
6865
6865
|
if (!ot)
|
|
6866
6866
|
return null;
|
|
@@ -6878,8 +6878,8 @@ function qy({
|
|
|
6878
6878
|
schema: ht,
|
|
6879
6879
|
validationOptions: R,
|
|
6880
6880
|
defaultValues: N,
|
|
6881
|
-
key:
|
|
6882
|
-
}) => rt ? /* @__PURE__ */ c(Jy, { name: rt, schema: ht, defaultValues: N, validationOptions: R, children: Fe },
|
|
6881
|
+
key: Q
|
|
6882
|
+
}) => rt ? /* @__PURE__ */ c(Jy, { name: rt, schema: ht, defaultValues: N, validationOptions: R, children: Fe }, Q) : Fe;
|
|
6883
6883
|
return /* @__PURE__ */ O(Pe, { children: [
|
|
6884
6884
|
ge,
|
|
6885
6885
|
U.map((Fe, rt) => {
|
|
@@ -6903,7 +6903,7 @@ function qy({
|
|
|
6903
6903
|
};
|
|
6904
6904
|
return je ? je(B.getValues(), ge) : /* @__PURE__ */ c(Yy, { title: se("savedsuccesfully"), ...ae });
|
|
6905
6905
|
}, at = (ae, ge, De) => {
|
|
6906
|
-
const Fe = !!(U != null && U.length), rt = typeof
|
|
6906
|
+
const Fe = !!(U != null && U.length), rt = typeof q == "function" ? q(m) : q;
|
|
6907
6907
|
return /* @__PURE__ */ O(It, { title: se(he === "fetch" ? "edit" : he === "view" ? "browse" : "newitem"), tabsPosition: "in-subrow", ...j, tabExtraContent: rt, disabled: x || Oe || X || he === "view", commandsContent: ge, commandsPosition: Fe ? "bottom-between" : s, onHeader: Re, onClose: V, loading: X, alertsContent: De, onTabChanged: ({
|
|
6908
6908
|
selectedTabIndex: ht
|
|
6909
6909
|
}) => ce == null ? void 0 : ce(ht), selectedTabIndex: n, children: [
|
|
@@ -7422,11 +7422,11 @@ function Kn({
|
|
|
7422
7422
|
}) {
|
|
7423
7423
|
const {
|
|
7424
7424
|
t: He
|
|
7425
|
-
} = Ye(), _e = dt(null), Le = dt(!0), je = Ke(() => [], []),
|
|
7425
|
+
} = Ye(), _e = dt(null), Le = dt(!0), je = Ke(() => [], []), q = xe((R) => Dn(R, Se), [Se]), j = uu(), {
|
|
7426
7426
|
isLoading: se,
|
|
7427
7427
|
state: oe
|
|
7428
|
-
} = Gu(!!_, f), et = Ke(() => a.filter((N) => !lr(N.hidden)).reduce((N,
|
|
7429
|
-
[
|
|
7428
|
+
} = Gu(!!_, f), et = Ke(() => a.filter((N) => !lr(N.hidden)).reduce((N, Q) => ({
|
|
7429
|
+
[Q.id]: !Q.hidden,
|
|
7430
7430
|
...N
|
|
7431
7431
|
}), {}), [a]), pt = Ke(() => {
|
|
7432
7432
|
let R = a;
|
|
@@ -7448,10 +7448,10 @@ function Kn({
|
|
|
7448
7448
|
cell: ({
|
|
7449
7449
|
row: N
|
|
7450
7450
|
}) => {
|
|
7451
|
-
const
|
|
7452
|
-
return N.getCanExpand() ? /* @__PURE__ */ c(i4, { onClick: N.getToggleExpandedHandler(), expand:
|
|
7451
|
+
const Q = N.getIsExpanded();
|
|
7452
|
+
return N.getCanExpand() ? /* @__PURE__ */ c(i4, { onClick: N.getToggleExpandedHandler(), expand: Q, sx: {
|
|
7453
7453
|
p: 1
|
|
7454
|
-
}, children:
|
|
7454
|
+
}, children: Q ? /* @__PURE__ */ c(po, { color: "disabled", sx: {
|
|
7455
7455
|
color: "primary.main"
|
|
7456
7456
|
} }) : /* @__PURE__ */ c(Kr, { sx: {
|
|
7457
7457
|
color: "grey.400"
|
|
@@ -7466,7 +7466,7 @@ function Kn({
|
|
|
7466
7466
|
columnVisibility: et
|
|
7467
7467
|
},
|
|
7468
7468
|
data: s ?? je,
|
|
7469
|
-
getRowId:
|
|
7469
|
+
getRowId: q,
|
|
7470
7470
|
// Row models
|
|
7471
7471
|
getCoreRowModel: C3(),
|
|
7472
7472
|
// Row tree mode (sub rows)
|
|
@@ -7507,13 +7507,13 @@ function Kn({
|
|
|
7507
7507
|
x && gt(N), V == null || V(R, N);
|
|
7508
7508
|
}, lt = (R, N) => {
|
|
7509
7509
|
var Ve, qe, wt;
|
|
7510
|
-
const
|
|
7510
|
+
const Q = (Ve = _e.current) == null ? void 0 : Ve.children.namedItem(N.id);
|
|
7511
7511
|
switch (R.code) {
|
|
7512
7512
|
case "ArrowUp":
|
|
7513
|
-
(qe =
|
|
7513
|
+
(qe = Q == null ? void 0 : Q.previousElementSibling) == null || qe.focus(), R.stopPropagation();
|
|
7514
7514
|
break;
|
|
7515
7515
|
case "ArrowDown":
|
|
7516
|
-
(wt =
|
|
7516
|
+
(wt = Q == null ? void 0 : Q.nextElementSibling) == null || wt.focus(), R.stopPropagation();
|
|
7517
7517
|
break;
|
|
7518
7518
|
case "Space":
|
|
7519
7519
|
gt(N), R.stopPropagation();
|
|
@@ -7523,7 +7523,7 @@ function Kn({
|
|
|
7523
7523
|
break;
|
|
7524
7524
|
}
|
|
7525
7525
|
}, At = (R, N) => {
|
|
7526
|
-
const
|
|
7526
|
+
const Q = /* @__PURE__ */ O(jc, { gap: 1, sx: {
|
|
7527
7527
|
textAlign: "center"
|
|
7528
7528
|
}, children: [
|
|
7529
7529
|
R.column.icon,
|
|
@@ -7545,11 +7545,11 @@ function Kn({
|
|
|
7545
7545
|
"&.Mui-active, &.MuiTableSortLabel-root >.MuiTableSortLabel-icon": {
|
|
7546
7546
|
color: Tt ? "primary.main" : void 0
|
|
7547
7547
|
}
|
|
7548
|
-
}, children:
|
|
7548
|
+
}, children: Q }) : Q }, R.id);
|
|
7549
7549
|
}, Ht = () => {
|
|
7550
7550
|
const R = fe.getHeaderGroups(), N = R.length > 1;
|
|
7551
|
-
return /* @__PURE__ */ c(O3, { children: R.map((
|
|
7552
|
-
const Ve = N && R.length - 1 ===
|
|
7551
|
+
return /* @__PURE__ */ c(O3, { children: R.map((Q) => {
|
|
7552
|
+
const Ve = N && R.length - 1 === Q.depth;
|
|
7553
7553
|
return /* @__PURE__ */ c(or, { sx: {
|
|
7554
7554
|
"& .MuiTableCell-root": {
|
|
7555
7555
|
borderBottom: N && !Ve ? "1px solid" : "none",
|
|
@@ -7560,11 +7560,11 @@ function Kn({
|
|
|
7560
7560
|
}
|
|
7561
7561
|
},
|
|
7562
7562
|
...I
|
|
7563
|
-
}, children:
|
|
7563
|
+
}, children: Q.headers.map((qe) => At(qe, Ve)) }, Q.id);
|
|
7564
7564
|
}) });
|
|
7565
7565
|
}, Re = (R) => {
|
|
7566
7566
|
let N = Rl(R.column.columnDef.cell, R.getContext());
|
|
7567
|
-
const
|
|
7567
|
+
const Q = s4(R.column.id), Ve = R.row.depth > 0 && R.column.getIndex() === 1, qe = R.column.getCanSort() && !!R.column.getIsSorted(), wt = fe.options.enableColumnPinning ? iu(R.column) : null, ct = R.column.columnDef.ellipsis, Tt = $ == null ? void 0 : $(R, fe);
|
|
7568
7568
|
if (R.column.columnDef.link) {
|
|
7569
7569
|
const Qt = R.column.columnDef.link(R.row);
|
|
7570
7570
|
Qt && (N = /* @__PURE__ */ c(Ym, { to: Qt, children: N }));
|
|
@@ -7579,7 +7579,7 @@ function Kn({
|
|
|
7579
7579
|
N = /* @__PURE__ */ c(Ct, { justifyContent: "flex-end", children: N });
|
|
7580
7580
|
break;
|
|
7581
7581
|
}
|
|
7582
|
-
return /* @__PURE__ */ c(_r, { title: R.column.title || (ct ? R.getValue() : void 0), size:
|
|
7582
|
+
return /* @__PURE__ */ c(_r, { title: R.column.title || (ct ? R.getValue() : void 0), size: Q ? "small" : ce, style: {
|
|
7583
7583
|
...wt
|
|
7584
7584
|
}, ellipsis: ct, ...Tt, sx: {
|
|
7585
7585
|
backgroundColor: qe ? Te(j) ? $e(j.palette.primary.main, 0.04) : $e(j.palette.primary.main, 0.07) : void 0,
|
|
@@ -7602,9 +7602,9 @@ function Kn({
|
|
|
7602
7602
|
return /* @__PURE__ */ c(or, { children: /* @__PURE__ */ c(Ki, { colSpan: R == null ? void 0 : R.length, children: /* @__PURE__ */ c(gf, { emptyText: m ?? He("nodatafound"), showEmptyImage: we, sx: {
|
|
7603
7603
|
py: 2
|
|
7604
7604
|
} }) }) });
|
|
7605
|
-
}, ee = (R, N,
|
|
7605
|
+
}, ee = (R, N, Q) => {
|
|
7606
7606
|
const Ve = N.getVisibleCells();
|
|
7607
|
-
return /* @__PURE__ */ c(Wl, { className: "description-row", sx:
|
|
7607
|
+
return /* @__PURE__ */ c(Wl, { className: "description-row", sx: Q, children: /* @__PURE__ */ c(_r, { colSpan: Ve == null ? void 0 : Ve.length, title: to(R), size: ce, ellipsis: !0, sx: {
|
|
7608
7608
|
pt: 0
|
|
7609
7609
|
}, children: /* @__PURE__ */ c(fn, { color: "text.secondary", children: R }) }) }, `description-${N.id}`);
|
|
7610
7610
|
}, Me = () => {
|
|
@@ -7620,19 +7620,19 @@ function Kn({
|
|
|
7620
7620
|
py: 2,
|
|
7621
7621
|
textAlign: "center"
|
|
7622
7622
|
}, colSpan: N == null ? void 0 : N.length, children: R }) }, "new-row");
|
|
7623
|
-
}, at = () => fe.getRowModel().rows.map((
|
|
7623
|
+
}, at = () => fe.getRowModel().rows.map((Q) => {
|
|
7624
7624
|
let Ve;
|
|
7625
|
-
g && (Ve = typeof g == "function" ? g(
|
|
7626
|
-
const qe = X &&
|
|
7625
|
+
g && (Ve = typeof g == "function" ? g(Q) : Dn(Q.original, g));
|
|
7626
|
+
const qe = X && Q.getIsExpanded(), wt = Q.getIsSelected(), ct = A == null ? void 0 : A(Q, fe);
|
|
7627
7627
|
return /* @__PURE__ */ O(Hl, { children: [
|
|
7628
7628
|
/* @__PURE__ */ ao(
|
|
7629
7629
|
Wl,
|
|
7630
7630
|
{
|
|
7631
7631
|
bordered: !Ve,
|
|
7632
7632
|
indicatorColor: wt ? j.palette.primary.main : void 0,
|
|
7633
|
-
bgColor: wt ? `${$e(j.palette.primary.main, 0.3)} !important` : n &&
|
|
7633
|
+
bgColor: wt ? `${$e(j.palette.primary.main, 0.3)} !important` : n && Q.index % 2 ? j.palette.action.hover : void 0,
|
|
7634
7634
|
onClick: (Tt) => {
|
|
7635
|
-
bt(Tt,
|
|
7635
|
+
bt(Tt, Q);
|
|
7636
7636
|
},
|
|
7637
7637
|
...ct,
|
|
7638
7638
|
sx: {
|
|
@@ -7642,22 +7642,22 @@ function Kn({
|
|
|
7642
7642
|
wordWrap: "break-word",
|
|
7643
7643
|
wordBreak: "break-all"
|
|
7644
7644
|
},
|
|
7645
|
-
id:
|
|
7645
|
+
id: Q.id,
|
|
7646
7646
|
tabIndex: 0,
|
|
7647
7647
|
onKeyDown: (Tt) => {
|
|
7648
7648
|
var Qt;
|
|
7649
|
-
lt(Tt,
|
|
7649
|
+
lt(Tt, Q), (Qt = ct == null ? void 0 : ct.onKeyDown) == null || Qt.call(ct, Tt);
|
|
7650
7650
|
},
|
|
7651
|
-
key:
|
|
7651
|
+
key: Q.id
|
|
7652
7652
|
},
|
|
7653
|
-
|
|
7653
|
+
Q.getVisibleCells().map(Re)
|
|
7654
7654
|
),
|
|
7655
|
-
Ve ? ee(Ve,
|
|
7655
|
+
Ve ? ee(Ve, Q, {
|
|
7656
7656
|
...Ee,
|
|
7657
7657
|
...ct == null ? void 0 : ct.sx
|
|
7658
7658
|
}) : null,
|
|
7659
|
-
qe && Fe(
|
|
7660
|
-
] },
|
|
7659
|
+
qe && Fe(Q)
|
|
7660
|
+
] }, Q.id);
|
|
7661
7661
|
}), ae = () => /* @__PURE__ */ O(F3, { ref: _e, children: [
|
|
7662
7662
|
at(),
|
|
7663
7663
|
ht(Oe),
|
|
@@ -7669,13 +7669,13 @@ function Kn({
|
|
|
7669
7669
|
const {
|
|
7670
7670
|
pageSize: R,
|
|
7671
7671
|
pageIndex: N
|
|
7672
|
-
} = fe.getState().pagination,
|
|
7672
|
+
} = fe.getState().pagination, Q = /* @__PURE__ */ c(D3, { component: "div", rowsPerPageOptions: o4, page: N, rowsPerPage: R, count: fe.getRowCount(), onPageChange: (Ve, qe) => fe.setPageIndex(qe), onRowsPerPageChange: (Ve) => fe.setPageSize(+Ve.target.value || 5), ...W });
|
|
7673
7673
|
return W != null && W.extraContent ? /* @__PURE__ */ O(Yr, { sx: {
|
|
7674
7674
|
pl: 1
|
|
7675
7675
|
}, children: [
|
|
7676
7676
|
W.extraContent,
|
|
7677
|
-
|
|
7678
|
-
] }) :
|
|
7677
|
+
Q
|
|
7678
|
+
] }) : Q;
|
|
7679
7679
|
}, De = () => /* @__PURE__ */ c(A3, { open: !!se && !Le.current, sx: {
|
|
7680
7680
|
position: "absolute",
|
|
7681
7681
|
zIndex: 2
|
|
@@ -7684,22 +7684,22 @@ function Kn({
|
|
|
7684
7684
|
} }) }), Fe = (R) => {
|
|
7685
7685
|
const N = X == null ? void 0 : X({
|
|
7686
7686
|
row: R
|
|
7687
|
-
}),
|
|
7687
|
+
}), Q = R.getVisibleCells();
|
|
7688
7688
|
return /* @__PURE__ */ c(or, { children: /* @__PURE__ */ c(Ki, { sx: {
|
|
7689
7689
|
py: "1rem",
|
|
7690
7690
|
paddingLeft: 7,
|
|
7691
7691
|
backgroundColor: $e(j.palette.primary.main, 0.05)
|
|
7692
|
-
}, colSpan:
|
|
7692
|
+
}, colSpan: Q == null ? void 0 : Q.length, children: N }) }, `sub-row-${R.id}`);
|
|
7693
7693
|
}, rt = () => Y ? /* @__PURE__ */ c(R3, { children: fe.getFooterGroups().map((R) => /* @__PURE__ */ c(or, { sx: {
|
|
7694
7694
|
backgroundColor: $e(j.palette.primary.main, 0.05)
|
|
7695
7695
|
}, children: R.headers.map((N) => {
|
|
7696
|
-
const
|
|
7697
|
-
return /* @__PURE__ */ c(_r, { size: ce, colSpan: N.colSpan, ...
|
|
7696
|
+
const Q = G == null ? void 0 : G(N, fe);
|
|
7697
|
+
return /* @__PURE__ */ c(_r, { size: ce, colSpan: N.colSpan, ...Q, children: N.isPlaceholder ? null : Rl(N.column.columnDef.footer, N.getContext()) }, N.id);
|
|
7698
7698
|
}) }, R.id)) }) : null, ht = (R) => {
|
|
7699
7699
|
if (!w || !_ || !Le.current)
|
|
7700
7700
|
return null;
|
|
7701
7701
|
const N = fe.getVisibleFlatColumns();
|
|
7702
|
-
return [...Array(R)].map((
|
|
7702
|
+
return [...Array(R)].map((Q, Ve) => /* @__PURE__ */ c(or, { children: N.map((qe, wt) => /* @__PURE__ */ c(_r, { scope: "row", children: /* @__PURE__ */ c(L3, { animation: "wave", variant: "text" }) }, `skeloton-${wt}`)) }, Ve));
|
|
7703
7703
|
};
|
|
7704
7704
|
return /* @__PURE__ */ O(Pe, { children: [
|
|
7705
7705
|
/* @__PURE__ */ O(xo, { autoHide: !1, forceVisible: !0, ...be, children: [
|
|
@@ -7831,7 +7831,7 @@ function as({
|
|
|
7831
7831
|
} = Qr(), Le = _e === "all" || _e === "selected-fields" && (He == null ? void 0 : He.includes(G)), je = nf({
|
|
7832
7832
|
name: G,
|
|
7833
7833
|
disabled: !Le
|
|
7834
|
-
}), [
|
|
7834
|
+
}), [q, {
|
|
7835
7835
|
onClose: j,
|
|
7836
7836
|
uid: se,
|
|
7837
7837
|
...oe
|
|
@@ -7848,15 +7848,15 @@ function as({
|
|
|
7848
7848
|
const Me = Oe(Ce);
|
|
7849
7849
|
ue(Me);
|
|
7850
7850
|
},
|
|
7851
|
-
onCopy: () =>
|
|
7851
|
+
onCopy: () => q({
|
|
7852
7852
|
data: Ce,
|
|
7853
7853
|
reason: "copy"
|
|
7854
7854
|
}),
|
|
7855
|
-
onView: () =>
|
|
7855
|
+
onView: () => q({
|
|
7856
7856
|
data: Ce,
|
|
7857
7857
|
disabled: !0
|
|
7858
7858
|
}),
|
|
7859
|
-
onEdit: () =>
|
|
7859
|
+
onEdit: () => q({
|
|
7860
7860
|
data: Ce
|
|
7861
7861
|
}),
|
|
7862
7862
|
model: Ce,
|
|
@@ -7873,7 +7873,7 @@ function as({
|
|
|
7873
7873
|
return V ? V(ee) : /* @__PURE__ */ c(qr, { ...ee });
|
|
7874
7874
|
},
|
|
7875
7875
|
...p
|
|
7876
|
-
}], [n, o, i, m, p, ot, Oe,
|
|
7876
|
+
}], [n, o, i, m, p, ot, Oe, q, ue, V, a, s, f]), pt = xe((Re) => {
|
|
7877
7877
|
const {
|
|
7878
7878
|
model: Ce,
|
|
7879
7879
|
reason: ee,
|
|
@@ -7905,13 +7905,13 @@ function as({
|
|
|
7905
7905
|
}, [A == null ? void 0 : A.length, X, te, U, se, Be, be, Y, Se]), fe = xe((Re) => {
|
|
7906
7906
|
const Ce = Be(se), ee = (J == null ? void 0 : J(Re, Ce)) ?? Ce;
|
|
7907
7907
|
ue(ee), j();
|
|
7908
|
-
}, [Be, j, J, ue, se]), gt = () => /* @__PURE__ */ c(Kn, { showEmptyImage: !1, ...P, rowIdField: Bl, data: le, enableSorting: !0, state: {
|
|
7908
|
+
}, [Be, j, J, ue, se]), gt = () => /* @__PURE__ */ c(Kn, { showEmptyImage: !1, onNewRow: () => q(), newRowButtonText: B, ...P, rowIdField: Bl, data: le, enableSorting: !0, state: {
|
|
7909
7909
|
sorting: Ee
|
|
7910
7910
|
}, onSortingChange: ce, getSortedRowModel: _u(), columns: et, onRowClick: (Re, Ce) => {
|
|
7911
7911
|
if (!D || _ || typeof D == "function" && !D(Ce.original))
|
|
7912
7912
|
return;
|
|
7913
7913
|
const ee = typeof D == "string" ? D : "view";
|
|
7914
|
-
|
|
7914
|
+
q({
|
|
7915
7915
|
data: Ce.original,
|
|
7916
7916
|
reason: ee,
|
|
7917
7917
|
disabled: ee === "view"
|
|
@@ -7936,7 +7936,7 @@ function as({
|
|
|
7936
7936
|
return null;
|
|
7937
7937
|
const Re = {
|
|
7938
7938
|
newItemTitle: B,
|
|
7939
|
-
onCreate: () =>
|
|
7939
|
+
onCreate: () => q(),
|
|
7940
7940
|
onDeleteAll: () => we([]),
|
|
7941
7941
|
enableDeleteAllButton: M,
|
|
7942
7942
|
api: te,
|
|
@@ -7956,8 +7956,8 @@ function as({
|
|
|
7956
7956
|
return b ? b(Me) : /* @__PURE__ */ c(yf, { ...Me });
|
|
7957
7957
|
}, Ht = Ke(() => ({
|
|
7958
7958
|
...te,
|
|
7959
|
-
onOpen:
|
|
7960
|
-
}), [te,
|
|
7959
|
+
onOpen: q
|
|
7960
|
+
}), [te, q]);
|
|
7961
7961
|
return /* @__PURE__ */ c(Sf.Provider, { value: Ht, children: At() });
|
|
7962
7962
|
}
|
|
7963
7963
|
as.Commands = wf;
|
|
@@ -8695,12 +8695,12 @@ function z4({
|
|
|
8695
8695
|
displayTemplate: W && !f ? $ : f,
|
|
8696
8696
|
descriptionTemplate: a
|
|
8697
8697
|
}), Y = Ke(() => {
|
|
8698
|
-
let
|
|
8699
|
-
return G && (
|
|
8698
|
+
let q = A;
|
|
8699
|
+
return G && (q = W ? A == null ? void 0 : A.map((j) => cn.get(j, P)) : cn.get(A, P)), Fu(q);
|
|
8700
8700
|
}, [W, G, A, P]);
|
|
8701
8701
|
vo(() => {
|
|
8702
8702
|
if (i != null && i.length && J) {
|
|
8703
|
-
const
|
|
8703
|
+
const q = typeof J == "function" ? i.find(J) : i[0], j = cn.get(q, P);
|
|
8704
8704
|
j && we({
|
|
8705
8705
|
target: {
|
|
8706
8706
|
value: j
|
|
@@ -8708,22 +8708,22 @@ function z4({
|
|
|
8708
8708
|
}, null);
|
|
8709
8709
|
}
|
|
8710
8710
|
}, [i]);
|
|
8711
|
-
const ue = (
|
|
8712
|
-
if (!
|
|
8711
|
+
const ue = (q) => {
|
|
8712
|
+
if (!q || !q.length)
|
|
8713
8713
|
return {
|
|
8714
8714
|
checked: !1,
|
|
8715
8715
|
indeterminate: !1
|
|
8716
8716
|
};
|
|
8717
|
-
const j =
|
|
8717
|
+
const j = q.reduce((se, oe) => {
|
|
8718
8718
|
const et = cn.get(oe, P);
|
|
8719
8719
|
return (W ? Y == null ? void 0 : Y.includes(et) : Y === et) ? se + 1 : se;
|
|
8720
8720
|
}, 0);
|
|
8721
8721
|
return {
|
|
8722
|
-
checked: j ===
|
|
8723
|
-
indeterminate: j > 0 && j <
|
|
8722
|
+
checked: j === q.length,
|
|
8723
|
+
indeterminate: j > 0 && j < q.length
|
|
8724
8724
|
};
|
|
8725
|
-
}, be = (
|
|
8726
|
-
const se =
|
|
8725
|
+
}, be = (q) => Array.isArray(q) ? q.map(be) : i == null ? void 0 : i.find((j) => cn.get(j, P) === q), we = (q, j) => {
|
|
8726
|
+
const se = q.target.value;
|
|
8727
8727
|
if (G && se) {
|
|
8728
8728
|
const oe = be(se);
|
|
8729
8729
|
_ == null || _({
|
|
@@ -8733,9 +8733,9 @@ function z4({
|
|
|
8733
8733
|
}, j);
|
|
8734
8734
|
return;
|
|
8735
8735
|
}
|
|
8736
|
-
_ == null || _(
|
|
8737
|
-
}, Be = (
|
|
8738
|
-
const j = cn.groupBy(
|
|
8736
|
+
_ == null || _(q, j);
|
|
8737
|
+
}, Be = (q) => {
|
|
8738
|
+
const j = cn.groupBy(q, p);
|
|
8739
8739
|
return Object.keys(j).sort().reduce((se, oe) => {
|
|
8740
8740
|
const et = j[oe];
|
|
8741
8741
|
if (V) {
|
|
@@ -8766,7 +8766,7 @@ function z4({
|
|
|
8766
8766
|
const pt = Oe(et, 3);
|
|
8767
8767
|
return pt && se.push(...pt), se;
|
|
8768
8768
|
}, []);
|
|
8769
|
-
}, Oe = (
|
|
8769
|
+
}, Oe = (q, j) => q == null ? void 0 : q.map((se) => {
|
|
8770
8770
|
const oe = cn.get(se, P), et = te(se), pt = le == null ? void 0 : le(se), fe = M ? cn.get(se, M) : null, gt = W ? Y == null ? void 0 : Y.includes(oe) : Y === oe;
|
|
8771
8771
|
let bt = W ? et : /* @__PURE__ */ O(mt, { width: "100%", height: "100%", sx: {
|
|
8772
8772
|
fontSize: Se === "smaller" ? "smaller" : void 0
|
|
@@ -8791,10 +8791,10 @@ function z4({
|
|
|
8791
8791
|
] })), /* @__PURE__ */ c(lo, { value: oe, sx: {
|
|
8792
8792
|
paddingLeft: j
|
|
8793
8793
|
}, autoFocus: gt, children: bt }, oe);
|
|
8794
|
-
}), he = (
|
|
8795
|
-
if (!
|
|
8794
|
+
}), he = (q) => {
|
|
8795
|
+
if (!q)
|
|
8796
8796
|
return null;
|
|
8797
|
-
const j = G ?
|
|
8797
|
+
const j = G ? q : be(q);
|
|
8798
8798
|
return j ? Array.isArray(j) ? j.map((se) => ce == null ? void 0 : ce(se)).join(", ") : ce == null ? void 0 : ce(j) : null;
|
|
8799
8799
|
}, ot = () => /* @__PURE__ */ O(ku, { ...Ee, readOnly: B, notched: W ? !!(A != null && A.length) : !!A, error: m, multiple: W, ref: X, labelId: `${w}-label`, id: `${w}-select`, label: I, value: Y, title: W && to(he(A)) || "", onChange: we, disabled: s, MenuProps: {
|
|
8800
8800
|
PaperProps: {
|
|
@@ -8829,11 +8829,11 @@ function z4({
|
|
|
8829
8829
|
}, renderValue: lr(A) ? () => null : f || V ? () => he(A) : void 0, children: [
|
|
8830
8830
|
o,
|
|
8831
8831
|
p ? Be(i) : Oe(i)
|
|
8832
|
-
] }), U = () => x ? /* @__PURE__ */ c(Cu, { error: !0, children: x }) : null, He = (
|
|
8832
|
+
] }), U = () => x ? /* @__PURE__ */ c(Cu, { error: !0, children: x }) : null, He = (q, j) => /* @__PURE__ */ O(J3, { fullWidth: !0, ...b, error: !!m, size: "small", children: [
|
|
8833
8833
|
/* @__PURE__ */ c(K3, { shrink: W ? !!(A != null && A.length) : !!A, id: `${w}-label`, sx: {
|
|
8834
8834
|
lineHeight: Se === "smaller" ? 1.4 : void 0
|
|
8835
8835
|
}, children: I }),
|
|
8836
|
-
|
|
8836
|
+
q,
|
|
8837
8837
|
j
|
|
8838
8838
|
] }), _e = ot(), Le = U();
|
|
8839
8839
|
return I ? He(_e, Le) : /* @__PURE__ */ O(Pe, { children: [
|
|
@@ -9540,10 +9540,10 @@ function i5({
|
|
|
9540
9540
|
}) {
|
|
9541
9541
|
const {
|
|
9542
9542
|
t: je
|
|
9543
|
-
} = Ye(),
|
|
9543
|
+
} = Ye(), q = dt(null);
|
|
9544
9544
|
Xe(() => {
|
|
9545
9545
|
var ee;
|
|
9546
|
-
X && ((ee =
|
|
9546
|
+
X && ((ee = q.current) == null || ee.scrollIntoView({
|
|
9547
9547
|
behavior: "smooth",
|
|
9548
9548
|
block: "start",
|
|
9549
9549
|
inline: "nearest"
|
|
@@ -9612,7 +9612,7 @@ function i5({
|
|
|
9612
9612
|
return /* @__PURE__ */ c(Ff, { ...ee, children: Me });
|
|
9613
9613
|
}, lt = () => {
|
|
9614
9614
|
const ee = a ?? [];
|
|
9615
|
-
return X && ee.push(...is(X)), /* @__PURE__ */ O(mn, { ref:
|
|
9615
|
+
return X && ee.push(...is(X)), /* @__PURE__ */ O(mn, { ref: q, children: [
|
|
9616
9616
|
/* @__PURE__ */ c(jr, { messages: ee }),
|
|
9617
9617
|
/* @__PURE__ */ c(os, {})
|
|
9618
9618
|
] });
|