@provoly/dashboard 0.15.2 → 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.
- package/esm2022/lib/core/auth/geoAuth.service.mjs +26 -0
- package/esm2022/lib/core/core.module.mjs +8 -2
- package/esm2022/lib/core/public-api.mjs +2 -1
- package/esm2022/lib/core/store/search/search.effects.mjs +3 -3
- package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +10 -4
- package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -2
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +8 -3
- package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +5 -1
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +24 -20
- package/fesm2022/provoly-dashboard-restitution.mjs +4 -1
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +7 -2
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +23 -15
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +46 -10
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/auth/geoAuth.service.d.ts +12 -0
- package/lib/core/core.module.d.ts +1 -0
- package/lib/core/public-api.d.ts +1 -0
- package/lib/core/store/search/search.effects.d.ts +3 -0
- package/lib/core/toolbox/toolbox-menu.service.d.ts +2 -0
- package/package.json +18 -18
- package/restitution/components/restitution/restitution.component.d.ts +7 -0
- package/widgets/widget-map/component/widget-map-layer.service.d.ts +3 -1
- 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]>;
|
package/lib/core/public-api.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "14.x || 15.x || 16.x",
|
|
@@ -194,23 +194,17 @@
|
|
|
194
194
|
"esm": "./esm2022/components/metadata-editor/provoly-dashboard-components-metadata-editor.mjs",
|
|
195
195
|
"default": "./fesm2022/provoly-dashboard-components-metadata-editor.mjs"
|
|
196
196
|
},
|
|
197
|
-
"./components/stepper": {
|
|
198
|
-
"types": "./components/stepper/index.d.ts",
|
|
199
|
-
"esm2022": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
200
|
-
"esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
201
|
-
"default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
|
|
202
|
-
},
|
|
203
197
|
"./components/sinceDate": {
|
|
204
198
|
"types": "./components/sinceDate/index.d.ts",
|
|
205
199
|
"esm2022": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
|
|
206
200
|
"esm": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
|
|
207
201
|
"default": "./fesm2022/provoly-dashboard-components-sinceDate.mjs"
|
|
208
202
|
},
|
|
209
|
-
"./
|
|
210
|
-
"types": "./
|
|
211
|
-
"esm2022": "./esm2022/
|
|
212
|
-
"esm": "./esm2022/
|
|
213
|
-
"default": "./fesm2022/provoly-dashboard-
|
|
203
|
+
"./components/stepper": {
|
|
204
|
+
"types": "./components/stepper/index.d.ts",
|
|
205
|
+
"esm2022": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
206
|
+
"esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
207
|
+
"default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
|
|
214
208
|
},
|
|
215
209
|
"./pipeline-components/filter": {
|
|
216
210
|
"types": "./pipeline-components/filter/index.d.ts",
|
|
@@ -218,6 +212,12 @@
|
|
|
218
212
|
"esm": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
219
213
|
"default": "./fesm2022/provoly-dashboard-pipeline-components-filter.mjs"
|
|
220
214
|
},
|
|
215
|
+
"./pipeline-components/input-datasource": {
|
|
216
|
+
"types": "./pipeline-components/input-datasource/index.d.ts",
|
|
217
|
+
"esm2022": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
|
|
218
|
+
"esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
|
|
219
|
+
"default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
|
|
220
|
+
},
|
|
221
221
|
"./pipeline-components/noop": {
|
|
222
222
|
"types": "./pipeline-components/noop/index.d.ts",
|
|
223
223
|
"esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.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,
|
|
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,
|
|
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
|
}
|