@igo2/integration 1.9.3 → 1.11.0

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.
@@ -1,30 +1,30 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { NgModule, Injectable, Component, Input, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Inject, ViewChild, Directive, Self, HostListener } from '@angular/core';
3
- import * as i2 from '@igo2/context';
3
+ import * as i1 from '@igo2/context';
4
4
  import { IgoContextModule, IgoContextImportExportModule } from '@igo2/context';
5
5
  import { __decorate } from 'tslib';
6
- import * as i7 from '@igo2/common';
6
+ import * as i4 from '@igo2/common';
7
7
  import { ToolComponent, EntityStore, EntityStoreFilterCustomFuncStrategy, EntityStoreFilterSelectionStrategy, WorkspaceStore, IgoSpinnerModule, getEntityTitle, FlexibleComponent, IgoFlexibleModule, IgoPanelModule, IgoCustomHtmlModule, IgoInteractiveTourModule } from '@igo2/common';
8
8
  import { BehaviorSubject, Subject, combineLatest, ReplaySubject, forkJoin, of } from 'rxjs';
9
- import * as i1 from '@igo2/geo';
10
- import { IgoMap, IgoCatalogLibraryModule, IgoCatalogBrowserModule, StopsStore, StopsFeatureStore, RoutesFeatureStore, StepFeatureStore, IgoDirectionsModule, FeatureStore, IgoDrawingToolModule, FeatureStoreSelectionStrategy, FeatureMotion, mapExtentStrategyActiveToolTip, noElementSelected, OgcFilterWidget, WfsWorkspace, FeatureWorkspace, IgoImportExportModule, LayerListControlsEnum, sourceCanSearch, VectorLayer, zoneMtm, zoneUtm, computeProjectionsConstraints, IgoLayerModule, IgoMetadataModule, IgoDownloadModule, IgoFilterModule, IgoMeasurerModule, IgoPrintModule, IgoSearchModule, FEATURE, getCommonVectorStyle, featureToOl, computeOlFeaturesExtent, featuresAreOutOfView, featuresAreTooDeepInView, featureFromOl, getCommonVectorSelectedStyle, moveToOlFeatures, IgoFeatureModule, IgoFeatureDetailsModule, SpatialFilterItemType, MeasureLengthUnit, SpatialFilterType, createOverlayMarkerStyle, IgoQueryModule } from '@igo2/geo';
11
- import * as i5 from '@angular/common';
9
+ import * as i1$1 from '@igo2/geo';
10
+ import { IgoMap, IgoCatalogLibraryModule, IgoCatalogBrowserModule, StopsStore, StopsFeatureStore, RoutesFeatureStore, StepFeatureStore, IgoDirectionsModule, FeatureStore, IgoDrawingToolModule, FeatureStoreSelectionStrategy, FeatureMotion, mapExtentStrategyActiveToolTip, noElementSelected, OgcFilterWidget, WfsWorkspace, FeatureWorkspace, EditionWorkspace, IgoImportExportModule, LayerListControlsEnum, sourceCanSearch, VectorLayer, zoneMtm, zoneUtm, formatScale, computeProjectionsConstraints, IgoLayerModule, IgoMetadataModule, IgoDownloadModule, IgoFilterModule, IgoMeasurerModule, IgoPrintModule, IgoSearchModule, FEATURE, getCommonVectorStyle, featureToOl, computeOlFeaturesExtent, featuresAreOutOfView, featuresAreTooDeepInView, featureFromOl, getCommonVectorSelectedStyle, moveToOlFeatures, IgoFeatureModule, IgoFeatureDetailsModule, SpatialFilterItemType, MeasureLengthUnit, SpatialFilterType, createOverlayMarkerStyle, IgoQueryModule } from '@igo2/geo';
11
+ import * as i4$1 from '@angular/common';
12
12
  import { CommonModule } from '@angular/common';
13
13
  import { take, skipWhile, map, debounceTime, takeUntil, tap, skip } from 'rxjs/operators';
14
- import * as i2$1 from '@igo2/auth';
15
- import * as i2$2 from '@igo2/core';
14
+ import * as i2 from '@igo2/auth';
15
+ import * as i2$1 from '@igo2/core';
16
16
  import { StorageScope, StorageServiceEventEnum, IgoLanguageModule } from '@igo2/core';
17
17
  import * as i3 from '@angular/material/button';
18
18
  import { MatButtonModule } from '@angular/material/button';
19
- import * as i4 from '@angular/material/tooltip';
19
+ import * as i4$2 from '@angular/material/tooltip';
20
20
  import { MatTooltipModule } from '@angular/material/tooltip';
21
21
  import * as i6 from '@angular/material/icon';
22
22
  import { MatIconModule } from '@angular/material/icon';
23
23
  import * as i8 from '@ngx-translate/core';
24
- import * as i5$1 from '@angular/material/tabs';
24
+ import * as i5 from '@angular/material/tabs';
25
25
  import { MatTabsModule } from '@angular/material/tabs';
26
26
  import { MatButtonToggleModule } from '@angular/material/button-toggle';
27
- import * as i7$1 from '@angular/material/list';
27
+ import * as i7 from '@angular/material/list';
28
28
  import { MatListModule } from '@angular/material/list';
29
29
  import * as i10 from '@angular/material/slide-toggle';
30
30
  import { MatSlideToggleModule } from '@angular/material/slide-toggle';
@@ -36,7 +36,7 @@ import * as i3$1 from '@angular/forms';
36
36
  import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
37
37
  import * as i6$1 from '@angular/material/form-field';
38
38
  import { MatFormFieldModule } from '@angular/material/form-field';
39
- import * as i7$2 from '@angular/material/select';
39
+ import * as i7$1 from '@angular/material/select';
40
40
  import { MatSelectModule } from '@angular/material/select';
41
41
  import * as i9 from '@angular/material/divider';
42
42
  import { MatDividerModule } from '@angular/material/divider';
@@ -144,14 +144,14 @@ class ToolState {
144
144
  }
145
145
  }
146
146
  }
147
- ToolState.ɵfac = function ToolState_Factory(t) { return new (t || ToolState)(i0.ɵɵinject(i7.ToolService), i0.ɵɵinject(ImportExportState)); };
147
+ ToolState.ɵfac = function ToolState_Factory(t) { return new (t || ToolState)(i0.ɵɵinject(i4.ToolService), i0.ɵɵinject(ImportExportState)); };
148
148
  ToolState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ToolState, factory: ToolState.ɵfac, providedIn: 'root' });
149
149
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToolState, [{
150
150
  type: Injectable,
151
151
  args: [{
152
152
  providedIn: 'root'
153
153
  }]
154
- }], function () { return [{ type: i7.ToolService }, { type: ImportExportState }]; }, null); })();
154
+ }], function () { return [{ type: i4.ToolService }, { type: ImportExportState }]; }, null); })();
155
155
 
156
156
  let ContextEditorToolComponent = class ContextEditorToolComponent {
157
157
  constructor(toolState) {
@@ -166,7 +166,7 @@ ContextEditorToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
166
166
  i0.ɵɵelementStart(0, "igo-context-edit", 0);
167
167
  i0.ɵɵlistener("submitSuccessed", function ContextEditorToolComponent_Template_igo_context_edit_submitSuccessed_0_listener() { return ctx.submitSuccessed(); });
168
168
  i0.ɵɵelementEnd();
169
- } }, directives: [i2.ContextEditComponent, i2.ContextEditBindingDirective], encapsulation: 2 });
169
+ } }, directives: [i1.ContextEditComponent, i1.ContextEditBindingDirective], encapsulation: 2 });
170
170
  ContextEditorToolComponent = __decorate([
171
171
  ToolComponent({
172
172
  name: 'contextEditor',
@@ -214,14 +214,14 @@ class MapState {
214
214
  */
215
215
  get map() { return this._map; }
216
216
  }
217
- MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0.ɵɵinject(i1.MapService), i0.ɵɵinject(i1.ProjectionService)); };
217
+ MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0.ɵɵinject(i1$1.MapService), i0.ɵɵinject(i1$1.ProjectionService)); };
218
218
  MapState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MapState, factory: MapState.ɵfac, providedIn: 'root' });
219
219
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapState, [{
220
220
  type: Injectable,
221
221
  args: [{
222
222
  providedIn: 'root'
223
223
  }]
224
- }], function () { return [{ type: i1.MapService }, { type: i1.ProjectionService }]; }, null); })();
224
+ }], function () { return [{ type: i1$1.MapService }, { type: i1$1.ProjectionService }]; }, null); })();
225
225
 
226
226
  let ContextManagerToolComponent = class ContextManagerToolComponent {
227
227
  constructor(toolState, mapState) {
@@ -244,7 +244,7 @@ ContextManagerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
244
244
  i0.ɵɵelementEnd();
245
245
  } if (rf & 2) {
246
246
  i0.ɵɵproperty("map", ctx.map);
247
- } }, directives: [i2.ContextListComponent, i2.ContextListBindingDirective], encapsulation: 2 });
247
+ } }, directives: [i1.ContextListComponent, i1.ContextListBindingDirective], encapsulation: 2 });
248
248
  ContextManagerToolComponent = __decorate([
249
249
  ToolComponent({
250
250
  name: 'contextManager',
@@ -267,7 +267,7 @@ let ContextPermissionManagerToolComponent = class ContextPermissionManagerToolCo
267
267
  ContextPermissionManagerToolComponent.ɵfac = function ContextPermissionManagerToolComponent_Factory(t) { return new (t || ContextPermissionManagerToolComponent)(); };
268
268
  ContextPermissionManagerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextPermissionManagerToolComponent, selectors: [["igo-context-permission-manager-tool"]], decls: 1, vars: 0, consts: [["igoContextPermissionsBinding", ""]], template: function ContextPermissionManagerToolComponent_Template(rf, ctx) { if (rf & 1) {
269
269
  i0.ɵɵelement(0, "igo-context-permissions", 0);
270
- } }, directives: [i2.ContextPermissionsComponent, i2.ContextPermissionsBindingDirective], encapsulation: 2 });
270
+ } }, directives: [i1.ContextPermissionsComponent, i1.ContextPermissionsBindingDirective], encapsulation: 2 });
271
271
  ContextPermissionManagerToolComponent = __decorate([
272
272
  ToolComponent({
273
273
  name: 'contextPermissionManager',
@@ -336,7 +336,7 @@ ContextShareToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: C
336
336
  i0.ɵɵelement(0, "igo-share-map", 0);
337
337
  } if (rf & 2) {
338
338
  i0.ɵɵproperty("map", ctx.map);
339
- } }, directives: [i2.ShareMapComponent], encapsulation: 2 });
339
+ } }, directives: [i1.ShareMapComponent], encapsulation: 2 });
340
340
  ContextShareToolComponent = __decorate([
341
341
  ToolComponent({
342
342
  name: 'shareMap',
@@ -425,14 +425,14 @@ class CatalogState {
425
425
  this.catalogItemsStores.clear();
426
426
  }
427
427
  }
428
- CatalogState.ɵfac = function CatalogState_Factory(t) { return new (t || CatalogState)(i0.ɵɵinject(i2$1.AuthService)); };
428
+ CatalogState.ɵfac = function CatalogState_Factory(t) { return new (t || CatalogState)(i0.ɵɵinject(i2.AuthService)); };
429
429
  CatalogState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CatalogState, factory: CatalogState.ɵfac, providedIn: 'root' });
430
430
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogState, [{
431
431
  type: Injectable,
432
432
  args: [{
433
433
  providedIn: 'root'
434
434
  }]
435
- }], function () { return [{ type: i2$1.AuthService }]; }, null); })();
435
+ }], function () { return [{ type: i2.AuthService }]; }, null); })();
436
436
 
