@applica-software-guru/react-admin 1.0.71 → 1.0.72
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/@extended/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/ra-fields/ReferenceManyField.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/LongFormView.d.ts.map +1 -1
- package/dist/components/ra-forms/Toolbar.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +34 -34
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1057 -1037
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +33 -33
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/@extended/Breadcrumbs.jsx +28 -16
- package/src/components/ra-fields/ReferenceManyField.jsx +10 -6
- package/src/components/ra-forms/LongForm/LongFormView.tsx +13 -4
- package/src/components/ra-forms/Toolbar.jsx +0 -1
package/package.json
CHANGED
|
@@ -93,6 +93,14 @@ const Breadcrumbs = ({
|
|
|
93
93
|
// item separator
|
|
94
94
|
const SeparatorIcon = separator;
|
|
95
95
|
const separatorIcon = separator ? <SeparatorIcon style={{ fontSize: '0.75rem', marginTop: 2 }} /> : '/';
|
|
96
|
+
const cardSx = {
|
|
97
|
+
mb: 2,
|
|
98
|
+
bgcolor: card === false ? 'transparent' : 'inherit',
|
|
99
|
+
...sx,
|
|
100
|
+
[theme.breakpoints.down('sm')]: {
|
|
101
|
+
mb: 1
|
|
102
|
+
}
|
|
103
|
+
};
|
|
96
104
|
|
|
97
105
|
let mainContent;
|
|
98
106
|
let itemContent;
|
|
@@ -102,13 +110,7 @@ const Breadcrumbs = ({
|
|
|
102
110
|
let ItemIcon;
|
|
103
111
|
if (mode === 'breadcrumbs') {
|
|
104
112
|
return (
|
|
105
|
-
<MainCard
|
|
106
|
-
border={card}
|
|
107
|
-
sx={card === false ? { mb: 3, bgcolor: 'transparent', ...sx } : { mb: 3, ...sx }}
|
|
108
|
-
{...others}
|
|
109
|
-
content={card}
|
|
110
|
-
shadow="none"
|
|
111
|
-
>
|
|
113
|
+
<MainCard border={card} sx={cardSx} {...others} content={card} shadow="none">
|
|
112
114
|
<Grid
|
|
113
115
|
container
|
|
114
116
|
direction={rightAlign ? 'row' : 'column'}
|
|
@@ -122,7 +124,16 @@ const Breadcrumbs = ({
|
|
|
122
124
|
</Grid>
|
|
123
125
|
)}
|
|
124
126
|
<Grid item>
|
|
125
|
-
<MuiBreadcrumbs
|
|
127
|
+
<MuiBreadcrumbs
|
|
128
|
+
aria-label="breadcrumb"
|
|
129
|
+
maxItems={maxItems || 8}
|
|
130
|
+
separator={separatorIcon}
|
|
131
|
+
sx={{
|
|
132
|
+
[theme.breakpoints.down('sm')]: {
|
|
133
|
+
mt: 1
|
|
134
|
+
}
|
|
135
|
+
}}
|
|
136
|
+
>
|
|
126
137
|
{home !== false && (
|
|
127
138
|
<Typography component={Link} to="/" color="textSecondary" variant="h6" sx={{ textDecoration: 'none' }}>
|
|
128
139
|
{icons && <HomeOutlined style={iconSX} />}
|
|
@@ -159,13 +170,7 @@ const Breadcrumbs = ({
|
|
|
159
170
|
</Typography>
|
|
160
171
|
);
|
|
161
172
|
breadcrumbContent = (
|
|
162
|
-
<MainCard
|
|
163
|
-
border={card}
|
|
164
|
-
sx={card === false ? { mb: 3, bgcolor: 'transparent', ...sx } : { mb: 3, ...sx }}
|
|
165
|
-
{...others}
|
|
166
|
-
content={card}
|
|
167
|
-
shadow="none"
|
|
168
|
-
>
|
|
173
|
+
<MainCard border={card} sx={cardSx} {...others} content={card} shadow="none">
|
|
169
174
|
<Grid
|
|
170
175
|
container
|
|
171
176
|
direction={rightAlign ? 'row' : 'column'}
|
|
@@ -221,7 +226,14 @@ const Breadcrumbs = ({
|
|
|
221
226
|
breadcrumbContent = (
|
|
222
227
|
<MainCard
|
|
223
228
|
border={card}
|
|
224
|
-
sx={
|
|
229
|
+
sx={{
|
|
230
|
+
mb: 3,
|
|
231
|
+
bgcolor: card === false ? 'transparent' : 'inherit',
|
|
232
|
+
...sx,
|
|
233
|
+
[theme.breakpoints.down('sm')]: {
|
|
234
|
+
mb: 1
|
|
235
|
+
}
|
|
236
|
+
}}
|
|
225
237
|
{...others}
|
|
226
238
|
content={card}
|
|
227
239
|
shadow="none"
|
|
@@ -15,18 +15,22 @@ const StyledRoot = styled('div', {
|
|
|
15
15
|
borderTop: border ? `1px solid ${theme.palette.divider}` : 'none'
|
|
16
16
|
},
|
|
17
17
|
'& .MuiToolbar-root': {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
[theme.breakpoints.up('sm')]: {
|
|
19
|
+
marginTop: `-${theme.spacing(2)}`,
|
|
20
|
+
marginBottom: theme.spacing(margin ? 0 : 1),
|
|
21
|
+
marginLeft: theme.spacing(margin ? 1 : 2.5),
|
|
22
|
+
marginRight: theme.spacing(margin ? 1 : 2.5),
|
|
23
|
+
width: margin ? 'auto' : `calc(100% - ${theme.spacing(5)})`
|
|
24
|
+
},
|
|
23
25
|
[theme.breakpoints.down('md')]: {
|
|
24
26
|
marginTop: 0
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
'& .RaDatagrid-root': {
|
|
28
30
|
overflowX: 'auto',
|
|
29
|
-
|
|
31
|
+
[theme.breakpoints.down('sm')]: {
|
|
32
|
+
width: 'calc(100vw - 34px)'
|
|
33
|
+
}
|
|
30
34
|
},
|
|
31
35
|
'& .RaDatagrid-table': {
|
|
32
36
|
borderBottom: `1px solid ${theme.palette.divider}`
|
|
@@ -16,16 +16,25 @@ const StyledGrid = styled(Grid, {
|
|
|
16
16
|
slot: 'Root'
|
|
17
17
|
})(({ theme }) => ({
|
|
18
18
|
'& .MuiToolbar-root': {
|
|
19
|
+
position: 'initial',
|
|
19
20
|
marginTop: theme.spacing(2),
|
|
20
|
-
marginLeft: `-${theme.spacing(
|
|
21
|
-
marginRight: `-${theme.spacing(
|
|
21
|
+
marginLeft: `-${theme.spacing(3)}`,
|
|
22
|
+
marginRight: `-${theme.spacing(3)}`,
|
|
22
23
|
marginBottom: `-${theme.spacing(2)}`,
|
|
23
|
-
borderTop: `1px solid ${theme.palette.divider}
|
|
24
|
+
borderTop: `1px solid ${theme.palette.divider}`,
|
|
25
|
+
[theme.breakpoints.down('sm')]: {
|
|
26
|
+
position: 'initial !important',
|
|
27
|
+
width: 'auto !important'
|
|
28
|
+
}
|
|
24
29
|
},
|
|
25
30
|
'& form > .MuiToolbar-root': {
|
|
26
31
|
// È molto importante: questa regola serve per poter inserire form, all'interno di altri form, evitando
|
|
27
32
|
// che la toolbar del form interno recepisca gli stili della regola precedente (che genera un padding strano).
|
|
28
|
-
margin: 0
|
|
33
|
+
margin: 0,
|
|
34
|
+
marginRight: `-${theme.spacing(0.5)}`,
|
|
35
|
+
[theme.breakpoints.down('sm')]: {
|
|
36
|
+
marginRight: theme.spacing(0.5)
|
|
37
|
+
}
|
|
29
38
|
}
|
|
30
39
|
}));
|
|
31
40
|
|