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