@abgov/jsonforms-components 2.3.2 → 2.3.3
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 +3 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -8528,11 +8528,11 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
|
|
|
8528
8528
|
"data-testid": `jsonforms-object-list-defined-elements-dispatch`,
|
|
8529
8529
|
schema: schema,
|
|
8530
8530
|
uischema: element,
|
|
8531
|
-
path: `${rowPath}
|
|
8531
|
+
path: `${rowPath}`,
|
|
8532
8532
|
enabled: enabled,
|
|
8533
8533
|
renderers: renderers,
|
|
8534
8534
|
cells: cells
|
|
8535
|
-
}, rowPath);
|
|
8535
|
+
}, `${rowPath}-${index}`);
|
|
8536
8536
|
}),
|
|
8537
8537
|
// eslint-disable-next-line
|
|
8538
8538
|
(_d = (_c = (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.detail) === null || _c === void 0 ? void 0 : _c.elements) === null || _d === void 0 ? void 0 : _d.map((element, index) => {
|
|
@@ -8697,7 +8697,7 @@ class ListWithDetailControl extends React.Component {
|
|
|
8697
8697
|
// eslint-disable-next-line
|
|
8698
8698
|
this.addItem = (path, value) => {
|
|
8699
8699
|
const pathIdValue = (path === null || path === void 0 ? void 0 : path.split('.')) || '';
|
|
8700
|
-
if (pathIdValue.length > 1 && +this.props.data
|
|
8700
|
+
if (pathIdValue.length > 1 && +this.props.data >= 0 || pathIdValue.length === 1) {
|
|
8701
8701
|
this.props.addItem(path, value)();
|
|
8702
8702
|
}
|
|
8703
8703
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
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",
|