@igo2/integration 1.10.0 → 1.12.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.
Files changed (121) hide show
  1. package/bundles/igo2-integration.umd.js +1297 -608
  2. package/bundles/igo2-integration.umd.js.map +1 -1
  3. package/esm2015/lib/about/about-tool/about-tool.component.js +3 -3
  4. package/esm2015/lib/about/about-tool/index.js +1 -1
  5. package/esm2015/lib/about/about.module.js +1 -1
  6. package/esm2015/lib/about/index.js +1 -1
  7. package/esm2015/lib/analytics/analytics-listener.service.js +1 -1
  8. package/esm2015/lib/analytics/analytics.module.js +1 -1
  9. package/esm2015/lib/analytics/index.js +1 -1
  10. package/esm2015/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.js +1 -1
  11. package/esm2015/lib/catalog/catalog-browser-tool/catalog-browser-tool.module.js +1 -1
  12. package/esm2015/lib/catalog/catalog-library-tool/catalog-library-tool.component.js +1 -1
  13. package/esm2015/lib/catalog/catalog-library-tool/catalog-library-tool.module.js +1 -1
  14. package/esm2015/lib/catalog/catalog.module.js +1 -1
  15. package/esm2015/lib/catalog/catalog.state.js +1 -1
  16. package/esm2015/lib/catalog/index.js +1 -1
  17. package/esm2015/lib/context/context-editor-tool/context-editor-tool.component.js +1 -1
  18. package/esm2015/lib/context/context-manager-tool/context-manager-tool.component.js +1 -1
  19. package/esm2015/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.js +1 -1
  20. package/esm2015/lib/context/context-share-tool/context-share-tool.component.js +1 -1
  21. package/esm2015/lib/context/context.module.js +1 -1
  22. package/esm2015/lib/context/context.state.js +1 -1
  23. package/esm2015/lib/context/index.js +1 -1
  24. package/esm2015/lib/directions/directions-tool/directions-tool.component.js +17 -8
  25. package/esm2015/lib/directions/directions-tool/index.js +1 -1
  26. package/esm2015/lib/directions/directions.module.js +1 -1
  27. package/esm2015/lib/directions/directions.state.js +1 -1
  28. package/esm2015/lib/directions/index.js +1 -1
  29. package/esm2015/lib/draw/draw.module.js +1 -1
  30. package/esm2015/lib/draw/draw.state.js +1 -1
  31. package/esm2015/lib/draw/drawing-tool/drawing-tool.component.js +1 -1
  32. package/esm2015/lib/draw/index.js +1 -1
  33. package/esm2015/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.animation.js +1 -1
  34. package/esm2015/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.js +1 -1
  35. package/esm2015/lib/filter/active-ogc-filter-tool/index.js +1 -1
  36. package/esm2015/lib/filter/active-time-filter-tool/active-time-filter-tool.animation.js +1 -1
  37. package/esm2015/lib/filter/active-time-filter-tool/active-time-filter-tool.component.js +1 -1
  38. package/esm2015/lib/filter/active-time-filter-tool/index.js +1 -1
  39. package/esm2015/lib/filter/filter.module.js +1 -1
  40. package/esm2015/lib/filter/index.js +1 -1
  41. package/esm2015/lib/filter/ogc-filter-tool/index.js +1 -1
  42. package/esm2015/lib/filter/ogc-filter-tool/ogc-filter-tool.component.js +1 -1
  43. package/esm2015/lib/filter/spatial-filter-tool/index.js +1 -1
  44. package/esm2015/lib/filter/spatial-filter-tool/spatial-filter-tool.component.js +4 -1
  45. package/esm2015/lib/filter/time-filter-tool/index.js +1 -1
  46. package/esm2015/lib/filter/time-filter-tool/time-filter-tool.component.js +1 -1
  47. package/esm2015/lib/import-export/import-export-tool/import-export-tool.component.js +1 -1
  48. package/esm2015/lib/import-export/import-export-tool/index.js +1 -1
  49. package/esm2015/lib/import-export/import-export.module.js +1 -1
  50. package/esm2015/lib/import-export/import-export.state.js +1 -1
  51. package/esm2015/lib/import-export/index.js +1 -1
  52. package/esm2015/lib/integration.module.js +1 -1
  53. package/esm2015/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.js +1 -1
  54. package/esm2015/lib/map/advanced-map-tool/advanced-map-tool.component.js +60 -11
  55. package/esm2015/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.js +1 -1
  56. package/esm2015/lib/map/advanced-map-tool/index.js +1 -1
  57. package/esm2015/lib/map/index.js +3 -1
  58. package/esm2015/lib/map/layer-list-tool.state.js +1 -1
  59. package/esm2015/lib/map/map-details-tool/index.js +1 -1
  60. package/esm2015/lib/map/map-details-tool/map-details-tool.component.js +1 -1
  61. package/esm2015/lib/map/map-legend/index.js +1 -1
  62. package/esm2015/lib/map/map-legend/map-legend-tool.component.js +1 -1
  63. package/esm2015/lib/map/map-proximity-tool/index.js +2 -0
  64. package/esm2015/lib/map/map-proximity-tool/map-proximity-tool.component.js +221 -0
  65. package/esm2015/lib/map/map-proximity.state.js +164 -0
  66. package/esm2015/lib/map/map-tool/index.js +1 -1
  67. package/esm2015/lib/map/map-tool/map-tool.component.js +1 -1
  68. package/esm2015/lib/map/map-tools/index.js +1 -1
  69. package/esm2015/lib/map/map-tools/map-tools.component.js +2 -2
  70. package/esm2015/lib/map/map.module.js +18 -8
  71. package/esm2015/lib/map/map.state.js +8 -6
  72. package/esm2015/lib/measure/index.js +1 -1
  73. package/esm2015/lib/measure/measure.module.js +1 -1
  74. package/esm2015/lib/measure/measure.state.js +1 -1
  75. package/esm2015/lib/measure/measurer-tool/measurer-tool.component.js +1 -1
  76. package/esm2015/lib/measure/measurer-tool/measurer-tool.module.js +1 -1
  77. package/esm2015/lib/print/index.js +1 -1
  78. package/esm2015/lib/print/print-tool/index.js +1 -1
  79. package/esm2015/lib/print/print-tool/print-tool.component.js +1 -1
  80. package/esm2015/lib/print/print.module.js +1 -1
  81. package/esm2015/lib/search/index.js +1 -1
  82. package/esm2015/lib/search/query.state.js +1 -1
  83. package/esm2015/lib/search/search-bar/search-bar-binding.directive.js +1 -1
  84. package/esm2015/lib/search/search-bar/search-bar.module.js +1 -1
  85. package/esm2015/lib/search/search-results-tool/search-results-tool.component.js +52 -28
  86. package/esm2015/lib/search/search-results-tool/search-results-tool.module.js +1 -1
  87. package/esm2015/lib/search/search.module.js +1 -1
  88. package/esm2015/lib/search/search.state.js +1 -1
  89. package/esm2015/lib/storage/index.js +1 -1
  90. package/esm2015/lib/storage/storage.module.js +1 -1
  91. package/esm2015/lib/storage/storage.state.js +1 -1
  92. package/esm2015/lib/tool/index.js +1 -1
  93. package/esm2015/lib/tool/tool.module.js +1 -1
  94. package/esm2015/lib/tool/tool.state.js +1 -1
  95. package/esm2015/lib/workspace/index.js +1 -1
  96. package/esm2015/lib/workspace/shared/edition-actions.service.js +157 -0
  97. package/esm2015/lib/workspace/shared/feature-actions.service.js +1 -1
  98. package/esm2015/lib/workspace/shared/index.js +1 -1
  99. package/esm2015/lib/workspace/shared/wfs-actions.service.js +2 -2
  100. package/esm2015/lib/workspace/shared/workspace.utils.js +1 -1
  101. package/esm2015/lib/workspace/workspace-button/index.js +1 -1
  102. package/esm2015/lib/workspace/workspace-button/workspace-button.component.js +1 -1
  103. package/esm2015/lib/workspace/workspace.module.js +1 -1
  104. package/esm2015/lib/workspace/workspace.state.js +41 -7
  105. package/esm2015/public_api.js +1 -1
  106. package/fesm2015/igo2-integration.js +843 -217
  107. package/fesm2015/igo2-integration.js.map +1 -1
  108. package/lib/directions/directions-tool/directions-tool.component.d.ts +6 -1
  109. package/lib/map/advanced-map-tool/advanced-map-tool.component.d.ts +7 -0
  110. package/lib/map/index.d.ts +2 -0
  111. package/lib/map/map-proximity-tool/index.d.ts +1 -0
  112. package/lib/map/map-proximity-tool/map-proximity-tool.component.d.ts +36 -0
  113. package/lib/map/map-proximity.state.d.ts +28 -0
  114. package/lib/map/map.module.d.ts +30 -28
  115. package/lib/map/map.state.d.ts +4 -1
  116. package/lib/search/search-results-tool/search-results-tool.component.d.ts +7 -1
  117. package/lib/workspace/shared/edition-actions.service.d.ts +26 -0
  118. package/lib/workspace/shared/workspace.utils.d.ts +2 -2
  119. package/lib/workspace/workspace.state.d.ts +8 -3
  120. package/ngcc.config.js +3 -3
  121. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@igo2/context'), require('@igo2/common'), require('rxjs'), require('@igo2/geo'), require('@angular/common'), require('rxjs/operators'), require('@igo2/auth'), require('@igo2/core'), require('@angular/material/button'), require('@angular/material/tooltip'), require('@angular/material/icon'), require('@ngx-translate/core'), require('@angular/material/tabs'), require('@angular/material/button-toggle'), require('@angular/material/list'), require('@angular/material/slide-toggle'), require('@angular/material/menu'), require('@angular/material/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/select'), require('@angular/material/divider'), require('@igo2/utils'), require('ol/proj'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/badge'), require('ol/format/GeoJSON'), require('ol/Feature'), require('ol/geom/Point'), require('@turf/point-on-feature'), require('ol/style'), require('@angular/animations'), require('@angular/common/http')) :
3
- typeof define === 'function' && define.amd ? define('@igo2/integration', ['exports', '@angular/core', '@igo2/context', '@igo2/common', 'rxjs', '@igo2/geo', '@angular/common', 'rxjs/operators', '@igo2/auth', '@igo2/core', '@angular/material/button', '@angular/material/tooltip', '@angular/material/icon', '@ngx-translate/core', '@angular/material/tabs', '@angular/material/button-toggle', '@angular/material/list', '@angular/material/slide-toggle', '@angular/material/menu', '@angular/material/core', '@angular/forms', '@angular/material/form-field', '@angular/material/select', '@angular/material/divider', '@igo2/utils', 'ol/proj', '@angular/material/input', '@angular/material/checkbox', '@angular/material/badge', 'ol/format/GeoJSON', 'ol/Feature', 'ol/geom/Point', '@turf/point-on-feature', 'ol/style', '@angular/animations', '@angular/common/http'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.integration = {}), global.ng.core, global.igoContext, global.igoCommon, global.rxjs, global.igoGeo, global.ng.common, global.rxjs.operators, global.igoAuth, global.igoCore, global.ng.material.button, global.ng.material.tooltip, global.ng.material.icon, global["ngxt-core"], global.ng.material.tabs, global.ng.material.buttonToggle, global.ng.material.list, global.ng.material.slideToggle, global.ng.material.menu, global.ng.material.core, global.ng.forms, global.ng.material.formField, global.ng.material.select, global.ng.material.divider, global.igoUtils, global.olProj, global.ng.material.input, global.ng.material.checkbox, global.ng.material.badge, global.olFormatGeoJSON, global.olFeature, global.olPoint, global.pointOnFeature, global.olstyle, global.ng.animations, global.ng.common.http));
5
- })(this, (function (exports, i0, i2, i7, rxjs, i1, i4, operators, i2$1, i2$2, i3, i4$1, i6, i8, i5, buttonToggle, i7$1, i10, i6$2, i8$1, i3$1, i6$1, i7$2, i9, utils, olproj, i10$1, checkbox, i12, olFormatGeoJSON, olFeature, olPoint, pointOnFeature, olstyle, animations, i3$2) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@igo2/context'), require('@igo2/common'), require('rxjs'), require('@igo2/geo'), require('@igo2/core'), require('@angular/common'), require('rxjs/operators'), require('@igo2/auth'), require('@angular/material/button'), require('@angular/material/tooltip'), require('@angular/material/icon'), require('@ngx-translate/core'), require('@angular/material/tabs'), require('@angular/material/button-toggle'), require('@angular/material/list'), require('@angular/material/slide-toggle'), require('@angular/material/menu'), require('@angular/material/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/select'), require('@angular/material/divider'), require('@igo2/utils'), require('ol/proj'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('ol/format/GeoJSON'), require('ol/layer/Vector'), require('ol/geom/LineString'), require('@angular/material/badge'), require('ol/Feature'), require('ol/geom/Point'), require('@turf/point-on-feature'), require('ol/style'), require('@angular/animations'), require('@angular/common/http')) :
3
+ typeof define === 'function' && define.amd ? define('@igo2/integration', ['exports', '@angular/core', '@igo2/context', '@igo2/common', 'rxjs', '@igo2/geo', '@igo2/core', '@angular/common', 'rxjs/operators', '@igo2/auth', '@angular/material/button', '@angular/material/tooltip', '@angular/material/icon', '@ngx-translate/core', '@angular/material/tabs', '@angular/material/button-toggle', '@angular/material/list', '@angular/material/slide-toggle', '@angular/material/menu', '@angular/material/core', '@angular/forms', '@angular/material/form-field', '@angular/material/select', '@angular/material/divider', '@igo2/utils', 'ol/proj', '@angular/material/input', '@angular/material/checkbox', '@angular/material/radio', 'ol/format/GeoJSON', 'ol/layer/Vector', 'ol/geom/LineString', '@angular/material/badge', 'ol/Feature', 'ol/geom/Point', '@turf/point-on-feature', 'ol/style', '@angular/animations', '@angular/common/http'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.integration = {}), global.ng.core, global.igoContext, global.igoCommon, global.rxjs, global.igoGeo, global.igoCore, global.ng.common, global.rxjs.operators, global.igoAuth, global.ng.material.button, global.ng.material.tooltip, global.ng.material.icon, global["ngxt-core"], global.ng.material.tabs, global.ng.material.buttonToggle, global.ng.material.list, global.ng.material.slideToggle, global.ng.material.menu, global.ng.material.core, global.ng.forms, global.ng.material.formField, global.ng.material.select, global.ng.material.divider, global.igoUtils, global.olProj, global.ng.material.input, global.ng.material.checkbox, global.ng.material.radio, global.olFormatGeoJSON, global.olLayerVector, global.olGeomLineString, global.ng.material.badge, global.olFeature, global.olPoint, global.pointOnFeature, global.olstyle, global.ng.animations, global.ng.common.http));
5
+ })(this, (function (exports, i0, i1, i4, rxjs, i1$1, i2, i5, operators, i2$1, i3, i4$1, i6, i8, i5$1, buttonToggle, i7, i10, i6$2, i8$1, i3$1, i6$1, i7$1, i9, utils, olProj, i10$1, checkbox, i7$2, olFormatGeoJSON, olLayerVector, olLineString, i12, olFeature, olPoint, pointOnFeature, olstyle, animations, i3$2) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -25,29 +25,32 @@
25
25
  }
26
26
 
27
27
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
30
28
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
31
29
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
31
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
32
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
32
33
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
33
- var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
34
34
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
35
35
  var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
36
36
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
37
37
  var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
38
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
39
- var i7__namespace$1 = /*#__PURE__*/_interopNamespace(i7$1);
38
+ var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
39
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
40
40
  var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
41
41
  var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
42
42
  var i8__namespace$1 = /*#__PURE__*/_interopNamespace(i8$1);
43
43
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
44
44
  var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
45
- var i7__namespace$2 = /*#__PURE__*/_interopNamespace(i7$2);
45
+ var i7__namespace$1 = /*#__PURE__*/_interopNamespace(i7$1);
46
46
  var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
47
- var olproj__namespace = /*#__PURE__*/_interopNamespace(olproj);
47
+ var olProj__namespace = /*#__PURE__*/_interopNamespace(olProj);
48
48
  var i10__namespace$1 = /*#__PURE__*/_interopNamespace(i10$1);
49
- var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
49
+ var i7__namespace$2 = /*#__PURE__*/_interopNamespace(i7$2);
50
50
  var olFormatGeoJSON__default = /*#__PURE__*/_interopDefaultLegacy(olFormatGeoJSON);
51
+ var olLayerVector__default = /*#__PURE__*/_interopDefaultLegacy(olLayerVector);
52
+ var olLineString__default = /*#__PURE__*/_interopDefaultLegacy(olLineString);
53
+ var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
51
54
  var olFeature__default = /*#__PURE__*/_interopDefaultLegacy(olFeature);
52
55
  var olPoint__default = /*#__PURE__*/_interopDefaultLegacy(olPoint);
53
56
  var pointOnFeature__default = /*#__PURE__*/_interopDefaultLegacy(pointOnFeature);
@@ -474,7 +477,7 @@
474
477
  };
475
478
  return ToolState;
476
479
  }());
477
- ToolState.ɵfac = function ToolState_Factory(t) { return new (t || ToolState)(i0__namespace.ɵɵinject(i7__namespace.ToolService), i0__namespace.ɵɵinject(ImportExportState)); };
480
+ ToolState.ɵfac = function ToolState_Factory(t) { return new (t || ToolState)(i0__namespace.ɵɵinject(i4__namespace.ToolService), i0__namespace.ɵɵinject(ImportExportState)); };
478
481
  ToolState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: ToolState, factory: ToolState.ɵfac, providedIn: 'root' });
479
482
  (function () {
480
483
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ToolState, [{
@@ -482,7 +485,7 @@
482
485
  args: [{
483
486
  providedIn: 'root'
484
487
  }]
485
- }], function () { return [{ type: i7__namespace.ToolService }, { type: ImportExportState }]; }, null);
488
+ }], function () { return [{ type: i4__namespace.ToolService }, { type: ImportExportState }]; }, null);
486
489
  })();
487
490
 
488
491
  exports.ContextEditorToolComponent = /** @class */ (function () {
@@ -501,9 +504,9 @@
501
504
  i0__namespace.ɵɵlistener("submitSuccessed", function ContextEditorToolComponent_Template_igo_context_edit_submitSuccessed_0_listener() { return ctx.submitSuccessed(); });
502
505
  i0__namespace.ɵɵelementEnd();
503
506
  }
504
- }, directives: [i2__namespace.ContextEditComponent, i2__namespace.ContextEditBindingDirective], encapsulation: 2 });
507
+ }, directives: [i1__namespace.ContextEditComponent, i1__namespace.ContextEditBindingDirective], encapsulation: 2 });
505
508
  exports.ContextEditorToolComponent = __decorate([
506
- i7.ToolComponent({
509
+ i4.ToolComponent({
507
510
  name: 'contextEditor',
508
511
  title: 'igo.integration.tools.contexts',
509
512
  icon: 'star',
@@ -525,18 +528,19 @@
525
528
  * Service that holds the state of the map module
526
529
  */
527
530
  var MapState = /** @class */ (function () {
528
- function MapState(mapService, projectionService // Don't remove this or it'll never be injected
529
- ) {
531
+ function MapState(mapService, projectionService, // Don't remove this or it'll never be injected,
532
+ storageService) {
530
533
  this.mapService = mapService;
531
534
  this.projectionService = projectionService;
532
- this._map = new i1.IgoMap({
535
+ this.storageService = storageService;
536
+ this._map = new i1$1.IgoMap({
533
537
  controls: {
534
538
  scaleLine: true,
535
539
  attribution: {
536
540
  collapsed: true
537
541
  }
538
542
  }
539
- });
543
+ }, this.storageService);
540
544
  this.mapService.setMap(this.map);
541
545
  }
542
546
  Object.defineProperty(MapState.prototype, "showAllLegendsValue", {
@@ -560,7 +564,7 @@
560
564
  });
561
565
  return MapState;
562
566
  }());
563
- MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0__namespace.ɵɵinject(i1__namespace.MapService), i0__namespace.ɵɵinject(i1__namespace.ProjectionService)); };
567
+ MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0__namespace.ɵɵinject(i1__namespace$1.MapService), i0__namespace.ɵɵinject(i1__namespace$1.ProjectionService), i0__namespace.ɵɵinject(i2__namespace.StorageService)); };
564
568
  MapState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MapState, factory: MapState.ɵfac, providedIn: 'root' });
565
569
  (function () {
566
570
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MapState, [{
@@ -568,7 +572,7 @@
568
572
  args: [{
569
573
  providedIn: 'root'
570
574
  }]
571
- }], function () { return [{ type: i1__namespace.MapService }, { type: i1__namespace.ProjectionService }]; }, null);
575
+ }], function () { return [{ type: i1__namespace$1.MapService }, { type: i1__namespace$1.ProjectionService }, { type: i2__namespace.StorageService }]; }, null);
572
576
  })();
573
577
 
574
578
  exports.ContextManagerToolComponent = /** @class */ (function () {
@@ -600,9 +604,9 @@
600
604
  if (rf & 2) {
601
605
  i0__namespace.ɵɵproperty("map", ctx.map);
602
606
  }
603
- }, directives: [i2__namespace.ContextListComponent, i2__namespace.ContextListBindingDirective], encapsulation: 2 });
607
+ }, directives: [i1__namespace.ContextListComponent, i1__namespace.ContextListBindingDirective], encapsulation: 2 });
604
608
  exports.ContextManagerToolComponent = __decorate([
605
- i7.ToolComponent({
609
+ i4.ToolComponent({
606
610
  name: 'contextManager',
607
611
  title: 'igo.integration.tools.contexts',
608
612
  icon: 'star'
@@ -630,9 +634,9 @@
630
634
  if (rf & 1) {
631
635
  i0__namespace.ɵɵelement(0, "igo-context-permissions", 0);
632
636
  }
633
- }, directives: [i2__namespace.ContextPermissionsComponent, i2__namespace.ContextPermissionsBindingDirective], encapsulation: 2 });
637
+ }, directives: [i1__namespace.ContextPermissionsComponent, i1__namespace.ContextPermissionsBindingDirective], encapsulation: 2 });
634
638
  exports.ContextPermissionManagerToolComponent = __decorate([
635
- i7.ToolComponent({
639
+ i4.ToolComponent({
636
640
  name: 'contextPermissionManager',
637
641
  title: 'igo.integration.tools.contexts',
638
642
  icon: 'star',
@@ -716,9 +720,9 @@
716
720
  if (rf & 2) {
717
721
  i0__namespace.ɵɵproperty("map", ctx.map);
718
722
  }
719
- }, directives: [i2__namespace.ShareMapComponent], encapsulation: 2 });
723
+ }, directives: [i1__namespace.ShareMapComponent], encapsulation: 2 });
720
724
  exports.ContextShareToolComponent = __decorate([
721
- i7.ToolComponent({
725
+ i4.ToolComponent({
722
726
  name: 'shareMap',
723
727
  title: 'igo.integration.tools.shareMap',
724
728
  icon: 'share-variant'
@@ -741,12 +745,12 @@
741
745
  }());
742
746
  IgoAppContextModule.ɵfac = function IgoAppContextModule_Factory(t) { return new (t || IgoAppContextModule)(); };
743
747
  IgoAppContextModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppContextModule });
744
- IgoAppContextModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i2.IgoContextModule]] });
748
+ IgoAppContextModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoContextModule]] });
745
749
  (function () {
746
750
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppContextModule, [{
747
751
  type: i0.NgModule,
748
752
  args: [{
749
- imports: [i2.IgoContextModule],
753
+ imports: [i1.IgoContextModule],
750
754
  declarations: [
751
755
  exports.ContextEditorToolComponent,
752
756
  exports.ContextManagerToolComponent,
@@ -767,7 +771,7 @@
767
771
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppContextModule, { declarations: [exports.ContextEditorToolComponent,
768
772
  exports.ContextManagerToolComponent,
769
773
  exports.ContextPermissionManagerToolComponent,
770
- exports.ContextShareToolComponent], imports: [i2.IgoContextModule], exports: [exports.ContextEditorToolComponent,
774
+ exports.ContextShareToolComponent], imports: [i1.IgoContextModule], exports: [exports.ContextEditorToolComponent,
771
775
  exports.ContextManagerToolComponent,
772
776
  exports.ContextPermissionManagerToolComponent,
773
777
  exports.ContextShareToolComponent] });
@@ -783,7 +787,7 @@
783
787
  * Catalog -> Catalog items store mapping
784
788
  */
785
789
  this.catalogItemsStores = new Map();
786
- this._catalogStore = new i7.EntityStore([]);
790
+ this._catalogStore = new i4.EntityStore([]);
787
791
  authService.authenticate$.subscribe(function () {
788
792
  _this.clearCatalogItemsStores();
789
793
  });
@@ -892,7 +896,7 @@
892
896
  };
893
897
  return CatalogLibraryToolComponent;
894
898
  }());
895
- exports.CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || exports.CatalogLibraryToolComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.CatalogService), i0__namespace.ɵɵdirectiveInject(CatalogState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.StorageService)); };
899
+ exports.CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || exports.CatalogLibraryToolComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.CatalogService), i0__namespace.ɵɵdirectiveInject(CatalogState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i2__namespace.StorageService)); };
896
900
  exports.CatalogLibraryToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
897
901
  if (rf & 1) {
898
902
  i0__namespace.ɵɵelementStart(0, "igo-catalog-library", 0);
@@ -902,9 +906,9 @@
902
906
  if (rf & 2) {
903
907
  i0__namespace.ɵɵproperty("predefinedCatalogs", ctx.predefinedCatalogs)("addCatalogAllowed", ctx.addCatalogAllowed)("store", ctx.store);
904
908
  }
905
- }, directives: [i1__namespace.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
909
+ }, directives: [i1__namespace$1.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
906
910
  exports.CatalogLibraryToolComponent = __decorate([
907
- i7.ToolComponent({
911
+ i4.ToolComponent({
908
912
  name: 'catalog',
909
913
  title: 'igo.integration.tools.catalog',
910
914
  icon: 'layers-plus'
@@ -918,7 +922,7 @@
918
922
  templateUrl: './catalog-library-tool.component.html',
919
923
  changeDetection: i0.ChangeDetectionStrategy.OnPush
920
924
  }]
921
- }], function () { return [{ type: i1__namespace.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2__namespace$2.StorageService }]; }, { addCatalogAllowed: [{
925
+ }], function () { return [{ type: i1__namespace$1.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2__namespace.StorageService }]; }, { addCatalogAllowed: [{
922
926
  type: i0.Input
923
927
  }], predefinedCatalogs: [{
924
928
  type: i0.Input
@@ -936,16 +940,16 @@
936
940
  IgoAppCatalogLibraryToolModule.ɵfac = function IgoAppCatalogLibraryToolModule_Factory(t) { return new (t || IgoAppCatalogLibraryToolModule)(); };
937
941
  IgoAppCatalogLibraryToolModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppCatalogLibraryToolModule });
938
942
  IgoAppCatalogLibraryToolModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
939
- i4.CommonModule,
940
- i1.IgoCatalogLibraryModule
943
+ i5.CommonModule,
944
+ i1$1.IgoCatalogLibraryModule
941
945
  ]] });
942
946
  (function () {
943
947
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppCatalogLibraryToolModule, [{
944
948
  type: i0.NgModule,
945
949
  args: [{
946
950
  imports: [
947
- i4.CommonModule,
948
- i1.IgoCatalogLibraryModule
951
+ i5.CommonModule,
952
+ i1$1.IgoCatalogLibraryModule
949
953
  ],
950
954
  declarations: [exports.CatalogLibraryToolComponent],
951
955
  exports: [exports.CatalogLibraryToolComponent],
@@ -954,8 +958,8 @@
954
958
  }], null, null);
955
959
  })();
956
960
  (function () {
957
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppCatalogLibraryToolModule, { declarations: [exports.CatalogLibraryToolComponent], imports: [i4.CommonModule,
958
- i1.IgoCatalogLibraryModule], exports: [exports.CatalogLibraryToolComponent] });
961
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppCatalogLibraryToolModule, { declarations: [exports.CatalogLibraryToolComponent], imports: [i5.CommonModule,
962
+ i1$1.IgoCatalogLibraryModule], exports: [exports.CatalogLibraryToolComponent] });
959
963
  })();
960
964
 
961
965
  function CatalogBrowserToolComponent_igo_catalog_browser_0_Template(rf, ctx) {
@@ -1035,7 +1039,7 @@
1035
1039
  this.store$.next(store);
1036
1040
  return;
1037
1041
  }
1038
- store = new i7.EntityStore([]);
1042
+ store = new i4.EntityStore([]);
1039
1043
  this.catalogState.setCatalogItemsStore(catalog, store);
1040
1044
  this.catalogService
1041
1045
  .loadCatalogItems(catalog)
@@ -1047,7 +1051,7 @@
1047
1051
  };
1048
1052
  return CatalogBrowserToolComponent;
1049
1053
  }());
1050
- exports.CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || exports.CatalogBrowserToolComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.CatalogService), i0__namespace.ɵɵdirectiveInject(CatalogState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.AuthService)); };
1054
+ exports.CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || exports.CatalogBrowserToolComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.CatalogService), i0__namespace.ɵɵdirectiveInject(CatalogState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.AuthService)); };
1051
1055
  exports.CatalogBrowserToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
1052
1056
  if (rf & 1) {
1053
1057
  i0__namespace.ɵɵtemplate(0, CatalogBrowserToolComponent_igo_catalog_browser_0_Template, 1, 4, "igo-catalog-browser", 0);
@@ -1056,9 +1060,9 @@
1056
1060
  if (rf & 2) {
1057
1061
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.store$));
1058
1062
  }
