@provoly/dashboard 0.14.1 → 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 (47) 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/components/modal-status/modal-status.component.mjs +3 -3
  10. package/esm2022/lib/core/i18n/en.translations.mjs +3 -3
  11. package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
  12. package/esm2022/presentation/i18n/en.translations.mjs +2 -2
  13. package/esm2022/restitution/i18n/en.translations.mjs +6 -2
  14. package/esm2022/supervision/i18n/en.translations.mjs +3 -3
  15. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +59 -24
  16. package/esm2022/widgets/widget-map/component/wms.service.mjs +67 -0
  17. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +2 -2
  18. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +2 -2
  19. package/esm2022/widgets/widget-map/pipe/widget-map-legend-url.pipe.mjs +20 -60
  20. package/esm2022/widgets/widget-map/public-api.mjs +2 -1
  21. package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +2 -2
  22. package/esm2022/widgets/widget-map/utils/xml-utils.class.mjs +7 -5
  23. package/fesm2022/provoly-dashboard-dataset.mjs +4 -2
  24. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  25. package/fesm2022/provoly-dashboard-import.mjs +6 -5
  26. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  27. package/fesm2022/provoly-dashboard-presentation.mjs +1 -1
  28. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  29. package/fesm2022/provoly-dashboard-restitution.mjs +5 -1
  30. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  31. package/fesm2022/provoly-dashboard-supervision.mjs +2 -2
  32. package/fesm2022/provoly-dashboard-supervision.mjs.map +1 -1
  33. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +174 -117
  34. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  35. package/fesm2022/provoly-dashboard.mjs +6 -4
  36. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  37. package/import/i18n/en.translations.d.ts +2 -2
  38. package/import/i18n/fr.translations.d.ts +2 -1
  39. package/lib/core/components/modal-status/modal-status.component.d.ts +0 -1
  40. package/lib/core/model/widget-map-manifest.interface.d.ts +2 -0
  41. package/package.json +13 -13
  42. package/restitution/i18n/en.translations.d.ts +4 -0
  43. package/supervision/i18n/en.translations.d.ts +2 -2
  44. package/widgets/widget-map/component/widget-map.component.d.ts +5 -2
  45. package/widgets/widget-map/component/wms.service.d.ts +18 -0
  46. package/widgets/widget-map/pipe/widget-map-legend-url.pipe.d.ts +5 -5
  47. 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;
@@ -7,7 +7,6 @@ export declare class PryModalStatusComponent {
7
7
  private store;
8
8
  gotoConsult: EventEmitter<DatasetVersion>;
9
9
  datasetPreviews$?: Observable<{
10
- count: number;
11
10
  datasetVersionId: string;
12
11
  extractMessageCode: string;
13
12
  level: 'ERROR' | 'WARNING';
@@ -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.1",
3
+ "version": "0.14.3",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "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",
@@ -152,18 +152,18 @@
152
152
  "esm": "./esm2022/components/checkbox/provoly-dashboard-components-checkbox.mjs",
153
153
  "default": "./fesm2022/provoly-dashboard-components-checkbox.mjs"
154
154
  },
155
- "./components/expand-panel": {
156
- "types": "./components/expand-panel/index.d.ts",
157
- "esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
158
- "esm": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
159
- "default": "./fesm2022/provoly-dashboard-components-expand-panel.mjs"
160
- },
161
155
  "./components/filter": {
162
156
  "types": "./components/filter/index.d.ts",
163
157
  "esm2022": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
164
158
  "esm": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
165
159
  "default": "./fesm2022/provoly-dashboard-components-filter.mjs"
166
160
  },
161
+ "./components/expand-panel": {
162
+ "types": "./components/expand-panel/index.d.ts",
163
+ "esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
164
+ "esm": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
165
+ "default": "./fesm2022/provoly-dashboard-components-expand-panel.mjs"
166
+ },
167
167
  "./components/metadata-editor": {
168
168
  "types": "./components/metadata-editor/index.d.ts",
169
169
  "esm2022": "./esm2022/components/metadata-editor/provoly-dashboard-components-metadata-editor.mjs",
@@ -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';