@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.
Files changed (44) hide show
  1. package/dataset/i18n/en.translations.d.ts +1 -0
  2. package/dataset/i18n/fr.translations.d.ts +1 -0
  3. package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +3 -3
  4. package/esm2022/dataset/i18n/en.translations.mjs +2 -1
  5. package/esm2022/dataset/i18n/fr.translations.mjs +2 -1
  6. package/esm2022/import/components/import.component.mjs +3 -3
  7. package/esm2022/import/i18n/en.translations.mjs +3 -3
  8. package/esm2022/import/i18n/fr.translations.mjs +3 -2
  9. package/esm2022/lib/core/i18n/en.translations.mjs +3 -3
  10. package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
  11. package/esm2022/presentation/i18n/en.translations.mjs +2 -2
  12. package/esm2022/restitution/i18n/en.translations.mjs +6 -2
  13. package/esm2022/supervision/i18n/en.translations.mjs +3 -3
  14. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +53 -23
  15. package/esm2022/widgets/widget-map/component/wms.service.mjs +67 -0
  16. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +2 -2
  17. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +2 -2
  18. package/esm2022/widgets/widget-map/pipe/widget-map-legend-url.pipe.mjs +20 -60
  19. package/esm2022/widgets/widget-map/public-api.mjs +2 -1
  20. package/esm2022/widgets/widget-map/utils/xml-utils.class.mjs +7 -5
  21. package/fesm2022/provoly-dashboard-dataset.mjs +4 -2
  22. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  23. package/fesm2022/provoly-dashboard-import.mjs +6 -5
  24. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  25. package/fesm2022/provoly-dashboard-presentation.mjs +1 -1
  26. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  27. package/fesm2022/provoly-dashboard-restitution.mjs +5 -1
  28. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  29. package/fesm2022/provoly-dashboard-supervision.mjs +2 -2
  30. package/fesm2022/provoly-dashboard-supervision.mjs.map +1 -1
  31. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +167 -115
  32. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  33. package/fesm2022/provoly-dashboard.mjs +4 -2
  34. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  35. package/import/i18n/en.translations.d.ts +2 -2
  36. package/import/i18n/fr.translations.d.ts +2 -1
  37. package/lib/core/model/widget-map-manifest.interface.d.ts +2 -0
  38. package/package.json +1 -1
  39. package/restitution/i18n/en.translations.d.ts +4 -0
  40. package/supervision/i18n/en.translations.d.ts +2 -2
  41. package/widgets/widget-map/component/widget-map.component.d.ts +5 -2
  42. package/widgets/widget-map/component/wms.service.d.ts +18 -0
  43. package/widgets/widget-map/pipe/widget-map-legend-url.pipe.d.ts +5 -5
  44. 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
- uploadTitleShapefile: string;
10
- uploadTitleCsv: string;
9
+ uploadTitlezip: string;
10
+ uploadTitlecsv: string;
11
11
  selectFile: string;
12
12
  importedLines: string;
13
13
  consultDataset: string;
@@ -6,7 +6,8 @@ export declare const frTranslations: {
6
6
  import: string;
7
7
  errorTitle: string;
8
8
  successTitle: string;
9
- uploadTitle: string;
9
+ uploadTitlezip: string;
10
+ uploadTitlecsv: string;
10
11
  selectFile: string;
11
12
  importedLines: string;
12
13
  consultDataset: string;
@@ -89,6 +89,8 @@ export interface MapGeoServerLayerOptions extends BaseWidgetMapLayerOptions {
89
89
  url: string;
90
90
  oClass: string;
91
91
  datasourceId: string;
92
+ namespace: string;
93
+ name: string;
92
94
  }
93
95
  export declare enum TooltipMode {
94
96
  CLICK = "click",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -38,6 +38,10 @@ export declare const enTranslations: {
38
38
  update: string;
39
39
  cover: string;
40
40
  noDataSourceSelected: string;
41
+ catalogTabs: {
42
+ model: string;
43
+ noModel: string;
44
+ };
41
45
  };
42
46
  };
43
47
  };
@@ -8,8 +8,8 @@ export declare const enTranslations: {
8
8
  acknowledgeErrors: string;
9
9
  menus: {
10
10
  infrastructures: string;
11
- flow: string;
12
- 'business-data': string;
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
- constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, el: ElementRef);
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, idx: number): void;
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 { Observable } from 'rxjs';
3
+ import { GetCapabilitiesResponse } from '../component/wms.service';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class WidgetMapLegendUrlPipe implements PipeTransform {
7
- private httpClient;
8
- constructor(httpClient: HttpClient);
6
+ constructor();
9
7
  parser: DOMParser;
10
- transform(geoLayer: MapGeoServerLayerOptions | MapWMSLayerLayerOptions): Observable<string>;
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';