@applica-software-guru/react-admin 1.0.69 → 1.0.71
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/Layout/Header/HeaderContent/Profile.d.ts.map +1 -1
- package/dist/components/MainCard.d.ts.map +1 -1
- package/dist/components/ra-fields/ReferenceManyField.d.ts.map +1 -1
- package/dist/components/ra-forms/Toolbar.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +11 -11
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +38 -30
- 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/Layout/Header/HeaderContent/Profile.jsx +5 -2
- package/src/components/MainCard.tsx +1 -0
- package/src/components/ra-fields/ReferenceManyField.jsx +7 -0
- package/src/components/ra-forms/Toolbar.jsx +0 -2
package/dist/react-admin.es.js
CHANGED
|
@@ -7395,7 +7395,8 @@ const CD = (e) => {
|
|
|
7395
7395
|
...B
|
|
7396
7396
|
}, v) => {
|
|
7397
7397
|
const S = dt();
|
|
7398
|
-
return t = S.palette.mode === "dark" ? t || !0 : t,
|
|
7398
|
+
return t = S.palette.mode === "dark" ? t || !0 : t, /** @ts-ignore */
|
|
7399
|
+
/* @__PURE__ */ ne(
|
|
7399
7400
|
nP,
|
|
7400
7401
|
{
|
|
7401
7402
|
elevation: d || 0,
|
|
@@ -19842,8 +19843,6 @@ const LN = _i(Sd, {
|
|
|
19842
19843
|
...e.mixins.toolbar,
|
|
19843
19844
|
backgroundColor: e.palette.background.paper,
|
|
19844
19845
|
justifyContent: "flex-end",
|
|
19845
|
-
// Fix: needed to avoid disalignment with the top content.
|
|
19846
|
-
paddingRight: "20px !important",
|
|
19847
19846
|
"& .RaToolbar-defaultToolbar": {
|
|
19848
19847
|
justifyContent: "right",
|
|
19849
19848
|
paddingBottom: e.spacing(2),
|
|
@@ -22306,6 +22305,9 @@ const eW = _i("div", {
|
|
|
22306
22305
|
marginLeft: t ? 0 : `-${e.spacing(2.5)}`,
|
|
22307
22306
|
marginRight: t ? 0 : `-${e.spacing(2.5)}`,
|
|
22308
22307
|
borderBottom: n ? `1px solid ${e.palette.divider}` : "none",
|
|
22308
|
+
"& form": {
|
|
22309
|
+
padding: e.spacing(2)
|
|
22310
|
+
},
|
|
22309
22311
|
"& .MuiCardContent-root": {
|
|
22310
22312
|
borderTop: n ? `1px solid ${e.palette.divider}` : "none"
|
|
22311
22313
|
},
|
|
@@ -22319,6 +22321,10 @@ const eW = _i("div", {
|
|
|
22319
22321
|
marginTop: 0
|
|
22320
22322
|
}
|
|
22321
22323
|
},
|
|
22324
|
+
"& .RaDatagrid-root": {
|
|
22325
|
+
overflowX: "auto",
|
|
22326
|
+
width: "calc(100vw - 34px)"
|
|
22327
|
+
},
|
|
22322
22328
|
"& .RaDatagrid-table": {
|
|
22323
22329
|
borderBottom: `1px solid ${e.palette.divider}`
|
|
22324
22330
|
},
|
|
@@ -23433,27 +23439,29 @@ const LW = () => {
|
|
|
23433
23439
|
};
|
|
23434
23440
|
c.node, c.any.isRequired, c.any.isRequired;
|
|
23435
23441
|
const yy = () => {
|
|
23436
|
-
var
|
|
23437
|
-
const e = dt(), { identity: t } = zm(), n = Nr(null), [
|
|
23438
|
-
|
|
23439
|
-
},
|
|
23440
|
-
|
|
23441
|
-
},
|
|
23442
|
-
|
|
23443
|
-
}, [
|
|
23442
|
+
var B;
|
|
23443
|
+
const e = dt(), { identity: t } = zm(), n = t !== void 0 && t.image !== null && t.image !== "", r = Nr(null), [i, s] = Ze(!1), l = () => {
|
|
23444
|
+
s((v) => !v);
|
|
23445
|
+
}, A = (v) => {
|
|
23446
|
+
r.current && r.current.contains(v.target) || s(!1);
|
|
23447
|
+
}, d = e.palette.mode === "dark" ? "grey.200" : "grey.300", g = WS(), f = Od(), C = $m(), p = _e(() => {
|
|
23448
|
+
g();
|
|
23449
|
+
}, [C, g]), [m, I] = Ze(null);
|
|
23444
23450
|
return St(() => {
|
|
23445
|
-
|
|
23446
|
-
|
|
23447
|
-
|
|
23451
|
+
if (!n)
|
|
23452
|
+
return;
|
|
23453
|
+
async function v() {
|
|
23454
|
+
var S = await f.getFile("/profile/me/image");
|
|
23455
|
+
I(S);
|
|
23448
23456
|
}
|
|
23449
|
-
|
|
23450
|
-
}, [
|
|
23457
|
+
v();
|
|
23458
|
+
}, [f, n]), /* @__PURE__ */ ne(ke, { sx: { flexShrink: 0, ml: 0.75 }, children: [
|
|
23451
23459
|
/* @__PURE__ */ E(
|
|
23452
23460
|
u0,
|
|
23453
23461
|
{
|
|
23454
23462
|
sx: {
|
|
23455
23463
|
p: 0.25,
|
|
23456
|
-
bgcolor:
|
|
23464
|
+
bgcolor: i ? d : "transparent",
|
|
23457
23465
|
borderRadius: 1,
|
|
23458
23466
|
"&:hover": {
|
|
23459
23467
|
bgcolor: e.palette.mode === "dark" ? "secondary.light" : "secondary.lighter"
|
|
@@ -23464,12 +23472,12 @@ const yy = () => {
|
|
|
23464
23472
|
}
|
|
23465
23473
|
},
|
|
23466
23474
|
"aria-label": "open profile",
|
|
23467
|
-
ref:
|
|
23468
|
-
"aria-controls":
|
|
23475
|
+
ref: r,
|
|
23476
|
+
"aria-controls": i ? "profile-grow" : void 0,
|
|
23469
23477
|
"aria-haspopup": "true",
|
|
23470
|
-
onClick:
|
|
23478
|
+
onClick: l,
|
|
23471
23479
|
children: /* @__PURE__ */ ne(Xt, { direction: "row", spacing: 2, alignItems: "center", sx: { p: 0.5 }, children: [
|
|
23472
|
-
/* @__PURE__ */ E(hd, { alt: (
|
|
23480
|
+
/* @__PURE__ */ E(hd, { alt: (B = t == null ? void 0 : t.name) == null ? void 0 : B.toUpperCase(), src: m, size: "xs" }),
|
|
23473
23481
|
/* @__PURE__ */ E(ve, { variant: "subtitle1", children: t == null ? void 0 : t.name })
|
|
23474
23482
|
] })
|
|
23475
23483
|
}
|
|
@@ -23478,8 +23486,8 @@ const yy = () => {
|
|
|
23478
23486
|
es,
|
|
23479
23487
|
{
|
|
23480
23488
|
placement: "bottom-end",
|
|
23481
|
-
open:
|
|
23482
|
-
anchorEl:
|
|
23489
|
+
open: i,
|
|
23490
|
+
anchorEl: r.current,
|
|
23483
23491
|
role: void 0,
|
|
23484
23492
|
transition: !0,
|
|
23485
23493
|
disablePortal: !0,
|
|
@@ -23493,9 +23501,9 @@ const yy = () => {
|
|
|
23493
23501
|
}
|
|
23494
23502
|
]
|
|
23495
23503
|
},
|
|
23496
|
-
children: ({ TransitionProps:
|
|
23497
|
-
var
|
|
23498
|
-
return /* @__PURE__ */ E(Jo, { type: "grow", position: "top-right", in:
|
|
23504
|
+
children: ({ TransitionProps: v }) => {
|
|
23505
|
+
var S;
|
|
23506
|
+
return /* @__PURE__ */ E(Jo, { type: "grow", position: "top-right", in: i, ...v, children: /* @__PURE__ */ E(
|
|
23499
23507
|
Li,
|
|
23500
23508
|
{
|
|
23501
23509
|
sx: {
|
|
@@ -23507,16 +23515,16 @@ const yy = () => {
|
|
|
23507
23515
|
maxWidth: 250
|
|
23508
23516
|
}
|
|
23509
23517
|
},
|
|
23510
|
-
children: /* @__PURE__ */ E(ji, { onClickAway:
|
|
23518
|
+
children: /* @__PURE__ */ E(ji, { onClickAway: A, children: /* @__PURE__ */ ne(ir, { elevation: 0, border: !1, content: !1, children: [
|
|
23511
23519
|
/* @__PURE__ */ E(s0, { sx: { px: 2.5, pt: 3 }, children: /* @__PURE__ */ ne(ye, { container: !0, justifyContent: "space-between", alignItems: "center", children: [
|
|
23512
23520
|
/* @__PURE__ */ E(ye, { item: !0, children: /* @__PURE__ */ ne(Xt, { direction: "row", spacing: 1.25, alignItems: "center", children: [
|
|
23513
|
-
/* @__PURE__ */ E(hd, { alt: "profile user", src:
|
|
23521
|
+
/* @__PURE__ */ E(hd, { alt: "profile user", src: m, sx: { width: 32, height: 32 } }),
|
|
23514
23522
|
/* @__PURE__ */ ne(Xt, { children: [
|
|
23515
23523
|
/* @__PURE__ */ E(ve, { variant: "h6", children: t == null ? void 0 : t.name }),
|
|
23516
|
-
/* @__PURE__ */ E(ve, { variant: "body2", color: "textSecondary", children: (
|
|
23524
|
+
/* @__PURE__ */ E(ve, { variant: "body2", color: "textSecondary", children: (S = t == null ? void 0 : t.roles) == null ? void 0 : S.map((R) => R.name.replace("ROLE_", "")).join(",") })
|
|
23517
23525
|
] })
|
|
23518
23526
|
] }) }),
|
|
23519
|
-
/* @__PURE__ */ E(ye, { item: !0, children: /* @__PURE__ */ E(Za, { title: "Logout", children: /* @__PURE__ */ E(qo, { size: "large", sx: { color: "text.primary" }, onClick:
|
|
23527
|
+
/* @__PURE__ */ E(ye, { item: !0, children: /* @__PURE__ */ E(Za, { title: "Logout", children: /* @__PURE__ */ E(qo, { size: "large", sx: { color: "text.primary" }, onClick: p, children: /* @__PURE__ */ E(NP, {}) }) }) })
|
|
23520
23528
|
] }) }),
|
|
23521
23529
|
/* @__PURE__ */ E(ye, { container: !0, children: /* @__PURE__ */ E(ye, { item: !0, xs: 12, children: /* @__PURE__ */ ne(Vi, { component: "nav", sx: { p: 0, "& .MuiListItemIcon-root": { minWidth: 32 } }, children: [
|
|
23522
23530
|
/* @__PURE__ */ E(LW, {}),
|