437
437
  /**
438
438
  * Tool to browse the list of available catalogs.
@@ -489,14 +489,14 @@ let CatalogLibraryToolComponent = class CatalogLibraryToolComponent {
489
489
  });
490
490
  }
491
491
  };
492
- CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || CatalogLibraryToolComponent)(i0.ɵɵdirectiveInject(i1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i2$2.StorageService)); };
492
+ CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || CatalogLibraryToolComponent)(i0.ɵɵdirectiveInject(i1$1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i2$1.StorageService)); };
493
493
  CatalogLibraryToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CatalogLibraryToolComponent, selectors: [["igo-catalog-library-tool"]], inputs: { addCatalogAllowed: "addCatalogAllowed", predefinedCatalogs: "predefinedCatalogs" }, decls: 1, vars: 3, consts: [[3, "predefinedCatalogs", "addCatalogAllowed", "store", "catalogSelectChange"]], template: function CatalogLibraryToolComponent_Template(rf, ctx) { if (rf & 1) {
494
494
  i0.ɵɵelementStart(0, "igo-catalog-library", 0);
495
495
  i0.ɵɵlistener("catalogSelectChange", function CatalogLibraryToolComponent_Template_igo_catalog_library_catalogSelectChange_0_listener($event) { return ctx.onCatalogSelectChange($event); });
496
496
  i0.ɵɵelementEnd();
497
497
  } if (rf & 2) {
498
498
  i0.ɵɵproperty("predefinedCatalogs", ctx.predefinedCatalogs)("addCatalogAllowed", ctx.addCatalogAllowed)("store", ctx.store);
499
- } }, directives: [i1.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
499
+ } }, directives: [i1$1.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
500
500
  CatalogLibraryToolComponent = __decorate([
501
501
  ToolComponent({
502
502
  name: 'catalog',
@@ -511,7 +511,7 @@ CatalogLibraryToolComponent = __decorate([
511
511
  templateUrl: './catalog-library-tool.component.html',
512
512
  changeDetection: ChangeDetectionStrategy.OnPush
513
513
  }]
514
- }], function () { return [{ type: i1.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2$2.StorageService }]; }, { addCatalogAllowed: [{
514
+ }], function () { return [{ type: i1$1.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2$1.StorageService }]; }, { addCatalogAllowed: [{
515
515
  type: Input
516
516
  }], predefinedCatalogs: [{
517
517
  type: Input
@@ -622,13 +622,13 @@ let CatalogBrowserToolComponent = class CatalogBrowserToolComponent {
622
622
  });
623
623
  }
624
624
  };
625
- CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || CatalogBrowserToolComponent)(i0.ɵɵdirectiveInject(i1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$1.AuthService)); };
625
+ CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || CatalogBrowserToolComponent)(i0.ɵɵdirectiveInject(i1$1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2.AuthService)); };
626
626
  CatalogBrowserToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CatalogBrowserToolComponent, selectors: [["igo-catalog-browser-tool"]], inputs: { toggleCollapsedGroup: "toggleCollapsedGroup" }, decls: 2, vars: 3, consts: [[3, "catalog", "store", "map", "toggleCollapsedGroup", 4, "ngIf"], [3, "catalog", "store", "map", "toggleCollapsedGroup"]], template: function CatalogBrowserToolComponent_Template(rf, ctx) { if (rf & 1) {
627
627
  i0.ɵɵtemplate(0, CatalogBrowserToolComponent_igo_catalog_browser_0_Template, 1, 4, "igo-catalog-browser", 0);
628
628
  i0.ɵɵpipe(1, "async");
629
629
  } if (rf & 2) {
630
630
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.store$));
631
- } }, directives: [i5.NgIf, i1.CatalogBrowserComponent], pipes: [i5.AsyncPipe], encapsulation: 2, changeDetection: 0 });
631
+ } }, directives: [i4$1.NgIf, i1$1.CatalogBrowserComponent], pipes: [i4$1.AsyncPipe], encapsulation: 2, changeDetection: 0 });
632
632
  CatalogBrowserToolComponent = __decorate([
633
633
  ToolComponent({
634
634
  name: 'catalogBrowser',
@@ -644,7 +644,7 @@ CatalogBrowserToolComponent = __decorate([
644
644
  templateUrl: './catalog-browser-tool.component.html',
645
645
  changeDetection: ChangeDetectionStrategy.OnPush
646
646
  }]
647
- }], function () { return [{ type: i1.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2$1.AuthService }]; }, { toggleCollapsedGroup: [{
647
+ }], function () { return [{ type: i1$1.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2.AuthService }]; }, { toggleCollapsedGroup: [{
648
648
  type: Input
649
649
  }] }); })();
650
650
 
@@ -755,13 +755,96 @@ DirectionState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: Direction
755
755
  }]
756
756
  }], function () { return [{ type: MapState }]; }, null); })();
757
757
 
758
+ /**
759
+ * Service that holds the state of the context module
760
+ */
761
+ class ContextState {
762
+ constructor(contextService, toolService, toolState, languageService) {
763
+ this.contextService = contextService;
764
+ this.toolService = toolService;
765
+ this.toolState = toolState;
766
+ this.languageService = languageService;
767
+ /**
768
+ * Observable of the active context
769
+ */
770
+ this.context$ = new BehaviorSubject(undefined);
771
+ this.contextService.context$.subscribe((context) => {
772
+ this.onContextChange(context);
773
+ });
774
+ this.contextService.toolsChanged$.subscribe((context) => {
775
+ this.updateTools(context);
776
+ });
777
+ }
778
+ /**
779
+ * Set the active context
780
+ * @param context Detailed context
781
+ */
782
+ setContext(context) {
783
+ this.updateTools(context);
784
+ this.context$.next(context);
785
+ }
786
+ /**
787
+ * Update the tool state with the context's tools
788
+ * @param context Detailed context
789
+ */
790
+ updateTools(context) {
791
+ const toolbox = this.toolState.toolbox;
792
+ const tools = [];
793
+ const contextTools = context.tools || [];
794
+ contextTools.forEach((contextTool) => {
795
+ const baseTool = this.toolService.getTool(contextTool.name);
796
+ if (baseTool === undefined) {
797
+ return;
798
+ }
799
+ const options = Object.assign({}, baseTool.options || {}, contextTool.options || {});
800
+ const tool = Object.assign({}, baseTool, contextTool, { options });
801
+ tools.push(tool);
802
+ });
803
+ tools.forEach((tool) => {
804
+ if (tool.parent) {
805
+ const parentIndex = tools.findIndex((el) => el.name === tool.parent);
806
+ if (parentIndex !== -1) {
807
+ tools[parentIndex].children = [];
808
+ tools[parentIndex].children.push(tool.name);
809
+ }
810
+ }
811
+ });
812
+ toolbox.setTools(tools);
813
+ toolbox.setToolbar(context.toolbar || []);
814
+ // TODO: This is a patch so the context service can work without
815
+ // injecting the ToolState or without being completely refactored
816
+ this.contextService.setTools([].concat(tools));
817
+ this.contextService.setToolbar(context.toolbar || []);
818
+ }
819
+ /**
820
+ * Set a new context and update the tool state
821
+ * @param context Detailed context
822
+ */
823
+ onContextChange(context) {
824
+ if (context === undefined) {
825
+ return;
826
+ }
827
+ this.setContext(context);
828
+ }
829
+ }
830
+ ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0.ɵɵinject(i1.ContextService), i0.ɵɵinject(i4.ToolService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2$1.LanguageService)); };
831
+ ContextState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
832
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextState, [{
833
+ type: Injectable,
834
+ args: [{
835
+ providedIn: 'root'
836
+ }]
837
+ }], function () { return [{ type: i1.ContextService }, { type: i4.ToolService }, { type: ToolState }, { type: i2$1.LanguageService }]; }, null); })();
838
+
758
839
  let DirectionsToolComponent = class DirectionsToolComponent {
759
- constructor(directionState, mapState, languageService, messageService, storageService) {
840
+ constructor(directionState, mapState, languageService, messageService, storageService, contextState, authService) {
760
841
  this.directionState = directionState;
761
842
  this.mapState = mapState;
762
843
  this.languageService = languageService;
763
844
  this.messageService = messageService;
764
845
  this.storageService = storageService;
846
+ this.contextState = contextState;
847
+ this.authService = authService;
765
848
  }
766
849
  /**
767
850
  * stops
@@ -803,14 +886,19 @@ let DirectionsToolComponent = class DirectionsToolComponent {
803
886
  this.messageService.info(msg, title, { timeOut: 20000 });
804
887
  this.storageService.set('direction.warning.shown', true, StorageScope.SESSION);
805
888
  }
889
+ this.contextState.context$.subscribe(c => {
890
+ if (!this.authService.authenticated) {
891
+ this.currentContextUri = c.uri;
892
+ }
893
+ });
806
894
  }
807
895
  };
808
- DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || DirectionsToolComponent)(i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$2.LanguageService), i0.ɵɵdirectiveInject(i2$2.MessageService), i0.ɵɵdirectiveInject(i2$2.StorageService)); };
809
- DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars: 6, consts: [[3, "debounceTime", "stopsStore", "stopsFeatureStore", "stepFeatureStore", "routesFeatureStore", "zoomToActiveRoute$"]], template: function DirectionsToolComponent_Template(rf, ctx) { if (rf & 1) {
896
+ DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || DirectionsToolComponent)(i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$1.LanguageService), i0.ɵɵdirectiveInject(i2$1.MessageService), i0.ɵɵdirectiveInject(i2$1.StorageService), i0.ɵɵdirectiveInject(ContextState), i0.ɵɵdirectiveInject(i2.AuthService)); };
897
+ DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars: 7, consts: [[3, "contextUri", "debounceTime", "stopsStore", "stopsFeatureStore", "stepFeatureStore", "routesFeatureStore", "zoomToActiveRoute$"]], template: function DirectionsToolComponent_Template(rf, ctx) { if (rf & 1) {
810
898
  i0.ɵɵelement(0, "igo-directions", 0);
811
899
  } if (rf & 2) {
812
- i0.ɵɵproperty("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
813
- } }, directives: [i1.DirectionsComponent], encapsulation: 2 });
900
+ i0.ɵɵproperty("contextUri", ctx.currentContextUri)("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
901
+ } }, directives: [i1$1.DirectionsComponent], encapsulation: 2 });
814
902
  DirectionsToolComponent = __decorate([
815
903
  ToolComponent({
816
904
  name: 'directions',
@@ -824,7 +912,7 @@ DirectionsToolComponent = __decorate([
824
912
  selector: 'igo-directions-tool',
825
913
  templateUrl: './directions-tool.component.html'
826
914
  }]
827
- }], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2$2.LanguageService }, { type: i2$2.MessageService }, { type: i2$2.StorageService }]; }, null); })();
915
+ }], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2$1.LanguageService }, { type: i2$1.MessageService }, { type: i2$1.StorageService }, { type: ContextState }, { type: i2.AuthService }]; }, null); })();
828
916
 
829
917
  class IgoAppDirectionsModule {
830
918
  static forRoot() {
@@ -900,7 +988,7 @@ DrawingToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Drawin
900
988
  i0.ɵɵelement(0, "igo-draw", 0);
901
989
  } if (rf & 2) {
902
990
  i0.ɵɵproperty("store", ctx.store)("map", ctx.map);
903
- } }, directives: [i1.DrawComponent], encapsulation: 2, changeDetection: 0 });
991
+ } }, directives: [i1$1.DrawComponent], encapsulation: 2, changeDetection: 0 });
904
992
  DrawingToolComponent = __decorate([
905
993
  ToolComponent({
906
994
  name: 'draw',
@@ -951,14 +1039,14 @@ class StorageState {
951
1039
  return this.igoStorageService;
952
1040
  }
953
1041
  }
954
- StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0.ɵɵinject(i2$2.StorageService)); };
1042
+ StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0.ɵɵinject(i2$1.StorageService)); };
955
1043
  StorageState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: StorageState, factory: StorageState.ɵfac, providedIn: 'root' });
956
1044
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StorageState, [{
957
1045
  type: Injectable,
958
1046
  args: [{
959
1047
  providedIn: 'root'
960
1048
  }]
961
- }], function () { return [{ type: i2$2.StorageService }]; }, null); })();
1049
+ }], function () { return [{ type: i2$1.StorageService }]; }, null); })();
962
1050
 
963
1051
  class FeatureActionsService {
964
1052
  constructor(storageState, languageService, toolState, mediaService) {
@@ -1084,14 +1172,14 @@ class FeatureActionsService {
1084
1172
  ];
1085
1173
  }
1086
1174
  }
1087
- FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$2.LanguageService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2$2.MediaService)); };
1175
+ FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$1.LanguageService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2$1.MediaService)); };
1088
1176
  FeatureActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FeatureActionsService, factory: FeatureActionsService.ɵfac, providedIn: 'root' });
1089
1177
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FeatureActionsService, [{
1090
1178
  type: Injectable,
1091
1179
  args: [{
1092
1180
  providedIn: 'root'
1093
1181
  }]
1094
- }], function () { return [{ type: StorageState }, { type: i2$2.LanguageService }, { type: ToolState }, { type: i2$2.MediaService }]; }, null); })();
1182
+ }], function () { return [{ type: StorageState }, { type: i2$1.LanguageService }, { type: ToolState }, { type: i2$1.MediaService }]; }, null); })();
1095
1183
 
1096
1184
  class WfsActionsService {
1097
1185
  constructor(ogcFilterWidget, storageState, languageService, mediaService, toolState) {
@@ -1228,25 +1316,171 @@ class WfsActionsService {
1228
1316
  actions : actions.filter(action => action.id !== 'ogcFilter');
1229
1317
  }
1230
1318
  }
1231
- WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$2.LanguageService), i0.ɵɵinject(i2$2.MediaService), i0.ɵɵinject(ToolState)); };
1319
+ WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$1.LanguageService), i0.ɵɵinject(i2$1.MediaService), i0.ɵɵinject(ToolState)); };
1232
1320
  WfsActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: WfsActionsService, factory: WfsActionsService.ɵfac, providedIn: 'root' });
1233
1321
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WfsActionsService, [{
1234
1322
  type: Injectable,
1235
1323
  args: [{
1236
1324
  providedIn: 'root'
1237
1325
  }]
1238
- }], function () { return [{ type: i7.Widget, decorators: [{
1326
+ }], function () { return [{ type: i4.Widget, decorators: [{
1327
+ type: Inject,
1328
+ args: [OgcFilterWidget]
1329
+ }] }, { type: StorageState }, { type: i2$1.LanguageService }, { type: i2$1.MediaService }, { type: ToolState }]; }, null); })();
1330
+
1331
+ class EditionActionsService {
1332
+ constructor(ogcFilterWidget, storageState, languageService, mediaService, toolState) {
1333
+ this.ogcFilterWidget = ogcFilterWidget;
1334
+ this.storageState = storageState;
1335
+ this.languageService = languageService;
1336
+ this.mediaService = mediaService;
1337
+ this.toolState = toolState;
1338
+ this.maximize$ = new BehaviorSubject(this.storageService.get('workspaceMaximize'));
1339
+ this.zoomAuto$ = new BehaviorSubject(false);
1340
+ }
1341
+ get storageService() {
1342
+ return this.storageState.storageService;
1343
+ }
1344
+ get zoomAuto() {
1345
+ return this.storageService.get('zoomAuto');
1346
+ }
1347
+ ngOnDestroy() {
1348
+ if (this.storageChange$$) {
1349
+ this.storageChange$$.unsubscribe();
1350
+ }
1351
+ }
1352
+ loadActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
1353
+ const actions = this.buildActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$);
1354
+ workspace.actionStore.load(actions);
1355
+ }
1356
+ buildActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
1357
+ var _a, _b;
1358
+ this.zoomAuto$.next(this.zoomAuto);
1359
+ this.storageChange$$ = this.storageService.storageChange$
1360
+ .pipe(skipWhile((storageChange) => storageChange.key !== 'zoomAuto' || storageChange.event === StorageServiceEventEnum.CLEARED))
1361
+ .subscribe(() => {
1362
+ this.zoomAuto$.next(this.zoomAuto);
1363
+ handleZoomAuto(workspace, this.storageService);
1364
+ });
1365
+ const actions = [
1366
+ {
1367
+ id: 'zoomAuto',
1368
+ checkbox: true,
1369
+ title: 'igo.integration.workspace.zoomAuto.title',
1370
+ tooltip: 'igo.integration.workspace.zoomAuto.tooltip',
1371
+ checkCondition: this.zoomAuto$,
1372
+ handler: () => {
1373
+ handleZoomAuto(workspace, this.storageService);
1374
+ this.storageService.set('zoomAuto', !this.storageService.get('zoomAuto'));
1375
+ }
1376
+ },
1377
+ {
1378
+ id: 'filterInMapExtent',
1379
+ checkbox: true,
1380
+ title: 'igo.integration.workspace.inMapExtent.title',
1381
+ tooltip: mapExtentStrategyActiveToolTip(workspace),
1382
+ checkCondition: rowsInMapExtentCheckCondition$,
1383
+ handler: () => rowsInMapExtentCheckCondition$.next(!rowsInMapExtentCheckCondition$.value)
1384
+ },
1385
+ {
1386
+ id: 'selectedOnly',
1387
+ checkbox: true,
1388
+ title: 'igo.integration.workspace.selected.title',
1389
+ tooltip: 'igo.integration.workspace.selected.title',
1390
+ checkCondition: selectOnlyCheckCondition$,
1391
+ handler: () => selectOnlyCheckCondition$.next(!selectOnlyCheckCondition$.value)
1392
+ },
1393
+ {
1394
+ id: 'clearselection',
1395
+ icon: 'select-off',
1396
+ title: 'igo.integration.workspace.clearSelection.title',
1397
+ tooltip: 'igo.integration.workspace.clearSelection.tooltip',
1398
+ handler: (ws) => {
1399
+ ws.entityStore.state.updateMany(ws.entityStore.view.all(), { selected: false });
1400
+ },
1401
+ args: [workspace],
1402
+ availability: (ws) => noElementSelected(ws)
1403
+ },
1404
+ {
1405
+ id: 'wfsDownload',
1406
+ icon: 'file-export',
1407
+ title: 'igo.integration.workspace.download.title',
1408
+ tooltip: 'igo.integration.workspace.download.tooltip',
1409
+ handler: (ws) => {
1410
+ const filterStrategy = ws.entityStore.getStrategyOfType(EntityStoreFilterCustomFuncStrategy);
1411
+ const filterSelectionStrategy = ws.entityStore.getStrategyOfType(EntityStoreFilterSelectionStrategy);
1412
+ const layersWithSelection = filterSelectionStrategy.active ? [ws.layer.id] : [];
1413
+ this.toolState.toolToActivateFromOptions({
1414
+ tool: 'importExport',
1415
+ options: { layers: [ws.layer.id], featureInMapExtent: filterStrategy.active, layersWithSelection }
1416
+ });
1417
+ },
1418
+ args: [workspace]
1419
+ },
1420
+ {
1421
+ id: 'ogcFilter',
1422
+ icon: 'filter',
1423
+ title: 'igo.integration.workspace.ogcFilter.title',
1424
+ tooltip: 'igo.integration.workspace.ogcFilter.tooltip',
1425
+ handler: (widget, ws) => {
1426
+ ws.activateWidget(widget, {
1427
+ map: ws.map,
1428
+ layer: ws.layer
1429
+ });
1430
+ },
1431
+ args: [this.ogcFilterWidget, workspace]
1432
+ },
1433
+ {
1434
+ id: 'maximize',
1435
+ title: this.languageService.translate.instant('igo.integration.workspace.maximize'),
1436
+ tooltip: this.languageService.translate.instant('igo.integration.workspace.maximizeTooltip'),
1437
+ icon: 'resize',
1438
+ display: () => {
1439
+ return this.maximize$.pipe(map((v) => !v && !this.mediaService.isMobile()));
1440
+ },
1441
+ handler: () => {
1442
+ if (!this.mediaService.isMobile()) {
1443
+ this.maximize$.next(true);
1444
+ }
1445
+ },
1446
+ },
1447
+ {
1448
+ id: 'standardExtent',
1449
+ title: this.languageService.translate.instant('igo.integration.workspace.standardExtent'),
1450
+ tooltip: this.languageService.translate.instant('igo.integration.workspace.standardExtentTooltip'),
1451
+ icon: 'resize',
1452
+ display: () => {
1453
+ return this.maximize$.pipe(map((v) => v && !this.mediaService.isMobile()));
1454
+ },
1455
+ handler: () => {
1456
+ this.maximize$.next(false);
1457
+ }
1458
+ }
1459
+ ];
1460
+ return ((_b = (_a = workspace.layer.dataSource.ogcFilters$) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.enabled) ?
1461
+ actions : actions.filter(action => action.id !== 'ogcFilter');
1462
+ }
1463
+ }
1464
+ EditionActionsService.ɵfac = function EditionActionsService_Factory(t) { return new (t || EditionActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$1.LanguageService), i0.ɵɵinject(i2$1.MediaService), i0.ɵɵinject(ToolState)); };
1465
+ EditionActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EditionActionsService, factory: EditionActionsService.ɵfac, providedIn: 'root' });
1466
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EditionActionsService, [{
1467
+ type: Injectable,
1468
+ args: [{
1469
+ providedIn: 'root'
1470
+ }]
1471
+ }], function () { return [{ type: i4.Widget, decorators: [{
1239
1472
  type: Inject,
1240
1473
  args: [OgcFilterWidget]
1241
- }] }, { type: StorageState }, { type: i2$2.LanguageService }, { type: i2$2.MediaService }, { type: ToolState }]; }, null); })();
1474
+ }] }, { type: StorageState }, { type: i2$1.LanguageService }, { type: i2$1.MediaService }, { type: ToolState }]; }, null); })();
1242
1475
 
1243
1476
  /**
1244
1477
  * Service that holds the state of the workspace module
1245
1478
  */
1246
1479
  class WorkspaceState {
1247
- constructor(featureActionsService, wfsActionsService, storageService) {
1480
+ constructor(featureActionsService, wfsActionsService, editionActionsService, storageService) {
1248
1481
  this.featureActionsService = featureActionsService;
1249
1482
  this.wfsActionsService = wfsActionsService;
1483
+ this.editionActionsService = editionActionsService;
1250
1484
  this.storageService = storageService;
1251
1485
  this.workspacePanelExpanded = false;
1252
1486
  this.workspaceEnabled$ = new BehaviorSubject(false);
@@ -1289,6 +1523,9 @@ class WorkspaceState {
1289
1523
  else if (wks.entity instanceof FeatureWorkspace) {
1290
1524
  this.featureActionsService.loadActions(wks.entity, this.rowsInMapExtentCheckCondition$, this.selectOnlyCheckCondition$);
1291
1525
  }
1526
+ else if (wks.entity instanceof EditionWorkspace) {
1527
+ this.editionActionsService.loadActions(wks.entity, this.rowsInMapExtentCheckCondition$, this.selectOnlyCheckCondition$);
1528
+ }
1292
1529
  }
1293
1530
  });
1294
1531
  });
@@ -1298,6 +1535,9 @@ class WorkspaceState {
1298
1535
  this.actionMaximize$$.push(this.wfsActionsService.maximize$.subscribe(maximized => {
1299
1536
  this.setWorkspaceIsMaximized(maximized);
1300
1537
  }));
1538
+ this.actionMaximize$$.push(this.editionActionsService.maximize$.subscribe(maximized => {
1539
+ this.setWorkspaceIsMaximized(maximized);
1540
+ }));
1301
1541
  this.activeWorkspace$$ = this.workspace$
1302
1542
  .subscribe((workspace) => {
1303
1543
  if (this.activeWorkspaceWidget$$ !== undefined) {
@@ -1352,6 +1592,14 @@ class WorkspaceState {
1352
1592
  this.store.activateWorkspace(wksFromId);
1353
1593
  }
1354
1594
  }
1595
+ setActiveWorkspaceByTitle(title) {
1596
+ const wksFromTitle = this.store
1597
+ .all()
1598
+ .find(workspace => workspace.title === title);
1599
+ if (wksFromTitle) {
1600
+ this.store.activateWorkspace(wksFromTitle);
1601
+ }
1602
+ }
1355
1603
  /**
1356
1604
  * Teardown all the workspaces
1357
1605
  * @internal
@@ -1379,14 +1627,14 @@ class WorkspaceState {
1379
1627
  }
1380
1628
  }
1381
1629
  }
1382
- WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0.ɵɵinject(FeatureActionsService), i0.ɵɵinject(WfsActionsService), i0.ɵɵinject(i2$2.StorageService)); };
1630
+ WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0.ɵɵinject(FeatureActionsService), i0.ɵɵinject(WfsActionsService), i0.ɵɵinject(EditionActionsService), i0.ɵɵinject(i2$1.StorageService)); };
1383
1631
  WorkspaceState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: WorkspaceState, factory: WorkspaceState.ɵfac, providedIn: 'root' });
1384
1632
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceState, [{
1385
1633
  type: Injectable,
1386
1634
  args: [{
1387
1635
  providedIn: 'root'
1388
1636
  }]
1389
- }], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: i2$2.StorageService }]; }, null); })();
1637
+ }], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: EditionActionsService }, { type: i2$1.StorageService }]; }, null); })();
1390
1638
 
1391
1639
  function WorkspaceButtonComponent_button_0_Template(rf, ctx) { if (rf & 1) {
1392
1640
  const _r2 = i0.ɵɵgetCurrentView();
@@ -1438,7 +1686,7 @@ WorkspaceButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wo
1438
1686
  i0.ɵɵpipe(1, "async");
1439
1687
  } if (rf & 2) {
1440
1688
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.hasWorkspace$));
1441
- } }, directives: [i5.NgIf, i3.MatButton, i4.MatTooltip, i6.MatIcon], pipes: [i5.AsyncPipe, i8.TranslatePipe], styles: [""], changeDetection: 0 });
1689
+ } }, directives: [i4$1.NgIf, i3.MatButton, i4$2.MatTooltip, i6.MatIcon], pipes: [i4$1.AsyncPipe, i8.TranslatePipe], styles: [""], changeDetection: 0 });
1442
1690
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceButtonComponent, [{
1443
1691
  type: Component,
1444
1692
  args: [{
@@ -1589,7 +1837,7 @@ ImportExportToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: I
1589
1837
  i0.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "layer");
1590
1838
  i0.ɵɵadvance(1);
1591
1839
  i0.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "context");
1592
- } }, directives: [i5.NgIf, i5$1.MatTabGroup, i5$1.MatTab, i1.ImportExportComponent, i2.ContextImportExportComponent], pipes: [i8.TranslatePipe, i5.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
1840
+ } }, directives: [i4$1.NgIf, i5.MatTabGroup, i5.MatTab, i1$1.ImportExportComponent, i1.ContextImportExportComponent], pipes: [i8.TranslatePipe, i4$1.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
1593
1841
  ImportExportToolComponent = __decorate([
1594
1842
  ToolComponent({
1595
1843
  name: 'importExport',
@@ -1871,7 +2119,7 @@ let MapDetailsToolComponent = class MapDetailsToolComponent {
1871
2119
  this.toolState.toolbox.activateTool('importExport');
1872
2120
  }
1873
2121
  };
1874
- MapDetailsToolComponent.ɵfac = function MapDetailsToolComponent_Factory(t) { return new (t || MapDetailsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ImportExportState)); };
2122
+ MapDetailsToolComponent.ɵfac = function MapDetailsToolComponent_Factory(t) { return new (t || MapDetailsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1$1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ImportExportState)); };
1875
2123
  MapDetailsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapDetailsToolComponent, selectors: [["igo-map-details-tool"]], inputs: { toggleLegendOnVisibilityChange: "toggleLegendOnVisibilityChange", expandLegendOfVisibleLayers: "expandLegendOfVisibleLayers", updateLegendOnResolutionChange: "updateLegendOnResolutionChange", ogcButton: "ogcButton", timeButton: "timeButton", layerListControls: "layerListControls", queryBadge: "queryBadge", layerAdditionAllowed: "layerAdditionAllowed" }, decls: 4, vars: 4, consts: [["class", "mapDetailsList", "igoLayerListBinding", "", "floatLabel", "never", 3, "map", "excludeBaseLayers", "layerFilterAndSortOptions", "expandLegendOfVisibleLayers", "toggleLegendOnVisibilityChange", "updateLegendOnResolutionChange", "queryBadge", 4, "ngIf", "ngIfElse"], ["empty", ""], ["igoLayerListBinding", "", "floatLabel", "never", 1, "mapDetailsList", 3, "map", "excludeBaseLayers", "layerFilterAndSortOptions", "expandLegendOfVisibleLayers", "toggleLegendOnVisibilityChange", "updateLegendOnResolutionChange", "queryBadge"], ["igoLayerItemToolbar", ""], [3, "layer"], [3, "layer", "click"], [3, "header", "layer"], [3, "trackFeature", "layer"], [4, "ngIf"], [1, "map-empty", "mat-typography"], ["class", "map-empty mat-typography", 4, "ngIf"], ["mat-list-icon", ""], ["viewBox", "0 0 24 24", "fit", "", "height", "100%", "width", "100%", "preserveAspectRatio", "xMidYMid meet", "focusable", "false"], ["d", "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["d", "M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["d", "M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function MapDetailsToolComponent_Template(rf, ctx) { if (rf & 1) {
1876
2124
  i0.ɵɵtemplate(0, MapDetailsToolComponent_igo_layer_list_0_Template, 3, 7, "igo-layer-list", 0);
1877
2125
  i0.ɵɵpipe(1, "async");
@@ -1879,7 +2127,7 @@ MapDetailsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Map
1879
2127
  } if (rf & 2) {
1880
2128
  const _r1 = i0.ɵɵreference(3);
1881
2129
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 2, ctx.layers$).length)("ngIfElse", _r1);
1882
- } }, directives: [i5.NgIf, i1.LayerListComponent, i1.LayerListBindingDirective, WorkspaceButtonComponent, i1.ExportButtonComponent, i1.OgcFilterButtonComponent, i1.TimeFilterButtonComponent, i1.TrackFeatureButtonComponent, i1.MetadataButtonComponent, i7$1.MatList, i7$1.MatListItem, i6.MatIcon, i7$1.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i5.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}.mapDetailsList[_ngcontent-%COMP%]{overflow:hidden}"] });
2130
+ } }, directives: [i4$1.NgIf, i1$1.LayerListComponent, i1$1.LayerListBindingDirective, WorkspaceButtonComponent, i1$1.ExportButtonComponent, i1$1.OgcFilterButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.TrackFeatureButtonComponent, i1$1.MetadataButtonComponent, i7.MatList, i7.MatListItem, i6.MatIcon, i7.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4$1.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}.mapDetailsList[_ngcontent-%COMP%]{overflow:hidden}"] });
1883
2131
  MapDetailsToolComponent = __decorate([
1884
2132
  ToolComponent({
1885
2133
  name: 'mapDetails',
@@ -1894,7 +2142,7 @@ MapDetailsToolComponent = __decorate([
1894
2142
  templateUrl: './map-details-tool.component.html',
1895
2143
  styleUrls: ['./map-details-tool.component.scss']
1896
2144
  }]
1897
- }], function () { return [{ type: MapState }, { type: ToolState }, { type: i1.SearchSourceService }, { type: i0.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
2145
+ }], function () { return [{ type: MapState }, { type: ToolState }, { type: i1$1.SearchSourceService }, { type: i0.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
1898
2146
  type: Input
1899
2147
  }], expandLegendOfVisibleLayers: [{
1900
2148
  type: Input
@@ -2007,7 +2255,7 @@ MapToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolCom
2007
2255
  i0.ɵɵproperty("map", ctx.map)("excludeBaseLayers", ctx.excludeBaseLayers)("layerFilterAndSortOptions", ctx.layerFilterAndSortOptions)("expandLegendOfVisibleLayers", ctx.expandLegendOfVisibleLayers)("toggleLegendOnVisibilityChange", ctx.toggleLegendOnVisibilityChange)("updateLegendOnResolutionChange", ctx.updateLegendOnResolutionChange)("floatLabel", false)("queryBadge", ctx.queryBadge);
2008
2256
  i0.ɵɵadvance(3);
2009
2257
  i0.ɵɵproperty("label", i0.ɵɵpipeBind1(7, 12, "igo.integration.tools.contexts"));
2010
- } }, directives: [i5$1.MatTabGroup, i5$1.MatTab, i1.LayerListComponent, i1.LayerListBindingDirective, i2.ContextListComponent, i2.ContextListBindingDirective, WorkspaceButtonComponent, i1.ExportButtonComponent, i1.OgcFilterButtonComponent, i1.TimeFilterButtonComponent, i1.TrackFeatureButtonComponent, i1.MetadataButtonComponent], pipes: [i8.TranslatePipe], styles: ["mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
2258
+ } }, directives: [i5.MatTabGroup, i5.MatTab, i1$1.LayerListComponent, i1$1.LayerListBindingDirective, i1.ContextListComponent, i1.ContextListBindingDirective, WorkspaceButtonComponent, i1$1.ExportButtonComponent, i1$1.OgcFilterButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.TrackFeatureButtonComponent, i1$1.MetadataButtonComponent], pipes: [i8.TranslatePipe], styles: ["mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
2011
2259
  MapToolComponent = __decorate([
2012
2260
  ToolComponent({
2013
2261
  name: 'map',
@@ -2430,7 +2678,7 @@ let MapToolsComponent = class MapToolsComponent {
2430
2678
  return false;
2431
2679
  }
2432
2680
  };
2433
- MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || MapToolsComponent)(i0.ɵɵdirectiveInject(LayerListToolState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1.SearchSourceService), i0.ɵɵdirectiveInject(ImportExportState)); };
2681
+ MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || MapToolsComponent)(i0.ɵɵdirectiveInject(LayerListToolState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1$1.SearchSourceService), i0.ɵɵdirectiveInject(ImportExportState)); };
2434
2682
  MapToolsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolsComponent, selectors: [["igo-map-tools"]], viewQuery: function MapToolsComponent_Query(rf, ctx) { if (rf & 1) {
2435
2683
  i0.ɵɵviewQuery(_c0$1, 7);
2436
2684
  } if (rf & 2) {
@@ -2471,7 +2719,7 @@ MapToolsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolsC
2471
2719
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 17, ctx.layers$).length !== 0)("ngIfElse", _r5);
2472
2720
  i0.ɵɵadvance(2);
2473
2721
  i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(13, 19, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(14, 21, ctx.visibleOrInRangeLayers$).length === 0);
2474
- } }, directives: [i5$1.MatTabGroup, i5$1.MatTab, i5.NgIf, i1.LayerListComponent, i1.LayerListBindingDirective, i1.MetadataButtonComponent, i1.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1.TimeFilterButtonComponent, i1.OgcFilterButtonComponent, i1.ExportButtonComponent, i1.LayerLegendListComponent, i1.LayerLegendListBindingDirective, i7$1.MatList, i7$1.MatListItem, i6.MatIcon, i7$1.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i5.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
2722
+ } }, directives: [i5.MatTabGroup, i5.MatTab, i4$1.NgIf, i1$1.LayerListComponent, i1$1.LayerListBindingDirective, i1$1.MetadataButtonComponent, i1$1.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.OgcFilterButtonComponent, i1$1.ExportButtonComponent, i1$1.LayerLegendListComponent, i1$1.LayerLegendListBindingDirective, i7.MatList, i7.MatListItem, i6.MatIcon, i7.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4$1.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
2475
2723
  MapToolsComponent = __decorate([
2476
2724
  ToolComponent({
2477
2725
  name: 'mapTools',
@@ -2487,7 +2735,7 @@ MapToolsComponent = __decorate([
2487
2735
  styleUrls: ['./map-tools.component.scss'],
2488
2736
  changeDetection: ChangeDetectionStrategy.OnPush
2489
2737
  }]
2490
- }], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
2738
+ }], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1$1.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
2491
2739
  type: Input
2492
2740
  }], showAllLegendsValue: [{
2493
2741
  type: Input
@@ -2744,7 +2992,7 @@ let MapLegendToolComponent = class MapLegendToolComponent {
2744
2992
  this.toolState.toolbox.activateTool('contextManager');
2745
2993
  }
2746
2994
  };
2747
- MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || MapLegendToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
2995
+ MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || MapLegendToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1$1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
2748
2996
  MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapLegendToolComponent, selectors: [["igo-map-legend-tool"]], inputs: { updateLegendOnResolutionChange: "updateLegendOnResolutionChange", layerAdditionAllowed: "layerAdditionAllowed", allowShowAllLegends: "allowShowAllLegends", showAllLegendsValue: "showAllLegendsValue", layerListControls: "layerListControls" }, decls: 8, vars: 10, consts: [["igoLayerLegendListBinding", "", 3, "excludeBaseLayers", "allowShowAllLegends", "updateLegendOnResolutionChange", "showAllLegendsValue", "allLegendsShown", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["class", "map-empty mat-typography", 4, "ngIf"], ["emptyLayers", ""], ["igoLayerLegendListBinding", "", 3, "excludeBaseLayers", "allowShowAllLegends", "updateLegendOnResolutionChange", "showAllLegendsValue", "allLegendsShown"], [1, "map-empty", "mat-typography"], [4, "ngIf"], ["mat-list-icon", ""], ["viewBox", "0 0 24 24", "fit", "", "height", "100%", "width", "100%", "preserveAspectRatio", "xMidYMid meet", "focusable", "false"], ["d", "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["d", "M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["d", "M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function MapLegendToolComponent_Template(rf, ctx) { if (rf & 1) {
2749
2997
  i0.ɵɵtemplate(0, MapLegendToolComponent_igo_layer_legend_list_0_Template, 2, 6, "igo-layer-legend-list", 0);
2750
2998
  i0.ɵɵtemplate(1, MapLegendToolComponent_1_Template, 1, 0, undefined, 1);
@@ -2760,7 +3008,7 @@ MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapL
2760
3008
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 4, ctx.layers$).length !== 0)("ngIfElse", _r3);
2761
3009
  i0.ɵɵadvance(2);
2762
3010
  i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(4, 6, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(5, 8, ctx.visibleOrInRangeLayers$).length === 0);
2763
- } }, directives: [i5.NgIf, i1.LayerLegendListComponent, i1.LayerLegendListBindingDirective, i7$1.MatList, i7$1.MatListItem, i6.MatIcon, i7$1.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i5.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}"] });
3011
+ } }, directives: [i4$1.NgIf, i1$1.LayerLegendListComponent, i1$1.LayerLegendListBindingDirective, i7.MatList, i7.MatListItem, i6.MatIcon, i7.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4$1.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}"] });
2764
3012
  MapLegendToolComponent = __decorate([
2765
3013
  ToolComponent({
2766
3014
  name: 'mapLegend',
@@ -2775,7 +3023,7 @@ MapLegendToolComponent = __decorate([
2775
3023
  templateUrl: './map-legend-tool.component.html',
2776
3024
  styleUrls: ['./map-legend-tool.component.scss']
2777
3025
  }]
2778
- }], function () { return [{ type: MapState }, { type: ToolState }, { type: i1.SearchSourceService }, { type: i0.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
3026
+ }], function () { return [{ type: MapState }, { type: ToolState }, { type: i1$1.SearchSourceService }, { type: i0.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
2779
3027
  type: Input
2780
3028
  }], layerAdditionAllowed: [{
2781
3029
  type: Input
@@ -2988,14 +3236,14 @@ class AdvancedSwipeComponent {
2988
3236
  this.toolState.toolbox.activateTool('contextManager');
2989
3237
  }
2990
3238
  }
2991
- AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2.ContextService), i0.ɵɵdirectiveInject(i3$1.FormBuilder), i0.ɵɵdirectiveInject(ToolState)); };
3239
+ AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1.ContextService), i0.ɵɵdirectiveInject(i3$1.FormBuilder), i0.ɵɵdirectiveInject(ToolState)); };
2992
3240
  AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedSwipeComponent, selectors: [["igo-advanced-swipe"]], decls: 3, vars: 2, consts: [["class", "igo-swipe-select-container", 4, "ngIf", "ngIfElse"], ["noLayersBlock", ""], [1, "igo-swipe-select-container"], [1, "igo-form", 3, "formGroup"], ["formControlName", "layers", "multiple", ""], [3, "value", "click"], ["e", ""], [3, "value", "click", 4, "ngFor", "ngForOf"], [1, "swipe-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "map-empty", "mat-typography"], ["mat-list-icon", "", "svgIcon", "magnify"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["mat-list-icon", "", "svgIcon", "layers-plus"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["mat-list-icon", "", "svgIcon", "star"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function AdvancedSwipeComponent_Template(rf, ctx) { if (rf & 1) {
2993
3241
  i0.ɵɵtemplate(0, AdvancedSwipeComponent_div_0_Template, 16, 14, "div", 0);
2994
3242
  i0.ɵɵtemplate(1, AdvancedSwipeComponent_ng_template_1_Template, 22, 15, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
2995
3243
  } if (rf & 2) {
2996
3244
  const _r1 = i0.ɵɵreference(2);
2997
3245
  i0.ɵɵproperty("ngIf", ctx.userControlledLayerList.length)("ngIfElse", _r1);
2998
- } }, directives: [i5.NgIf, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$2.MatSelect, i3$1.NgControlStatus, i3$1.FormControlName, i8$1.MatOption, i9.MatDivider, i5.NgForOf, i10.MatSlideToggle, i7$1.MatList, i7$1.MatListItem, i6.MatIcon, i7$1.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i8.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:bold;font-size:small;margin:15px 10px 0}.igo-swipe-select-container[_ngcontent-%COMP%]{padding:10px}.igo-swipe-select-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.igo-form[_ngcontent-%COMP%]{padding:1px 5px;width:100%}.swipe-toggle[_ngcontent-%COMP%]{padding:10px 5px 35px}.map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:5px}.map-empty[_ngcontent-%COMP%]{padding:10px;text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:15px}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}"] });
3246
+ } }, directives: [i4$1.NgIf, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$1.MatSelect, i3$1.NgControlStatus, i3$1.FormControlName, i8$1.MatOption, i9.MatDivider, i4$1.NgForOf, i10.MatSlideToggle, i7.MatList, i7.MatListItem, i6.MatIcon, i7.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i8.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:bold;font-size:small;margin:15px 10px 0}.igo-swipe-select-container[_ngcontent-%COMP%]{padding:10px}.igo-swipe-select-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.igo-form[_ngcontent-%COMP%]{padding:1px 5px;width:100%}.swipe-toggle[_ngcontent-%COMP%]{padding:10px 5px 35px}.map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:5px}.map-empty[_ngcontent-%COMP%]{padding:10px;text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:15px}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}"] });
2999
3247
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedSwipeComponent, [{
3000
3248
  type: Component,
3001
3249
  args: [{
@@ -3003,7 +3251,7 @@ AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Adva
3003
3251
  templateUrl: './advanced-swipe.component.html',
3004
3252
  styleUrls: ['./advanced-swipe.component.scss']
3005
3253
  }]
3006
- }], function () { return [{ type: MapState }, { type: i2.ContextService }, { type: i3$1.FormBuilder }, { type: ToolState }]; }, null); })();
3254
+ }], function () { return [{ type: MapState }, { type: i1.ContextService }, { type: i3$1.FormBuilder }, { type: ToolState }]; }, null); })();
3007
3255
 
3008
3256
  function AdvancedCoordinatesComponent_mat_form_field_0_Template(rf, ctx) { if (rf & 1) {
3009
3257
  i0.ɵɵelementStart(0, "mat-form-field", 12);
@@ -3068,6 +3316,7 @@ class AdvancedCoordinatesComponent {
3068
3316
  this.storageService = storageService;
3069
3317
  this.config = config;
3070
3318
  this.formBuilder = formBuilder;
3319
+ this.formattedScale$ = new BehaviorSubject('');
3071
3320
  this.projections$ = new BehaviorSubject([]);
3072
3321
  this.center = this.storageService.get('centerToggle');
3073
3322
  this.inMtmZone = true;
@@ -3103,6 +3352,7 @@ class AdvancedCoordinatesComponent {
3103
3352
  ngOnInit() {
3104
3353
  this.mapState$$ = combineLatest([this.map.viewController.state$.pipe(debounceTime(50)), this.form.valueChanges])
3105
3354
  .subscribe(() => {
3355
+ this.setScaleValue(this.map);
3106
3356
  this.currentCenterDefaultProj = this.map.viewController.getCenter(this.defaultProj.code);
3107
3357
  const currentMtmZone = zoneMtm(this.currentCenterDefaultProj[0]);
3108
3358
  const currentUtmZone = zoneUtm(this.currentCenterDefaultProj[0]);
@@ -3141,6 +3391,9 @@ class AdvancedCoordinatesComponent {
3141
3391
  this.map.mapCenter$.next(false);
3142
3392
  this.mapState$$.unsubscribe();
3143
3393
  }
3394
+ setScaleValue(map) {
3395
+ this.formattedScale$.next(': ~ 1 / ' + formatScale(map.viewController.getScale()));
3396
+ }
3144
3397
  /**
3145
3398
  * Coordinates of the center of the map on the appropriate systeme of coordinates
3146
3399
  * @returns Array of two numbers
@@ -3377,8 +3630,8 @@ class AdvancedCoordinatesComponent {
3377
3630
  });
3378
3631
  }
3379
3632
  }
3380
- AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$2.LanguageService), i0.ɵɵdirectiveInject(i2$2.MessageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2$2.StorageService), i0.ɵɵdirectiveInject(i2$2.ConfigService), i0.ɵɵdirectiveInject(i3$1.FormBuilder)); };
3381
- AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedCoordinatesComponent, selectors: [["igo-advanced-coordinates"]], inputs: { projectionsLimitations: "projectionsLimitations" }, decls: 24, vars: 24, consts: [["class", "coordinates", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["class", "coordinates2", 4, "ngIf", "ngIfElse"], ["elseBlock2", ""], ["mat-raised-button", "", 1, "igo-form-button-group", 3, "click"], ["svgIcon", "content-copy"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [3, "value", "valueChange"], ["matTooltipShowDelay", "500", 3, "value", "click", 4, "ngFor", "ngForOf"], [1, "center-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "igo-zoom", "mat-typography"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["matTooltipShowDelay", "500", 3, "value", "click"]], template: function AdvancedCoordinatesComponent_Template(rf, ctx) { if (rf & 1) {
3633
+ AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$1.LanguageService), i0.ɵɵdirectiveInject(i2$1.MessageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2$1.StorageService), i0.ɵɵdirectiveInject(i2$1.ConfigService), i0.ɵɵdirectiveInject(i3$1.FormBuilder)); };
3634
+ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedCoordinatesComponent, selectors: [["igo-advanced-coordinates"]], inputs: { projectionsLimitations: "projectionsLimitations" }, decls: 32, vars: 37, consts: [["class", "coordinates", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["class", "coordinates2", 4, "ngIf", "ngIfElse"], ["elseBlock2", ""], ["mat-raised-button", "", 1, "igo-form-button-group", 3, "click"], ["svgIcon", "content-copy"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [3, "value", "valueChange"], ["matTooltipShowDelay", "500", 3, "value", "click", 4, "ngFor", "ngForOf"], [1, "center-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "igo-zoom", "mat-typography"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["matTooltipShowDelay", "500", 3, "value", "click"]], template: function AdvancedCoordinatesComponent_Template(rf, ctx) { if (rf & 1) {
3382
3635
  i0.ɵɵtemplate(0, AdvancedCoordinatesComponent_mat_form_field_0_Template, 4, 4, "mat-form-field", 0);
3383
3636
  i0.ɵɵtemplate(1, AdvancedCoordinatesComponent_ng_template_1_Template, 4, 4, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
3384
3637
  i0.ɵɵtemplate(3, AdvancedCoordinatesComponent_mat_form_field_3_Template, 4, 4, "mat-form-field", 2);
@@ -3411,6 +3664,16 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
3411
3664
  i0.ɵɵtext(22);
3412
3665
  i0.ɵɵpipe(23, "translate");
3413
3666
  i0.ɵɵelementEnd();
3667
+ i0.ɵɵelementStart(24, "p", 11);
3668
+ i0.ɵɵtext(25);
3669
+ i0.ɵɵpipe(26, "translate");
3670
+ i0.ɵɵpipe(27, "async");
3671
+ i0.ɵɵelementEnd();
3672
+ i0.ɵɵelementStart(28, "p", 11);
3673
+ i0.ɵɵtext(29);
3674
+ i0.ɵɵpipe(30, "translate");
3675
+ i0.ɵɵpipe(31, "number");
3676
+ i0.ɵɵelementEnd();
3414
3677
  } if (rf & 2) {
3415
3678
  const _r1 = i0.ɵɵreference(2);
3416
3679
  const _r4 = i0.ɵɵreference(5);
@@ -3418,22 +3681,26 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
3418
3681
  i0.ɵɵadvance(3);
3419
3682
  i0.ɵɵproperty("ngIf", ctx.units)("ngIfElse", _r4);
3420
3683
  i0.ɵɵadvance(5);
3421
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 14, "igo.integration.advanced-map-tool.advanced-coordinates.copy"), "\n");
3684
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 18, "igo.integration.advanced-map-tool.advanced-coordinates.copy"), "\n");
3422
3685
  i0.ɵɵadvance(2);
3423
3686
  i0.ɵɵproperty("formGroup", ctx.form);
3424
3687
  i0.ɵɵadvance(3);
3425
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 16, "igo.integration.advanced-map-tool.advanced-coordinates.coordSystem"));
3688
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 20, "igo.integration.advanced-map-tool.advanced-coordinates.coordSystem"));
3426
3689
  i0.ɵɵadvance(2);
3427
3690
  i0.ɵɵproperty("value", ctx.inputProj);
3428
3691
  i0.ɵɵadvance(1);
3429
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(17, 18, ctx.projections$));
3692
+ i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(17, 22, ctx.projections$));
3430
3693
  i0.ɵɵadvance(2);
3431
3694
  i0.ɵɵproperty("checked", ctx.center)("labelPosition", "before");
3432
3695
  i0.ɵɵadvance(1);
3433
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 20, "igo.integration.advanced-map-tool.advanced-coordinates.center"), " ");
3696
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 24, "igo.integration.advanced-map-tool.advanced-coordinates.center"), " ");
3697
+ i0.ɵɵadvance(3);
3698
+ i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(23, 26, "igo.integration.advanced-map-tool.advanced-coordinates.zoom"), " ", ctx.map.viewController.getZoom(), "");
3434
3699
  i0.ɵɵadvance(3);
3435
- i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(23, 22, "igo.integration.advanced-map-tool.advanced-coordinates.zoom"), " ", ctx.map.getZoom(), "");
3436
- } }, directives: [i5.NgIf, i3.MatButton, i6.MatIcon, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$2.MatSelect, i5.NgForOf, i10.MatSlideToggle, i10$1.MatInput, i8$1.MatOption], pipes: [i8.TranslatePipe, i5.AsyncPipe], styles: ["textarea[_ngcontent-%COMP%]{resize:none}mat-form-field[_ngcontent-%COMP%]{padding:10px 15px}mat-form-field.coordinates[_ngcontent-%COMP%]{width:120px}mat-form-field.coordinates2[_ngcontent-%COMP%]{width:120px;padding:0 10px 0 3px}mat-form-field.igo-input-container[_ngcontent-%COMP%]{width:60%;padding:0 15px}.igo-form-button-group[_ngcontent-%COMP%]{padding:0 10px;margin:0 10px}.center-toggle[_ngcontent-%COMP%]{padding:10px 15px 35px}mat-slide-toggle[_ngcontent-%COMP%]{font-size:small}.igo-zoom[_ngcontent-%COMP%]{padding:0 15px}"] });
3700
+ i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(26, 28, "igo.integration.advanced-map-tool.advanced-coordinates.scale"), " ", i0.ɵɵpipeBind1(27, 30, ctx.formattedScale$), "");
3701
+ i0.ɵɵadvance(4);
3702
+ i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(30, 32, "igo.integration.advanced-map-tool.advanced-coordinates.resolution"), " ", i0.ɵɵpipeBind2(31, 34, ctx.map.viewController.getResolution(), "1.0-0"), "");
3703
+ } }, directives: [i4$1.NgIf, i3.MatButton, i6.MatIcon, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$1.MatSelect, i4$1.NgForOf, i10.MatSlideToggle, i10$1.MatInput, i8$1.MatOption], pipes: [i8.TranslatePipe, i4$1.AsyncPipe, i4$1.DecimalPipe], styles: ["textarea[_ngcontent-%COMP%]{resize:none}mat-form-field[_ngcontent-%COMP%]{padding:10px 15px}mat-form-field.coordinates[_ngcontent-%COMP%]{width:120px}mat-form-field.coordinates2[_ngcontent-%COMP%]{width:120px;padding:0 10px 0 3px}mat-form-field.igo-input-container[_ngcontent-%COMP%]{width:60%;padding:0 15px}.igo-form-button-group[_ngcontent-%COMP%]{padding:0 10px;margin:0 10px}.center-toggle[_ngcontent-%COMP%]{padding:10px 15px 35px}mat-slide-toggle[_ngcontent-%COMP%]{font-size:small}.igo-zoom[_ngcontent-%COMP%]{padding:0 15px}"] });
3437
3704
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedCoordinatesComponent, [{
3438
3705
  type: Component,
3439
3706
  args: [{
@@ -3441,7 +3708,7 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
3441
3708
  templateUrl: './advanced-coordinates.component.html',
3442
3709
  styleUrls: ['./advanced-coordinates.component.scss']
3443
3710
  }]
3444
- }], function () { return [{ type: MapState }, { type: i2$2.LanguageService }, { type: i2$2.MessageService }, { type: i0.ChangeDetectorRef }, { type: i2$2.StorageService }, { type: i2$2.ConfigService }, { type: i3$1.FormBuilder }]; }, { projectionsLimitations: [{
3711
+ }], function () { return [{ type: MapState }, { type: i2$1.LanguageService }, { type: i2$1.MessageService }, { type: i0.ChangeDetectorRef }, { type: i2$1.StorageService }, { type: i2$1.ConfigService }, { type: i3$1.FormBuilder }]; }, { projectionsLimitations: [{
3445
3712
  type: Input
3446
3713
  }] }); })();
3447
3714
 
@@ -3644,7 +3911,7 @@ MeasurerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Measu
3644
3911
  i0.ɵɵelement(0, "igo-measurer", 0);
3645
3912
  } if (rf & 2) {
3646
3913
  i0.ɵɵproperty("store", ctx.store)("map", ctx.map);
3647
- } }, directives: [i1.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
3914
+ } }, directives: [i1$1.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
3648
3915
  MeasurerToolComponent = __decorate([
3649
3916
  ToolComponent({
3650
3917
  name: 'measurer',
@@ -3714,7 +3981,7 @@ PrintToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PrintToo
3714
3981
  i0.ɵɵelement(0, "igo-print", 0);
3715
3982
  } if (rf & 2) {
3716
3983
  i0.ɵɵproperty("map", ctx.map);
3717
- } }, directives: [i1.PrintComponent], encapsulation: 2 });
3984
+ } }, directives: [i1$1.PrintComponent], encapsulation: 2 });
3718
3985
  PrintToolComponent = __decorate([
3719
3986
  ToolComponent({
3720
3987
  name: 'print',
@@ -3844,14 +4111,14 @@ class SearchState {
3844
4111
  this.searchResultsGeometryEnabled$.next(value);
3845
4112
  }
3846
4113
  }
3847
- SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0.ɵɵinject(i1.SearchSourceService), i0.ɵɵinject(i2$2.StorageService), i0.ɵɵinject(i2$2.ConfigService)); };
4114
+ SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0.ɵɵinject(i1$1.SearchSourceService), i0.ɵɵinject(i2$1.StorageService), i0.ɵɵinject(i2$1.ConfigService)); };
3848
4115
  SearchState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SearchState, factory: SearchState.ɵfac, providedIn: 'root' });
3849
4116
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchState, [{
3850
4117
  type: Injectable,
3851
4118
  args: [{
3852
4119
  providedIn: 'root'
3853
4120
  }]
3854
- }], function () { return [{ type: i1.SearchSourceService }, { type: i2$2.StorageService }, { type: i2$2.ConfigService }]; }, null); })();
4121
+ }], function () { return [{ type: i1$1.SearchSourceService }, { type: i2$1.StorageService }, { type: i2$1.ConfigService }]; }, null); })();
3855
4122
 
3856
4123
  class SearchBarBindingDirective {
3857
4124
  constructor(component, searchState) {
@@ -3891,7 +4158,7 @@ class SearchBarBindingDirective {
3891
4158
  }
3892
4159
  }
3893
4160
  }
3894
- SearchBarBindingDirective.ɵfac = function SearchBarBindingDirective_Factory(t) { return new (t || SearchBarBindingDirective)(i0.ɵɵdirectiveInject(i1.SearchBarComponent, 2), i0.ɵɵdirectiveInject(SearchState)); };
4161
+ SearchBarBindingDirective.ɵfac = function SearchBarBindingDirective_Factory(t) { return new (t || SearchBarBindingDirective)(i0.ɵɵdirectiveInject(i1$1.SearchBarComponent, 2), i0.ɵɵdirectiveInject(SearchState)); };
3895
4162
  SearchBarBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SearchBarBindingDirective, selectors: [["", "igoSearchBarBinding", ""]], hostBindings: function SearchBarBindingDirective_HostBindings(rf, ctx) { if (rf & 1) {
3896
4163
  i0.ɵɵlistener("searchTermChange", function SearchBarBindingDirective_searchTermChange_HostBindingHandler($event) { return ctx.onSearchTermChange($event); })("searchTypeChange", function SearchBarBindingDirective_searchTypeChange_HostBindingHandler($event) { return ctx.onSearchTypeChange($event); });
3897
4164
  } } });
@@ -3900,7 +4167,7 @@ SearchBarBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: S
3900
4167
  args: [{
3901
4168
  selector: '[igoSearchBarBinding]'
3902
4169
  }]
3903
- }], function () { return [{ type: i1.SearchBarComponent, decorators: [{
4170
+ }], function () { return [{ type: i1$1.SearchBarComponent, decorators: [{
3904
4171
  type: Self
3905
4172
  }] }, { type: SearchState }]; }, { onSearchTermChange: [{
3906
4173
  type: HostListener,
@@ -4447,7 +4714,7 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
4447
4714
  }, 250);
4448
4715
  }
4449
4716
  };
4450
- SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || SearchResultsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(SearchState), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(i2$2.ConfigService)); };
4717
+ SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || SearchResultsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(SearchState), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(i2$1.ConfigService)); };
4451
4718
  SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultsToolComponent, selectors: [["igo-search-results-tool"]], inputs: { showIcons: "showIcons", topPanelState: "topPanelState" }, decls: 3, vars: 4, consts: [["style", "margin: 10px;", 4, "ngIf"], ["initial", "100%", "initialMobile", "100%", "collapsed", "calc(100% - 58px)", "collapsedMobile", "calc(100% - 58px)", "expanded", "60%", "expandedMobile", "60%", 3, "state", 4, "ngIf"], [2, "margin", "10px"], [1, "mat-typography"], [3, "innerHTML"], ["initial", "100%", "initialMobile", "100%", "collapsed", "calc(100% - 58px)", "collapsedMobile", "calc(100% - 58px)", "expanded", "60%", "expandedMobile", "60%", 3, "state"], ["topPanel", ""], [1, "igo-content"], ["placeholder", "false", 3, "store", "showIcons", "term", "termSplitter", "settingsChange$", "resultFocus", "resultSelect", "resultUnfocus", "resultMouseenter", "resultMouseleave", "moreResults"], ["igoSearchItemToolbar", ""], ["igoFlexibleFill", "", 1, "igo-content"], [3, "title", 4, "ngIf"], [3, "map", "layer"], [3, "title"], ["mat-icon-button", "", "panelLeftButton", "", 1, "igo-icon-button", 3, "click"], [3, "svgIcon"], ["mat-icon-button", "", "panelRightButton", "", "class", "igo-icon-button", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["igoFeatureDetailsDirective", "", 3, "feature", "map", "toolbox", "routingEvent"], ["mat-icon-button", "", "panelRightButton", "", "matTooltipShowDelay", "500", 1, "igo-icon-button", 3, "matTooltip", "click"], ["matBadgeColor", "accent", "matBadgeSize", "small", "svgIcon", "magnify-plus-outline", 3, "matBadge", "matBadgeHidden"]], template: function SearchResultsToolComponent_Template(rf, ctx) { if (rf & 1) {
4452
4719
  i0.ɵɵtemplate(0, SearchResultsToolComponent_div_0_Template, 13, 11, "div", 0);
4453
4720
  i0.ɵɵtemplate(1, SearchResultsToolComponent_igo_flexible_1_Template, 10, 11, "igo-flexible", 1);
@@ -4456,7 +4723,7 @@ SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
4456
4723
  i0.ɵɵproperty("ngIf", !ctx.store || ctx.store.stateView.empty);
4457
4724
  i0.ɵɵadvance(1);
4458
4725
  i0.ɵɵproperty("ngIf", ctx.store && i0.ɵɵpipeBind1(2, 2, ctx.store.stateView.empty$) === false);
4459
- } }, directives: [i5.NgIf, i7.FlexibleComponent, i1.SearchResultsComponent, i1.SearchResultAddButtonComponent, i7.PanelComponent, i3.MatButton, i6.MatIcon, i1.FeatureDetailsComponent, i1.FeatureDetailsDirective, i4.MatTooltip, i12.MatBadge], pipes: [i5.AsyncPipe, i8.TranslatePipe, i7.SanitizeHtmlPipe], encapsulation: 2, changeDetection: 0 });
4726
+ } }, directives: [i4$1.NgIf, i4.FlexibleComponent, i1$1.SearchResultsComponent, i1$1.SearchResultAddButtonComponent, i4.PanelComponent, i3.MatButton, i6.MatIcon, i1$1.FeatureDetailsComponent, i1$1.FeatureDetailsDirective, i4$2.MatTooltip, i12.MatBadge], pipes: [i4$1.AsyncPipe, i8.TranslatePipe, i4.SanitizeHtmlPipe], encapsulation: 2, changeDetection: 0 });
4460
4727
  SearchResultsToolComponent = __decorate([
4461
4728
  ToolComponent({
4462
4729
  name: 'searchResults',
@@ -4471,7 +4738,7 @@ SearchResultsToolComponent = __decorate([
4471
4738
  templateUrl: './search-results-tool.component.html',
4472
4739
  changeDetection: ChangeDetectionStrategy.OnPush
4473
4740
  }]
4474
- }], function () { return [{ type: MapState }, { type: SearchState }, { type: i0.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2$2.ConfigService }]; }, { showIcons: [{
4741
+ }], function () { return [{ type: MapState }, { type: SearchState }, { type: i0.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2$1.ConfigService }]; }, { showIcons: [{
4475
4742
  type: Input
4476
4743
  }], topPanelState: [{
4477
4744
  type: Input
@@ -4559,7 +4826,7 @@ let OgcFilterToolComponent = class OgcFilterToolComponent {
4559
4826
  OgcFilterToolComponent.ɵfac = function OgcFilterToolComponent_Factory(t) { return new (t || OgcFilterToolComponent)(); };
4560
4827
  OgcFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OgcFilterToolComponent, selectors: [["igo-ogc-filter-tool"]], decls: 1, vars: 0, consts: [["igoOgcFilterableListBinding", ""]], template: function OgcFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
4561
4828
  i0.ɵɵelement(0, "igo-ogc-filterable-list", 0);
4562
- } }, directives: [i1.OgcFilterableListComponent, i1.OgcFilterableListBindingDirective], encapsulation: 2 });
4829
+ } }, directives: [i1$1.OgcFilterableListComponent, i1$1.OgcFilterableListBindingDirective], encapsulation: 2 });
4563
4830
  OgcFilterToolComponent = __decorate([
4564
4831
  ToolComponent({
4565
4832
  name: 'ogcFilter',
@@ -4581,7 +4848,7 @@ let TimeFilterToolComponent = class TimeFilterToolComponent {
4581
4848
  TimeFilterToolComponent.ɵfac = function TimeFilterToolComponent_Factory(t) { return new (t || TimeFilterToolComponent)(); };
4582
4849
  TimeFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimeFilterToolComponent, selectors: [["igo-time-filter-tool"]], decls: 1, vars: 0, consts: [["igoTimeFilterListBinding", ""]], template: function TimeFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
4583
4850
  i0.ɵɵelement(0, "igo-time-filter-list", 0);
4584
- } }, directives: [i1.TimeFilterListComponent, i1.TimeFilterListBindingDirective], encapsulation: 2 });
4851
+ } }, directives: [i1$1.TimeFilterListComponent, i1$1.TimeFilterListBindingDirective], encapsulation: 2 });
4585
4852
  TimeFilterToolComponent = __decorate([
4586
4853
  ToolComponent({
4587
4854
  name: 'timeFilter',
@@ -4662,17 +4929,20 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
4662
4929
  }
4663
4930
  activateExportTool() {
4664
4931
  const ids = [];
4932
+ const re = new RegExp('^Zone \\d+');
4665
4933
  for (const layer of this.layers) {
4666
- ids.push(layer.id);
4934
+ if (!layer.title.match(re)) {
4935
+ ids.push(layer.id);
4936
+ }
4667
4937
  }
4668
4938
  this.importExportState.setMode(ImportExportMode.export);
4669
4939
  this.importExportState.setsExportOptions({ layers: ids });
4670
4940
  this.toolState.toolbox.activateTool('importExport');
4671
4941
  }
4672
- activateWorkspace() {
4942
+ activateWorkspace(record) {
4673
4943
  let layerToOpenWks;
4674
4944
  this.workspaceState.store.entities$.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
4675
- if (this.activeLayers.length && this.workspaceState.store.all().length > 1) {
4945
+ if (!record && this.activeLayers.length && this.workspaceState.store.all().length > 1) {
4676
4946
  if (this.itemType === SpatialFilterItemType.Thematics) {
4677
4947
  for (const thematic of this.thematics) {
4678
4948
  if (!thematic.zeroResults) {
@@ -4694,6 +4964,21 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
4694
4964
  this.workspaceState.setActiveWorkspaceById(layerToOpenWks.id);
4695
4965
  }
4696
4966
  }
4967
+ else if (record && this.activeLayers.length && this.workspaceState.store.all().length > 1) {
4968
+ this.selectWorkspaceEntity(record);
4969
+ this.moveendKey = this.map.ol.on('moveend', () => {
4970
+ this.selectWorkspaceEntity(record);
4971
+ });
4972
+ }
4973
+ });
4974
+ }
4975
+ selectWorkspaceEntity(record) {
4976
+ this.workspaceState.store.all().forEach(workspace => {
4977
+ workspace.entityStore.state.updateAll({ selected: false });
4978
+ if (workspace.title.includes(record.added[0].meta.title)) {
4979
+ this.workspaceState.setActiveWorkspaceById(workspace.id);
4980
+ workspace.entityStore.state.updateMany(record.added, { selected: true });
4981
+ }
4697
4982
  });
4698
4983
  }
4699
4984
  loadFilterList() {
@@ -4857,6 +5142,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
4857
5142
  .pipe(take(1))
4858
5143
  .subscribe((dataSource) => {
4859
5144
  const olLayer = this.layerService.createLayer({
5145
+ isIgoInternalLayer: true,
4860
5146
  title: ('Zone ' + i + ' - ' + this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
4861
5147
  workspace: { enabled: true },
4862
5148
  _internal: {
@@ -4947,6 +5233,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
4947
5233
  style = this.createSvgIcon(icon) || createOverlayMarkerStyle();
4948
5234
  }
4949
5235
  const olLayer = this.layerService.createLayer({
5236
+ isIgoInternalLayer: true,
4950
5237
  title: (features[0].meta.title + ' ' + i + ' - ' + this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
4951
5238
  source: dataSource,
4952
5239
  visible: true,
@@ -5012,6 +5299,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
5012
5299
  .pipe(take(1))
5013
5300
  .subscribe((dataSource) => {
5014
5301
  const olLayer = this.layerService.createLayer({
5302
+ isIgoInternalLayer: true,
5015
5303
  title: (features[0].meta.title + ' ' + i + ' - ' + this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
5016
5304
  source: dataSource,
5017
5305
  visible: true
@@ -5052,14 +5340,14 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
5052
5340
  this.activeLayers.push(layer);
5053
5341
  }
5054
5342
  };
5055
- SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || SpatialFilterToolComponent)(i0.ɵɵdirectiveInject(i6.MatIconRegistry), i0.ɵɵdirectiveInject(i1.SpatialFilterService), i0.ɵɵdirectiveInject(i1.DataSourceService), i0.ɵɵdirectiveInject(i1.LayerService), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$2.MessageService), i0.ɵɵdirectiveInject(i2$2.LanguageService), i0.ɵɵdirectiveInject(ImportExportState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(WorkspaceState), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
5056
- SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SpatialFilterToolComponent, selectors: [["igo-spatial-filter-tool"]], inputs: { type: "type", itemType: "itemType", freehandDrawIsActive: "freehandDrawIsActive" }, decls: 6, vars: 16, consts: [[3, "store", "selectedQueryType", "zone", "layers", "eventType", "eventQueryType", "zoneChange", "zoneWithBufferChange", "bufferChange", "measureUnitChange"], [3, "type", "queryType", "map", "zone", "loading", "store", "layers", "allLayers", "thematicLength", "radiusEvent", "bufferEvent", "measureUnitChange", "freehandControl", "drawZoneEvent", "zoneWithBufferChange", "itemTypeChange", "thematicChange", "toggleSearch", "clearButtonEvent", "clearSearchEvent", "export", "openWorkspace"], [4, "ngIf"], [3, "feature"]], template: function SpatialFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
5343
+ SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || SpatialFilterToolComponent)(i0.ɵɵdirectiveInject(i6.MatIconRegistry), i0.ɵɵdirectiveInject(i1$1.SpatialFilterService), i0.ɵɵdirectiveInject(i1$1.DataSourceService), i0.ɵɵdirectiveInject(i1$1.LayerService), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$1.MessageService), i0.ɵɵdirectiveInject(i2$1.LanguageService), i0.ɵɵdirectiveInject(ImportExportState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(WorkspaceState), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
5344
+ SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SpatialFilterToolComponent, selectors: [["igo-spatial-filter-tool"]], inputs: { type: "type", itemType: "itemType", freehandDrawIsActive: "freehandDrawIsActive" }, decls: 6, vars: 16, consts: [[3, "store", "selectedQueryType", "zone", "layers", "eventType", "eventQueryType", "zoneChange", "zoneWithBufferChange", "bufferChange", "measureUnitChange"], [3, "type", "queryType", "map", "zone", "loading", "store", "layers", "allLayers", "thematicLength", "radiusEvent", "bufferEvent", "measureUnitChange", "freehandControl", "drawZoneEvent", "zoneWithBufferChange", "itemTypeChange", "thematicChange", "toggleSearch", "clearButtonEvent", "clearSearchEvent", "export", "openWorkspace", "entityChange"], [4, "ngIf"], [3, "feature"]], template: function SpatialFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
5057
5345
  i0.ɵɵelementStart(0, "igo-panel");
5058
5346
  i0.ɵɵelementStart(1, "igo-spatial-filter-type", 0);
5059
5347
  i0.ɵɵlistener("eventType", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_eventType_1_listener($event) { return ctx.getOutputType($event); })("eventQueryType", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_eventQueryType_1_listener($event) { return ctx.getOutputQueryType($event); })("zoneChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_zoneChange_1_listener($event) { return ctx.onZoneChange($event); })("zoneWithBufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_zoneWithBufferChange_1_listener($event) { return ctx.onZoneChange($event, true); })("bufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_bufferChange_1_listener($event) { return ctx.buffer = $event; })("measureUnitChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_measureUnitChange_1_listener($event) { return ctx.measureUnit = $event; });
5060
5348
  i0.ɵɵelementEnd();
5061
5349
  i0.ɵɵelementStart(2, "igo-spatial-filter-item", 1);
5062
- i0.ɵɵlistener("radiusEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_radiusEvent_2_listener($event) { return ctx.buffer = $event; })("bufferEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_bufferEvent_2_listener($event) { return ctx.buffer = $event; })("measureUnitChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_measureUnitChange_2_listener($event) { return ctx.measureUnit = $event; })("freehandControl", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_freehandControl_2_listener($event) { return ctx.freehandDrawIsActive = $event; })("drawZoneEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_drawZoneEvent_2_listener($event) { return ctx.zone = $event; })("zoneWithBufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_zoneWithBufferChange_2_listener($event) { return ctx.onZoneChange($event, true); })("itemTypeChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_itemTypeChange_2_listener($event) { return ctx.itemType = $event; })("thematicChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_thematicChange_2_listener($event) { return ctx.thematics = $event; })("toggleSearch", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_toggleSearch_2_listener() { return ctx.getOutputToggleSearch(); })("clearButtonEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearButtonEvent_2_listener() { return ctx.clearMap(); })("clearSearchEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearSearchEvent_2_listener() { return ctx.getOutputClearSearch(); })("export", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_export_2_listener() { return ctx.activateExportTool(); })("openWorkspace", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_openWorkspace_2_listener() { return ctx.activateWorkspace(); });
5350
+ i0.ɵɵlistener("radiusEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_radiusEvent_2_listener($event) { return ctx.buffer = $event; })("bufferEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_bufferEvent_2_listener($event) { return ctx.buffer = $event; })("measureUnitChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_measureUnitChange_2_listener($event) { return ctx.measureUnit = $event; })("freehandControl", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_freehandControl_2_listener($event) { return ctx.freehandDrawIsActive = $event; })("drawZoneEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_drawZoneEvent_2_listener($event) { return ctx.zone = $event; })("zoneWithBufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_zoneWithBufferChange_2_listener($event) { return ctx.onZoneChange($event, true); })("itemTypeChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_itemTypeChange_2_listener($event) { return ctx.itemType = $event; })("thematicChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_thematicChange_2_listener($event) { return ctx.thematics = $event; })("toggleSearch", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_toggleSearch_2_listener() { return ctx.getOutputToggleSearch(); })("clearButtonEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearButtonEvent_2_listener() { return ctx.clearMap(); })("clearSearchEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearSearchEvent_2_listener() { return ctx.getOutputClearSearch(); })("export", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_export_2_listener() { return ctx.activateExportTool(); })("openWorkspace", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_openWorkspace_2_listener() { return ctx.activateWorkspace(); })("entityChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_entityChange_2_listener($event) { return ctx.activateWorkspace($event); });
5063
5351
  i0.ɵɵelementEnd();
5064
5352
  i0.ɵɵelementEnd();
5065
5353
  i0.ɵɵelementStart(3, "igo-panel");
@@ -5073,7 +5361,7 @@ SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
5073
5361
  i0.ɵɵproperty("type", ctx.type)("queryType", ctx.queryType)("map", ctx.map)("zone", ctx.zone)("loading", ctx.loading)("store", ctx.store)("layers", ctx.activeLayers)("allLayers", ctx.layers)("thematicLength", ctx.thematicLength);
5074
5362
  i0.ɵɵadvance(2);
5075
5363
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 14, ctx.selectedFeature$));
5076
- } }, directives: [i1.SpatialFilterTypeComponent, i1.SpatialFilterItemComponent, i5.NgIf], pipes: [i5.AsyncPipe], styles: [""], changeDetection: 0 });
5364
+ } }, directives: [i1$1.SpatialFilterTypeComponent, i1$1.SpatialFilterItemComponent, i4$1.NgIf], pipes: [i4$1.AsyncPipe], styles: [""], changeDetection: 0 });
5077
5365
  SpatialFilterToolComponent = __decorate([
5078
5366
  ToolComponent({
5079
5367
  name: 'spatialFilter',
@@ -5092,7 +5380,7 @@ SpatialFilterToolComponent = __decorate([
5092
5380
  styleUrls: ['./spatial-filter-tool.component.scss'],
5093
5381
  changeDetection: ChangeDetectionStrategy.OnPush
5094
5382
  }]
5095
- }], function () { return [{ type: i6.MatIconRegistry }, { type: i1.SpatialFilterService }, { type: i1.DataSourceService }, { type: i1.LayerService }, { type: MapState }, { type: i2$2.MessageService }, { type: i2$2.LanguageService }, { type: ImportExportState }, { type: ToolState }, { type: WorkspaceState }, { type: i0.ChangeDetectorRef }]; }, { type: [{
5383
+ }], function () { return [{ type: i6.MatIconRegistry }, { type: i1$1.SpatialFilterService }, { type: i1$1.DataSourceService }, { type: i1$1.LayerService }, { type: MapState }, { type: i2$1.MessageService }, { type: i2$1.LanguageService }, { type: ImportExportState }, { type: ToolState }, { type: WorkspaceState }, { type: i0.ChangeDetectorRef }]; }, { type: [{
5096
5384
  type: Input
5097
5385
  }], itemType: [{
5098
5386
  type: Input
@@ -5131,7 +5419,7 @@ ActiveTimeFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
5131
5419
  i0.ɵɵelement(0, "igo-time-filter-item", 0);
5132
5420
  } if (rf & 2) {
5133
5421
  i0.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
5134
- } }, directives: [i1.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
5422
+ } }, directives: [i1$1.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
5135
5423
  ActiveTimeFilterToolComponent = __decorate([
5136
5424
  ToolComponent({
5137
5425
  name: 'activeTimeFilter',
@@ -5180,7 +5468,7 @@ ActiveOgcFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
5180
5468
  i0.ɵɵelement(0, "igo-ogc-filterable-item", 0);
5181
5469
  } if (rf & 2) {
5182
5470
  i0.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
5183
- } }, directives: [i1.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
5471
+ } }, directives: [i1$1.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
5184
5472
  ActiveOgcFilterToolComponent = __decorate([
5185
5473
  ToolComponent({
5186
5474
  name: 'activeOgcFilter',
@@ -5306,8 +5594,8 @@ let AboutToolComponent = class AboutToolComponent {
5306
5594
  this._headerHtml = this.languageService.translate.instant('igo.integration.aboutTool.headerHtml');
5307
5595
  this.loading = false;
5308
5596
  this.version = configService.getConfig('version');
5309
- this.baseUrlProfil = configService.getConfig('context.url') + '/user/igo?';
5310
- this.baseUrlGuide = configService.getConfig('depot.url') + '/projects/Documentation/files/';
5597
+ this.baseUrlProfil = configService.getConfig('storage.url');
5598
+ this.baseUrlGuide = configService.getConfig('depot.url') + configService.getConfig('depot.guideUrl');
5311
5599
  }
5312
5600
  get headerHtml() {
5313
5601
  return this._headerHtml;
@@ -5364,7 +5652,7 @@ let AboutToolComponent = class AboutToolComponent {
5364
5652
  return name;
5365
5653
  }
5366
5654
  };
5367
- AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || AboutToolComponent)(i0.ɵɵdirectiveInject(i2$2.ConfigService), i0.ɵɵdirectiveInject(i2$1.AuthService), i0.ɵɵdirectiveInject(i3$2.HttpClient), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2$2.LanguageService)); };
5655
+ AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || AboutToolComponent)(i0.ɵɵdirectiveInject(i2$1.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3$2.HttpClient), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2$1.LanguageService)); };
5368
5656
  AboutToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AboutToolComponent, selectors: [["igo-about-tool"]], inputs: { headerHtml: "headerHtml", html: "html", discoverTitleInLocale: "discoverTitleInLocale", trainingGuideURLs: "trainingGuideURLs" }, decls: 10, vars: 11, consts: [["mat-raised-button", "", "tourToStart", "global", "menuIsOpen", "true", "styleButton", "raised", 3, "discoverTitleInLocale$"], ["class", "training-guide-button", "mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "disabled", "matTooltip", "click", 4, "ngIf"], ["class", "training-guide-button", "mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "disabled", "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["menu", "matMenu"], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["class", "mat-typography", 3, "html", 4, "ngIf"], [1, "mat-typography", 3, "html"], ["mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 1, "training-guide-button", 3, "disabled", "matTooltip", "click"], ["svgIcon", "file-document"], ["mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 1, "training-guide-button", 3, "disabled", "matTooltip", "matMenuTriggerFor"], ["mat-menu-item", "", 3, "click"]], template: function AboutToolComponent_Template(rf, ctx) { if (rf & 1) {
5369
5657
  i0.ɵɵelement(0, "p");
5370
5658
  i0.ɵɵelement(1, "igo-interactive-tour", 0);
@@ -5389,7 +5677,7 @@ AboutToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AboutToo
5389
5677
  i0.ɵɵproperty("ngIf", ctx.headerHtml !== "");
5390
5678
  i0.ɵɵadvance(1);
5391
5679
  i0.ɵɵproperty("html", i0.ɵɵpipeBind2(9, 6, ctx.html, i0.ɵɵpureFunction1(9, _c0, ctx.version)));
5392
- } }, directives: [i7.InteractiveTourComponent, i5.NgIf, i6$2.MatMenu, i5.NgForOf, i7.CustomHtmlComponent, i3.MatButton, i4.MatTooltip, i6.MatIcon, i6$2.MatMenuTrigger, i6$2.MatMenuItem], pipes: [i8.TranslatePipe], styles: ["igo-interactive-tour[_ngcontent-%COMP%]{margin-left:20px}.training-guide-button[_ngcontent-%COMP%]{margin-left:5px;background-color:#1976d2;color:#fff;padding:0 12px}"] });
5680
+ } }, directives: [i4.InteractiveTourComponent, i4$1.NgIf, i6$2.MatMenu, i4$1.NgForOf, i4.CustomHtmlComponent, i3.MatButton, i4$2.MatTooltip, i6.MatIcon, i6$2.MatMenuTrigger, i6$2.MatMenuItem], pipes: [i8.TranslatePipe], styles: ["igo-interactive-tour[_ngcontent-%COMP%]{margin-left:20px}.training-guide-button[_ngcontent-%COMP%]{margin-left:5px;background-color:#1976d2;color:#fff;padding:0 12px}"] });
5393
5681
  AboutToolComponent = __decorate([
5394
5682
  ToolComponent({
5395
5683
  name: 'about',
@@ -5404,7 +5692,7 @@ AboutToolComponent = __decorate([
5404
5692
  templateUrl: './about-tool.component.html',
5405
5693
  styleUrls: ['./about-tool.component.scss']
5406
5694
  }]
5407
- }], function () { return [{ type: i2$2.ConfigService }, { type: i2$1.AuthService }, { type: i3$2.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i2$2.LanguageService }]; }, { headerHtml: [{
5695
+ }], function () { return [{ type: i2$1.ConfigService }, { type: i2.AuthService }, { type: i3$2.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i2$1.LanguageService }]; }, { headerHtml: [{
5408
5696
  type: Input
5409
5697
  }], html: [{
5410
5698
  type: Input
@@ -5545,87 +5833,6 @@ IgoAppToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[]] });
5545
5833
  }]
5546
5834
  }], null, null); })();
5547
5835
 
5548
- /**
5549
- * Service that holds the state of the context module
5550
- */
5551
- class ContextState {
5552
- constructor(contextService, toolService, toolState, languageService) {
5553
- this.contextService = contextService;
5554
- this.toolService = toolService;
5555
- this.toolState = toolState;
5556
- this.languageService = languageService;
5557
- /**
5558
- * Observable of the active context
5559
- */
5560
- this.context$ = new BehaviorSubject(undefined);
5561
- this.contextService.context$.subscribe((context) => {
5562
- this.onContextChange(context);
5563
- });
5564
- this.contextService.toolsChanged$.subscribe((context) => {
5565
- this.updateTools(context);
5566
- });
5567
- }
5568
- /**
5569
- * Set the active context
5570
- * @param context Detailed context
5571
- */
5572
- setContext(context) {
5573
- this.updateTools(context);
5574
- this.context$.next(context);
5575
- }
5576
- /**
5577
- * Update the tool state with the context's tools
5578
- * @param context Detailed context
5579
- */
5580
- updateTools(context) {
5581
- const toolbox = this.toolState.toolbox;
5582
- const tools = [];
5583
- const contextTools = context.tools || [];
5584
- contextTools.forEach((contextTool) => {
5585
- const baseTool = this.toolService.getTool(contextTool.name);
5586
- if (baseTool === undefined) {
5587
- return;
5588
- }
5589
- const options = Object.assign({}, baseTool.options || {}, contextTool.options || {});
5590
- const tool = Object.assign({}, baseTool, contextTool, { options });
5591
- tools.push(tool);
5592
- });
5593
- tools.forEach((tool) => {
5594
- if (tool.parent) {
5595
- const parentIndex = tools.findIndex((el) => el.name === tool.parent);
5596
- if (parentIndex !== -1) {
5597
- tools[parentIndex].children = [];
5598
- tools[parentIndex].children.push(tool.name);
5599
- }
5600
- }
5601
- });
5602
- toolbox.setTools(tools);
5603
- toolbox.setToolbar(context.toolbar || []);
5604
- // TODO: This is a patch so the context service can work without
5605
- // injecting the ToolState or without being completely refactored
5606
- this.contextService.setTools([].concat(tools));
5607
- this.contextService.setToolbar(context.toolbar || []);
5608
- }
5609
- /**
5610
- * Set a new context and update the tool state
5611
- * @param context Detailed context
5612
- */
5613
- onContextChange(context) {
5614
- if (context === undefined) {
5615
- return;
5616
- }
5617
- this.setContext(context);
5618
- }
5619
- }
5620
- ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0.ɵɵinject(i2.ContextService), i0.ɵɵinject(i7.ToolService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2$2.LanguageService)); };
5621
- ContextState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
5622
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextState, [{
5623
- type: Injectable,
5624
- args: [{
5625
- providedIn: 'root'
5626
- }]
5627
- }], function () { return [{ type: i2.ContextService }, { type: i7.ToolService }, { type: ToolState }, { type: i2$2.LanguageService }]; }, null); })();
5628
-
5629
5836
  /**
5630
5837
  * Service that holds the state of the search module
5631
5838
  */
