@applica-software-guru/react-admin 1.1.110 → 1.1.111
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-forms/Edit.d.ts.map +1 -1
- package/dist/components/ra-forms/Show.d.ts +13 -0
- package/dist/components/ra-forms/Show.d.ts.map +1 -0
- package/dist/components/ra-forms/index.d.ts +4 -3
- package/dist/components/ra-forms/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/react-admin.cjs.js +15 -15
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +2053 -2028
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +19 -19
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-forms/Edit.jsx +9 -0
- package/src/components/ra-forms/Show.tsx +22 -0
- package/src/components/ra-forms/index.jsx +8 -4
- package/src/index.jsx +1 -1
package/package.json
CHANGED
|
@@ -5,9 +5,18 @@ const StyledEdit = styled(RaEdit, {
|
|
|
5
5
|
name: 'RaApplicaEdit',
|
|
6
6
|
slot: 'root'
|
|
7
7
|
})(({ theme }) => ({
|
|
8
|
+
'&>.MuiToolbar-root:first-of-type': {
|
|
9
|
+
backgroundColor: theme.palette.background.default
|
|
10
|
+
},
|
|
11
|
+
'& .RaEdit-card': {
|
|
12
|
+
[theme.breakpoints.down('sm')]: {
|
|
13
|
+
marginBottom: theme.spacing(6)
|
|
14
|
+
}
|
|
15
|
+
},
|
|
8
16
|
'& .RaEdi-card, & > div > div > form': {
|
|
9
17
|
backgroundColor: theme.palette.background.default
|
|
10
18
|
},
|
|
19
|
+
|
|
11
20
|
'& .RaToolbar-mobileToolbar': {
|
|
12
21
|
borderTop: `1px solid ${theme.palette.divider}`
|
|
13
22
|
},
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Show as RaShow } from 'react-admin';
|
|
2
|
+
import { styled } from '@mui/material/styles';
|
|
3
|
+
|
|
4
|
+
const StyledShow = styled(RaShow, {
|
|
5
|
+
name: 'RaApplicaShow',
|
|
6
|
+
slot: 'root'
|
|
7
|
+
})(({ theme }) => ({
|
|
8
|
+
'&>.MuiToolbar-root:first-of-type': {
|
|
9
|
+
backgroundColor: theme.palette.background.default
|
|
10
|
+
},
|
|
11
|
+
'& .RaShow-card, & > div > div > form': {
|
|
12
|
+
backgroundColor: theme.palette.background.default
|
|
13
|
+
},
|
|
14
|
+
'& .RaShow-main>.MuiPaper-root:first-of-type': {
|
|
15
|
+
// Ci ho messo 4 ore per scrivere questa riga di codice e risolvere un problema con react-sticky-box ed i Long Form.
|
|
16
|
+
// L'overflow è di default 'hidden', a noi serve visibile per consentire a react-sticky-box di funzionare e gestire la visiblità con ancore
|
|
17
|
+
// di tutti gli elementi presenti all'interno della pagina.
|
|
18
|
+
overflow: 'visible'
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
21
|
+
|
|
22
|
+
export default StyledShow;
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
+
import Create, { useResourceDefaultValues } from './Create';
|
|
2
|
+
|
|
1
3
|
import CardForm from './CardForm';
|
|
2
4
|
import ChangePasswordForm from './ChangePasswordForm';
|
|
3
|
-
import Create, { useResourceDefaultValues } from './Create';
|
|
4
5
|
import Edit from './Edit';
|
|
5
6
|
import FormHeader from './FormHeader';
|
|
6
7
|
import LongForm from './LongForm';
|
|
8
|
+
import Show from './Show';
|
|
7
9
|
import SimpleForm from './SimpleForm';
|
|
8
10
|
import SimpleFormIterator from './SimpleFormIterator';
|
|
9
11
|
import TabbedForm from './TabbedForm';
|
|
10
12
|
import TableFormIterator from './TableForm';
|
|
11
13
|
import Toolbar from './Toolbar';
|
|
14
|
+
|
|
12
15
|
export {
|
|
13
|
-
Create,
|
|
14
|
-
useResourceDefaultValues,
|
|
15
16
|
CardForm,
|
|
16
17
|
ChangePasswordForm,
|
|
18
|
+
Create,
|
|
17
19
|
Edit,
|
|
18
20
|
FormHeader,
|
|
19
21
|
LongForm,
|
|
22
|
+
Show,
|
|
20
23
|
SimpleForm,
|
|
21
24
|
SimpleFormIterator,
|
|
22
25
|
TabbedForm,
|
|
23
26
|
TableFormIterator,
|
|
24
|
-
Toolbar
|
|
27
|
+
Toolbar,
|
|
28
|
+
useResourceDefaultValues
|
|
25
29
|
};
|
package/src/index.jsx
CHANGED
|
@@ -45,11 +45,11 @@ export {
|
|
|
45
45
|
Resource,
|
|
46
46
|
ResourceContextProvider,
|
|
47
47
|
SaveButton,
|
|
48
|
-
Show,
|
|
49
48
|
SimpleFormIterator as RaSimpleFormIterator,
|
|
50
49
|
SimpleFormIteratorContext,
|
|
51
50
|
SimpleList,
|
|
52
51
|
SingleFieldList,
|
|
52
|
+
SimpleShowLayout,
|
|
53
53
|
TopToolbar,
|
|
54
54
|
UrlField,
|
|
55
55
|
useArrayInput,
|