jupiter-dynamic-forms 1.16.8 → 1.17.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/advanced-filter.d.ts +14 -0
- package/dist/core/advanced-filter.d.ts.map +1 -0
- package/dist/core/dynamic-form.d.ts +5 -0
- package/dist/core/dynamic-form.d.ts.map +1 -1
- package/dist/core/filter-roles-dialog.d.ts +10 -1
- package/dist/core/filter-roles-dialog.d.ts.map +1 -1
- package/dist/core/form-section.d.ts +2 -0
- package/dist/core/form-section.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +297 -113
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +526 -122
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1654,7 +1654,14 @@ 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.",
|
|
1662
|
+
searchByConcept: "Search by concept",
|
|
1663
|
+
searchByConceptDescription: "Type concept name or label to filter roles and rows. Press Apply Filter to apply.",
|
|
1664
|
+
searchByConceptPlaceholder: "Type concept name or label and press Apply Filter..."
|
|
1658
1665
|
};
|
|
1659
1666
|
const column$1 = {
|
|
1660
1667
|
addColumn: "Add Column",
|
|
@@ -1800,7 +1807,14 @@ const filter = {
|
|
|
1800
1807
|
addSelectedRole: "Geselecteerde rol toevoegen",
|
|
1801
1808
|
addAllRoles: "Alle rollen toevoegen",
|
|
1802
1809
|
removeSelectedRole: "Geselecteerde rol verwijderen",
|
|
1803
|
-
removeAllRoles: "Alle rollen verwijderen"
|
|
1810
|
+
removeAllRoles: "Alle rollen verwijderen",
|
|
1811
|
+
advancedFilter: "Geavanceerd filter",
|
|
1812
|
+
backToFilterRoles: "← Terug",
|
|
1813
|
+
showFactsOnly: "Alleen feiten weergeven",
|
|
1814
|
+
showFactsOnlyDescription: "Verberg alle lege rijen en secties. Alleen rollen en rijen met minimaal één ingevulde waarde worden weergegeven.",
|
|
1815
|
+
searchByConcept: "Zoeken op concept",
|
|
1816
|
+
searchByConceptDescription: "Typ een conceptnaam of label om rollen en rijen te filteren. Druk op Filter toepassen om te activeren.",
|
|
1817
|
+
searchByConceptPlaceholder: "Typ conceptnaam of label en druk op Filter toepassen..."
|
|
1804
1818
|
};
|
|
1805
1819
|
const column = {
|
|
1806
1820
|
addColumn: "Kolom toevoegen",
|
|
@@ -2982,15 +2996,15 @@ function determineInputTypeFromBaseChain(baseTypeChain, datatypes) {
|
|
|
2982
2996
|
placeholder: I18n.t("field.enterValue")
|
|
2983
2997
|
};
|
|
2984
2998
|
}
|
|
2985
|
-
var __defProp$
|
|
2986
|
-
var __getOwnPropDesc$
|
|
2987
|
-
var __decorateClass$
|
|
2988
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2999
|
+
var __defProp$6 = Object.defineProperty;
|
|
3000
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
3001
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
3002
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
2989
3003
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2990
3004
|
if (decorator = decorators[i2])
|
|
2991
3005
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2992
3006
|
if (kind && result)
|
|
2993
|
-
__defProp$
|
|
3007
|
+
__defProp$6(target, key, result);
|
|
2994
3008
|
return result;
|
|
2995
3009
|
};
|
|
2996
3010
|
let JupiterFormField = class extends LitElement {
|
|
@@ -4063,90 +4077,90 @@ JupiterFormField.styles = css`
|
|
|
4063
4077
|
border-color: var(--jupiter-primary-color, #1976d2);
|
|
4064
4078
|
}
|
|
4065
4079
|
`;
|
|
4066
|
-
__decorateClass$
|
|
4080
|
+
__decorateClass$6([
|
|
4067
4081
|
n2({ type: Object })
|
|
4068
4082
|
], JupiterFormField.prototype, "field", 2);
|
|
4069
|
-
__decorateClass$
|
|
4083
|
+
__decorateClass$6([
|
|
4070
4084
|
n2({ type: String })
|
|
4071
4085
|
], JupiterFormField.prototype, "conceptId", 2);
|
|
4072
|
-
__decorateClass$
|
|
4086
|
+
__decorateClass$6([
|
|
4073
4087
|
n2({ type: String })
|
|
4074
4088
|
], JupiterFormField.prototype, "conceptType", 2);
|
|
4075
|
-
__decorateClass$
|
|
4089
|
+
__decorateClass$6([
|
|
4076
4090
|
n2({ type: Array })
|
|
4077
4091
|
], JupiterFormField.prototype, "datatypes", 2);
|
|
4078
|
-
__decorateClass$
|
|
4092
|
+
__decorateClass$6([
|
|
4079
4093
|
n2({ type: Array })
|
|
4080
4094
|
], JupiterFormField.prototype, "defaultUnits", 2);
|
|
4081
|
-
__decorateClass$
|
|
4095
|
+
__decorateClass$6([
|
|
4082
4096
|
n2({ type: String })
|
|
4083
4097
|
], JupiterFormField.prototype, "columnId", 2);
|
|
4084
|
-
__decorateClass$
|
|
4098
|
+
__decorateClass$6([
|
|
4085
4099
|
n2()
|
|
4086
4100
|
], JupiterFormField.prototype, "value", 2);
|
|
4087
|
-
__decorateClass$
|
|
4101
|
+
__decorateClass$6([
|
|
4088
4102
|
n2({ type: Boolean })
|
|
4089
4103
|
], JupiterFormField.prototype, "disabled", 2);
|
|
4090
|
-
__decorateClass$
|
|
4104
|
+
__decorateClass$6([
|
|
4091
4105
|
n2({ type: String })
|
|
4092
4106
|
], JupiterFormField.prototype, "locale", 2);
|
|
4093
|
-
__decorateClass$
|
|
4107
|
+
__decorateClass$6([
|
|
4094
4108
|
n2({ type: Boolean })
|
|
4095
4109
|
], JupiterFormField.prototype, "hideLabel", 2);
|
|
4096
|
-
__decorateClass$
|
|
4110
|
+
__decorateClass$6([
|
|
4097
4111
|
n2({ type: String })
|
|
4098
4112
|
], JupiterFormField.prototype, "mode", 2);
|
|
4099
|
-
__decorateClass$
|
|
4113
|
+
__decorateClass$6([
|
|
4100
4114
|
n2({ type: Object })
|
|
4101
4115
|
], JupiterFormField.prototype, "masterData", 2);
|
|
4102
|
-
__decorateClass$
|
|
4116
|
+
__decorateClass$6([
|
|
4103
4117
|
n2({ type: Array })
|
|
4104
4118
|
], JupiterFormField.prototype, "facts", 2);
|
|
4105
|
-
__decorateClass$
|
|
4119
|
+
__decorateClass$6([
|
|
4106
4120
|
n2({ type: Object })
|
|
4107
4121
|
], JupiterFormField.prototype, "column", 2);
|
|
4108
|
-
__decorateClass$
|
|
4122
|
+
__decorateClass$6([
|
|
4109
4123
|
n2({ type: String })
|
|
4110
4124
|
], JupiterFormField.prototype, "periodStartDate", 2);
|
|
4111
|
-
__decorateClass$
|
|
4125
|
+
__decorateClass$6([
|
|
4112
4126
|
n2({ type: String })
|
|
4113
4127
|
], JupiterFormField.prototype, "periodEndDate", 2);
|
|
4114
|
-
__decorateClass$
|
|
4128
|
+
__decorateClass$6([
|
|
4115
4129
|
n2({ type: String })
|
|
4116
4130
|
], JupiterFormField.prototype, "periodInstantDate", 2);
|
|
4117
|
-
__decorateClass$
|
|
4131
|
+
__decorateClass$6([
|
|
4118
4132
|
n2({ type: String })
|
|
4119
4133
|
], JupiterFormField.prototype, "unit", 2);
|
|
4120
|
-
__decorateClass$
|
|
4134
|
+
__decorateClass$6([
|
|
4121
4135
|
n2({ type: Object })
|
|
4122
4136
|
], JupiterFormField.prototype, "typedMemberValues", 2);
|
|
4123
|
-
__decorateClass$
|
|
4137
|
+
__decorateClass$6([
|
|
4124
4138
|
r()
|
|
4125
4139
|
], JupiterFormField.prototype, "_errors", 2);
|
|
4126
|
-
__decorateClass$
|
|
4140
|
+
__decorateClass$6([
|
|
4127
4141
|
r()
|
|
4128
4142
|
], JupiterFormField.prototype, "_xbrlErrors", 2);
|
|
4129
|
-
__decorateClass$
|
|
4143
|
+
__decorateClass$6([
|
|
4130
4144
|
r()
|
|
4131
4145
|
], JupiterFormField.prototype, "_touched", 2);
|
|
4132
|
-
__decorateClass$
|
|
4146
|
+
__decorateClass$6([
|
|
4133
4147
|
r()
|
|
4134
4148
|
], JupiterFormField.prototype, "_showPeriodPopup", 2);
|
|
4135
|
-
__decorateClass$
|
|
4149
|
+
__decorateClass$6([
|
|
4136
4150
|
r()
|
|
4137
4151
|
], JupiterFormField.prototype, "_availableUnits", 2);
|
|
4138
|
-
JupiterFormField = __decorateClass$
|
|
4152
|
+
JupiterFormField = __decorateClass$6([
|
|
4139
4153
|
t$1("jupiter-form-field")
|
|
4140
4154
|
], JupiterFormField);
|
|
4141
|
-
var __defProp$
|
|
4142
|
-
var __getOwnPropDesc$
|
|
4143
|
-
var __decorateClass$
|
|
4144
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4155
|
+
var __defProp$5 = Object.defineProperty;
|
|
4156
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
4157
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
4158
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
4145
4159
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4146
4160
|
if (decorator = decorators[i2])
|
|
4147
4161
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4148
4162
|
if (kind && result)
|
|
4149
|
-
__defProp$
|
|
4163
|
+
__defProp$5(target, key, result);
|
|
4150
4164
|
return result;
|
|
4151
4165
|
};
|
|
4152
4166
|
let JupiterConceptTree = class extends LitElement {
|
|
@@ -4476,78 +4490,78 @@ JupiterConceptTree.styles = css`
|
|
|
4476
4490
|
}
|
|
4477
4491
|
|
|
4478
4492
|
`;
|
|
4479
|
-
__decorateClass$
|
|
4493
|
+
__decorateClass$5([
|
|
4480
4494
|
n2({ type: Object })
|
|
4481
4495
|
], JupiterConceptTree.prototype, "concept", 2);
|
|
4482
|
-
__decorateClass$
|
|
4496
|
+
__decorateClass$5([
|
|
4483
4497
|
n2({ type: Array })
|
|
4484
4498
|
], JupiterConceptTree.prototype, "columns", 2);
|
|
4485
|
-
__decorateClass$
|
|
4499
|
+
__decorateClass$5([
|
|
4486
4500
|
n2({ type: Object })
|
|
4487
4501
|
], JupiterConceptTree.prototype, "formData", 2);
|
|
4488
|
-
__decorateClass$
|
|
4502
|
+
__decorateClass$5([
|
|
4489
4503
|
n2({ type: Object })
|
|
4490
4504
|
], JupiterConceptTree.prototype, "periodData", 2);
|
|
4491
|
-
__decorateClass$
|
|
4505
|
+
__decorateClass$5([
|
|
4492
4506
|
n2({ type: Object })
|
|
4493
4507
|
], JupiterConceptTree.prototype, "unitData", 2);
|
|
4494
|
-
__decorateClass$
|
|
4508
|
+
__decorateClass$5([
|
|
4495
4509
|
n2({ type: Array })
|
|
4496
4510
|
], JupiterConceptTree.prototype, "defaultUnits", 2);
|
|
4497
|
-
__decorateClass$
|
|
4511
|
+
__decorateClass$5([
|
|
4498
4512
|
n2({ type: Boolean })
|
|
4499
4513
|
], JupiterConceptTree.prototype, "disabled", 2);
|
|
4500
|
-
__decorateClass$
|
|
4514
|
+
__decorateClass$5([
|
|
4501
4515
|
n2({ type: String })
|
|
4502
4516
|
], JupiterConceptTree.prototype, "locale", 2);
|
|
4503
|
-
__decorateClass$
|
|
4517
|
+
__decorateClass$5([
|
|
4504
4518
|
n2({ type: Set })
|
|
4505
4519
|
], JupiterConceptTree.prototype, "expandedConcepts", 2);
|
|
4506
|
-
__decorateClass$
|
|
4520
|
+
__decorateClass$5([
|
|
4507
4521
|
n2({ type: Array })
|
|
4508
4522
|
], JupiterConceptTree.prototype, "datatypes", 2);
|
|
4509
|
-
__decorateClass$
|
|
4523
|
+
__decorateClass$5([
|
|
4510
4524
|
n2({ type: String })
|
|
4511
4525
|
], JupiterConceptTree.prototype, "mode", 2);
|
|
4512
|
-
__decorateClass$
|
|
4526
|
+
__decorateClass$5([
|
|
4513
4527
|
n2({ type: Object })
|
|
4514
4528
|
], JupiterConceptTree.prototype, "masterData", 2);
|
|
4515
|
-
__decorateClass$
|
|
4529
|
+
__decorateClass$5([
|
|
4516
4530
|
n2({ type: Array })
|
|
4517
4531
|
], JupiterConceptTree.prototype, "facts", 2);
|
|
4518
|
-
__decorateClass$
|
|
4532
|
+
__decorateClass$5([
|
|
4519
4533
|
n2({ type: Object })
|
|
4520
4534
|
], JupiterConceptTree.prototype, "typedMemberData", 2);
|
|
4521
|
-
__decorateClass$
|
|
4535
|
+
__decorateClass$5([
|
|
4522
4536
|
n2({ type: Boolean })
|
|
4523
4537
|
], JupiterConceptTree.prototype, "showAddButton", 2);
|
|
4524
|
-
__decorateClass$
|
|
4538
|
+
__decorateClass$5([
|
|
4525
4539
|
n2({ type: Boolean })
|
|
4526
4540
|
], JupiterConceptTree.prototype, "showRemoveButton", 2);
|
|
4527
|
-
__decorateClass$
|
|
4541
|
+
__decorateClass$5([
|
|
4528
4542
|
n2({ type: String })
|
|
4529
4543
|
], JupiterConceptTree.prototype, "highlightType", 2);
|
|
4530
|
-
__decorateClass$
|
|
4544
|
+
__decorateClass$5([
|
|
4531
4545
|
n2({ type: String })
|
|
4532
4546
|
], JupiterConceptTree.prototype, "highlightColumnId", 2);
|
|
4533
|
-
__decorateClass$
|
|
4547
|
+
__decorateClass$5([
|
|
4534
4548
|
n2({ type: Object })
|
|
4535
4549
|
], JupiterConceptTree.prototype, "calculationErrorKeys", 2);
|
|
4536
|
-
__decorateClass$
|
|
4550
|
+
__decorateClass$5([
|
|
4537
4551
|
r()
|
|
4538
4552
|
], JupiterConceptTree.prototype, "_expanded", 2);
|
|
4539
|
-
JupiterConceptTree = __decorateClass$
|
|
4553
|
+
JupiterConceptTree = __decorateClass$5([
|
|
4540
4554
|
t$1("jupiter-concept-tree")
|
|
4541
4555
|
], JupiterConceptTree);
|
|
4542
|
-
var __defProp$
|
|
4543
|
-
var __getOwnPropDesc$
|
|
4544
|
-
var __decorateClass$
|
|
4545
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4556
|
+
var __defProp$4 = Object.defineProperty;
|
|
4557
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
4558
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
4559
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
4546
4560
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4547
4561
|
if (decorator = decorators[i2])
|
|
4548
4562
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4549
4563
|
if (kind && result)
|
|
4550
|
-
__defProp$
|
|
4564
|
+
__defProp$4(target, key, result);
|
|
4551
4565
|
return result;
|
|
4552
4566
|
};
|
|
4553
4567
|
let JupiterAddColumnDialog = class extends LitElement {
|
|
@@ -5092,48 +5106,48 @@ JupiterAddColumnDialog.styles = css`
|
|
|
5092
5106
|
line-height: 1.4;
|
|
5093
5107
|
}
|
|
5094
5108
|
`;
|
|
5095
|
-
__decorateClass$
|
|
5109
|
+
__decorateClass$4([
|
|
5096
5110
|
n2({ type: String })
|
|
5097
5111
|
], JupiterAddColumnDialog.prototype, "periodType", 2);
|
|
5098
|
-
__decorateClass$
|
|
5112
|
+
__decorateClass$4([
|
|
5099
5113
|
n2({ type: Boolean })
|
|
5100
5114
|
], JupiterAddColumnDialog.prototype, "open", 2);
|
|
5101
|
-
__decorateClass$
|
|
5115
|
+
__decorateClass$4([
|
|
5102
5116
|
n2({ type: Array })
|
|
5103
5117
|
], JupiterAddColumnDialog.prototype, "availableDimensions", 2);
|
|
5104
|
-
__decorateClass$
|
|
5118
|
+
__decorateClass$4([
|
|
5105
5119
|
n2({ type: String })
|
|
5106
5120
|
], JupiterAddColumnDialog.prototype, "periodStartDate", 2);
|
|
5107
|
-
__decorateClass$
|
|
5121
|
+
__decorateClass$4([
|
|
5108
5122
|
n2({ type: String })
|
|
5109
5123
|
], JupiterAddColumnDialog.prototype, "periodEndDate", 2);
|
|
5110
|
-
__decorateClass$
|
|
5124
|
+
__decorateClass$4([
|
|
5111
5125
|
r()
|
|
5112
5126
|
], JupiterAddColumnDialog.prototype, "_startDate", 2);
|
|
5113
|
-
__decorateClass$
|
|
5127
|
+
__decorateClass$4([
|
|
5114
5128
|
r()
|
|
5115
5129
|
], JupiterAddColumnDialog.prototype, "_endDate", 2);
|
|
5116
|
-
__decorateClass$
|
|
5130
|
+
__decorateClass$4([
|
|
5117
5131
|
r()
|
|
5118
5132
|
], JupiterAddColumnDialog.prototype, "_instantDate", 2);
|
|
5119
|
-
__decorateClass$
|
|
5133
|
+
__decorateClass$4([
|
|
5120
5134
|
r()
|
|
5121
5135
|
], JupiterAddColumnDialog.prototype, "_selectedType", 2);
|
|
5122
|
-
__decorateClass$
|
|
5136
|
+
__decorateClass$4([
|
|
5123
5137
|
r()
|
|
5124
5138
|
], JupiterAddColumnDialog.prototype, "_selectedDimensions", 2);
|
|
5125
|
-
JupiterAddColumnDialog = __decorateClass$
|
|
5139
|
+
JupiterAddColumnDialog = __decorateClass$4([
|
|
5126
5140
|
t$1("jupiter-add-column-dialog")
|
|
5127
5141
|
], JupiterAddColumnDialog);
|
|
5128
|
-
var __defProp$
|
|
5129
|
-
var __getOwnPropDesc$
|
|
5130
|
-
var __decorateClass$
|
|
5131
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5142
|
+
var __defProp$3 = Object.defineProperty;
|
|
5143
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
5144
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
5145
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
5132
5146
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5133
5147
|
if (decorator = decorators[i2])
|
|
5134
5148
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5135
5149
|
if (kind && result)
|
|
5136
|
-
__defProp$
|
|
5150
|
+
__defProp$3(target, key, result);
|
|
5137
5151
|
return result;
|
|
5138
5152
|
};
|
|
5139
5153
|
let JupiterFormSection = class extends LitElement {
|
|
@@ -5153,6 +5167,7 @@ let JupiterFormSection = class extends LitElement {
|
|
|
5153
5167
|
this.availableDimensions = [];
|
|
5154
5168
|
this.hideHeader = false;
|
|
5155
5169
|
this.mode = "inputForm";
|
|
5170
|
+
this.showFactsOnly = false;
|
|
5156
5171
|
this.periodStartDate = "";
|
|
5157
5172
|
this.periodEndDate = "";
|
|
5158
5173
|
this._expanded = true;
|
|
@@ -5718,7 +5733,14 @@ let JupiterFormSection = class extends LitElement {
|
|
|
5718
5733
|
</tr>
|
|
5719
5734
|
</thead>
|
|
5720
5735
|
<tbody class="table-body">
|
|
5721
|
-
${this._flattenConcepts(this.section.concepts, this._expandedConcepts).filter((concept) =>
|
|
5736
|
+
${this._flattenConcepts(this.section.concepts, this._expandedConcepts).filter((concept) => {
|
|
5737
|
+
var _a;
|
|
5738
|
+
if (((_a = this.conceptMatchIds) == null ? void 0 : _a.size) && !this.conceptMatchIds.has(concept.originalConceptId))
|
|
5739
|
+
return false;
|
|
5740
|
+
if (this.mode === "readonly" || this.showFactsOnly)
|
|
5741
|
+
return !this._isConceptRowBlank(concept);
|
|
5742
|
+
return true;
|
|
5743
|
+
}).flatMap((concept) => this._renderConceptRows(concept))}
|
|
5722
5744
|
</tbody>
|
|
5723
5745
|
</table>
|
|
5724
5746
|
</div>
|
|
@@ -6003,93 +6025,305 @@ JupiterFormSection.styles = css`
|
|
|
6003
6025
|
font-style: italic;
|
|
6004
6026
|
}
|
|
6005
6027
|
`;
|
|
6006
|
-
__decorateClass$
|
|
6028
|
+
__decorateClass$3([
|
|
6007
6029
|
n2({ type: Object })
|
|
6008
6030
|
], JupiterFormSection.prototype, "section", 2);
|
|
6009
|
-
__decorateClass$
|
|
6031
|
+
__decorateClass$3([
|
|
6010
6032
|
n2({ type: Array })
|
|
6011
6033
|
], JupiterFormSection.prototype, "columns", 2);
|
|
6012
|
-
__decorateClass$
|
|
6034
|
+
__decorateClass$3([
|
|
6013
6035
|
n2({ type: Array })
|
|
6014
6036
|
], JupiterFormSection.prototype, "datatypes", 2);
|
|
6015
|
-
__decorateClass$
|
|
6037
|
+
__decorateClass$3([
|
|
6016
6038
|
n2({ type: Object })
|
|
6017
6039
|
], JupiterFormSection.prototype, "formData", 2);
|
|
6018
|
-
__decorateClass$
|
|
6040
|
+
__decorateClass$3([
|
|
6019
6041
|
n2({ type: Object })
|
|
6020
6042
|
], JupiterFormSection.prototype, "periodData", 2);
|
|
6021
|
-
__decorateClass$
|
|
6043
|
+
__decorateClass$3([
|
|
6022
6044
|
n2({ type: Object })
|
|
6023
6045
|
], JupiterFormSection.prototype, "unitData", 2);
|
|
6024
|
-
__decorateClass$
|
|
6046
|
+
__decorateClass$3([
|
|
6025
6047
|
n2({ type: Object })
|
|
6026
6048
|
], JupiterFormSection.prototype, "typedMemberData", 2);
|
|
6027
|
-
__decorateClass$
|
|
6049
|
+
__decorateClass$3([
|
|
6028
6050
|
n2({ type: Object })
|
|
6029
6051
|
], JupiterFormSection.prototype, "repeatCounts", 2);
|
|
6030
|
-
__decorateClass$
|
|
6052
|
+
__decorateClass$3([
|
|
6031
6053
|
n2({ type: Array })
|
|
6032
6054
|
], JupiterFormSection.prototype, "defaultUnits", 2);
|
|
6033
|
-
__decorateClass$
|
|
6055
|
+
__decorateClass$3([
|
|
6034
6056
|
n2({ type: Boolean })
|
|
6035
6057
|
], JupiterFormSection.prototype, "disabled", 2);
|
|
6036
|
-
__decorateClass$
|
|
6058
|
+
__decorateClass$3([
|
|
6037
6059
|
n2({ type: Boolean })
|
|
6038
6060
|
], JupiterFormSection.prototype, "collapsible", 2);
|
|
6039
|
-
__decorateClass$
|
|
6061
|
+
__decorateClass$3([
|
|
6040
6062
|
n2({ type: String })
|
|
6041
6063
|
], JupiterFormSection.prototype, "locale", 2);
|
|
6042
|
-
__decorateClass$
|
|
6064
|
+
__decorateClass$3([
|
|
6043
6065
|
n2({ type: Boolean })
|
|
6044
6066
|
], JupiterFormSection.prototype, "isFirstSection", 2);
|
|
6045
|
-
__decorateClass$
|
|
6067
|
+
__decorateClass$3([
|
|
6046
6068
|
n2({ type: Array })
|
|
6047
6069
|
], JupiterFormSection.prototype, "availableDimensions", 2);
|
|
6048
|
-
__decorateClass$
|
|
6070
|
+
__decorateClass$3([
|
|
6049
6071
|
n2({ type: Boolean })
|
|
6050
6072
|
], JupiterFormSection.prototype, "hideHeader", 2);
|
|
6051
|
-
__decorateClass$
|
|
6073
|
+
__decorateClass$3([
|
|
6052
6074
|
n2({ type: String })
|
|
6053
6075
|
], JupiterFormSection.prototype, "mode", 2);
|
|
6054
|
-
__decorateClass$
|
|
6076
|
+
__decorateClass$3([
|
|
6077
|
+
n2({ type: Boolean })
|
|
6078
|
+
], JupiterFormSection.prototype, "showFactsOnly", 2);
|
|
6079
|
+
__decorateClass$3([
|
|
6080
|
+
n2({ type: Object })
|
|
6081
|
+
], JupiterFormSection.prototype, "conceptMatchIds", 2);
|
|
6082
|
+
__decorateClass$3([
|
|
6055
6083
|
n2({ type: Object })
|
|
6056
6084
|
], JupiterFormSection.prototype, "masterData", 2);
|
|
6057
|
-
__decorateClass$
|
|
6085
|
+
__decorateClass$3([
|
|
6058
6086
|
n2({ type: String })
|
|
6059
6087
|
], JupiterFormSection.prototype, "periodStartDate", 2);
|
|
6060
|
-
__decorateClass$
|
|
6088
|
+
__decorateClass$3([
|
|
6061
6089
|
n2({ type: String })
|
|
6062
6090
|
], JupiterFormSection.prototype, "periodEndDate", 2);
|
|
6063
|
-
__decorateClass$
|
|
6091
|
+
__decorateClass$3([
|
|
6064
6092
|
r()
|
|
6065
6093
|
], JupiterFormSection.prototype, "_expanded", 2);
|
|
6066
|
-
__decorateClass$
|
|
6094
|
+
__decorateClass$3([
|
|
6067
6095
|
r()
|
|
6068
6096
|
], JupiterFormSection.prototype, "_showAddColumnDialog", 2);
|
|
6069
|
-
__decorateClass$
|
|
6097
|
+
__decorateClass$3([
|
|
6070
6098
|
r()
|
|
6071
6099
|
], JupiterFormSection.prototype, "_sectionPeriodType", 2);
|
|
6072
|
-
__decorateClass$
|
|
6100
|
+
__decorateClass$3([
|
|
6073
6101
|
r()
|
|
6074
6102
|
], JupiterFormSection.prototype, "_openMenuColumnId", 2);
|
|
6075
|
-
__decorateClass$
|
|
6103
|
+
__decorateClass$3([
|
|
6076
6104
|
r()
|
|
6077
6105
|
], JupiterFormSection.prototype, "_insertAfterColumnId", 2);
|
|
6078
|
-
__decorateClass$
|
|
6106
|
+
__decorateClass$3([
|
|
6079
6107
|
r()
|
|
6080
6108
|
], JupiterFormSection.prototype, "_expandedConcepts", 2);
|
|
6081
|
-
__decorateClass$
|
|
6109
|
+
__decorateClass$3([
|
|
6082
6110
|
r()
|
|
6083
6111
|
], JupiterFormSection.prototype, "_allTreeExpanded", 2);
|
|
6084
|
-
__decorateClass$
|
|
6112
|
+
__decorateClass$3([
|
|
6085
6113
|
r()
|
|
6086
6114
|
], JupiterFormSection.prototype, "_highlightMap", 2);
|
|
6087
|
-
__decorateClass$
|
|
6115
|
+
__decorateClass$3([
|
|
6088
6116
|
r()
|
|
6089
6117
|
], JupiterFormSection.prototype, "_calculationErrorKeys", 2);
|
|
6090
|
-
JupiterFormSection = __decorateClass$
|
|
6118
|
+
JupiterFormSection = __decorateClass$3([
|
|
6091
6119
|
t$1("jupiter-form-section")
|
|
6092
6120
|
], JupiterFormSection);
|
|
6121
|
+
var __defProp$2 = Object.defineProperty;
|
|
6122
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
6123
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
6124
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
6125
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6126
|
+
if (decorator = decorators[i2])
|
|
6127
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6128
|
+
if (kind && result)
|
|
6129
|
+
__defProp$2(target, key, result);
|
|
6130
|
+
return result;
|
|
6131
|
+
};
|
|
6132
|
+
let JupiterAdvancedFilter = class extends LitElement {
|
|
6133
|
+
constructor() {
|
|
6134
|
+
super(...arguments);
|
|
6135
|
+
this.showFactsOnly = false;
|
|
6136
|
+
this.conceptSearchText = "";
|
|
6137
|
+
this._localConceptSearchText = "";
|
|
6138
|
+
}
|
|
6139
|
+
updated(changedProperties) {
|
|
6140
|
+
if (changedProperties.has("conceptSearchText") && this.conceptSearchText !== this._localConceptSearchText) {
|
|
6141
|
+
this._localConceptSearchText = this.conceptSearchText;
|
|
6142
|
+
}
|
|
6143
|
+
}
|
|
6144
|
+
_handleShowFactsOnlyChange(e2) {
|
|
6145
|
+
const checked = e2.target.checked;
|
|
6146
|
+
this.dispatchEvent(new CustomEvent("filter-change", {
|
|
6147
|
+
detail: { showFactsOnly: checked, conceptSearchText: this._localConceptSearchText },
|
|
6148
|
+
bubbles: true,
|
|
6149
|
+
composed: true
|
|
6150
|
+
}));
|
|
6151
|
+
}
|
|
6152
|
+
_handleConceptSearchInput(e2) {
|
|
6153
|
+
this._localConceptSearchText = e2.target.value;
|
|
6154
|
+
this.dispatchEvent(new CustomEvent("filter-change", {
|
|
6155
|
+
detail: { showFactsOnly: this.showFactsOnly, conceptSearchText: this._localConceptSearchText },
|
|
6156
|
+
bubbles: true,
|
|
6157
|
+
composed: true
|
|
6158
|
+
}));
|
|
6159
|
+
}
|
|
6160
|
+
_clearConceptSearch() {
|
|
6161
|
+
var _a;
|
|
6162
|
+
this._localConceptSearchText = "";
|
|
6163
|
+
const input = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(".concept-search-input");
|
|
6164
|
+
if (input) {
|
|
6165
|
+
input.value = "";
|
|
6166
|
+
input.focus();
|
|
6167
|
+
}
|
|
6168
|
+
this.dispatchEvent(new CustomEvent("filter-change", {
|
|
6169
|
+
detail: { showFactsOnly: this.showFactsOnly, conceptSearchText: "" },
|
|
6170
|
+
bubbles: true,
|
|
6171
|
+
composed: true
|
|
6172
|
+
}));
|
|
6173
|
+
}
|
|
6174
|
+
render() {
|
|
6175
|
+
return html`
|
|
6176
|
+
<div class="filter-options">
|
|
6177
|
+
<label class="filter-option clickable">
|
|
6178
|
+
<input
|
|
6179
|
+
type="checkbox"
|
|
6180
|
+
.checked="${this.showFactsOnly}"
|
|
6181
|
+
@change="${this._handleShowFactsOnlyChange}"
|
|
6182
|
+
/>
|
|
6183
|
+
<div class="filter-option-body">
|
|
6184
|
+
<div class="filter-option-label">${I18n.t("filter.showFactsOnly")}</div>
|
|
6185
|
+
<p class="filter-option-description">${I18n.t("filter.showFactsOnlyDescription")}</p>
|
|
6186
|
+
</div>
|
|
6187
|
+
</label>
|
|
6188
|
+
|
|
6189
|
+
<div class="filter-option">
|
|
6190
|
+
<div class="filter-option-body">
|
|
6191
|
+
<div class="filter-option-label">${I18n.t("filter.searchByConcept")}</div>
|
|
6192
|
+
<p class="filter-option-description">${I18n.t("filter.searchByConceptDescription")}</p>
|
|
6193
|
+
<div class="concept-search-input-wrapper">
|
|
6194
|
+
<input
|
|
6195
|
+
type="text"
|
|
6196
|
+
class="concept-search-input"
|
|
6197
|
+
placeholder="${I18n.t("filter.searchByConceptPlaceholder")}"
|
|
6198
|
+
.value="${this._localConceptSearchText}"
|
|
6199
|
+
@input="${this._handleConceptSearchInput}"
|
|
6200
|
+
/>
|
|
6201
|
+
${this._localConceptSearchText ? html`
|
|
6202
|
+
<button
|
|
6203
|
+
class="concept-search-clear"
|
|
6204
|
+
@click="${this._clearConceptSearch}"
|
|
6205
|
+
title="${I18n.t("filter.clearSearch")}"
|
|
6206
|
+
>×</button>
|
|
6207
|
+
` : ""}
|
|
6208
|
+
</div>
|
|
6209
|
+
</div>
|
|
6210
|
+
</div>
|
|
6211
|
+
</div>
|
|
6212
|
+
`;
|
|
6213
|
+
}
|
|
6214
|
+
};
|
|
6215
|
+
JupiterAdvancedFilter.styles = css`
|
|
6216
|
+
:host {
|
|
6217
|
+
display: block;
|
|
6218
|
+
font-family: var(--jupiter-font-family, system-ui, -apple-system, sans-serif);
|
|
6219
|
+
}
|
|
6220
|
+
|
|
6221
|
+
.filter-options {
|
|
6222
|
+
padding: 24px;
|
|
6223
|
+
display: flex;
|
|
6224
|
+
flex-direction: column;
|
|
6225
|
+
gap: 12px;
|
|
6226
|
+
}
|
|
6227
|
+
|
|
6228
|
+
.filter-option {
|
|
6229
|
+
display: flex;
|
|
6230
|
+
align-items: flex-start;
|
|
6231
|
+
gap: 12px;
|
|
6232
|
+
padding: 16px;
|
|
6233
|
+
border: 1px solid var(--primaryTextColor, var(--jupiter-border-color, #ddd));
|
|
6234
|
+
border-radius: 6px;
|
|
6235
|
+
transition: background-color 0.2s ease;
|
|
6236
|
+
}
|
|
6237
|
+
|
|
6238
|
+
.filter-option.clickable {
|
|
6239
|
+
cursor: pointer;
|
|
6240
|
+
}
|
|
6241
|
+
|
|
6242
|
+
.filter-option.clickable:hover {
|
|
6243
|
+
background: var(--menuBgColorLighter, var(--jupiter-hover-background, #f5f5f5));
|
|
6244
|
+
}
|
|
6245
|
+
|
|
6246
|
+
.filter-option input[type="checkbox"] {
|
|
6247
|
+
margin-top: 2px;
|
|
6248
|
+
width: 16px;
|
|
6249
|
+
height: 16px;
|
|
6250
|
+
cursor: pointer;
|
|
6251
|
+
flex-shrink: 0;
|
|
6252
|
+
}
|
|
6253
|
+
|
|
6254
|
+
.filter-option-body {
|
|
6255
|
+
flex: 1;
|
|
6256
|
+
}
|
|
6257
|
+
|
|
6258
|
+
.filter-option-label {
|
|
6259
|
+
font-size: 14px;
|
|
6260
|
+
font-weight: 600;
|
|
6261
|
+
color: var(--primaryTextColor, var(--jupiter-text-primary, #333));
|
|
6262
|
+
cursor: pointer;
|
|
6263
|
+
user-select: none;
|
|
6264
|
+
}
|
|
6265
|
+
|
|
6266
|
+
.filter-option-description {
|
|
6267
|
+
font-size: 13px;
|
|
6268
|
+
color: var(--primaryTextColor, var(--jupiter-text-secondary, #666));
|
|
6269
|
+
margin: 4px 0 0 0;
|
|
6270
|
+
line-height: 1.5;
|
|
6271
|
+
}
|
|
6272
|
+
|
|
6273
|
+
.concept-search-input-wrapper {
|
|
6274
|
+
position: relative;
|
|
6275
|
+
margin-top: 10px;
|
|
6276
|
+
}
|
|
6277
|
+
|
|
6278
|
+
.concept-search-input {
|
|
6279
|
+
width: 100%;
|
|
6280
|
+
box-sizing: border-box;
|
|
6281
|
+
padding: 8px 36px 8px 10px;
|
|
6282
|
+
border: 1px solid var(--primaryTextColor, var(--jupiter-border-color, #ddd));
|
|
6283
|
+
border-radius: 4px;
|
|
6284
|
+
font-size: 13px;
|
|
6285
|
+
font-family: inherit;
|
|
6286
|
+
background: transparent;
|
|
6287
|
+
color: var(--primaryTextColor, var(--jupiter-text-primary, #333));
|
|
6288
|
+
transition: border-color 0.2s ease;
|
|
6289
|
+
}
|
|
6290
|
+
|
|
6291
|
+
.concept-search-input::placeholder {
|
|
6292
|
+
color: var(--primaryTextColor, var(--jupiter-text-secondary, #999));
|
|
6293
|
+
}
|
|
6294
|
+
|
|
6295
|
+
.concept-search-clear {
|
|
6296
|
+
position: absolute;
|
|
6297
|
+
right: 8px;
|
|
6298
|
+
top: 50%;
|
|
6299
|
+
transform: translateY(-50%);
|
|
6300
|
+
background: none;
|
|
6301
|
+
border: none;
|
|
6302
|
+
cursor: pointer;
|
|
6303
|
+
padding: 2px 4px;
|
|
6304
|
+
border-radius: 2px;
|
|
6305
|
+
color: var(--jupiter-text-secondary, #666);
|
|
6306
|
+
font-size: 16px;
|
|
6307
|
+
line-height: 1;
|
|
6308
|
+
transition: color 0.2s ease;
|
|
6309
|
+
}
|
|
6310
|
+
|
|
6311
|
+
.concept-search-clear:hover {
|
|
6312
|
+
color: var(--primaryTextColor, var(--jupiter-text-primary, #333));
|
|
6313
|
+
}
|
|
6314
|
+
`;
|
|
6315
|
+
__decorateClass$2([
|
|
6316
|
+
n2({ type: Boolean })
|
|
6317
|
+
], JupiterAdvancedFilter.prototype, "showFactsOnly", 2);
|
|
6318
|
+
__decorateClass$2([
|
|
6319
|
+
n2({ type: String })
|
|
6320
|
+
], JupiterAdvancedFilter.prototype, "conceptSearchText", 2);
|
|
6321
|
+
__decorateClass$2([
|
|
6322
|
+
r()
|
|
6323
|
+
], JupiterAdvancedFilter.prototype, "_localConceptSearchText", 2);
|
|
6324
|
+
JupiterAdvancedFilter = __decorateClass$2([
|
|
6325
|
+
t$1("jupiter-advanced-filter")
|
|
6326
|
+
], JupiterAdvancedFilter);
|
|
6093
6327
|
var __defProp$1 = Object.defineProperty;
|
|
6094
6328
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
6095
6329
|
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
@@ -6108,8 +6342,10 @@ let JupiterFilterRolesDialog = class extends LitElement {
|
|
|
6108
6342
|
this.availableRoles = [];
|
|
6109
6343
|
this.selectedRoleIds = [];
|
|
6110
6344
|
this.periodPreferences = {};
|
|
6111
|
-
this.mode = "
|
|
6345
|
+
this.mode = "inputForm";
|
|
6112
6346
|
this.hypercubeData = null;
|
|
6347
|
+
this.showFactsOnly = false;
|
|
6348
|
+
this.conceptSearchText = "";
|
|
6113
6349
|
this._tempSelectedRoles = /* @__PURE__ */ new Set();
|
|
6114
6350
|
this._searchQuery = "";
|
|
6115
6351
|
this._filteredRoles = [];
|
|
@@ -6120,6 +6356,9 @@ let JupiterFilterRolesDialog = class extends LitElement {
|
|
|
6120
6356
|
this._draggedRoleId = null;
|
|
6121
6357
|
this._dragOverRoleId = null;
|
|
6122
6358
|
this._chosenRoleOrder = [];
|
|
6359
|
+
this._showAdvancedFilter = false;
|
|
6360
|
+
this._showFactsOnly = false;
|
|
6361
|
+
this._conceptSearchText = "";
|
|
6123
6362
|
}
|
|
6124
6363
|
connectedCallback() {
|
|
6125
6364
|
super.connectedCallback();
|
|
@@ -6136,6 +6375,14 @@ let JupiterFilterRolesDialog = class extends LitElement {
|
|
|
6136
6375
|
if (changedProperties.has("availableRoles") || changedProperties.has("periodPreferences") || changedProperties.has("open")) {
|
|
6137
6376
|
this._initializePeriodPreferences();
|
|
6138
6377
|
}
|
|
6378
|
+
if (changedProperties.has("open")) {
|
|
6379
|
+
if (!this.open) {
|
|
6380
|
+
this._showAdvancedFilter = false;
|
|
6381
|
+
} else {
|
|
6382
|
+
this._showFactsOnly = this.showFactsOnly;
|
|
6383
|
+
this._conceptSearchText = this.conceptSearchText;
|
|
6384
|
+
}
|
|
6385
|
+
}
|
|
6139
6386
|
}
|
|
6140
6387
|
_updateFilteredRoles() {
|
|
6141
6388
|
if (!this._searchQuery.trim()) {
|
|
@@ -6551,6 +6798,23 @@ let JupiterFilterRolesDialog = class extends LitElement {
|
|
|
6551
6798
|
this._tempPeriodPreferences = newPreferences;
|
|
6552
6799
|
this.requestUpdate();
|
|
6553
6800
|
}
|
|
6801
|
+
_switchToAdvancedFilter() {
|
|
6802
|
+
this._showAdvancedFilter = true;
|
|
6803
|
+
this._searchQuery = "";
|
|
6804
|
+
}
|
|
6805
|
+
_switchToFilterRoles() {
|
|
6806
|
+
this._showAdvancedFilter = false;
|
|
6807
|
+
}
|
|
6808
|
+
_handleFilterChange(e2) {
|
|
6809
|
+
this._showFactsOnly = e2.detail.showFactsOnly;
|
|
6810
|
+
this._conceptSearchText = e2.detail.conceptSearchText ?? "";
|
|
6811
|
+
}
|
|
6812
|
+
_handleAdvancedFilterApply() {
|
|
6813
|
+
this.dispatchEvent(new CustomEvent("advanced-filter-apply", {
|
|
6814
|
+
detail: { showFactsOnly: this._showFactsOnly, conceptSearchText: this._conceptSearchText },
|
|
6815
|
+
bubbles: true
|
|
6816
|
+
}));
|
|
6817
|
+
}
|
|
6554
6818
|
_handleBackdropClick(event) {
|
|
6555
6819
|
if (event.target === this) {
|
|
6556
6820
|
this._handleCancel();
|
|
@@ -6841,6 +7105,12 @@ let JupiterFilterRolesDialog = class extends LitElement {
|
|
|
6841
7105
|
</div>
|
|
6842
7106
|
</div>
|
|
6843
7107
|
</div>
|
|
7108
|
+
` : this._showAdvancedFilter ? html`
|
|
7109
|
+
<jupiter-advanced-filter
|
|
7110
|
+
.showFactsOnly="${this._showFactsOnly}"
|
|
7111
|
+
.conceptSearchText="${this._conceptSearchText}"
|
|
7112
|
+
@filter-change="${this._handleFilterChange}"
|
|
7113
|
+
></jupiter-advanced-filter>
|
|
6844
7114
|
` : html`
|
|
6845
7115
|
<p class="description">
|
|
6846
7116
|
${I18n.t("filter.description")}
|
|
@@ -7017,16 +7287,33 @@ let JupiterFilterRolesDialog = class extends LitElement {
|
|
|
7017
7287
|
|
|
7018
7288
|
<!-- Dialog Actions -->
|
|
7019
7289
|
<div class="dialog-actions">
|
|
7290
|
+
${this.mode !== "admin" && this.mode !== "readonly" ? html`
|
|
7291
|
+
${this._showAdvancedFilter ? html`
|
|
7292
|
+
<button class="btn-text" @click="${this._switchToFilterRoles}">
|
|
7293
|
+
${I18n.t("filter.backToFilterRoles")}
|
|
7294
|
+
</button>
|
|
7295
|
+
` : html`
|
|
7296
|
+
<button class="btn-text" @click="${this._switchToAdvancedFilter}">
|
|
7297
|
+
${I18n.t("filter.advancedFilter")}
|
|
7298
|
+
</button>
|
|
7299
|
+
`}
|
|
7300
|
+
` : ""}
|
|
7020
7301
|
<button class="btn-secondary" @click="${this._handleCancel}">
|
|
7021
7302
|
${I18n.t("filter.cancel")}
|
|
7022
7303
|
</button>
|
|
7023
|
-
|
|
7024
|
-
class="btn-primary"
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7304
|
+
${this._showAdvancedFilter ? html`
|
|
7305
|
+
<button class="btn-primary" @click="${this._handleAdvancedFilterApply}">
|
|
7306
|
+
${I18n.t("filter.applyFilter")}
|
|
7307
|
+
</button>
|
|
7308
|
+
` : html`
|
|
7309
|
+
<button
|
|
7310
|
+
class="btn-primary"
|
|
7311
|
+
@click="${this._handleApply}"
|
|
7312
|
+
?disabled="${selectedCount === 0}"
|
|
7313
|
+
>
|
|
7314
|
+
${I18n.t("filter.applyFilter")} (${selectedCount})
|
|
7315
|
+
</button>
|
|
7316
|
+
`}
|
|
7030
7317
|
</div>
|
|
7031
7318
|
</div>
|
|
7032
7319
|
`;
|
|
@@ -7575,6 +7862,24 @@ JupiterFilterRolesDialog.styles = css`
|
|
|
7575
7862
|
border-top: 1px solid var(--jupiter-border-color, #ddd);
|
|
7576
7863
|
text-align: center;
|
|
7577
7864
|
}
|
|
7865
|
+
|
|
7866
|
+
.btn-text {
|
|
7867
|
+
background: none;
|
|
7868
|
+
border: none;
|
|
7869
|
+
color: var(--buttonBgColor, var(--jupiter-primary-color, #1976d2));
|
|
7870
|
+
padding: 10px 8px;
|
|
7871
|
+
font-size: 14px;
|
|
7872
|
+
font-weight: 500;
|
|
7873
|
+
font-family: inherit;
|
|
7874
|
+
cursor: pointer;
|
|
7875
|
+
margin-right: auto;
|
|
7876
|
+
border-radius: 4px;
|
|
7877
|
+
transition: background-color 0.2s ease;
|
|
7878
|
+
}
|
|
7879
|
+
|
|
7880
|
+
.btn-text:hover {
|
|
7881
|
+
background: var(--menuBgColorLighter, var(--jupiter-hover-background, #f5f5f5));
|
|
7882
|
+
}
|
|
7578
7883
|
`;
|
|
7579
7884
|
__decorateClass$1([
|
|
7580
7885
|
n2({ type: Boolean, reflect: true })
|
|
@@ -7594,6 +7899,12 @@ __decorateClass$1([
|
|
|
7594
7899
|
__decorateClass$1([
|
|
7595
7900
|
n2({ type: Object })
|
|
7596
7901
|
], JupiterFilterRolesDialog.prototype, "hypercubeData", 2);
|
|
7902
|
+
__decorateClass$1([
|
|
7903
|
+
n2({ type: Boolean })
|
|
7904
|
+
], JupiterFilterRolesDialog.prototype, "showFactsOnly", 2);
|
|
7905
|
+
__decorateClass$1([
|
|
7906
|
+
n2({ type: String })
|
|
7907
|
+
], JupiterFilterRolesDialog.prototype, "conceptSearchText", 2);
|
|
7597
7908
|
__decorateClass$1([
|
|
7598
7909
|
r()
|
|
7599
7910
|
], JupiterFilterRolesDialog.prototype, "_tempSelectedRoles", 2);
|
|
@@ -7624,6 +7935,15 @@ __decorateClass$1([
|
|
|
7624
7935
|
__decorateClass$1([
|
|
7625
7936
|
r()
|
|
7626
7937
|
], JupiterFilterRolesDialog.prototype, "_chosenRoleOrder", 2);
|
|
7938
|
+
__decorateClass$1([
|
|
7939
|
+
r()
|
|
7940
|
+
], JupiterFilterRolesDialog.prototype, "_showAdvancedFilter", 2);
|
|
7941
|
+
__decorateClass$1([
|
|
7942
|
+
r()
|
|
7943
|
+
], JupiterFilterRolesDialog.prototype, "_showFactsOnly", 2);
|
|
7944
|
+
__decorateClass$1([
|
|
7945
|
+
r()
|
|
7946
|
+
], JupiterFilterRolesDialog.prototype, "_conceptSearchText", 2);
|
|
7627
7947
|
JupiterFilterRolesDialog = __decorateClass$1([
|
|
7628
7948
|
t$1("jupiter-filter-roles-dialog")
|
|
7629
7949
|
], JupiterFilterRolesDialog);
|
|
@@ -7677,6 +7997,8 @@ let JupiterDynamicForm = class extends LitElement {
|
|
|
7677
7997
|
this._allSections = [];
|
|
7678
7998
|
this._selectedRoleIds = [];
|
|
7679
7999
|
this._showFilterDialog = false;
|
|
8000
|
+
this._showFactsOnly = false;
|
|
8001
|
+
this._conceptSearchText = "";
|
|
7680
8002
|
this._periodPreferences = {};
|
|
7681
8003
|
this._activeSidePanelRoleId = null;
|
|
7682
8004
|
this._sidePanelSearchQuery = "";
|
|
@@ -8366,6 +8688,11 @@ let JupiterDynamicForm = class extends LitElement {
|
|
|
8366
8688
|
_handleFilterRolesClick() {
|
|
8367
8689
|
this._showFilterDialog = true;
|
|
8368
8690
|
}
|
|
8691
|
+
_handleAdvancedFilterApply(event) {
|
|
8692
|
+
this._showFactsOnly = event.detail.showFactsOnly;
|
|
8693
|
+
this._conceptSearchText = event.detail.conceptSearchText ?? "";
|
|
8694
|
+
this._showFilterDialog = false;
|
|
8695
|
+
}
|
|
8369
8696
|
_handleFilterDialogCancel() {
|
|
8370
8697
|
this._showFilterDialog = false;
|
|
8371
8698
|
const roleCount = this._getRoleIdsArray().length;
|
|
@@ -10530,6 +10857,53 @@ let JupiterDynamicForm = class extends LitElement {
|
|
|
10530
10857
|
};
|
|
10531
10858
|
return !hasValue(section2.concepts);
|
|
10532
10859
|
}
|
|
10860
|
+
_getConceptSearchMatchIds(searchText) {
|
|
10861
|
+
var _a, _b, _c;
|
|
10862
|
+
const result = /* @__PURE__ */ new Set();
|
|
10863
|
+
if (!searchText.trim() || !((_b = (_a = this.xbrlInput) == null ? void 0 : _a.presentation) == null ? void 0 : _b.length)) {
|
|
10864
|
+
return result;
|
|
10865
|
+
}
|
|
10866
|
+
const query = searchText.toLowerCase().trim();
|
|
10867
|
+
const walkConcepts = (concepts) => {
|
|
10868
|
+
var _a2, _b2, _c2;
|
|
10869
|
+
for (const concept of concepts) {
|
|
10870
|
+
let matches = ((_a2 = concept.conceptName) == null ? void 0 : _a2.toLowerCase().includes(query)) || ((_b2 = concept.id) == null ? void 0 : _b2.toLowerCase().includes(query));
|
|
10871
|
+
if (!matches && Array.isArray(concept.labels)) {
|
|
10872
|
+
matches = concept.labels.some((l2) => {
|
|
10873
|
+
var _a3;
|
|
10874
|
+
return (_a3 = l2.label) == null ? void 0 : _a3.toLowerCase().includes(query);
|
|
10875
|
+
});
|
|
10876
|
+
}
|
|
10877
|
+
if (matches) {
|
|
10878
|
+
result.add(concept.id);
|
|
10879
|
+
}
|
|
10880
|
+
if ((_c2 = concept.children) == null ? void 0 : _c2.length) {
|
|
10881
|
+
walkConcepts(concept.children);
|
|
10882
|
+
}
|
|
10883
|
+
}
|
|
10884
|
+
};
|
|
10885
|
+
for (const presentationData of this.xbrlInput.presentation) {
|
|
10886
|
+
for (const role of presentationData.roles || []) {
|
|
10887
|
+
walkConcepts(((_c = role.presentationLinkbase) == null ? void 0 : _c.concepts) || []);
|
|
10888
|
+
}
|
|
10889
|
+
}
|
|
10890
|
+
return result;
|
|
10891
|
+
}
|
|
10892
|
+
_isSectionConceptSearchMatch(section2, matchIds) {
|
|
10893
|
+
if (matchIds.size === 0)
|
|
10894
|
+
return false;
|
|
10895
|
+
const checkConcepts = (concepts) => {
|
|
10896
|
+
var _a;
|
|
10897
|
+
for (const concept of concepts) {
|
|
10898
|
+
if (matchIds.has(concept.originalConceptId))
|
|
10899
|
+
return true;
|
|
10900
|
+
if (((_a = concept.children) == null ? void 0 : _a.length) && checkConcepts(concept.children))
|
|
10901
|
+
return true;
|
|
10902
|
+
}
|
|
10903
|
+
return false;
|
|
10904
|
+
};
|
|
10905
|
+
return checkConcepts(section2.concepts);
|
|
10906
|
+
}
|
|
10533
10907
|
_filterSidePanelSections(sections) {
|
|
10534
10908
|
if (!this._sidePanelSearchQuery.trim()) {
|
|
10535
10909
|
return sections;
|
|
@@ -10922,9 +11296,19 @@ let JupiterDynamicForm = class extends LitElement {
|
|
|
10922
11296
|
<p>${I18n.t("filter.selectRoles")}</p>
|
|
10923
11297
|
<p>${I18n.t("filter.roles")}: ${this._allSections.length}</p>
|
|
10924
11298
|
</div>
|
|
10925
|
-
` : (
|
|
10926
|
-
|
|
10927
|
-
|
|
11299
|
+
` : (() => {
|
|
11300
|
+
const conceptMatchIds = this._getConceptSearchMatchIds(this._conceptSearchText);
|
|
11301
|
+
const hasConceptSearch = this._conceptSearchText.trim().length > 0;
|
|
11302
|
+
let sections = schema.sections;
|
|
11303
|
+
if (this.mode === "readonly" || this._showFactsOnly) {
|
|
11304
|
+
sections = sections.filter((s2) => !this._isSectionBlank(s2));
|
|
11305
|
+
}
|
|
11306
|
+
if (hasConceptSearch) {
|
|
11307
|
+
sections = sections.filter((s2) => this._isSectionConceptSearchMatch(s2, conceptMatchIds));
|
|
11308
|
+
}
|
|
11309
|
+
return sections.map((section2, index) => {
|
|
11310
|
+
var _a;
|
|
11311
|
+
return html`
|
|
10928
11312
|
<jupiter-form-section
|
|
10929
11313
|
section-id="${section2.id}"
|
|
10930
11314
|
.section="${section2}"
|
|
@@ -10942,6 +11326,8 @@ let JupiterDynamicForm = class extends LitElement {
|
|
|
10942
11326
|
.isFirstSection="${index === 0}"
|
|
10943
11327
|
.availableDimensions="${this._getAvailableDimensionsForSection(section2.id)}"
|
|
10944
11328
|
.mode="${this.mode}"
|
|
11329
|
+
.showFactsOnly="${this._showFactsOnly}"
|
|
11330
|
+
.conceptMatchIds="${hasConceptSearch ? conceptMatchIds : void 0}"
|
|
10945
11331
|
.masterData="${this.masterData}"
|
|
10946
11332
|
.periodStartDate="${this.periodStartDate}"
|
|
10947
11333
|
.periodEndDate="${this.periodEndDate}"
|
|
@@ -10956,13 +11342,19 @@ let JupiterDynamicForm = class extends LitElement {
|
|
|
10956
11342
|
@column-add-request="${this._handleColumnAddRequest}"
|
|
10957
11343
|
></jupiter-form-section>
|
|
10958
11344
|
`;
|
|
10959
|
-
|
|
11345
|
+
});
|
|
11346
|
+
})()}
|
|
10960
11347
|
</div>
|
|
10961
11348
|
`;
|
|
10962
11349
|
}
|
|
10963
11350
|
_renderSidePanelLayout(schema, config, showValidationSummary, errorCount) {
|
|
10964
11351
|
var _a;
|
|
10965
|
-
const
|
|
11352
|
+
const conceptMatchIds = this._getConceptSearchMatchIds(this._conceptSearchText);
|
|
11353
|
+
const hasConceptSearch = this._conceptSearchText.trim().length > 0;
|
|
11354
|
+
let visibleSections = this.mode === "readonly" || this._showFactsOnly ? schema.sections.filter((s2) => !this._isSectionBlank(s2)) : schema.sections;
|
|
11355
|
+
if (hasConceptSearch) {
|
|
11356
|
+
visibleSections = visibleSections.filter((s2) => this._isSectionConceptSearchMatch(s2, conceptMatchIds));
|
|
11357
|
+
}
|
|
10966
11358
|
const filteredSections = this._filterSidePanelSections(visibleSections);
|
|
10967
11359
|
if (!this._activeSidePanelRoleId || !filteredSections.find((s2) => s2.id === this._activeSidePanelRoleId)) {
|
|
10968
11360
|
this._activeSidePanelRoleId = filteredSections.length > 0 ? filteredSections[0].id : null;
|
|
@@ -11075,6 +11467,8 @@ let JupiterDynamicForm = class extends LitElement {
|
|
|
11075
11467
|
.isFirstSection="${true}"
|
|
11076
11468
|
.availableDimensions="${this._getAvailableDimensionsForSection(activeSection.id)}"
|
|
11077
11469
|
.mode="${this.mode}"
|
|
11470
|
+
.showFactsOnly="${this._showFactsOnly}"
|
|
11471
|
+
.conceptMatchIds="${hasConceptSearch ? conceptMatchIds : void 0}"
|
|
11078
11472
|
.masterData="${this.masterData}"
|
|
11079
11473
|
.periodStartDate="${this.periodStartDate}"
|
|
11080
11474
|
.periodEndDate="${this.periodEndDate}"
|
|
@@ -11227,8 +11621,11 @@ let JupiterDynamicForm = class extends LitElement {
|
|
|
11227
11621
|
.periodPreferences="${this._periodPreferences}"
|
|
11228
11622
|
.hypercubeData="${(_a = this.xbrlInput) == null ? void 0 : _a.hypercubes}"
|
|
11229
11623
|
.mode="${this.mode}"
|
|
11624
|
+
.showFactsOnly="${this._showFactsOnly}"
|
|
11625
|
+
.conceptSearchText="${this._conceptSearchText}"
|
|
11230
11626
|
@dialog-cancel="${this._handleFilterDialogCancel}"
|
|
11231
11627
|
@roles-filter-apply="${this._handleRoleFilterApply}"
|
|
11628
|
+
@advanced-filter-apply="${this._handleAdvancedFilterApply}"
|
|
11232
11629
|
@click="${this._handleFilterDialogCancel}"
|
|
11233
11630
|
></jupiter-filter-roles-dialog>
|
|
11234
11631
|
` : ""}
|
|
@@ -12188,6 +12585,12 @@ __decorateClass([
|
|
|
12188
12585
|
__decorateClass([
|
|
12189
12586
|
r()
|
|
12190
12587
|
], JupiterDynamicForm.prototype, "_showFilterDialog", 2);
|
|
12588
|
+
__decorateClass([
|
|
12589
|
+
r()
|
|
12590
|
+
], JupiterDynamicForm.prototype, "_showFactsOnly", 2);
|
|
12591
|
+
__decorateClass([
|
|
12592
|
+
r()
|
|
12593
|
+
], JupiterDynamicForm.prototype, "_conceptSearchText", 2);
|
|
12191
12594
|
__decorateClass([
|
|
12192
12595
|
r()
|
|
12193
12596
|
], JupiterDynamicForm.prototype, "_periodPreferences", 2);
|
|
@@ -12229,6 +12632,7 @@ export {
|
|
|
12229
12632
|
FactMatcher,
|
|
12230
12633
|
FormValidator,
|
|
12231
12634
|
JupiterAddColumnDialog,
|
|
12635
|
+
JupiterAdvancedFilter,
|
|
12232
12636
|
JupiterConceptTree,
|
|
12233
12637
|
JupiterDynamicForm,
|
|
12234
12638
|
JupiterFilterRolesDialog,
|