@abgov/jsonforms-components 2.1.3 → 2.1.4
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 +2 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -7564,7 +7564,7 @@ const renderCellColumn = ({
|
|
|
7564
7564
|
const result = Object.keys(currentData);
|
|
7565
7565
|
if (result.length === 0) {
|
|
7566
7566
|
return renderWarningCell();
|
|
7567
|
-
} else if (result.length > 0 &&
|
|
7567
|
+
} else if (result.length > 0 && (isObjectArrayEmpty(currentData) || nestedErrors.length > 0)) {
|
|
7568
7568
|
return jsx("pre", {
|
|
7569
7569
|
children: renderWarningCell(JSON.stringify(currentData, null, 2))
|
|
7570
7570
|
});
|
|
@@ -7715,7 +7715,6 @@ const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellCom
|
|
|
7715
7715
|
children: [jsx("thead", {
|
|
7716
7716
|
children: jsxs("tr", {
|
|
7717
7717
|
children: [Object.entries(tableKeys).map(([value, index]) => {
|
|
7718
|
-
var _a;
|
|
7719
7718
|
if (!isInReview) {
|
|
7720
7719
|
return jsx("th", {
|
|
7721
7720
|
children: jsxs("p", {
|
|
@@ -7727,7 +7726,7 @@ const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellCom
|
|
|
7727
7726
|
}
|
|
7728
7727
|
return jsx(TableTHHeader, {
|
|
7729
7728
|
children: jsxs("p", {
|
|
7730
|
-
children: [`${convertToSentenceCase(index)}`, (
|
|
7729
|
+
children: [`${convertToSentenceCase(index)}`, (required === null || required === void 0 ? void 0 : required.includes(value)) && jsxs(RequiredSpan, {
|
|
7731
7730
|
children: [jsx("br", {}), " (required)"]
|
|
7732
7731
|
})]
|
|
7733
7732
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
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",
|