@provoly/dashboard 0.14.2 → 0.14.4

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 (46) 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 +3 -2
  5. package/esm2022/dataset/i18n/fr.translations.mjs +6 -5
  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 +53 -23
  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/xml-utils.class.mjs +7 -5
  22. package/fesm2022/provoly-dashboard-dataset.mjs +9 -7
  23. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  24. package/fesm2022/provoly-dashboard-import.mjs +6 -5
  25. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  26. package/fesm2022/provoly-dashboard-presentation.mjs +1 -1
  27. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  28. package/fesm2022/provoly-dashboard-restitution.mjs +5 -1
  29. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  30. package/fesm2022/provoly-dashboard-supervision.mjs +2 -2
  31. package/fesm2022/provoly-dashboard-supervision.mjs.map +1 -1
  32. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +167 -115
  33. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  34. package/fesm2022/provoly-dashboard.mjs +11 -9
  35. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  36. package/import/i18n/en.translations.d.ts +2 -2
  37. package/import/i18n/fr.translations.d.ts +2 -1
  38. package/lib/core/model/widget-map-manifest.interface.d.ts +2 -0
  39. package/package.json +13 -13
  40. package/restitution/i18n/en.translations.d.ts +4 -0
  41. package/styles/components/_o-modal.scss +5 -0
  42. package/supervision/i18n/en.translations.d.ts +2 -2
  43. package/widgets/widget-map/component/widget-map.component.d.ts +5 -2
  44. package/widgets/widget-map/component/wms.service.d.ts +18 -0
  45. package/widgets/widget-map/pipe/widget-map-legend-url.pipe.d.ts +5 -5
  46. 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.4",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -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/filter": {
156
- "types": "./components/filter/index.d.ts",
157
- "esm2022": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
158
- "esm": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
159
- "default": "./fesm2022/provoly-dashboard-components-filter.mjs"
160
- },
161
155
  "./components/expand-panel": {
162
156
  "types": "./components/expand-panel/index.d.ts",
163
157
  "esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
164
158
  "esm": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
165
159
  "default": "./fesm2022/provoly-dashboard-components-expand-panel.mjs"
166
160
  },
161
+ "./components/filter": {
162
+ "types": "./components/filter/index.d.ts",
163
+ "esm2022": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
164
+ "esm": "./esm2022/components/filter/provoly-dashboard-components-filter.mjs",
165
+ "default": "./fesm2022/provoly-dashboard-components-filter.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",
@@ -218,18 +218,18 @@
218
218
  "esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
219
219
  "default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
220
220
  },
221
- "./pipeline-components/noop": {
222
- "types": "./pipeline-components/noop/index.d.ts",
223
- "esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
224
- "esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
225
- "default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
226
- },
227
221
  "./pipeline-components/output-dataset": {
228
222
  "types": "./pipeline-components/output-dataset/index.d.ts",
229
223
  "esm2022": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
230
224
  "esm": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
231
225
  "default": "./fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs"
232
226
  },
227
+ "./pipeline-components/noop": {
228
+ "types": "./pipeline-components/noop/index.d.ts",
229
+ "esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
230
+ "esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
231
+ "default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
232
+ },
233
233
  "./pipeline-components/subgraph": {
234
234
  "types": "./pipeline-components/subgraph/index.d.ts",
235
235
  "esm2022": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.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
  };
@@ -12,6 +12,11 @@
12
12
  overflow-y: auto;
13
13
  padding: toRem(18) toRem(26) toRem(36) toRem(26);
14
14
  transform: translate(-50%, -50%);
15
+
16
+ &.-extra-large {
17
+ max-width: toRem(880);
18
+ padding: toRem(36) toRem(48) toRem(48) toRem(48);
19
+ }
15
20
  }
16
21
 
17
22
  .o-modal {
@@ -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';