1059
- }, directives: [i4__namespace.NgIf, i1__namespace.CatalogBrowserComponent], pipes: [i4__namespace.AsyncPipe], encapsulation: 2, changeDetection: 0 });
1063
+ }, directives: [i5__namespace.NgIf, i1__namespace$1.CatalogBrowserComponent], pipes: [i5__namespace.AsyncPipe], encapsulation: 2, changeDetection: 0 });
1060
1064
  exports.CatalogBrowserToolComponent = __decorate([
1061
- i7.ToolComponent({
1065
+ i4.ToolComponent({
1062
1066
  name: 'catalogBrowser',
1063
1067
  title: 'igo.integration.tools.catalog',
1064
1068
  icon: 'photo-browser',
@@ -1073,7 +1077,7 @@
1073
1077
  templateUrl: './catalog-browser-tool.component.html',
1074
1078
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1075
1079
  }]
1076
- }], function () { return [{ type: i1__namespace.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2__namespace$1.AuthService }]; }, { toggleCollapsedGroup: [{
1080
+ }], function () { return [{ type: i1__namespace$1.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2__namespace$1.AuthService }]; }, { toggleCollapsedGroup: [{
1077
1081
  type: i0.Input
1078
1082
  }] });
1079
1083
  })();
@@ -1089,16 +1093,16 @@
1089
1093
  IgoAppCatalogBrowserToolModule.ɵfac = function IgoAppCatalogBrowserToolModule_Factory(t) { return new (t || IgoAppCatalogBrowserToolModule)(); };
1090
1094
  IgoAppCatalogBrowserToolModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppCatalogBrowserToolModule });
1091
1095
  IgoAppCatalogBrowserToolModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1092
- i4.CommonModule,
1093
- i1.IgoCatalogBrowserModule
1096
+ i5.CommonModule,
1097
+ i1$1.IgoCatalogBrowserModule
1094
1098
  ]] });
1095
1099
  (function () {
1096
1100
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppCatalogBrowserToolModule, [{
1097
1101
  type: i0.NgModule,
1098
1102
  args: [{
1099
1103
  imports: [
1100
- i4.CommonModule,
1101
- i1.IgoCatalogBrowserModule
1104
+ i5.CommonModule,
1105
+ i1$1.IgoCatalogBrowserModule
1102
1106
  ],
1103
1107
  declarations: [exports.CatalogBrowserToolComponent],
1104
1108
  exports: [exports.CatalogBrowserToolComponent],
@@ -1107,8 +1111,8 @@
1107
1111
  }], null, null);
1108
1112
  })();
1109
1113
  (function () {
1110
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppCatalogBrowserToolModule, { declarations: [exports.CatalogBrowserToolComponent], imports: [i4.CommonModule,
1111
- i1.IgoCatalogBrowserModule], exports: [exports.CatalogBrowserToolComponent] });
1114
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppCatalogBrowserToolModule, { declarations: [exports.CatalogBrowserToolComponent], imports: [i5.CommonModule,
1115
+ i1$1.IgoCatalogBrowserModule], exports: [exports.CatalogBrowserToolComponent] });
1112
1116
  })();
1113
1117
 
1114
1118
  var IgoAppCatalogModule = /** @class */ (function () {
@@ -1149,20 +1153,20 @@
1149
1153
  /**
1150
1154
  * Store that holds the stop
1151
1155
  */
1152
- this.stopsStore = new i1.StopsStore([]);
1156
+ this.stopsStore = new i1$1.StopsStore([]);
1153
1157
  /**
1154
1158
  * Store that holds the driving stops as feature
1155
1159
  */
1156
- this.stopsFeatureStore = new i1.StopsFeatureStore([], {
1160
+ this.stopsFeatureStore = new i1$1.StopsFeatureStore([], {
1157
1161
  map: this.mapState.map
1158
1162
  });
1159
1163
  /**
1160
1164
  * Store that holds the driving route as feature
1161
1165
  */
1162
- this.routesFeatureStore = new i1.RoutesFeatureStore([], {
1166
+ this.routesFeatureStore = new i1$1.RoutesFeatureStore([], {
1163
1167
  map: this.mapState.map
1164
1168
  });
1165
- this.stepFeatureStore = new i1.StepFeatureStore([], {
1169
+ this.stepFeatureStore = new i1$1.StepFeatureStore([], {
1166
1170
  map: this.mapState.map
1167
1171
  });
1168
1172
  this.debounceTime = 200;
@@ -1203,13 +1207,101 @@
1203
1207
  }], function () { return [{ type: MapState }]; }, null);
1204
1208
  })();
1205
1209
 
1210
+ /**
1211
+ * Service that holds the state of the context module
1212
+ */
1213
+ var ContextState = /** @class */ (function () {
1214
+ function ContextState(contextService, toolService, toolState, languageService) {
1215
+ var _this = this;
1216
+ this.contextService = contextService;
1217
+ this.toolService = toolService;
1218
+ this.toolState = toolState;
1219
+ this.languageService = languageService;
1220
+ /**
1221
+ * Observable of the active context
1222
+ */
1223
+ this.context$ = new rxjs.BehaviorSubject(undefined);
1224
+ this.contextService.context$.subscribe(function (context) {
1225
+ _this.onContextChange(context);
1226
+ });
1227
+ this.contextService.toolsChanged$.subscribe(function (context) {
1228
+ _this.updateTools(context);
1229
+ });
1230
+ }
1231
+ /**
1232
+ * Set the active context
1233
+ * @param context Detailed context
1234
+ */
1235
+ ContextState.prototype.setContext = function (context) {
1236
+ this.updateTools(context);
1237
+ this.context$.next(context);
1238
+ };
1239
+ /**
1240
+ * Update the tool state with the context's tools
1241
+ * @param context Detailed context
1242
+ */
1243
+ ContextState.prototype.updateTools = function (context) {
1244
+ var _this = this;
1245
+ var toolbox = this.toolState.toolbox;
1246
+ var tools = [];
1247
+ var contextTools = context.tools || [];
1248
+ contextTools.forEach(function (contextTool) {
1249
+ var baseTool = _this.toolService.getTool(contextTool.name);
1250
+ if (baseTool === undefined) {
1251
+ return;
1252
+ }
1253
+ var options = Object.assign({}, baseTool.options || {}, contextTool.options || {});
1254
+ var tool = Object.assign({}, baseTool, contextTool, { options: options });
1255
+ tools.push(tool);
1256
+ });
1257
+ tools.forEach(function (tool) {
1258
+ if (tool.parent) {
1259
+ var parentIndex = tools.findIndex(function (el) { return el.name === tool.parent; });
1260
+ if (parentIndex !== -1) {
1261
+ tools[parentIndex].children = [];
1262
+ tools[parentIndex].children.push(tool.name);
1263
+ }
1264
+ }
1265
+ });
1266
+ toolbox.setTools(tools);
1267
+ toolbox.setToolbar(context.toolbar || []);
1268
+ // TODO: This is a patch so the context service can work without
1269
+ // injecting the ToolState or without being completely refactored
1270
+ this.contextService.setTools([].concat(tools));
1271
+ this.contextService.setToolbar(context.toolbar || []);
1272
+ };
1273
+ /**
1274
+ * Set a new context and update the tool state
1275
+ * @param context Detailed context
1276
+ */
1277
+ ContextState.prototype.onContextChange = function (context) {
1278
+ if (context === undefined) {
1279
+ return;
1280
+ }
1281
+ this.setContext(context);
1282
+ };
1283
+ return ContextState;
1284
+ }());
1285
+ ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0__namespace.ɵɵinject(i1__namespace.ContextService), i0__namespace.ɵɵinject(i4__namespace.ToolService), i0__namespace.ɵɵinject(ToolState), i0__namespace.ɵɵinject(i2__namespace.LanguageService)); };
1286
+ ContextState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
1287
+ (function () {
1288
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ContextState, [{
1289
+ type: i0.Injectable,
1290
+ args: [{
1291
+ providedIn: 'root'
1292
+ }]
1293
+ }], function () { return [{ type: i1__namespace.ContextService }, { type: i4__namespace.ToolService }, { type: ToolState }, { type: i2__namespace.LanguageService }]; }, null);
1294
+ })();
1295
+
1206
1296
  exports.DirectionsToolComponent = /** @class */ (function () {
1207
- function DirectionsToolComponent(directionState, mapState, languageService, messageService, storageService) {
1297
+ function DirectionsToolComponent(directionState, mapState, languageService, messageService, storageService, contextState, authService) {
1208
1298
  this.directionState = directionState;
1209
1299
  this.mapState = mapState;
1210
1300
  this.languageService = languageService;
1211
1301
  this.messageService = messageService;
1212
1302
  this.storageService = storageService;
1303
+ this.contextState = contextState;
1304
+ this.authService = authService;
1213
1305
  }
1214
1306
  Object.defineProperty(DirectionsToolComponent.prototype, "stopsStore", {
1215
1307
  /**
@@ -1271,28 +1363,34 @@
1271
1363
  configurable: true
1272
1364
  });
1273
1365
  DirectionsToolComponent.prototype.ngOnInit = function () {
1366
+ var _this = this;
1274
1367
  var warningShown = this.storageService.get('direction.warning.shown');
1275
1368
  if (!warningShown) {
1276
1369
  var translate = this.languageService.translate;
1277
1370
  var title = translate.instant('igo.integration.directions.warning.title');
1278
1371
  var msg = translate.instant('igo.integration.directions.warning.message');
1279
1372
  this.messageService.info(msg, title, { timeOut: 20000 });
1280
- this.storageService.set('direction.warning.shown', true, i2$2.StorageScope.SESSION);
1373
+ this.storageService.set('direction.warning.shown', true, i2.StorageScope.SESSION);
1281
1374
  }
1375
+ this.contextState.context$.subscribe(function (c) {
1376
+ if (!_this.authService.authenticated) {
1377
+ _this.currentContextUri = c.uri;
1378
+ }
1379
+ });
1282
1380
  };
1283
1381
  return DirectionsToolComponent;
1284
1382
  }());
1285
- exports.DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || exports.DirectionsToolComponent)(i0__namespace.ɵɵdirectiveInject(DirectionState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.LanguageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.StorageService)); };
1286
- exports.DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars: 6, consts: [[3, "debounceTime", "stopsStore", "stopsFeatureStore", "stepFeatureStore", "routesFeatureStore", "zoomToActiveRoute$"]], template: function DirectionsToolComponent_Template(rf, ctx) {
1383
+ exports.DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || exports.DirectionsToolComponent)(i0__namespace.ɵɵdirectiveInject(DirectionState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(i2__namespace.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace.StorageService), i0__namespace.ɵɵdirectiveInject(ContextState), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.AuthService)); };
1384
+ exports.DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars: 7, consts: [[3, "contextUri", "debounceTime", "stopsStore", "stopsFeatureStore", "stepFeatureStore", "routesFeatureStore", "zoomToActiveRoute$"]], template: function DirectionsToolComponent_Template(rf, ctx) {
1287
1385
  if (rf & 1) {
1288
1386
  i0__namespace.ɵɵelement(0, "igo-directions", 0);
1289
1387
  }
1290
1388
  if (rf & 2) {
1291
- i0__namespace.ɵɵproperty("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
1389
+ i0__namespace.ɵɵproperty("contextUri", ctx.currentContextUri)("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
1292
1390
  }
1293
- }, directives: [i1__namespace.DirectionsComponent], encapsulation: 2 });
1391
+ }, directives: [i1__namespace$1.DirectionsComponent], encapsulation: 2 });
1294
1392
  exports.DirectionsToolComponent = __decorate([
1295
- i7.ToolComponent({
1393
+ i4.ToolComponent({
1296
1394
  name: 'directions',
1297
1395
  title: 'igo.integration.tools.directions',
1298
1396
  icon: 'directions'
@@ -1305,7 +1403,7 @@
1305
1403
  selector: 'igo-directions-tool',
1306
1404
  templateUrl: './directions-tool.component.html'
1307
1405
  }]
1308
- }], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2__namespace$2.LanguageService }, { type: i2__namespace$2.MessageService }, { type: i2__namespace$2.StorageService }]; }, null);
1406
+ }], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2__namespace.LanguageService }, { type: i2__namespace.MessageService }, { type: i2__namespace.StorageService }, { type: ContextState }, { type: i2__namespace$1.AuthService }]; }, null);
1309
1407
  })();
1310
1408
 
1311
1409
  var IgoAppDirectionsModule = /** @class */ (function () {
@@ -1321,19 +1419,19 @@
1321
1419
  }());
1322
1420
  IgoAppDirectionsModule.ɵfac = function IgoAppDirectionsModule_Factory(t) { return new (t || IgoAppDirectionsModule)(); };
1323
1421
  IgoAppDirectionsModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppDirectionsModule });
1324
- IgoAppDirectionsModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoDirectionsModule]] });
1422
+ IgoAppDirectionsModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoDirectionsModule]] });
1325
1423
  (function () {
1326
1424
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppDirectionsModule, [{
1327
1425
  type: i0.NgModule,
1328
1426
  args: [{
1329
- imports: [i1.IgoDirectionsModule],
1427
+ imports: [i1$1.IgoDirectionsModule],
1330
1428
  declarations: [exports.DirectionsToolComponent],
1331
1429
  exports: [exports.DirectionsToolComponent],
1332
1430
  schemas: [i0.CUSTOM_ELEMENTS_SCHEMA]
1333
1431
  }]
1334
1432
  }], null, null);
1335
1433
  })();
1336
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppDirectionsModule, { declarations: [exports.DirectionsToolComponent], imports: [i1.IgoDirectionsModule], exports: [exports.DirectionsToolComponent] }); })();
1434
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppDirectionsModule, { declarations: [exports.DirectionsToolComponent], imports: [i1$1.IgoDirectionsModule], exports: [exports.DirectionsToolComponent] }); })();
1337
1435
 
1338
1436
  /**
1339
1437
  * Service that holds the state of the measure module
@@ -1345,7 +1443,7 @@
1345
1443
  /**
1346
1444
  * Store that holds the measures
1347
1445
  */
1348
- this.store = new i1.FeatureStore([], {
1446
+ this.store = new i1$1.FeatureStore([], {
1349
1447
  map: this.mapState.map
1350
1448
  });
1351
1449
  this.mapState.map.layers$.subscribe(function () {
@@ -1403,9 +1501,9 @@
1403
1501
  if (rf & 2) {
1404
1502
  i0__namespace.ɵɵproperty("store", ctx.store)("map", ctx.map);
1405
1503
  }
1406
- }, directives: [i1__namespace.DrawComponent], encapsulation: 2, changeDetection: 0 });
1504
+ }, directives: [i1__namespace$1.DrawComponent], encapsulation: 2, changeDetection: 0 });
1407
1505
  exports.DrawingToolComponent = __decorate([
1408
- i7.ToolComponent({
1506
+ i4.ToolComponent({
1409
1507
  name: 'draw',
1410
1508
  title: 'igo.integration.tools.draw',
1411
1509
  icon: 'draw'
@@ -1429,12 +1527,12 @@
1429
1527
  }());
1430
1528
  IgoAppDrawModule.ɵfac = function IgoAppDrawModule_Factory(t) { return new (t || IgoAppDrawModule)(); };
1431
1529
  IgoAppDrawModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppDrawModule });
1432
- IgoAppDrawModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoDrawingToolModule]] });
1530
+ IgoAppDrawModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoDrawingToolModule]] });
1433
1531
  (function () {
1434
1532
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppDrawModule, [{
1435
1533
  type: i0.NgModule,
1436
1534
  args: [{
1437
- imports: [i1.IgoDrawingToolModule],
1535
+ imports: [i1$1.IgoDrawingToolModule],
1438
1536
  declarations: [exports.DrawingToolComponent],
1439
1537
  exports: [
1440
1538
  exports.DrawingToolComponent
@@ -1442,12 +1540,12 @@
1442
1540
  }]
1443
1541
  }], null, null);
1444
1542
  })();
1445
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppDrawModule, { declarations: [exports.DrawingToolComponent], imports: [i1.IgoDrawingToolModule], exports: [exports.DrawingToolComponent] }); })();
1543
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppDrawModule, { declarations: [exports.DrawingToolComponent], imports: [i1$1.IgoDrawingToolModule], exports: [exports.DrawingToolComponent] }); })();
1446
1544
 
1447
1545
  function handleZoomAuto(workspace, storageService) {
1448
1546
  var zoomStrategy = workspace.entityStore
1449
- .getStrategyOfType(i1.FeatureStoreSelectionStrategy);
1450
- zoomStrategy.setMotion(storageService.get('zoomAuto') ? i1.FeatureMotion.Default : i1.FeatureMotion.None);
1547
+ .getStrategyOfType(i1$1.FeatureStoreSelectionStrategy);
1548
+ zoomStrategy.setMotion(storageService.get('zoomAuto') ? i1$1.FeatureMotion.Default : i1$1.FeatureMotion.None);
1451
1549
  }
1452
1550
 
1453
1551
  /**
@@ -1466,7 +1564,7 @@
1466
1564
  });
1467
1565
  return StorageState;
1468
1566
  }());
1469
- StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0__namespace.ɵɵinject(i2__namespace$2.StorageService)); };
1567
+ StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0__namespace.ɵɵinject(i2__namespace.StorageService)); };
1470
1568
  StorageState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: StorageState, factory: StorageState.ɵfac, providedIn: 'root' });
1471
1569
  (function () {
1472
1570
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(StorageState, [{
@@ -1474,7 +1572,7 @@
1474
1572
  args: [{
1475
1573
  providedIn: 'root'
1476
1574
  }]
1477
- }], function () { return [{ type: i2__namespace$2.StorageService }]; }, null);
1575
+ }], function () { return [{ type: i2__namespace.StorageService }]; }, null);
1478
1576
  })();
1479
1577
 
1480
1578
  var FeatureActionsService = /** @class */ (function () {
@@ -1513,7 +1611,7 @@
1513
1611
  var _this = this;
1514
1612
  this.zoomAuto$.next(this.zoomAuto);
1515
1613
  this.storageChange$$ = this.storageService.storageChange$
1516
- .pipe(operators.skipWhile(function (storageChange) { return storageChange.key !== 'zoomAuto' || storageChange.event === i2$2.StorageServiceEventEnum.CLEARED; }))
1614
+ .pipe(operators.skipWhile(function (storageChange) { return storageChange.key !== 'zoomAuto' || storageChange.event === i2.StorageServiceEventEnum.CLEARED; }))
1517
1615
  .subscribe(function () {
1518
1616
  _this.zoomAuto$.next(_this.zoomAuto);
1519
1617
  handleZoomAuto(workspace, _this.storageService);
@@ -1534,7 +1632,7 @@
1534
1632
  id: 'filterInMapExtent',
1535
1633
  checkbox: true,
1536
1634
  title: 'igo.integration.workspace.inMapExtent.title',
1537
- tooltip: i1.mapExtentStrategyActiveToolTip(workspace),
1635
+ tooltip: i1$1.mapExtentStrategyActiveToolTip(workspace),
1538
1636
  checkCondition: rowsInMapExtentCheckCondition$,
1539
1637
  handler: function () { return rowsInMapExtentCheckCondition$.next(!rowsInMapExtentCheckCondition$.value); }
1540
1638
  },
@@ -1557,7 +1655,7 @@
1557
1655
  });
1558
1656
  },
1559
1657
  args: [workspace],
1560
- availability: function (ws) { return i1.noElementSelected(ws); }
1658
+ availability: function (ws) { return i1$1.noElementSelected(ws); }
1561
1659
  },
1562
1660
  {
1563
1661
  id: 'featureDownload',
@@ -1565,8 +1663,8 @@
1565
1663
  title: 'igo.integration.workspace.download.title',
1566
1664
  tooltip: 'igo.integration.workspace.download.tooltip',
1567
1665
  handler: function (ws) {
1568
- var filterStrategy = ws.entityStore.getStrategyOfType(i7.EntityStoreFilterCustomFuncStrategy);
1569
- var filterSelectionStrategy = ws.entityStore.getStrategyOfType(i7.EntityStoreFilterSelectionStrategy);
1666
+ var filterStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
1667
+ var filterSelectionStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterSelectionStrategy);
1570
1668
  var layersWithSelection = filterSelectionStrategy.active
1571
1669
  ? [ws.layer.id]
1572
1670
  : [];
@@ -1611,7 +1709,7 @@
1611
1709
  };
1612
1710
  return FeatureActionsService;
1613
1711
  }());
1614
- FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace$2.LanguageService), i0__namespace.ɵɵinject(ToolState), i0__namespace.ɵɵinject(i2__namespace$2.MediaService)); };
1712
+ FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace.LanguageService), i0__namespace.ɵɵinject(ToolState), i0__namespace.ɵɵinject(i2__namespace.MediaService)); };
1615
1713
  FeatureActionsService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: FeatureActionsService, factory: FeatureActionsService.ɵfac, providedIn: 'root' });
1616
1714
  (function () {
1617
1715
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FeatureActionsService, [{
@@ -1619,7 +1717,7 @@
1619
1717
  args: [{
1620
1718
  providedIn: 'root'
1621
1719
  }]
1622
- }], function () { return [{ type: StorageState }, { type: i2__namespace$2.LanguageService }, { type: ToolState }, { type: i2__namespace$2.MediaService }]; }, null);
1720
+ }], function () { return [{ type: StorageState }, { type: i2__namespace.LanguageService }, { type: ToolState }, { type: i2__namespace.MediaService }]; }, null);
1623
1721
  })();
1624
1722
 
1625
1723
  var WfsActionsService = /** @class */ (function () {
@@ -1662,7 +1760,7 @@
1662
1760
  var _a, _b;
1663
1761
  this.zoomAuto$.next(this.zoomAuto);
1664
1762
  this.storageChange$$ = this.storageService.storageChange$
1665
- .pipe(operators.skipWhile(function (storageChange) { return storageChange.key !== 'zoomAuto' || storageChange.event === i2$2.StorageServiceEventEnum.CLEARED; }))
1763
+ .pipe(operators.skipWhile(function (storageChange) { return (storageChange === null || storageChange === void 0 ? void 0 : storageChange.key) !== 'zoomAuto' || (storageChange === null || storageChange === void 0 ? void 0 : storageChange.event) === i2.StorageServiceEventEnum.CLEARED; }))
1666
1764
  .subscribe(function () {
1667
1765
  _this.zoomAuto$.next(_this.zoomAuto);
1668
1766
  handleZoomAuto(workspace, _this.storageService);
@@ -1683,7 +1781,7 @@
1683
1781
  id: 'filterInMapExtent',
1684
1782
  checkbox: true,
1685
1783
  title: 'igo.integration.workspace.inMapExtent.title',
1686
- tooltip: i1.mapExtentStrategyActiveToolTip(workspace),
1784
+ tooltip: i1$1.mapExtentStrategyActiveToolTip(workspace),
1687
1785
  checkCondition: rowsInMapExtentCheckCondition$,
1688
1786
  handler: function () { return rowsInMapExtentCheckCondition$.next(!rowsInMapExtentCheckCondition$.value); }
1689
1787
  },
@@ -1704,7 +1802,7 @@
1704
1802
  ws.entityStore.state.updateMany(ws.entityStore.view.all(), { selected: false });
1705
1803
  },
1706
1804
  args: [workspace],
1707
- availability: function (ws) { return i1.noElementSelected(ws); }
1805
+ availability: function (ws) { return i1$1.noElementSelected(ws); }
1708
1806
  },
1709
1807
  {
1710
1808
  id: 'wfsDownload',
@@ -1712,8 +1810,8 @@
1712
1810
  title: 'igo.integration.workspace.download.title',
1713
1811
  tooltip: 'igo.integration.workspace.download.tooltip',
1714
1812
  handler: function (ws) {
1715
- var filterStrategy = ws.entityStore.getStrategyOfType(i7.EntityStoreFilterCustomFuncStrategy);
1716
- var filterSelectionStrategy = ws.entityStore.getStrategyOfType(i7.EntityStoreFilterSelectionStrategy);
1813
+ var filterStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
1814
+ var filterSelectionStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterSelectionStrategy);
1717
1815
  var layersWithSelection = filterSelectionStrategy.active ? [ws.layer.id] : [];
1718
1816
  _this.toolState.toolToActivateFromOptions({
1719
1817
  tool: 'importExport',
@@ -1767,7 +1865,7 @@
1767
1865
  };
1768
1866
  return WfsActionsService;
1769
1867
  }());
1770
- WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0__namespace.ɵɵinject(i1.OgcFilterWidget), i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace$2.LanguageService), i0__namespace.ɵɵinject(i2__namespace$2.MediaService), i0__namespace.ɵɵinject(ToolState)); };
1868
+ WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0__namespace.ɵɵinject(i1$1.OgcFilterWidget), i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace.LanguageService), i0__namespace.ɵɵinject(i2__namespace.MediaService), i0__namespace.ɵɵinject(ToolState)); };
1771
1869
  WfsActionsService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: WfsActionsService, factory: WfsActionsService.ɵfac, providedIn: 'root' });
1772
1870
  (function () {
1773
1871
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WfsActionsService, [{
@@ -1776,10 +1874,169 @@
1776
1874
  providedIn: 'root'
1777
1875
  }]
1778
1876
  }], function () {
1779
- return [{ type: i7__namespace.Widget, decorators: [{
1877
+ return [{ type: i4__namespace.Widget, decorators: [{
1878
+ type: i0.Inject,
1879
+ args: [i1$1.OgcFilterWidget]
1880
+ }] }, { type: StorageState }, { type: i2__namespace.LanguageService }, { type: i2__namespace.MediaService }, { type: ToolState }];
1881
+ }, null);
1882
+ })();
1883
+
1884
+ var EditionActionsService = /** @class */ (function () {
1885
+ function EditionActionsService(ogcFilterWidget, storageState, languageService, mediaService, toolState) {
1886
+ this.ogcFilterWidget = ogcFilterWidget;
1887
+ this.storageState = storageState;
1888
+ this.languageService = languageService;
1889
+ this.mediaService = mediaService;
1890
+ this.toolState = toolState;
1891
+ this.maximize$ = new rxjs.BehaviorSubject(this.storageService.get('workspaceMaximize'));
1892
+ this.zoomAuto$ = new rxjs.BehaviorSubject(false);
1893
+ }
1894
+ Object.defineProperty(EditionActionsService.prototype, "storageService", {
1895
+ get: function () {
1896
+ return this.storageState.storageService;
1897
+ },
1898
+ enumerable: false,
1899
+ configurable: true
1900
+ });
1901
+ Object.defineProperty(EditionActionsService.prototype, "zoomAuto", {
1902
+ get: function () {
1903
+ return this.storageService.get('zoomAuto');
1904
+ },
1905
+ enumerable: false,
1906
+ configurable: true
1907
+ });
1908
+ EditionActionsService.prototype.ngOnDestroy = function () {
1909
+ if (this.storageChange$$) {
1910
+ this.storageChange$$.unsubscribe();
1911
+ }
1912
+ };
1913
+ EditionActionsService.prototype.loadActions = function (workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
1914
+ var actions = this.buildActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$);
1915
+ workspace.actionStore.load(actions);
1916
+ };
1917
+ EditionActionsService.prototype.buildActions = function (workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
1918
+ var _this = this;
1919
+ var _a, _b;
1920
+ this.zoomAuto$.next(this.zoomAuto);
1921
+ this.storageChange$$ = this.storageService.storageChange$
1922
+ .pipe(operators.skipWhile(function (storageChange) { return (storageChange === null || storageChange === void 0 ? void 0 : storageChange.key) !== 'zoomAuto' || (storageChange === null || storageChange === void 0 ? void 0 : storageChange.event) === i2.StorageServiceEventEnum.CLEARED; }))
1923
+ .subscribe(function () {
1924
+ _this.zoomAuto$.next(_this.zoomAuto);
1925
+ handleZoomAuto(workspace, _this.storageService);
1926
+ });
1927
+ var actions = [
1928
+ {
1929
+ id: 'zoomAuto',
1930
+ checkbox: true,
1931
+ title: 'igo.integration.workspace.zoomAuto.title',
1932
+ tooltip: 'igo.integration.workspace.zoomAuto.tooltip',
1933
+ checkCondition: this.zoomAuto$,
1934
+ handler: function () {
1935
+ handleZoomAuto(workspace, _this.storageService);
1936
+ _this.storageService.set('zoomAuto', !_this.storageService.get('zoomAuto'));
1937
+ }
1938
+ },
1939
+ {
1940
+ id: 'filterInMapExtent',
1941
+ checkbox: true,
1942
+ title: 'igo.integration.workspace.inMapExtent.title',
1943
+ tooltip: i1$1.mapExtentStrategyActiveToolTip(workspace),
1944
+ checkCondition: rowsInMapExtentCheckCondition$,
1945
+ handler: function () { return rowsInMapExtentCheckCondition$.next(!rowsInMapExtentCheckCondition$.value); }
1946
+ },
1947
+ {
1948
+ id: 'selectedOnly',
1949
+ checkbox: true,
1950
+ title: 'igo.integration.workspace.selected.title',
1951
+ tooltip: 'igo.integration.workspace.selected.title',
1952
+ checkCondition: selectOnlyCheckCondition$,
1953
+ handler: function () { return selectOnlyCheckCondition$.next(!selectOnlyCheckCondition$.value); }
1954
+ },
1955
+ {
1956
+ id: 'clearselection',
1957
+ icon: 'select-off',
1958
+ title: 'igo.integration.workspace.clearSelection.title',
1959
+ tooltip: 'igo.integration.workspace.clearSelection.tooltip',
1960
+ handler: function (ws) {
1961
+ ws.entityStore.state.updateMany(ws.entityStore.view.all(), { selected: false });
1962
+ },
1963
+ args: [workspace],
1964
+ availability: function (ws) { return i1$1.noElementSelected(ws); }
1965
+ },
1966
+ {
1967
+ id: 'wfsDownload',
1968
+ icon: 'file-export',
1969
+ title: 'igo.integration.workspace.download.title',
1970
+ tooltip: 'igo.integration.workspace.download.tooltip',
1971
+ handler: function (ws) {
1972
+ var filterStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
1973
+ var filterSelectionStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterSelectionStrategy);
1974
+ var layersWithSelection = filterSelectionStrategy.active ? [ws.layer.id] : [];
1975
+ _this.toolState.toolToActivateFromOptions({
1976
+ tool: 'importExport',
1977
+ options: { layers: [ws.layer.id], featureInMapExtent: filterStrategy.active, layersWithSelection: layersWithSelection }
1978
+ });
1979
+ },
1980
+ args: [workspace]
1981
+ },
1982
+ {
1983
+ id: 'ogcFilter',
1984
+ icon: 'filter',
1985
+ title: 'igo.integration.workspace.ogcFilter.title',
1986
+ tooltip: 'igo.integration.workspace.ogcFilter.tooltip',
1987
+ handler: function (widget, ws) {
1988
+ ws.activateWidget(widget, {
1989
+ map: ws.map,
1990
+ layer: ws.layer
1991
+ });
1992
+ },
1993
+ args: [this.ogcFilterWidget, workspace]
1994
+ },
1995
+ {
1996
+ id: 'maximize',
1997
+ title: this.languageService.translate.instant('igo.integration.workspace.maximize'),
1998
+ tooltip: this.languageService.translate.instant('igo.integration.workspace.maximizeTooltip'),
1999
+ icon: 'resize',
2000
+ display: function () {
2001
+ return _this.maximize$.pipe(operators.map(function (v) { return !v && !_this.mediaService.isMobile(); }));
2002
+ },
2003
+ handler: function () {
2004
+ if (!_this.mediaService.isMobile()) {
2005
+ _this.maximize$.next(true);
2006
+ }
2007
+ },
2008
+ },
2009
+ {
2010
+ id: 'standardExtent',
2011
+ title: this.languageService.translate.instant('igo.integration.workspace.standardExtent'),
2012
+ tooltip: this.languageService.translate.instant('igo.integration.workspace.standardExtentTooltip'),
2013
+ icon: 'resize',
2014
+ display: function () {
2015
+ return _this.maximize$.pipe(operators.map(function (v) { return v && !_this.mediaService.isMobile(); }));
2016
+ },
2017
+ handler: function () {
2018
+ _this.maximize$.next(false);
2019
+ }
2020
+ }
2021
+ ];
2022
+ return ((_b = (_a = workspace.layer.dataSource.ogcFilters$) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.enabled) ?
2023
+ actions : actions.filter(function (action) { return action.id !== 'ogcFilter'; });
2024
+ };
2025
+ return EditionActionsService;
2026
+ }());
2027
+ EditionActionsService.ɵfac = function EditionActionsService_Factory(t) { return new (t || EditionActionsService)(i0__namespace.ɵɵinject(i1$1.OgcFilterWidget), i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace.LanguageService), i0__namespace.ɵɵinject(i2__namespace.MediaService), i0__namespace.ɵɵinject(ToolState)); };
2028
+ EditionActionsService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: EditionActionsService, factory: EditionActionsService.ɵfac, providedIn: 'root' });
2029
+ (function () {
2030
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EditionActionsService, [{
2031
+ type: i0.Injectable,
2032
+ args: [{
2033
+ providedIn: 'root'
2034
+ }]
2035
+ }], function () {
2036
+ return [{ type: i4__namespace.Widget, decorators: [{
1780
2037
  type: i0.Inject,
1781
- args: [i1.OgcFilterWidget]
1782
- }] }, { type: StorageState }, { type: i2__namespace$2.LanguageService }, { type: i2__namespace$2.MediaService }, { type: ToolState }];
2038
+ args: [i1$1.OgcFilterWidget]
2039
+ }] }, { type: StorageState }, { type: i2__namespace.LanguageService }, { type: i2__namespace.MediaService }, { type: ToolState }];
1783
2040
  }, null);
