@jsonforms/material-renderers 3.4.1-beta.0 → 3.5.0-beta.0
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/additional/unwrapped.d.ts +0 -1
- package/lib/complex/unwrapped.d.ts +0 -1
- package/lib/controls/unwrapped.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/jsonforms-react-material.cjs.js +1 -1
- package/lib/jsonforms-react-material.cjs.js.map +1 -1
- package/lib/jsonforms-react-material.esm.js +2 -2
- package/lib/jsonforms-react-material.esm.js.map +1 -1
- package/lib/layouts/unwrapped.d.ts +0 -1
- package/lib/util/layout.d.ts +1 -1
- package/lib/util/theme.d.ts +0 -1
- package/package.json +6 -6
- package/src/complex/MaterialTableControl.tsx +4 -5
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const UnwrappedLayouts: {
|
|
3
2
|
ExpandPanelRenderer: import("react").MemoExoticComponent<(props: import("./ExpandPanelRenderer").ExpandPanelProps) => import("react").JSX.Element>;
|
|
4
3
|
MaterialArrayLayout: ({ visible, addItem, translations, ...props }: import("@jsonforms/core").ArrayLayoutProps & {
|
package/lib/util/layout.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const MaterialLayoutRenderer: React.MemoExoticComponent<({ visibl
|
|
|
11
11
|
export interface AjvProps {
|
|
12
12
|
ajv: Ajv;
|
|
13
13
|
}
|
|
14
|
-
export declare const withAjvProps: <P extends {}>(Component:
|
|
14
|
+
export declare const withAjvProps: <P extends {}>(Component: ComponentType<AjvProps & P>) => (props: P) => React.JSX.Element;
|
|
15
15
|
export interface MaterialLabelableLayoutRendererProps extends MaterialLayoutRendererProps {
|
|
16
16
|
label?: string;
|
|
17
17
|
}
|
package/lib/util/theme.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsonforms/material-renderers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0-beta.0",
|
|
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.5.0-beta.0",
|
|
77
|
+
"@jsonforms/react": "3.5.0-beta.0",
|
|
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",
|
|
@@ -122,12 +122,12 @@
|
|
|
122
122
|
"ts-loader": "^9.5.1",
|
|
123
123
|
"tslib": "^2.5.0",
|
|
124
124
|
"typedoc": "~0.25.3",
|
|
125
|
-
"typescript": "~5.
|
|
125
|
+
"typescript": "~5.5.0",
|
|
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.5.0-beta.0",
|
|
130
|
+
"@jsonforms/react": "3.5.0-beta.0"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
133
|
"build": "rollup -c rollup.config.js",
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
import {
|
|
48
48
|
ArrayLayoutProps,
|
|
49
49
|
ControlElement,
|
|
50
|
-
|
|
50
|
+
errorAt,
|
|
51
51
|
formatErrorMessage,
|
|
52
52
|
JsonSchema,
|
|
53
53
|
Paths,
|
|
@@ -177,11 +177,10 @@ const ctxToNonEmptyCellProps = (
|
|
|
177
177
|
(ownProps.schema.type === 'object' ? '.' + ownProps.propName : '');
|
|
178
178
|
const errors = formatErrorMessage(
|
|
179
179
|
union(
|
|
180
|
-
|
|
180
|
+
errorAt(
|
|
181
181
|
path,
|
|
182
|
-
ownProps.schema
|
|
183
|
-
|
|
184
|
-
)(ctx.core.errors).map((error: ErrorObject) => error.message)
|
|
182
|
+
ownProps.schema
|
|
183
|
+
)(ctx.core).map((error: ErrorObject) => error.message)
|
|
185
184
|
)
|
|
186
185
|
);
|
|
187
186
|
return {
|