@applica-software-guru/react-admin 1.3.155 → 1.3.157
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/index.d.ts +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 +109 -148
- 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/Layout/Header/Notification/Notification.tsx +2 -18
- package/src/components/Layout/Header/Profile/Profile.tsx +3 -19
- package/src/index.jsx +2 -1
package/dist/react-admin.es.js
CHANGED
|
@@ -11,7 +11,7 @@ var Br = (e, t, n) => (aE(e, t, "read from private field"), n ? n.call(e) : t.ge
|
|
|
11
11
|
}, Zi = (e, t, n, r) => (aE(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
12
12
|
import Tu, { jsx as p, jsxs as $, Fragment as An } from "react/jsx-runtime";
|
|
13
13
|
import { useResourceDefinitions as OO, useGetIdentity as MO, usePermissions as DO, useTranslate as Pr, useRecordContext as on, useResourceContext as qn, useDataProvider as yf, Create as kO, Toolbar as bf, Form as _s, SaveButton as Oa, SimpleForm as CB, DeleteWithConfirmButton as Qf, FieldTitle as xf, ArrayInput as FO, EditButton as LO, CloneButton as NO, FileField as wf, ImageField as mB, useLocaleState as EB, DateField as $s, EmailField as Pu, FunctionField as jO, TextField as Su, ReferenceManyField as IB, Pagination as Tf, useInput as Pf, FileInput as Ru, AutocompleteArrayInput as Sf, AutocompleteInput as Rf, BooleanInput as Of, DateInput as Mf, DateTimeInput as BB, ImageInput as vB, TextInput as yB, NumberInput as Df, ReferenceArrayInput as kf, ReferenceInput as Ff, ResourceContextProvider as VO, ListToolbar as bB, SearchInput as HO, SelectArrayInput as Lf, SelectInput as QB, maxLength as WO, TimeInput as Nf, Edit as zO, Show as YO, SimpleFormIterator as UO, TabbedForm as xB, Confirm as wB, useArrayInput as GO, Notification as KO, CreateButtonClasses as TB, Button as po, useRedirect as PB, useNotify as el, useCreateController as qO, CreateContextProvider as JO, useGetOne as XO, useEditController as ZO, EditContextProvider as _O, useAuthProvider as $O, TopToolbar as e3, PureDatagridBody as t3, DatagridBody as n3, DatagridHeader as r3, DatagridLoading as o3, DatagridRoot as i3, DatagridClasses as Wd, ListNoResults as a3, BulkDeleteButton as s3, useRefresh as SB, useUnselectAll as RB, useListContext as jf, useUpdateMany as OB, useUpdate as l3, Datagrid as c3, TitlePropType as MB, Title as u3, ListActions as A3, Empty as d3, CoreAdminContext as g3, localStorageStore as f3, AdminUI as DB } from "react-admin";
|
|
14
|
-
import { ArrayInputContext as nee, BooleanField as ree, BulkDeleteWithConfirmButton as oee, Button as iee, ChipField as aee, Confirm as see, CreateButton as lee, CreateContextProvider as cee, CustomRoutes as uee, DeleteWithConfirmButton as Aee, DeleteWithUndoButton as dee, EditButton as gee, EditContextProvider as fee, FieldTitle as pee, Form as hee, FormDataConsumer as Cee, HttpError as mee, I18nContextProvider as Eee, ListToolbar as Iee, LoadingIndicator as Bee, Pagination as vee, SimpleFormIterator as yee, RecordContextProvider as bee, ReferenceArrayField as Qee, ReferenceField as xee, Resource as wee, ResourceContextProvider as Tee, SaveButton as Pee, SimpleFormIteratorContext as See, SimpleList as Ree, SimpleShowLayout as Oee, SingleFieldList as Mee, TopToolbar as Dee, UrlField as kee, choices as Fee, email as Lee, maxLength as Nee, maxValue as jee, minLength as Vee, minValue as Hee, number as Wee, regex as zee, required as Yee, useArrayInput as Uee, useAuthProvider as Gee, useChoices as Kee, useChoicesContext as qee, useCreateController as Jee, useDataProvider as Xee, useEditContext as Zee, useGetIdentity as _ee, useGetList as $ee, useGetMany as ete, useGetManyReference as tte, useGetOne as nte, useInput as rte, useListContext as ote, useLocaleState as ite, useNotify as ate, usePermissions as ste, useRecordContext as lte, useRefresh as cte, useResourceContext as ute, useResourceDefinition as Ate, useResourceDefinitions as dte, useShowContext as gte, useShowController as fte, useSimpleFormIterator as pte, useSimpleFormIteratorItem as hte, useTranslate as Cte, useTranslateLabel as mte, useUnselect as Ete, useUnselectAll as Ite, useUpdateMany as Bte } from "react-admin";
|
|
14
|
+
import { ArrayInputContext as nee, BooleanField as ree, BulkDeleteWithConfirmButton as oee, Button as iee, ChipField as aee, Confirm as see, CreateButton as lee, CreateContextProvider as cee, CustomRoutes as uee, DeleteWithConfirmButton as Aee, DeleteWithUndoButton as dee, EditButton as gee, EditContextProvider as fee, FieldTitle as pee, Form as hee, FormDataConsumer as Cee, HttpError as mee, I18nContextProvider as Eee, ListToolbar as Iee, LoadingIndicator as Bee, Pagination as vee, SimpleFormIterator as yee, RecordContextProvider as bee, ReferenceArrayField as Qee, ReferenceField as xee, Resource as wee, ResourceContextProvider as Tee, SaveButton as Pee, SimpleFormIteratorContext as See, SimpleList as Ree, SimpleShowLayout as Oee, SingleFieldList as Mee, TopToolbar as Dee, UrlField as kee, choices as Fee, email as Lee, maxLength as Nee, maxValue as jee, minLength as Vee, minValue as Hee, number as Wee, regex as zee, required as Yee, useArrayInput as Uee, useAuthProvider as Gee, useChoices as Kee, useChoicesContext as qee, useCreateController as Jee, useDataProvider as Xee, useEditContext as Zee, useGetIdentity as _ee, useGetList as $ee, useGetMany as ete, useGetManyReference as tte, useGetOne as nte, useInput as rte, useListContext as ote, useLocaleState as ite, useNotify as ate, usePermissions as ste, useRecordContext as lte, useRefresh as cte, useResourceContext as ute, useResourceDefinition as Ate, useResourceDefinitions as dte, useShowContext as gte, useShowController as fte, useSimpleFormIterator as pte, useSimpleFormIteratorItem as hte, useTranslate as Cte, useTranslateLabel as mte, useUnselect as Ete, useUnselectAll as Ite, useUpdateMany as Bte, withLifecycleCallbacks as vte } from "react-admin";
|
|
15
15
|
import { Popover as Vf, styled as kB, IconButton as FB, MenuItem as LB, Button as Oi, Card as NB, CardHeader as Og, Typography as Ee, Divider as ha, CardContent as jB, Grid as ye, Box as Fe, Tooltip as Ou, tooltipClasses as Cc, Grow as p3, Collapse as Hf, Fade as VB, Slide as h3, Zoom as HB, CircularProgress as Qi, circularProgressClasses as C3, LinearProgress as WB, ToggleButton as m3, Stack as Dt, InputLabel as Wf, FormHelperText as zB, useTheme as Sr, ListItemText as Yn, Chip as Mg, Menu as E3, TextField as YB, Alert as I3, AlertTitle as B3, List as Ho, ListItem as Jc, ListItemButton as Tr, ListItemIcon as br, Badge as UB, ListItemAvatar as GB, TableCell as bs, TableContainer as v3, Paper as xi, Table as KB, TableHead as y3, TableRow as zd, TableBody as b3, useMediaQuery as Qs, Dialog as Mu, Toolbar as zf, AppBar as Yf, Avatar as Dg, Popper as Du, ClickAwayListener as Ba, alpha as sE, Container as ku, ButtonBase as Q3, Drawer as x3, useScrollTrigger as w3, Fab as qB, darken as T3, lighten as P3, Link as S3, StyledEngineProvider as R3, CssBaseline as O3 } from "@mui/material";
|
|
16
16
|
import * as O from "react";
|
|
17
17
|
import Le, { useState as Xe, useCallback as Me, Children as Hn, createContext as In, useContext as Vt, useMemo as $e, useEffect as We, forwardRef as gr, useLayoutEffect as M3, useRef as Wr, useInsertionEffect as D3, createElement as JB, useId as k3, isValidElement as sr, cloneElement as zn, Fragment as ho, useReducer as XB, Suspense as ZB } from "react";
|
|
@@ -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) => {
|
|
@@ -31701,6 +31661,7 @@ export {
|
|
|
31701
31661
|
Ite as useUnselectAll,
|
|
31702
31662
|
Bte as useUpdateMany,
|
|
31703
31663
|
P$ as uuid,
|
|
31704
|
-
FW as withLayoutProvider
|
|
31664
|
+
FW as withLayoutProvider,
|
|
31665
|
+
vte as withLifecycleCallbacks
|
|
31705
31666
|
};
|
|
31706
31667
|
//# sourceMappingURL=react-admin.es.js.map
|