@provoly/dashboard 0.15.8 → 0.15.9

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 (43) hide show
  1. package/esm2022/admin/components/admin-classes/admin-classes-customize/tooltip/admin-classes-customize-tooltip.component.mjs +7 -6
  2. package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +5 -4
  3. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +3 -3
  4. package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +2 -2
  5. package/esm2022/admin/i18n/fr.translations.mjs +2 -2
  6. package/esm2022/dataset/i18n/fr.translations.mjs +2 -2
  7. package/esm2022/lib/core/auth/geoAuth.service.mjs +8 -15
  8. package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
  9. package/esm2022/presentation/components/presentation.component.mjs +3 -3
  10. package/esm2022/presentation/i18n/en.translations.mjs +3 -2
  11. package/esm2022/presentation/i18n/fr.translations.mjs +6 -5
  12. package/esm2022/presentation/style/css.component.mjs +2 -2
  13. package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
  14. package/esm2022/restitution/style/css.component.mjs +2 -2
  15. package/esm2022/tooltips/attribute/attribute-tooltip.component.mjs +19 -10
  16. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +18 -11
  17. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +36 -1
  18. package/esm2022/widgets/widget-table/component/widget-table.component.mjs +3 -3
  19. package/fesm2022/provoly-dashboard-admin.mjs +14 -12
  20. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  21. package/fesm2022/provoly-dashboard-dataset.mjs +1 -1
  22. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  23. package/fesm2022/provoly-dashboard-presentation.mjs +11 -9
  24. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  25. package/fesm2022/provoly-dashboard-restitution.mjs +3 -3
  26. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  27. package/fesm2022/provoly-dashboard-tooltips-attribute.mjs +18 -9
  28. package/fesm2022/provoly-dashboard-tooltips-attribute.mjs.map +1 -1
  29. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +52 -10
  30. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  31. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +2 -2
  32. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  33. package/fesm2022/provoly-dashboard.mjs +7 -15
  34. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  35. package/lib/core/auth/geoAuth.service.d.ts +3 -1
  36. package/lib/core/model/widget-map-manifest.interface.d.ts +1 -0
  37. package/package.json +30 -30
  38. package/presentation/i18n/en.translations.d.ts +1 -0
  39. package/presentation/i18n/fr.translations.d.ts +1 -0
  40. package/presentation/style/_o-pry-presentation.scss +7 -2
  41. package/tooltips/attribute/attribute-tooltip.component.d.ts +5 -1
  42. package/widgets/widget-map/component/widget-map.component.d.ts +3 -4
  43. package/widgets/widget-map/utils/widget-map.utils.d.ts +1 -0
@@ -1,11 +1,13 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ import { HttpClient } from '@angular/common/http';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare abstract class PryGeoAuthService {
4
5
  abstract customLoader(tile: any, src: string): void;
5
6
  }
6
7
  export declare const PRY_GEOAUTH_TOKEN: InjectionToken<PryGeoAuthService>;
