@abgov/jsonforms-components 2.79.0 → 2.79.2
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 +10 -5
- package/package.json +1 -1
- package/renderer-catalog.json +2 -2
package/index.esm.js
CHANGED
|
@@ -18190,7 +18190,10 @@ const RenderPages = props => {
|
|
|
18190
18190
|
}
|
|
18191
18191
|
};
|
|
18192
18192
|
const handleSave = () => {
|
|
18193
|
-
if
|
|
18193
|
+
// Ignore if we have the summary page hidden and are on the last step to allow the save form event handler
|
|
18194
|
+
// to fire to allow the consuming app to handle what actions needs to be done
|
|
18195
|
+
// as it will cause the step/page to not navigate anywhere if we dont.
|
|
18196
|
+
if (!saveForm || lastSavedDataRef.current === data && hideSummary === true && currentStep !== totalSteps) {
|
|
18194
18197
|
return;
|
|
18195
18198
|
}
|
|
18196
18199
|
lastSavedDataRef.current = data;
|
|
@@ -18268,15 +18271,17 @@ const RenderPages = props => {
|
|
|
18268
18271
|
children: jsx(GoabButton, {
|
|
18269
18272
|
type: "submit",
|
|
18270
18273
|
onClick: () => {
|
|
18274
|
+
if (currentStep === totalSteps && hideSummary) {
|
|
18275
|
+
handleSave();
|
|
18276
|
+
return;
|
|
18277
|
+
}
|
|
18271
18278
|
handleSave();
|
|
18272
18279
|
let nextId = activeId + 1;
|
|
18273
18280
|
while (nextId < categories.length && categories[nextId].visible === false) {
|
|
18274
18281
|
nextId = nextId + 1;
|
|
18275
18282
|
}
|
|
18276
|
-
|
|
18277
|
-
|
|
18278
|
-
setVisited(activeId);
|
|
18279
|
-
}
|
|
18283
|
+
goToPage(nextId);
|
|
18284
|
+
setVisited(activeId);
|
|
18280
18285
|
},
|
|
18281
18286
|
disabled: !enabled,
|
|
18282
18287
|
testId: "pages-save-continue-btn",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.79.
|
|
3
|
+
"version": "2.79.2",
|
|
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",
|
package/renderer-catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-10-16T15:49:46.071Z",
|
|
4
|
+
"sourceCommit": "e67361e621b104d80dd5540685cf85f7a57bf941",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 23,
|
|
7
7
|
"renderers": [
|