jupiter-dynamic-forms 1.15.8 → 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/core/form-field.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -3
- package/dist/index.mjs.map +1 -1
- package/dist/utils/xbrl-form-builder.d.ts.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
});
|
|
@@ -3243,7 +3247,8 @@ let JupiterFormField = class extends LitElement {
|
|
|
3243
3247
|
displayValue = effectiveValue !== null && effectiveValue !== void 0 ? String(effectiveValue) : "";
|
|
3244
3248
|
}
|
|
3245
3249
|
const isEmpty = displayValue === "" || displayValue === null || displayValue === void 0;
|
|
3246
|
-
|
|
3250
|
+
const isMonetary = this._isMonetaryType();
|
|
3251
|
+
return html`<span class="readonly-value ${isEmpty ? "empty" : ""} ${isMonetary ? "monetary" : ""}">${isEmpty ? "—" : displayValue}</span>`;
|
|
3247
3252
|
}
|
|
3248
3253
|
_renderInput(effectiveValue = this.value, effectiveDisabled = this.disabled) {
|
|
3249
3254
|
if (this.mode === "readonly") {
|
|
@@ -3840,6 +3845,7 @@ JupiterFormField.styles = css`
|
|
|
3840
3845
|
line-height: 1.4;
|
|
3841
3846
|
word-break: break-word;
|
|
3842
3847
|
min-height: 1.4em;
|
|
3848
|
+
text-align: left;
|
|
3843
3849
|
}
|
|
3844
3850
|
|
|
3845
3851
|
.readonly-value.empty {
|
|
@@ -3847,6 +3853,11 @@ JupiterFormField.styles = css`
|
|
|
3847
3853
|
font-style: italic;
|
|
3848
3854
|
}
|
|
3849
3855
|
|
|
3856
|
+
.readonly-value.monetary {
|
|
3857
|
+
text-align: right;
|
|
3858
|
+
width: 100%;
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3850
3861
|
.checkbox-container {
|
|
3851
3862
|
display: flex;
|
|
3852
3863
|
align-items: center;
|