jupiter-dynamic-forms 1.16.8 → 1.16.9

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
@@ -1654,7 +1654,11 @@ const filter$1 = {
1654
1654
  addSelectedRole: "Add selected role",
1655
1655
  addAllRoles: "Add all roles",
1656
1656
  removeSelectedRole: "Remove selected role",
1657
- removeAllRoles: "Remove all roles"
1657
+ removeAllRoles: "Remove all roles",
1658
+ advancedFilter: "Advanced Filter",
1659
+ backToFilterRoles: "← Back",
1660
+ showFactsOnly: "Show facts only",
1661
+ showFactsOnlyDescription: "Hide all blank rows and sections. Only roles and rows with at least one filled value will be shown."
1658
1662
  };
1659
1663
  const column$1 = {
1660
1664
  addColumn: "Add Column",
@@ -1800,7 +1804,11 @@ const filter = {
1800
1804
  addSelectedRole: "Geselecteerde rol toevoegen",
1801
1805
  addAllRoles: "Alle rollen toevoegen",
1802
1806
  removeSelectedRole: "Geselecteerde rol verwijderen",
1803
- removeAllRoles: "Alle rollen verwijderen"
1807
+ removeAllRoles: "Alle rollen verwijderen",
1808
+ advancedFilter: "Geavanceerd filter",
1809
+ backToFilterRoles: "← Terug",
1810
+ showFactsOnly: "Alleen feiten weergeven",
1811
+ showFactsOnlyDescription: "Verberg alle lege rijen en secties. Alleen rollen en rijen met minimaal één ingevulde waarde worden weergegeven."
1804
1812
  };
1805
1813
  const column = {
1806
1814
  addColumn: "Kolom toevoegen",
@@ -2982,15 +2990,15 @@ function determineInputTypeFromBaseChain(baseTypeChain, datatypes) {
2982
2990
  placeholder: I18n.t("field.enterValue")
2983
2991
  };
2984
2992
  }
2985
- var __defProp$5 = Object.defineProperty;
2986
- var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
2987
- var __decorateClass$5 = (decorators, target, key, kind) => {
2988
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
2993
+ var __defProp$6 = Object.defineProperty;
2994
+ var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
2995
+ var __decorateClass$6 = (decorators, target, key, kind) => {
2996
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
2989
2997
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
2990
2998
  if (decorator = decorators[i2])
2991
2999
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2992
3000
  if (kind && result)
2993
- __defProp$5(target, key, result);
3001
+ __defProp$6(target, key, result);
2994
3002
  return result;
2995
3003
  };
2996
3004
  let JupiterFormField = class extends LitElement {
@@ -4063,90 +4071,90 @@ JupiterFormField.styles = css`
4063
4071
  border-color: var(--jupiter-primary-color, #1976d2);
4064
4072
  }
4065
4073
  `;
4066
- __decorateClass$5([
4074
+ __decorateClass$6([
4067
4075
  n2({ type: Object })
4068
4076
  ], JupiterFormField.prototype, "field", 2);
4069
- __decorateClass$5([
4077
+ __decorateClass$6([
4070
4078
  n2({ type: String })
4071
4079
  ], JupiterFormField.prototype, "conceptId", 2);
4072
- __decorateClass$5([
4080
+ __decorateClass$6([
4073
4081
  n2({ type: String })
4074
4082
  ], JupiterFormField.prototype, "conceptType", 2);
4075
- __decorateClass$5([
4083
+ __decorateClass$6([
4076
4084
  n2({ type: Array })
4077
4085
  ], JupiterFormField.prototype, "datatypes", 2);
4078
- __decorateClass$5([
4086
+ __decorateClass$6([
4079
4087
  n2({ type: Array })
4080
4088
  ], JupiterFormField.prototype, "defaultUnits", 2);
4081
- __decorateClass$5([
4089
+ __decorateClass$6([
4082
4090
  n2({ type: String })
4083
4091
  ], JupiterFormField.prototype, "columnId", 2);
4084
- __decorateClass$5([
4092
+ __decorateClass$6([
4085
4093
  n2()
4086
4094
  ], JupiterFormField.prototype, "value", 2);
4087
- __decorateClass$5([
4095
+ __decorateClass$6([
4088
4096
  n2({ type: Boolean })
4089
4097
  ], JupiterFormField.prototype, "disabled", 2);
4090
- __decorateClass$5([
4098
+ __decorateClass$6([
4091
4099
  n2({ type: String })
4092
4100
  ], JupiterFormField.prototype, "locale", 2);
4093
- __decorateClass$5([
4101
+ __decorateClass$6([
4094
4102
  n2({ type: Boolean })
4095
4103
  ], JupiterFormField.prototype, "hideLabel", 2);
4096
- __decorateClass$5([
4104
+ __decorateClass$6([
4097
4105
  n2({ type: String })
4098
4106
  ], JupiterFormField.prototype, "mode", 2);
4099
- __decorateClass$5([
4107
+ __decorateClass$6([
4100
4108
  n2({ type: Object })
4101
4109
  ], JupiterFormField.prototype, "masterData", 2);
4102
- __decorateClass$5([
4110
+ __decorateClass$6([
4103
4111
  n2({ type: Array })
4104
4112
  ], JupiterFormField.prototype, "facts", 2);
4105
- __decorateClass$5([
4113
+ __decorateClass$6([
4106
4114
  n2({ type: Object })
4107
4115
  ], JupiterFormField.prototype, "column", 2);
4108
- __decorateClass$5([
4116
+ __decorateClass$6([
4109
4117
  n2({ type: String })
4110
4118
  ], JupiterFormField.prototype, "periodStartDate", 2);
4111
- __decorateClass$5([
4119
+ __decorateClass$6([
4112
4120
  n2({ type: String })
4113
4121
  ], JupiterFormField.prototype, "periodEndDate", 2);
4114
- __decorateClass$5([
4122
+ __decorateClass$6([
4115
4123
  n2({ type: String })
4116
4124
  ], JupiterFormField.prototype, "periodInstantDate", 2);
4117
- __decorateClass$5([
4125
+ __decorateClass$6([
4118
4126
  n2({ type: String })
4119
4127
  ], JupiterFormField.prototype, "unit", 2);
4120
- __decorateClass$5([
4128
+ __decorateClass$6([
4121
4129
  n2({ type: Object })
4122
4130
  ], JupiterFormField.prototype, "typedMemberValues", 2);
4123
- __decorateClass$5([
4131
+ __decorateClass$6([
4124
4132
  r()
4125
4133
  ], JupiterFormField.prototype, "_errors", 2);
4126
- __decorateClass$5([
4134
+ __decorateClass$6([
4127
4135
  r()
4128
4136
  ], JupiterFormField.prototype, "_xbrlErrors", 2);
4129
- __decorateClass$5([
4137
+ __decorateClass$6([
4130
4138
  r()
4131
4139
  ], JupiterFormField.prototype, "_touched", 2);
4132
- __decorateClass$5([
4140
+ __decorateClass$6([
4133
4141
  r()
4134
4142
  ], JupiterFormField.prototype, "_showPeriodPopup", 2);
4135
- __decorateClass$5([
4143
+ __decorateClass$6([
4136
4144
  r()
4137
4145
  ], JupiterFormField.prototype, "_availableUnits", 2);
4138
- JupiterFormField = __decorateClass$5([
4146
+ JupiterFormField = __decorateClass$6([
4139
4147
  t$1("jupiter-form-field")
4140
4148
  ], JupiterFormField);
4141
- var __defProp$4 = Object.defineProperty;
4142
- var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
4143
- var __decorateClass$4 = (decorators, target, key, kind) => {
4144
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
4149
+ var __defProp$5 = Object.defineProperty;
4150
+ var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
4151
+ var __decorateClass$5 = (decorators, target, key, kind) => {
4152
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
4145
4153
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4146
4154
  if (decorator = decorators[i2])
4147
4155
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4148
4156
  if (kind && result)
4149
- __defProp$4(target, key, result);
4157
+ __defProp$5(target, key, result);
4150
4158
  return result;
4151
4159
  };
4152
4160
  let JupiterConceptTree = class extends LitElement {
@@ -4476,78 +4484,78 @@ JupiterConceptTree.styles = css`
4476
4484
  }
4477
4485
 
4478
4486
  `;
4479
- __decorateClass$4([
4487
+ __decorateClass$5([
4480
4488
  n2({ type: Object })
4481
4489
  ], JupiterConceptTree.prototype, "concept", 2);
4482
- __decorateClass$4([
4490
+ __decorateClass$5([
4483
4491
  n2({ type: Array })
4484
4492
  ], JupiterConceptTree.prototype, "columns", 2);
4485
- __decorateClass$4([
4493
+ __decorateClass$5([
4486
4494
  n2({ type: Object })
4487
4495
  ], JupiterConceptTree.prototype, "formData", 2);
4488
- __decorateClass$4([
4496
+ __decorateClass$5([
4489
4497
  n2({ type: Object })
4490
4498
  ], JupiterConceptTree.prototype, "periodData", 2);
4491
- __decorateClass$4([
4499
+ __decorateClass$5([
4492
4500
  n2({ type: Object })
4493
4501
  ], JupiterConceptTree.prototype, "unitData", 2);
4494
- __decorateClass$4([
4502
+ __decorateClass$5([
4495
4503
  n2({ type: Array })
4496
4504
  ], JupiterConceptTree.prototype, "defaultUnits", 2);
4497
- __decorateClass$4([
4505
+ __decorateClass$5([
4498
4506
  n2({ type: Boolean })
4499
4507
  ], JupiterConceptTree.prototype, "disabled", 2);
4500
- __decorateClass$4([
4508
+ __decorateClass$5([
4501
4509
  n2({ type: String })
4502
4510
  ], JupiterConceptTree.prototype, "locale", 2);
4503
- __decorateClass$4([
4511
+ __decorateClass$5([
4504
4512
  n2({ type: Set })
4505
4513
  ], JupiterConceptTree.prototype, "expandedConcepts", 2);
4506
- __decorateClass$4([
4514
+ __decorateClass$5([
4507
4515
  n2({ type: Array })
4508
4516
  ], JupiterConceptTree.prototype, "datatypes", 2);
4509
- __decorateClass$4([
4517
+ __decorateClass$5([
4510
4518
  n2({ type: String })
4511
4519
  ], JupiterConceptTree.prototype, "mode", 2);
4512
- __decorateClass$4([
4520
+ __decorateClass$5([
4513
4521
  n2({ type: Object })
4514
4522
  ], JupiterConceptTree.prototype, "masterData", 2);
4515
- __decorateClass$4([
4523
+ __decorateClass$5([
4516
4524
  n2({ type: Array })
4517
4525
  ], JupiterConceptTree.prototype, "facts", 2);
4518
- __decorateClass$4([
4526
+ __decorateClass$5([
4519
4527
  n2({ type: Object })
4520
4528
  ], JupiterConceptTree.prototype, "typedMemberData", 2);
4521
- __decorateClass$4([
4529
+ __decorateClass$5([
4522
4530
  n2({ type: Boolean })
4523
4531
  ], JupiterConceptTree.prototype, "showAddButton", 2);
4524
- __decorateClass$4([
4532
+ __decorateClass$5([
4525
4533
  n2({ type: Boolean })
4526
4534
  ], JupiterConceptTree.prototype, "showRemoveButton", 2);
4527
- __decorateClass$4([
4535
+ __decorateClass$5([
4528
4536
  n2({ type: String })
4529
4537
  ], JupiterConceptTree.prototype, "highlightType", 2);
4530
- __decorateClass$4([
4538
+ __decorateClass$5([
4531
4539
  n2({ type: String })
4532
4540
  ], JupiterConceptTree.prototype, "highlightColumnId", 2);
4533
- __decorateClass$4([
4541
+ __decorateClass$5([
4534
4542
  n2({ type: Object })
4535
4543
  ], JupiterConceptTree.prototype, "calculationErrorKeys", 2);
4536
- __decorateClass$4([
4544
+ __decorateClass$5([
4537
4545
  r()
4538
4546
  ], JupiterConceptTree.prototype, "_expanded", 2);
4539
- JupiterConceptTree = __decorateClass$4([
4547
+ JupiterConceptTree = __decorateClass$5([
4540
4548
  t$1("jupiter-concept-tree")
4541
4549
  ], JupiterConceptTree);
4542
- var __defProp$3 = Object.defineProperty;
4543
- var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
4544
- var __decorateClass$3 = (decorators, target, key, kind) => {
4545
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
4550
+ var __defProp$4 = Object.defineProperty;
4551
+ var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
4552
+ var __decorateClass$4 = (decorators, target, key, kind) => {
4553
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
4546
4554
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4547
4555
  if (decorator = decorators[i2])
4548
4556
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4549
4557
  if (kind && result)
4550
- __defProp$3(target, key, result);
4558
+ __defProp$4(target, key, result);
4551
4559
  return result;
4552
4560
  };
4553
4561
  let JupiterAddColumnDialog = class extends LitElement {
@@ -5092,48 +5100,48 @@ JupiterAddColumnDialog.styles = css`
5092
5100
  line-height: 1.4;
5093
5101
  }
5094
5102
  `;
5095
- __decorateClass$3([
5103
+ __decorateClass$4([
5096
5104
  n2({ type: String })
5097
5105
  ], JupiterAddColumnDialog.prototype, "periodType", 2);
5098
- __decorateClass$3([
5106
+ __decorateClass$4([
5099
5107
  n2({ type: Boolean })
5100
5108
  ], JupiterAddColumnDialog.prototype, "open", 2);
5101
- __decorateClass$3([
5109
+ __decorateClass$4([
5102
5110
  n2({ type: Array })
5103
5111
  ], JupiterAddColumnDialog.prototype, "availableDimensions", 2);
5104
- __decorateClass$3([
5112
+ __decorateClass$4([
5105
5113
  n2({ type: String })
5106
5114
  ], JupiterAddColumnDialog.prototype, "periodStartDate", 2);
5107
- __decorateClass$3([
5115
+ __decorateClass$4([
5108
5116
  n2({ type: String })
5109
5117
  ], JupiterAddColumnDialog.prototype, "periodEndDate", 2);
5110
- __decorateClass$3([
5118
+ __decorateClass$4([
5111
5119
  r()
5112
5120
  ], JupiterAddColumnDialog.prototype, "_startDate", 2);
5113
- __decorateClass$3([
5121
+ __decorateClass$4([
5114
5122
  r()
5115
5123
  ], JupiterAddColumnDialog.prototype, "_endDate", 2);
5116
- __decorateClass$3([
5124
+ __decorateClass$4([
5117
5125
  r()
5118
5126
  ], JupiterAddColumnDialog.prototype, "_instantDate", 2);
5119
- __decorateClass$3([
5127
+ __decorateClass$4([
5120
5128
  r()
5121
5129
  ], JupiterAddColumnDialog.prototype, "_selectedType", 2);
5122
- __decorateClass$3([
5130
+ __decorateClass$4([
5123
5131
  r()
5124
5132
  ], JupiterAddColumnDialog.prototype, "_selectedDimensions", 2);
5125
- JupiterAddColumnDialog = __decorateClass$3([
5133
+ JupiterAddColumnDialog = __decorateClass$4([
5126
5134
  t$1("jupiter-add-column-dialog")
5127
5135
  ], JupiterAddColumnDialog);
5128
- var __defProp$2 = Object.defineProperty;
5129
- var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
5130
- var __decorateClass$2 = (decorators, target, key, kind) => {
5131
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
5136
+ var __defProp$3 = Object.defineProperty;
5137
+ var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
5138
+ var __decorateClass$3 = (decorators, target, key, kind) => {
5139
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
5132
5140
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5133
5141
  if (decorator = decorators[i2])
5134
5142
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5135
5143
  if (kind && result)
5136
- __defProp$2(target, key, result);
5144
+ __defProp$3(target, key, result);
5137
5145
  return result;
5138
5146
  };
5139
5147
  let JupiterFormSection = class extends LitElement {
@@ -5153,6 +5161,7 @@ let JupiterFormSection = class extends LitElement {
5153
5161
  this.availableDimensions = [];
5154
5162
  this.hideHeader = false;
5155
5163
  this.mode = "inputForm";
5164
+ this.showFactsOnly = false;
5156
5165
  this.periodStartDate = "";
5157
5166
  this.periodEndDate = "";
5158
5167
  this._expanded = true;
@@ -5718,7 +5727,7 @@ let JupiterFormSection = class extends LitElement {
5718
5727
  </tr>
5719
5728
  </thead>
5720
5729
  <tbody class="table-body">
5721
- ${this._flattenConcepts(this.section.concepts, this._expandedConcepts).filter((concept) => this.mode !== "readonly" || !this._isConceptRowBlank(concept)).flatMap((concept) => this._renderConceptRows(concept))}
5730
+ ${this._flattenConcepts(this.section.concepts, this._expandedConcepts).filter((concept) => this.mode !== "readonly" && !this.showFactsOnly || !this._isConceptRowBlank(concept)).flatMap((concept) => this._renderConceptRows(concept))}
5722
5731
  </tbody>
5723
5732
  </table>
5724
5733
  </div>
@@ -6003,93 +6012,196 @@ JupiterFormSection.styles = css`
6003
6012
  font-style: italic;
6004
6013
  }
6005
6014
  `;
6006
- __decorateClass$2([
6015
+ __decorateClass$3([
6007
6016
  n2({ type: Object })
6008
6017
  ], JupiterFormSection.prototype, "section", 2);
6009
- __decorateClass$2([
6018
+ __decorateClass$3([
6010
6019
  n2({ type: Array })
6011
6020
  ], JupiterFormSection.prototype, "columns", 2);
6012
- __decorateClass$2([
6021
+ __decorateClass$3([
6013
6022
  n2({ type: Array })
6014
6023
  ], JupiterFormSection.prototype, "datatypes", 2);
6015
- __decorateClass$2([
6024
+ __decorateClass$3([
6016
6025
  n2({ type: Object })
6017
6026
  ], JupiterFormSection.prototype, "formData", 2);
6018
- __decorateClass$2([
6027
+ __decorateClass$3([
6019
6028
  n2({ type: Object })
6020
6029
  ], JupiterFormSection.prototype, "periodData", 2);
6021
- __decorateClass$2([
6030
+ __decorateClass$3([
6022
6031
  n2({ type: Object })
6023
6032
  ], JupiterFormSection.prototype, "unitData", 2);
6024
- __decorateClass$2([
6033
+ __decorateClass$3([
6025
6034
  n2({ type: Object })
6026
6035
  ], JupiterFormSection.prototype, "typedMemberData", 2);
6027
- __decorateClass$2([
6036
+ __decorateClass$3([
6028
6037
  n2({ type: Object })
6029
6038
  ], JupiterFormSection.prototype, "repeatCounts", 2);
6030
- __decorateClass$2([
6039
+ __decorateClass$3([
6031
6040
  n2({ type: Array })
6032
6041
  ], JupiterFormSection.prototype, "defaultUnits", 2);
6033
- __decorateClass$2([
6042
+ __decorateClass$3([
6034
6043
  n2({ type: Boolean })
6035
6044
  ], JupiterFormSection.prototype, "disabled", 2);
6036
- __decorateClass$2([
6045
+ __decorateClass$3([
6037
6046
  n2({ type: Boolean })
6038
6047
  ], JupiterFormSection.prototype, "collapsible", 2);
6039
- __decorateClass$2([
6048
+ __decorateClass$3([
6040
6049
  n2({ type: String })
6041
6050
  ], JupiterFormSection.prototype, "locale", 2);
6042
- __decorateClass$2([
6051
+ __decorateClass$3([
6043
6052
  n2({ type: Boolean })
6044
6053
  ], JupiterFormSection.prototype, "isFirstSection", 2);
6045
- __decorateClass$2([
6054
+ __decorateClass$3([
6046
6055
  n2({ type: Array })
6047
6056
  ], JupiterFormSection.prototype, "availableDimensions", 2);
6048
- __decorateClass$2([
6057
+ __decorateClass$3([
6049
6058
  n2({ type: Boolean })
6050
6059
  ], JupiterFormSection.prototype, "hideHeader", 2);
6051
- __decorateClass$2([
6060
+ __decorateClass$3([
6052
6061
  n2({ type: String })
6053
6062
  ], JupiterFormSection.prototype, "mode", 2);
6054
- __decorateClass$2([
6063
+ __decorateClass$3([
6064
+ n2({ type: Boolean })
6065
+ ], JupiterFormSection.prototype, "showFactsOnly", 2);
6066
+ __decorateClass$3([
6055
6067
  n2({ type: Object })
6056
6068
  ], JupiterFormSection.prototype, "masterData", 2);
6057
- __decorateClass$2([
6069
+ __decorateClass$3([
6058
6070
  n2({ type: String })
6059
6071
  ], JupiterFormSection.prototype, "periodStartDate", 2);
6060
- __decorateClass$2([
6072
+ __decorateClass$3([
6061
6073
  n2({ type: String })
6062
6074
  ], JupiterFormSection.prototype, "periodEndDate", 2);
6063
- __decorateClass$2([
6075
+ __decorateClass$3([
6064
6076
  r()
6065
6077
  ], JupiterFormSection.prototype, "_expanded", 2);
6066
- __decorateClass$2([
6078
+ __decorateClass$3([
6067
6079
  r()
6068
6080
  ], JupiterFormSection.prototype, "_showAddColumnDialog", 2);
6069
- __decorateClass$2([
6081
+ __decorateClass$3([
6070
6082
  r()
6071
6083
  ], JupiterFormSection.prototype, "_sectionPeriodType", 2);
6072
- __decorateClass$2([
6084
+ __decorateClass$3([
6073
6085
  r()
6074
6086
  ], JupiterFormSection.prototype, "_openMenuColumnId", 2);
6075
- __decorateClass$2([
6087
+ __decorateClass$3([
6076
6088
  r()
6077
6089
  ], JupiterFormSection.prototype, "_insertAfterColumnId", 2);
6078
- __decorateClass$2([
6090
+ __decorateClass$3([
6079
6091
  r()
6080
6092
  ], JupiterFormSection.prototype, "_expandedConcepts", 2);
6081
- __decorateClass$2([
6093
+ __decorateClass$3([
6082
6094
  r()
6083
6095
  ], JupiterFormSection.prototype, "_allTreeExpanded", 2);
6084
- __decorateClass$2([
6096
+ __decorateClass$3([
6085
6097
  r()
6086
6098
  ], JupiterFormSection.prototype, "_highlightMap", 2);
6087
- __decorateClass$2([
6099
+ __decorateClass$3([
6088
6100
  r()
6089
6101
  ], JupiterFormSection.prototype, "_calculationErrorKeys", 2);
6090
- JupiterFormSection = __decorateClass$2([
6102
+ JupiterFormSection = __decorateClass$3([
6091
6103
  t$1("jupiter-form-section")
6092
6104
  ], JupiterFormSection);
6105
+ var __defProp$2 = Object.defineProperty;
6106
+ var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
6107
+ var __decorateClass$2 = (decorators, target, key, kind) => {
6108
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
6109
+ for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6110
+ if (decorator = decorators[i2])
6111
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6112
+ if (kind && result)
6113
+ __defProp$2(target, key, result);
6114
+ return result;
6115
+ };
6116
+ let JupiterAdvancedFilter = class extends LitElement {
6117
+ constructor() {
6118
+ super(...arguments);
6119
+ this.showFactsOnly = false;
6120
+ }
6121
+ _handleShowFactsOnlyChange(e2) {
6122
+ const checked = e2.target.checked;
6123
+ this.dispatchEvent(new CustomEvent("facts-filter-change", {
6124
+ detail: { showFactsOnly: checked },
6125
+ bubbles: true,
6126
+ composed: true
6127
+ }));
6128
+ }
6129
+ render() {
6130
+ return html`
6131
+ <div class="filter-options">
6132
+ <label class="filter-option">
6133
+ <input
6134
+ type="checkbox"
6135
+ .checked="${this.showFactsOnly}"
6136
+ @change="${this._handleShowFactsOnlyChange}"
6137
+ />
6138
+ <div class="filter-option-body">
6139
+ <div class="filter-option-label">${I18n.t("filter.showFactsOnly")}</div>
6140
+ <p class="filter-option-description">${I18n.t("filter.showFactsOnlyDescription")}</p>
6141
+ </div>
6142
+ </label>
6143
+ </div>
6144
+ `;
6145
+ }
6146
+ };
6147
+ JupiterAdvancedFilter.styles = css`
6148
+ :host {
6149
+ display: block;
6150
+ font-family: var(--jupiter-font-family, system-ui, -apple-system, sans-serif);
6151
+ }
6152
+
6153
+ .filter-options {
6154
+ padding: 24px;
6155
+ }
6156
+
6157
+ .filter-option {
6158
+ display: flex;
6159
+ align-items: flex-start;
6160
+ gap: 12px;
6161
+ padding: 16px;
6162
+ border: 1px solid var(--primaryTextColor, var(--jupiter-border-color, #ddd));
6163
+ border-radius: 6px;
6164
+ cursor: pointer;
6165
+ transition: background-color 0.2s ease;
6166
+ }
6167
+
6168
+ .filter-option:hover {
6169
+ background: var(--menuBgColorLighter, var(--jupiter-hover-background, #f5f5f5));
6170
+ }
6171
+
6172
+ .filter-option input[type="checkbox"] {
6173
+ margin-top: 2px;
6174
+ width: 16px;
6175
+ height: 16px;
6176
+ cursor: pointer;
6177
+ flex-shrink: 0;
6178
+ }
6179
+
6180
+ .filter-option-body {
6181
+ flex: 1;
6182
+ }
6183
+
6184
+ .filter-option-label {
6185
+ font-size: 14px;
6186
+ font-weight: 600;
6187
+ color: var(--primaryTextColor, var(--jupiter-text-primary, #333));
6188
+ cursor: pointer;
6189
+ user-select: none;
6190
+ }
6191
+
6192
+ .filter-option-description {
6193
+ font-size: 13px;
6194
+ color: var(--primaryTextColor, var(--jupiter-text-secondary, #666));
6195
+ margin: 4px 0 0 0;
6196
+ line-height: 1.5;
6197
+ }
6198
+ `;
6199
+ __decorateClass$2([
6200
+ n2({ type: Boolean })
6201
+ ], JupiterAdvancedFilter.prototype, "showFactsOnly", 2);
6202
+ JupiterAdvancedFilter = __decorateClass$2([
6203
+ t$1("jupiter-advanced-filter")
6204
+ ], JupiterAdvancedFilter);
6093
6205
  var __defProp$1 = Object.defineProperty;
6094
6206
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
6095
6207
  var __decorateClass$1 = (decorators, target, key, kind) => {
@@ -6108,8 +6220,9 @@ let JupiterFilterRolesDialog = class extends LitElement {
6108
6220
  this.availableRoles = [];
6109
6221
  this.selectedRoleIds = [];
6110
6222
  this.periodPreferences = {};
6111
- this.mode = "user";
6223
+ this.mode = "inputForm";
6112
6224
  this.hypercubeData = null;
6225
+ this.showFactsOnly = false;
6113
6226
  this._tempSelectedRoles = /* @__PURE__ */ new Set();
6114
6227
  this._searchQuery = "";
6115
6228
  this._filteredRoles = [];
@@ -6120,6 +6233,8 @@ let JupiterFilterRolesDialog = class extends LitElement {
6120
6233
  this._draggedRoleId = null;
6121
6234
  this._dragOverRoleId = null;
6122
6235
  this._chosenRoleOrder = [];
6236
+ this._showAdvancedFilter = false;
6237
+ this._showFactsOnly = false;
6123
6238
  }
6124
6239
  connectedCallback() {
6125
6240
  super.connectedCallback();
@@ -6136,6 +6251,13 @@ let JupiterFilterRolesDialog = class extends LitElement {
6136
6251
  if (changedProperties.has("availableRoles") || changedProperties.has("periodPreferences") || changedProperties.has("open")) {
6137
6252
  this._initializePeriodPreferences();
6138
6253
  }
6254
+ if (changedProperties.has("open")) {
6255
+ if (!this.open) {
6256
+ this._showAdvancedFilter = false;
6257
+ } else {
6258
+ this._showFactsOnly = this.showFactsOnly;
6259
+ }
6260
+ }
6139
6261
  }
6140
6262
  _updateFilteredRoles() {
6141
6263
  if (!this._searchQuery.trim()) {
@@ -6551,6 +6673,22 @@ let JupiterFilterRolesDialog = class extends LitElement {
6551
6673
  this._tempPeriodPreferences = newPreferences;
6552
6674
  this.requestUpdate();
6553
6675
  }
6676
+ _switchToAdvancedFilter() {
6677
+ this._showAdvancedFilter = true;
6678
+ this._searchQuery = "";
6679
+ }
6680
+ _switchToFilterRoles() {
6681
+ this._showAdvancedFilter = false;
6682
+ }
6683
+ _handleFactsFilterChange(e2) {
6684
+ this._showFactsOnly = e2.detail.showFactsOnly;
6685
+ }
6686
+ _handleAdvancedFilterApply() {
6687
+ this.dispatchEvent(new CustomEvent("advanced-filter-apply", {
6688
+ detail: { showFactsOnly: this._showFactsOnly },
6689
+ bubbles: true
6690
+ }));
6691
+ }
6554
6692
  _handleBackdropClick(event) {
6555
6693
  if (event.target === this) {
6556
6694
  this._handleCancel();
@@ -6841,6 +6979,11 @@ let JupiterFilterRolesDialog = class extends LitElement {
6841
6979
  </div>
6842
6980
  </div>
6843
6981
  </div>
6982
+ ` : this._showAdvancedFilter ? html`
6983
+ <jupiter-advanced-filter
6984
+ .showFactsOnly="${this._showFactsOnly}"
6985
+ @facts-filter-change="${this._handleFactsFilterChange}"
6986
+ ></jupiter-advanced-filter>
6844
6987
  ` : html`
6845
6988
  <p class="description">
6846
6989
  ${I18n.t("filter.description")}
@@ -7017,16 +7160,33 @@ let JupiterFilterRolesDialog = class extends LitElement {
7017
7160
 
7018
7161
  <!-- Dialog Actions -->
7019
7162
  <div class="dialog-actions">
7163
+ ${this.mode !== "admin" && this.mode !== "readonly" ? html`
7164
+ ${this._showAdvancedFilter ? html`
7165
+ <button class="btn-text" @click="${this._switchToFilterRoles}">
7166
+ ${I18n.t("filter.backToFilterRoles")}
7167
+ </button>
7168
+ ` : html`
7169
+ <button class="btn-text" @click="${this._switchToAdvancedFilter}">
7170
+ ${I18n.t("filter.advancedFilter")}
7171
+ </button>
7172
+ `}
7173
+ ` : ""}
7020
7174
  <button class="btn-secondary" @click="${this._handleCancel}">
7021
7175
  ${I18n.t("filter.cancel")}
7022
7176
  </button>
7023
- <button
7024
- class="btn-primary"
7025
- @click="${this._handleApply}"
7026
- ?disabled="${selectedCount === 0}"
7027
- >
7028
- ${I18n.t("filter.applyFilter")} (${selectedCount})
7029
- </button>
7177
+ ${this._showAdvancedFilter ? html`
7178
+ <button class="btn-primary" @click="${this._handleAdvancedFilterApply}">
7179
+ ${I18n.t("filter.applyFilter")}
7180
+ </button>
7181
+ ` : html`
7182
+ <button
7183
+ class="btn-primary"
7184
+ @click="${this._handleApply}"
7185
+ ?disabled="${selectedCount === 0}"
7186
+ >
7187
+ ${I18n.t("filter.applyFilter")} (${selectedCount})
7188
+ </button>
7189
+ `}
7030
7190
  </div>
7031
7191
  </div>
7032
7192
  `;
@@ -7575,6 +7735,24 @@ JupiterFilterRolesDialog.styles = css`
7575
7735
  border-top: 1px solid var(--jupiter-border-color, #ddd);
7576
7736
  text-align: center;
7577
7737
  }
7738
+
7739
+ .btn-text {
7740
+ background: none;
7741
+ border: none;
7742
+ color: var(--buttonBgColor, var(--jupiter-primary-color, #1976d2));
7743
+ padding: 10px 8px;
7744
+ font-size: 14px;
7745
+ font-weight: 500;
7746
+ font-family: inherit;
7747
+ cursor: pointer;
7748
+ margin-right: auto;
7749
+ border-radius: 4px;
7750
+ transition: background-color 0.2s ease;
7751
+ }
7752
+
7753
+ .btn-text:hover {
7754
+ background: var(--menuBgColorLighter, var(--jupiter-hover-background, #f5f5f5));
7755
+ }
7578
7756
  `;
7579
7757
  __decorateClass$1([
7580
7758
  n2({ type: Boolean, reflect: true })
@@ -7594,6 +7772,9 @@ __decorateClass$1([
7594
7772
  __decorateClass$1([
7595
7773
  n2({ type: Object })
7596
7774
  ], JupiterFilterRolesDialog.prototype, "hypercubeData", 2);
7775
+ __decorateClass$1([
7776
+ n2({ type: Boolean })
7777
+ ], JupiterFilterRolesDialog.prototype, "showFactsOnly", 2);
7597
7778
  __decorateClass$1([
7598
7779
  r()
7599
7780
  ], JupiterFilterRolesDialog.prototype, "_tempSelectedRoles", 2);
@@ -7624,6 +7805,12 @@ __decorateClass$1([
7624
7805
  __decorateClass$1([
7625
7806
  r()
7626
7807
  ], JupiterFilterRolesDialog.prototype, "_chosenRoleOrder", 2);
7808
+ __decorateClass$1([
7809
+ r()
7810
+ ], JupiterFilterRolesDialog.prototype, "_showAdvancedFilter", 2);
7811
+ __decorateClass$1([
7812
+ r()
7813
+ ], JupiterFilterRolesDialog.prototype, "_showFactsOnly", 2);
7627
7814
  JupiterFilterRolesDialog = __decorateClass$1([
7628
7815
  t$1("jupiter-filter-roles-dialog")
7629
7816
  ], JupiterFilterRolesDialog);
@@ -7677,6 +7864,7 @@ let JupiterDynamicForm = class extends LitElement {
7677
7864
  this._allSections = [];
7678
7865
  this._selectedRoleIds = [];
7679
7866
  this._showFilterDialog = false;
7867
+ this._showFactsOnly = false;
7680
7868
  this._periodPreferences = {};
7681
7869
  this._activeSidePanelRoleId = null;
7682
7870
  this._sidePanelSearchQuery = "";
@@ -8366,6 +8554,10 @@ let JupiterDynamicForm = class extends LitElement {
8366
8554
  _handleFilterRolesClick() {
8367
8555
  this._showFilterDialog = true;
8368
8556
  }
8557
+ _handleAdvancedFilterApply(event) {
8558
+ this._showFactsOnly = event.detail.showFactsOnly;
8559
+ this._showFilterDialog = false;
8560
+ }
8369
8561
  _handleFilterDialogCancel() {
8370
8562
  this._showFilterDialog = false;
8371
8563
  const roleCount = this._getRoleIdsArray().length;
@@ -10922,7 +11114,7 @@ let JupiterDynamicForm = class extends LitElement {
10922
11114
  <p>${I18n.t("filter.selectRoles")}</p>
10923
11115
  <p>${I18n.t("filter.roles")}: ${this._allSections.length}</p>
10924
11116
  </div>
10925
- ` : (this.mode === "readonly" ? schema.sections.filter((s2) => !this._isSectionBlank(s2)) : schema.sections).map((section2, index) => {
11117
+ ` : (this.mode === "readonly" || this._showFactsOnly ? schema.sections.filter((s2) => !this._isSectionBlank(s2)) : schema.sections).map((section2, index) => {
10926
11118
  var _a;
10927
11119
  return html`
10928
11120
  <jupiter-form-section
@@ -10942,6 +11134,7 @@ let JupiterDynamicForm = class extends LitElement {
10942
11134
  .isFirstSection="${index === 0}"
10943
11135
  .availableDimensions="${this._getAvailableDimensionsForSection(section2.id)}"
10944
11136
  .mode="${this.mode}"
11137
+ .showFactsOnly="${this._showFactsOnly}"
10945
11138
  .masterData="${this.masterData}"
10946
11139
  .periodStartDate="${this.periodStartDate}"
10947
11140
  .periodEndDate="${this.periodEndDate}"
@@ -10962,7 +11155,7 @@ let JupiterDynamicForm = class extends LitElement {
10962
11155
  }
10963
11156
  _renderSidePanelLayout(schema, config, showValidationSummary, errorCount) {
10964
11157
  var _a;
10965
- const visibleSections = this.mode === "readonly" ? schema.sections.filter((s2) => !this._isSectionBlank(s2)) : schema.sections;
11158
+ const visibleSections = this.mode === "readonly" || this._showFactsOnly ? schema.sections.filter((s2) => !this._isSectionBlank(s2)) : schema.sections;
10966
11159
  const filteredSections = this._filterSidePanelSections(visibleSections);
10967
11160
  if (!this._activeSidePanelRoleId || !filteredSections.find((s2) => s2.id === this._activeSidePanelRoleId)) {
10968
11161
  this._activeSidePanelRoleId = filteredSections.length > 0 ? filteredSections[0].id : null;
@@ -11075,6 +11268,7 @@ let JupiterDynamicForm = class extends LitElement {
11075
11268
  .isFirstSection="${true}"
11076
11269
  .availableDimensions="${this._getAvailableDimensionsForSection(activeSection.id)}"
11077
11270
  .mode="${this.mode}"
11271
+ .showFactsOnly="${this._showFactsOnly}"
11078
11272
  .masterData="${this.masterData}"
11079
11273
  .periodStartDate="${this.periodStartDate}"
11080
11274
  .periodEndDate="${this.periodEndDate}"
@@ -11227,8 +11421,10 @@ let JupiterDynamicForm = class extends LitElement {
11227
11421
  .periodPreferences="${this._periodPreferences}"
11228
11422
  .hypercubeData="${(_a = this.xbrlInput) == null ? void 0 : _a.hypercubes}"
11229
11423
  .mode="${this.mode}"
11424
+ .showFactsOnly="${this._showFactsOnly}"
11230
11425
  @dialog-cancel="${this._handleFilterDialogCancel}"
11231
11426
  @roles-filter-apply="${this._handleRoleFilterApply}"
11427
+ @advanced-filter-apply="${this._handleAdvancedFilterApply}"
11232
11428
  @click="${this._handleFilterDialogCancel}"
11233
11429
  ></jupiter-filter-roles-dialog>
11234
11430
  ` : ""}
@@ -12188,6 +12384,9 @@ __decorateClass([
12188
12384
  __decorateClass([
12189
12385
  r()
12190
12386
  ], JupiterDynamicForm.prototype, "_showFilterDialog", 2);
12387
+ __decorateClass([
12388
+ r()
12389
+ ], JupiterDynamicForm.prototype, "_showFactsOnly", 2);
12191
12390
  __decorateClass([
12192
12391
  r()
12193
12392
  ], JupiterDynamicForm.prototype, "_periodPreferences", 2);
@@ -12229,6 +12428,7 @@ export {
12229
12428
  FactMatcher,
12230
12429
  FormValidator,
12231
12430
  JupiterAddColumnDialog,
12431
+ JupiterAdvancedFilter,
12232
12432
  JupiterConceptTree,
12233
12433
  JupiterDynamicForm,
12234
12434
  JupiterFilterRolesDialog,