@provoly/dashboard 0.21.3 → 0.21.5

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 (112) hide show
  1. package/assets/svgs/layers.svg +3 -2
  2. package/assets/svgs/legend.svg +14 -3
  3. package/dataset/style/_o-pry-dataset.scss +6 -9
  4. package/esm2022/dataset/components/dataset.component.mjs +3 -3
  5. package/esm2022/dataset/style/css.component.mjs +2 -2
  6. package/esm2022/lib/core/auth/geoAuth.service.mjs +29 -5
  7. package/esm2022/lib/core/components/select/select.component.mjs +13 -3
  8. package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +14 -6
  9. package/esm2022/lib/core/components/snackbar/snackbar.service.mjs +8 -3
  10. package/esm2022/lib/core/i18n/en.translations.mjs +9 -2
  11. package/esm2022/lib/core/i18n/fr.translations.mjs +9 -3
  12. package/esm2022/lib/core/model/display-options.interface.mjs +24 -7
  13. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  14. package/esm2022/lib/core/store/field/field.interface.mjs +2 -1
  15. package/esm2022/lib/core/store/item/item.effects.mjs +2 -2
  16. package/esm2022/lib/core/store/search/search.reducer.mjs +2 -2
  17. package/esm2022/lib/dashboard/components/dashboard.component.mjs +3 -3
  18. package/esm2022/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.mjs +12 -3
  19. package/esm2022/lib/dashboard/dashboard.module.mjs +5 -4
  20. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
  21. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +14 -6
  22. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +8 -2
  23. package/esm2022/lib/dashboard/store/manifest.service.mjs +4 -3
  24. package/esm2022/notification/components/notification/content/notification-content.component.mjs +12 -8
  25. package/esm2022/notification/components/notification/notification.component.mjs +2 -1
  26. package/esm2022/notification/style/css.component.mjs +2 -2
  27. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +3 -3
  28. package/esm2022/presentation/components/presentation.component.mjs +17 -9
  29. package/esm2022/presentation/i18n/en.translations.mjs +2 -1
  30. package/esm2022/presentation/i18n/fr.translations.mjs +3 -2
  31. package/esm2022/presentation/style/css.component.mjs +2 -2
  32. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
  33. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  34. package/esm2022/restitution/style/css.component.mjs +2 -2
  35. package/esm2022/toolbox/components/delete/delete.component.mjs +29 -0
  36. package/esm2022/toolbox/components/save-view/save-view.component.mjs +12 -6
  37. package/esm2022/toolbox/components/share/share.component.mjs +72 -0
  38. package/esm2022/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.mjs +26 -0
  39. package/esm2022/toolbox/components/toolbox.component.mjs +3 -3
  40. package/esm2022/toolbox/public-api.mjs +4 -1
  41. package/esm2022/toolbox/toolbox.model.mjs +22 -2
  42. package/esm2022/toolbox/toolbox.module.mjs +16 -4
  43. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
  44. package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +27 -13
  45. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +61 -22
  46. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +5 -2
  47. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +5 -2
  48. package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +3 -2
  49. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  50. package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +16 -7
  51. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +3 -2
  52. package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +2 -2
  53. package/fesm2022/provoly-dashboard-dataset.mjs +4 -4
  54. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  55. package/fesm2022/provoly-dashboard-notification.mjs +14 -9
  56. package/fesm2022/provoly-dashboard-notification.mjs.map +1 -1
  57. package/fesm2022/provoly-dashboard-presentation.mjs +23 -13
  58. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  59. package/fesm2022/provoly-dashboard-restitution.mjs +8 -8
  60. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  61. package/fesm2022/provoly-dashboard-toolbox.mjs +145 -12
  62. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  63. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
  64. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  65. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +114 -47
  66. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  67. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -1
  68. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
  69. package/fesm2022/provoly-dashboard.mjs +138 -39
  70. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  71. package/lib/core/auth/geoAuth.service.d.ts +5 -1
  72. package/lib/core/components/select/select.component.d.ts +2 -0
  73. package/lib/core/components/share/group-share/group-share.component.d.ts +2 -2
  74. package/lib/core/components/snackbar/snackbar.service.d.ts +2 -1
  75. package/lib/core/i18n/en.translations.d.ts +7 -0
  76. package/lib/core/i18n/fr.translations.d.ts +7 -1
  77. package/lib/core/model/display-options.interface.d.ts +3 -0
  78. package/lib/core/model/manifest.interface.d.ts +3 -1
  79. package/lib/core/store/field/field.interface.d.ts +1 -0
  80. package/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.d.ts +1 -0
  81. package/lib/dashboard/store/dashboard.actions.d.ts +3 -0
  82. package/lib/dashboard/store/dashboard.effects.d.ts +1 -1
  83. package/lib/dashboard/store/manifest.service.d.ts +2 -1
  84. package/notification/components/notification/content/notification-content.component.d.ts +4 -2
  85. package/notification/style/_m-notifications.scss +6 -7
  86. package/package.json +7 -7
  87. package/presentation/components/presentation.component.d.ts +4 -1
  88. package/presentation/i18n/en.translations.d.ts +1 -0
  89. package/presentation/i18n/fr.translations.d.ts +1 -0
  90. package/presentation/style/_o-pry-presentation.scss +0 -16
  91. package/restitution/components/restitution/restitution.component.d.ts +1 -1
  92. package/restitution/style/_o-restitution.scss +12 -42
  93. package/styles/components/_a-page-loader.scss +1 -1
  94. package/styles/components/_o-draggable-menu.scss +8 -0
  95. package/styles/components/_o-pry-stepper.scss +9 -10
  96. package/styles/components/_o-widget.scss +7 -3
  97. package/styles/layout/_o-manifest-layout.scss +20 -0
  98. package/styles-theme/components-theme/_o-widget.theme.scss +1 -1
  99. package/toolbox/components/delete/delete.component.d.ts +19 -0
  100. package/toolbox/components/save-view/save-view.component.d.ts +3 -2
  101. package/toolbox/components/share/share.component.d.ts +26 -0
  102. package/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.d.ts +15 -0
  103. package/toolbox/public-api.d.ts +3 -0
  104. package/toolbox/toolbox.module.d.ts +12 -9
  105. package/widgets/widget-chart/component/widget-chart.component.d.ts +1 -1
  106. package/widgets/widget-map/component/widget-map-layer.service.d.ts +4 -3
  107. package/widgets/widget-map/component/widget-map.component.d.ts +8 -6
  108. package/widgets/widget-map/i18n/en.translations.d.ts +3 -0
  109. package/widgets/widget-map/i18n/fr.translations.d.ts +3 -0
  110. package/widgets/widget-map/style/_o-layer-legend.scss +43 -54
  111. package/widgets/widget-map/utils/cql-utils.class.d.ts +2 -2
  112. package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -0
