jupiter-dynamic-forms 1.17.2 → 1.17.3

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/dist/index.mjs CHANGED
@@ -5291,9 +5291,6 @@ let JupiterFormSection = class extends LitElement {
5291
5291
  this._insertAfterColumnId = null;
5292
5292
  this._boundFieldBlur = (e2) => {
5293
5293
  this._clearHighlights();
5294
- const { conceptId, columnId } = e2.detail || {};
5295
- if (conceptId && columnId)
5296
- this._runCalculationCheck(conceptId, columnId);
5297
5294
  };
5298
5295
  this._expandedConcepts = /* @__PURE__ */ new Set();
5299
5296
  this._allTreeExpanded = false;
@@ -5542,7 +5539,7 @@ let JupiterFormSection = class extends LitElement {
5542
5539
  this._traverseTotalGroups(concepts);
5543
5540
  }
5544
5541
  _traverseTotalGroups(concepts) {
5545
- var _a, _b, _c;
5542
+ var _a, _b, _c, _d;
5546
5543
  for (let i2 = 0; i2 < concepts.length; i2++) {
5547
5544
  const concept = concepts[i2];
5548
5545
  if ((_a = concept.preferredLabel) == null ? void 0 : _a.includes("totalLabel")) {
@@ -5555,7 +5552,14 @@ let JupiterFormSection = class extends LitElement {
5555
5552
  this._memberParentMap.set(childId, concept.id);
5556
5553
  }
5557
5554
  } else {
5558
- const siblings = concepts.slice(0, i2);
5555
+ let lastTotalIdx = -1;
5556
+ for (let j = i2 - 1; j >= 0; j--) {
5557
+ if ((_c = concepts[j].preferredLabel) == null ? void 0 : _c.includes("totalLabel")) {
5558
+ lastTotalIdx = j;
5559
+ break;
5560
+ }
5561
+ }
5562
+ const siblings = concepts.slice(lastTotalIdx + 1, i2);
5559
5563
  if (siblings.length > 0) {
5560
5564
  const siblingIds = siblings.map((s2) => s2.id);
5561
5565
  this._totalChildrenMap.set(concept.id, siblingIds);
@@ -5567,7 +5571,7 @@ let JupiterFormSection = class extends LitElement {
5567
5571
  }
5568
5572
  }
5569
5573
  }
5570
- if ((_c = concept.children) == null ? void 0 : _c.length) {
5574
+ if ((_d = concept.children) == null ? void 0 : _d.length) {
5571
5575
  this._traverseTotalGroups(concept.children);
5572
5576
  }
5573
5577
  }