@crystaldesign/forms 24.12.0-rc.9 → 24.12.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/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# JSON Forms Wrapper
|
|
2
|
-
|
|
3
|
-
A wrapper to the generic forms library Jsonforms.io.
|
|
4
|
-
|
|
5
|
-
Currently two renderer types are supported, _material_ and _vanilla_.
|
|
6
|
-
|
|
7
|
-
## Custom Component Renderer
|
|
8
|
-
|
|
9
|
-
Additional to the standard components other custom renderer are included.
|
|
10
|
-
|
|
11
|
-
### Vanilla
|
|
12
|
-
|
|
13
|
-
- StyledHorizontalLayout: It is used if the crrent uiSchema or on of its children has the option _layoutStyling_. It allows to set any styling to the layout.
|
|
14
|
-
|
|
15
|
-
### Material
|
|
16
|
-
|
|
17
|
-
- ExtendedMaterialHorizontalLayout:: It is used if a child has the _xs_ options set. It allows the define the equaliy named property of the Material Grid.
|
|
1
|
+
# JSON Forms Wrapper
|
|
2
|
+
|
|
3
|
+
A wrapper to the generic forms library Jsonforms.io.
|
|
4
|
+
|
|
5
|
+
Currently two renderer types are supported, _material_ and _vanilla_.
|
|
6
|
+
|
|
7
|
+
## Custom Component Renderer
|
|
8
|
+
|
|
9
|
+
Additional to the standard components other custom renderer are included.
|
|
10
|
+
|
|
11
|
+
### Vanilla
|
|
12
|
+
|
|
13
|
+
- StyledHorizontalLayout: It is used if the crrent uiSchema or on of its children has the option _layoutStyling_. It allows to set any styling to the layout.
|
|
14
|
+
|
|
15
|
+
### Material
|
|
16
|
+
|
|
17
|
+
- ExtendedMaterialHorizontalLayout:: It is used if a child has the _xs_ options set. It allows the define the equaliy named property of the Material Grid.
|
package/build/esm/index.js
CHANGED
|
@@ -68,8 +68,8 @@ var StyledHorizontalLayoutRenderer = function StyledHorizontalLayoutRenderer(_re
|
|
|
68
68
|
};
|
|
69
69
|
var StyledHorizontalLayout = withVanillaControlProps(withJsonFormsLayoutProps(StyledHorizontalLayoutRenderer));
|
|
70
70
|
|
|
71
|
-
/**
|
|
72
|
-
* Tests if there is a custom style specifed
|
|
71
|
+
/**
|
|
72
|
+
* Tests if there is a custom style specifed
|
|
73
73
|
*/
|
|
74
74
|
var hasStyleOptions = function hasStyleOptions(uischema) {
|
|
75
75
|
return !!Object.keys(uischema.options || {}).find(function (k) {
|
|
@@ -81,9 +81,9 @@ var hasChildStyleOptions = function hasChildStyleOptions(uischema) {
|
|
|
81
81
|
return (_elements = uischema.elements) === null || _elements === void 0 ? void 0 : _elements.some(hasStyleOptions);
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
* Tester for a styled horizontal layout.
|
|
86
|
-
* @type {RankedTester}
|
|
84
|
+
/**
|
|
85
|
+
* Tester for a styled horizontal layout.
|
|
86
|
+
* @type {RankedTester}
|
|
87
87
|
*/
|
|
88
88
|
var styledHorizontalLayoutTester = rankWith(2, and(uiTypeIs('HorizontalLayout'), or(hasStyleOptions, hasChildStyleOptions)));
|
|
89
89
|
|
|
@@ -156,8 +156,8 @@ var ExtendedMaterialHorizontalLayoutRenderer = function ExtendedMaterialHorizont
|
|
|
156
156
|
};
|
|
157
157
|
var ExtendedMaterialHorizontalLayout = withJsonFormsLayoutProps(ExtendedMaterialHorizontalLayoutRenderer);
|
|
158
158
|
|
|
159
|
-
/**
|
|
160
|
-
* Tests if there is a custom style specifed
|
|
159
|
+
/**
|
|
160
|
+
* Tests if there is a custom style specifed
|
|
161
161
|
*/
|
|
162
162
|
var hasAdditionalOptions = function hasAdditionalOptions(uischema) {
|
|
163
163
|
return !!Object.keys(uischema.options || {}).find(function (k) {
|
|
@@ -246,12 +246,12 @@ var _excluded = ["schema", "uischema", "data", "renderer", "customRenderer", "on
|
|
|
246
246
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
247
247
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
248
248
|
var LOG = getLogger('Framework', 'Form');
|
|
249
|
-
/**
|
|
250
|
-
* A generic form component based on jsonforms.io
|
|
251
|
-
*
|
|
252
|
-
* If you want to compleatly control the look and feel via css classes, please choose 'vanilla' as renderer,
|
|
253
|
-
* other wise choose 'material' to get all components in the familiar material styling.
|
|
254
|
-
* @see https://jsonforms.io/docs
|
|
249
|
+
/**
|
|
250
|
+
* A generic form component based on jsonforms.io
|
|
251
|
+
*
|
|
252
|
+
* If you want to compleatly control the look and feel via css classes, please choose 'vanilla' as renderer,
|
|
253
|
+
* other wise choose 'material' to get all components in the familiar material styling.
|
|
254
|
+
* @see https://jsonforms.io/docs
|
|
255
255
|
*/
|
|
256
256
|
function FormComponent(_ref) {
|
|
257
257
|
var schema = _ref.schema,
|
|
@@ -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;wCAejG,IAAK,OAAO;AAWjD,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.12.
|
|
3
|
+
"version": "24.12.1",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
},
|
|
23
23
|
"module": "build/esm/index.js",
|
|
24
24
|
"types": "./build/types/forms/src/index.d.ts",
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "10505d5064511472829e3a6dbf82b1a961fe6e53"
|
|
26
26
|
}
|