@applica-software-guru/react-admin 1.4.191 → 1.4.192
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 +2 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-buttons/EditInDialogButton.d.ts +2 -1
- package/dist/components/ra-buttons/EditInDialogButton.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +4 -4
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +38 -26
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-buttons/CreateInDialogButton.tsx +11 -2
- package/src/components/ra-buttons/EditInDialogButton.tsx +7 -2
package/dist/react-admin.es.js
CHANGED
|
@@ -28414,45 +28414,53 @@ function vne({
|
|
|
28414
28414
|
scrollToTop: a = !0,
|
|
28415
28415
|
className: s,
|
|
28416
28416
|
sx: c,
|
|
28417
|
-
|
|
28418
|
-
|
|
28419
|
-
|
|
28420
|
-
|
|
28421
|
-
|
|
28417
|
+
style: u,
|
|
28418
|
+
fab: A = !0,
|
|
28419
|
+
onSubmit: f,
|
|
28420
|
+
onSuccess: p,
|
|
28421
|
+
onError: C,
|
|
28422
|
+
...m
|
|
28422
28423
|
}) {
|
|
28423
|
-
const [
|
|
28424
|
+
const [I, B] = je(!1), v = Mr(), w = Zn(), { openDialog: P, closeDialog: y } = ns(), S = Se(() => P(w, () => B(!0)), [P, w]), T = Se(() => y(w, () => B(!1)), [y, w]), D = A && Ks((M) => M.breakpoints.down("md"));
|
|
28424
28425
|
return /* @__PURE__ */ $(rn, { children: [
|
|
28425
|
-
|
|
28426
|
+
D ? /* @__PURE__ */ h(
|
|
28426
28427
|
i$,
|
|
28427
28428
|
{
|
|
28428
|
-
...
|
|
28429
|
+
...m,
|
|
28429
28430
|
state: o$[String(a)],
|
|
28430
28431
|
color: "primary",
|
|
28431
28432
|
className: Xe(LB.floating, s),
|
|
28432
|
-
"aria-label": n &&
|
|
28433
|
-
onClick:
|
|
28433
|
+
"aria-label": n && v(n),
|
|
28434
|
+
onClick: S,
|
|
28434
28435
|
children: /* @__PURE__ */ h(lf, {})
|
|
28435
28436
|
}
|
|
28436
|
-
) : /* @__PURE__ */ h(ti, { ...
|
|
28437
|
+
) : /* @__PURE__ */ h(ti, { ...m, sx: c, label: n, onClick: S, style: u, children: /* @__PURE__ */ h(lf, {}) }),
|
|
28437
28438
|
/* @__PURE__ */ h(
|
|
28438
28439
|
eA,
|
|
28439
28440
|
{
|
|
28440
|
-
open:
|
|
28441
|
+
open: I,
|
|
28441
28442
|
scroll: "body",
|
|
28442
|
-
sx: {
|
|
28443
|
-
|
|
28443
|
+
sx: {
|
|
28444
|
+
"& .MuiToolbar-root": {
|
|
28445
|
+
position: "initial",
|
|
28446
|
+
paddingLeft: 2.5,
|
|
28447
|
+
paddingRight: 2.5,
|
|
28448
|
+
paddingBottom: 2.5
|
|
28449
|
+
}
|
|
28450
|
+
},
|
|
28451
|
+
onClose: T,
|
|
28444
28452
|
fullWidth: e,
|
|
28445
28453
|
maxWidth: t,
|
|
28446
28454
|
children: /* @__PURE__ */ h(
|
|
28447
28455
|
r$,
|
|
28448
28456
|
{
|
|
28449
|
-
...
|
|
28457
|
+
...m,
|
|
28450
28458
|
redirect: o,
|
|
28451
28459
|
record: r,
|
|
28452
|
-
onClose:
|
|
28453
|
-
onSubmit:
|
|
28454
|
-
onSuccess:
|
|
28455
|
-
onError:
|
|
28460
|
+
onClose: T,
|
|
28461
|
+
onSubmit: f,
|
|
28462
|
+
onSuccess: p,
|
|
28463
|
+
onError: C
|
|
28456
28464
|
}
|
|
28457
28465
|
)
|
|
28458
28466
|
}
|
|
@@ -28497,25 +28505,29 @@ function bne({
|
|
|
28497
28505
|
fullWidth: e = !0,
|
|
28498
28506
|
maxWidth: t = "md",
|
|
28499
28507
|
label: n = "ra.action.edit",
|
|
28500
|
-
|
|
28508
|
+
style: r,
|
|
28509
|
+
...o
|
|
28501
28510
|
}) {
|
|
28502
|
-
const [
|
|
28511
|
+
const [a, s] = je(!1), { openDialog: c, closeDialog: u } = ns(), A = Zn(), f = Se(() => c(A, () => s(!0)), [c, A]), p = Se(() => u(A, () => s(!1)), [u, A]);
|
|
28503
28512
|
return /* @__PURE__ */ $(rn, { children: [
|
|
28504
|
-
/* @__PURE__ */ h(ti, { label: n, onClick:
|
|
28513
|
+
/* @__PURE__ */ h(ti, { label: n, onClick: f, style: r, children: /* @__PURE__ */ h(XD, {}) }),
|
|
28505
28514
|
/* @__PURE__ */ h(
|
|
28506
28515
|
eA,
|
|
28507
28516
|
{
|
|
28508
|
-
open:
|
|
28517
|
+
open: a,
|
|
28509
28518
|
scroll: "body",
|
|
28510
28519
|
sx: {
|
|
28511
28520
|
"& .MuiToolbar-root": {
|
|
28512
|
-
position: "initial"
|
|
28521
|
+
position: "initial",
|
|
28522
|
+
paddingLeft: 2.5,
|
|
28523
|
+
paddingRight: 2.5,
|
|
28524
|
+
paddingBottom: 2.5
|
|
28513
28525
|
}
|
|
28514
28526
|
},
|
|
28515
|
-
onClose:
|
|
28527
|
+
onClose: p,
|
|
28516
28528
|
fullWidth: e,
|
|
28517
28529
|
maxWidth: t,
|
|
28518
|
-
children: /* @__PURE__ */ h(a$, { onClose:
|
|
28530
|
+
children: /* @__PURE__ */ h(a$, { onClose: p, children: o == null ? void 0 : o.children })
|
|
28519
28531
|
}
|
|
28520
28532
|
)
|
|
28521
28533
|
] });
|