@@ -0,0 +1,26 @@
1
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
3
+ import { GlobalManifest, ManifestDescription, PryVisibility, ViewMode } from '@provoly/dashboard';
4
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
5
+ import { Overlay, OverlayRef } from '@angular/cdk/overlay';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ShareComponent extends ToolboxActionComponent {
8
+ private overlay;
9
+ private viewContainerRef;
10
+ presentation: {
11
+ current: ManifestDescription | undefined;
12
+ viewMode?: ViewMode;
13
+ initial: GlobalManifest | undefined;
14
+ } | undefined;
15
+ modalOpened: boolean;
16
+ overlayRef?: OverlayRef;
17
+ accessGroups: string[];
18
+ visibility: PryVisibility;
19
+ template: TemplateRef<any>;
20
+ constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
21
+ trigger(): void;
22
+ toggleModal(): void;
23
+ changeVisibility(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShareComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShareComponent, "pry-share-pres", never, {}, {}, never, never, false, never>;
26
+ }
@@ -0,0 +1,15 @@
1
+ import { Store } from '@ngrx/store';
2
+ import { GlobalManifest, ManifestDescription, ViewMode } from '@provoly/dashboard';
3
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SwitchToEditContentComponent extends ToolboxActionComponent {
6
+ presentation: {
7
+ current: ManifestDescription | undefined;
8
+ viewMode?: ViewMode;
9
+ initial: GlobalManifest | undefined;
10
+ } | undefined;
11
+ constructor(store: Store);
12
+ trigger(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchToEditContentComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchToEditContentComponent, "pry-switch-to-edit", never, {}, {}, never, never, false, never>;
15
+ }
@@ -12,5 +12,8 @@ export * from './components/toolbox-action/toolbox-action.component';
12
12
  export * from './components/toolbox-action-instanciator/toolbox-action-instanciator.component';
13
13
  export * from './components/refresh-datasets/refresh-datasets.component';
14
14
  export * from './components/automate-refresh/automate-refresh.component';
15
+ export * from './components/delete/delete.component';
16
+ export * from './components/share/share.component';
17
+ export * from './components/switch-to-edit-content/switch-to-edit-content.component';
15
18
  export * from './style/css.component';
16
19
  export * from './toolbox.model';
@@ -13,16 +13,19 @@ import * as i11 from "./style/css.component";
13
13
  import * as i12 from "./components/filter-settings/filter-settings.component";
14
14
  import * as i13 from "./components/refresh-datasets/refresh-datasets.component";
15
15
  import * as i14 from "./components/automate-refresh/automate-refresh.component";
16
- import * as i15 from "@angular/common";
17
- import * as i16 from "@angular/forms";
18
- import * as i17 from "@angular/cdk/overlay";
19
- import * as i18 from "@provoly/dashboard";
20
- import * as i19 from "@provoly/dashboard/components/checkbox";
21
- import * as i20 from "@provoly/dashboard/components/stepper";
22
- import * as i21 from "@angular/cdk/drag-drop";
23
- import * as i22 from "@angular/cdk/a11y";
16
+ import * as i15 from "./components/switch-to-edit-content/switch-to-edit-content.component";
17
+ import * as i16 from "./components/share/share.component";
18
+ import * as i17 from "./components/delete/delete.component";
19
+ import * as i18 from "@angular/common";
20
+ import * as i19 from "@angular/forms";
21
+ import * as i20 from "@angular/cdk/overlay";
22
+ import * as i21 from "@provoly/dashboard";
23
+ import * as i22 from "@provoly/dashboard/components/checkbox";
24
+ import * as i23 from "@provoly/dashboard/components/stepper";
25
+ import * as i24 from "@angular/cdk/drag-drop";
26
+ import * as i25 from "@angular/cdk/a11y";
24
27
  export declare class PryToolboxModule {
25
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PryToolboxModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryToolboxModule, [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent], [typeof i15.CommonModule, typeof i16.FormsModule, typeof i17.OverlayModule, typeof i18.PryOverlayModule, typeof i18.PryCoreModule, typeof i18.PryDashboardModule, typeof i18.PrySelectModule, typeof i18.PryIconModule, typeof i19.PryCheckboxModule, typeof i18.PryToggleModule, typeof i20.PryStepperModule, typeof i18.PryShareModule, typeof i18.PryI18nModule, typeof i21.CdkDropList, typeof i21.CdkDrag, typeof i21.CdkDragHandle, typeof i22.A11yModule], [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent]>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryToolboxModule, [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent, typeof i15.SwitchToEditContentComponent, typeof i16.ShareComponent, typeof i17.DeleteComponent], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i20.OverlayModule, typeof i21.PryOverlayModule, typeof i21.PryCoreModule, typeof i21.PryDashboardModule, typeof i21.PrySelectModule, typeof i21.PryIconModule, typeof i22.PryCheckboxModule, typeof i21.PryToggleModule, typeof i23.PryStepperModule, typeof i21.PryShareModule, typeof i21.PryI18nModule, typeof i24.CdkDropList, typeof i24.CdkDrag, typeof i24.CdkDragHandle, typeof i25.A11yModule], [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent, typeof i15.SwitchToEditContentComponent, typeof i16.ShareComponent, typeof i17.DeleteComponent]>;
27
30
  static ɵinj: i0.ɵɵInjectorDeclaration<PryToolboxModule>;
28
31
  }
@@ -93,7 +93,7 @@ export declare class WidgetChartComponent extends DataWidgetComponent implements
93
93
  field: string;
94
94
  title: string;
95
95
  type: any;
96
- aggregate: string;
96
+ aggregate: Aggregation;
97
97
  };