@@ -5681,14 +5888,14 @@ class AnalyticsListenerService {
5681
5888
  });
5682
5889
  }
5683
5890
  }
5684
- AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0.ɵɵinject(i2$2.AnalyticsService), i0.ɵɵinject(i2$1.AuthService), i0.ɵɵinject(ContextState), i0.ɵɵinject(SearchState), i0.ɵɵinject(ToolState)); };
5891
+ AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0.ɵɵinject(i2$1.AnalyticsService), i0.ɵɵinject(i2.AuthService), i0.ɵɵinject(ContextState), i0.ɵɵinject(SearchState), i0.ɵɵinject(ToolState)); };
5685
5892
  AnalyticsListenerService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AnalyticsListenerService, factory: AnalyticsListenerService.ɵfac, providedIn: 'root' });
5686
5893
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnalyticsListenerService, [{
5687
5894
  type: Injectable,
5688
5895
  args: [{
5689
5896
  providedIn: 'root'
5690
5897
  }]
5691
- }], function () { return [{ type: i2$2.AnalyticsService }, { type: i2$1.AuthService }, { type: ContextState }, { type: SearchState }, { type: ToolState }]; }, null); })();
5898
+ }], function () { return [{ type: i2$1.AnalyticsService }, { type: i2.AuthService }, { type: ContextState }, { type: SearchState }, { type: ToolState }]; }, null); })();
5692
5899
 
5693
5900
  /**
5694
5901
  * Service that holds the state of the query module
@@ -5711,14 +5918,14 @@ class QueryState {
5711
5918
  }
5712
5919
  }
5713
5920
  }
5714
- QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0.ɵɵinject(i2$2.ConfigService)); };
5921
+ QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0.ɵɵinject(i2$1.ConfigService)); };
5715
5922
  QueryState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: QueryState, factory: QueryState.ɵfac, providedIn: 'root' });
5716
5923
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryState, [{
5717
5924
  type: Injectable,
5718
5925
  args: [{
5719
5926
  providedIn: 'root'
5720
5927
  }]
5721
- }], function () { return [{ type: i2$2.ConfigService }]; }, null); })();
5928
+ }], function () { return [{ type: i2$1.ConfigService }]; }, null); })();
5722
5929
 
5723
5930
  /*
5724
5931
  * Public API Surface of tools