@abgov/jsonforms-components 2.1.4 → 2.1.5
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/index.esm.js +4 -4
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -7678,7 +7678,7 @@ const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellCom
|
|
|
7678
7678
|
const properties = (schema === null || schema === void 0 ? void 0 : schema.items) && 'properties' in schema.items && schema.items.properties || {};
|
|
7679
7679
|
const required = (_a = schema.items) === null || _a === void 0 ? void 0 : _a.required;
|
|
7680
7680
|
const propertyKeys = Object.keys(properties);
|
|
7681
|
-
|
|
7681
|
+
extractNestedFields(properties, propertyKeys);
|
|
7682
7682
|
let tableKeys = extractNames((_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.detail);
|
|
7683
7683
|
if (Object.keys(tableKeys).length === 0) {
|
|
7684
7684
|
Object.keys(properties).forEach(item => {
|
|
@@ -7742,7 +7742,7 @@ const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellCom
|
|
|
7742
7742
|
const errorRow = errors === null || errors === void 0 ? void 0 : errors.find(error => error.instancePath.includes(`/${props.rowPath.replace(/\./g, '/')}/${i}`));
|
|
7743
7743
|
return jsxs("tr", {
|
|
7744
7744
|
children: [Object.keys(properties).map((element, ix) => {
|
|
7745
|
-
var _a
|
|
7745
|
+
var _a;
|
|
7746
7746
|
const dataObject = properties[element];
|
|
7747
7747
|
const schemaName = element;
|
|
7748
7748
|
const currentData = data && data[num] ? data[num][element] : '';
|
|
@@ -7762,7 +7762,7 @@ const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellCom
|
|
|
7762
7762
|
children: renderCellColumn({
|
|
7763
7763
|
currentData,
|
|
7764
7764
|
error: error === null || error === void 0 ? void 0 : error.message,
|
|
7765
|
-
isRequired:
|
|
7765
|
+
isRequired: required === null || required === void 0 ? void 0 : required.includes(tableKeys[element]),
|
|
7766
7766
|
errors: errors !== undefined ? errors : [],
|
|
7767
7767
|
count: count !== undefined ? count : -1,
|
|
7768
7768
|
element,
|
|
@@ -7774,7 +7774,7 @@ const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellCom
|
|
|
7774
7774
|
}
|
|
7775
7775
|
return jsx("td", {
|
|
7776
7776
|
children: jsx(GoAFormItem, {
|
|
7777
|
-
error: (
|
|
7777
|
+
error: (_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : '',
|
|
7778
7778
|
mb: errorRow && !error && '2xl' || 'xs',
|
|
7779
7779
|
children: dataObject.type === 'number' || dataObject.type === 'string' && !dataObject.enum ? jsx(GoAInput, {
|
|
7780
7780
|
error: (error === null || error === void 0 ? void 0 : error.message.length) > 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|