1784
2041
  })();
1785
2042
 
@@ -1787,9 +2044,10 @@
1787
2044
  * Service that holds the state of the workspace module
1788
2045
  */
1789
2046
  var WorkspaceState = /** @class */ (function () {
1790
- function WorkspaceState(featureActionsService, wfsActionsService, storageService) {
2047
+ function WorkspaceState(featureActionsService, wfsActionsService, editionActionsService, storageService) {
1791
2048
  this.featureActionsService = featureActionsService;
1792
2049
  this.wfsActionsService = wfsActionsService;
2050
+ this.editionActionsService = editionActionsService;
1793
2051
  this.storageService = storageService;
1794
2052
  this.workspacePanelExpanded = false;
1795
2053
  this.workspaceEnabled$ = new rxjs.BehaviorSubject(false);
@@ -1813,30 +2071,59 @@
1813
2071
  enumerable: false,
1814
2072
  configurable: true
1815
2073
  });
1816
- /**
1817
- * Initialize the workspace store. Each time a workspace is activated,
1818
- * subscribe to it's active widget. Tracking the active widget is useful
1819
- * to make sure only one widget is active at a time.
1820
- */
1821
- WorkspaceState.prototype.initWorkspaces = function () {
1822
- var _this = this;
1823
- this._store = new i7.WorkspaceStore([]);
1824
- this._store.stateView
1825
- .firstBy$(function (record) { return record.state.active === true; })
1826
- .subscribe(function (record) {
1827
- var workspace = record ? record.entity : undefined;
1828
- _this.workspace$.next(workspace);
1829
- });
2074
+ Object.defineProperty(WorkspaceState.prototype, "workspaceSelection", {
2075
+ get: function () {
2076
+ var _a;
2077
+ if (this.workspace$.value) {
2078
+ return (_a = this.workspace$.value) === null || _a === void 0 ? void 0 : _a.entityStore.stateView.manyBy(function (r) { return r.state.selected === true; });
2079
+ }
2080
+ else {
2081
+ return [];
2082
+ }
2083
+ },
2084
+ enumerable: false,
2085
+ configurable: true
2086
+ });
2087
+ Object.defineProperty(WorkspaceState.prototype, "workspaceSelection$", {
2088
+ get: function () {
2089
+ var _a, _b;
2090
+ if (this.workspace$.value) {
2091
+ return (_b = (_a = this.workspace$.value) === null || _a === void 0 ? void 0 : _a.entityStore) === null || _b === void 0 ? void 0 : _b.stateView.manyBy$(function (r) { return r.state.selected === true; });
2092
+ }
2093
+ else {
2094
+ return rxjs.of([]);
2095
+ }
2096
+ },
2097
+ enumerable: false,
2098
+ configurable: true
2099
+ });
2100
+ /**
2101
+ * Initialize the workspace store. Each time a workspace is activated,
2102
+ * subscribe to it's active widget. Tracking the active widget is useful
2103
+ * to make sure only one widget is active at a time.
2104
+ */
2105
+ WorkspaceState.prototype.initWorkspaces = function () {
2106
+ var _this = this;
2107
+ this._store = new i4.WorkspaceStore([]);
2108
+ this._store.stateView
2109
+ .firstBy$(function (record) { return record.state.active === true; })
2110
+ .subscribe(function (record) {
2111
+ var workspace = record ? record.entity : undefined;
2112
+ _this.workspace$.next(workspace);
2113
+ });
1830
2114
  this._store.stateView.all$()
1831
2115
  .subscribe(function (workspaces) {
1832
2116
  workspaces.map(function (wks) {
1833
2117
  if (wks.entity.actionStore.empty) {
1834
- if (wks.entity instanceof i1.WfsWorkspace) {
2118
+ if (wks.entity instanceof i1$1.WfsWorkspace) {
1835
2119
  _this.wfsActionsService.loadActions(wks.entity, _this.rowsInMapExtentCheckCondition$, _this.selectOnlyCheckCondition$);
1836
2120
  }
1837
- else if (wks.entity instanceof i1.FeatureWorkspace) {
2121
+ else if (wks.entity instanceof i1$1.FeatureWorkspace) {
1838
2122
  _this.featureActionsService.loadActions(wks.entity, _this.rowsInMapExtentCheckCondition$, _this.selectOnlyCheckCondition$);
1839
2123
  }
2124
+ else if (wks.entity instanceof i1$1.EditionWorkspace) {
2125
+ _this.editionActionsService.loadActions(wks.entity, _this.rowsInMapExtentCheckCondition$, _this.selectOnlyCheckCondition$);
2126
+ }
1840
2127
  }
1841
2128
  });
1842
2129
  });
@@ -1846,6 +2133,9 @@
1846
2133
  this.actionMaximize$$.push(this.wfsActionsService.maximize$.subscribe(function (maximized) {
1847
2134
  _this.setWorkspaceIsMaximized(maximized);
1848
2135
  }));
2136
+ this.actionMaximize$$.push(this.editionActionsService.maximize$.subscribe(function (maximized) {
2137
+ _this.setWorkspaceIsMaximized(maximized);
2138
+ }));
1849
2139
  this.activeWorkspace$$ = this.workspace$
1850
2140
  .subscribe(function (workspace) {
1851
2141
  if (_this.activeWorkspaceWidget$$ !== undefined) {
@@ -1860,7 +2150,7 @@
1860
2150
  this.rowsInMapExtentCheckCondition$$ = this.rowsInMapExtentCheckCondition$.subscribe(function (rowsInMapExtent) {
1861
2151
  _this._store.stateView.all().map(function (wks) {
1862
2152
  if (!wks.entity.actionStore.empty) {
1863
- var filterStrategy = wks.entity.entityStore.getStrategyOfType(i7.EntityStoreFilterCustomFuncStrategy);
2153
+ var filterStrategy = wks.entity.entityStore.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
1864
2154
  if (filterStrategy) {
1865
2155
  if (rowsInMapExtent) {
1866
2156
  filterStrategy.activate();
@@ -1875,7 +2165,7 @@
1875
2165
  this.selectOnlyCheckCondition$$ = this.selectOnlyCheckCondition$.subscribe(function (selectOnly) {
1876
2166
  _this._store.stateView.all().map(function (wks) {
1877
2167
  if (!wks.entity.actionStore.empty) {
1878
- var filterStrategy = wks.entity.entityStore.getStrategyOfType(i7.EntityStoreFilterSelectionStrategy);
2168
+ var filterStrategy = wks.entity.entityStore.getStrategyOfType(i4.EntityStoreFilterSelectionStrategy);
1879
2169
  if (filterStrategy) {
1880
2170
  if (selectOnly) {
1881
2171
  filterStrategy.activate();
@@ -1900,6 +2190,14 @@
1900
2190
  this.store.activateWorkspace(wksFromId);
1901
2191
  }
1902
2192
  };
2193
+ WorkspaceState.prototype.setActiveWorkspaceByTitle = function (title) {
2194
+ var wksFromTitle = this.store
2195
+ .all()
2196
+ .find(function (workspace) { return workspace.title === title; });
2197
+ if (wksFromTitle) {
2198
+ this.store.activateWorkspace(wksFromTitle);
2199
+ }
2200
+ };
1903
2201
  /**
1904
2202
  * Teardown all the workspaces
1905
2203
  * @internal
@@ -1928,7 +2226,7 @@
1928
2226
  };
1929
2227
  return WorkspaceState;
1930
2228
  }());
1931
- WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0__namespace.ɵɵinject(FeatureActionsService), i0__namespace.ɵɵinject(WfsActionsService), i0__namespace.ɵɵinject(i2__namespace$2.StorageService)); };
2229
+ WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0__namespace.ɵɵinject(FeatureActionsService), i0__namespace.ɵɵinject(WfsActionsService), i0__namespace.ɵɵinject(EditionActionsService), i0__namespace.ɵɵinject(i2__namespace.StorageService)); };
1932
2230
  WorkspaceState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: WorkspaceState, factory: WorkspaceState.ɵfac, providedIn: 'root' });
1933
2231
  (function () {
1934
2232
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WorkspaceState, [{
@@ -1936,7 +2234,7 @@
1936
2234
  args: [{
1937
2235
  providedIn: 'root'
1938
2236
  }]
1939
- }], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: i2__namespace$2.StorageService }]; }, null);
2237
+ }], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: EditionActionsService }, { type: i2__namespace.StorageService }]; }, null);
1940
2238
  })();
1941
2239
 
1942
2240
  function WorkspaceButtonComponent_button_0_Template(rf, ctx) {
@@ -2001,7 +2299,7 @@
2001
2299
  if (rf & 2) {
2002
2300
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.hasWorkspace$));
2003
2301
  }
2004
- }, directives: [i4__namespace.NgIf, i3__namespace.MatButton, i4__namespace$1.MatTooltip, i6__namespace.MatIcon], pipes: [i4__namespace.AsyncPipe, i8__namespace.TranslatePipe], styles: [""], changeDetection: 0 });
2302
+ }, directives: [i5__namespace.NgIf, i3__namespace.MatButton, i4__namespace$1.MatTooltip, i6__namespace.MatIcon], pipes: [i5__namespace.AsyncPipe, i8__namespace.TranslatePipe], styles: [""], changeDetection: 0 });
2005
2303
  (function () {
2006
2304
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WorkspaceButtonComponent, [{
2007
2305
  type: i0.Component,
@@ -2026,22 +2324,22 @@
2026
2324
  IgoAppWorkspaceModule.ɵfac = function IgoAppWorkspaceModule_Factory(t) { return new (t || IgoAppWorkspaceModule)(); };
2027
2325
  IgoAppWorkspaceModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppWorkspaceModule });
2028
2326
  IgoAppWorkspaceModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
2029
- i4.CommonModule,
2327
+ i5.CommonModule,
2030
2328
  i6.MatIconModule,
2031
2329
  i3.MatButtonModule,
2032
2330
  i4$1.MatTooltipModule,
2033
- i2$2.IgoLanguageModule
2331
+ i2.IgoLanguageModule
2034
2332
  ]] });
2035
2333
  (function () {
2036
2334
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppWorkspaceModule, [{
2037
2335
  type: i0.NgModule,
2038
2336
  args: [{
2039
2337
  imports: [
2040
- i4.CommonModule,
2338
+ i5.CommonModule,
2041
2339
  i6.MatIconModule,
2042
2340
  i3.MatButtonModule,
2043
2341
  i4$1.MatTooltipModule,
2044
- i2$2.IgoLanguageModule
2342
+ i2.IgoLanguageModule
2045
2343
  ],
2046
2344
  declarations: [WorkspaceButtonComponent],
2047
2345
  exports: [WorkspaceButtonComponent]
@@ -2049,11 +2347,11 @@
2049
2347
  }], null, null);
2050
2348
  })();
2051
2349
  (function () {
2052
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppWorkspaceModule, { declarations: [WorkspaceButtonComponent], imports: [i4.CommonModule,
2350
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppWorkspaceModule, { declarations: [WorkspaceButtonComponent], imports: [i5.CommonModule,
2053
2351
  i6.MatIconModule,
2054
2352
  i3.MatButtonModule,
2055
2353
  i4$1.MatTooltipModule,
2056
- i2$2.IgoLanguageModule], exports: [WorkspaceButtonComponent] });
2354
+ i2.IgoLanguageModule], exports: [WorkspaceButtonComponent] });
2057
2355
  })();
2058
2356
 
2059
2357
  function ImportExportToolComponent_mat_tab_group_0_Template(rf, ctx) {
@@ -2182,9 +2480,9 @@
2182
2480
  i0__namespace.ɵɵadvance(1);
2183
2481
  i0__namespace.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "context");
2184
2482
  }
2185
- }, directives: [i4__namespace.NgIf, i5__namespace.MatTabGroup, i5__namespace.MatTab, i1__namespace.ImportExportComponent, i2__namespace.ContextImportExportComponent], pipes: [i8__namespace.TranslatePipe, i4__namespace.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
2483
+ }, directives: [i5__namespace.NgIf, i5__namespace$1.MatTabGroup, i5__namespace$1.MatTab, i1__namespace$1.ImportExportComponent, i1__namespace.ContextImportExportComponent], pipes: [i8__namespace.TranslatePipe, i5__namespace.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
2186
2484
  exports.ImportExportToolComponent = __decorate([
2187
- i7.ToolComponent({
2485
+ i4.ToolComponent({
2188
2486
  name: 'importExport',
2189
2487
  title: 'igo.integration.tools.importExport',
2190
2488
  icon: 'file-move'
@@ -2224,24 +2522,24 @@
2224
2522
  IgoAppImportExportModule.ɵfac = function IgoAppImportExportModule_Factory(t) { return new (t || IgoAppImportExportModule)(); };
2225
2523
  IgoAppImportExportModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppImportExportModule });
2226
2524
  IgoAppImportExportModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
2227
- i1.IgoImportExportModule,
2228
- i2.IgoContextImportExportModule,
2229
- i4.CommonModule,
2230
- i2$2.IgoLanguageModule,
2525
+ i1$1.IgoImportExportModule,
2526
+ i1.IgoContextImportExportModule,
2527
+ i5.CommonModule,
2528
+ i2.IgoLanguageModule,
2231
2529
  buttonToggle.MatButtonToggleModule,
2232
- i5.MatTabsModule
2530
+ i5$1.MatTabsModule
2233
2531
  ]] });
2234
2532
  (function () {
2235
2533
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppImportExportModule, [{
2236
2534
  type: i0.NgModule,
2237
2535
  args: [{
2238
2536
  imports: [
2239
- i1.IgoImportExportModule,
2240
- i2.IgoContextImportExportModule,
2241
- i4.CommonModule,
2242
- i2$2.IgoLanguageModule,
2537
+ i1$1.IgoImportExportModule,
2538
+ i1.IgoContextImportExportModule,
2539
+ i5.CommonModule,
2540
+ i2.IgoLanguageModule,
2243
2541
  buttonToggle.MatButtonToggleModule,
2244
- i5.MatTabsModule
2542
+ i5$1.MatTabsModule
2245
2543
  ],
2246
2544
  declarations: [exports.ImportExportToolComponent],
2247
2545
  exports: [exports.ImportExportToolComponent],
@@ -2250,12 +2548,12 @@
2250
2548
  }], null, null);
2251
2549
  })();
2252
2550
  (function () {
2253
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppImportExportModule, { declarations: [exports.ImportExportToolComponent], imports: [i1.IgoImportExportModule,
2254
- i2.IgoContextImportExportModule,
2255
- i4.CommonModule,
2256
- i2$2.IgoLanguageModule,
2551
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppImportExportModule, { declarations: [exports.ImportExportToolComponent], imports: [i1$1.IgoImportExportModule,
2552
+ i1.IgoContextImportExportModule,
2553
+ i5.CommonModule,
2554
+ i2.IgoLanguageModule,
2257
2555
  buttonToggle.MatButtonToggleModule,
2258
- i5.MatTabsModule], exports: [exports.ImportExportToolComponent] });
2556
+ i5$1.MatTabsModule], exports: [exports.ImportExportToolComponent] });
2259
2557
  })();
2260
2558
 
2261
2559
  function MapDetailsToolComponent_igo_layer_list_0_ng_template_1_Template(rf, ctx) {
@@ -2457,14 +2755,14 @@
2457
2755
  Object.defineProperty(MapDetailsToolComponent.prototype, "layerFilterAndSortOptions", {
2458
2756
  get: function () {
2459
2757
  var filterSortOptions = Object.assign({
2460
- showToolbar: i1.LayerListControlsEnum.default
2758
+ showToolbar: i1$1.LayerListControlsEnum.default
2461
2759
  }, this.layerListControls);
2462
2760
  switch (this.layerListControls.showToolbar) {
2463
- case i1.LayerListControlsEnum.always:
2464
- filterSortOptions.showToolbar = i1.LayerListControlsEnum.always;
2761
+ case i1$1.LayerListControlsEnum.always:
2762
+ filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.always;
2465
2763
  break;
2466
- case i1.LayerListControlsEnum.never:
2467
- filterSortOptions.showToolbar = i1.LayerListControlsEnum.never;
2764
+ case i1$1.LayerListControlsEnum.never:
2765
+ filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.never;
2468
2766
  break;
2469
2767
  default:
2470
2768
  break;
@@ -2479,7 +2777,7 @@
2479
2777
  return (this.toolState.toolbox.getToolbar().indexOf('searchResults') !== -1 &&
2480
2778
  this.searchSourceService
2481
2779
  .getSources()
2482
- .filter(i1.sourceCanSearch)
2780
+ .filter(i1$1.sourceCanSearch)
2483
2781
  .filter(function (s) { return s.available && s.getType() === 'Layer'; }).length > 0);
2484
2782
  },
2485
2783
  enumerable: false,
@@ -2528,7 +2826,7 @@
2528
2826
  };
2529
2827
  return MapDetailsToolComponent;
2530
2828
  }());
2531
- exports.MapDetailsToolComponent.ɵfac = function MapDetailsToolComponent_Factory(t) { return new (t || exports.MapDetailsToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i1__namespace.SearchSourceService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(ImportExportState)); };
2829
+ exports.MapDetailsToolComponent.ɵfac = function MapDetailsToolComponent_Factory(t) { return new (t || exports.MapDetailsToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SearchSourceService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(ImportExportState)); };
2532
2830
  exports.MapDetailsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
2533
2831
  if (rf & 1) {
2534
2832
  i0__namespace.ɵɵtemplate(0, MapDetailsToolComponent_igo_layer_list_0_Template, 3, 7, "igo-layer-list", 0);
@@ -2539,9 +2837,9 @@
2539
2837
  var _r1 = i0__namespace.ɵɵreference(3);
2540
2838
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2, ctx.layers$).length)("ngIfElse", _r1);
2541
2839
  }
2542
- }, directives: [i4__namespace.NgIf, i1__namespace.LayerListComponent, i1__namespace.LayerListBindingDirective, WorkspaceButtonComponent, i1__namespace.ExportButtonComponent, i1__namespace.OgcFilterButtonComponent, i1__namespace.TimeFilterButtonComponent, i1__namespace.TrackFeatureButtonComponent, i1__namespace.MetadataButtonComponent, i7__namespace$1.MatList, i7__namespace$1.MatListItem, i6__namespace.MatIcon, i7__namespace$1.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i4__namespace.AsyncPipe, i8__namespace.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}"] });
2840
+ }, directives: [i5__namespace.NgIf, i1__namespace$1.LayerListComponent, i1__namespace$1.LayerListBindingDirective, WorkspaceButtonComponent, i1__namespace$1.ExportButtonComponent, i1__namespace$1.OgcFilterButtonComponent, i1__namespace$1.TimeFilterButtonComponent, i1__namespace$1.TrackFeatureButtonComponent, i1__namespace$1.MetadataButtonComponent, i7__namespace.MatList, i7__namespace.MatListItem, i6__namespace.MatIcon, i7__namespace.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i5__namespace.AsyncPipe, i8__namespace.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}"] });
2543
2841
  exports.MapDetailsToolComponent = __decorate([
2544
- i7.ToolComponent({
2842
+ i4.ToolComponent({
2545
2843
  name: 'mapDetails',
2546
2844
  title: 'igo.integration.tools.map',
2547
2845
  icon: 'map'
@@ -2555,7 +2853,7 @@
2555
2853
  templateUrl: './map-details-tool.component.html',
2556
2854
  styleUrls: ['./map-details-tool.component.scss']
2557
2855
  }]
2558
- }], function () { return [{ type: MapState }, { type: ToolState }, { type: i1__namespace.SearchSourceService }, { type: i0__namespace.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
2856
+ }], function () { return [{ type: MapState }, { type: ToolState }, { type: i1__namespace$1.SearchSourceService }, { type: i0__namespace.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
2559
2857
  type: i0.Input
2560
2858
  }], expandLegendOfVisibleLayers: [{
2561
2859
  type: i0.Input
@@ -2635,14 +2933,14 @@
2635
2933
  Object.defineProperty(MapToolComponent.prototype, "layerFilterAndSortOptions", {
2636
2934
  get: function () {
2637
2935
  var filterSortOptions = Object.assign({
2638
- showToolbar: i1.LayerListControlsEnum.default
2936
+ showToolbar: i1$1.LayerListControlsEnum.default
2639
2937
  }, this.layerListControls);
2640
2938
  switch (this.layerListControls.showToolbar) {
2641
- case i1.LayerListControlsEnum.always:
2642
- filterSortOptions.showToolbar = i1.LayerListControlsEnum.always;
2939
+ case i1$1.LayerListControlsEnum.always:
2940
+ filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.always;
2643
2941
  break;
2644
- case i1.LayerListControlsEnum.never:
2645
- filterSortOptions.showToolbar = i1.LayerListControlsEnum.never;
2942
+ case i1$1.LayerListControlsEnum.never:
2943
+ filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.never;
2646
2944
  break;
2647
2945
  default:
2648
2946
  break;
@@ -2688,9 +2986,9 @@
2688
2986
  i0__namespace.ɵɵadvance(3);
2689
2987
  i0__namespace.ɵɵproperty("label", i0__namespace.ɵɵpipeBind1(7, 12, "igo.integration.tools.contexts"));
2690
2988
  }
2691
- }, directives: [i5__namespace.MatTabGroup, i5__namespace.MatTab, i1__namespace.LayerListComponent, i1__namespace.LayerListBindingDirective, i2__namespace.ContextListComponent, i2__namespace.ContextListBindingDirective, WorkspaceButtonComponent, i1__namespace.ExportButtonComponent, i1__namespace.OgcFilterButtonComponent, i1__namespace.TimeFilterButtonComponent, i1__namespace.TrackFeatureButtonComponent, i1__namespace.MetadataButtonComponent], pipes: [i8__namespace.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 });
2989
+ }, directives: [i5__namespace$1.MatTabGroup, i5__namespace$1.MatTab, i1__namespace$1.LayerListComponent, i1__namespace$1.LayerListBindingDirective, i1__namespace.ContextListComponent, i1__namespace.ContextListBindingDirective, WorkspaceButtonComponent, i1__namespace$1.ExportButtonComponent, i1__namespace$1.OgcFilterButtonComponent, i1__namespace$1.TimeFilterButtonComponent, i1__namespace$1.TrackFeatureButtonComponent, i1__namespace$1.MetadataButtonComponent], pipes: [i8__namespace.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 });
2692
2990
  exports.MapToolComponent = __decorate([
2693
- i7.ToolComponent({
2991
+ i4.ToolComponent({
2694
2992
  name: 'map',
2695
2993
  title: 'igo.integration.tools.map',
2696
2994
  icon: 'map'
@@ -2722,7 +3020,7 @@
2722
3020
  }] });
2723
3021
  })();
2724
3022
 
2725
- var _c0$1 = ["tabGroup"];
3023
+ var _c0$2 = ["tabGroup"];
2726
3024
  function MapToolsComponent_igo_layer_list_5_ng_template_1_igo_time_filter_button_2_Template(rf, ctx) {
2727
3025
  if (rf & 1) {
2728
3026
  var _r14_1 = i0__namespace.ɵɵgetCurrentView();
@@ -3027,14 +3325,14 @@
3027
3325
  Object.defineProperty(MapToolsComponent.prototype, "layerFilterAndSortOptions", {
3028
3326
  get: function () {
3029
3327
  var filterSortOptions = Object.assign({
3030
- showToolbar: i1.LayerListControlsEnum.default
3328
+ showToolbar: i1$1.LayerListControlsEnum.default
3031
3329
  }, this.layerListControls);
3032
3330
  switch (this.layerListControls.showToolbar) {
3033
- case i1.LayerListControlsEnum.always:
3034
- filterSortOptions.showToolbar = i1.LayerListControlsEnum.always;
3331
+ case i1$1.LayerListControlsEnum.always:
3332
+ filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.always;
3035
3333
  break;
3036
- case i1.LayerListControlsEnum.never:
3037
- filterSortOptions.showToolbar = i1.LayerListControlsEnum.never;
3334
+ case i1$1.LayerListControlsEnum.never:
3335
+ filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.never;
3038
3336
  break;
3039
3337
  default:
3040
3338
  break;
@@ -3049,7 +3347,7 @@
3049
3347
  return (this.toolState.toolbox.getToolbar().indexOf('searchResults') !== -1 &&
3050
3348
  this.searchSourceService
3051
3349
  .getSources()
3052
- .filter(i1.sourceCanSearch)
3350
+ .filter(i1$1.sourceCanSearch)
3053
3351
  .filter(function (s) { return s.available && s.getType() === 'Layer'; }).length > 0);
3054
3352
  },
3055
3353
  enumerable: false,
@@ -3180,11 +3478,11 @@
3180
3478
  var options = layer.dataSource.options;
3181
3479
  return this.ogcButton && options.ogcFilters && options.ogcFilters.enabled &&
3182
3480
  (options.ogcFilters.pushButtons || options.ogcFilters.checkboxes || options.ogcFilters.radioButtons
3183
- || options.ogcFilters.select || options.ogcFilters.editable);
3481
+ || options.ogcFilters.select || options.ogcFilters.autocomplete || options.ogcFilters.editable);
3184
3482
  };
3185
3483
  MapToolsComponent.prototype.isExportButton = function (layer) {
3186
3484
  var _a, _b;
3187
- if ((layer instanceof i1.VectorLayer && layer.exportable === true) ||
3485
+ if ((layer instanceof i1$1.VectorLayer && layer.exportable === true) ||
3188
3486
  (layer.dataSource.options.download && layer.dataSource.options.download.url) ||
3189
3487
  (((_a = layer.options.workspace) === null || _a === void 0 ? void 0 : _a.enabled) && ((_b = layer.options.workspace) === null || _b === void 0 ? void 0 : _b.workspaceId) !== layer.id)) {
3190
3488
  return true;
@@ -3193,10 +3491,10 @@
3193
3491
  };
3194
3492
  return MapToolsComponent;
3195
3493
  }());
3196
- exports.MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || exports.MapToolsComponent)(i0__namespace.ɵɵdirectiveInject(LayerListToolState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i1__namespace.SearchSourceService), i0__namespace.ɵɵdirectiveInject(ImportExportState)); };
3494
+ exports.MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || exports.MapToolsComponent)(i0__namespace.ɵɵdirectiveInject(LayerListToolState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SearchSourceService), i0__namespace.ɵɵdirectiveInject(ImportExportState)); };
3197
3495
  exports.MapToolsComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.MapToolsComponent, selectors: [["igo-map-tools"]], viewQuery: function MapToolsComponent_Query(rf, ctx) {
3198
3496
  if (rf & 1) {
3199
- i0__namespace.ɵɵviewQuery(_c0$1, 7);
3497
+ i0__namespace.ɵɵviewQuery(_c0$2, 7);
3200
3498
  }
3201
3499
  if (rf & 2) {
3202
3500
  var _t = void 0;
@@ -3240,9 +3538,9 @@
3240
3538
  i0__namespace.ɵɵadvance(2);
3241
3539
  i0__namespace.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0__namespace.ɵɵpipeBind1(13, 19, ctx.layers$).length !== 0 && i0__namespace.ɵɵpipeBind1(14, 21, ctx.visibleOrInRangeLayers$).length === 0);
3242
3540
  }
3243
- }, directives: [i5__namespace.MatTabGroup, i5__namespace.MatTab, i4__namespace.NgIf, i1__namespace.LayerListComponent, i1__namespace.LayerListBindingDirective, i1__namespace.MetadataButtonComponent, i1__namespace.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1__namespace.TimeFilterButtonComponent, i1__namespace.OgcFilterButtonComponent, i1__namespace.ExportButtonComponent, i1__namespace.LayerLegendListComponent, i1__namespace.LayerLegendListBindingDirective, i7__namespace$1.MatList, i7__namespace$1.MatListItem, i6__namespace.MatIcon, i7__namespace$1.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i4__namespace.AsyncPipe, i8__namespace.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 });
3541
+ }, directives: [i5__namespace$1.MatTabGroup, i5__namespace$1.MatTab, i5__namespace.NgIf, i1__namespace$1.LayerListComponent, i1__namespace$1.LayerListBindingDirective, i1__namespace$1.MetadataButtonComponent, i1__namespace$1.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1__namespace$1.TimeFilterButtonComponent, i1__namespace$1.OgcFilterButtonComponent, i1__namespace$1.ExportButtonComponent, i1__namespace$1.LayerLegendListComponent, i1__namespace$1.LayerLegendListBindingDirective, i7__namespace.MatList, i7__namespace.MatListItem, i6__namespace.MatIcon, i7__namespace.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i5__namespace.AsyncPipe, i8__namespace.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 });
3244
3542
  exports.MapToolsComponent = __decorate([
3245
- i7.ToolComponent({
3543
+ i4.ToolComponent({
3246
3544
  name: 'mapTools',
3247
3545
  title: 'igo.integration.tools.map',
3248
3546
  icon: 'map'
@@ -3257,7 +3555,7 @@
3257
3555
  styleUrls: ['./map-tools.component.scss'],
3258
3556
  changeDetection: i0.ChangeDetectionStrategy.OnPush
3259
3557
  }]
3260
- }], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1__namespace.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
3558
+ }], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1__namespace$1.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
3261
3559
  type: i0.Input
3262
3560
  }], showAllLegendsValue: [{
3263
3561
  type: i0.Input
@@ -3485,7 +3783,7 @@
3485
3783
  return (this.toolState.toolbox.getToolbar().indexOf('searchResults') !== -1 &&
3486
3784
  this.searchSourceService
3487
3785
  .getSources()
3488
- .filter(i1.sourceCanSearch)
3786
+ .filter(i1$1.sourceCanSearch)
3489
3787
  .filter(function (s) { return s.available && s.getType() === 'Layer'; }).length > 0);
3490
3788
  },
3491
3789
  enumerable: false,
@@ -3571,7 +3869,7 @@
3571
3869
  };
3572
3870
  return MapLegendToolComponent;
3573
3871
  }());
3574
- exports.MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || exports.MapLegendToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i1__namespace.SearchSourceService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
3872
+ exports.MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || exports.MapLegendToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SearchSourceService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
3575
3873
  exports.MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
3576
3874
  if (rf & 1) {
3577
3875
  i0__namespace.ɵɵtemplate(0, MapLegendToolComponent_igo_layer_legend_list_0_Template, 2, 6, "igo-layer-legend-list", 0);
@@ -3590,9 +3888,9 @@
3590
3888
  i0__namespace.ɵɵadvance(2);
3591
3889
  i0__namespace.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0__namespace.ɵɵpipeBind1(4, 6, ctx.layers$).length !== 0 && i0__namespace.ɵɵpipeBind1(5, 8, ctx.visibleOrInRangeLayers$).length === 0);
3592
3890
  }
3593
- }, directives: [i4__namespace.NgIf, i1__namespace.LayerLegendListComponent, i1__namespace.LayerLegendListBindingDirective, i7__namespace$1.MatList, i7__namespace$1.MatListItem, i6__namespace.MatIcon, i7__namespace$1.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i4__namespace.AsyncPipe, i8__namespace.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}"] });
3891
+ }, directives: [i5__namespace.NgIf, i1__namespace$1.LayerLegendListComponent, i1__namespace$1.LayerLegendListBindingDirective, i7__namespace.MatList, i7__namespace.MatListItem, i6__namespace.MatIcon, i7__namespace.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i5__namespace.AsyncPipe, i8__namespace.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}"] });
3594
3892
  exports.MapLegendToolComponent = __decorate([
3595
- i7.ToolComponent({
3893
+ i4.ToolComponent({
3596
3894
  name: 'mapLegend',
3597
3895
  title: 'igo.integration.tools.legend',
3598
3896
  icon: 'format-list-bulleted-type'
@@ -3606,7 +3904,7 @@
3606
3904
  templateUrl: './map-legend-tool.component.html',
3607
3905
  styleUrls: ['./map-legend-tool.component.scss']
3608
3906
  }]
3609
- }], function () { return [{ type: MapState }, { type: ToolState }, { type: i1__namespace.SearchSourceService }, { type: i0__namespace.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
3907
+ }], function () { return [{ type: MapState }, { type: ToolState }, { type: i1__namespace$1.SearchSourceService }, { type: i0__namespace.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
3610
3908
  type: i0.Input
3611
3909
  }], layerAdditionAllowed: [{
3612
3910
  type: i0.Input
@@ -3846,7 +4144,7 @@
3846
4144
  };
3847
4145
  return AdvancedSwipeComponent;
3848
4146
  }());
3849
- AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace.ContextService), i0__namespace.ɵɵdirectiveInject(i3__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(ToolState)); };
4147
+ AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i1__namespace.ContextService), i0__namespace.ɵɵdirectiveInject(i3__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(ToolState)); };
3850
4148
  AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
3851
4149
  if (rf & 1) {
3852
4150
  i0__namespace.ɵɵtemplate(0, AdvancedSwipeComponent_div_0_Template, 16, 14, "div", 0);
@@ -3856,7 +4154,7 @@
3856
4154
  var _r1 = i0__namespace.ɵɵreference(2);
3857
4155
  i0__namespace.ɵɵproperty("ngIf", ctx.userControlledLayerList.length)("ngIfElse", _r1);
3858
4156
  }
3859
- }, directives: [i4__namespace.NgIf, i3__namespace$1.ɵNgNoValidate, i3__namespace$1.NgControlStatusGroup, i3__namespace$1.FormGroupDirective, i6__namespace$1.MatFormField, i6__namespace$1.MatLabel, i7__namespace$2.MatSelect, i3__namespace$1.NgControlStatus, i3__namespace$1.FormControlName, i8__namespace$1.MatOption, i9__namespace.MatDivider, i4__namespace.NgForOf, i10__namespace.MatSlideToggle, i7__namespace$1.MatList, i7__namespace$1.MatListItem, i6__namespace.MatIcon, i7__namespace$1.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i8__namespace.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}"] });
4157
+ }, directives: [i5__namespace.NgIf, i3__namespace$1.ɵNgNoValidate, i3__namespace$1.NgControlStatusGroup, i3__namespace$1.FormGroupDirective, i6__namespace$1.MatFormField, i6__namespace$1.MatLabel, i7__namespace$1.MatSelect, i3__namespace$1.NgControlStatus, i3__namespace$1.FormControlName, i8__namespace$1.MatOption, i9__namespace.MatDivider, i5__namespace.NgForOf, i10__namespace.MatSlideToggle, i7__namespace.MatList, i7__namespace.MatListItem, i6__namespace.MatIcon, i7__namespace.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i8__namespace.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}"] });
3860
4158
  (function () {
3861
4159
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AdvancedSwipeComponent, [{
3862
4160
  type: i0.Component,
@@ -3865,7 +4163,7 @@
3865
4163
  templateUrl: './advanced-swipe.component.html',
3866
4164
  styleUrls: ['./advanced-swipe.component.scss']
3867
4165
  }]
3868
- }], function () { return [{ type: MapState }, { type: i2__namespace.ContextService }, { type: i3__namespace$1.FormBuilder }, { type: ToolState }]; }, null);
4166
+ }], function () { return [{ type: MapState }, { type: i1__namespace.ContextService }, { type: i3__namespace$1.FormBuilder }, { type: ToolState }]; }, null);
3869
4167
  })();
3870
4168
 
3871
4169
  function AdvancedCoordinatesComponent_mat_form_field_0_Template(rf, ctx) {
@@ -3997,8 +4295,8 @@
3997
4295
  .subscribe(function () {
3998
4296
  _this.setScaleValue(_this.map);
3999
4297
  _this.currentCenterDefaultProj = _this.map.viewController.getCenter(_this.defaultProj.code);
4000
- var currentMtmZone = i1.zoneMtm(_this.currentCenterDefaultProj[0]);
4001
- var currentUtmZone = i1.zoneUtm(_this.currentCenterDefaultProj[0]);
4298
+ var currentMtmZone = i1$1.zoneMtm(_this.currentCenterDefaultProj[0]);
4299
+ var currentUtmZone = i1$1.zoneUtm(_this.currentCenterDefaultProj[0]);
4002
4300
  if (!_this.inMtmZone && currentMtmZone !== _this.currentZones.mtm) {
4003
4301
  _this.back2quebec();
4004
4302
  }
@@ -4017,7 +4315,7 @@
4017
4315
  _this.checkLambert(_this.currentCenterDefaultProj);
4018
4316
  _this.coordinates = _this.getCoordinates();
4019
4317
  _this.cdRef.detectChanges();
4020
- _this.storageService.set('currentProjection', _this.inputProj, i2$2.StorageScope.SESSION);
4318
+ _this.storageService.set('currentProjection', _this.inputProj, i2.StorageScope.SESSION);
4021
4319
  });
4022
4320
  var tempInputProj = this.storageService.get('currentProjection');
4023
4321
  this.inputProj = this.projections$.value[0];
@@ -4035,15 +4333,15 @@
4035
4333
  this.mapState$$.unsubscribe();
4036
4334
  };
4037
4335
  AdvancedCoordinatesComponent.prototype.setScaleValue = function (map) {
4038
- this.formattedScale$.next(': ~ 1 / ' + i1.formatScale(map.viewController.getScale()));
4336
+ this.formattedScale$.next(': ~ 1 / ' + i1$1.formatScale(map.viewController.getScale()));
4039
4337
  };
4040
4338
  /**
4041
4339
  * Coordinates of the center of the map on the appropriate systeme of coordinates
4042
4340
  * @returns Array of two numbers
4043
4341
  */
4044
4342
  AdvancedCoordinatesComponent.prototype.getCoordinates = function () {
4045
- this.currentZones.mtm = i1.zoneMtm(this.currentCenterDefaultProj[0]);
4046
- this.currentZones.utm = i1.zoneUtm(this.currentCenterDefaultProj[0]);
4343
+ this.currentZones.mtm = i1$1.zoneMtm(this.currentCenterDefaultProj[0]);
4344
+ this.currentZones.utm = i1$1.zoneUtm(this.currentCenterDefaultProj[0]);
4047
4345
  var coord;
4048
4346
  var code = this.inputProj.code;
4049
4347
  var decimal = 2;
@@ -4072,7 +4370,7 @@
4072
4370
  AdvancedCoordinatesComponent.prototype.displayCenter = function (toggle) {
4073
4371
  this.center = toggle;
4074
4372
  this.map.mapCenter$.next(toggle);
4075
- this.storageService.set('centerToggle', toggle, i2$2.StorageScope.SESSION);
4373
+ this.storageService.set('centerToggle', toggle, i2.StorageScope.SESSION);
4076
4374
  };
4077
4375
  /**
4078
4376
  * Builder of the form
@@ -4091,7 +4389,7 @@
4091
4389
  var translate = this.languageService.translate;
4092
4390
  modifiedProj.map(function (p) {
4093
4391
  if (p.translateKey === 'mtm') {
4094
- var zone = i1.zoneMtm(_this.currentCenterDefaultProj[0]);
4392
+ var zone = i1$1.zoneMtm(_this.currentCenterDefaultProj[0]);
4095
4393
  if (zone) {
4096
4394
  var code = zone < 10 ? "EPSG:3218" + zone : "EPSG:321" + (80 + zone);
4097
4395
  p.alias = "MTM " + zone;
@@ -4108,7 +4406,7 @@
4108
4406
  }
4109
4407
  }
4110
4408
  if (p.translateKey === 'utm') {
4111
- var zone = i1.zoneUtm(_this.currentCenterDefaultProj[0]);
4409
+ var zone = i1$1.zoneUtm(_this.currentCenterDefaultProj[0]);
4112
4410
  var code = "EPSG:326" + zone;
4113
4411
  p.alias = "UTM " + zone;
4114
4412
  p.code = code;
@@ -4123,7 +4421,7 @@
4123
4421
  * Create a list of currents projections
4124
4422
  */
4125
4423
  AdvancedCoordinatesComponent.prototype.computeProjections = function () {
4126
- this.projectionsConstraints = i1.computeProjectionsConstraints(this.projectionsLimitations);
4424
+ this.projectionsConstraints = i1$1.computeProjectionsConstraints(this.projectionsLimitations);
4127
4425
  var projections = [];
4128
4426
  if (!this.currentCenterDefaultProj) {
4129
4427
  this.currentCenterDefaultProj = this.map.viewController.getCenter(this.defaultProj.code);
@@ -4149,7 +4447,7 @@
4149
4447
  }
4150
4448
  if (this.projectionsConstraints.mtm) {
4151
4449
  // Quebec
4152
- var zone = i1.zoneMtm(this.currentCenterDefaultProj[0]);
4450
+ var zone = i1$1.zoneMtm(this.currentCenterDefaultProj[0]);
4153
4451
  if (zone) {
4154
4452
  this.inMtmZone = true;
4155
4453
  var code = zone < 10 ? "EPSG:3218" + zone : "EPSG:321" + (80 + zone);
@@ -4166,7 +4464,7 @@
4166
4464
  }
4167
4465
  if (this.projectionsConstraints.utm) {
4168
4466
  var order = this.inMtmZone ? 4 : 3;
4169
- var zone = i1.zoneUtm(this.currentCenterDefaultProj[0]);
4467
+ var zone = i1$1.zoneUtm(this.currentCenterDefaultProj[0]);
4170
4468
  var code = zone < 10 ? "EPSG:3260" + zone : "EPSG:326" + zone;
4171
4469
  projections.splice(order, 0, {
4172
4470
  translatedValue: this.languageService.translate.instant('igo.geo.importExportForm.projections.utm', { code: code, zone: zone }),
@@ -4187,7 +4485,7 @@
4187
4485
  */
4188
4486
  AdvancedCoordinatesComponent.prototype.pushMtm = function (projections) {
4189
4487
  if (this.projectionsConstraints.mtm) {
4190
- var zone = i1.zoneMtm(this.currentCenterDefaultProj[0]);
4488
+ var zone = i1$1.zoneMtm(this.currentCenterDefaultProj[0]);
4191
4489
  var code = zone < 10 ? "EPSG:3218" + zone : "EPSG:321" + (80 + zone);
4192
4490
  projections.splice(3, 0, {
4193
4491
  translatedValue: this.languageService.translate.instant('igo.geo.importExportForm.projections.mtm', { code: code, zone: zone }),
@@ -4211,7 +4509,7 @@
4211
4509
  */
4212
4510
  AdvancedCoordinatesComponent.prototype.updateZoneMtmUtm = function () {
4213
4511
  if (this.inputProj.translateKey === 'mtm') {
4214
- var zone = i1.zoneMtm(this.currentCenterDefaultProj[0]);
4512
+ var zone = i1$1.zoneMtm(this.currentCenterDefaultProj[0]);
4215
4513
  this.inputProj.alias = "MTM " + zone;
4216
4514
  var code = zone < 10 ? "EPSG:3218" + zone : "EPSG:321" + (80 + zone);
4217
4515
  this.inputProj.code = code;
@@ -4219,7 +4517,7 @@
4219
4517
  this.inputProj.translatedValue = this.languageService.translate.instant('igo.geo.importExportForm.projections.mtm', { code: code, zone: zone });
4220
4518
  }
4221
4519
  if (this.inputProj.translateKey === 'utm') {
4222
- var zone = i1.zoneUtm(this.currentCenterDefaultProj[0]);
4520
+ var zone = i1$1.zoneUtm(this.currentCenterDefaultProj[0]);
4223
4521
  this.inputProj.alias = "UTM " + zone;
4224
4522
  var code = zone < 10 ? "EPSG:3260" + zone : "EPSG:326" + zone;
4225
4523
  this.inputProj.code = code;
@@ -4257,165 +4555,608 @@
4257
4555
  */
4258
4556
  AdvancedCoordinatesComponent.prototype.checkLambert = function (coordinates) {
4259
4557
  var _this = this;
4260
- var lambertProjections = this.config.getConfig('projections');
4261
- lambertProjections.forEach(function (projection) {
4262
- var modifiedProj = _this.projections$.value;
4263
- var extent = projection.extent;
4264
- var code = projection.code.match(/\d+/);
4265
- var currentExtentWGS = olproj__namespace.transformExtent(extent, projection.code, _this.defaultProj.code);
4266
- if (coordinates[0] < currentExtentWGS[0] || coordinates[0] > currentExtentWGS[2] ||
4267
- coordinates[1] < currentExtentWGS[1] || coordinates[1] > currentExtentWGS[3]) {
4268
- _this.inLambert2[code] = false;
4269
- if (_this.inputProj.alias === projection.alias) {
4270
- _this.inputProj = _this.projections$.value[0];
4271
- }
4272
- modifiedProj = modifiedProj.filter(function (p) { return p.alias !== projection.alias; });
4273
- _this.projections$.next(modifiedProj);
4558
+ var lambertProjections = this.config.getConfig('projections');
4559
+ lambertProjections.forEach(function (projection) {
4560
+ var modifiedProj = _this.projections$.value;
4561
+ var extent = projection.extent;
4562
+ var code = projection.code.match(/\d+/);
4563
+ var currentExtentWGS = olProj__namespace.transformExtent(extent, projection.code, _this.defaultProj.code);
4564
+ if (coordinates[0] < currentExtentWGS[0] || coordinates[0] > currentExtentWGS[2] ||
4565
+ coordinates[1] < currentExtentWGS[1] || coordinates[1] > currentExtentWGS[3]) {
4566
+ _this.inLambert2[code] = false;
4567
+ if (_this.inputProj.alias === projection.alias) {
4568
+ _this.inputProj = _this.projections$.value[0];
4569
+ }
4570
+ modifiedProj = modifiedProj.filter(function (p) { return p.alias !== projection.alias; });
4571
+ _this.projections$.next(modifiedProj);
4572
+ }
4573
+ else {
4574
+ if (!_this.inLambert2[code]) {
4575
+ _this.projections$.next(modifiedProj.concat(projection));
4576
+ _this.inLambert2[code] = true;
4577
+ }
4578
+ }
4579
+ });
4580
+ };
4581
+ return AdvancedCoordinatesComponent;
4582
+ }());
4583
+ AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(i2__namespace.MessageService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace.StorageService), i0__namespace.ɵɵdirectiveInject(i2__namespace.ConfigService), i0__namespace.ɵɵdirectiveInject(i3__namespace$1.FormBuilder)); };
4584
+ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
4585
+ if (rf & 1) {
4586
+ i0__namespace.ɵɵtemplate(0, AdvancedCoordinatesComponent_mat_form_field_0_Template, 4, 4, "mat-form-field", 0);
4587
+ i0__namespace.ɵɵtemplate(1, AdvancedCoordinatesComponent_ng_template_1_Template, 4, 4, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
4588
+ i0__namespace.ɵɵtemplate(3, AdvancedCoordinatesComponent_mat_form_field_3_Template, 4, 4, "mat-form-field", 2);
4589
+ i0__namespace.ɵɵtemplate(4, AdvancedCoordinatesComponent_ng_template_4_Template, 4, 4, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
4590
+ i0__namespace.ɵɵelementStart(6, "button", 4);
4591
+ i0__namespace.ɵɵlistener("click", function AdvancedCoordinatesComponent_Template_button_click_6_listener() { return ctx.copyTextToClipboard(); });
4592
+ i0__namespace.ɵɵelement(7, "mat-icon", 5);
4593
+ i0__namespace.ɵɵtext(8);
4594
+ i0__namespace.ɵɵpipe(9, "translate");
4595
+ i0__namespace.ɵɵelementEnd();
4596
+ i0__namespace.ɵɵelementStart(10, "form", 6);
4597
+ i0__namespace.ɵɵelementStart(11, "mat-form-field", 7);
4598
+ i0__namespace.ɵɵelementStart(12, "mat-label");
4599
+ i0__namespace.ɵɵtext(13);
4600
+ i0__namespace.ɵɵpipe(14, "translate");
4601
+ i0__namespace.ɵɵelementEnd();
4602
+ i0__namespace.ɵɵelementStart(15, "mat-select", 8);
4603
+ i0__namespace.ɵɵlistener("valueChange", function AdvancedCoordinatesComponent_Template_mat_select_valueChange_15_listener($event) { return ctx.inputProj = $event; });
4604
+ i0__namespace.ɵɵtemplate(16, AdvancedCoordinatesComponent_mat_option_16_Template, 2, 2, "mat-option", 9);
4605
+ i0__namespace.ɵɵpipe(17, "async");
4606
+ i0__namespace.ɵɵelementEnd();
4607
+ i0__namespace.ɵɵelementEnd();
4608
+ i0__namespace.ɵɵelementStart(18, "mat-slide-toggle", 10);
4609
+ i0__namespace.ɵɵlistener("change", function AdvancedCoordinatesComponent_Template_mat_slide_toggle_change_18_listener($event) { return ctx.displayCenter($event.checked); });
4610
+ i0__namespace.ɵɵtext(19);
4611
+ i0__namespace.ɵɵpipe(20, "translate");
4612
+ i0__namespace.ɵɵelementEnd();
4613
+ i0__namespace.ɵɵelementEnd();
4614
+ i0__namespace.ɵɵelementStart(21, "p", 11);
4615
+ i0__namespace.ɵɵtext(22);
4616
+ i0__namespace.ɵɵpipe(23, "translate");
4617
+ i0__namespace.ɵɵelementEnd();
4618
+ i0__namespace.ɵɵelementStart(24, "p", 11);
4619
+ i0__namespace.ɵɵtext(25);
4620
+ i0__namespace.ɵɵpipe(26, "translate");
4621
+ i0__namespace.ɵɵpipe(27, "async");
4622
+ i0__namespace.ɵɵelementEnd();
4623
+ i0__namespace.ɵɵelementStart(28, "p", 11);
4624
+ i0__namespace.ɵɵtext(29);
4625
+ i0__namespace.ɵɵpipe(30, "translate");
4626
+ i0__namespace.ɵɵpipe(31, "number");
4627
+ i0__namespace.ɵɵelementEnd();
4628
+ }
4629
+ if (rf & 2) {
4630
+ var _r1 = i0__namespace.ɵɵreference(2);
4631
+ var _r4 = i0__namespace.ɵɵreference(5);
4632
+ i0__namespace.ɵɵproperty("ngIf", ctx.units)("ngIfElse", _r1);
4633
+ i0__namespace.ɵɵadvance(3);
4634
+ i0__namespace.ɵɵproperty("ngIf", ctx.units)("ngIfElse", _r4);
4635
+ i0__namespace.ɵɵadvance(5);
4636
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(9, 18, "igo.integration.advanced-map-tool.advanced-coordinates.copy"), "\n");
4637
+ i0__namespace.ɵɵadvance(2);
4638
+ i0__namespace.ɵɵproperty("formGroup", ctx.form);
4639
+ i0__namespace.ɵɵadvance(3);
4640
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(14, 20, "igo.integration.advanced-map-tool.advanced-coordinates.coordSystem"));
4641
+ i0__namespace.ɵɵadvance(2);
4642
+ i0__namespace.ɵɵproperty("value", ctx.inputProj);
4643
+ i0__namespace.ɵɵadvance(1);
4644
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(17, 22, ctx.projections$));
4645
+ i0__namespace.ɵɵadvance(2);
4646
+ i0__namespace.ɵɵproperty("checked", ctx.center)("labelPosition", "before");
4647
+ i0__namespace.ɵɵadvance(1);
4648
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(20, 24, "igo.integration.advanced-map-tool.advanced-coordinates.center"), " ");
4649
+ i0__namespace.ɵɵadvance(3);
4650
+ i0__namespace.ɵɵtextInterpolate2("", i0__namespace.ɵɵpipeBind1(23, 26, "igo.integration.advanced-map-tool.advanced-coordinates.zoom"), " ", ctx.map.viewController.getZoom(), "");
4651
+ i0__namespace.ɵɵadvance(3);
4652
+ i0__namespace.ɵɵtextInterpolate2("", i0__namespace.ɵɵpipeBind1(26, 28, "igo.integration.advanced-map-tool.advanced-coordinates.scale"), " ", i0__namespace.ɵɵpipeBind1(27, 30, ctx.formattedScale$), "");
4653
+ i0__namespace.ɵɵadvance(4);
4654
+ i0__namespace.ɵɵtextInterpolate2("", i0__namespace.ɵɵpipeBind1(30, 32, "igo.integration.advanced-map-tool.advanced-coordinates.resolution"), " ", i0__namespace.ɵɵpipeBind2(31, 34, ctx.map.viewController.getResolution(), "1.0-0"), "");
4655
+ }
4656
+ }, directives: [i5__namespace.NgIf, i3__namespace.MatButton, i6__namespace.MatIcon, i3__namespace$1.ɵNgNoValidate, i3__namespace$1.NgControlStatusGroup, i3__namespace$1.FormGroupDirective, i6__namespace$1.MatFormField, i6__namespace$1.MatLabel, i7__namespace$1.MatSelect, i5__namespace.NgForOf, i10__namespace.MatSlideToggle, i10__namespace$1.MatInput, i8__namespace$1.MatOption], pipes: [i8__namespace.TranslatePipe, i5__namespace.AsyncPipe, i5__namespace.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}"] });
4657
+ (function () {
4658
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AdvancedCoordinatesComponent, [{
4659
+ type: i0.Component,
4660
+ args: [{
4661
+ selector: 'igo-advanced-coordinates',
4662
+ templateUrl: './advanced-coordinates.component.html',
4663
+ styleUrls: ['./advanced-coordinates.component.scss']
4664
+ }]
4665
+ }], function () { return [{ type: MapState }, { type: i2__namespace.LanguageService }, { type: i2__namespace.MessageService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.StorageService }, { type: i2__namespace.ConfigService }, { type: i3__namespace$1.FormBuilder }]; }, { projectionsLimitations: [{
4666
+ type: i0.Input
4667
+ }] });
4668
+ })();
4669
+
4670
+ exports.AdvancedMapToolComponent = /** @class */ (function () {
4671
+ function AdvancedMapToolComponent(mapState) {
4672
+ this.mapState = mapState;
4673
+ }
4674
+ Object.defineProperty(AdvancedMapToolComponent.prototype, "tracking$", {
4675
+ get: function () {
4676
+ return this.mapState.map.geolocationController.tracking$;
4677
+ },
4678
+ enumerable: false,
4679
+ configurable: true
4680
+ });
4681
+ Object.defineProperty(AdvancedMapToolComponent.prototype, "followPosition$", {
4682
+ get: function () {
4683
+ return this.mapState.map.geolocationController.followPosition$;
4684
+ },
4685
+ enumerable: false,
4686
+ configurable: true
4687
+ });
4688
+ AdvancedMapToolComponent.prototype.toggleTracking = function (value) {
4689
+ this.mapState.map.geolocationController.tracking = value;
4690
+ };
4691
+ AdvancedMapToolComponent.prototype.toggleFollow = function (value) {
4692
+ this.mapState.map.geolocationController.followPosition = value;
4693
+ };
4694
+ return AdvancedMapToolComponent;
4695
+ }());
4696
+ exports.AdvancedMapToolComponent.ɵfac = function AdvancedMapToolComponent_Factory(t) { return new (t || exports.AdvancedMapToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState)); };
4697
+ exports.AdvancedMapToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.AdvancedMapToolComponent, selectors: [["igo-advanced-map-tool"]], decls: 24, vars: 26, consts: [[1, "nameOfTool"], [1, "advanced-tool-line"], [1, "igo-input-container"], [1, "geolocation-slide-toggle-container", "mat-typography"], [1, "geolocation-option", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "geolocation-option", "mat-typography", 3, "disabled", "checked", "labelPosition", "change"]], template: function AdvancedMapToolComponent_Template(rf, ctx) {
4698
+ if (rf & 1) {
4699
+ i0__namespace.ɵɵelementStart(0, "h4", 0);
4700
+ i0__namespace.ɵɵtext(1);
4701
+ i0__namespace.ɵɵpipe(2, "translate");
4702
+ i0__namespace.ɵɵelementEnd();
4703
+ i0__namespace.ɵɵelement(3, "igo-advanced-swipe");
4704
+ i0__namespace.ɵɵelement(4, "mat-divider", 1);
4705
+ i0__namespace.ɵɵelementStart(5, "h4", 0);
4706
+ i0__namespace.ɵɵtext(6);
4707
+ i0__namespace.ɵɵpipe(7, "translate");
4708
+ i0__namespace.ɵɵelementEnd();
4709
+ i0__namespace.ɵɵelement(8, "igo-advanced-coordinates");
4710
+ i0__namespace.ɵɵelement(9, "mat-divider", 1);
4711
+ i0__namespace.ɵɵelementStart(10, "h4", 0);
4712
+ i0__namespace.ɵɵtext(11);
4713
+ i0__namespace.ɵɵpipe(12, "translate");
4714
+ i0__namespace.ɵɵelementEnd();
4715
+ i0__namespace.ɵɵelementStart(13, "div", 2);
4716
+ i0__namespace.ɵɵelementStart(14, "div", 3);
4717
+ i0__namespace.ɵɵelementStart(15, "mat-slide-toggle", 4);
4718
+ i0__namespace.ɵɵlistener("change", function AdvancedMapToolComponent_Template_mat_slide_toggle_change_15_listener($event) { return ctx.toggleTracking($event.checked); });
4719
+ i0__namespace.ɵɵpipe(16, "async");
4720
+ i0__namespace.ɵɵtext(17);
4721
+ i0__namespace.ɵɵpipe(18, "translate");
4722
+ i0__namespace.ɵɵelementEnd();
4723
+ i0__namespace.ɵɵelementStart(19, "mat-slide-toggle", 5);
4724
+ i0__namespace.ɵɵlistener("change", function AdvancedMapToolComponent_Template_mat_slide_toggle_change_19_listener($event) { return ctx.toggleFollow($event.checked); });
4725
+ i0__namespace.ɵɵpipe(20, "async");
4726
+ i0__namespace.ɵɵpipe(21, "async");
4727
+ i0__namespace.ɵɵtext(22);
4728
+ i0__namespace.ɵɵpipe(23, "translate");
4729
+ i0__namespace.ɵɵelementEnd();
4730
+ i0__namespace.ɵɵelementEnd();
4731
+ i0__namespace.ɵɵelementEnd();
4732
+ }
4733
+ if (rf & 2) {
4734
+ i0__namespace.ɵɵadvance(1);
4735
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 10, "igo.integration.advanced-map-tool.advanced-swipe.swipe-tool"));
4736
+ i0__namespace.ɵɵadvance(5);
4737
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 12, "igo.integration.advanced-map-tool.advanced-coordinates.coordinates"));
4738
+ i0__namespace.ɵɵadvance(5);
4739
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(12, 14, "igo.integration.advanced-map-tool.geolocation.title"));
4740
+ i0__namespace.ɵɵadvance(4);
4741
+ i0__namespace.ɵɵproperty("checked", i0__namespace.ɵɵpipeBind1(16, 16, ctx.tracking$))("labelPosition", "before");
4742
+ i0__namespace.ɵɵadvance(2);
4743
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 18, "igo.integration.advanced-map-tool.geolocation.tracking"), " ");
4744
+ i0__namespace.ɵɵadvance(2);
4745
+ i0__namespace.ɵɵproperty("disabled", i0__namespace.ɵɵpipeBind1(20, 20, ctx.tracking$) !== true)("checked", i0__namespace.ɵɵpipeBind1(21, 22, ctx.followPosition$))("labelPosition", "before");
4746
+ i0__namespace.ɵɵadvance(3);
4747
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(23, 24, "igo.integration.advanced-map-tool.geolocation.follow"), " ");
4748
+ }
4749
+ }, directives: [AdvancedSwipeComponent, i9__namespace.MatDivider, AdvancedCoordinatesComponent, i10__namespace.MatSlideToggle], pipes: [i8__namespace.TranslatePipe, i5__namespace.AsyncPipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:bold;font-size:small;margin:15px 10px 0}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}.geolocation-slide-toggle-container[_ngcontent-%COMP%]{overflow-x:hidden}.geolocation-slide-toggle-container[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%]{width:100%;margin:10px}.geolocation-slide-toggle-container[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%] .mat-slide-toggle-content{width:calc(100% - 60px)}.geolocation-option[_ngcontent-%COMP%]{display:block;margin-right:10px;margin-bottom:15px}"] });
4750
+ exports.AdvancedMapToolComponent = __decorate([
4751
+ i4.ToolComponent({
4752
+ name: 'advancedMap',
4753
+ title: 'igo.integration.tools.advancedMap',
4754
+ icon: 'toolbox'
4755
+ })
4756
+ /**
4757
+ * Tool to handle the advanced map tools
4758
+ */
4759
+ ], exports.AdvancedMapToolComponent);
4760
+ (function () {
4761
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(exports.AdvancedMapToolComponent, [{
4762
+ type: i0.Component,
4763
+ args: [{
4764
+ selector: 'igo-advanced-map-tool',
4765
+ templateUrl: './advanced-map-tool.component.html',
4766
+ styleUrls: ['./advanced-map-tool.component.scss']
4767
+ }]
4768
+ }], function () { return [{ type: MapState }]; }, null);
4769
+ })();
4770
+
4771
+ /**
4772
+ * Service that holds the state of the direction module
4773
+ */
4774
+ var MapProximityState = /** @class */ (function () {
4775
+ function MapProximityState(mapState) {
4776
+ var _this = this;
4777
+ this.mapState = mapState;
4778
+ this.enabled$ = new rxjs.BehaviorSubject(false);
4779
+ this.proximityRadiusValue$ = new rxjs.BehaviorSubject(30);
4780
+ this.proximitylocationType$ = new rxjs.BehaviorSubject('geolocation');
4781
+ this.proximityFeatureStore = new i1$1.FeatureStore([], { map: this.mapState.map });
4782
+ this.subs$$ = [];
4783
+ this.currentPositionCoordinate$ = new rxjs.BehaviorSubject(undefined);
4784
+ this.mapState.map.ol.once('rendercomplete', function () {
4785
+ _this.subscribeProximityMonitor();
4786
+ });
4787
+ }
4788
+ Object.defineProperty(MapProximityState.prototype, "map", {
4789
+ get: function () {
4790
+ return this.mapState.map;
4791
+ },
4792
+ enumerable: false,
4793
+ configurable: true
4794
+ });
4795
+ MapProximityState.prototype.subscribeProximityMonitor = function () {
4796
+ var _this = this;
4797
+ this.subs$$.push(rxjs.combineLatest([
4798
+ this.enabled$,
4799
+ this.proximitylocationType$,
4800
+ this.proximityRadiusValue$,
4801
+ rxjs.interval(5000),
4802
+ this.map.geolocationController.position$
4803
+ ])
4804
+ .pipe(operators.debounceTime(750))
4805
+ .subscribe(function (bunch) {
4806
+ _this.proximityFeatureStore.clear();
4807
+ var enabled = bunch[0];
4808
+ var layers = _this.map.layers;
4809
+ var currentPos = _this.map.geolocationController.position$.value;
4810
+ var locationType = bunch[1];
4811
+ var proximityRadiusValue = bunch[2];
4812
+ if (!enabled) {
4813
+ return;
4814
+ }
4815
+ var coord;
4816
+ if (locationType === 'geolocation') {
4817
+ if (!currentPos || !currentPos.position) {
4818
+ return;
4819
+ }
4820
+ coord = olProj__namespace.transform(currentPos.position, currentPos.projection, _this.map.projection);
4821
+ _this.map.mapCenter$.next(false);
4822
+ }
4823
+ else {
4824
+ coord = _this.map.viewController.getCenter();
4825
+ ;
4826
+ _this.map.mapCenter$.next(true);
4827
+ }
4828
+ var coordLonLat = olProj__namespace.transform(coord, _this.map.projection, 'EPSG:4269');
4829
+ var roundedCoordLonLat = i1$1.roundCoordTo(coordLonLat, 6);
4830
+ _this.currentPositionCoordinate$.next(roundedCoordLonLat);
4831
+ var layersToMonitor = layers
4832
+ .filter(function (layer) { return layer.ol instanceof olLayerVector__default["default"] &&
4833
+ layer.dataSource.options.queryable &&
4834
+ layer.visible &&
4835
+ layer.isInResolutionsRange; });
4836
+ layersToMonitor.map(function (layerToMonitor) {
4837
+ var layerSource = layerToMonitor.ol.getSource();
4838
+ // Mostly for polygon features.
4839
+ var olFeaturesAtCoordinate = layerSource.getFeaturesAtCoordinate(coord);
4840
+ if (olFeaturesAtCoordinate && olFeaturesAtCoordinate.length) {
4841
+ olFeaturesAtCoordinate.map(function (olFeatureAtCoordinate) {
4842
+ var featureAtThisPosition = i1$1.featureFromOl(olFeatureAtCoordinate, _this.map.projection);
4843
+ var title = _this.getQueryTitle(featureAtThisPosition, layerToMonitor);
4844
+ // todo handle imported layers without querytitle? prompt title or detect first column?
4845
+ _this.addFeatureToStore(layerToMonitor, coord, featureAtThisPosition, title, 0);
4846
+ });
4847
+ }
4848
+ else {
4849
+ // compute proximity for remaining sources
4850
+ var closestOlFeature = layerSource.getClosestFeatureToCoordinate(coord);
4851
+ if (closestOlFeature) {
4852
+ var closestOlGeom = closestOlFeature.getGeometry();
4853
+ var closestFeature = i1$1.featureFromOl(closestOlFeature, _this.map.projection);
4854
+ var geometryClosestPoint = closestOlGeom.getClosestPoint(coord);
4855
+ var linebetween = new olLineString__default["default"]([coord, geometryClosestPoint]);
4856
+ var lineLength = i1$1.measureOlGeometryLength(linebetween, 'EPSG:3857');
4857
+ if (lineLength <= proximityRadiusValue) {
4858
+ var title = _this.getQueryTitle(closestFeature, layerToMonitor);
4859
+ // todo handle imported layers without querytitle? prompt title or detect first column?
4860
+ _this.addFeatureToStore(layerToMonitor, coord, closestFeature, title, lineLength);
4861
+ }
4862
+ }
4863
+ }
4864
+ });
4865
+ }));
4866
+ };
4867
+ /**
4868
+ * Add a feature with proximity properties to the store
4869
+ * @internal
4870
+ */
4871
+ MapProximityState.prototype.addFeatureToStore = function (layer, coordFromCalculatedDistance, feature, title, distance) {
4872
+ var featureId = utils.uuid();
4873
+ var projection = this.map.ol.getView().getProjection();
4874
+ var olGeometry = feature.ol.getGeometry();
4875
+ var geometry = new olFormatGeoJSON__default["default"]().writeGeometryObject(olGeometry, {
4876
+ featureProjection: projection,
4877
+ dataProjection: projection
4878
+ });
4879
+ this.proximityFeatureStore.update({
4880
+ type: i1$1.FEATURE,
4881
+ geometry: geometry,
4882
+ projection: projection.getCode(),
4883
+ properties: Object.assign(Object.assign({}, feature.properties), {
4884
+ id: featureId,
4885
+ element: title,
4886
+ distance: distance,
4887
+ coordFromCalculatedDistance: coordFromCalculatedDistance,
4888
+ layerSrcId: layer.id,
4889
+ layerSrcTitle: layer.title
4890
+ }),
4891
+ meta: {
4892
+ id: featureId
4893
+ }
4894
+ });
4895
+ };
4896
+ MapProximityState.prototype.getQueryTitle = function (feature, layer) {
4897
+ var _a, _b;
4898
+ var title;
4899
+ if ((_b = (_a = layer.options) === null || _a === void 0 ? void 0 : _a.source) === null || _b === void 0 ? void 0 : _b.options) {
4900
+ var dataSourceOptions = layer.options.source
4901
+ .options;
4902
+ if (dataSourceOptions.queryTitle) {
4903
+ title = this.getLabelMatch(feature, dataSourceOptions.queryTitle);
4904
+ }
4905
+ }
4906
+ return title;
4907
+ };
4908
+ MapProximityState.prototype.getLabelMatch = function (feature, labelMatch) {
4909
+ var label = labelMatch;
4910
+ var labelToGet = Array.from(labelMatch.matchAll(/\$\{([^\{\}]+)\}/g));
4911
+ labelToGet.forEach(function (v) {
4912
+ label = label.replace(v[0], feature.properties[v[1]]);
4913
+ });
4914
+ // Nothing done? check feature's attribute
4915
+ if (labelToGet.length === 0 && label === labelMatch) {
4916
+ label = feature.properties[labelMatch] || labelMatch;
4917
+ }
4918
+ return label;
4919
+ };
4920
+ return MapProximityState;
4921
+ }());
4922
+ MapProximityState.ɵfac = function MapProximityState_Factory(t) { return new (t || MapProximityState)(i0__namespace.ɵɵinject(MapState)); };
4923
+ MapProximityState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MapProximityState, factory: MapProximityState.ɵfac, providedIn: 'root' });
4924
+ (function () {
4925
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MapProximityState, [{
4926
+ type: i0.Injectable,
4927
+ args: [{
4928
+ providedIn: 'root'
4929
+ }]
4930
+ }], function () { return [{ type: MapState }]; }, null);
4931
+ })();
4932
+
4933
+ var _c0$1 = ["table"];
4934
+ function MapProximityToolComponent_mat_form_field_3_Template(rf, ctx) {
4935
+ if (rf & 1) {
4936
+ i0__namespace.ɵɵelementStart(0, "mat-form-field", 14);
4937
+ i0__namespace.ɵɵelement(1, "textarea", 15, 16);
4938
+ i0__namespace.ɵɵpipe(3, "translate");
4939
+ i0__namespace.ɵɵelementEnd();
4940
+ }
4941
+ if (rf & 2) {
4942
+ var coord_r4 = ctx.ngIf;
4943
+ i0__namespace.ɵɵadvance(1);
4944
+ i0__namespace.ɵɵproperty("placeholder", i0__namespace.ɵɵpipeBind1(3, 2, "igo.integration.map-proximity-tool.lon"))("value", coord_r4[0]);
4945
+ }
4946
+ }
4947
+ function MapProximityToolComponent_mat_form_field_5_Template(rf, ctx) {
4948
+ if (rf & 1) {
4949
+ i0__namespace.ɵɵelementStart(0, "mat-form-field", 17);
4950
+ i0__namespace.ɵɵelement(1, "textarea", 15, 16);
4951
+ i0__namespace.ɵɵpipe(3, "translate");
4952
+ i0__namespace.ɵɵelementEnd();
4953
+ }
4954
+ if (rf & 2) {
4955
+ var coord2_r6 = ctx.ngIf;
4956
+ i0__namespace.ɵɵadvance(1);
4957
+ i0__namespace.ɵɵproperty("placeholder", i0__namespace.ɵɵpipeBind1(3, 2, "igo.integration.map-proximity-tool.lat"))("value", coord2_r6[1]);
4958
+ }
4959
+ }
4960
+ function MapProximityToolComponent_button_7_Template(rf, ctx) {
4961
+ if (rf & 1) {
4962
+ var _r9_1 = i0__namespace.ɵɵgetCurrentView();
4963
+ i0__namespace.ɵɵelementStart(0, "button", 18);
4964
+ i0__namespace.ɵɵlistener("click", function MapProximityToolComponent_button_7_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.copyTextToClipboard(); });
4965
+ i0__namespace.ɵɵelement(1, "mat-icon", 19);
4966
+ i0__namespace.ɵɵelementEnd();
4967
+ }
4968
+ }
4969
+ exports.MapProximityToolComponent = /** @class */ (function () {
4970
+ function MapProximityToolComponent(mapState, mapProximityState, languageService, messageService) {
4971
+ this.mapState = mapState;
4972
+ this.mapProximityState = mapProximityState;
4973
+ this.languageService = languageService;
4974
+ this.messageService = messageService;
4975
+ this.subs$$ = [];
4976
+ /**
4977
+ * Table template
4978
+ * @internal
4979
+ */
4980
+ this.tableTemplate = {
4981
+ selection: true,
4982
+ selectMany: false,
4983
+ selectionCheckbox: false,
4984
+ sort: true,
4985
+ columns: [
4986
+ {
4987
+ name: 'element',
4988
+ title: this.languageService.translate.instant('igo.integration.map-proximity-tool.feature'),
4989
+ valueAccessor: function (localFeature) {
4990
+ return localFeature.properties.element;
4991
+ }
4992
+ },
4993
+ {
4994
+ name: 'distance',
4995
+ title: this.languageService.translate.instant('igo.integration.map-proximity-tool.distance'),
4996
+ valueAccessor: function (localFeature) {
4997
+ return utils.NumberUtils.roundToNDecimal(localFeature.properties.distance, 1) + "m";
4998
+ }
4999
+ }
5000
+ ]
5001
+ };
5002
+ }
5003
+ Object.defineProperty(MapProximityToolComponent.prototype, "maxDistance", {
5004
+ get: function () {
5005
+ return this.mapProximityState.proximityRadiusValue$.value;
5006
+ },
5007
+ set: function (value) {
5008
+ this.mapProximityState.proximityRadiusValue$.next(value);
5009
+ },
5010
+ enumerable: false,
5011
+ configurable: true
5012
+ });
5013
+ Object.defineProperty(MapProximityToolComponent.prototype, "map", {
5014
+ get: function () {
5015
+ return this.mapState.map;
5016
+ },
5017
+ enumerable: false,
5018
+ configurable: true
5019
+ });
5020
+ MapProximityToolComponent.prototype.ngOnInit = function () {
5021
+ var _this = this;
5022
+ this.mapProximityState.enabled$.next(true);
5023
+ this.userDefinedFollowPosition = this.map.geolocationController.followPosition === true;
5024
+ this.userDefinedMapCenter = this.map.mapCenter$.value === true;
5025
+ this.subs$$.push(this.mapProximityState.proximitylocationType$.subscribe(function (v) {
5026
+ _this.map.mapCenter$.next(v !== 'geolocation');
5027
+ if (v === 'geolocation') {
5028
+ _this.map.geolocationController.followPosition = true;
4274
5029
  }
4275
5030
  else {
4276
- if (!_this.inLambert2[code]) {
4277
- _this.projections$.next(modifiedProj.concat(projection));
4278
- _this.inLambert2[code] = true;
4279
- }
5031
+ _this.map.geolocationController.followPosition = false;
4280
5032
  }
4281
- });
5033
+ }));
4282
5034
  };
4283
- return AdvancedCoordinatesComponent;
5035
+ MapProximityToolComponent.prototype.ngOnDestroy = function () {
5036
+ this.mapProximityState.enabled$.next(false);
5037
+ this.map.mapCenter$.next(this.userDefinedMapCenter);
5038
+ this.subs$$.map(function (s) { return s.unsubscribe(); });
5039
+ this.map.geolocationController.followPosition = this.userDefinedFollowPosition;
5040
+ };
5041
+ MapProximityToolComponent.prototype.onLocationTypeChange = function (e) {
5042
+ this.mapProximityState.proximitylocationType$.next(e.value);
5043
+ };
5044
+ /**
5045
+ * Copy the coordinates to a clipboard
5046
+ */
5047
+ MapProximityToolComponent.prototype.copyTextToClipboard = function () {
5048
+ var _a;
5049
+ var successful = utils.Clipboard.copy((_a = this.mapProximityState.currentPositionCoordinate$) === null || _a === void 0 ? void 0 : _a.value.toString());
5050
+ if (successful) {
5051
+ var translate = this.languageService.translate;
5052
+ var title = translate.instant('igo.integration.map-proximity-tool.copyTitle');
5053
+ var msg = translate.instant('igo.integration.map-proximity-tool.copyMsg');
5054
+ this.messageService.success(msg, title);
5055
+ }
5056
+ };
5057
+ return MapProximityToolComponent;
4284
5058
  }());
4285
- AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.LanguageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.MessageService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.StorageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.ConfigService), i0__namespace.ɵɵdirectiveInject(i3__namespace$1.FormBuilder)); };
4286
- AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
5059
+ exports.MapProximityToolComponent.ɵfac = function MapProximityToolComponent_Factory(t) { return new (t || exports.MapProximityToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(MapProximityState), i0__namespace.ɵɵdirectiveInject(i2__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(i2__namespace.MessageService)); };
5060
+ exports.MapProximityToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.MapProximityToolComponent, selectors: [["igo-map-proximity-tool"]], viewQuery: function MapProximityToolComponent_Query(rf, ctx) {
4287
5061
  if (rf & 1) {
4288
- i0__namespace.ɵɵtemplate(0, AdvancedCoordinatesComponent_mat_form_field_0_Template, 4, 4, "mat-form-field", 0);
4289
- i0__namespace.ɵɵtemplate(1, AdvancedCoordinatesComponent_ng_template_1_Template, 4, 4, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
4290
- i0__namespace.ɵɵtemplate(3, AdvancedCoordinatesComponent_mat_form_field_3_Template, 4, 4, "mat-form-field", 2);
4291
- i0__namespace.ɵɵtemplate(4, AdvancedCoordinatesComponent_ng_template_4_Template, 4, 4, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
4292
- i0__namespace.ɵɵelementStart(6, "button", 4);
4293
- i0__namespace.ɵɵlistener("click", function AdvancedCoordinatesComponent_Template_button_click_6_listener() { return ctx.copyTextToClipboard(); });
4294
- i0__namespace.ɵɵelement(7, "mat-icon", 5);
4295
- i0__namespace.ɵɵtext(8);
4296
- i0__namespace.ɵɵpipe(9, "translate");
5062
+ i0__namespace.ɵɵviewQuery(_c0$1, 7);
5063
+ }
5064
+ if (rf & 2) {
5065
+ var _t = void 0;
5066
+ i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.table = _t.first);
5067
+ }
5068
+ }, decls: 31, vars: 35, consts: [[1, "table-compact", 3, "store", "template"], ["table", ""], ["class", "coordinates", 4, "ngIf"], ["class", "coordinates2", 4, "ngIf"], ["mat-icon-button", "", 3, "click", 4, "ngIf"], [1, "title-container"], [1, "title", "mat-typography"], [1, "igo-input-container", "mat-typography"], [3, "change"], ["value", "geolocation", 3, "checked"], ["value", "mapCenter", 3, "checked"], [1, "radius-unit"], ["appearance", "outline", "floatLabel", "always", 1, "measure-field"], ["type", "number", "pattern", "[0-9]*", "matInput", "", 3, "ngModel", "placeholder", "ngModelChange"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["mat-icon-button", "", 3, "click"], ["svgIcon", "content-copy"]], template: function MapProximityToolComponent_Template(rf, ctx) {
5069
+ if (rf & 1) {
5070
+ i0__namespace.ɵɵelement(0, "igo-entity-table", 0, 1);
5071
+ i0__namespace.ɵɵelement(2, "br");
5072
+ i0__namespace.ɵɵtemplate(3, MapProximityToolComponent_mat_form_field_3_Template, 4, 4, "mat-form-field", 2);
5073
+ i0__namespace.ɵɵpipe(4, "async");
5074
+ i0__namespace.ɵɵtemplate(5, MapProximityToolComponent_mat_form_field_5_Template, 4, 4, "mat-form-field", 3);
5075
+ i0__namespace.ɵɵpipe(6, "async");
5076
+ i0__namespace.ɵɵtemplate(7, MapProximityToolComponent_button_7_Template, 2, 0, "button", 4);
5077
+ i0__namespace.ɵɵpipe(8, "async");
5078
+ i0__namespace.ɵɵpipe(9, "async");
5079
+ i0__namespace.ɵɵelementStart(10, "div", 5);
5080
+ i0__namespace.ɵɵelementStart(11, "mat-label", 6);
5081
+ i0__namespace.ɵɵtext(12);
5082
+ i0__namespace.ɵɵpipe(13, "translate");
4297
5083
  i0__namespace.ɵɵelementEnd();
4298
- i0__namespace.ɵɵelementStart(10, "form", 6);
4299
- i0__namespace.ɵɵelementStart(11, "mat-form-field", 7);
4300
- i0__namespace.ɵɵelementStart(12, "mat-label");
4301
- i0__namespace.ɵɵtext(13);
4302
- i0__namespace.ɵɵpipe(14, "translate");
4303
5084
  i0__namespace.ɵɵelementEnd();
4304
- i0__namespace.ɵɵelementStart(15, "mat-select", 8);
4305
- i0__namespace.ɵɵlistener("valueChange", function AdvancedCoordinatesComponent_Template_mat_select_valueChange_15_listener($event) { return ctx.inputProj = $event; });
4306
- i0__namespace.ɵɵtemplate(16, AdvancedCoordinatesComponent_mat_option_16_Template, 2, 2, "mat-option", 9);
5085
+ i0__namespace.ɵɵelementStart(14, "div", 7);
5086
+ i0__namespace.ɵɵelementStart(15, "mat-radio-group", 8);
5087
+ i0__namespace.ɵɵlistener("change", function MapProximityToolComponent_Template_mat_radio_group_change_15_listener($event) { return ctx.onLocationTypeChange($event); });
5088
+ i0__namespace.ɵɵelementStart(16, "mat-radio-button", 9);
4307
5089
  i0__namespace.ɵɵpipe(17, "async");
5090
+ i0__namespace.ɵɵtext(18);
5091
+ i0__namespace.ɵɵpipe(19, "translate");
4308
5092
  i0__namespace.ɵɵelementEnd();
4309
- i0__namespace.ɵɵelementEnd();
4310
- i0__namespace.ɵɵelementStart(18, "mat-slide-toggle", 10);
4311
- i0__namespace.ɵɵlistener("change", function AdvancedCoordinatesComponent_Template_mat_slide_toggle_change_18_listener($event) { return ctx.displayCenter($event.checked); });
4312
- i0__namespace.ɵɵtext(19);
4313
- i0__namespace.ɵɵpipe(20, "translate");
4314
- i0__namespace.ɵɵelementEnd();
4315
- i0__namespace.ɵɵelementEnd();
4316
- i0__namespace.ɵɵelementStart(21, "p", 11);
5093
+ i0__namespace.ɵɵelementStart(20, "mat-radio-button", 10);
5094
+ i0__namespace.ɵɵpipe(21, "async");
4317
5095
  i0__namespace.ɵɵtext(22);
4318
5096
  i0__namespace.ɵɵpipe(23, "translate");
4319
5097
  i0__namespace.ɵɵelementEnd();
4320
- i0__namespace.ɵɵelementStart(24, "p", 11);
4321
- i0__namespace.ɵɵtext(25);
4322
- i0__namespace.ɵɵpipe(26, "translate");
4323
- i0__namespace.ɵɵpipe(27, "async");
4324
5098
  i0__namespace.ɵɵelementEnd();
4325
- i0__namespace.ɵɵelementStart(28, "p", 11);
4326
- i0__namespace.ɵɵtext(29);
5099
+ i0__namespace.ɵɵelementEnd();
5100
+ i0__namespace.ɵɵelementStart(24, "div", 11);
5101
+ i0__namespace.ɵɵelementStart(25, "mat-form-field", 12);
5102
+ i0__namespace.ɵɵelementStart(26, "mat-label");
5103
+ i0__namespace.ɵɵtext(27);
5104
+ i0__namespace.ɵɵpipe(28, "translate");
5105
+ i0__namespace.ɵɵelementEnd();
5106
+ i0__namespace.ɵɵelementStart(29, "input", 13);
5107
+ i0__namespace.ɵɵlistener("ngModelChange", function MapProximityToolComponent_Template_input_ngModelChange_29_listener($event) { return ctx.maxDistance = $event; });
4327
5108
  i0__namespace.ɵɵpipe(30, "translate");
4328
- i0__namespace.ɵɵpipe(31, "number");
5109
+ i0__namespace.ɵɵelementEnd();
5110
+ i0__namespace.ɵɵelementEnd();
4329
5111
  i0__namespace.ɵɵelementEnd();
4330
5112
  }
4331
5113
  if (rf & 2) {
4332
- var _r1 = i0__namespace.ɵɵreference(2);
4333
- var _r4 = i0__namespace.ɵɵreference(5);
4334
- i0__namespace.ɵɵproperty("ngIf", ctx.units)("ngIfElse", _r1);
5114
+ i0__namespace.ɵɵproperty("store", ctx.mapProximityState.proximityFeatureStore)("template", ctx.tableTemplate);
4335
5115
  i0__namespace.ɵɵadvance(3);
4336
- i0__namespace.ɵɵproperty("ngIf", ctx.units)("ngIfElse", _r4);
5116
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(4, 13, ctx.mapProximityState.currentPositionCoordinate$));
5117
+ i0__namespace.ɵɵadvance(2);
5118
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(6, 15, ctx.mapProximityState.currentPositionCoordinate$));
5119
+ i0__namespace.ɵɵadvance(2);
5120
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(8, 17, ctx.mapProximityState.currentPositionCoordinate$) && i0__namespace.ɵɵpipeBind1(9, 19, ctx.mapProximityState.currentPositionCoordinate$).length);
4337
5121
  i0__namespace.ɵɵadvance(5);
4338
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(9, 18, "igo.integration.advanced-map-tool.advanced-coordinates.copy"), "\n");
5122
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(13, 21, "igo.integration.map-proximity-tool.method"));
5123
+ i0__namespace.ɵɵadvance(4);
5124
+ i0__namespace.ɵɵproperty("checked", i0__namespace.ɵɵpipeBind1(17, 23, ctx.mapProximityState.proximitylocationType$) === "geolocation");
4339
5125
  i0__namespace.ɵɵadvance(2);
4340
- i0__namespace.ɵɵproperty("formGroup", ctx.form);
4341
- i0__namespace.ɵɵadvance(3);
4342
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(14, 20, "igo.integration.advanced-map-tool.advanced-coordinates.coordSystem"));
5126
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(19, 25, "igo.integration.map-proximity-tool.geolocation"));
4343
5127
  i0__namespace.ɵɵadvance(2);
4344
- i0__namespace.ɵɵproperty("value", ctx.inputProj);
4345
- i0__namespace.ɵɵadvance(1);
4346
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(17, 22, ctx.projections$));
5128
+ i0__namespace.ɵɵproperty("checked", i0__namespace.ɵɵpipeBind1(21, 27, ctx.mapProximityState.proximitylocationType$) === "mapCenter");
4347
5129
  i0__namespace.ɵɵadvance(2);
4348
- i0__namespace.ɵɵproperty("checked", ctx.center)("labelPosition", "before");
4349
- i0__namespace.ɵɵadvance(1);
4350
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(20, 24, "igo.integration.advanced-map-tool.advanced-coordinates.center"), " ");
4351
- i0__namespace.ɵɵadvance(3);
4352
- i0__namespace.ɵɵtextInterpolate2("", i0__namespace.ɵɵpipeBind1(23, 26, "igo.integration.advanced-map-tool.advanced-coordinates.zoom"), " ", ctx.map.viewController.getZoom(), "");
4353
- i0__namespace.ɵɵadvance(3);
4354
- i0__namespace.ɵɵtextInterpolate2("", i0__namespace.ɵɵpipeBind1(26, 28, "igo.integration.advanced-map-tool.advanced-coordinates.scale"), " ", i0__namespace.ɵɵpipeBind1(27, 30, ctx.formattedScale$), "");
4355
- i0__namespace.ɵɵadvance(4);
4356
- i0__namespace.ɵɵtextInterpolate2("", i0__namespace.ɵɵpipeBind1(30, 32, "igo.integration.advanced-map-tool.advanced-coordinates.resolution"), " ", i0__namespace.ɵɵpipeBind2(31, 34, ctx.map.viewController.getResolution(), "1.0-0"), "");
4357
- }
4358
- }, directives: [i4__namespace.NgIf, i3__namespace.MatButton, i6__namespace.MatIcon, i3__namespace$1.ɵNgNoValidate, i3__namespace$1.NgControlStatusGroup, i3__namespace$1.FormGroupDirective, i6__namespace$1.MatFormField, i6__namespace$1.MatLabel, i7__namespace$2.MatSelect, i4__namespace.NgForOf, i10__namespace.MatSlideToggle, i10__namespace$1.MatInput, i8__namespace$1.MatOption], pipes: [i8__namespace.TranslatePipe, i4__namespace.AsyncPipe, i4__namespace.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}"] });
4359
- (function () {
4360
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AdvancedCoordinatesComponent, [{
4361
- type: i0.Component,
4362
- args: [{
4363
- selector: 'igo-advanced-coordinates',
4364
- templateUrl: './advanced-coordinates.component.html',
4365
- styleUrls: ['./advanced-coordinates.component.scss']
4366
- }]
4367
- }], function () { return [{ type: MapState }, { type: i2__namespace$2.LanguageService }, { type: i2__namespace$2.MessageService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$2.StorageService }, { type: i2__namespace$2.ConfigService }, { type: i3__namespace$1.FormBuilder }]; }, { projectionsLimitations: [{
4368
- type: i0.Input
4369
- }] });
4370
- })();
4371
-
4372
- exports.AdvancedMapToolComponent = /** @class */ (function () {
4373
- function AdvancedMapToolComponent() {
4374
- }
4375
- return AdvancedMapToolComponent;
4376
- }());
4377
- exports.AdvancedMapToolComponent.ɵfac = function AdvancedMapToolComponent_Factory(t) { return new (t || exports.AdvancedMapToolComponent)(); };
4378
- exports.AdvancedMapToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.AdvancedMapToolComponent, selectors: [["igo-advanced-map-tool"]], decls: 10, vars: 6, consts: [[1, "nameOfTool"], [1, "advanced-tool-line"]], template: function AdvancedMapToolComponent_Template(rf, ctx) {
4379
- if (rf & 1) {
4380
- i0__namespace.ɵɵelementStart(0, "h4", 0);
4381
- i0__namespace.ɵɵtext(1);
4382
- i0__namespace.ɵɵpipe(2, "translate");
4383
- i0__namespace.ɵɵelementEnd();
4384
- i0__namespace.ɵɵelement(3, "igo-advanced-swipe");
4385
- i0__namespace.ɵɵelement(4, "mat-divider", 1);
4386
- i0__namespace.ɵɵelementStart(5, "h4", 0);
4387
- i0__namespace.ɵɵtext(6);
4388
- i0__namespace.ɵɵpipe(7, "translate");
4389
- i0__namespace.ɵɵelementEnd();
4390
- i0__namespace.ɵɵelement(8, "igo-advanced-coordinates");
4391
- i0__namespace.ɵɵelement(9, "mat-divider", 1);
4392
- }
4393
- if (rf & 2) {
4394
- i0__namespace.ɵɵadvance(1);
4395
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, "igo.integration.advanced-map-tool.advanced-swipe.swipe-tool"));
5130
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(23, 29, "igo.integration.map-proximity-tool.mapCenter"));
4396
5131
  i0__namespace.ɵɵadvance(5);
4397
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 4, "igo.integration.advanced-map-tool.advanced-coordinates.coordinates"));
4398
- }
4399
- }, directives: [AdvancedSwipeComponent, i9__namespace.MatDivider, AdvancedCoordinatesComponent], pipes: [i8__namespace.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:bold;font-size:small;margin:15px 10px 0}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}"] });
4400
- exports.AdvancedMapToolComponent = __decorate([
4401
- i7.ToolComponent({
4402
- name: 'advancedMap',
4403
- title: 'igo.integration.tools.advancedMap',
4404
- icon: 'toolbox'
5132
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(28, 31, "igo.integration.map-proximity-tool.radiusM"));
5133
+ i0__namespace.ɵɵadvance(2);
5134
+ i0__namespace.ɵɵpropertyInterpolate("placeholder", i0__namespace.ɵɵpipeBind1(30, 33, "igo.integration.map-proximity-tool.radiusM"));
5135
+ i0__namespace.ɵɵproperty("ngModel", ctx.maxDistance);
5136
+ }
5137
+ }, directives: [i4__namespace.EntityTableComponent, i5__namespace.NgIf, i6__namespace$1.MatLabel, i7__namespace$2.MatRadioGroup, i7__namespace$2.MatRadioButton, i6__namespace$1.MatFormField, i3__namespace$1.NumberValueAccessor, i10__namespace$1.MatInput, i3__namespace$1.DefaultValueAccessor, i3__namespace$1.PatternValidator, i3__namespace$1.NgControlStatus, i3__namespace$1.NgModel, i3__namespace.MatButton, i6__namespace.MatIcon], pipes: [i5__namespace.AsyncPipe, i8__namespace.TranslatePipe], styles: [".table-compact[_ngcontent-%COMP%]{height:auto}.table-compact[_ngcontent-%COMP%] .mat-header-cell.mat-column-selectionCheckbox{width:52px}textarea[_ngcontent-%COMP%]{resize:none}mat-form-field[_ngcontent-%COMP%]{padding:10px 15px}mat-form-field.coordinates[_ngcontent-%COMP%]{width:110px}mat-form-field.coordinates2[_ngcontent-%COMP%]{width:100px;padding:0 10px 0 3px}mat-form-field.igo-input-container[_ngcontent-%COMP%]{width:60%;padding:0 15px}.radius-unit[_ngcontent-%COMP%]{display:flex;width:90%;margin-left:2px;padding:5px}.radius-field[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;width:60%}.title-container[_ngcontent-%COMP%]{padding:10px}.title[_ngcontent-%COMP%]{margin-left:5px;font-size:medium;font-size:initial}.mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:10px}.mat-radio-button[_ngcontent-%COMP%]{display:inline-flex;position:relative;margin-left:16px;margin-top:10px}"] });
5138
+ exports.MapProximityToolComponent = __decorate([
5139
+ i4.ToolComponent({
5140
+ name: 'map-proximity',
5141
+ title: 'igo.integration.tools.closestFeature',
5142
+ icon: 'radius'
4405
5143
  })
4406
5144
  /**
4407
5145
  * Tool to handle the advanced map tools
4408
5146
  */
4409
- ], exports.AdvancedMapToolComponent);
5147
+ ], exports.MapProximityToolComponent);
4410
5148
  (function () {
4411
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(exports.AdvancedMapToolComponent, [{
5149
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(exports.MapProximityToolComponent, [{
4412
5150
  type: i0.Component,
4413
5151
  args: [{
4414
- selector: 'igo-advanced-map-tool',
4415
- templateUrl: './advanced-map-tool.component.html',
4416
- styleUrls: ['./advanced-map-tool.component.scss']
5152
+ selector: 'igo-map-proximity-tool',
5153
+ templateUrl: './map-proximity-tool.component.html',
5154
+ styleUrls: ['./map-proximity-tool.component.scss']
4417
5155
  }]
4418
- }], null, null);
5156
+ }], function () { return [{ type: MapState }, { type: MapProximityState }, { type: i2__namespace.LanguageService }, { type: i2__namespace.MessageService }]; }, { table: [{
5157
+ type: i0.ViewChild,
5158
+ args: ['table', { static: true }]
5159
+ }] });
4419
5160
  })();
