@applica-software-guru/react-admin 1.2.118 → 1.2.120
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/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-buttons/EditInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Provider.d.ts.map +1 -1
- package/dist/components/ra-forms/SimpleForm.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +24 -24
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +52 -12
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +2 -2
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-buttons/CreateInDialogButton.tsx +12 -1
- package/src/components/ra-buttons/EditInDialogButton.jsx +12 -1
- package/src/components/ra-forms/LongForm/Provider.tsx +11 -3
- package/src/components/ra-forms/SimpleForm.tsx +5 -2
package/dist/react-admin.es.js
CHANGED
|
@@ -16000,7 +16000,10 @@ const tL = js(rI, {
|
|
|
16000
16000
|
slot: "Root"
|
|
16001
16001
|
})(({ theme: e, modal: t }) => ({
|
|
16002
16002
|
"& .MuiGrid-root.MuiGrid-container": {
|
|
16003
|
-
paddingBottom: e.spacing(t ?
|
|
16003
|
+
paddingBottom: e.spacing(t ? 0 : 1)
|
|
16004
|
+
},
|
|
16005
|
+
[e.breakpoints.down("sm")]: {
|
|
16006
|
+
paddingBottom: 0
|
|
16004
16007
|
}
|
|
16005
16008
|
})), Zg = ({ title: e, modal: t, content: n, subheader: r, secondary: i, sx: a, ...l }) => {
|
|
16006
16009
|
const u = UM(e), A = Zt();
|
|
@@ -17576,7 +17579,14 @@ const kL = {
|
|
|
17576
17579
|
function Gy(e) {
|
|
17577
17580
|
const t = !!(e.syncWithLocation ?? !0), { rootMatchString: n } = e, { pathname: r } = NI(), [i, a] = DI(ML, we.cloneDeep(kL)), { formRootPath: l, items: u } = i, A = et(() => ({ state: i, dispatch: a }), [i, a]);
|
|
17578
17581
|
return rt(() => {
|
|
17579
|
-
const f = [
|
|
17582
|
+
const f = [
|
|
17583
|
+
"entities/:resource/create/*",
|
|
17584
|
+
":resource/create/*",
|
|
17585
|
+
"entities/:resource/:id/show/*",
|
|
17586
|
+
":resource/:id/show/*",
|
|
17587
|
+
"entities/:resource/:id/*",
|
|
17588
|
+
":resource/:id/*"
|
|
17589
|
+
];
|
|
17580
17590
|
n !== void 0 && f.push(n);
|
|
17581
17591
|
const g = we.chain(f).map((p) => bO(p, r)).reject((p) => p === null).first().value(), C = g == null ? void 0 : g.pathnameBase;
|
|
17582
17592
|
C !== void 0 && C !== l && a({
|
|
@@ -25654,18 +25664,33 @@ const iG = {
|
|
|
25654
25664
|
children: /* @__PURE__ */ h(aE, {})
|
|
25655
25665
|
}
|
|
25656
25666
|
) : /* @__PURE__ */ h(So, { ...C, sx: u, label: n, onClick: S, children: /* @__PURE__ */ h(aE, {}) }),
|
|
25657
|
-
/* @__PURE__ */ h(
|
|
25658
|
-
|
|
25667
|
+
/* @__PURE__ */ h(
|
|
25668
|
+
lu,
|
|
25659
25669
|
{
|
|
25660
|
-
|
|
25661
|
-
|
|
25662
|
-
|
|
25670
|
+
open: p,
|
|
25671
|
+
scroll: "body",
|
|
25672
|
+
sx: {
|
|
25673
|
+
"& .MuiToolbar-root": {
|
|
25674
|
+
position: "initial"
|
|
25675
|
+
}
|
|
25676
|
+
},
|
|
25663
25677
|
onClose: b,
|
|
25664
|
-
|
|
25665
|
-
|
|
25666
|
-
|
|
25678
|
+
fullWidth: e,
|
|
25679
|
+
maxWidth: t,
|
|
25680
|
+
children: /* @__PURE__ */ h(
|
|
25681
|
+
Op,
|
|
25682
|
+
{
|
|
25683
|
+
...C,
|
|
25684
|
+
redirect: i,
|
|
25685
|
+
record: r,
|
|
25686
|
+
onClose: b,
|
|
25687
|
+
onSubmit: A,
|
|
25688
|
+
onSuccess: f,
|
|
25689
|
+
onError: g
|
|
25690
|
+
}
|
|
25691
|
+
)
|
|
25667
25692
|
}
|
|
25668
|
-
)
|
|
25693
|
+
)
|
|
25669
25694
|
] });
|
|
25670
25695
|
};
|
|
25671
25696
|
f1.defaultProps = {
|
|
@@ -25731,7 +25756,22 @@ const p1 = ({ fullWidth: e, maxWidth: t, label: n, ...r }) => {
|
|
|
25731
25756
|
const [i, a] = tt(!1), { openDialog: l, closeDialog: u } = ma(), A = zn(), f = je(() => l(A, () => a(!0)), [l, A]), g = je(() => u(A, () => a(!1)), [u, A]);
|
|
25732
25757
|
return /* @__PURE__ */ Z(Nn, { children: [
|
|
25733
25758
|
/* @__PURE__ */ h(So, { label: n, onClick: f, children: /* @__PURE__ */ h(WS, {}) }),
|
|
25734
|
-
/* @__PURE__ */ h(
|
|
25759
|
+
/* @__PURE__ */ h(
|
|
25760
|
+
lu,
|
|
25761
|
+
{
|
|
25762
|
+
open: i,
|
|
25763
|
+
scroll: "body",
|
|
25764
|
+
sx: {
|
|
25765
|
+
"& .MuiToolbar-root": {
|
|
25766
|
+
position: "initial"
|
|
25767
|
+
}
|
|
25768
|
+
},
|
|
25769
|
+
onClose: g,
|
|
25770
|
+
fullWidth: e,
|
|
25771
|
+
maxWidth: t,
|
|
25772
|
+
children: /* @__PURE__ */ h(g1, { ...r, onClose: g })
|
|
25773
|
+
}
|
|
25774
|
+
)
|
|
25735
25775
|
] });
|
|
25736
25776
|
};
|
|
25737
25777
|
p1.defaultProps = {
|