@applica-software-guru/react-admin 1.0.72 → 1.0.74
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-inputs/DateTimeInput.d.ts +22 -0
- package/dist/components/ra-inputs/DateTimeInput.d.ts.map +1 -0
- package/dist/components/ra-inputs/index.d.ts +3 -2
- package/dist/components/ra-inputs/index.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +50 -50
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +5864 -5800
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +51 -51
- package/dist/react-admin.umd.js.map +1 -1
- package/index.html +2 -0
- package/package.json +1 -1
- package/src/components/ra-inputs/DateTimeInput.tsx +32 -0
- package/src/components/ra-inputs/index.jsx +3 -1
- package/src/components/ra-lists/List.tsx +3 -3
package/index.html
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="theme-color" content="#f0f6ff" />
|
|
6
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
|
|
7
9
|
<title>React-Admin Demo Application</title>
|
|
8
10
|
</head>
|
|
9
11
|
<body>
|
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DateTimeInputProps, DateTimeInput as RaDateTimeInput } from 'react-admin';
|
|
2
|
+
|
|
3
|
+
import LabeledInput from './LabeledInput';
|
|
4
|
+
import { styled } from '@mui/material/styles';
|
|
5
|
+
|
|
6
|
+
const StyledDateInput = styled(RaDateTimeInput, {
|
|
7
|
+
name: 'RaApplicaDateTimeInput',
|
|
8
|
+
slot: 'root'
|
|
9
|
+
})(({ label }) => ({
|
|
10
|
+
'& legend': {
|
|
11
|
+
width: label === false ? 0 : 'auto'
|
|
12
|
+
}
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
const DateTimeInput = (props: DateTimeInputProps) => (
|
|
16
|
+
/** @ts-ignore */
|
|
17
|
+
<LabeledInput {...props}>
|
|
18
|
+
{/** @ts-ignore */}
|
|
19
|
+
<StyledDateInput />
|
|
20
|
+
</LabeledInput>
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
DateTimeInput.propTypes = {
|
|
24
|
+
...RaDateTimeInput.propTypes,
|
|
25
|
+
...LabeledInput.propTypes
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
DateTimeInput.defaultProps = {
|
|
29
|
+
...LabeledInput.defaultProps
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default DateTimeInput;
|
|
@@ -4,6 +4,7 @@ import AutocompleteArrayInput from './AutocompleteArrayInput';
|
|
|
4
4
|
import AutocompleteInput from './AutocompleteInput';
|
|
5
5
|
import BooleanInput from './BooleanInput';
|
|
6
6
|
import DateInput from './DateInput';
|
|
7
|
+
import DateTimeInput from './DateTimeInput';
|
|
7
8
|
import FileInput from './FileInput';
|
|
8
9
|
import ImageInput from './ImageInput';
|
|
9
10
|
import LabeledArrayInput from './LabeledArrayInput';
|
|
@@ -26,10 +27,11 @@ export {
|
|
|
26
27
|
AutocompleteInput,
|
|
27
28
|
BooleanInput,
|
|
28
29
|
DateInput,
|
|
30
|
+
DateTimeInput,
|
|
29
31
|
FileInput,
|
|
30
32
|
ImageInput,
|
|
31
|
-
LabeledInput,
|
|
32
33
|
LabeledArrayInput,
|
|
34
|
+
LabeledInput,
|
|
33
35
|
NumberInput,
|
|
34
36
|
RecordInput,
|
|
35
37
|
ReferenceArrayInput,
|
|
@@ -44,9 +44,9 @@ const ApplicaStyledList = styled(RaList, {
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
'& .RaList-actions': {
|
|
47
|
-
'& form': {
|
|
48
|
-
|
|
49
|
-
}
|
|
47
|
+
// '& form': {
|
|
48
|
+
padding: theme.spacing(2)
|
|
49
|
+
// }
|
|
50
50
|
},
|
|
51
51
|
'& .RaList-content': {
|
|
52
52
|
// Resolve an issue related to the visualization of the bulk actions toolbar.
|