4420
5161
 
4421
5162
  var IgoAppMapModule = /** @class */ (function () {
@@ -4436,28 +5177,30 @@
4436
5177
  i3$1.ReactiveFormsModule,
4437
5178
  buttonToggle.MatButtonToggleModule,
4438
5179
  i9.MatDividerModule,
4439
- i7$2.MatSelectModule,
5180
+ i7$1.MatSelectModule,
4440
5181
  i8$1.MatOptionModule,
4441
5182
  i6$1.MatFormFieldModule,
4442
5183
  i10$1.MatInputModule,
4443
5184
  checkbox.MatCheckboxModule,
4444
- i7.IgoSpinnerModule,
4445
- i4.CommonModule,
4446
- i5.MatTabsModule,
4447
- i7$1.MatListModule,
5185
+ i4.IgoSpinnerModule,
5186
+ i5.CommonModule,
5187
+ i5$1.MatTabsModule,
5188
+ i7.MatListModule,
4448
5189
  i6.MatIconModule,
4449
- i2$2.IgoLanguageModule,
4450
- i1.IgoLayerModule,
4451
- i1.IgoMetadataModule,
4452
- i1.IgoDownloadModule,
4453
- i1.IgoImportExportModule,
4454
- i1.IgoFilterModule,
4455
- i2.IgoContextModule,
5190
+ i2.IgoLanguageModule,
5191
+ i1$1.IgoLayerModule,
5192
+ i1$1.IgoMetadataModule,
5193
+ i1$1.IgoDownloadModule,
5194
+ i1$1.IgoImportExportModule,
5195
+ i1$1.IgoFilterModule,
5196
+ i7$2.MatRadioModule,
5197
+ i1.IgoContextModule,
4456
5198
  IgoAppWorkspaceModule,
4457
5199
  i10.MatSlideToggleModule,
4458
5200
  i6$2.MatMenuModule,
4459
5201
  i3.MatButtonModule,
4460
- i4$1.MatTooltipModule
5202
+ i4$1.MatTooltipModule,
5203
+ i4.IgoEntityTableModule
4461
5204
  ]] });
