@crystaldesign/forms 24.12.0-beta.3 → 24.12.0-beta.30
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 +9 -7
- package/build/types/forms/src/Form.d.ts +2 -1
- package/build/types/forms/src/Form.d.ts.map +1 -1
- package/build/types/forms/src/custom/material/index.d.ts.map +1 -1
- package/build/types/forms/src/custom/vanilla/index.d.ts.map +1 -1
- package/build/types/forms/src/custom/vanilla/layout/StyledHorizontalLayout.d.ts.map +1 -1
- package/build/types/forms/src/custom/vanilla/util/renderChildren.d.ts +2 -1
- package/build/types/forms/src/custom/vanilla/util/renderChildren.d.ts.map +1 -1
- package/package.json +14 -15
package/build/esm/index.js
CHANGED
|
@@ -8,7 +8,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 '@material-ui/core';
|
|
12
12
|
import { useTranslation, getLogger } from '@crystaldesign/diva-core';
|
|
13
13
|
|
|
14
14
|
(function() {
|
|
@@ -106,8 +106,10 @@ var MaterialLayoutRenderer = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
106
106
|
if (!elements || elements.length == 0) {
|
|
107
107
|
return null;
|
|
108
108
|
} else {
|
|
109
|
-
return /*#__PURE__*/jsx(
|
|
110
|
-
|
|
109
|
+
return /*#__PURE__*/jsx("div", {
|
|
110
|
+
style: visible ? undefined : {
|
|
111
|
+
display: 'node'
|
|
112
|
+
},
|
|
111
113
|
children: /*#__PURE__*/jsx(Grid, {
|
|
112
114
|
container: true,
|
|
113
115
|
direction: "row",
|
|
@@ -201,10 +203,10 @@ function useTranslatedSchema (schema, uiSchema) {
|
|
|
201
203
|
function translateJsonSchema(schema, t) {
|
|
202
204
|
var newSchema = _objectSpread$1({}, schema);
|
|
203
205
|
if (schema.title) {
|
|
204
|
-
newSchema.title = t(schema.title
|
|
206
|
+
newSchema.title = t(schema.title);
|
|
205
207
|
}
|
|
206
208
|
if (schema.description) {
|
|
207
|
-
newSchema.description = t(schema.description
|
|
209
|
+
newSchema.description = t(schema.description);
|
|
208
210
|
}
|
|
209
211
|
if (schema.properties) {
|
|
210
212
|
newSchema.properties = Object.fromEntries(Object.entries(schema.properties).map(function (_ref) {
|
|
@@ -221,7 +223,7 @@ function translateJsonSchema(schema, t) {
|
|
|
221
223
|
}
|
|
222
224
|
if (schema["enum"]) {
|
|
223
225
|
newSchema["enum"] = schema["enum"].map(function (e) {
|
|
224
|
-
return t(e
|
|
226
|
+
return t(e);
|
|
225
227
|
});
|
|
226
228
|
}
|
|
227
229
|
return newSchema;
|
|
@@ -229,7 +231,7 @@ function translateJsonSchema(schema, t) {
|
|
|
229
231
|
function translateUiSchema(schema, t) {
|
|
230
232
|
var newSchema = _objectSpread$1({}, schema);
|
|
231
233
|
if (schema.label) {
|
|
232
|
-
newSchema.label = t(schema.label
|
|
234
|
+
newSchema.label = t(schema.label);
|
|
233
235
|
}
|
|
234
236
|
if (schema.elements) {
|
|
235
237
|
newSchema.elements = schema.elements.map(function (e) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleDef } from '@jsonforms/vanilla-renderers';
|
|
2
3
|
import { JsonFormsCore, JsonFormsRendererRegistryEntry, JsonSchema7 } from '@jsonforms/core';
|
|
3
4
|
interface PropsMaterial extends BaseProps {
|
|
@@ -49,6 +50,6 @@ export type Props = PropsMaterial | PropsVanilla;
|
|
|
49
50
|
* other wise choose 'material' to get all components in the familiar material styling.
|
|
50
51
|
* @see https://jsonforms.io/docs
|
|
51
52
|
*/
|
|
52
|
-
export default function FormComponent({ schema, uischema, data, renderer, customRenderer, onChange, triggerAlways, ...other }: Props): JSX.Element | null;
|
|
53
|
+
export default function FormComponent({ schema, uischema, data, renderer, customRenderer, onChange, triggerAlways, ...other }: Props): React.JSX.Element | null;
|
|
53
54
|
export {};
|
|
54
55
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../src/Form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../src/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAwE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC9H,OAAO,EAAa,aAAa,EAAE,8BAA8B,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAOxG,UAAU,aAAc,SAAQ,SAAS;IACvC,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,UAAU,YAAa,SAAQ,SAAS;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,UAAU,SAAS;IACjB;;;OAGG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;;OAGG;IACH,QAAQ,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,cAAc,CAAC,EAAE,8BAA8B,EAAE,CAAC;IAClD;;;;OAIG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG,IAAI,CAAC;IAC/D;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,MAAM,KAAK,GAAG,aAAa,GAAG,YAAY,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,QAAoB,EACpB,cAAmB,EACnB,QAAQ,EACR,aAAa,EACb,GAAG,KAAK,EACT,EAAE,KAAK,4BAwDP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/custom/material/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/custom/material/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;wBAGoE;IACjH,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,GAAG,CAAC;CACf,EAAE;AAHH,wBAGI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/custom/vanilla/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/custom/vanilla/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;wBAGgD;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,EAAE;AAAxI,wBAAyI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/vanilla/layout/StyledHorizontalLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqC,YAAY,EAAsD,MAAM,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"StyledHorizontalLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/vanilla/layout/StyledHorizontalLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqC,YAAY,EAAsD,MAAM,iBAAiB,CAAC;wCAejF,IAAK,OAAO;AAWjE,wBAAiG;AAQjG;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,YAAwG,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { JsonSchema, Layout } from '@jsonforms/core';
|
|
2
|
-
declare const renderChildren: (layout: Layout, schema: JsonSchema, className: string, path: string) => JSX.Element[];
|
|
3
|
+
declare const renderChildren: (layout: Layout, schema: JsonSchema, className: string, path: string) => React.JSX.Element[];
|
|
3
4
|
export default renderChildren;
|
|
4
5
|
//# sourceMappingURL=renderChildren.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderChildren.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/vanilla/util/renderChildren.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderChildren.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom/vanilla/util/renderChildren.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGrD,QAAA,MAAM,cAAc,WAAY,MAAM,UAAU,UAAU,aAAa,MAAM,QAAQ,MAAM,wBAc1F,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/forms",
|
|
3
|
-
"version": "24.12.0-beta.
|
|
3
|
+
"version": "24.12.0-beta.30",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@testing-library/jest-dom": "^5.
|
|
7
|
-
"@testing-library/react": "^
|
|
8
|
-
"react": "
|
|
9
|
-
"react-dom": "
|
|
6
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
7
|
+
"@testing-library/react": "^16.0.1",
|
|
8
|
+
"react": "18.3.1",
|
|
9
|
+
"react-dom": "18.3.1"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@jsonforms/core": "^2.5.
|
|
13
|
-
"@jsonforms/material-renderers": "^2.5.
|
|
14
|
-
"@jsonforms/react": "^2.5.
|
|
15
|
-
"@jsonforms/vanilla-renderers": "^2.5.
|
|
12
|
+
"@jsonforms/core": "^2.5.2",
|
|
13
|
+
"@jsonforms/material-renderers": "^2.5.2",
|
|
14
|
+
"@jsonforms/react": "^2.5.2",
|
|
15
|
+
"@jsonforms/vanilla-renderers": "^2.5.2"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"@material-ui/
|
|
20
|
-
"
|
|
21
|
-
"react": "
|
|
22
|
-
"react-dom": "17.0.2"
|
|
18
|
+
"@material-ui/core": "^4.7.0",
|
|
19
|
+
"@material-ui/icons": "^4.5.1",
|
|
20
|
+
"react": "^18.3.1",
|
|
21
|
+
"react-dom": "^18.3.1"
|
|
23
22
|
},
|
|
24
23
|
"module": "build/esm/index.js",
|
|
25
24
|
"types": "./build/types/forms/src/index.d.ts",
|
|
26
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "ec82a762c9b8115bbad9dd79a5d0b4400ffb3c2f"
|
|
27
26
|
}
|