@abgov/jsonforms-components 2.81.3 → 2.81.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 CHANGED
@@ -18009,12 +18009,16 @@ const FormStepperReviewer = props => {
18009
18009
  children: [summaryPageTitle && !jsonForms.readonly && jsx(FormStepperSummaryH3, {
18010
18010
  children: summaryPageTitle
18011
18011
  }), categories.map((category, categoryIndex) => {
18012
- var _category$options, _category$options$sec, _category$options2;
18012
+ var _category$options, _category$options2, _category$options$sec, _category$options3;
18013
18013
  // Preserve index stability
18014
18014
  if (!isVisible(category, data, '', ajv, undefined)) {
18015
18015
  return null;
18016
18016
  }
18017
18017
  const categoryLabel = category.label || category.i18n || 'Unknown Category';
18018
+ const isInTaskList = cat => {
18019
+ var _cat$options;
18020
+ return (cat == null || (_cat$options = cat.options) == null ? void 0 : _cat$options.showInTaskList) !== false;
18021
+ };
18018
18022
  // Build visible elements list
18019
18023
  const elementsToRender = category.elements.filter(field => hasVisibleContent(field)).map(e => {
18020
18024
  const layout = e;
@@ -18026,12 +18030,12 @@ const FormStepperReviewer = props => {
18026
18030
  }
18027
18031
  return e;
18028
18032
  }).flat();
18029
- // Do not render empty categories
18030
- if (elementsToRender.length === 0) {
18033
+ // Do not render empty categories or showInTaskList is false
18034
+ if (elementsToRender.length === 0 || !isInTaskList(category)) {
18031
18035
  return null;
18032
18036
  }
18033
18037
  //The tasklist can have a parent section title, we want to display if it exists
18034
- const sectionTitle = ((_category$options = category.options) == null ? void 0 : _category$options.showInTaskList) === true ? String((_category$options$sec = (_category$options2 = category.options) == null ? void 0 : _category$options2.sectionTitle) != null ? _category$options$sec : '').trim() : '';
18038
+ const sectionTitle = ((_category$options = category.options) == null ? void 0 : _category$options.showInTaskList) === true || ((_category$options2 = category.options) == null ? void 0 : _category$options2.showInTaskList) === undefined ? String((_category$options$sec = (_category$options3 = category.options) == null ? void 0 : _category$options3.sectionTitle) != null ? _category$options$sec : '').trim() : '';
18035
18039
  const showSectionTitle = sectionTitle !== '' && sectionTitle !== lastShownSectionTitle;
18036
18040
  if (showSectionTitle) {
18037
18041
  lastShownSectionTitle = sectionTitle;
@@ -18474,7 +18478,7 @@ function updateCompletion(group, index) {
18474
18478
  endIndex++;
18475
18479
  }
18476
18480
  const relevant = group.slice(index, endIndex + 1);
18477
- // A task is "completed" iff:
18481
+ // A task is "completed" if:
18478
18482
  // - the main row itself isCompleted, AND
18479
18483
  // - every detail page that is currently visible is also completed.
18480
18484
  const newIsCompleted = category.isCompleted && relevant.every(cat => !cat.visible || cat.isCompleted);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.81.3",
3
+ "version": "2.81.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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-11-02T22:14:11.713Z",
4
- "sourceCommit": "fc155eb29a47b9b04d5089c421c1e35794912e01",
3
+ "generatedAt": "2026-11-04T22:53:44.099Z",
4
+ "sourceCommit": "98468775f91361f7dc09a5cc2b1f94c1d25f2e42",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 23,
7
7
  "renderers": [