@provoly/dashboard 0.22.8 → 0.22.10
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/esm2022/admin/components/admin-classes/admin-classes-customize/admin-classes-customize.component.mjs +3 -3
- package/esm2022/lib/dashboard/components/widgets/widget-instanciator/widget-factory.service.mjs +6 -5
- package/esm2022/lib/dashboard/item-utils.mjs +3 -3
- package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +4 -1
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +2 -2
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +4 -4
- package/fesm2022/provoly-dashboard-admin.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +3 -0
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +3 -3
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +7 -6
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/dashboard/item-utils.d.ts +1 -1
- package/package.json +12 -12
- package/toolbox/components/filter-settings/filter-settings.component.d.ts +7 -0
|
@@ -162,6 +162,7 @@ class PryFilterSettingsComponent extends ToolboxActionComponent {
|
|
|
162
162
|
this.currentOperators$ = new BehaviorSubject(this.operators);
|
|
163
163
|
this.classes = [];
|
|
164
164
|
this.selectedAttribute$ = new BehaviorSubject(this.filter.attributes.map((attr) => attr.id));
|
|
165
|
+
this.attributes = [];
|
|
165
166
|
this.FilterSteps = FilterSteps;
|
|
166
167
|
this.manifest$ = store.select(DashboardSelectors.globalManifest);
|
|
167
168
|
this.subscriptions.add(this.manifest$.subscribe((manifest) => {
|
|
@@ -211,6 +212,7 @@ class PryFilterSettingsComponent extends ToolboxActionComponent {
|
|
|
211
212
|
})
|
|
212
213
|
.filter((attr) => !!attr)
|
|
213
214
|
]));
|
|
215
|
+
this.subscriptions.add(this.attributes$.subscribe((attrs) => (this.attributes = attrs)));
|
|
214
216
|
}
|
|
215
217
|
getDatasourceClass(dataSource, classes) {
|
|
216
218
|
let clazz = undefined;
|
|
@@ -302,6 +304,7 @@ class PryFilterSettingsComponent extends ToolboxActionComponent {
|
|
|
302
304
|
this.currentStep = FilterSteps.CREATION;
|
|
303
305
|
}
|
|
304
306
|
submitFilter() {
|
|
307
|
+
this.filter.attributes = this.filter.attributes.map((attr) => typeof attr === 'string' ? this.attributes.find((attrObj) => attrObj.id === attr) : attr);
|
|
305
308
|
this.store.dispatch(DashboardActions.updateFilters({ filter: this.filter }));
|
|
306
309
|
this.goBack();
|
|
307
310
|
}
|