@abgov/jsonforms-components 2.32.7 → 2.33.0
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
CHANGED
|
@@ -10401,10 +10401,11 @@ const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellCom
|
|
|
10401
10401
|
children: [jsx("thead", {
|
|
10402
10402
|
children: jsxs("tr", {
|
|
10403
10403
|
children: [Object.entries(tableKeys).map(([value, index]) => {
|
|
10404
|
+
const currentProperty = properties[value];
|
|
10404
10405
|
if (!isInReview) {
|
|
10405
10406
|
return jsx("th", {
|
|
10406
10407
|
children: jsxs("p", {
|
|
10407
|
-
children: [convertToSentenceCase(index), (required === null || required === void 0 ? void 0 : required.includes(value)) && jsx(RequiredSpan, {
|
|
10408
|
+
children: [(currentProperty === null || currentProperty === void 0 ? void 0 : currentProperty.title) || convertToSentenceCase(index), (required === null || required === void 0 ? void 0 : required.includes(value)) && jsx(RequiredSpan, {
|
|
10408
10409
|
children: "(required)"
|
|
10409
10410
|
})]
|
|
10410
10411
|
})
|
|
@@ -10412,7 +10413,7 @@ const NonEmptyCellComponent$1 = /*#__PURE__*/React.memo(function NonEmptyCellCom
|
|
|
10412
10413
|
}
|
|
10413
10414
|
return jsx(TableTHHeader, {
|
|
10414
10415
|
children: jsxs("p", {
|
|
10415
|
-
children: [`${convertToSentenceCase(index)}`, (required === null || required === void 0 ? void 0 : required.includes(value)) && jsxs(RequiredSpan, {
|
|
10416
|
+
children: [`${(currentProperty === null || currentProperty === void 0 ? void 0 : currentProperty.title) || convertToSentenceCase(index)}`, (required === null || required === void 0 ? void 0 : required.includes(value)) && jsxs(RequiredSpan, {
|
|
10416
10417
|
children: [jsx("br", {}), " (required)"]
|
|
10417
10418
|
})]
|
|
10418
10419
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.0",
|
|
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",
|