@applica-software-guru/react-admin 1.3.154 → 1.3.156
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/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Layout/Header/Profile/Profile.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +109 -149
- 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/Notification/Notification.tsx +2 -18
- package/src/components/Layout/Header/Profile/Profile.tsx +3 -19
- package/src/components/Layout/Provider.tsx +3 -3
package/dist/react-admin.es.js
CHANGED
|
@@ -18961,7 +18961,7 @@ function MW(e, t) {
|
|
|
18961
18961
|
}
|
|
18962
18962
|
case "updateNotifications": {
|
|
18963
18963
|
const a = ce.chain(n.notifications).clone().extend(o).value();
|
|
18964
|
-
return ce.extend(n,
|
|
18964
|
+
return ce.extend(n, a);
|
|
18965
18965
|
}
|
|
18966
18966
|
case "updateTheme": {
|
|
18967
18967
|
const a = ce.chain(n.theme).clone().extend(o).value();
|
|
@@ -19059,8 +19059,8 @@ function kW(e) {
|
|
|
19059
19059
|
}
|
|
19060
19060
|
function FW(e) {
|
|
19061
19061
|
return gr((t, n) => {
|
|
19062
|
-
const { logoIcon: r, logoMain: o, enableNotification: a } = t;
|
|
19063
|
-
return /* @__PURE__ */ p(kW, { logoIcon: r, logoMain: o, enableNotification: a, children: /* @__PURE__ */ p(e, { ref: n, ...t }) });
|
|
19062
|
+
const { logoIcon: r, logoMain: o, enableNotification: a, notification: l } = t;
|
|
19063
|
+
return /* @__PURE__ */ p(kW, { logoIcon: r, logoMain: o, enableNotification: a, notification: l, children: /* @__PURE__ */ p(e, { ref: n, ...t }) });
|
|
19064
19064
|
});
|
|
19065
19065
|
}
|
|
19066
19066
|
function ZQ() {
|
|
@@ -19178,100 +19178,80 @@ function UW() {
|
|
|
19178
19178
|
!u && l && a(l ?? []);
|
|
19179
19179
|
}, [l, u]), /* @__PURE__ */ $(An, { children: [
|
|
19180
19180
|
/* @__PURE__ */ p(iA, { value: "notifications", selected: g, onChange: h, children: /* @__PURE__ */ p(UB, { badgeContent: A, color: "primary", children: /* @__PURE__ */ p(tM, {}) }) }),
|
|
19181
|
-
/* @__PURE__ */ p(
|
|
19182
|
-
|
|
19183
|
-
{
|
|
19184
|
-
|
|
19185
|
-
|
|
19186
|
-
|
|
19187
|
-
|
|
19188
|
-
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
|
|
19192
|
-
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
offset: [n ? -5 : 0, 9]
|
|
19196
|
-
}
|
|
19181
|
+
/* @__PURE__ */ p(Du, { placement: n ? "bottom" : "bottom-end", open: g, anchorEl: f, role: void 0, transition: !0, disablePortal: !0, children: ({ TransitionProps: m }) => (
|
|
19182
|
+
//@ts-ignore
|
|
19183
|
+
/* @__PURE__ */ p(Si, { type: "grow", position: n ? "top" : "top-right", in: g, ...m, children: /* @__PURE__ */ p(
|
|
19184
|
+
xi,
|
|
19185
|
+
{
|
|
19186
|
+
sx: {
|
|
19187
|
+
marginTop: 1,
|
|
19188
|
+
//@ts-ignore
|
|
19189
|
+
boxShadow: t.customShadows.z1,
|
|
19190
|
+
width: "100%",
|
|
19191
|
+
minWidth: 285,
|
|
19192
|
+
maxWidth: 420,
|
|
19193
|
+
[t.breakpoints.down("md")]: {
|
|
19194
|
+
maxWidth: 285
|
|
19197
19195
|
}
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
//@ts-ignore
|
|
19202
|
-
/* @__PURE__ */ p(Si, { type: "grow", position: n ? "top" : "top-right", in: g, ...m, children: /* @__PURE__ */ p(
|
|
19203
|
-
xi,
|
|
19196
|
+
},
|
|
19197
|
+
children: /* @__PURE__ */ p(Ba, { onClickAway: C, children: /* @__PURE__ */ $(
|
|
19198
|
+
wr,
|
|
19204
19199
|
{
|
|
19205
|
-
|
|
19206
|
-
|
|
19207
|
-
|
|
19208
|
-
|
|
19209
|
-
|
|
19210
|
-
|
|
19211
|
-
|
|
19212
|
-
|
|
19213
|
-
|
|
19214
|
-
|
|
19215
|
-
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19219
|
-
|
|
19220
|
-
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
sx: {
|
|
19229
|
-
p: 0,
|
|
19230
|
-
"& .MuiListItemButton-root": {
|
|
19231
|
-
py: 0.5,
|
|
19232
|
-
"&.Mui-selected": { bgcolor: "grey.50", color: "text.primary" },
|
|
19233
|
-
"& .MuiAvatar-root": WW,
|
|
19234
|
-
"& .MuiListItemSecondaryAction-root": { ...zW, position: "relative" }
|
|
19235
|
-
},
|
|
19236
|
-
maxHeight: "calc(100vh - 240px)",
|
|
19237
|
-
overflow: "auto"
|
|
19238
|
-
},
|
|
19239
|
-
children: o.map((I, B) => /* @__PURE__ */ p(
|
|
19240
|
-
HW,
|
|
19241
|
-
{
|
|
19242
|
-
selected: A > 0,
|
|
19243
|
-
notification: I,
|
|
19244
|
-
onClick: C,
|
|
19245
|
-
divider: B < o.length - 1
|
|
19246
|
-
},
|
|
19247
|
-
I.id
|
|
19248
|
-
))
|
|
19249
|
-
}
|
|
19250
|
-
),
|
|
19251
|
-
/* @__PURE__ */ p(
|
|
19252
|
-
Tr,
|
|
19200
|
+
title: "Notification",
|
|
19201
|
+
elevation: 0,
|
|
19202
|
+
border: !1,
|
|
19203
|
+
content: !1,
|
|
19204
|
+
secondary: /* @__PURE__ */ p(An, { children: A > 0 && /* @__PURE__ */ p(Ou, { title: "Mark as all read", children: /* @__PURE__ */ p(Al, { color: "success", size: "small", children: /* @__PURE__ */ p(nM, { style: { fontSize: "1.15rem" } }) }) }) }),
|
|
19205
|
+
children: [
|
|
19206
|
+
/* @__PURE__ */ p(
|
|
19207
|
+
Ho,
|
|
19208
|
+
{
|
|
19209
|
+
component: "nav",
|
|
19210
|
+
sx: {
|
|
19211
|
+
p: 0,
|
|
19212
|
+
"& .MuiListItemButton-root": {
|
|
19213
|
+
py: 0.5,
|
|
19214
|
+
"&.Mui-selected": { bgcolor: "grey.50", color: "text.primary" },
|
|
19215
|
+
"& .MuiAvatar-root": WW,
|
|
19216
|
+
"& .MuiListItemSecondaryAction-root": { ...zW, position: "relative" }
|
|
19217
|
+
},
|
|
19218
|
+
maxHeight: "calc(100vh - 240px)",
|
|
19219
|
+
overflow: "auto"
|
|
19220
|
+
},
|
|
19221
|
+
children: o.map((I, B) => /* @__PURE__ */ p(
|
|
19222
|
+
HW,
|
|
19253
19223
|
{
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
LinkComponent: wn,
|
|
19224
|
+
selected: A > 0,
|
|
19225
|
+
notification: I,
|
|
19257
19226
|
onClick: C,
|
|
19258
|
-
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
|
-
|
|
19262
|
-
|
|
19263
|
-
|
|
19227
|
+
divider: B < o.length - 1
|
|
19228
|
+
},
|
|
19229
|
+
I.id
|
|
19230
|
+
))
|
|
19231
|
+
}
|
|
19232
|
+
),
|
|
19233
|
+
/* @__PURE__ */ p(
|
|
19234
|
+
Tr,
|
|
19235
|
+
{
|
|
19236
|
+
sx: { textAlign: "center", py: "12px !important" },
|
|
19237
|
+
to: `/${r}`,
|
|
19238
|
+
LinkComponent: wn,
|
|
19239
|
+
onClick: C,
|
|
19240
|
+
children: /* @__PURE__ */ p(
|
|
19241
|
+
Yn,
|
|
19242
|
+
{
|
|
19243
|
+
primary: /* @__PURE__ */ p(Ee, { variant: "h6", color: "primary", children: e("ra.notification.view_all") })
|
|
19264
19244
|
}
|
|
19265
|
-
)
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
}
|
|
19269
|
-
|
|
19245
|
+
)
|
|
19246
|
+
}
|
|
19247
|
+
),
|
|
19248
|
+
/* @__PURE__ */ p(ha, {})
|
|
19249
|
+
]
|
|
19270
19250
|
}
|
|
19271
19251
|
) })
|
|
19272
|
-
|
|
19273
|
-
}
|
|
19274
|
-
)
|
|
19252
|
+
}
|
|
19253
|
+
) })
|
|
19254
|
+
) })
|
|
19275
19255
|
] });
|
|
19276
19256
|
}
|
|
19277
19257
|
const GW = () => {
|
|
@@ -19313,65 +19293,45 @@ function JW() {
|
|
|
19313
19293
|
/* @__PURE__ */ p(du, { alt: (m = r == null ? void 0 : r.name) == null ? void 0 : m.toUpperCase(), src: a, size: "xs" }),
|
|
19314
19294
|
/* @__PURE__ */ p(Ee, { variant: "subtitle1", children: r == null ? void 0 : r.name })
|
|
19315
19295
|
] }) }),
|
|
19316
|
-
/* @__PURE__ */ p(
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
}
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19349
|
-
|
|
19350
|
-
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
|
|
19355
|
-
/* @__PURE__ */ p(du, { alt: "profile user", src: a, sx: { width: 32, height: 32 } }),
|
|
19356
|
-
/* @__PURE__ */ $(Dt, { children: [
|
|
19357
|
-
/* @__PURE__ */ p(Ee, { variant: "h6", children: r == null ? void 0 : r.name }),
|
|
19358
|
-
/* @__PURE__ */ p(Ee, { variant: "body2", color: "textSecondary", children: (B = r == null ? void 0 : r.roles) == null ? void 0 : B.map((v) => v.name.replace("ROLE_", "")).join(",") })
|
|
19359
|
-
] })
|
|
19360
|
-
] }) }),
|
|
19361
|
-
/* @__PURE__ */ p(ye, { item: !0, children: /* @__PURE__ */ p(Ou, { title: "Logout", children: /* @__PURE__ */ p(Al, { size: "large", sx: { color: "text.primary" }, onClick: h, children: /* @__PURE__ */ p(rM, {}) }) }) })
|
|
19362
|
-
] }) }),
|
|
19363
|
-
/* @__PURE__ */ p(ye, { container: !0, children: /* @__PURE__ */ p(ye, { item: !0, xs: 12, children: /* @__PURE__ */ $(Ho, { component: "nav", sx: { p: 0, "& .MuiListItemIcon-root": { minWidth: 32 } }, children: [
|
|
19364
|
-
/* @__PURE__ */ p(GW, {}),
|
|
19365
|
-
/* @__PURE__ */ p(KW, {}),
|
|
19366
|
-
/* @__PURE__ */ p(qW, {})
|
|
19367
|
-
] }) }) })
|
|
19368
|
-
] }) })
|
|
19369
|
-
}
|
|
19370
|
-
) })
|
|
19371
|
-
);
|
|
19372
|
-
}
|
|
19373
|
-
}
|
|
19374
|
-
)
|
|
19296
|
+
/* @__PURE__ */ p(MM, { placement: "bottom-end", open: u, anchorEl: A, role: void 0, transition: !0, disablePortal: !0, children: ({ TransitionProps: I }) => {
|
|
19297
|
+
var B;
|
|
19298
|
+
return (
|
|
19299
|
+
/* @ts-ignore */
|
|
19300
|
+
/* @__PURE__ */ p(Si, { type: "grow", position: "top-right", in: u, ...I, children: /* @__PURE__ */ p(
|
|
19301
|
+
xi,
|
|
19302
|
+
{
|
|
19303
|
+
sx: {
|
|
19304
|
+
// @ts-ignore
|
|
19305
|
+
boxShadow: e.customShadows.z1,
|
|
19306
|
+
width: 290,
|
|
19307
|
+
minWidth: 240,
|
|
19308
|
+
maxWidth: 290,
|
|
19309
|
+
[e.breakpoints.down("md")]: {
|
|
19310
|
+
maxWidth: 250
|
|
19311
|
+
},
|
|
19312
|
+
marginTop: 1
|
|
19313
|
+
},
|
|
19314
|
+
children: /* @__PURE__ */ p(Ba, { onClickAway: f, children: /* @__PURE__ */ $(wr, { elevation: 0, border: !1, content: !1, children: [
|
|
19315
|
+
/* @__PURE__ */ p(jB, { sx: { px: 2.5, pt: 3 }, children: /* @__PURE__ */ $(ye, { container: !0, justifyContent: "space-between", alignItems: "center", children: [
|
|
19316
|
+
/* @__PURE__ */ p(ye, { item: !0, children: /* @__PURE__ */ $(Dt, { direction: "row", spacing: 1.25, alignItems: "center", children: [
|
|
19317
|
+
/* @__PURE__ */ p(du, { alt: "profile user", src: a, sx: { width: 32, height: 32 } }),
|
|
19318
|
+
/* @__PURE__ */ $(Dt, { children: [
|
|
19319
|
+
/* @__PURE__ */ p(Ee, { variant: "h6", children: r == null ? void 0 : r.name }),
|
|
19320
|
+
/* @__PURE__ */ p(Ee, { variant: "body2", color: "textSecondary", children: (B = r == null ? void 0 : r.roles) == null ? void 0 : B.map((v) => v.name.replace("ROLE_", "")).join(",") })
|
|
19321
|
+
] })
|
|
19322
|
+
] }) }),
|
|
19323
|
+
/* @__PURE__ */ p(ye, { item: !0, children: /* @__PURE__ */ p(Ou, { title: "Logout", children: /* @__PURE__ */ p(Al, { size: "large", sx: { color: "text.primary" }, onClick: h, children: /* @__PURE__ */ p(rM, {}) }) }) })
|
|
19324
|
+
] }) }),
|
|
19325
|
+
/* @__PURE__ */ p(ye, { container: !0, children: /* @__PURE__ */ p(ye, { item: !0, xs: 12, children: /* @__PURE__ */ $(Ho, { component: "nav", sx: { p: 0, "& .MuiListItemIcon-root": { minWidth: 32 } }, children: [
|
|
19326
|
+
/* @__PURE__ */ p(GW, {}),
|
|
19327
|
+
/* @__PURE__ */ p(KW, {}),
|
|
19328
|
+
/* @__PURE__ */ p(qW, {})
|
|
19329
|
+
] }) }) })
|
|
19330
|
+
] }) })
|
|
19331
|
+
}
|
|
19332
|
+
) })
|
|
19333
|
+
);
|
|
19334
|
+
} })
|
|
19375
19335
|
] });
|
|
19376
19336
|
}
|
|
19377
19337
|
const XW = (e) => {
|