@provoly/dashboard 0.15.1 → 0.15.3

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.
Files changed (27) hide show
  1. package/esm2022/lib/core/auth/geoAuth.service.mjs +26 -0
  2. package/esm2022/lib/core/core.module.mjs +8 -2
  3. package/esm2022/lib/core/public-api.mjs +2 -1
  4. package/esm2022/lib/core/store/search/search.effects.mjs +3 -3
  5. package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +10 -4
  6. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -2
  7. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -2
  8. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +8 -3
  9. package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +5 -1
  10. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +24 -20
  11. package/fesm2022/provoly-dashboard-restitution.mjs +4 -1
  12. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  13. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +7 -2
  14. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  15. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +23 -15
  16. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  17. package/fesm2022/provoly-dashboard.mjs +47 -11
  18. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  19. package/lib/core/auth/geoAuth.service.d.ts +12 -0
  20. package/lib/core/core.module.d.ts +1 -0
  21. package/lib/core/public-api.d.ts +1 -0
  22. package/lib/core/store/search/search.effects.d.ts +3 -0
  23. package/lib/core/toolbox/toolbox-menu.service.d.ts +2 -0
  24. package/package.json +19 -19
  25. package/restitution/components/restitution/restitution.component.d.ts +7 -0
  26. package/widgets/widget-map/component/widget-map-layer.service.d.ts +3 -1
  27. package/widgets/widget-map/component/widget-map.component.d.ts +4 -6
@@ -0,0 +1,12 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class PryGeoAuthService {
4
+ abstract customLoader(tile: any, src: string): void;
5
+ }
6
+ export declare const PRY_GEOAUTH_TOKEN: InjectionToken<PryGeoAuthService>;
7
+ export declare class PryDefaultGeoAuthService extends PryGeoAuthService {
8
+ constructor();
9
+ customLoader(tile: any, src: string): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PryDefaultGeoAuthService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<PryDefaultGeoAuthService>;
12
+ }
@@ -34,6 +34,7 @@ export declare class PryCoreModule {
34
34
  static forRoot(access?: {
35
35
  accessProvider?: Provider;
36
36
  guardProvider?: Provider;
37
+ geoAuthProvider?: Provider;
37
38
  }): ModuleWithProviders<PryCoreModule>;
38
39
  static ɵfac: i0.ɵɵFactoryDeclaration<PryCoreModule, never>;
39
40
  static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.PryNqColorSelectorComponent, typeof i8.PryAccessDirective, typeof i9.PryUploadComponent, typeof i10.PrySelectImageComponent, typeof i11.AccordionComponent, typeof i12.AccordionItemComponent, typeof i13.TabGroupComponent, typeof i14.TabComponent, typeof i15.BaseToolboxActionComponent], [typeof i16.CommonModule, typeof i17.RouterModule, typeof i18.HttpClientModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i19.StoreFeatureModule, typeof i20.EffectsFeatureModule, typeof i20.EffectsFeatureModule, typeof i20.EffectsFeatureModule, typeof i20.EffectsFeatureModule, typeof i20.EffectsFeatureModule, typeof i20.EffectsFeatureModule, typeof i20.EffectsFeatureModule, typeof i20.EffectsFeatureModule, typeof i20.EffectsFeatureModule, typeof i21.PryIconModule, typeof i22.OverlayModule, typeof i23.PryOverlayModule, typeof i24.PryI18nModule, typeof i25.PryModalStatusModule, typeof i26.CdkAccordionModule, typeof i27.FormsModule], [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.PryNqColorSelectorComponent, typeof i8.PryAccessDirective, typeof i9.PryUploadComponent, typeof i10.PrySelectImageComponent, typeof i11.AccordionComponent, typeof i12.AccordionItemComponent, typeof i13.TabGroupComponent, typeof i14.TabComponent]>;
@@ -105,6 +105,7 @@ export * from './access/access.guard';
105
105
  export * from './access/access.model';
106
106
  export * from './access/access.service';
107
107
  export * from './access/access.utils';
108
+ export * from './auth/geoAuth.service';
108
109
  export * from './ws/websocket.service';
109
110
  export * from './symbol/symbol.service';
110
111
  export * from './toolbox/toolbox-manifest.service';