4462
5205
  (function () {
4463
5206
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppMapModule, [{
@@ -4468,64 +5211,70 @@
4468
5211
  i3$1.ReactiveFormsModule,
4469
5212
  buttonToggle.MatButtonToggleModule,
4470
5213
  i9.MatDividerModule,
4471
- i7$2.MatSelectModule,
5214
+ i7$1.MatSelectModule,
4472
5215
  i8$1.MatOptionModule,
4473
5216
  i6$1.MatFormFieldModule,
4474
5217
  i10$1.MatInputModule,
4475
5218
  checkbox.MatCheckboxModule,
4476
- i7.IgoSpinnerModule,
4477
- i4.CommonModule,
4478
- i5.MatTabsModule,
4479
- i7$1.MatListModule,
5219
+ i4.IgoSpinnerModule,
5220
+ i5.CommonModule,
5221
+ i5$1.MatTabsModule,
5222
+ i7.MatListModule,
4480
5223
  i6.MatIconModule,
4481
- i2$2.IgoLanguageModule,
4482
- i1.IgoLayerModule,
4483
- i1.IgoMetadataModule,
4484
- i1.IgoDownloadModule,
4485
- i1.IgoImportExportModule,
4486
- i1.IgoFilterModule,
4487
- i2.IgoContextModule,
5224
+ i2.IgoLanguageModule,
5225
+ i1$1.IgoLayerModule,
5226
+ i1$1.IgoMetadataModule,
5227
+ i1$1.IgoDownloadModule,
5228
+ i1$1.IgoImportExportModule,
5229
+ i1$1.IgoFilterModule,
5230
+ i7$2.MatRadioModule,
5231
+ i1.IgoContextModule,
4488
5232
  IgoAppWorkspaceModule,
4489
5233
  i10.MatSlideToggleModule,
4490
5234
  i6$2.MatMenuModule,
4491
5235
  i3.MatButtonModule,
4492
- i4$1.MatTooltipModule
5236
+ i4$1.MatTooltipModule,
5237
+ i4.IgoEntityTableModule
4493
5238
  ],
4494
- declarations: [exports.AdvancedMapToolComponent, exports.MapToolComponent,
5239
+ declarations: [exports.AdvancedMapToolComponent, exports.MapProximityToolComponent, exports.MapToolComponent,
4495
5240
  exports.MapToolsComponent, exports.MapDetailsToolComponent, exports.MapLegendToolComponent, AdvancedSwipeComponent, AdvancedCoordinatesComponent],
4496
- exports: [exports.AdvancedMapToolComponent, exports.MapToolComponent, exports.MapToolsComponent, exports.MapDetailsToolComponent, exports.MapLegendToolComponent],
5241
+ exports: [exports.AdvancedMapToolComponent, exports.MapProximityToolComponent, exports.MapToolComponent,
5242
+ exports.MapToolsComponent, exports.MapDetailsToolComponent, exports.MapLegendToolComponent],
4497
5243
  schemas: [i0.CUSTOM_ELEMENTS_SCHEMA]
4498
5244
  }]
4499
5245
  }], null, null);
