@applica-software-guru/react-admin 1.0.32 → 1.0.33
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/hooks/useMenu.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/react-admin.cjs.js +2 -2
- package/dist/react-admin.es.js +49 -48
- package/dist/react-admin.umd.js +2 -2
- package/package.json +1 -1
package/dist/react-admin.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as C, jsxs as oe, Fragment as dn } from "react/jsx-runtime";
|
|
2
2
|
import { useResourceDefinitions as KP, useGetIdentity as HC, usePermissions as qP, useTranslate as Xn, useRecordContext as jt, useResourceContext as Pn, useLogout as _P, useDataProvider as Zu, useAuthProvider as VC, useNotify as Ti, useRedirect as $u, useUpdate as zC, useLocaleState as bl, useGetList as JP, LoadingIndicator as XP, Notification as ZP, Toolbar as eg, Form as tg, SaveButton as xl, Edit as $P, FormGroupContextProvider as eR, getTabbedFormTabFullPath as tR, SimpleForm as ng, DeleteWithConfirmButton as WC, TabbedForm as wl, CreateButtonClasses as UC, Button as $r, useCreateController as nR, CreateContextProvider as rR, useGetOne as oR, useEditController as iR, EditContextProvider as sR, EditButton as aR, CloneButton as lR, FileField as rg, ImageField as YC, DateField as ws, EmailField as Tl, FunctionField as cR, FieldTitle as GC, ReferenceManyField as og, TextField as Pl, useInput as AR, ArrayInput as KC, FileInput as Rl, AutocompleteArrayInput as qC, AutocompleteInput as _C, BooleanInput as ig, DateInput as sg, ImageInput as JC, NumberInput as ag, ReferenceArrayInput as lg, ReferenceInput as cg, ResourceContextProvider as uR, Pagination as gR, ListToolbar as dR, SearchInput as fR, SelectArrayInput as Ag, SelectInput as XC, TextInput as ug, maxLength as pR, TimeInput as gg, Datagrid as Sl, List as Ol, useRefresh as ZC, useUnselectAll as $C, useListContext as eI, useUpdateMany as tI, CoreAdminContext as dg, localStorageStore as hR, AdminUI as nI } from "react-admin";
|
|
3
|
-
import { ArrayInput as F9, ArrayInputContext as N9, BooleanField as L9, BulkDeleteWithConfirmButton as j9, Button as H9, ChipField as V9, Confirm as z9, Create as W9, CreateButton as U9, CreateContextProvider as Y9,
|
|
3
|
+
import { ArrayInput as F9, ArrayInputContext as N9, BooleanField as L9, BulkDeleteWithConfirmButton as j9, Button as H9, ChipField as V9, Confirm as z9, Create as W9, CreateButton as U9, CreateContextProvider as Y9, CustomRoutes as G9, DeleteWithConfirmButton as K9, DeleteWithUndoButton as q9, EditButton as _9, Form as J9, HttpError as X9, ListToolbar as Z9, Pagination as $9, RecordContextProvider as eU, ReferenceArrayField as tU, ReferenceField as nU, Resource as rU, ResourceContextProvider as oU, SaveButton as iU, SimpleFormIterator as sU, SimpleFormIteratorContext as aU, SimpleList as lU, SingleFieldList as cU, TopToolbar as AU, choices as uU, email as gU, maxLength as dU, maxValue as fU, minLength as pU, minValue as hU, number as EU, regex as CU, required as IU, useArrayInput as BU, useAuthProvider as mU, useDataProvider as QU, useGetIdentity as yU, useGetList as vU, useGetMany as bU, useGetManyReference as xU, useGetOne as wU, useListContext as TU, useNotify as PU, usePermissions as RU, useRecordContext as SU, useResourceContext as OU, useResourceDefinition as DU, useResourceDefinitions as MU, useTranslate as kU, useUnselect as FU, useUnselectAll as NU, useUpdateMany as LU } from "react-admin";
|
|
4
4
|
import * as z from "react";
|
|
5
5
|
import Ne, { useState as At, Children as rI, createContext as wr, useContext as Wt, useMemo as it, useEffect as kt, forwardRef as ko, isValidElement as Ka, cloneElement as qa, useLayoutEffect as ER, useRef as Po, useInsertionEffect as CR, useCallback as xt, createElement as IR, useId as BR, Fragment as Pi, Suspense as mR } from "react";
|
|
6
6
|
import { Popover as QR, styled as oI, IconButton as yR, MenuItem as vR, Card as bR, CardHeader as fu, Typography as Pe, Divider as Ii, CardContent as iI, Grid as bt, Box as Me, Tooltip as Dl, tooltipClasses as Oa, Grow as xR, Collapse as sI, Fade as wR, Slide as TR, Zoom as aI, CircularProgress as pu, circularProgressClasses as PR, LinearProgress as lI, useMediaQuery as wn, ListItemButton as Ro, ListItemIcon as Gr, ListItemText as So, Chip as $p, Avatar as nl, Popper as Ts, Paper as vi, ClickAwayListener as bi, List as Is, ButtonBase as cI, Drawer as RR, Stack as To, AppBar as fg, Toolbar as pg, ListItemAvatar as SR, ListItemSecondaryAction as AI, Badge as OR, Container as uI, useScrollTrigger as DR, Fab as MR, Dialog as gI, InputLabel as dI, FormHelperText as kR, TextField as FR, useTheme as NR, darken as LR, lighten as jR, StyledEngineProvider as HR, CssBaseline as VR } from "@mui/material";
|
|
@@ -7222,7 +7222,7 @@ const sr = () => Wt(YI), hM = ["e-", "entities/"], EM = (e) => {
|
|
|
7222
7222
|
}, _I = (e) => e ? e.type === "item" ? !0 : (e.children && (e.children = e.children.filter(_I)), e.children && e.children.length > 0) : !1, JI = (e) => (e.children && e.children.forEach((t) => {
|
|
7223
7223
|
t.parent = e, JI(t);
|
|
7224
7224
|
}), e), BM = ({ userGroups: e, resources: t, permissions: n, translate: r }) => {
|
|
7225
|
-
const s = (p) => (p.title = r(p.title, { _: p.title }), p.children && p.children.forEach((E) => s(E)), p), a = Object.keys(t), l = (p, E) => (p.children && (p.children = p.children.filter((h) => h.type === "item" ? E.includes(h.id) : (l(h, E), h.children && h.children.length > 0))), p), u = ft.cloneDeep(e).map((p) => ({
|
|
7225
|
+
const s = (p) => (p.title = r(p.title, { _: p.title }), p.children && p.children.forEach((E) => s(E)), p), a = Object.keys(t), l = (p, E) => (p.children && (p.children = p.children.filter((h) => h.resource === !1 ? !0 : h.type === "item" ? E.includes(h.id) : (l(h, E), h.children && h.children.length > 0))), p), u = ft.cloneDeep(e).map((p) => ({
|
|
7226
7226
|
type: "group",
|
|
7227
7227
|
icon: nh,
|
|
7228
7228
|
children: [],
|
|
@@ -26681,24 +26681,25 @@ export {
|
|
|
26681
26681
|
U9 as CreateButton,
|
|
26682
26682
|
Y9 as CreateContextProvider,
|
|
26683
26683
|
bQ as CreateInDialogButton,
|
|
26684
|
+
G9 as CustomRoutes,
|
|
26684
26685
|
iy as Datagrid,
|
|
26685
26686
|
Bd as DateAgoField,
|
|
26686
26687
|
jQ as DateField,
|
|
26687
26688
|
_Q as DateInput,
|
|
26688
|
-
|
|
26689
|
-
|
|
26689
|
+
K9 as DeleteWithConfirmButton,
|
|
26690
|
+
q9 as DeleteWithUndoButton,
|
|
26690
26691
|
nd as Dot,
|
|
26691
26692
|
R9 as Edit,
|
|
26692
|
-
|
|
26693
|
+
_9 as EditButton,
|
|
26693
26694
|
wQ as EditInDialogButton,
|
|
26694
26695
|
VQ as EmailField,
|
|
26695
26696
|
Rz as Empty,
|
|
26696
26697
|
zQ as FileField,
|
|
26697
26698
|
JQ as FileInput,
|
|
26698
|
-
|
|
26699
|
+
J9 as Form,
|
|
26699
26700
|
QQ as FormHeader,
|
|
26700
26701
|
az as FunctionField,
|
|
26701
|
-
|
|
26702
|
+
X9 as HttpError,
|
|
26702
26703
|
Do as IconButton,
|
|
26703
26704
|
fc as ImageField,
|
|
26704
26705
|
XQ as ImageInput,
|
|
@@ -26708,7 +26709,7 @@ export {
|
|
|
26708
26709
|
XL as LinearWithIcon,
|
|
26709
26710
|
ZL as LinearWithLabel,
|
|
26710
26711
|
sy as List,
|
|
26711
|
-
|
|
26712
|
+
Z9 as ListToolbar,
|
|
26712
26713
|
T9 as Loadable,
|
|
26713
26714
|
a6 as Loader,
|
|
26714
26715
|
Lm as LoadingButton,
|
|
@@ -26723,19 +26724,19 @@ export {
|
|
|
26723
26724
|
l6 as Notification,
|
|
26724
26725
|
D9 as NotificationList,
|
|
26725
26726
|
ZQ as NumberInput,
|
|
26726
|
-
|
|
26727
|
+
$9 as Pagination,
|
|
26727
26728
|
UQ as ReadonlyField,
|
|
26728
|
-
|
|
26729
|
+
eU as RecordContextProvider,
|
|
26729
26730
|
Bz as RecordInput,
|
|
26730
|
-
|
|
26731
|
+
tU as ReferenceArrayField,
|
|
26731
26732
|
$Q as ReferenceArrayInput,
|
|
26732
|
-
|
|
26733
|
+
nU as ReferenceField,
|
|
26733
26734
|
ey as ReferenceInput,
|
|
26734
26735
|
zs as ReferenceManyField,
|
|
26735
26736
|
ty as ReferenceManyInput,
|
|
26736
|
-
|
|
26737
|
-
|
|
26738
|
-
|
|
26737
|
+
rU as Resource,
|
|
26738
|
+
oU as ResourceContextProvider,
|
|
26739
|
+
iU as SaveButton,
|
|
26739
26740
|
BQ as ScrollTop,
|
|
26740
26741
|
P9 as ScrollX,
|
|
26741
26742
|
S9 as SearchInput,
|
|
@@ -26743,10 +26744,10 @@ export {
|
|
|
26743
26744
|
yz as SelectInput,
|
|
26744
26745
|
_0 as SimpleBar,
|
|
26745
26746
|
vQ as SimpleForm,
|
|
26746
|
-
|
|
26747
|
-
|
|
26748
|
-
|
|
26749
|
-
|
|
26747
|
+
sU as SimpleFormIterator,
|
|
26748
|
+
aU as SimpleFormIteratorContext,
|
|
26749
|
+
lU as SimpleList,
|
|
26750
|
+
cU as SingleFieldList,
|
|
26750
26751
|
Az as SizeField,
|
|
26751
26752
|
mQ as SmallIcon,
|
|
26752
26753
|
Qd as SmartTextInput,
|
|
@@ -26758,43 +26759,43 @@ export {
|
|
|
26758
26759
|
oy as TimeInput,
|
|
26759
26760
|
Lo as Toolbar,
|
|
26760
26761
|
qL as Tooltip,
|
|
26761
|
-
|
|
26762
|
+
AU as TopToolbar,
|
|
26762
26763
|
Mo as Transitions,
|
|
26763
|
-
|
|
26764
|
-
|
|
26765
|
-
|
|
26766
|
-
|
|
26767
|
-
|
|
26768
|
-
|
|
26769
|
-
|
|
26764
|
+
uU as choices,
|
|
26765
|
+
gU as email,
|
|
26766
|
+
dU as maxLength,
|
|
26767
|
+
fU as maxValue,
|
|
26768
|
+
pU as minLength,
|
|
26769
|
+
hU as minValue,
|
|
26770
|
+
EU as number,
|
|
26770
26771
|
vz as parseTime,
|
|
26771
|
-
|
|
26772
|
-
|
|
26772
|
+
CU as regex,
|
|
26773
|
+
IU as required,
|
|
26773
26774
|
ql as useAppConfig,
|
|
26774
|
-
|
|
26775
|
-
|
|
26775
|
+
BU as useArrayInput,
|
|
26776
|
+
mU as useAuthProvider,
|
|
26776
26777
|
mM as useBreadcrumbs,
|
|
26777
|
-
|
|
26778
|
-
|
|
26779
|
-
|
|
26780
|
-
|
|
26781
|
-
|
|
26782
|
-
|
|
26783
|
-
|
|
26778
|
+
QU as useDataProvider,
|
|
26779
|
+
yU as useGetIdentity,
|
|
26780
|
+
vU as useGetList,
|
|
26781
|
+
bU as useGetMany,
|
|
26782
|
+
xU as useGetManyReference,
|
|
26783
|
+
wU as useGetOne,
|
|
26784
|
+
TU as useListContext,
|
|
26784
26785
|
ZI as useLocalStorage,
|
|
26785
26786
|
XI as useMenu,
|
|
26786
26787
|
sr as useMenuConfig,
|
|
26787
|
-
|
|
26788
|
-
|
|
26789
|
-
|
|
26790
|
-
|
|
26791
|
-
|
|
26792
|
-
|
|
26788
|
+
PU as useNotify,
|
|
26789
|
+
RU as usePermissions,
|
|
26790
|
+
SU as useRecordContext,
|
|
26791
|
+
OU as useResourceContext,
|
|
26792
|
+
DU as useResourceDefinition,
|
|
26793
|
+
MU as useResourceDefinitions,
|
|
26793
26794
|
QM as useResourceTitle,
|
|
26794
26795
|
Xt as useThemeConfig,
|
|
26795
|
-
|
|
26796
|
-
|
|
26797
|
-
|
|
26798
|
-
|
|
26796
|
+
kU as useTranslate,
|
|
26797
|
+
FU as useUnselect,
|
|
26798
|
+
NU as useUnselectAll,
|
|
26799
|
+
LU as useUpdateMany,
|
|
26799
26800
|
O9 as uuid
|
|
26800
26801
|
};
|