@jsonforms/material-renderers 3.5.1 → 3.6.0-alpha.1
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/lib/jsonforms-react-material.cjs.js +9 -9
- package/lib/jsonforms-react-material.cjs.js.map +1 -1
- package/lib/jsonforms-react-material.esm.js +10 -10
- package/lib/jsonforms-react-material.esm.js.map +1 -1
- package/lib/util/layout.d.ts +1 -1
- package/package.json +5 -5
- package/src/additional/ListWithDetailMasterItem.tsx +3 -3
- package/src/mui-controls/MuiInputInteger.tsx +2 -0
- package/src/mui-controls/MuiInputNumber.tsx +2 -0
- package/src/mui-controls/MuiInputTime.tsx +2 -0
- package/src/mui-controls/MuiSelect.tsx +2 -0
- package/src/util/layout.tsx +1 -1
package/lib/util/layout.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
|
-
import Ajv from 'ajv';
|
|
2
|
+
import type Ajv from 'ajv';
|
|
3
3
|
import type { UISchemaElement } from '@jsonforms/core';
|
|
4
4
|
import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, OwnPropsOfRenderer } from '@jsonforms/core';
|
|
5
5
|
export declare const renderLayoutElements: (elements: UISchemaElement[], schema: JsonSchema, path: string, enabled: boolean, renderers?: JsonFormsRendererRegistryEntry[], cells?: JsonFormsCellRendererRegistryEntry[]) => React.JSX.Element[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsonforms/material-renderers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-alpha.1",
|
|
4
4
|
"description": "Material Renderer Set for JSON Forms",
|
|
5
5
|
"repository": "https://github.com/eclipsesource/jsonforms",
|
|
6
6
|
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@emotion/react": "^11.4.1",
|
|
75
75
|
"@emotion/styled": "^11.3.0",
|
|
76
|
-
"@jsonforms/core": "3.
|
|
77
|
-
"@jsonforms/react": "3.
|
|
76
|
+
"@jsonforms/core": "3.6.0-alpha.1",
|
|
77
|
+
"@jsonforms/react": "3.6.0-alpha.1",
|
|
78
78
|
"@mui/icons-material": "^5.11.16 || ^6.0.0",
|
|
79
79
|
"@mui/material": "^5.13.0 || ^6.0.0",
|
|
80
80
|
"@mui/x-date-pickers": "^6.0.0 || ^7.0.0",
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
"webpack": "^5.78.0",
|
|
127
127
|
"webpack-cli": "^5.1.4",
|
|
128
128
|
"webpack-dev-server": "^4.15.1",
|
|
129
|
-
"@jsonforms/core": "3.
|
|
130
|
-
"@jsonforms/react": "3.
|
|
129
|
+
"@jsonforms/core": "3.6.0-alpha.1",
|
|
130
|
+
"@jsonforms/react": "3.6.0-alpha.1"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
133
|
"build": "rollup -c rollup.config.js",
|
|
@@ -27,7 +27,7 @@ import { withJsonFormsMasterListItemProps } from '@jsonforms/react';
|
|
|
27
27
|
import {
|
|
28
28
|
Avatar,
|
|
29
29
|
IconButton,
|
|
30
|
-
|
|
30
|
+
ListItemButton,
|
|
31
31
|
ListItemAvatar,
|
|
32
32
|
ListItemSecondaryAction,
|
|
33
33
|
ListItemText,
|
|
@@ -48,7 +48,7 @@ export const ListWithDetailMasterItem = ({
|
|
|
48
48
|
disableRemove,
|
|
49
49
|
}: StatePropsOfMasterItem) => {
|
|
50
50
|
return (
|
|
51
|
-
<
|
|
51
|
+
<ListItemButton selected={selected} onClick={handleSelect(index)}>
|
|
52
52
|
<ListItemAvatar>
|
|
53
53
|
<Avatar aria-label='Index'>{index + 1}</Avatar>
|
|
54
54
|
</ListItemAvatar>
|
|
@@ -70,7 +70,7 @@ export const ListWithDetailMasterItem = ({
|
|
|
70
70
|
</Tooltip>
|
|
71
71
|
</ListItemSecondaryAction>
|
|
72
72
|
)}
|
|
73
|
-
</
|
|
73
|
+
</ListItemButton>
|
|
74
74
|
);
|
|
75
75
|
};
|
|
76
76
|
|
|
@@ -40,6 +40,7 @@ export const MuiInputInteger = React.memo(function MuiInputInteger(
|
|
|
40
40
|
id,
|
|
41
41
|
enabled,
|
|
42
42
|
uischema,
|
|
43
|
+
isValid,
|
|
43
44
|
path,
|
|
44
45
|
handleChange,
|
|
45
46
|
config,
|
|
@@ -70,6 +71,7 @@ export const MuiInputInteger = React.memo(function MuiInputInteger(
|
|
|
70
71
|
autoFocus={appliedUiSchemaOptions.focus}
|
|
71
72
|
inputProps={inputProps}
|
|
72
73
|
fullWidth={true}
|
|
74
|
+
error={!isValid}
|
|
73
75
|
/>
|
|
74
76
|
);
|
|
75
77
|
});
|
|
@@ -39,6 +39,7 @@ export const MuiInputNumber = React.memo(function MuiInputNumber(
|
|
|
39
39
|
id,
|
|
40
40
|
enabled,
|
|
41
41
|
uischema,
|
|
42
|
+
isValid,
|
|
42
43
|
path,
|
|
43
44
|
handleChange,
|
|
44
45
|
config,
|
|
@@ -68,6 +69,7 @@ export const MuiInputNumber = React.memo(function MuiInputNumber(
|
|
|
68
69
|
autoFocus={appliedUiSchemaOptions.focus}
|
|
69
70
|
inputProps={inputProps}
|
|
70
71
|
fullWidth={true}
|
|
72
|
+
error={!isValid}
|
|
71
73
|
/>
|
|
72
74
|
);
|
|
73
75
|
});
|
|
@@ -36,6 +36,7 @@ export const MuiInputTime = React.memo(function MuiInputTime(
|
|
|
36
36
|
id,
|
|
37
37
|
enabled,
|
|
38
38
|
uischema,
|
|
39
|
+
isValid,
|
|
39
40
|
path,
|
|
40
41
|
handleChange,
|
|
41
42
|
config,
|
|
@@ -61,6 +62,7 @@ export const MuiInputTime = React.memo(function MuiInputTime(
|
|
|
61
62
|
disabled={!enabled}
|
|
62
63
|
autoFocus={appliedUiSchemaOptions.focus}
|
|
63
64
|
fullWidth={true}
|
|
65
|
+
error={!isValid}
|
|
64
66
|
/>
|
|
65
67
|
);
|
|
66
68
|
});
|
|
@@ -44,6 +44,7 @@ export const MuiSelect = React.memo(function MuiSelect(
|
|
|
44
44
|
enabled,
|
|
45
45
|
schema,
|
|
46
46
|
uischema,
|
|
47
|
+
isValid,
|
|
47
48
|
path,
|
|
48
49
|
handleChange,
|
|
49
50
|
options,
|
|
@@ -69,6 +70,7 @@ export const MuiSelect = React.memo(function MuiSelect(
|
|
|
69
70
|
onChange={(ev) => handleChange(path, ev.target.value || undefined)}
|
|
70
71
|
fullWidth={true}
|
|
71
72
|
multiple={multiple || false}
|
|
73
|
+
error={!isValid}
|
|
72
74
|
>
|
|
73
75
|
{[
|
|
74
76
|
<MenuItem value={''} key='jsonforms.enum.none'>
|
package/src/util/layout.tsx
CHANGED