jupiter-dynamic-forms 1.15.9 → 1.16.0

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
@@ -624,7 +624,7 @@ class XBRLFormBuilder {
624
624
  }
625
625
  const columns = this.generateDefaultColumnsForRole(role, periodStartDate || "2025-01-01", periodEndDate || "2025-12-31", hypercubeRole, nonAbstractConcepts, periodTypes, rolePreferences);
626
626
  const availableColumnIds = columns.map((col) => col.id);
627
- const roleInfo = { periodTypes, availableColumnIds };
627
+ const roleInfo = { periodTypes, availableColumnIds, availableColumns: columns };
628
628
  const conceptTrees = [];
629
629
  if ((_a = role.presentationLinkbase) == null ? void 0 : _a.concepts) {
630
630
  role.presentationLinkbase.concepts.forEach((concept) => {
@@ -668,7 +668,11 @@ class XBRLFormBuilder {
668
668
  columnIds = ["duration"];
669
669
  }
670
670
  columnIds.forEach((columnId) => {
671
- const field2 = this.createFieldFromConcept(concept, periodStartDate, periodEndDate, columnId);
671
+ var _a;
672
+ const column2 = (_a = roleInfo == null ? void 0 : roleInfo.availableColumns) == null ? void 0 : _a.find((c2) => c2.id === columnId);
673
+ const colStartDate = (column2 == null ? void 0 : column2.periodStartDate) || periodStartDate;
674
+ const colEndDate = (column2 == null ? void 0 : column2.periodEndDate) || periodEndDate;
675
+ const field2 = this.createFieldFromConcept(concept, colStartDate, colEndDate, columnId);
672
676
  if (field2)
673
677
  fields.push(field2);
674
678
  });