@provoly/dashboard 0.14.2 → 0.14.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/dataset/i18n/en.translations.d.ts +1 -0
- package/dataset/i18n/fr.translations.d.ts +1 -0
- package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +3 -3
- package/esm2022/dataset/i18n/en.translations.mjs +2 -1
- package/esm2022/dataset/i18n/fr.translations.mjs +2 -1
- package/esm2022/import/components/import.component.mjs +3 -3
- package/esm2022/import/i18n/en.translations.mjs +3 -3
- package/esm2022/import/i18n/fr.translations.mjs +3 -2
- package/esm2022/lib/core/i18n/en.translations.mjs +3 -3
- package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
- package/esm2022/presentation/i18n/en.translations.mjs +2 -2
- package/esm2022/restitution/i18n/en.translations.mjs +6 -2
- package/esm2022/supervision/i18n/en.translations.mjs +3 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +53 -23
- package/esm2022/widgets/widget-map/component/wms.service.mjs +67 -0
- package/esm2022/widgets/widget-map/i18n/en.translations.mjs +2 -2
- package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +2 -2
- package/esm2022/widgets/widget-map/pipe/widget-map-legend-url.pipe.mjs +20 -60
- package/esm2022/widgets/widget-map/public-api.mjs +2 -1
- package/esm2022/widgets/widget-map/utils/xml-utils.class.mjs +7 -5
- package/fesm2022/provoly-dashboard-dataset.mjs +4 -2
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +6 -5
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +5 -1
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-supervision.mjs +2 -2
- package/fesm2022/provoly-dashboard-supervision.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +167 -115
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +4 -2
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/import/i18n/en.translations.d.ts +2 -2
- package/import/i18n/fr.translations.d.ts +2 -1
- package/lib/core/model/widget-map-manifest.interface.d.ts +2 -0
- package/package.json +1 -1
- package/restitution/i18n/en.translations.d.ts +4 -0
- package/supervision/i18n/en.translations.d.ts +2 -2
- package/widgets/widget-map/component/widget-map.component.d.ts +5 -2
- package/widgets/widget-map/component/wms.service.d.ts +18 -0
- package/widgets/widget-map/pipe/widget-map-legend-url.pipe.d.ts +5 -5
- package/widgets/widget-map/public-api.d.ts +1 -0
|
@@ -6,8 +6,8 @@ export declare const enTranslations: {
|
|
|
6
6
|
import: string;
|
|
7
7
|
errorTitle: string;
|
|
8
8
|
successTitle: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
uploadTitlezip: string;
|
|
10
|
+
uploadTitlecsv: string;
|
|
11
11
|
selectFile: string;
|
|
12
12
|
importedLines: string;
|
|
13
13
|
consultDataset: string;
|
package/package.json
CHANGED
|
@@ -8,8 +8,8 @@ export declare const enTranslations: {
|
|
|
8
8
|
acknowledgeErrors: string;
|
|
9
9
|
menus: {
|
|
10
10
|
infrastructures: string;
|
|
11
|
-
|
|
12
|
-
'business-
|
|
11
|
+
'input-flows': string;
|
|
12
|
+
'business-datas': string;
|
|
13
13
|
'integration-errors': string;
|
|
14
14
|
};
|
|
15
15
|
infrastructures: {
|
|
@@ -13,6 +13,7 @@ import { Style } from 'ol/style';
|
|
|
13
13
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
14
14
|
import { InteractionManager } from '../interaction/interaction-manager.class';
|
|
15
15
|
import { WidgetMapLayerService } from './widget-map-layer.service';
|
|
16
|
+
import { GetCapabilitiesResponse, WmsService } from './wms.service';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
18
|
export declare const TOOLTIP_PADDING = 15;
|
|
18
19
|
export declare class WidgetMapComponent extends DataWidgetComponent implements AfterViewInit, OnDestroy {
|
|
@@ -24,6 +25,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
24
25
|
private symbolService;
|
|
25
26
|
private injector;
|
|
26
27
|
private widgetMapLayerService;
|
|
28
|
+
private wmsService;
|
|
27
29
|
mapUrl$: Observable<string>;
|
|
28
30
|
mapRef: ElementRef;
|
|
29
31
|
popup: ElementRef;
|
|
@@ -83,7 +85,8 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
83
85
|
tooltipNumber: number;
|
|
84
86
|
STYLE_FROM_URL: string;
|
|
85
87
|
NO_STYLE: string;
|
|
86
|
-
|
|
88
|
+
wmsCapabilities$: Observable<(GetCapabilitiesResponse | null)[]>;
|
|
89
|
+
constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, el: ElementRef, wmsService: WmsService);
|
|
87
90
|
initInteractionManager(): InteractionManager;
|
|
88
91
|
ngAfterViewInit(): void;
|
|
89
92
|
initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
|
|
@@ -92,7 +95,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
92
95
|
coordinates: Pixel;
|
|
93
96
|
values: any;
|
|
94
97
|
}): Promise<ComponentRef<BaseTooltipComponent> | null>;
|
|
95
|
-
setDefaultLayerTitle(layer: MapWidgetLayerOptions,
|
|
98
|
+
setDefaultLayerTitle(layer: MapWidgetLayerOptions, capabilities: (GetCapabilitiesResponse | null)[]): void;
|
|
96
99
|
fitMapForObjects(fit: boolean, selectedIds?: string[]): void;
|
|
97
100
|
private getAttributesForDrawing;
|
|
98
101
|
private getIntensityAttribute;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { MapGeoServerLayerOptions, MapWMSLayerLayerOptions } from '@provoly/dashboard';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type GetCapabilitiesResponse = {
|
|
6
|
+
url: string;
|
|
7
|
+
paramLayer: string;
|
|
8
|
+
doc: Document;
|
|
9
|
+
};
|
|
10
|
+
export declare class WmsService {
|
|
11
|
+
private httpClient;
|
|
12
|
+
parser: DOMParser;
|
|
13
|
+
constructor(httpClient: HttpClient);
|
|
14
|
+
getCapabilities(wmsLayer: MapGeoServerLayerOptions | MapWMSLayerLayerOptions): Observable<GetCapabilitiesResponse | null>;
|
|
15
|
+
static getMatchingLayer(paramLayer: string, doc: Document): ChildNode | null;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WmsService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WmsService>;
|
|
18
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { PipeTransform } from '@angular/core';
|
|
3
2
|
import { MapGeoServerLayerOptions, MapWMSLayerLayerOptions } from '@provoly/dashboard';
|
|
4
|
-
import {
|
|
3
|
+
import { GetCapabilitiesResponse } from '../component/wms.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class WidgetMapLegendUrlPipe implements PipeTransform {
|
|
7
|
-
|
|
8
|
-
constructor(httpClient: HttpClient);
|
|
6
|
+
constructor();
|
|
9
7
|
parser: DOMParser;
|
|
10
|
-
transform(geoLayer: MapGeoServerLayerOptions | MapWMSLayerLayerOptions
|
|
8
|
+
transform(geoLayer: MapGeoServerLayerOptions | MapWMSLayerLayerOptions, ...args: [{
|
|
9
|
+
capabilities: (GetCapabilitiesResponse | null)[] | null;
|
|
10
|
+
}]): string;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapLegendUrlPipe, never>;
|
|
12
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<WidgetMapLegendUrlPipe, "legendUrl", false>;
|
|
13
13
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './widget-map.module';
|
|
2
2
|
export * from './component/widget-map.component';
|
|
3
3
|
export * from './component/widget-map-layer.service';
|
|
4
|
+
export * from './component/wms.service';
|
|
4
5
|
export * from './pipe/widget-map-geometry-fields-for.pipe';
|
|
5
6
|
export * from './pipe/widget-map-legend-url.pipe';
|
|
6
7
|
export * from './interaction/interaction-manager.class';
|