@applica-software-guru/react-admin 1.4.189 → 1.4.191
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/ActionsMenu.d.ts.map +1 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts +5 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +2 -2
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +35 -28
- 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/ActionsMenu.tsx +9 -7
- package/src/components/ra-buttons/CreateInDialogButton.tsx +6 -1
package/dist/react-admin.es.js
CHANGED
|
@@ -3529,30 +3529,36 @@ const J5 = ap("div", {
|
|
|
3529
3529
|
"& .MuiMenuItem-root": {
|
|
3530
3530
|
padding: 0,
|
|
3531
3531
|
margin: 0,
|
|
3532
|
-
backgroundColor:
|
|
3532
|
+
// backgroundColor: theme.palette.background.paper,
|
|
3533
3533
|
"& .MuiButton-startIcon": {
|
|
3534
3534
|
marginRight: e.spacing(0)
|
|
3535
3535
|
}
|
|
3536
3536
|
}
|
|
3537
3537
|
}));
|
|
3538
3538
|
function ts({ horizontal: e = !1, children: t }) {
|
|
3539
|
-
const [n, r] = je(null), o = Le.useRef(null), a = (
|
|
3540
|
-
|
|
3541
|
-
}, s = Se((
|
|
3542
|
-
|
|
3539
|
+
const [n, r] = je(null), o = Le.useRef(null), a = (A) => {
|
|
3540
|
+
A.stopPropagation(), A.preventDefault(), r(A.currentTarget), o.current = A.currentTarget;
|
|
3541
|
+
}, s = Se((A) => {
|
|
3542
|
+
A.stopPropagation(), A.preventDefault(), r(null);
|
|
3543
3543
|
}, []);
|
|
3544
3544
|
if (!t || Le.Children.count(t) === 0 || // @ts-ignore
|
|
3545
|
-
t != null && t.filter && (t == null ? void 0 : t.filter((
|
|
3545
|
+
t != null && t.filter && (t == null ? void 0 : t.filter((A) => Le.isValidElement(A)).length) === 0)
|
|
3546
3546
|
return null;
|
|
3547
|
-
const c = Se((
|
|
3548
|
-
var
|
|
3549
|
-
|
|
3550
|
-
}, []);
|
|
3547
|
+
const c = Se((A) => {
|
|
3548
|
+
var f;
|
|
3549
|
+
A.stopPropagation(), A.preventDefault(), r(null), typeof ((f = A.currentTarget) == null ? void 0 : f.onClick) == "function" && A.currentTarget.onClick(A);
|
|
3550
|
+
}, []), u = { width: "100%", justifyContent: "flex-start" };
|
|
3551
3551
|
return /* @__PURE__ */ $(J5, { children: [
|
|
3552
3552
|
/* @__PURE__ */ h(zB, { "aria-label": "more", "aria-haspopup": "true", onClick: a, color: n ? "inherit" : "default", children: e ? /* @__PURE__ */ h(UD, {}) : /* @__PURE__ */ h(YD, {}) }),
|
|
3553
3553
|
/* @__PURE__ */ h(X5, { open: n, onClose: s, arrow: "right-top", children: Wn.map(
|
|
3554
3554
|
t,
|
|
3555
|
-
(
|
|
3555
|
+
(A, f) => Le.isValidElement(A) && /* @__PURE__ */ h(WB, { onClick: c, children: Le.cloneElement(
|
|
3556
|
+
A,
|
|
3557
|
+
{
|
|
3558
|
+
// @ts-ignore
|
|
3559
|
+
style: { ...u }
|
|
3560
|
+
}
|
|
3561
|
+
) }, f)
|
|
3556
3562
|
) })
|
|
3557
3563
|
] });
|
|
3558
3564
|
}
|
|
@@ -28408,44 +28414,45 @@ function vne({
|
|
|
28408
28414
|
scrollToTop: a = !0,
|
|
28409
28415
|
className: s,
|
|
28410
28416
|
sx: c,
|
|
28411
|
-
|
|
28412
|
-
|
|
28413
|
-
|
|
28414
|
-
|
|
28417
|
+
fab: u = !0,
|
|
28418
|
+
onSubmit: A,
|
|
28419
|
+
onSuccess: f,
|
|
28420
|
+
onError: p,
|
|
28421
|
+
...C
|
|
28415
28422
|
}) {
|
|
28416
|
-
const [
|
|
28423
|
+
const [m, I] = je(!1), B = Mr(), v = Zn(), { openDialog: w, closeDialog: P } = ns(), y = Se(() => w(v, () => I(!0)), [w, v]), S = Se(() => P(v, () => I(!1)), [P, v]), T = u && Ks((D) => D.breakpoints.down("md"));
|
|
28417
28424
|
return /* @__PURE__ */ $(rn, { children: [
|
|
28418
|
-
|
|
28425
|
+
T ? /* @__PURE__ */ h(
|
|
28419
28426
|
i$,
|
|
28420
28427
|
{
|
|
28421
|
-
...
|
|
28428
|
+
...C,
|
|
28422
28429
|
state: o$[String(a)],
|
|
28423
28430
|
color: "primary",
|
|
28424
28431
|
className: Xe(LB.floating, s),
|
|
28425
|
-
"aria-label": n &&
|
|
28426
|
-
onClick:
|
|
28432
|
+
"aria-label": n && B(n),
|
|
28433
|
+
onClick: y,
|
|
28427
28434
|
children: /* @__PURE__ */ h(lf, {})
|
|
28428
28435
|
}
|
|
28429
|
-
) : /* @__PURE__ */ h(ti, { ...
|
|
28436
|
+
) : /* @__PURE__ */ h(ti, { ...C, sx: c, label: n, onClick: y, children: /* @__PURE__ */ h(lf, {}) }),
|
|
28430
28437
|
/* @__PURE__ */ h(
|
|
28431
28438
|
eA,
|
|
28432
28439
|
{
|
|
28433
|
-
open:
|
|
28440
|
+
open: m,
|
|
28434
28441
|
scroll: "body",
|
|
28435
28442
|
sx: { "& .MuiToolbar-root": { position: "initial" } },
|
|
28436
|
-
onClose:
|
|
28443
|
+
onClose: S,
|
|
28437
28444
|
fullWidth: e,
|
|
28438
28445
|
maxWidth: t,
|
|
28439
28446
|
children: /* @__PURE__ */ h(
|
|
28440
28447
|
r$,
|
|
28441
28448
|
{
|
|
28442
|
-
...
|
|
28449
|
+
...C,
|
|
28443
28450
|
redirect: o,
|
|
28444
28451
|
record: r,
|
|
28445
|
-
onClose:
|
|
28446
|
-
onSubmit:
|
|
28447
|
-
onSuccess:
|
|
28448
|
-
onError:
|
|
28452
|
+
onClose: S,
|
|
28453
|
+
onSubmit: A,
|
|
28454
|
+
onSuccess: f,
|
|
28455
|
+
onError: p
|
|
28449
28456
|
}
|
|
28450
28457
|
)
|
|
28451
28458
|
}
|