4500
5246
  })();
4501
5247
  (function () {
4502
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppMapModule, { declarations: [exports.AdvancedMapToolComponent, exports.MapToolComponent,
5248
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppMapModule, { declarations: [exports.AdvancedMapToolComponent, exports.MapProximityToolComponent, exports.MapToolComponent,
4503
5249
  exports.MapToolsComponent, exports.MapDetailsToolComponent, exports.MapLegendToolComponent, AdvancedSwipeComponent, AdvancedCoordinatesComponent], imports: [i3$1.FormsModule,
4504
5250
  i3$1.ReactiveFormsModule,
4505
5251
  buttonToggle.MatButtonToggleModule,
4506
5252
  i9.MatDividerModule,
4507
- i7$2.MatSelectModule,
5253
+ i7$1.MatSelectModule,
4508
5254
  i8$1.MatOptionModule,
4509
5255
  i6$1.MatFormFieldModule,
4510
5256
  i10$1.MatInputModule,
4511
5257
  checkbox.MatCheckboxModule,
4512
- i7.IgoSpinnerModule,
4513
- i4.CommonModule,
4514
- i5.MatTabsModule,
4515
- i7$1.MatListModule,
5258
+ i4.IgoSpinnerModule,
5259
+ i5.CommonModule,
5260
+ i5$1.MatTabsModule,
5261
+ i7.MatListModule,
4516
5262
  i6.MatIconModule,
4517
- i2$2.IgoLanguageModule,
4518
- i1.IgoLayerModule,
4519
- i1.IgoMetadataModule,
4520
- i1.IgoDownloadModule,
4521
- i1.IgoImportExportModule,
4522
- i1.IgoFilterModule,
4523
- i2.IgoContextModule,
5263
+ i2.IgoLanguageModule,
5264
+ i1$1.IgoLayerModule,
5265
+ i1$1.IgoMetadataModule,
5266
+ i1$1.IgoDownloadModule,
5267
+ i1$1.IgoImportExportModule,
5268
+ i1$1.IgoFilterModule,
5269
+ i7$2.MatRadioModule,
5270
+ i1.IgoContextModule,
4524
5271
  IgoAppWorkspaceModule,
4525
5272
  i10.MatSlideToggleModule,
4526
5273
  i6$2.MatMenuModule,
4527
5274
  i3.MatButtonModule,
4528
- i4$1.MatTooltipModule], exports: [exports.AdvancedMapToolComponent, exports.MapToolComponent, exports.MapToolsComponent, exports.MapDetailsToolComponent, exports.MapLegendToolComponent] });
5275
+ i4$1.MatTooltipModule,
5276
+ i4.IgoEntityTableModule], exports: [exports.AdvancedMapToolComponent, exports.MapProximityToolComponent, exports.MapToolComponent,
5277
+ exports.MapToolsComponent, exports.MapDetailsToolComponent, exports.MapLegendToolComponent] });
4529
5278
  })();
4530
5279
 
4531
5280
  /**
@@ -4538,7 +5287,7 @@
4538
5287
  /**
4539
5288
  * Store that holds the measures
4540
5289
  */
4541
- this.store = new i1.FeatureStore([], {
5290
+ this.store = new i1$1.FeatureStore([], {
4542
5291
  map: this.mapState.map
4543
5292
  });
4544
5293
  this.mapState.map.layers$.subscribe(function (layers) {
@@ -4599,9 +5348,9 @@
4599
5348
  if (rf & 2) {
4600
5349
  i0__namespace.ɵɵproperty("store", ctx.store)("map", ctx.map);
4601
5350
  }
4602
- }, directives: [i1__namespace.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
5351
+ }, directives: [i1__namespace$1.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
4603
5352
  exports.MeasurerToolComponent = __decorate([
4604
- i7.ToolComponent({
5353
+ i4.ToolComponent({
4605
5354
  name: 'measurer',
4606
5355
  title: 'igo.integration.tools.measurer',
4607
5356
  icon: 'ruler'
@@ -4629,14 +5378,14 @@
4629
5378
  IgoAppMeasurerToolModule.ɵfac = function IgoAppMeasurerToolModule_Factory(t) { return new (t || IgoAppMeasurerToolModule)(); };
4630
5379
  IgoAppMeasurerToolModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppMeasurerToolModule });
4631
5380
  IgoAppMeasurerToolModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
4632
- i1.IgoMeasurerModule
5381
+ i1$1.IgoMeasurerModule
4633
5382
  ]] });
4634
5383
  (function () {
4635
5384
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppMeasurerToolModule, [{
4636
5385
  type: i0.NgModule,
4637
5386
  args: [{
4638
5387
  imports: [
4639
- i1.IgoMeasurerModule
5388
+ i1$1.IgoMeasurerModule
4640
5389
  ],
4641
5390
  declarations: [exports.MeasurerToolComponent],
4642
5391
  exports: [exports.MeasurerToolComponent],
@@ -4644,7 +5393,7 @@
4644
5393
  }]
4645
5394
  }], null, null);
4646
5395
  })();
4647
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppMeasurerToolModule, { declarations: [exports.MeasurerToolComponent], imports: [i1.IgoMeasurerModule], exports: [exports.MeasurerToolComponent] }); })();
5396
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppMeasurerToolModule, { declarations: [exports.MeasurerToolComponent], imports: [i1$1.IgoMeasurerModule], exports: [exports.MeasurerToolComponent] }); })();
4648
5397
 
4649
5398
  var IgoAppMeasureModule = /** @class */ (function () {
4650
5399
  function IgoAppMeasureModule() {
@@ -4689,9 +5438,9 @@
4689
5438
  if (rf & 2) {
4690
5439
  i0__namespace.ɵɵproperty("map", ctx.map);
4691
5440
  }
4692
- }, directives: [i1__namespace.PrintComponent], encapsulation: 2 });
5441
+ }, directives: [i1__namespace$1.PrintComponent], encapsulation: 2 });
4693
5442
  exports.PrintToolComponent = __decorate([
4694
- i7.ToolComponent({
5443
+ i4.ToolComponent({
4695
5444
  name: 'print',
4696
5445
  title: 'igo.integration.tools.print',
4697
5446
  icon: 'printer'
@@ -4720,19 +5469,19 @@
4720
5469
  }());
4721
5470
  IgoAppPrintModule.ɵfac = function IgoAppPrintModule_Factory(t) { return new (t || IgoAppPrintModule)(); };
4722
5471
  IgoAppPrintModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppPrintModule });
4723
- IgoAppPrintModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoPrintModule]] });
5472
+ IgoAppPrintModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoPrintModule]] });
4724
5473
  (function () {
4725
5474
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppPrintModule, [{
4726
5475
  type: i0.NgModule,
4727
5476
  args: [{
4728
- imports: [i1.IgoPrintModule],
5477
+ imports: [i1$1.IgoPrintModule],
4729
5478
  declarations: [exports.PrintToolComponent],
4730
5479
  exports: [exports.PrintToolComponent],
4731
5480
  schemas: [i0.CUSTOM_ELEMENTS_SCHEMA]
4732
5481
  }]
4733
5482
  }], null, null);
4734
5483
  })();
4735
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppPrintModule, { declarations: [exports.PrintToolComponent], imports: [i1.IgoPrintModule], exports: [exports.PrintToolComponent] }); })();
5484
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppPrintModule, { declarations: [exports.PrintToolComponent], imports: [i1$1.IgoPrintModule], exports: [exports.PrintToolComponent] }); })();
4736
5485
 
4737
5486
  /**
4738
5487
  * Service that holds the state of the search module
@@ -4755,7 +5504,7 @@
4755
5504
  /**
4756
5505
  * Store that holds the search results
4757
5506
  */
4758
- this.store = new i7.EntityStore([]);
5507
+ this.store = new i4.EntityStore([]);
4759
5508
  var searchOverlayStyle = this.configService.getConfig('searchOverlayStyle');
4760
5509
  if (searchOverlayStyle) {
4761
5510
  this.searchOverlayStyle = searchOverlayStyle.base;
@@ -4784,14 +5533,14 @@
4784
5533
  var filterClauseFunc = function (record) {
4785
5534
  return record.entity.meta.score === 100;
4786
5535
  };
4787
- return new i7.EntityStoreFilterCustomFuncStrategy({ filterClauseFunc: filterClauseFunc });
5536
+ return new i4.EntityStoreFilterCustomFuncStrategy({ filterClauseFunc: filterClauseFunc });
4788
5537
  };
4789
5538
  /**
4790
5539
  * Activate custom strategy
4791
5540
  *
4792
5541
  */
4793
5542
  SearchState.prototype.activateCustomFilterTermStrategy = function () {
4794
- var strategy = this.store.getStrategyOfType(i7.EntityStoreFilterCustomFuncStrategy);
5543
+ var strategy = this.store.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
4795
5544
  if (strategy !== undefined) {
4796
5545
  strategy.activate();
4797
5546
  }
@@ -4801,7 +5550,7 @@
4801
5550
  *
4802
5551
  */
4803
5552
  SearchState.prototype.deactivateCustomFilterTermStrategy = function () {
4804
- var strategy = this.store.getStrategyOfType(i7.EntityStoreFilterCustomFuncStrategy);
5553
+ var strategy = this.store.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
4805
5554
  if (strategy !== undefined) {
4806
5555
  strategy.deactivate();
4807
5556
  }
@@ -4831,7 +5580,7 @@
4831
5580
  };
4832
5581
  return SearchState;
4833
5582
  }());
4834
- SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0__namespace.ɵɵinject(i1__namespace.SearchSourceService), i0__namespace.ɵɵinject(i2__namespace$2.StorageService), i0__namespace.ɵɵinject(i2__namespace$2.ConfigService)); };
5583
+ SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0__namespace.ɵɵinject(i1__namespace$1.SearchSourceService), i0__namespace.ɵɵinject(i2__namespace.StorageService), i0__namespace.ɵɵinject(i2__namespace.ConfigService)); };
4835
5584
  SearchState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: SearchState, factory: SearchState.ɵfac, providedIn: 'root' });
4836
5585
  (function () {
4837
5586
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchState, [{
@@ -4839,7 +5588,7 @@
4839
5588
  args: [{
4840
5589
  providedIn: 'root'
4841
5590
  }]
4842
- }], function () { return [{ type: i1__namespace.SearchSourceService }, { type: i2__namespace$2.StorageService }, { type: i2__namespace$2.ConfigService }]; }, null);
5591
+ }], function () { return [{ type: i1__namespace$1.SearchSourceService }, { type: i2__namespace.StorageService }, { type: i2__namespace.ConfigService }]; }, null);
4843
5592
  })();
4844
5593
 
4845
5594
  var SearchBarBindingDirective = /** @class */ (function () {
@@ -4890,7 +5639,7 @@
4890
5639
  };
4891
5640
  return SearchBarBindingDirective;
4892
5641
  }());
4893
- SearchBarBindingDirective.ɵfac = function SearchBarBindingDirective_Factory(t) { return new (t || SearchBarBindingDirective)(i0__namespace.ɵɵdirectiveInject(i1__namespace.SearchBarComponent, 2), i0__namespace.ɵɵdirectiveInject(SearchState)); };
5642
+ SearchBarBindingDirective.ɵfac = function SearchBarBindingDirective_Factory(t) { return new (t || SearchBarBindingDirective)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SearchBarComponent, 2), i0__namespace.ɵɵdirectiveInject(SearchState)); };
4894
5643
  SearchBarBindingDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: SearchBarBindingDirective, selectors: [["", "igoSearchBarBinding", ""]], hostBindings: function SearchBarBindingDirective_HostBindings(rf, ctx) {
4895
5644
  if (rf & 1) {
4896
5645
  i0__namespace.ɵɵlistener("searchTermChange", function SearchBarBindingDirective_searchTermChange_HostBindingHandler($event) { return ctx.onSearchTermChange($event); })("searchTypeChange", function SearchBarBindingDirective_searchTypeChange_HostBindingHandler($event) { return ctx.onSearchTypeChange($event); });
@@ -4903,7 +5652,7 @@
4903
5652
  selector: '[igoSearchBarBinding]'
4904
5653
  }]
4905
5654
  }], function () {
4906
- return [{ type: i1__namespace.SearchBarComponent, decorators: [{
5655
+ return [{ type: i1__namespace$1.SearchBarComponent, decorators: [{
4907
5656
  type: i0.Self
4908
5657
  }] }, { type: SearchState }];
4909
5658
  }, { onSearchTermChange: [{
@@ -4925,18 +5674,18 @@
4925
5674
  }());
4926
5675
  IgoAppSearchBarModule.ɵfac = function IgoAppSearchBarModule_Factory(t) { return new (t || IgoAppSearchBarModule)(); };
4927
5676
  IgoAppSearchBarModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppSearchBarModule });
4928
- IgoAppSearchBarModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoSearchModule]] });
5677
+ IgoAppSearchBarModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoSearchModule]] });
4929
5678
  (function () {
4930
5679
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppSearchBarModule, [{
4931
5680
  type: i0.NgModule,
4932
5681
  args: [{
4933
- imports: [i1.IgoSearchModule],
5682
+ imports: [i1$1.IgoSearchModule],
4934
5683
  declarations: [SearchBarBindingDirective],
4935
5684
  exports: [SearchBarBindingDirective],
4936
5685
  }]
4937
5686
  }], null, null);
4938
5687
  })();
4939
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppSearchBarModule, { declarations: [SearchBarBindingDirective], imports: [i1.IgoSearchModule], exports: [SearchBarBindingDirective] }); })();
5688
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppSearchBarModule, { declarations: [SearchBarBindingDirective], imports: [i1$1.IgoSearchModule], exports: [SearchBarBindingDirective] }); })();
4940
5689
 
4941
5690
  function SearchResultsToolComponent_div_0_Template(rf, ctx) {
4942
5691
  if (rf & 1) {
@@ -4969,7 +5718,7 @@
4969
5718
  i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(11, 7, i0__namespace.ɵɵpipeBind1(12, 9, "igo.integration.searchResultsTool.examples")), i0__namespace.ɵɵsanitizeHtml);
4970
5719
  }
4971
5720
  }
4972
- function SearchResultsToolComponent_igo_flexible_1_ng_template_5_Template(rf, ctx) {
5721
+ function SearchResultsToolComponent_igo_flexible_2_ng_template_5_Template(rf, ctx) {
4973
5722
  if (rf & 1) {
4974
5723
  i0__namespace.ɵɵelement(0, "igo-search-add-button", 12);
4975
5724
  }
@@ -4979,11 +5728,11 @@
4979
5728
  i0__namespace.ɵɵproperty("map", ctx_r4.map)("layer", result_r6);
4980
5729
  }
4981
5730
  }
