jupiter-dynamic-forms 1.16.4 → 1.16.5
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/concept-tree.d.ts.map +1 -1
- package/dist/index.js +29 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -1
- package/dist/index.mjs.map +1 -1
- package/dist/schema/types.d.ts +1 -0
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/schema/xbrl-types.d.ts +1 -0
- package/dist/schema/xbrl-types.d.ts.map +1 -1
- package/dist/utils/xbrl-form-builder.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -714,7 +714,9 @@ class XBRLFormBuilder {
|
|
|
714
714
|
collapsed: level > 0,
|
|
715
715
|
// Collapse nested levels by default
|
|
716
716
|
abstract: concept.elementAbstract,
|
|
717
|
-
periodType: concept.periodType
|
|
717
|
+
periodType: concept.periodType,
|
|
718
|
+
balance: concept.balance
|
|
719
|
+
// Pass through balance attribute from XBRL data
|
|
718
720
|
};
|
|
719
721
|
}
|
|
720
722
|
/**
|
|
@@ -4229,6 +4231,9 @@ let JupiterConceptTree = class extends LitElement {
|
|
|
4229
4231
|
title="${this.concept.id}${this.concept.description ? " - " + this.concept.description : ""}">
|
|
4230
4232
|
${this.concept.label}
|
|
4231
4233
|
</div>
|
|
4234
|
+
${this.concept.balance ? html`
|
|
4235
|
+
<div class="concept-balance ${this.concept.balance}">${this.concept.balance}</div>
|
|
4236
|
+
` : ""}
|
|
4232
4237
|
${this.showAddButton ? html`
|
|
4233
4238
|
<button class="repeat-btn" type="button" title="Add row"
|
|
4234
4239
|
@click="${this._handleAddRepeat}">+</button>
|
|
@@ -4356,6 +4361,29 @@ JupiterConceptTree.styles = css`
|
|
|
4356
4361
|
min-width: 0; /* Allows flex item to shrink below content size */
|
|
4357
4362
|
}
|
|
4358
4363
|
|
|
4364
|
+
.concept-balance {
|
|
4365
|
+
margin-left: 8px;
|
|
4366
|
+
font-size: 11px;
|
|
4367
|
+
font-weight: 600;
|
|
4368
|
+
padding: 2px 6px;
|
|
4369
|
+
border-radius: 3px;
|
|
4370
|
+
text-transform: uppercase;
|
|
4371
|
+
letter-spacing: 0.5px;
|
|
4372
|
+
flex-shrink: 0;
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
.concept-balance.debit {
|
|
4376
|
+
color: #d32f2f;
|
|
4377
|
+
background: rgba(211, 47, 47, 0.1);
|
|
4378
|
+
border: 1px solid rgba(211, 47, 47, 0.3);
|
|
4379
|
+
}
|
|
4380
|
+
|
|
4381
|
+
.concept-balance.credit {
|
|
4382
|
+
color: #388e3c;
|
|
4383
|
+
background: rgba(56, 142, 60, 0.1);
|
|
4384
|
+
border: 1px solid rgba(56, 142, 60, 0.3);
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4359
4387
|
.field-cell {
|
|
4360
4388
|
vertical-align: middle;
|
|
4361
4389
|
padding: 2px 6px;
|