@abgov/jsonforms-components 1.14.3 → 1.14.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 +3 -4
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4207,9 +4207,6 @@ const FormStepper = props => {
|
|
|
4207
4207
|
if (page < 1 || page > categories.length + 1) return;
|
|
4208
4208
|
setShowNextBtn(categories.length + 1 !== page);
|
|
4209
4209
|
}
|
|
4210
|
-
const changePage = index => {
|
|
4211
|
-
setPage(index + 1);
|
|
4212
|
-
};
|
|
4213
4210
|
const updateInputStatus = inputStatus => {
|
|
4214
4211
|
inputStatuses[inputStatus.id] = inputStatus;
|
|
4215
4212
|
setInputStatuses(Object.assign({}, inputStatuses));
|
|
@@ -4281,12 +4278,14 @@ const FormStepper = props => {
|
|
|
4281
4278
|
children: categories.map((category, index) => {
|
|
4282
4279
|
const categoryLabel = category.label || category.i18n || 'Unknown Category';
|
|
4283
4280
|
const requiredFields = getAllRequiredFields(schema);
|
|
4281
|
+
const testId = `${categoryLabel}-review-link`;
|
|
4284
4282
|
return jsxs(ReviewItemSection, {
|
|
4285
4283
|
children: [jsxs(ReviewItemHeader, {
|
|
4286
4284
|
children: [jsx(ReviewItemTitle, {
|
|
4287
4285
|
children: categoryLabel
|
|
4288
4286
|
}), jsx(Anchor, {
|
|
4289
|
-
onClick: () =>
|
|
4287
|
+
onClick: () => setPage(index + 1),
|
|
4288
|
+
"data-testid": testId,
|
|
4290
4289
|
children: readOnly ? 'View' : 'Edit'
|
|
4291
4290
|
})]
|
|
4292
4291
|
}), jsx(Grid, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.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",
|