@abgov/jsonforms-components 2.67.0 → 2.67.1

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
@@ -6489,21 +6489,6 @@ function buildConditionalDeps(rootSchema) {
6489
6489
  return out;
6490
6490
  }
6491
6491
 
6492
- function getValueAtPath(obj, path) {
6493
- return path.split('.').reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
6494
- }
6495
- function hasMeaningfulValue(val) {
6496
- if (val === undefined || val === null) return false;
6497
- if (typeof val === 'string') return val.trim() !== '';
6498
- if (Array.isArray(val)) return val.length > 0;
6499
- if (typeof val === 'object') return Object.keys(val).length > 0;
6500
- return true;
6501
- }
6502
- function isStepStarted(normalizedScopes, data) {
6503
- return normalizedScopes.some(path => {
6504
- return hasMeaningfulValue(getValueAtPath(data, path));
6505
- });
6506
- }
6507
6492
  function getSubSchema(schema, path) {
6508
6493
  const parts = path.replace(/^#\//, '').split('/').filter(p => p !== 'properties') // remove 'properties' segments
6509
6494
  .slice(0, -1);
@@ -6551,8 +6536,10 @@ function getStepStatus(opts) {
6551
6536
  data,
6552
6537
  visited
6553
6538
  } = opts;
6539
+ if (!visited) {
6540
+ return 'NotStarted';
6541
+ }
6554
6542
  const normalizedScopes = scopes.map(normalizeSchemaPath).filter(Boolean);
6555
- const started = isStepStarted(normalizedScopes, data);
6556
6543
  const incompleteInStep = getIncompletePaths(errors, scopes);
6557
6544
  if (incompleteInStep.length > 0) {
6558
6545
  return 'InProgress';
@@ -6563,21 +6550,27 @@ function getStepStatus(opts) {
6563
6550
  }
6564
6551
  const deps = buildConditionalDeps(schema);
6565
6552
  const controllersInStep = normalizedScopes.filter(s => deps.has(s));
6566
- if (controllersInStep.length === 0) return visited || started ? 'Completed' : 'NotStarted';
6553
+ if (controllersInStep.length === 0) {
6554
+ return 'Completed';
6555
+ }
6567
6556
  const affected = new Set();
6568
- for (const c of controllersInStep) {
6569
- for (const p of deps.get(c) || []) affected.add(p);
6557
+ for (const controller of controllersInStep) {
6558
+ for (const path of deps.get(controller) || []) {
6559
+ affected.add(path);
6560
+ }
6561
+ }
6562
+ if (affected.size === 0) {
6563
+ return 'Completed';
6570
6564
  }
6571
- if (affected.size === 0) return visited || started ? 'Completed' : 'NotStarted';
6572
6565
  const affectedPaths = [...affected];
6573
6566
  for (const err of errors || []) {
6574
- for (const cand of collectErrorCandidates(err)) {
6575
- if (affectedPaths.some(p => isUnder(cand, p))) {
6567
+ for (const candidate of collectErrorCandidates(err)) {
6568
+ if (affectedPaths.some(path => isUnder(candidate, path))) {
6576
6569
  return 'InProgress';
6577
6570
  }
6578
6571
  }
6579
6572
  }
6580
- return visited || started ? 'Completed' : 'NotStarted';
6573
+ return 'Completed';
6581
6574
  }
6582
6575
  function collectErrorCandidates(e) {
6583
6576
  var _e$params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.67.0",
3
+ "version": "2.67.1",
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-06-17T16:47:32.172Z",
4
- "sourceCommit": "bb6ddf86d6467140c26b258d1deb5e7f22736f6a",
3
+ "generatedAt": "2026-06-17T22:56:51.334Z",
4
+ "sourceCommit": "9ef587fe99c904bd13ddb7f7b8e399f67aec1a53",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [