@provoly/dashboard 0.22.9 → 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/lib/dashboard/components/widgets/widget-instanciator/widget-factory.service.mjs +6 -5
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +2 -2
- 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.mjs +5 -4
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -7816,10 +7816,11 @@ class WidgetFactoryService {
|
|
|
7816
7816
|
return datasourcesArray
|
|
7817
7817
|
.filter((datasource) => {
|
|
7818
7818
|
const matching = this.datasources.find((ds) => ds.id === datasource);
|
|
7819
|
-
return (
|
|
7820
|
-
widgetDefinition.autoLoadDatasource ===
|
|
7821
|
-
|
|
7822
|
-
|
|
7819
|
+
return (!!matching &&
|
|
7820
|
+
(widgetDefinition.autoLoadDatasource === undefined ||
|
|
7821
|
+
widgetDefinition.autoLoadDatasource === 'all' ||
|
|
7822
|
+
(widgetDefinition.autoLoadDatasource === 'geo' && DatasourceUtils.isGeo(matching)) ||
|
|
7823
|
+
(widgetDefinition.autoLoadDatasource === 'not-geo' && !DatasourceUtils.isGeo(matching))));
|
|
7823
7824
|
})
|
|
7824
7825
|
.map((ds) => ({ datasetId: ds, excludeGeo: manifest.type !== 'map' }));
|
|
7825
7826
|
}
|