98
98
  color: {
99
99
  field: string;
@@ -5,8 +5,9 @@ import { Tile } from 'ol/layer';
5
5
  import BaseLayer from 'ol/layer/Base';
6
6
  import VectorLayer from 'ol/layer/Vector';
7
7
  import VectorTileLayer from 'ol/layer/VectorTile';
8
- import { TileWMS, Vector, WMTS, XYZ } from 'ol/source';
8
+ import { ImageWMS, TileWMS, Vector, WMTS, XYZ } from 'ol/source';
9
9
  import { Style } from 'ol/style';
10
+ import ImageLayer from 'ol/layer/Image';
10
11
  import * as i0 from "@angular/core";
11
12
  export type AttributesForClass = {
12
13
  [key: string]: {
@@ -75,7 +76,7 @@ export declare class WidgetMapLayerService {
75
76
  wms: (layer: MapWMSLayerLayerOptions, attributesForClass: AttributesForClass, layerClassesId: string[], resultSet: ResultSet, range: {
76
77
  min: number;
77
78
  max: number;
78
- }, itemStyles: ItemStyles, map: Map) => Tile<TileWMS>;
79
+ }, itemStyles: ItemStyles, map: Map) => Tile<TileWMS> | ImageLayer<ImageWMS>;
79
80
  wmts: (layer: MapWMTSLayerLayerOptions, attributesForClass: AttributesForClass, layerClassesId: string[], resultSet: ResultSet, range: {
80
81
  min: number;
81
82
  max: number;
@@ -83,7 +84,7 @@ export declare class WidgetMapLayerService {
83
84
  geoserver: (layer: MapGeoServerLayerOptions, attributesForClass: AttributesForClass, layerClassesId: string[], resultSet: ResultSet, range: {
84
85
  min: number;
85
86
  max: number;
86
- }, itemStyles: ItemStyles, map: Map) => Tile<TileWMS>;
87
+ }, itemStyles: ItemStyles, map: Map) => Tile<TileWMS> | ImageLayer<ImageWMS>;
87
88
  featurelayer: (layer: MapFeatureLayerOptions, attributesForClass: AttributesForClass, layerClassesId: string[], resultSet: ResultSet, range: {
88
89
  min: number;
89
90
  max: number;
@@ -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, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
3
+ import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, 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';
@@ -10,7 +10,7 @@ import VectorLayer from 'ol/layer/Vector';
10
10
  import { Pixel } from 'ol/pixel';
11
11
  import VectorSource from 'ol/source/Vector';
12
12
  import { Style } from 'ol/style';
13
- import { BehaviorSubject, Observable } from 'rxjs';
13
+ import { BehaviorSubject, Observable, Subscription } from 'rxjs';
14
14
  import { InteractionManager } from '../interaction/interaction-manager.class';
15
15
  import { WidgetMapLayerService } from './widget-map-layer.service';
16
16
  import { LayerSlider } from '../interaction/layer-slider.class';
@@ -120,6 +120,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
120
120
  actionMenuOpen$: BehaviorSubject<boolean>;
121
121
  attributions$: Observable<boolean>;
122
122
  olZoomElement$: BehaviorSubject<HTMLDivElement | null>;
123
+ previousLayers: BaseLayer[];
124
+ previousTooltip?: ComponentRef<BaseTooltipComponent>;
125
+ previousTooltipSub?: Subscription;
123
126
  constructor(store: Store<any>, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef, geoAuthService: PryGeoAuthService);
124
127
  initInteractionManager(): InteractionManager;
125
128
  ngAfterViewInit(): void;
@@ -136,9 +139,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
136
139
  fitMapForObjects(selectedIds?: string[], extents?: {
137
140
  datasource: string;
138
141
  extent: Coordinate[];
139
- }[], filters?: {
140
- [p: string]: FilterContext[];
141
- }): void;
142
+ }[]): void;
142
143
  private getAttributesForDrawing;
143
144
  private getIntensityAttribute;
144
145
  private getLocationAttribute;
@@ -160,7 +161,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
160
161
  changeUrl($event: Event, layer: MapWMSLayerLayerOptions | MapFeatureLayerOptions | MapVectorTileLayerOptions | MapRasterTileLayerOptions | MapWMTSLayerLayerOptions | MapGeoServerLayerOptions): void;
161
162
  changeAttribution($event: Event, layer: BaseWidgetMapLayerOptions): void;
162
163
  changeParamLayer($event: Event, layer: MapWMSLayerLayerOptions | MapWMTSLayerLayerOptions): void;
163
- changeParamTiled($event: boolean, layer: MapWMSLayerLayerOptions): void;
164
+ changeParamTiled($event: boolean, layer: MapWMSLayerLayerOptions | MapGeoServerLayerOptions): void;
164
165
  changeMatrixSet($event: Event, layer: MapWMTSLayerLayerOptions): void;
165
166
  changeParamStyle($event: Event, layer: MapWMTSLayerLayerOptions): void;
166
167
  export(): void;
@@ -199,6 +200,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
199
200
  toggleMenu(): void;
200
201
  private getOlZoomElement;
201
202
  changeSelection(action: 'click' | 'lasso' | 'rectangle' | 'zoom' | 'move' | 'export' | 'upload'): void;
203
+ private clearLayers;
202
204
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, [null, null, null, null, null, null, null, null, { optional: true; }]>;
203
205
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMapComponent, "pry-widget-map", never, {}, {}, never, never, false, never>;
204
206
  }
@@ -72,7 +72,9 @@ export declare const enTranslations: {
72
72
  export: string;
73
73
  legend: string;
74
74
  legendNotProvided: string;
75
+ layersTitle: string;
75
76
  selectLayers: string;
77
+ legendsTitle: string;
76
78
  legends: string;
77
79
  singleLayer: string;
78
80
  autoLayer: string;
@@ -87,6 +89,7 @@ export declare const enTranslations: {
87
89
  zoomIn: string;
88
90
  zoomOut: string;
89
91
  slideTitle: string;
92
+ layerLoadError: string;
90
93
  };
91
94
  };
92
95
  };
@@ -70,8 +70,10 @@ export declare const frTranslations: {
70
70
  click: string;
71
71
  zoom: string;
72
72
  export: string;
73
+ legendsTitle: string;
73
74
  legend: string;
74
75
  legendNotProvided: string;
76
+ layersTitle: string;
75
77
  selectLayers: string;
76
78
  legends: string;
77
79
  singleLayer: string;
@@ -87,6 +89,7 @@ export declare const frTranslations: {
87
89
  zoomIn: string;
88
90
  zoomOut: string;
89
91
  slideTitle: string;
92
+ layerLoadError: string;
90
93
  };
91
94
  };
92
95
  };