4982
- function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_button_4_Template(rf, ctx) {
5731
+ function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_button_4_Template(rf, ctx) {
4983
5732
  if (rf & 1) {
4984
5733
  var _r9_1 = i0__namespace.ɵɵgetCurrentView();
4985
5734
  i0__namespace.ɵɵelementStart(0, "button", 18);
4986
- i0__namespace.ɵɵlistener("click", function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_button_4_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(3); return ctx_r8.zoomToFeatureExtent(); });
5735
+ i0__namespace.ɵɵlistener("click", function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_button_4_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(3); return ctx_r8.zoomToFeatureExtent(); });
4987
5736
  i0__namespace.ɵɵpipe(1, "translate");
4988
5737
  i0__namespace.ɵɵpipe(2, "async");
4989
5738
  i0__namespace.ɵɵelement(3, "mat-icon", 19);
@@ -4998,18 +5747,18 @@
4998
5747
  i0__namespace.ɵɵproperty("matBadge", i0__namespace.ɵɵpipeBind1(4, 7, ctx_r7.isSelectedResultOutOfView$) ? "!" : "")("matBadgeHidden", i0__namespace.ɵɵpipeBind1(5, 9, ctx_r7.isSelectedResultOutOfView$) === false);
4999
5748
  }
5000
5749
  }
5001
- function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template(rf, ctx) {
5750
+ function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_Template(rf, ctx) {
5002
5751
  if (rf & 1) {
5003
5752
  var _r11_1 = i0__namespace.ɵɵgetCurrentView();
5004
5753
  i0__namespace.ɵɵelementStart(0, "igo-panel", 13);
5005
5754
  i0__namespace.ɵɵelementStart(1, "button", 14);
5006
- i0__namespace.ɵɵlistener("click", function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.toggleTopPanel(); });
5755
+ i0__namespace.ɵɵlistener("click", function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.toggleTopPanel(); });
5007
5756
  i0__namespace.ɵɵelement(2, "mat-icon", 15);
5008
5757
  i0__namespace.ɵɵpipe(3, "async");
5009
5758
  i0__namespace.ɵɵelementEnd();
5010
- i0__namespace.ɵɵtemplate(4, SearchResultsToolComponent_igo_flexible_1_igo_panel_8_button_4_Template, 6, 11, "button", 16);
5759
+ i0__namespace.ɵɵtemplate(4, SearchResultsToolComponent_igo_flexible_2_igo_panel_8_button_4_Template, 6, 11, "button", 16);
5011
5760
  i0__namespace.ɵɵelementStart(5, "igo-feature-details", 17);
5012
- i0__namespace.ɵɵlistener("routingEvent", function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template_igo_feature_details_routingEvent_5_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r12 = i0__namespace.ɵɵnextContext(2); return ctx_r12.getRoute(); });
5761
+ i0__namespace.ɵɵlistener("routingEvent", function SearchResultsToolComponent_igo_flexible_2_igo_panel_8_Template_igo_feature_details_routingEvent_5_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r12 = i0__namespace.ɵɵnextContext(2); return ctx_r12.getRoute(); });
5013
5762
  i0__namespace.ɵɵpipe(6, "async");
5014
5763
  i0__namespace.ɵɵelementEnd();
5015
5764
  i0__namespace.ɵɵelementEnd();
@@ -5025,19 +5774,19 @@
5025
5774
  i0__namespace.ɵɵproperty("feature", i0__namespace.ɵɵpipeBind1(6, 8, ctx_r5.feature$))("map", ctx_r5.map)("toolbox", ctx_r5.toolState.toolbox);
5026
5775
  }
5027
5776
  }
5028
- function SearchResultsToolComponent_igo_flexible_1_Template(rf, ctx) {
5777
+ function SearchResultsToolComponent_igo_flexible_2_Template(rf, ctx) {
5029
5778
  if (rf & 1) {
5030
5779
  var _r14_1 = i0__namespace.ɵɵgetCurrentView();
5031
5780
  i0__namespace.ɵɵelementStart(0, "igo-flexible", 5, 6);
5032
5781
  i0__namespace.ɵɵpipe(2, "async");
5033
5782
  i0__namespace.ɵɵelementStart(3, "div", 7);
5034
5783
  i0__namespace.ɵɵelementStart(4, "igo-search-results", 8);
5035
- i0__namespace.ɵɵlistener("resultFocus", function SearchResultsToolComponent_igo_flexible_1_Template_igo_search_results_resultFocus_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.onResultFocus($event); })("resultSelect", function SearchResultsToolComponent_igo_flexible_1_Template_igo_search_results_resultSelect_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.onResultSelect($event); })("resultUnfocus", function SearchResultsToolComponent_igo_flexible_1_Template_igo_search_results_resultUnfocus_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.onResultUnfocus($event); })("resultMouseenter", function SearchResultsToolComponent_igo_flexible_1_Template_igo_search_results_resultMouseenter_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.onResultFocus($event); })("resultMouseleave", function SearchResultsToolComponent_igo_flexible_1_Template_igo_search_results_resultMouseleave_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r18 = i0__namespace.ɵɵnextContext(); return ctx_r18.onResultUnfocus($event); })("moreResults", function SearchResultsToolComponent_igo_flexible_1_Template_igo_search_results_moreResults_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.onSearch($event); });
5036
- i0__namespace.ɵɵtemplate(5, SearchResultsToolComponent_igo_flexible_1_ng_template_5_Template, 1, 2, "ng-template", null, 9, i0__namespace.ɵɵtemplateRefExtractor);
5784
+ i0__namespace.ɵɵlistener("resultFocus", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultFocus_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.onResultFocus($event); })("resultSelect", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultSelect_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.onResultSelect($event); })("resultUnfocus", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultUnfocus_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.onResultUnfocus($event); })("resultMouseenter", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultMouseenter_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.onResultFocus($event); })("resultMouseleave", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_resultMouseleave_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r18 = i0__namespace.ɵɵnextContext(); return ctx_r18.onResultUnfocus($event); })("moreResults", function SearchResultsToolComponent_igo_flexible_2_Template_igo_search_results_moreResults_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.onSearch($event); });
5785
+ i0__namespace.ɵɵtemplate(5, SearchResultsToolComponent_igo_flexible_2_ng_template_5_Template, 1, 2, "ng-template", null, 9, i0__namespace.ɵɵtemplateRefExtractor);
5037
5786
  i0__namespace.ɵɵelementEnd();
5038
5787
  i0__namespace.ɵɵelementEnd();
5039
5788
  i0__namespace.ɵɵelementStart(7, "div", 10);
5040
- i0__namespace.ɵɵtemplate(8, SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template, 7, 10, "igo-panel", 11);
5789
+ i0__namespace.ɵɵtemplate(8, SearchResultsToolComponent_igo_flexible_2_igo_panel_8_Template, 7, 10, "igo-panel", 11);
5041
5790
  i0__namespace.ɵɵpipe(9, "async");
5042
5791
  i0__namespace.ɵɵelementEnd();
5043
5792
  i0__namespace.ɵɵelementEnd();
@@ -5065,11 +5814,16 @@
5065
5814
  * to show hide results icons
5066
5815
  */
5067
5816
  this.showIcons = true;
5817
+ /**
5818
+ * Determine the top panel default state
5819
+ */
5820
+ this.topPanelStateDefault = 'expanded';
5068
5821
  this.hasFeatureEmphasisOnSelection = false;
5069
5822
  this.shownResultsGeometries = [];
5070
5823
  this.shownResultsEmphasisGeometries = [];
5071
5824
  this.focusedResult$ = new rxjs.BehaviorSubject(undefined);
5072
5825
  this.isSelectedResultOutOfView$ = new rxjs.BehaviorSubject(false);
5826
+ this.debouncedEmpty$ = new rxjs.BehaviorSubject(true);
5073
5827
  this.term = '';
5074
5828
  this.settingsChange$ = new rxjs.BehaviorSubject(undefined);
5075
5829
  this.topPanelState$ = new rxjs.BehaviorSubject('initial');
@@ -5100,7 +5854,7 @@
5100
5854
  });
5101
5855
  Object.defineProperty(SearchResultsToolComponent.prototype, "featureTitle", {
5102
5856
  get: function () {
5103
- return this.feature ? i7.getEntityTitle(this.feature) : undefined;
5857
+ return this.feature ? i4.getEntityTitle(this.feature) : undefined;
5104
5858
  },
5105
5859
  enumerable: false,
5106
5860
  configurable: true
@@ -5169,7 +5923,7 @@
5169
5923
  if (!_this.isScrolledIntoView(igoList, selected)) {
5170
5924
  _this.adjustTopPanel(igoList, selected);
5171
5925
  }
5172
- }, i7.FlexibleComponent.transitionTime + 50);
5926
+ }, i4.FlexibleComponent.transitionTime + 50);
5173
5927
  }
5174
5928
  });
5175
5929
  if (this.hasFeatureEmphasisOnSelection) {
@@ -5202,7 +5956,7 @@
5202
5956
  }
5203
5957
  _this.shownResultsGeometries.map(function (result) { return _this.map.queryResultsOverlay.removeFeature(result); });
5204
5958
  var featureToHandleGeom = searchResults
5205
- .filter(function (result) { return result.entity.meta.dataType === i1.FEATURE &&
5959
+ .filter(function (result) { return result.entity.meta.dataType === i1$1.FEATURE &&
5206
5960
  result.entity.data.geometry &&
5207
5961
  !result.state.selected &&
5208
5962
  !result.state.focused; });
@@ -5210,15 +5964,16 @@
5210
5964
  var _a;
5211
5965
  if (searchResultsGeometryEnabled) {
5212
5966
  result.entity.data.meta.style =
5213
- i1.getCommonVectorStyle(Object.assign({}, { feature: result.entity.data }, _this.searchState.searchOverlayStyle, ((_a = result.entity.style) === null || _a === void 0 ? void 0 : _a.base) ? result.entity.style.base : {}));
5967
+ i1$1.getCommonVectorStyle(Object.assign({}, { feature: result.entity.data }, _this.searchState.searchOverlayStyle, ((_a = result.entity.style) === null || _a === void 0 ? void 0 : _a.base) ? result.entity.style.base : {}));
5214
5968
  _this.shownResultsGeometries.push(result.entity.data);
5215
- _this.map.queryResultsOverlay.addFeature(result.entity.data, i1.FeatureMotion.None);
5969
+ _this.map.queryResultsOverlay.addFeature(result.entity.data, i1$1.FeatureMotion.None);
5216
5970
  if (_this.hasFeatureEmphasisOnSelection) {
5217
5971
  _this.buildResultEmphasis(result.entity, 'shown');
5218
5972
  }
5219
5973
  }
5220
5974
  });
5221
5975
  });
5976
+ this.debouncedEmpty$$ = this.store.stateView.empty$.pipe(operators.debounceTime(1500)).subscribe(function (empty) { return _this.debouncedEmpty$.next(empty); });
5222
5977
  };
5223
5978
  SearchResultsToolComponent.prototype.monitorResultOutOfView = function () {
5224
5979
  var _this = this;
@@ -5234,11 +5989,11 @@
5234
5989
  return;
5235
5990
  }
5236
5991
  if (selectedResult.data.geometry) {
5237
- var selectedOlFeature = i1.featureToOl(selectedResult.data, _this.map.projection);
5238
- var selectedOlFeatureExtent = i1.computeOlFeaturesExtent(_this.map, [
5992
+ var selectedOlFeature = i1$1.featureToOl(selectedResult.data, _this.map.projection);
5993
+ var selectedOlFeatureExtent = i1$1.computeOlFeaturesExtent(_this.map, [
5239
5994
  selectedOlFeature
5240
5995
  ]);
5241
- _this.isSelectedResultOutOfView$.next(i1.featuresAreOutOfView(_this.map, selectedOlFeatureExtent));
5996
+ _this.isSelectedResultOutOfView$.next(i1$1.featuresAreOutOfView(_this.map, selectedOlFeatureExtent));
5242
5997
  }
5243
5998
  });
5244
5999
  };
@@ -5250,9 +6005,9 @@
5250
6005
  if (!result || !result.data.geometry) {
5251
6006
  return;
5252
6007
  }
5253
- var myOlFeature = i1.featureToOl(result.data, this.map.projection);
6008
+ var myOlFeature = i1$1.featureToOl(result.data, this.map.projection);
5254
6009
  var olGeometry = myOlFeature.getGeometry();
5255
- if (i1.featuresAreTooDeepInView(this.map, olGeometry.getExtent(), 0.0025)) {
6010
+ if (i1$1.featuresAreTooDeepInView(this.map, olGeometry.getExtent(), 0.0025)) {
5256
6011
  var extent = olGeometry.getExtent();
5257
6012
  var x = extent[0] + (extent[2] - extent[0]) / 2;
5258
6013
  var y = extent[1] + (extent[3] - extent[1]) / 2;
@@ -5260,25 +6015,25 @@
5260
6015
  name: trigger + "AbstractResult'",
5261
6016
  geometry: new olPoint__default["default"]([x, y])
5262
6017
  });
5263
- var abstractResult = i1.featureFromOl(feature1, this.map.projection);
6018
+ var abstractResult = i1$1.featureFromOl(feature1, this.map.projection);
5264
6019
  var computedStyle = void 0;
5265
6020
  var zIndexOffset = 0;
5266
6021
  switch (trigger) {
5267
6022
  case 'focused':
5268
- computedStyle = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
6023
+ computedStyle = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
5269
6024
  zIndexOffset = 2;
5270
6025
  break;
5271
6026
  case 'shown':
5272
- computedStyle = i1.getCommonVectorStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyle, ((_b = result.style) === null || _b === void 0 ? void 0 : _b.base) ? result.style.base : {}));
6027
+ computedStyle = i1$1.getCommonVectorStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyle, ((_b = result.style) === null || _b === void 0 ? void 0 : _b.base) ? result.style.base : {}));
5273
6028
  break;
5274
6029
  case 'selected':
5275
- computedStyle = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleSelection, ((_c = result.style) === null || _c === void 0 ? void 0 : _c.selection) ? result.style.selection : {}));
6030
+ computedStyle = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleSelection, ((_c = result.style) === null || _c === void 0 ? void 0 : _c.selection) ? result.style.selection : {}));
5276
6031
  zIndexOffset = 1;
5277
6032
  break;
5278
6033
  }
5279
6034
  abstractResult.meta.style = computedStyle;
5280
6035
  abstractResult.meta.style.setZIndex(2000 + zIndexOffset);
5281
- this.map.searchResultsOverlay.addFeature(abstractResult, i1.FeatureMotion.None);
6036
+ this.map.searchResultsOverlay.addFeature(abstractResult, i1$1.FeatureMotion.None);
5282
6037
  if (trigger === 'focused') {
5283
6038
  this.abstractFocusedResult = abstractResult;
5284
6039
  }
@@ -5320,6 +6075,9 @@
5320
6075
  if (this.getRoute$$) {
5321
6076
  this.getRoute$$.unsubscribe();
5322
6077
  }
6078
+ if (this.debouncedEmpty$$) {
6079
+ this.debouncedEmpty$$.unsubscribe();
6080
+ }
5323
6081
  };
5324
6082
  /**
5325
6083
  * Try to add a feature to the map when it's being focused
@@ -5329,26 +6087,26 @@
5329
6087
  SearchResultsToolComponent.prototype.onResultFocus = function (result) {
5330
6088
  var _a;
5331
6089
  this.focusedResult$.next(result);
5332
- if (result.meta.dataType === i1.FEATURE && result.data.geometry) {
5333
- result.data.meta.style = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
6090
+ if (result.meta.dataType === i1$1.FEATURE && result.data.geometry) {
6091
+ result.data.meta.style = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
5334
6092
  var feature = this.map.searchResultsOverlay.dataSource.ol.getFeatureById(result.meta.id);
5335
6093
  if (feature) {
5336
6094
  feature.setStyle(result.data.meta.style);
5337
6095
  return;
5338
6096
  }
5339
- this.map.searchResultsOverlay.addFeature(result.data, i1.FeatureMotion.None);
6097
+ this.map.searchResultsOverlay.addFeature(result.data, i1$1.FeatureMotion.None);
5340
6098
  }
5341
6099
  };
5342
6100
  SearchResultsToolComponent.prototype.onResultUnfocus = function (result) {
5343
6101
  var _a;
5344
6102
  this.focusedResult$.next(undefined);
5345
- if (result.meta.dataType !== i1.FEATURE) {
6103
+ if (result.meta.dataType !== i1$1.FEATURE) {
5346
6104
  return;
5347
6105
  }
5348
6106
  if (this.store.state.get(result).selected === true) {
5349
6107
  var feature = this.map.searchResultsOverlay.dataSource.ol.getFeatureById(result.meta.id);
5350
6108
  if (feature) {
5351
- var style = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
6109
+ var style = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
5352
6110
  feature.setStyle(style);
5353
6111
  }
5354
6112
  return;
@@ -5361,22 +6119,23 @@
5361
6119
  * @param result A search result that could be a feature or some layer options
5362
6120
  */
5363
6121
  SearchResultsToolComponent.prototype.onResultSelect = function (result) {
5364
- var _this = this;
5365
6122
  this.map.searchResultsOverlay.dataSource.ol.clear();
5366
6123
  this.tryAddFeatureToMap(result);
5367
6124
  this.searchState.setSelectedResult(result);
5368
- if (this.topPanelState === 'expanded') {
5369
- var igoList_1 = this.computeElementRef()[0];
5370
- var selected_1 = this.computeElementRef()[1];
5371
- setTimeout(function () {
5372
- // To be sure the flexible component has been displayed yet
5373
- if (!_this.isScrolledIntoView(igoList_1, selected_1)) {
5374
- _this.adjustTopPanel(igoList_1, selected_1);
5375
- }
5376
- }, i7.FlexibleComponent.transitionTime + 50);
5377
- }
5378
6125
  if (this.topPanelState === 'initial') {
5379
- this.topPanelState = 'expanded';
6126
+ if (this.topPanelStateDefault !== 'collapsed') {
6127
+ this.topPanelState = 'expanded';
6128
+ }
6129
+ else {
6130
+ this.topPanelState = 'collapsed';
6131
+ }
6132
+ }
6133
+ if (this.topPanelState === 'expanded') {
6134
+ var igoList = this.computeElementRef()[0];
6135
+ var selected = this.computeElementRef()[1];
6136
+ if (!this.isScrolledIntoView(igoList, selected)) {
6137
+ this.adjustTopPanel(igoList, selected);
6138
+ }
5380
6139
  }
5381
6140
  };
5382
6141
  SearchResultsToolComponent.prototype.onSearch = function (event) {
@@ -5466,7 +6225,7 @@
5466
6225
  dataProjection: this.feature.projection,
5467
6226
  featureProjection: this.map.projection
5468
6227
  });
5469
- i1.moveToOlFeatures(this.map, [localOlFeature], i1.FeatureMotion.Zoom);
6228
+ i1$1.moveToOlFeatures(this.map, [localOlFeature], i1$1.FeatureMotion.Zoom);
5470
6229
  }
5471
6230
  };
5472
6231
  /**
@@ -5475,7 +6234,7 @@
5475
6234
  */
5476
6235
  SearchResultsToolComponent.prototype.tryAddFeatureToMap = function (result) {
5477
6236
  var _a;
5478
- if (result.meta.dataType !== i1.FEATURE) {
6237
+ if (result.meta.dataType !== i1$1.FEATURE) {
5479
6238
  return undefined;
5480
6239
  }
5481
6240
  var feature = result.data;
@@ -5483,7 +6242,7 @@
5483
6242
  if (!feature.geometry) {
5484
6243
  return;
5485
6244
  }
5486
- feature.meta.style = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: feature }, this.searchState.searchOverlayStyleSelection, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.selection) ? result.style.selection : {}));
6245
+ feature.meta.style = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: feature }, this.searchState.searchOverlayStyleSelection, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.selection) ? result.style.selection : {}));
5487
6246
  this.map.searchResultsOverlay.addFeature(feature);
5488
6247
  };
5489
6248
  SearchResultsToolComponent.prototype.isScrolledIntoView = function (elemSource, elem) {
@@ -5520,27 +6279,37 @@
5520
6279
  stop.text = _this.featureTitle;
5521
6280
  stop.coordinates = coord;
5522
6281
  _this.directionState.stopsStore.update(stop);
6282
+ if (_this.map.geolocationController.position$.value) {
6283
+ var currentPos = _this.map.geolocationController.position$.value;
6284
+ var stop_1 = _this.directionState.stopsStore.all().find(function (e) { return e.position === 0; });
6285
+ var currentCoord = olProj__namespace.transform(currentPos.position, currentPos.projection, 'EPSG:4326');
6286
+ var coord_1 = i1$1.roundCoordTo([currentCoord[0], currentCoord[1]], 6);
6287
+ stop_1.text = coord_1.join(',');
6288
+ stop_1.coordinates = coord_1;
6289
+ _this.directionState.stopsStore.update(stop_1);
6290
+ }
5523
6291
  }
5524
6292
  });
5525
6293
  }, 250);
5526
6294
  };
5527
6295
  return SearchResultsToolComponent;
5528
6296
  }());
5529
- exports.SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || exports.SearchResultsToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(SearchState), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(DirectionState), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.ConfigService)); };
5530
- exports.SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
6297
+ exports.SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || exports.SearchResultsToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(SearchState), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(DirectionState), i0__namespace.ɵɵdirectiveInject(i2__namespace.ConfigService)); };
6298
+ exports.SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.SearchResultsToolComponent, selectors: [["igo-search-results-tool"]], inputs: { showIcons: "showIcons", topPanelStateDefault: "topPanelStateDefault", topPanelState: "topPanelState" }, decls: 4, vars: 6, 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) {
5531
6299
  if (rf & 1) {
5532
6300
  i0__namespace.ɵɵtemplate(0, SearchResultsToolComponent_div_0_Template, 13, 11, "div", 0);
5533
- i0__namespace.ɵɵtemplate(1, SearchResultsToolComponent_igo_flexible_1_Template, 10, 11, "igo-flexible", 1);
5534
- i0__namespace.ɵɵpipe(2, "async");
6301
+ i0__namespace.ɵɵpipe(1, "async");
6302
+ i0__namespace.ɵɵtemplate(2, SearchResultsToolComponent_igo_flexible_2_Template, 10, 11, "igo-flexible", 1);
6303
+ i0__namespace.ɵɵpipe(3, "async");
5535
6304
  }
5536
6305
  if (rf & 2) {
5537
- i0__namespace.ɵɵproperty("ngIf", !ctx.store || ctx.store.stateView.empty);
5538
- i0__namespace.ɵɵadvance(1);
5539
- i0__namespace.ɵɵproperty("ngIf", ctx.store && i0__namespace.ɵɵpipeBind1(2, 2, ctx.store.stateView.empty$) === false);
6306
+ i0__namespace.ɵɵproperty("ngIf", (!ctx.store || ctx.store.stateView.empty) && i0__namespace.ɵɵpipeBind1(1, 2, ctx.debouncedEmpty$));
6307
+ i0__namespace.ɵɵadvance(2);
6308
+ i0__namespace.ɵɵproperty("ngIf", ctx.store && i0__namespace.ɵɵpipeBind1(3, 4, ctx.store.stateView.empty$) === false);
5540
6309
  }
5541
- }, directives: [i4__namespace.NgIf, i7__namespace.FlexibleComponent, i1__namespace.SearchResultsComponent, i1__namespace.SearchResultAddButtonComponent, i7__namespace.PanelComponent, i3__namespace.MatButton, i6__namespace.MatIcon, i1__namespace.FeatureDetailsComponent, i1__namespace.FeatureDetailsDirective, i4__namespace$1.MatTooltip, i12__namespace.MatBadge], pipes: [i4__namespace.AsyncPipe, i8__namespace.TranslatePipe, i7__namespace.SanitizeHtmlPipe], encapsulation: 2, changeDetection: 0 });
6310
+ }, directives: [i5__namespace.NgIf, i4__namespace.FlexibleComponent, i1__namespace$1.SearchResultsComponent, i1__namespace$1.SearchResultAddButtonComponent, i4__namespace.PanelComponent, i3__namespace.MatButton, i6__namespace.MatIcon, i1__namespace$1.FeatureDetailsComponent, i1__namespace$1.FeatureDetailsDirective, i4__namespace$1.MatTooltip, i12__namespace.MatBadge], pipes: [i5__namespace.AsyncPipe, i8__namespace.TranslatePipe, i4__namespace.SanitizeHtmlPipe], encapsulation: 2, changeDetection: 0 });
5542
6311
  exports.SearchResultsToolComponent = __decorate([
5543
- i7.ToolComponent({
6312
+ i4.ToolComponent({
5544
6313
  name: 'searchResults',
5545
6314
  title: 'igo.integration.tools.searchResults',
5546
6315
  icon: 'magnify'
@@ -5554,7 +6323,9 @@
5554
6323
  templateUrl: './search-results-tool.component.html',
5555
6324
  changeDetection: i0.ChangeDetectionStrategy.OnPush
5556
6325
  }]
5557
- }], function () { return [{ type: MapState }, { type: SearchState }, { type: i0__namespace.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2__namespace$2.ConfigService }]; }, { showIcons: [{
6326
+ }], function () { return [{ type: MapState }, { type: SearchState }, { type: i0__namespace.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2__namespace.ConfigService }]; }, { showIcons: [{
6327
+ type: i0.Input
6328
+ }], topPanelStateDefault: [{
5558
6329
  type: i0.Input
5559
6330
  }], topPanelState: [{
5560
6331
  type: i0.Input
@@ -5572,36 +6343,36 @@
5572
6343
  IgoAppSearchResultsToolModule.ɵfac = function IgoAppSearchResultsToolModule_Factory(t) { return new (t || IgoAppSearchResultsToolModule)(); };
5573
6344
  IgoAppSearchResultsToolModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppSearchResultsToolModule });
5574
6345
  IgoAppSearchResultsToolModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
5575
- i4.CommonModule,
6346
+ i5.CommonModule,
5576
6347
  i6.MatIconModule,
5577
6348
  i12.MatBadgeModule,
5578
6349
  i4$1.MatTooltipModule,
5579
6350
  i3.MatButtonModule,
5580
- i2$2.IgoLanguageModule,
5581
- i1.IgoFeatureModule,
5582
- i1.IgoSearchModule,
5583
- i7.IgoFlexibleModule,
5584
- i7.IgoPanelModule,
5585
- i1.IgoFeatureDetailsModule,
5586
- i7.IgoCustomHtmlModule
6351
+ i2.IgoLanguageModule,
6352
+ i1$1.IgoFeatureModule,
6353
+ i1$1.IgoSearchModule,
6354
+ i4.IgoFlexibleModule,
6355
+ i4.IgoPanelModule,
6356
+ i1$1.IgoFeatureDetailsModule,
6357
+ i4.IgoCustomHtmlModule
5587
6358
  ]] });
5588
6359
  (function () {
5589
6360
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppSearchResultsToolModule, [{
5590
6361
  type: i0.NgModule,
5591
6362
  args: [{
5592
6363
  imports: [
5593
- i4.CommonModule,
6364
+ i5.CommonModule,
5594
6365
  i6.MatIconModule,
5595
6366
  i12.MatBadgeModule,
5596
6367
  i4$1.MatTooltipModule,
5597
6368
  i3.MatButtonModule,
5598
- i2$2.IgoLanguageModule,
5599
- i1.IgoFeatureModule,
5600
- i1.IgoSearchModule,
5601
- i7.IgoFlexibleModule,
5602
- i7.IgoPanelModule,
5603
- i1.IgoFeatureDetailsModule,
5604
- i7.IgoCustomHtmlModule
6369
+ i2.IgoLanguageModule,
6370
+ i1$1.IgoFeatureModule,
6371
+ i1$1.IgoSearchModule,
6372
+ i4.IgoFlexibleModule,
6373
+ i4.IgoPanelModule,
6374
+ i1$1.IgoFeatureDetailsModule,
6375
+ i4.IgoCustomHtmlModule
5605
6376
  ],
5606
6377
  declarations: [exports.SearchResultsToolComponent],
5607
6378
  exports: [exports.SearchResultsToolComponent],
@@ -5610,18 +6381,18 @@
5610
6381
  }], null, null);
5611
6382
  })();
5612
6383
  (function () {
5613
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppSearchResultsToolModule, { declarations: [exports.SearchResultsToolComponent], imports: [i4.CommonModule,
6384
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppSearchResultsToolModule, { declarations: [exports.SearchResultsToolComponent], imports: [i5.CommonModule,
5614
6385
  i6.MatIconModule,
5615
6386
  i12.MatBadgeModule,
5616
6387
  i4$1.MatTooltipModule,
5617
6388
  i3.MatButtonModule,
5618
- i2$2.IgoLanguageModule,
5619
- i1.IgoFeatureModule,
5620
- i1.IgoSearchModule,
5621
- i7.IgoFlexibleModule,
5622
- i7.IgoPanelModule,
5623
- i1.IgoFeatureDetailsModule,
5624
- i7.IgoCustomHtmlModule], exports: [exports.SearchResultsToolComponent] });
6389
+ i2.IgoLanguageModule,
6390
+ i1$1.IgoFeatureModule,
6391
+ i1$1.IgoSearchModule,
6392
+ i4.IgoFlexibleModule,
6393
+ i4.IgoPanelModule,
6394
+ i1$1.IgoFeatureDetailsModule,
6395
+ i4.IgoCustomHtmlModule], exports: [exports.SearchResultsToolComponent] });
5625
6396
  })();
5626
6397
 
