@applica-software-guru/react-admin 1.2.119 → 1.2.120
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/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-buttons/EditInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/Provider.d.ts.map +1 -1
- package/dist/components/ra-forms/SimpleForm.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +24 -24
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +46 -13
- 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/ra-buttons/CreateInDialogButton.tsx +12 -1
- package/src/components/ra-buttons/EditInDialogButton.jsx +12 -1
- package/src/components/ra-forms/LongForm/Provider.tsx +5 -4
- package/src/components/ra-forms/SimpleForm.tsx +5 -2
package/package.json
CHANGED
|
@@ -220,7 +220,18 @@ const CreateInDialogButton = ({
|
|
|
220
220
|
<Add />
|
|
221
221
|
</Button>
|
|
222
222
|
)}
|
|
223
|
-
<Dialog
|
|
223
|
+
<Dialog
|
|
224
|
+
open={open}
|
|
225
|
+
scroll="body"
|
|
226
|
+
sx={{
|
|
227
|
+
'& .MuiToolbar-root': {
|
|
228
|
+
position: 'initial'
|
|
229
|
+
}
|
|
230
|
+
}}
|
|
231
|
+
onClose={handleClose}
|
|
232
|
+
fullWidth={fullWidth}
|
|
233
|
+
maxWidth={maxWidth}
|
|
234
|
+
>
|
|
224
235
|
<CreateInDialogContent
|
|
225
236
|
{...props}
|
|
226
237
|
redirect={redirect}
|
|
@@ -80,7 +80,18 @@ const EditInDialogButton = ({ fullWidth, maxWidth, label, ...props }) => {
|
|
|
80
80
|
<Button label={label} onClick={handleOpen}>
|
|
81
81
|
<Edit />
|
|
82
82
|
</Button>
|
|
83
|
-
<Dialog
|
|
83
|
+
<Dialog
|
|
84
|
+
open={open}
|
|
85
|
+
scroll="body"
|
|
86
|
+
sx={{
|
|
87
|
+
'& .MuiToolbar-root': {
|
|
88
|
+
position: 'initial'
|
|
89
|
+
}
|
|
90
|
+
}}
|
|
91
|
+
onClose={handleClose}
|
|
92
|
+
fullWidth={fullWidth}
|
|
93
|
+
maxWidth={maxWidth}
|
|
94
|
+
>
|
|
84
95
|
<EditInDialogContent {...props} onClose={handleClose} />
|
|
85
96
|
</Dialog>
|
|
86
97
|
</>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createContext, useCallback, useContext, useEffect, useMemo, useReducer } from 'react';
|
|
2
|
-
import _ from 'lodash';
|
|
3
|
-
import { IItem } from './types';
|
|
4
2
|
import { matchPath, useLocation } from 'react-router';
|
|
3
|
+
|
|
4
|
+
import { IItem } from './types';
|
|
5
|
+
import _ from 'lodash';
|
|
5
6
|
import { getItemsIds } from './utils';
|
|
6
7
|
|
|
7
8
|
enum ActionType {
|
|
@@ -105,8 +106,8 @@ function Provider(props: IProviderProps) {
|
|
|
105
106
|
const matchStrings = [
|
|
106
107
|
'entities/:resource/create/*',
|
|
107
108
|
':resource/create/*',
|
|
108
|
-
'entities/:resource/:id/show',
|
|
109
|
-
':resource/:id/show',
|
|
109
|
+
'entities/:resource/:id/show/*',
|
|
110
|
+
':resource/:id/show/*',
|
|
110
111
|
'entities/:resource/:id/*',
|
|
111
112
|
':resource/:id/*'
|
|
112
113
|
];
|
|
@@ -18,8 +18,11 @@ const ApplicaStyledSimpleForm = styled(RaSimpleForm, {
|
|
|
18
18
|
slot: 'Root'
|
|
19
19
|
})(({ theme, modal }: { theme: any; modal: boolean }) => ({
|
|
20
20
|
'& .MuiGrid-root.MuiGrid-container': {
|
|
21
|
-
paddingBottom: theme.spacing(modal ?
|
|
22
|
-
} as any
|
|
21
|
+
paddingBottom: theme.spacing(modal ? 0 : 1)
|
|
22
|
+
} as any,
|
|
23
|
+
[theme.breakpoints.down('sm')]: {
|
|
24
|
+
paddingBottom: 0
|
|
25
|
+
}
|
|
23
26
|
}));
|
|
24
27
|
|
|
25
28
|
export type SimpleFormProps = RaSimpleFormProps & {
|