@crystaldesign/forms 24.14.0-beta.9 → 24.15.0-beta.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/build/esm/index.js +7 -6
- package/build/types/forms/src/custom/material/layout/ExtendedMaterialHorizontalLayout.d.ts +2 -2
- package/build/types/forms/src/custom/material/layout/ExtendedMaterialHorizontalLayout.d.ts.map +1 -1
- package/build/types/forms/src/custom/vanilla/layout/StyledHorizontalLayout.d.ts +2 -1
- package/build/types/forms/src/custom/vanilla/layout/StyledHorizontalLayout.d.ts.map +1 -1
- package/package.json +8 -8
package/build/esm/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import React, { useState, useEffect, useMemo } from 'react';
|
|
6
|
-
import { useJsonForms, ResolvedJsonFormsDispatch, withJsonFormsLayoutProps,
|
|
6
|
+
import { useJsonForms, ResolvedJsonFormsDispatch, withJsonFormsLayoutProps, JsonFormsDispatch, JsonForms } from '@jsonforms/react';
|
|
7
7
|
import { materialRenderers, materialCells } from '@jsonforms/material-renderers';
|
|
8
8
|
import { withVanillaControlProps, JsonFormsStyleContext, vanillaStyles, vanillaRenderers, vanillaCells } from '@jsonforms/vanilla-renderers';
|
|
9
9
|
import { rankWith, and, uiTypeIs, or, createAjv } from '@jsonforms/core';
|
|
10
10
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
11
|
-
import
|
|
11
|
+
import Grid from '@mui/material/Grid2';
|
|
12
12
|
import { useTranslation, getLogger } from '@crystaldesign/diva-core';
|
|
13
13
|
|
|
14
14
|
(function() {
|
|
@@ -117,9 +117,8 @@ var MaterialLayoutRenderer = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
117
117
|
children: elements.map(function (child, index) {
|
|
118
118
|
var _child$options;
|
|
119
119
|
return /*#__PURE__*/jsx(Grid, {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
children: /*#__PURE__*/jsx(ResolvedJsonFormsDispatch, {
|
|
120
|
+
size: ((_child$options = child.options) === null || _child$options === void 0 ? void 0 : _child$options.xs) || true,
|
|
121
|
+
children: /*#__PURE__*/jsx(JsonFormsDispatch, {
|
|
123
122
|
uischema: child,
|
|
124
123
|
schema: schema,
|
|
125
124
|
path: path,
|
|
@@ -132,7 +131,9 @@ var MaterialLayoutRenderer = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
132
131
|
})
|
|
133
132
|
});
|
|
134
133
|
}
|
|
135
|
-
},
|
|
134
|
+
}, function (prevProps, nextProps) {
|
|
135
|
+
return prevProps.visible === nextProps.visible && prevProps.elements === nextProps.elements && prevProps.schema === nextProps.schema && prevProps.path === nextProps.path && prevProps.enabled === nextProps.enabled && prevProps.renderers === nextProps.renderers && prevProps.cells === nextProps.cells;
|
|
136
|
+
});
|
|
136
137
|
var ExtendedMaterialHorizontalLayoutRenderer = function ExtendedMaterialHorizontalLayoutRenderer(_ref2) {
|
|
137
138
|
var uischema = _ref2.uischema,
|
|
138
139
|
renderers = _ref2.renderers,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RankedTester } from '@jsonforms/core';
|
|
3
|
-
declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfLayout>;
|
|
2
|
+
import { LayoutProps, RankedTester } from '@jsonforms/core';
|
|
3
|
+
declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const extendedMaterialHorizontalLayoutTester: RankedTester;
|
|
6
6
|
//# sourceMappingURL=ExtendedMaterialHorizontalLayout.d.ts.map
|
package/build/types/forms/src/custom/material/layout/ExtendedMaterialHorizontalLayout.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedMaterialHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/material/layout/ExtendedMaterialHorizontalLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"ExtendedMaterialHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/material/layout/ExtendedMaterialHorizontalLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiC,WAAW,EAAsB,YAAY,EAAuC,MAAM,iBAAiB,CAAC;;AAmDpJ,wBAAkF;AAQlF,eAAO,MAAM,sCAAsC,EAAE,YAAwF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { RankedTester } from '@jsonforms/core';
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
3
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
4
|
export default _default;
|
|
4
5
|
/**
|
|
5
6
|
* Tester for a styled horizontal layout.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/vanilla/layout/StyledHorizontalLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StyledHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/vanilla/layout/StyledHorizontalLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAqC,YAAY,EAAsD,MAAM,iBAAiB,CAAC;wCAsCP,MAAO,GAAG,CAAC,OAAO;AAZjJ,wBAAiG;AAQjG;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,YAAwG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/forms",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.15.0-beta.1",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
"react-dom": "18.3.1"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@jsonforms/core": "^
|
|
13
|
-
"@jsonforms/material-renderers": "^
|
|
14
|
-
"@jsonforms/react": "^
|
|
15
|
-
"@jsonforms/vanilla-renderers": "^
|
|
12
|
+
"@jsonforms/core": "^3.4.1",
|
|
13
|
+
"@jsonforms/material-renderers": "^3.4.1",
|
|
14
|
+
"@jsonforms/react": "^3.4.1",
|
|
15
|
+
"@jsonforms/vanilla-renderers": "^3.4.1"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@material
|
|
19
|
-
"@material
|
|
18
|
+
"@mui/icons-material": "^6.1.5",
|
|
19
|
+
"@mui/material": "^6.1.5",
|
|
20
20
|
"react": "^18.3.1",
|
|
21
21
|
"react-dom": "^18.3.1"
|
|
22
22
|
},
|
|
23
23
|
"module": "build/esm/index.js",
|
|
24
24
|
"types": "./build/types/forms/src/index.d.ts",
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "405c8fe717abfe89328865a7180e939afe203efe"
|
|
26
26
|
}
|