@provoly/dashboard 0.22.9 → 0.22.11
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/lib/dashboard/filter/filter-loader.function.mjs +2 -2
- package/esm2022/lib/dashboard/tooltip/tooltip-loader.function.mjs +2 -2
- package/esm2022/lib/dashboard/widget-loader.function.mjs +2 -2
- 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 +8 -7
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/package.json +31 -31
|
@@ -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
|
}
|
|
@@ -12331,7 +12332,7 @@ function widgetLoader(module, prop) {
|
|
|
12331
12332
|
return moduleRefCache$2[prop].getComponent();
|
|
12332
12333
|
}
|
|
12333
12334
|
else {
|
|
12334
|
-
if (module
|
|
12335
|
+
if (!!module[prop]) {
|
|
12335
12336
|
const moduleRef = createNgModule(module[prop], Injector.create({ parent: injector, providers: [] }));
|
|
12336
12337
|
moduleRefCache$2[prop] = moduleRef.instance;
|
|
12337
12338
|
return moduleRefCache$2[prop].getComponent();
|
|
@@ -12364,7 +12365,7 @@ function tooltipLoader(module, prop) {
|
|
|
12364
12365
|
return moduleRefCache$1[prop].getComponent();
|
|
12365
12366
|
}
|
|
12366
12367
|
else {
|
|
12367
|
-
if (module
|
|
12368
|
+
if (!!module[prop]) {
|
|
12368
12369
|
const moduleRef = createNgModule(module[prop], Injector.create({ parent: injector, providers: [] }));
|
|
12369
12370
|
moduleRefCache$1[prop] = moduleRef.instance;
|
|
12370
12371
|
return moduleRefCache$1[prop].getComponent();
|
|
@@ -12397,7 +12398,7 @@ function filterLoader(module, prop) {
|
|
|
12397
12398
|
return moduleRefCache[prop].getComponent();
|
|
12398
12399
|
}
|
|
12399
12400
|
else {
|
|
12400
|
-
if (module
|
|
12401
|
+
if (!!module[prop]) {
|
|
12401
12402
|
const moduleRef = createNgModule(module[prop], Injector.create({ parent: injector, providers: [] }));
|
|
12402
12403
|
moduleRefCache[prop] = moduleRef.instance;
|
|
12403
12404
|
return moduleRefCache[prop].getComponent();
|