@@ -1,21 +1,14 @@
1
1
  @use '../../../styles/abstracts/index' as *;
2
2
 
3
- .m-layer-legend {
3
+ .m-map-layer-action {
4
+ display: flex;
5
+ gap: toRem(6);
4
6
  z-index: 2;
5
7
  right: toRem(8);
6
8
 
7
9
  &.ol-control {
8
- display: flex;
9
- flex-direction: column;
10
- align-items: flex-start;
11
-
12
10
  border: none;
13
- background: white;
14
- }
15
-
16
- button {
17
- background-color: #fafafa !important;
18
- color: black;
11
+ background-color: transparent;
19
12
  }
20
13
 
21
14
  .-hidden {
@@ -23,17 +16,45 @@
23
16
  }
24
17
 
25
18
  &__toggle {
26
- align-self: flex-end;
19
+ order: 2;
27
20
  width: toRem(30);
28
21
  height: toRem(30);
29
22
  }
30
23
 
24
+ button {
25
+ background-color: #fafafa !important;
26
+ color: #113b6e;
27
+ }
28
+
31
29
  &__title {
32
30
  display: flex;
33
31
  flex-direction: row;
34
32
  align-items: center;
33
+ font-size: 12px;
34
+
35
+ &:hover {
36
+ cursor: pointer;
37
+ background-color: #fafafa !important;
38
+ }
39
+ }
40
+
41
+ &__container {
42
+ color: #113b6e;
35
43
  background-color: white;
36
- justify-content: space-between;
44
+ border-radius: toRem(2);
45
+ padding: toRem(5) toRem(8);
46
+
47
+ .a-h4 {
48
+ font-size: 12px;
49
+ }
50
+
51
+ button.m-map-layer-action__toggle {
52
+ border-radius: 50%;
53
+
54
+ &:hover {
55
+ outline: none;
56
+ }
57
+ }
37
58
  }
38
59
 
39
60
  &__image {
@@ -47,53 +68,21 @@
47
68
  }
48
69
  }
49
70
 
50
- .m-layer-switcher {
51
- z-index: 2;
52
- right: toRem(8);
53
- display: flex;
54
- flex-direction: column;
55
- align-items: normal;
56
-
57
- &.ol-control {
58
- border: none;
59
- background: white;
60
- align-self: flex-end;
61
- }
62
-
63
- button {
64
- background-color: #fafafa !important;
65
- color: black;
66
- }
67
-
68
- .-hidden {
69
- display: none;
70
- }
71
-
72
- &__toggle {
73
- width: toRem(30);
74
- height: toRem(30);
75
- align-self: flex-end;
76
- }
77
-
71
+ .m-layer-legend {
78
72
  &__title {
79
- display: flex;
80
- flex-direction: row;
81
- background-color: white;
82
- justify-content: space-between;
83
- gap: toRem(10);
84
- padding: 5px;
73
+ align-items: flex-start;
74
+ gap: toRem(5);
85
75
  }
86
76
 
87
- &__image {
88
- background: white;
89
- overflow: scroll;
77
+ &__dropdown-icon {
78
+ margin-top: toRem(2);
90
79
  }
80
+ }
91
81
 
92
- &__error {
93
- font-style: italic;
94
- color: #c74646;
82
+ .m-layer-switcher {
83
+ &__title {
84
+ align-items: flex-start;
95
85
  }
96
-
97
86
  }
98
87
 
99
88
  .m-map-slide-legend {
@@ -1,6 +1,6 @@
1
- import { Class, FilterContext } from '@provoly/dashboard';
1
+ import { Class, Field, FilterContext } from '@provoly/dashboard';
2
2
  export declare class CqlUtils {
3
3
  static getCQLParamsFor(datasourceId: string, filters: {
4
4
  [p: string]: FilterContext[];
5
- }, classes: Class[]): string | null;
5
+ }, classes: Class[], fields: Field[]): string | null;
6
6
  }
@@ -4,7 +4,9 @@ import { Circle, LineString, Point } from 'ol/geom';
4
4
  import { Style } from 'ol/style';
5
5
  import { ProjectionLike } from 'ol/proj';
6
6
  import Geometry from 'ol/geom/Geometry';
7
+ import { GeoJSON } from 'ol/format';
7
8
  export declare class WidgetMapUtils {
9
+ static geoJSON: GeoJSON;
8
10
  static populateLocationAttribute(layer: MapWidgetLayerOptions, resultSet: ResultSet, classesNotFiltered: Class[], fields: Field[]): void;
9
11
  static populateIntensityAttribute(layer: MapWidgetLayerOptions, resultSet: ResultSet, classesNotFiltered: Class[], fields: Field[]): void;
10
12
  static getFeatureFromItem(projection: ProjectionLike, item: Item, type: string, locationAttribute: Attribute, iconStyle?: Style, selectedIconStyle?: Style): Feature<Geometry>;