5627
6398
  var IgoAppSearchModule = /** @class */ (function () {
@@ -5661,9 +6432,9 @@
5661
6432
  if (rf & 1) {
5662
6433
  i0__namespace.ɵɵelement(0, "igo-ogc-filterable-list", 0);
5663
6434
  }
5664
- }, directives: [i1__namespace.OgcFilterableListComponent, i1__namespace.OgcFilterableListBindingDirective], encapsulation: 2 });
6435
+ }, directives: [i1__namespace$1.OgcFilterableListComponent, i1__namespace$1.OgcFilterableListBindingDirective], encapsulation: 2 });
5665
6436
  exports.OgcFilterToolComponent = __decorate([
5666
- i7.ToolComponent({
6437
+ i4.ToolComponent({
5667
6438
  name: 'ogcFilter',
5668
6439
  title: 'igo.integration.tools.ogcFilter',
5669
6440
  icon: 'filter'
@@ -5689,9 +6460,9 @@
5689
6460
  if (rf & 1) {
5690
6461
  i0__namespace.ɵɵelement(0, "igo-time-filter-list", 0);
5691
6462
  }
5692
- }, directives: [i1__namespace.TimeFilterListComponent, i1__namespace.TimeFilterListBindingDirective], encapsulation: 2 });
6463
+ }, directives: [i1__namespace$1.TimeFilterListComponent, i1__namespace$1.TimeFilterListBindingDirective], encapsulation: 2 });
5693
6464
  exports.TimeFilterToolComponent = __decorate([
5694
- i7.ToolComponent({
6465
+ i4.ToolComponent({
5695
6466
  name: 'timeFilter',
5696
6467
  title: 'igo.integration.tools.timeFilter',
5697
6468
  icon: 'history'
@@ -5735,18 +6506,18 @@
5735
6506
  this.toolState = toolState;
5736
6507
  this.workspaceState = workspaceState;
5737
6508
  this.cdRef = cdRef;
5738
- this.itemType = i1.SpatialFilterItemType.Address;
6509
+ this.itemType = i1$1.SpatialFilterItemType.Address;
5739
6510
  this.layers = [];
5740
6511
  this.activeLayers = [];
5741
6512
  this.buffer = 0;
5742
6513
  this.iterator = 1;
5743
6514
  this.selectedFeature$ = new rxjs.BehaviorSubject(undefined);
5744
6515
  this.format = new olFormatGeoJSON__default["default"]();
5745
- this.store = new i7.EntityStore([]); // Store to print results at the end
5746
- this.spatialListStore = new i7.EntityStore([]);
6516
+ this.store = new i4.EntityStore([]); // Store to print results at the end
6517
+ this.spatialListStore = new i4.EntityStore([]);
5747
6518
  this.loading = false;
5748
6519
  this.thematicLength = 0;
5749
- this.measureUnit = i1.MeasureLengthUnit.Meters;
6520
+ this.measureUnit = i1$1.MeasureLengthUnit.Meters;
5750
6521
  this.unsubscribe$ = new rxjs.Subject();
5751
6522
  }
5752
6523
  Object.defineProperty(SpatialFilterToolComponent.prototype, "map", {
@@ -5817,7 +6588,7 @@
5817
6588
  this.workspaceState.store.entities$.pipe(operators.takeUntil(this.unsubscribe$)).subscribe(function () {
5818
6589
  var e_3, _e;
5819
6590
  if (!record && _this.activeLayers.length && _this.workspaceState.store.all().length > 1) {
5820
- if (_this.itemType === i1.SpatialFilterItemType.Thematics) {
6591
+ if (_this.itemType === i1$1.SpatialFilterItemType.Thematics) {
5821
6592
  var _loop_1 = function (thematic) {
5822
6593
  if (!thematic.zeroResults) {
5823
6594
  layerToOpenWks = _this.activeLayers.find(function (layer) { return layer.title.includes(thematic.name + ' ' + _this.iterator.toString()); });
@@ -5903,7 +6674,7 @@
5903
6674
  this.activeLayers = [];
5904
6675
  this.thematicLength = 0;
5905
6676
  this.iterator = 1;
5906
- if (this.type === i1.SpatialFilterType.Predefined) {
6677
+ if (this.type === i1$1.SpatialFilterType.Predefined) {
5907
6678
  this.zone = undefined;
5908
6679
  this.queryType = undefined;
5909
6680
  }
@@ -5913,10 +6684,10 @@
5913
6684
  this.loading = true;
5914
6685
  var zeroResults = true;
5915
6686
  var thematics;
5916
- if (this.buffer === 0 || this.type === i1.SpatialFilterType.Point) {
6687
+ if (this.buffer === 0 || this.type === i1$1.SpatialFilterType.Point) {
5917
6688
  this.tryAddFeaturesToMap([this.zone]);
5918
6689
  }
5919
- if (this.itemType !== i1.SpatialFilterItemType.Thematics) {
6690
+ if (this.itemType !== i1$1.SpatialFilterItemType.Thematics) {
5920
6691
  var theme = {
5921
6692
  name: ''
5922
6693
  };
@@ -5925,10 +6696,10 @@
5925
6696
  else {
5926
6697
  thematics = this.thematics;
5927
6698
  }
5928
- if (this.measureUnit === i1.MeasureLengthUnit.Kilometers && this.type !== i1.SpatialFilterType.Point) {
6699
+ if (this.measureUnit === i1$1.MeasureLengthUnit.Kilometers && this.type !== i1$1.SpatialFilterType.Point) {
5929
6700
  this.buffer = this.buffer * 1000;
5930
6701
  }
5931
- if (this.type === i1.SpatialFilterType.Polygon) {
6702
+ if (this.type === i1$1.SpatialFilterType.Polygon) {
5932
6703
  this.buffer = 0; // to avoid buffer enter a second time in terrAPI
5933
6704
  }
5934
6705
  var observables$ = [];
@@ -5993,7 +6764,7 @@
5993
6764
  var i = 1;
5994
6765
  var _loop_2 = function (feature) {
5995
6766
  var e_5, _f, e_6, _g, e_7, _h;
5996
- if (this_1.type === i1.SpatialFilterType.Predefined) {
6767
+ if (this_1.type === i1$1.SpatialFilterType.Predefined) {
5997
6768
  try {
5998
6769
  for (var _j = (e_5 = void 0, __values(this_1.layers)), _k = _j.next(); !_k.done; _k = _j.next()) {
5999
6770
  var layer = _k.value;
@@ -6067,10 +6838,11 @@
6067
6838
  .pipe(operators.take(1))
6068
6839
  .subscribe(function (dataSource) {
6069
6840
  var olLayer = _this.layerService.createLayer({
6841
+ isIgoInternalLayer: true,
6070
6842
  title: ('Zone ' + i + ' - ' + _this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
6071
6843
  workspace: { enabled: true },
6072
6844
  _internal: {
6073
- code: _this.type === i1.SpatialFilterType.Predefined
6845
+ code: _this.type === i1$1.SpatialFilterType.Predefined
6074
6846
  ? feature.properties.code
6075
6847
  : undefined
6076
6848
  },
@@ -6104,10 +6876,10 @@
6104
6876
  }
6105
6877
  });
6106
6878
  var featuresOl = features.map(function (f) {
6107
- return i1.featureToOl(f, _this.map.projection);
6879
+ return i1$1.featureToOl(f, _this.map.projection);
6108
6880
  });
6109
- if (_this.type !== i1.SpatialFilterType.Predefined) {
6110
- var type = _this.type === i1.SpatialFilterType.Point ? 'Cercle' : 'Polygone';
6881
+ if (_this.type !== i1$1.SpatialFilterType.Predefined) {
6882
+ var type = _this.type === i1$1.SpatialFilterType.Point ? 'Cercle' : 'Polygone';
6111
6883
  featuresOl[0].set('nom', 'Zone', true);
6112
6884
  featuresOl[0].set('type', type, true);
6113
6885
  }
@@ -6179,19 +6951,20 @@
6179
6951
  var icon = features[0].meta.icon;
6180
6952
  var style;
6181
6953
  if (!icon) {
6182
- style = i1.createOverlayMarkerStyle();
6954
+ style = i1$1.createOverlayMarkerStyle();
6183
6955
  }
6184
6956
  else {
6185
- style = _this.createSvgIcon(icon) || i1.createOverlayMarkerStyle();
6957
+ style = _this.createSvgIcon(icon) || i1$1.createOverlayMarkerStyle();
6186
6958
  }
6187
6959
  var olLayer = _this.layerService.createLayer({
6960
+ isIgoInternalLayer: true,
6188
6961
  title: (features[0].meta.title + ' ' + i + ' - ' + _this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
6189
6962
  source: dataSource,
6190
6963
  visible: true,
6191
6964
  style: style
6192
6965
  });
6193
6966
  var featuresOl = features.map(function (feature) {
6194
- return i1.featureToOl(feature, _this.map.projection);
6967
+ return i1$1.featureToOl(feature, _this.map.projection);
6195
6968
  });
6196
6969
  var ol = dataSource.ol;
6197
6970
  ol.getSource().addFeatures(featuresOl);
@@ -6262,12 +7035,13 @@
6262
7035
  .pipe(operators.take(1))
6263
7036
  .subscribe(function (dataSource) {
6264
7037
  var olLayer = _this.layerService.createLayer({
7038
+ isIgoInternalLayer: true,
6265
7039
  title: (features[0].meta.title + ' ' + i + ' - ' + _this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
6266
7040
  source: dataSource,
6267
7041
  visible: true
6268
7042
  });
6269
7043
  var featuresOl = features.map(function (feature) {
6270
- return i1.featureToOl(feature, _this.map.projection);
7044
+ return i1$1.featureToOl(feature, _this.map.projection);
6271
7045
  });
6272
7046
  var ol = dataSource.ol;
6273
7047
  ol.addFeatures(featuresOl);
@@ -6290,7 +7064,7 @@
6290
7064
  dataProjection: feature.projection,
6291
7065
  featureProjection: this.map.projection
6292
7066
  });
6293
- i1.moveToOlFeatures(this.map, [olFeature], i1.FeatureMotion.Zoom);
7067
+ i1$1.moveToOlFeatures(this.map, [olFeature], i1$1.FeatureMotion.Zoom);
6294
7068
  }
6295
7069
  };
6296
7070
  SpatialFilterToolComponent.prototype.pushLayer = function (layer) {
@@ -6314,7 +7088,7 @@
6314
7088
  };
6315
7089
  return SpatialFilterToolComponent;
6316
7090
  }());
6317
- exports.SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || exports.SpatialFilterToolComponent)(i0__namespace.ɵɵdirectiveInject(i6__namespace.MatIconRegistry), i0__namespace.ɵɵdirectiveInject(i1__namespace.SpatialFilterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.DataSourceService), i0__namespace.ɵɵdirectiveInject(i1__namespace.LayerService), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.LanguageService), i0__namespace.ɵɵdirectiveInject(ImportExportState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(WorkspaceState), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
7091
+ exports.SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || exports.SpatialFilterToolComponent)(i0__namespace.ɵɵdirectiveInject(i6__namespace.MatIconRegistry), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SpatialFilterService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.DataSourceService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.LayerService), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(ImportExportState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(WorkspaceState), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
6318
7092
  exports.SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
6319
7093
  if (rf & 1) {
6320
7094
  i0__namespace.ɵɵelementStart(0, "igo-panel");
@@ -6338,9 +7112,9 @@
6338
7112
  i0__namespace.ɵɵadvance(2);
6339
7113
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(5, 14, ctx.selectedFeature$));
6340
7114
  }
6341
- }, directives: [i1__namespace.SpatialFilterTypeComponent, i1__namespace.SpatialFilterItemComponent, i4__namespace.NgIf], pipes: [i4__namespace.AsyncPipe], styles: [""], changeDetection: 0 });
7115
+ }, directives: [i1__namespace$1.SpatialFilterTypeComponent, i1__namespace$1.SpatialFilterItemComponent, i5__namespace.NgIf], pipes: [i5__namespace.AsyncPipe], styles: [""], changeDetection: 0 });
6342
7116
  exports.SpatialFilterToolComponent = __decorate([
6343
- i7.ToolComponent({
7117
+ i4.ToolComponent({
6344
7118
  name: 'spatialFilter',
6345
7119
  title: 'igo.integration.tools.spatialFilter',
6346
7120
  icon: 'selection-marker'
@@ -6358,7 +7132,7 @@
6358
7132
  styleUrls: ['./spatial-filter-tool.component.scss'],
6359
7133
  changeDetection: i0.ChangeDetectionStrategy.OnPush
6360
7134
  }]
6361
- }], function () { return [{ type: i6__namespace.MatIconRegistry }, { type: i1__namespace.SpatialFilterService }, { type: i1__namespace.DataSourceService }, { type: i1__namespace.LayerService }, { type: MapState }, { type: i2__namespace$2.MessageService }, { type: i2__namespace$2.LanguageService }, { type: ImportExportState }, { type: ToolState }, { type: WorkspaceState }, { type: i0__namespace.ChangeDetectorRef }]; }, { type: [{
7135
+ }], function () { return [{ type: i6__namespace.MatIconRegistry }, { type: i1__namespace$1.SpatialFilterService }, { type: i1__namespace$1.DataSourceService }, { type: i1__namespace$1.LayerService }, { type: MapState }, { type: i2__namespace.MessageService }, { type: i2__namespace.LanguageService }, { type: ImportExportState }, { type: ToolState }, { type: WorkspaceState }, { type: i0__namespace.ChangeDetectorRef }]; }, { type: [{
6362
7136
  type: i0.Input
6363
7137
  }], itemType: [{
6364
7138
  type: i0.Input
@@ -6423,9 +7197,9 @@
6423
7197
  if (rf & 2) {
6424
7198
  i0__namespace.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
6425
7199
  }
6426
- }, directives: [i1__namespace.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
7200
+ }, directives: [i1__namespace$1.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
6427
7201
  exports.ActiveTimeFilterToolComponent = __decorate([
6428
- i7.ToolComponent({
7202
+ i4.ToolComponent({
6429
7203
  name: 'activeTimeFilter',
6430
7204
  title: 'igo.integration.tools.timeFilter',
6431
7205
  icon: 'history',
@@ -6499,9 +7273,9 @@
6499
7273
  if (rf & 2) {
6500
7274
  i0__namespace.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
6501
7275
  }
6502
- }, directives: [i1__namespace.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
7276
+ }, directives: [i1__namespace$1.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
6503
7277
  exports.ActiveOgcFilterToolComponent = __decorate([
6504
- i7.ToolComponent({
7278
+ i4.ToolComponent({
6505
7279
  name: 'activeOgcFilter',
6506
7280
  title: 'igo.integration.tools.ogcFilter',
6507
7281
  icon: 'filter',
@@ -6532,12 +7306,12 @@
6532
7306
  }());
6533
7307
  IgoAppFilterModule.ɵfac = function IgoAppFilterModule_Factory(t) { return new (t || IgoAppFilterModule)(); };
6534
7308
  IgoAppFilterModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppFilterModule });
6535
- IgoAppFilterModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoFilterModule, i1.IgoQueryModule, i4.CommonModule]] });
7309
+ IgoAppFilterModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoFilterModule, i1$1.IgoQueryModule, i5.CommonModule]] });
6536
7310
  (function () {
6537
7311
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppFilterModule, [{
6538
7312
  type: i0.NgModule,
6539
7313
  args: [{
6540
- imports: [i1.IgoFilterModule, i1.IgoQueryModule, i4.CommonModule],
7314
+ imports: [i1$1.IgoFilterModule, i1$1.IgoQueryModule, i5.CommonModule],
6541
7315
  declarations: [
6542
7316
  exports.OgcFilterToolComponent,
6543
7317
  exports.ActiveOgcFilterToolComponent,
@@ -6561,7 +7335,7 @@
6561
7335
  exports.ActiveOgcFilterToolComponent,
6562
7336
  exports.TimeFilterToolComponent,
6563
7337
  exports.ActiveTimeFilterToolComponent,
6564
- exports.SpatialFilterToolComponent], imports: [i1.IgoFilterModule, i1.IgoQueryModule, i4.CommonModule], exports: [exports.OgcFilterToolComponent,
7338
+ exports.SpatialFilterToolComponent], imports: [i1$1.IgoFilterModule, i1$1.IgoQueryModule, i5.CommonModule], exports: [exports.OgcFilterToolComponent,
6565
7339
  exports.ActiveOgcFilterToolComponent,
6566
7340
  exports.TimeFilterToolComponent,
6567
7341
  exports.ActiveTimeFilterToolComponent,
@@ -6646,8 +7420,8 @@
6646
7420
  this._headerHtml = this.languageService.translate.instant('igo.integration.aboutTool.headerHtml');
6647
7421
  this.loading = false;
6648
7422
  this.version = configService.getConfig('version');
6649
- this.baseUrlProfil = configService.getConfig('context.url') + '/user/igo?';
6650
- this.baseUrlGuide = configService.getConfig('depot.url') + '/projects/Documentation/files/';
7423
+ this.baseUrlProfil = configService.getConfig('storage.url');
7424
+ this.baseUrlGuide = configService.getConfig('depot.url') + configService.getConfig('depot.guideUrl');
6651
7425
  }
6652
7426
  Object.defineProperty(AboutToolComponent.prototype, "headerHtml", {
6653
7427
  get: function () {
@@ -6719,7 +7493,7 @@
6719
7493
  };
6720
7494
  return AboutToolComponent;
6721
7495
  }());
6722
- exports.AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || exports.AboutToolComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace$2.ConfigService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.AuthService), i0__namespace.ɵɵdirectiveInject(i3__namespace$2.HttpClient), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.LanguageService)); };
7496
+ exports.AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || exports.AboutToolComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.ConfigService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.AuthService), i0__namespace.ɵɵdirectiveInject(i3__namespace$2.HttpClient), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace.LanguageService)); };
6723
7497
  exports.AboutToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
6724
7498
  if (rf & 1) {
6725
7499
  i0__namespace.ɵɵelement(0, "p");
@@ -6747,9 +7521,9 @@
6747
7521
  i0__namespace.ɵɵadvance(1);
6748
7522
  i0__namespace.ɵɵproperty("html", i0__namespace.ɵɵpipeBind2(9, 6, ctx.html, i0__namespace.ɵɵpureFunction1(9, _c0, ctx.version)));
6749
7523
  }
6750
- }, directives: [i7__namespace.InteractiveTourComponent, i4__namespace.NgIf, i6__namespace$2.MatMenu, i4__namespace.NgForOf, i7__namespace.CustomHtmlComponent, i3__namespace.MatButton, i4__namespace$1.MatTooltip, i6__namespace.MatIcon, i6__namespace$2.MatMenuTrigger, i6__namespace$2.MatMenuItem], pipes: [i8__namespace.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}"] });
7524
+ }, directives: [i4__namespace.InteractiveTourComponent, i5__namespace.NgIf, i6__namespace$2.MatMenu, i5__namespace.NgForOf, i4__namespace.CustomHtmlComponent, i3__namespace.MatButton, i4__namespace$1.MatTooltip, i6__namespace.MatIcon, i6__namespace$2.MatMenuTrigger, i6__namespace$2.MatMenuItem], pipes: [i8__namespace.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}"] });
6751
7525
  exports.AboutToolComponent = __decorate([
6752
- i7.ToolComponent({
7526
+ i4.ToolComponent({
6753
7527
  name: 'about',
6754
7528
  title: 'igo.integration.tools.about',
6755
7529
  icon: 'help-circle'
@@ -6763,7 +7537,7 @@
6763
7537
  templateUrl: './about-tool.component.html',
6764
7538
  styleUrls: ['./about-tool.component.scss']
6765
7539
  }]
6766
- }], function () { return [{ type: i2__namespace$2.ConfigService }, { type: i2__namespace$1.AuthService }, { type: i3__namespace$2.HttpClient }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$2.LanguageService }]; }, { headerHtml: [{
7540
+ }], function () { return [{ type: i2__namespace.ConfigService }, { type: i2__namespace$1.AuthService }, { type: i3__namespace$2.HttpClient }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.LanguageService }]; }, { headerHtml: [{
6767
7541
  type: i0.Input
6768
7542
  }], html: [{
6769
7543
  type: i0.Input
@@ -6788,28 +7562,28 @@
6788
7562
  IgoAppAboutModule.ɵfac = function IgoAppAboutModule_Factory(t) { return new (t || IgoAppAboutModule)(); };
6789
7563
  IgoAppAboutModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppAboutModule });
6790
7564
  IgoAppAboutModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
6791
- i2$2.IgoLanguageModule,
6792
- i7.IgoCustomHtmlModule,
7565
+ i2.IgoLanguageModule,
7566
+ i4.IgoCustomHtmlModule,
6793
7567
  i3.MatButtonModule,
6794
7568
  i4$1.MatTooltipModule,
6795
7569
  i6.MatIconModule,
6796
7570
  i6$2.MatMenuModule,
6797
- i7.IgoInteractiveTourModule,
6798
- i4.CommonModule
7571
+ i4.IgoInteractiveTourModule,
7572
+ i5.CommonModule
6799
7573
  ]] });
6800
7574
  (function () {
6801
7575
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppAboutModule, [{
6802
7576
  type: i0.NgModule,
6803
7577
  args: [{
6804
7578
  imports: [
6805
- i2$2.IgoLanguageModule,
6806
- i7.IgoCustomHtmlModule,
7579
+ i2.IgoLanguageModule,
7580
+ i4.IgoCustomHtmlModule,
6807
7581
  i3.MatButtonModule,
6808
7582
  i4$1.MatTooltipModule,
6809
7583
  i6.MatIconModule,
6810
7584
  i6$2.MatMenuModule,
6811
- i7.IgoInteractiveTourModule,
6812
- i4.CommonModule
7585
+ i4.IgoInteractiveTourModule,
7586
+ i5.CommonModule
6813
7587
  ],
6814
7588
  declarations: [exports.AboutToolComponent],
6815
7589
  exports: [exports.AboutToolComponent],
@@ -6818,14 +7592,14 @@
6818
7592
  }], null, null);
6819
7593
  })();
6820
7594
  (function () {
6821
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppAboutModule, { declarations: [exports.AboutToolComponent], imports: [i2$2.IgoLanguageModule,
6822
- i7.IgoCustomHtmlModule,
7595
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppAboutModule, { declarations: [exports.AboutToolComponent], imports: [i2.IgoLanguageModule,
7596
+ i4.IgoCustomHtmlModule,
6823
7597
  i3.MatButtonModule,
6824
7598
  i4$1.MatTooltipModule,
6825
7599
  i6.MatIconModule,
6826
7600
  i6$2.MatMenuModule,
6827
- i7.IgoInteractiveTourModule,
6828
- i4.CommonModule], exports: [exports.AboutToolComponent] });
7601
+ i4.IgoInteractiveTourModule,
7602
+ i5.CommonModule], exports: [exports.AboutToolComponent] });
6829
7603
  })();
6830
7604
 
6831
7605
  var IgoAppStorageModule = /** @class */ (function () {
@@ -6929,92 +7703,6 @@
6929
7703
  }], null, null);
6930
7704
  })();
6931
7705
 
6932
- /**
6933
- * Service that holds the state of the context module
6934
- */
6935
- var ContextState = /** @class */ (function () {
6936
- function ContextState(contextService, toolService, toolState, languageService) {
6937
- var _this = this;
6938
- this.contextService = contextService;
6939
- this.toolService = toolService;
6940
- this.toolState = toolState;
6941
- this.languageService = languageService;
6942
- /**
6943
- * Observable of the active context
6944
- */
6945
- this.context$ = new rxjs.BehaviorSubject(undefined);
6946
- this.contextService.context$.subscribe(function (context) {
6947
- _this.onContextChange(context);
6948
- });
6949
- this.contextService.toolsChanged$.subscribe(function (context) {
6950
- _this.updateTools(context);
6951
- });
6952
- }
6953
- /**
6954
- * Set the active context
6955
- * @param context Detailed context
6956
- */
6957
- ContextState.prototype.setContext = function (context) {
6958
- this.updateTools(context);
6959
- this.context$.next(context);
6960
- };
6961
- /**
6962
- * Update the tool state with the context's tools
6963
- * @param context Detailed context
6964
- */
6965
- ContextState.prototype.updateTools = function (context) {
6966
- var _this = this;
6967
- var toolbox = this.toolState.toolbox;
6968
- var tools = [];
6969
- var contextTools = context.tools || [];
6970
- contextTools.forEach(function (contextTool) {
6971
- var baseTool = _this.toolService.getTool(contextTool.name);
6972
- if (baseTool === undefined) {
6973
- return;
6974
- }
6975
- var options = Object.assign({}, baseTool.options || {}, contextTool.options || {});
6976
- var tool = Object.assign({}, baseTool, contextTool, { options: options });
6977
- tools.push(tool);
6978
- });
6979
- tools.forEach(function (tool) {
6980
- if (tool.parent) {
6981
- var parentIndex = tools.findIndex(function (el) { return el.name === tool.parent; });
6982
- if (parentIndex !== -1) {
6983
- tools[parentIndex].children = [];
6984
- tools[parentIndex].children.push(tool.name);
6985
- }
6986
- }
6987
- });
6988
- toolbox.setTools(tools);
6989
- toolbox.setToolbar(context.toolbar || []);
6990
- // TODO: This is a patch so the context service can work without
6991
- // injecting the ToolState or without being completely refactored
6992
- this.contextService.setTools([].concat(tools));
6993
- this.contextService.setToolbar(context.toolbar || []);
6994
- };
6995
- /**
6996
- * Set a new context and update the tool state
6997
- * @param context Detailed context
6998
- */
6999
- ContextState.prototype.onContextChange = function (context) {
7000
- if (context === undefined) {
7001
- return;
7002
- }
7003
- this.setContext(context);
7004
- };
7005
- return ContextState;
7006
- }());
7007
- ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0__namespace.ɵɵinject(i2__namespace.ContextService), i0__namespace.ɵɵinject(i7__namespace.ToolService), i0__namespace.ɵɵinject(ToolState), i0__namespace.ɵɵinject(i2__namespace$2.LanguageService)); };
7008
- ContextState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
7009
- (function () {
7010
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ContextState, [{
7011
- type: i0.Injectable,
7012
- args: [{
7013
- providedIn: 'root'
7014
- }]
7015
- }], function () { return [{ type: i2__namespace.ContextService }, { type: i7__namespace.ToolService }, { type: ToolState }, { type: i2__namespace$2.LanguageService }]; }, null);
7016
- })();
7017
-
7018
7706
  /**
7019
7707
  * Service that holds the state of the search module
7020
7708
  */
@@ -7075,7 +7763,7 @@
7075
7763
  };
7076
7764
  return AnalyticsListenerService;
7077
7765
  }());
7078
- AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0__namespace.ɵɵinject(i2__namespace$2.AnalyticsService), i0__namespace.ɵɵinject(i2__namespace$1.AuthService), i0__namespace.ɵɵinject(ContextState), i0__namespace.ɵɵinject(SearchState), i0__namespace.ɵɵinject(ToolState)); };
7766
+ AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0__namespace.ɵɵinject(i2__namespace.AnalyticsService), i0__namespace.ɵɵinject(i2__namespace$1.AuthService), i0__namespace.ɵɵinject(ContextState), i0__namespace.ɵɵinject(SearchState), i0__namespace.ɵɵinject(ToolState)); };
7079
7767
  AnalyticsListenerService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: AnalyticsListenerService, factory: AnalyticsListenerService.ɵfac, providedIn: 'root' });
7080
7768
  (function () {
7081
7769
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AnalyticsListenerService, [{
@@ -7083,7 +7771,7 @@
7083
7771
  args: [{
7084
7772
  providedIn: 'root'
7085
7773
  }]
7086
- }], function () { return [{ type: i2__namespace$2.AnalyticsService }, { type: i2__namespace$1.AuthService }, { type: ContextState }, { type: SearchState }, { type: ToolState }]; }, null);
7774
+ }], function () { return [{ type: i2__namespace.AnalyticsService }, { type: i2__namespace$1.AuthService }, { type: ContextState }, { type: SearchState }, { type: ToolState }]; }, null);
7087
7775
  })();
7088
7776
 
7089
7777
  /**
@@ -7095,7 +7783,7 @@
7095
7783
  /**
7096
7784
  * Store that holds the query results
7097
7785
  */
7098
- this.store = new i7.EntityStore([]);
7786
+ this.store = new i4.EntityStore([]);
7099
7787
  this.queryOverlayStyle = {};
7100
7788
  this.queryOverlayStyleSelection = {};
7101
7789
  this.queryOverlayStyleFocus = {};
@@ -7108,7 +7796,7 @@
7108
7796
  }
7109
7797
  return QueryState;
7110
7798
  }());
7111
- QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0__namespace.ɵɵinject(i2__namespace$2.ConfigService)); };
7799
+ QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0__namespace.ɵɵinject(i2__namespace.ConfigService)); };
7112
7800
  QueryState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: QueryState, factory: QueryState.ɵfac, providedIn: 'root' });
7113
7801
  (function () {
7114
7802
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryState, [{
@@ -7116,7 +7804,7 @@
7116
7804
  args: [{
7117
7805
  providedIn: 'root'
7118
7806
  }]
7119
- }], function () { return [{ type: i2__namespace$2.ConfigService }]; }, null);
7807
+ }], function () { return [{ type: i2__namespace.ConfigService }]; }, null);
7120
7808
  })();
7121
7809
 
7122
7810
  /*
@@ -7155,6 +7843,7 @@
7155
7843
  exports.IgoAppWorkspaceModule = IgoAppWorkspaceModule;
7156
7844
  exports.IgoIntegrationModule = IgoIntegrationModule;
7157
7845
  exports.ImportExportState = ImportExportState;
7846
+ exports.MapProximityState = MapProximityState;
7158
7847
  exports.MapState = MapState;
7159
7848
  exports.MeasureState = MeasureState;
7160
7849
  exports.QueryState = QueryState;