@@ -15,6 +15,9 @@ export declare class SearchEffects {
15
15
  error: any;
16
16
  id?: string | undefined;
17
17
  } & import("@ngrx/store/src/models").TypedAction<"[Search Api] (bus) Search Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
18
+ updateAggregatesInWidget$: import("rxjs").Observable<{
19
+ id: string;
20
+ } & import("@ngrx/store/src/models").TypedAction<"[Search] (bus) search named">> & import("@ngrx/effects").CreateEffectMetadata;
18
21
  search$: import("rxjs").Observable<({
19
22
  resultSet: import("@provoly/dashboard").ResultSet;
20
23
  id?: string | undefined;
@@ -4,6 +4,7 @@ import { WidgetFactoryService } from '../../dashboard/components/widgets/widget-
4
4
  import { PryVisibility } from '../components/share/share.model';
5
5
  import { Widget } from '../model/widget.interface';
6
6
  import { ToolboxManifestService } from './toolbox-manifest.service';
7
+ import { WidgetManifest } from '../model/manifest.interface';
7
8
  import * as i0 from "@angular/core";
8
9
  export type WidgetDescriptionBase = {
9
10
  icon: string;
@@ -33,6 +34,7 @@ export declare class ToolboxMenuService {
33
34
  icon: string;
34
35
  label: string;
35
36
  type: string;
37
+ manifest: WidgetManifest;
36
38
  }[]>;
37
39
  constructor(widgetFactoryService: WidgetFactoryService, toolboxManifestService: ToolboxManifestService, store: Store);
38
40
  addMenu(icon: string, label: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "14.x || 15.x || 16.x",
@@ -86,18 +86,18 @@
86
86
  "esm": "./esm2022/admin/provoly-dashboard-admin.mjs",
87
87
  "default": "./fesm2022/provoly-dashboard-admin.mjs"
88
88
  },
89
- "./import": {
90
- "types": "./import/index.d.ts",
91
- "esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
92
- "esm": "./esm2022/import/provoly-dashboard-import.mjs",
93
- "default": "./fesm2022/provoly-dashboard-import.mjs"
94
- },
95
89
  "./dataset": {
96
90
  "types": "./dataset/index.d.ts",
97
91
  "esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
98
92
  "esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
99
93
  "default": "./fesm2022/provoly-dashboard-dataset.mjs"
100
94
  },
95
+ "./import": {
96
+ "types": "./import/index.d.ts",
97
+ "esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
98
+ "esm": "./esm2022/import/provoly-dashboard-import.mjs",
99
+ "default": "./fesm2022/provoly-dashboard-import.mjs"
100
+ },
101
101
  "./notification": {
102
102
  "types": "./notification/index.d.ts",
103
103
  "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
@@ -224,18 +224,18 @@
224
224
  "esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
225
225
  "default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
226
226
  },
227
- "./pipeline-components/subgraph": {
228
- "types": "./pipeline-components/subgraph/index.d.ts",
229
- "esm2022": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.mjs",
230
- "esm": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.mjs",
231
- "default": "./fesm2022/provoly-dashboard-pipeline-components-subgraph.mjs"
232
- },
233
227
  "./pipeline-components/output-dataset": {
234
228
  "types": "./pipeline-components/output-dataset/index.d.ts",
235
229
  "esm2022": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
236
230
  "esm": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
237
231
  "default": "./fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs"
238
232
  },
233
+ "./pipeline-components/subgraph": {
234
+ "types": "./pipeline-components/subgraph/index.d.ts",
235
+ "esm2022": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.mjs",
236
+ "esm": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.mjs",
237
+ "default": "./fesm2022/provoly-dashboard-pipeline-components-subgraph.mjs"
238
+ },
239
239
  "./tooltips/attribute": {
240
240
  "types": "./tooltips/attribute/index.d.ts",
241
241
  "esm2022": "./esm2022/tooltips/attribute/provoly-dashboard-tooltips-attribute.mjs",
@@ -284,18 +284,18 @@
284
284
  "esm": "./esm2022/widgets/widget-image/provoly-dashboard-widgets-widget-image.mjs",
285
285
  "default": "./fesm2022/provoly-dashboard-widgets-widget-image.mjs"
286
286
  },
287
- "./widgets/widget-map": {
288
- "types": "./widgets/widget-map/index.d.ts",
289
- "esm2022": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
290
- "esm": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
291
- "default": "./fesm2022/provoly-dashboard-widgets-widget-map.mjs"
292
- },
293
287
  "./widgets/widget-table": {
294
288
  "types": "./widgets/widget-table/index.d.ts",
295
289
  "esm2022": "./esm2022/widgets/widget-table/provoly-dashboard-widgets-widget-table.mjs",
296
290
  "esm": "./esm2022/widgets/widget-table/provoly-dashboard-widgets-widget-table.mjs",
297
291
  "default": "./fesm2022/provoly-dashboard-widgets-widget-table.mjs"
298
292
  },
293
+ "./widgets/widget-map": {
294
+ "types": "./widgets/widget-map/index.d.ts",
295
+ "esm2022": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
296
+ "esm": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
297
+ "default": "./fesm2022/provoly-dashboard-widgets-widget-map.mjs"
298
+ },
299
299
  "./widgets/widget-template": {
300
300
  "types": "./widgets/widget-template/index.d.ts",
301
301
  "esm2022": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
@@ -13,6 +13,7 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
13
13
  icon: string;
14
14
  label: string;
15
15
  type: string;
16
+ manifest: WidgetManifest;
16
17
  }[]>;
17
18
  classes$: Observable<Class[]>;
18
19
  customManifest: WidgetManifest;
@@ -29,6 +30,12 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
29
30
  isDataSourceSelected: boolean;
30
31
  bindId: any;
31
32
  image: string;
33
+ widgetTypes: {
34
+ icon: string;
35
+ label: string;
36
+ type: string;
37
+ manifest: WidgetManifest;
38
+ }[];
32
39
  constructor(toolboxManifestService: ToolboxManifestService, store: Store, toolboxMenuService: ToolboxMenuService);
33
40
  ngOnInit(): void;
34
41
  cancel(stepper: PryStepperComponent): void;
@@ -1,4 +1,4 @@
1
- import { Attribute, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetRelationLayerOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, ResultSet } from '@provoly/dashboard';
1
+ import { Attribute, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetRelationLayerOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryGeoAuthService, ResultSet } from '@provoly/dashboard';
2
2
  import { Map } from 'ol';
3
3
  import { Geometry } from 'ol/geom';
4
4
  import { Tile } from 'ol/layer';
@@ -26,6 +26,8 @@ export declare class WidgetMapLayerService {
26
26
  selectedCircleStyle: Style;
27
27
  pointStyle: Style;
28
28
  selectedPointStyle: Style;
29
+ geoAuthService?: PryGeoAuthService;
30
+ withGeoAuth(geoAuthService: PryGeoAuthService): void;
29
31
  get implementationList(): string[];
30
32
  dontNeedLocation: string[];
31
33
  dontNeedIntensity: string[];
@@ -1,7 +1,6 @@
1
- import { Overlay as cdkOverlay } from '@angular/cdk/overlay';
2
1
  import { AfterViewInit, ComponentRef, ElementRef, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
3
2
  import { Store } from '@ngrx/store';
4
- import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
3
+ import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
5
4
  import { Map } from 'ol';
6
5
  import { Coordinate } from 'ol/coordinate';
7
6
  import { Geometry } from 'ol/geom';
@@ -21,12 +20,11 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
21
20
  private snackBar;
22
21
  translateService: PryI18nService;
23
22
  private tooltipFactoryService;
24
- private overlay;
25
- private viewContainerRef;
26
23
  private symbolService;
27
24
  private injector;
28
25
  private widgetMapLayerService;
29
26
  private pryAggregationService;
27
+ private geoAuthService;
30
28
  mapUrl$: Observable<string>;
31
29
  mapRef: ElementRef;
32
30
  popup: ElementRef;
@@ -96,7 +94,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
96
94
  }[]>;
97
95
  datasourceFilters$: Observable<any>;
98
96
  usedClasses$: Observable<any>;
99
- constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef);
97
+ constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef, geoAuthService: PryGeoAuthService);
100
98
  initInteractionManager(): InteractionManager;
101
99
  ngAfterViewInit(): void;
102
100
  initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
@@ -160,6 +158,6 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
160
158
  changeAutoLayer($event: any): void;
161
159
  get layerVisibleIdx(): number;
162
160
  ngOnDestroy(): void;
163
- static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, never>;
161
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
164
162
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMapComponent, "pry-widget-map", never, {}, {}, never, never, false, never>;
165
163
  }