7
8
  export declare class PryDefaultGeoAuthService extends PryGeoAuthService {
8
- constructor();
9
+ private httpClient;
10
+ constructor(httpClient: HttpClient);
9
11
  customLoader(tile: any, src: string): void;
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<PryDefaultGeoAuthService, never>;
11
13
  static ɵprov: i0.ɵɵInjectableDeclaration<PryDefaultGeoAuthService>;
@@ -24,6 +24,7 @@ export interface BaseWidgetMapLayerOptions {
24
24
  minZoom?: number;
25
25
  maxZoom?: number;
26
26
  opacity?: number;
27
+ order?: number;
27
28
  }
28
29
  export interface MapWidgetHeatMapLayerOptions extends BaseWidgetMapLayerOptions {
29
30
  type: 'heatmap';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.15.8",
3
+ "version": "0.15.9",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "14.x || 15.x || 16.x",
@@ -127,17 +127,41 @@
127
127
  "esm": "./esm2022/search/provoly-dashboard-search.mjs",
128
128
  "default": "./fesm2022/provoly-dashboard-search.mjs"
129
129
  },
130
+ "./supervision": {
131
+ "types": "./supervision/index.d.ts",
132
+ "esm2022": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
133
+ "esm": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
134
+ "default": "./fesm2022/provoly-dashboard-supervision.mjs"
135
+ },
130
136
  "./toolbox": {
131
137
  "types": "./toolbox/index.d.ts",
132
138
  "esm2022": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
133
139
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
134
140
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
135
141
  },
136
- "./supervision": {
137
- "types": "./supervision/index.d.ts",
138
- "esm2022": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
139
- "esm": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
140
- "default": "./fesm2022/provoly-dashboard-supervision.mjs"
142
+ "./filters/date": {
143
+ "types": "./filters/date/index.d.ts",
144
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
145
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
146
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
147
+ },
148
+ "./filters/list": {
149
+ "types": "./filters/list/index.d.ts",
150
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
151
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
152
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
153
+ },
154
+ "./filters/number": {
155
+ "types": "./filters/number/index.d.ts",
156
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
157
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
158
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
159
+ },
160
+ "./filters/text": {
161
+ "types": "./filters/text/index.d.ts",
162
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
163
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
164
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
141
165
  },
142
166
  "./components/card": {
143
167
  "types": "./components/card/index.d.ts",
@@ -181,30 +205,6 @@
181
205
  "esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
182
206
  "default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
183
207
  },
184
- "./filters/date": {
185
- "types": "./filters/date/index.d.ts",
186
- "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
187
- "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
188
- "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
189
- },
190
- "./filters/list": {
191
- "types": "./filters/list/index.d.ts",
192
- "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
193
- "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
194
- "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
195
- },
196
- "./filters/number": {
197
- "types": "./filters/number/index.d.ts",
198
- "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
199
- "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
200
- "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
201
- },
202
- "./filters/text": {
203
- "types": "./filters/text/index.d.ts",
204
- "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
205
- "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
206
- "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
207
- },
208
208
  "./pipeline-components/filter": {
209
209
  "types": "./pipeline-components/filter/index.d.ts",
210
210
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
@@ -19,6 +19,7 @@ export declare const enTranslations: {
19
19
  categoryInput: string;
20
20
  grid: string;
21
21
  cover: string;
22
+ theme: string;
22
23
  };
23
24
  share: string;
24
25
  view: string;
@@ -20,6 +20,7 @@ export declare const frTranslations: {
20
20
  categoryInput: string;
21
21
  grid: string;
22
22
  cover: string;
23
+ theme: string;
23
24
  };
24
25
  share: string;
25
26
  view: string;
@@ -48,14 +48,18 @@
48
48
  align-items: stretch;
49
49
 
50
50
  .a-tooltip {
51
+ align-items: center;
52
+ width: 100%;
51
53
  height: 100%;
52
54
  }
53
-
54
55
  &__image {
55
56
  width: auto;
56
- height: 90%;
57
57
  cursor: pointer;
58
58
  overflow: hidden;
59
+ height: toRem(110);
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: center;
59
63
 
60
64
  .is-full-width {
61
65
  width: 100%;
@@ -64,6 +68,7 @@
64
68
  }
65
69
  }
66
70
 
71
+
67
72
  &__header {
68
73
  position: relative;
69
74
  display: flex;
@@ -1,9 +1,13 @@
1
1
  import { BaseTooltipComponent, TranslateIdPipe } from '@provoly/dashboard';
2
2
  import { Observable } from 'rxjs';
3
+ import { Store } from '@ngrx/store';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class AttributeTooltipComponent extends BaseTooltipComponent {
5
6
  private translateIdPipe;
6
- constructor(translateIdPipe: TranslateIdPipe);
7
+ private store;
8
+ private classes$;
9
+ constructor(translateIdPipe: TranslateIdPipe, store: Store<any>);
10
+ getAttributeName(attribute: string): Observable<string>;
7
11
  getValue(attribute: string, limit?: number): Observable<string>;
8
12
  _getValue(attribute: string): Observable<string | undefined | number>;
9
13
  static ɵfac: i0.ɵɵFactoryDeclaration<AttributeTooltipComponent, never>;
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ComponentRef, ElementRef, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
- import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, FilterContext, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
3
+ import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, FilterContext, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
4
4
  import { Map } from 'ol';
5
5
  import { Coordinate } from 'ol/coordinate';
6
6
  import { Geometry } from 'ol/geom';
@@ -17,7 +17,6 @@ import { WidgetMapLayerService } from './widget-map-layer.service';
17
17
  import * as i0 from "@angular/core";
18
18
  export declare const TOOLTIP_PADDING = 15;
19
19
  export declare class WidgetMapComponent extends DataWidgetComponent implements AfterViewInit, OnDestroy {
20
- private snackBar;
21
20
  translateService: PryI18nService;
22
21
  private tooltipFactoryService;
23
22
  private symbolService;
@@ -93,7 +92,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
93
92
  }[]>;
94
93
  datasourceFilters$: Observable<any>;
95
94
  usedClasses$: Observable<any>;
96
- constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef, geoAuthService: PryGeoAuthService);
95
+ constructor(store: Store<any>, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef, geoAuthService: PryGeoAuthService);
97
96
  initInteractionManager(): InteractionManager;
98
97
  ngAfterViewInit(): void;
99
98
  initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
@@ -159,6 +158,6 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
159
158
  changeAutoLayer($event: any): void;
160
159
  get layerVisibleIdx(): number;
161
160
  ngOnDestroy(): void;
162
- static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
161
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, [null, null, null, null, null, null, null, null, { optional: true; }]>;
163
162
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMapComponent, "pry-widget-map", never, {}, {}, never, never, false, never>;
164
163
  }
@@ -16,6 +16,7 @@ export declare const getLinkFeature: (relation: Relation, featureSource: Feature
16
16
  export declare const getMapAsPng: (map: Map) => Promise<string>;
17
17
  export declare const exportMapAsImage: (map: Map, filename: string) => void;
18
18
  export declare const geometryForLayer: (layer: MapWidgetLayerOptions) => string;
19
+ export declare const getLayerOrder: (layer: MapWidgetLayerOptions, index: number, array: MapWidgetLayerOptions[]) => number;
19
20
  export declare const DEFAULT_HEATMAP_RADIUS = 25;
20
21
  export declare const DEFAULT_RADIUS_INTENSITY_FACTOR = 10000;
21
22
  export declare const DEFAULT_ZOOM_MIN = 3;