@igo2/context 1.11.1 → 1.13.0-alpha.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 (111) hide show
  1. package/{esm2015/igo2-context.js → esm2020/igo2-context.mjs} +0 -0
  2. package/esm2020/lib/context-import-export/context-import-export/context-import-export.component.mjs +229 -0
  3. package/{esm2015/lib/context-import-export/context-import-export.module.js → esm2020/lib/context-import-export/context-import-export.module.mjs} +16 -18
  4. package/{esm2015/lib/context-import-export/index.js → esm2020/lib/context-import-export/index.mjs} +1 -1
  5. package/{esm2015/lib/context-import-export/shared/context-export.errors.js → esm2020/lib/context-import-export/shared/context-export.errors.mjs} +1 -1
  6. package/{esm2015/lib/context-import-export/shared/context-export.interface.js → esm2020/lib/context-import-export/shared/context-export.interface.mjs} +1 -1
  7. package/{esm2015/lib/context-import-export/shared/context-export.service.js → esm2020/lib/context-import-export/shared/context-export.service.mjs} +1 -1
  8. package/{esm2015/lib/context-import-export/shared/context-export.utils.js → esm2020/lib/context-import-export/shared/context-export.utils.mjs} +1 -1
  9. package/{esm2015/lib/context-import-export/shared/context-import.errors.js → esm2020/lib/context-import-export/shared/context-import.errors.mjs} +1 -1
  10. package/{esm2015/lib/context-import-export/shared/context-import.service.js → esm2020/lib/context-import-export/shared/context-import.service.mjs} +1 -1
  11. package/esm2020/lib/context-import-export/shared/context-import.utils.mjs +158 -0
  12. package/{esm2015/lib/context-import-export/shared/index.js → esm2020/lib/context-import-export/shared/index.mjs} +1 -1
  13. package/{esm2015/lib/context-manager/context-edit/context-edit-binding.directive.js → esm2020/lib/context-manager/context-edit/context-edit-binding.directive.mjs} +1 -1
  14. package/{esm2015/lib/context-manager/context-edit/context-edit.component.js → esm2020/lib/context-manager/context-edit/context-edit.component.mjs} +4 -7
  15. package/{esm2015/lib/context-manager/context-edit/index.js → esm2020/lib/context-manager/context-edit/index.mjs} +1 -1
  16. package/esm2020/lib/context-manager/context-form/context-form.component.mjs +147 -0
  17. package/{esm2015/lib/context-manager/context-form/index.js → esm2020/lib/context-manager/context-form/index.mjs} +1 -1
  18. package/esm2020/lib/context-manager/context-item/context-item.component.mjs +245 -0
  19. package/{esm2015/lib/context-manager/context-item/index.js → esm2020/lib/context-manager/context-item/index.mjs} +1 -1
  20. package/esm2020/lib/context-manager/context-list/context-list-binding.directive.mjs +260 -0
  21. package/esm2020/lib/context-manager/context-list/context-list.component.mjs +592 -0
  22. package/{esm2015/lib/context-manager/context-list/context-list.enum.js → esm2020/lib/context-manager/context-list/context-list.enum.mjs} +1 -1
  23. package/{esm2015/lib/context-manager/context-list/index.js → esm2020/lib/context-manager/context-list/index.mjs} +1 -1
  24. package/{esm2015/lib/context-manager/context-manager.module.js → esm2020/lib/context-manager/context-manager.module.mjs} +25 -27
  25. package/{esm2015/lib/context-manager/context-permissions/context-permissions-binding.directive.js → esm2020/lib/context-manager/context-permissions/context-permissions-binding.directive.mjs} +1 -1
  26. package/esm2020/lib/context-manager/context-permissions/context-permissions.component.mjs +306 -0
  27. package/{esm2015/lib/context-manager/context-permissions/index.js → esm2020/lib/context-manager/context-permissions/index.mjs} +1 -1
  28. package/{esm2015/lib/context-manager/index.js → esm2020/lib/context-manager/index.mjs} +1 -1
  29. package/{esm2015/lib/context-manager/shared/context.enum.js → esm2020/lib/context-manager/shared/context.enum.mjs} +1 -1
  30. package/esm2020/lib/context-manager/shared/context.interface.mjs +2 -0
  31. package/esm2020/lib/context-manager/shared/context.service.mjs +624 -0
  32. package/{esm2015/lib/context-manager/shared/index.js → esm2020/lib/context-manager/shared/index.mjs} +1 -1
  33. package/{esm2015/lib/context-manager/shared/layer-context.directive.js → esm2020/lib/context-manager/shared/layer-context.directive.mjs} +1 -1
  34. package/esm2020/lib/context-manager/shared/map-context.directive.mjs +70 -0
  35. package/{esm2015/lib/context-map-button/bookmark-button/bookmark-button.component.js → esm2020/lib/context-map-button/bookmark-button/bookmark-button.component.mjs} +8 -14
  36. package/esm2020/lib/context-map-button/bookmark-button/bookmark-dialog.component.mjs +50 -0
  37. package/{esm2015/lib/context-map-button/bookmark-button/index.js → esm2020/lib/context-map-button/bookmark-button/index.mjs} +1 -1
  38. package/{esm2015/lib/context-map-button/context-map-button.module.js → esm2020/lib/context-map-button/context-map-button.module.mjs} +15 -17
  39. package/{esm2015/lib/context-map-button/index.js → esm2020/lib/context-map-button/index.mjs} +1 -1
  40. package/{esm2015/lib/context-map-button/poi-button/index.js → esm2020/lib/context-map-button/poi-button/index.mjs} +1 -1
  41. package/esm2020/lib/context-map-button/poi-button/poi-button.component.mjs +171 -0
  42. package/esm2020/lib/context-map-button/poi-button/poi-dialog.component.mjs +50 -0
  43. package/{esm2015/lib/context-map-button/poi-button/shared/index.js → esm2020/lib/context-map-button/poi-button/shared/index.mjs} +1 -1
  44. package/{esm2015/lib/context-map-button/poi-button/shared/poi.interface.js → esm2020/lib/context-map-button/poi-button/shared/poi.interface.mjs} +1 -1
  45. package/{esm2015/lib/context-map-button/poi-button/shared/poi.service.js → esm2020/lib/context-map-button/poi-button/shared/poi.service.mjs} +1 -1
  46. package/{esm2015/lib/context-map-button/user-button/index.js → esm2020/lib/context-map-button/user-button/index.mjs} +1 -1
  47. package/{esm2015/lib/context-map-button/user-button/user-button.animation.js → esm2020/lib/context-map-button/user-button/user-button.animation.mjs} +1 -1
  48. package/esm2020/lib/context-map-button/user-button/user-button.component.mjs +104 -0
  49. package/{esm2015/lib/context-map-button/user-button/user-dialog.component.js → esm2020/lib/context-map-button/user-button/user-dialog.component.mjs} +6 -12
  50. package/{esm2015/lib/context.module.js → esm2020/lib/context.module.mjs} +2 -2
  51. package/{esm2015/lib/share-map/index.js → esm2020/lib/share-map/index.mjs} +1 -1
  52. package/esm2020/lib/share-map/share-map/share-map-api.component.mjs +181 -0
  53. package/{esm2015/lib/share-map/share-map/share-map-url.component.js → esm2020/lib/share-map/share-map/share-map-url.component.mjs} +13 -23
  54. package/esm2020/lib/share-map/share-map/share-map.component.mjs +57 -0
  55. package/{esm2015/lib/share-map/share-map.module.js → esm2020/lib/share-map/share-map.module.mjs} +11 -13
  56. package/{esm2015/lib/share-map/shared/index.js → esm2020/lib/share-map/shared/index.mjs} +1 -1
  57. package/esm2020/lib/share-map/shared/share-map.service.mjs +201 -0
  58. package/{esm2015/lib/sidenav/index.js → esm2020/lib/sidenav/index.mjs} +1 -1
  59. package/esm2020/lib/sidenav/sidenav.component.mjs +170 -0
  60. package/{esm2015/lib/sidenav/sidenav.module.js → esm2020/lib/sidenav/sidenav.module.mjs} +11 -13
  61. package/{esm2015/public_api.js → esm2020/public_api.mjs} +1 -1
  62. package/fesm2015/igo2-context.mjs +5143 -0
  63. package/fesm2015/igo2-context.mjs.map +1 -0
  64. package/{fesm2015/igo2-context.js → fesm2020/igo2-context.mjs} +596 -731
  65. package/fesm2020/igo2-context.mjs.map +1 -0
  66. package/{igo2-context.d.ts → index.d.ts} +0 -0
  67. package/lib/context-import-export/context-import-export/context-import-export.component.d.ts +4 -4
  68. package/lib/context-manager/context-edit/context-edit-binding.directive.d.ts +1 -1
  69. package/lib/context-manager/context-edit/context-edit.component.d.ts +1 -1
  70. package/lib/context-manager/context-form/context-form.component.d.ts +4 -4
  71. package/lib/context-manager/context-item/context-item.component.d.ts +5 -8
  72. package/lib/context-manager/context-list/context-list-binding.directive.d.ts +6 -4
  73. package/lib/context-manager/context-list/context-list.component.d.ts +1 -1
  74. package/lib/context-manager/context-permissions/context-permissions-binding.directive.d.ts +1 -1
  75. package/lib/context-manager/context-permissions/context-permissions.component.d.ts +5 -5
  76. package/lib/context-manager/shared/context.service.d.ts +4 -3
  77. package/lib/context-manager/shared/layer-context.directive.d.ts +1 -1
  78. package/lib/context-manager/shared/map-context.directive.d.ts +1 -1
  79. package/lib/context-map-button/bookmark-button/bookmark-button.component.d.ts +1 -1
  80. package/lib/context-map-button/bookmark-button/bookmark-dialog.component.d.ts +1 -1
  81. package/lib/context-map-button/poi-button/poi-button.component.d.ts +1 -1
  82. package/lib/context-map-button/poi-button/poi-dialog.component.d.ts +1 -1
  83. package/lib/context-map-button/user-button/user-button.component.d.ts +1 -1
  84. package/lib/context-map-button/user-button/user-dialog.component.d.ts +1 -1
  85. package/lib/share-map/share-map/share-map-api.component.d.ts +4 -4
  86. package/lib/share-map/share-map/share-map-url.component.d.ts +1 -1
  87. package/lib/share-map/share-map/share-map.component.d.ts +1 -1
  88. package/lib/sidenav/sidenav.component.d.ts +1 -1
  89. package/ngcc.config.js +3 -3
  90. package/package.json +31 -18
  91. package/bundles/igo2-context.umd.js +0 -6064
  92. package/bundles/igo2-context.umd.js.map +0 -1
  93. package/esm2015/lib/context-import-export/context-import-export/context-import-export.component.js +0 -257
  94. package/esm2015/lib/context-import-export/shared/context-import.utils.js +0 -156
  95. package/esm2015/lib/context-manager/context-form/context-form.component.js +0 -156
  96. package/esm2015/lib/context-manager/context-item/context-item.component.js +0 -249
  97. package/esm2015/lib/context-manager/context-list/context-list-binding.directive.js +0 -247
  98. package/esm2015/lib/context-manager/context-list/context-list.component.js +0 -601
  99. package/esm2015/lib/context-manager/context-permissions/context-permissions.component.js +0 -323
  100. package/esm2015/lib/context-manager/shared/context.interface.js +0 -2
  101. package/esm2015/lib/context-manager/shared/context.service.js +0 -611
  102. package/esm2015/lib/context-manager/shared/map-context.directive.js +0 -67
  103. package/esm2015/lib/context-map-button/bookmark-button/bookmark-dialog.component.js +0 -59
  104. package/esm2015/lib/context-map-button/poi-button/poi-button.component.js +0 -177
  105. package/esm2015/lib/context-map-button/poi-button/poi-dialog.component.js +0 -59
  106. package/esm2015/lib/context-map-button/user-button/user-button.component.js +0 -112
  107. package/esm2015/lib/share-map/share-map/share-map-api.component.js +0 -194
  108. package/esm2015/lib/share-map/share-map/share-map.component.js +0 -63
  109. package/esm2015/lib/share-map/shared/share-map.service.js +0 -201
  110. package/esm2015/lib/sidenav/sidenav.component.js +0 -183
  111. package/fesm2015/igo2-context.js.map +0 -1
@@ -1,37 +1,37 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Optional, Component, Input, NgModule, Directive, EventEmitter, ChangeDetectionStrategy, Output, Self, HostListener } from '@angular/core';
3
- import * as i3$1 from '@angular/material/form-field';
3
+ import * as i4 from '@angular/material/form-field';
4
4
  import { MatFormFieldModule } from '@angular/material/form-field';
5
- import * as i3$2 from '@angular/material/input';
5
+ import * as i5$1 from '@angular/material/input';
6
6
  import { MatInputModule } from '@angular/material/input';
7
- import * as i7$1 from '@angular/material/menu';
7
+ import * as i13 from '@angular/material/menu';
8
8
  import { MatMenuModule } from '@angular/material/menu';
9
- import * as i7 from '@angular/common';
9
+ import * as i5 from '@angular/common';
10
10
  import { CommonModule } from '@angular/common';
11
- import * as i5 from '@angular/material/button';
11
+ import * as i7 from '@angular/material/button';
12
12
  import { MatButtonModule } from '@angular/material/button';
13
- import * as i6 from '@angular/material/button-toggle';
13
+ import * as i8 from '@angular/material/button-toggle';
14
14
  import { MatButtonToggleModule } from '@angular/material/button-toggle';
15
- import * as i11 from '@angular/material/core';
15
+ import * as i12 from '@angular/material/core';
16
16
  import { MatOptionModule } from '@angular/material/core';
17
- import * as i14 from '@angular/material/divider';
17
+ import * as i9 from '@angular/material/divider';
18
18
  import { MatDividerModule } from '@angular/material/divider';
19
- import * as i12 from '@angular/material/select';
19
+ import * as i11 from '@angular/material/select';
20
20
  import { MatSelectModule } from '@angular/material/select';
21
- import * as i8 from '@angular/material/checkbox';
21
+ import * as i12$1 from '@angular/material/checkbox';
22
22
  import { MatCheckboxModule } from '@angular/material/checkbox';
23
- import * as i3$4 from '@angular/material/tabs';
23
+ import * as i3$1 from '@angular/material/tabs';
24
24
  import { MatTabsModule } from '@angular/material/tabs';
25
- import * as i6$2 from '@angular/material/tooltip';
25
+ import * as i6$1 from '@angular/material/tooltip';
26
26
  import { MatTooltipModule } from '@angular/material/tooltip';
27
27
  import * as i3 from '@igo2/core';
28
28
  import { IgoLanguageModule } from '@igo2/core';
29
- import * as i4 from '@angular/forms';
30
- import { Validators, FormsModule, ReactiveFormsModule, FormControl } from '@angular/forms';
29
+ import * as i1$1 from '@angular/forms';
30
+ import { Validators, FormsModule, ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
31
31
  import { Observable, BehaviorSubject, Subject, of, merge, ReplaySubject, EMPTY, timer, combineLatest } from 'rxjs';
32
32
  import { skip, first, catchError, tap, map, mergeMap, debounceTime, take, filter, buffer, debounce } from 'rxjs/operators';
33
33
  import * as olStyle from 'ol/style';
34
- import * as i1$1 from '@igo2/geo';
34
+ import * as i1$2 from '@igo2/geo';
35
35
  import { FeatureDataSource, VectorLayer, ClusterDataSource, moveToOlFeatures, FeatureMotion, IgoFeatureModule } from '@igo2/geo';
36
36
  import { downloadContent, ObjectUtils, uuid, Clipboard } from '@igo2/utils';
37
37
  import olPoint from 'ol/geom/Point';
@@ -41,25 +41,25 @@ import olVectorSource from 'ol/source/Vector';
41
41
  import * as i1 from '@angular/common/http';
42
42
  import * as i2 from '@igo2/auth';
43
43
  import { IgoAuthModule } from '@igo2/auth';
44
- import * as i5$1 from '@igo2/common';
44
+ import * as i14 from '@igo2/common';
45
45
  import { IgoSpinnerModule, ActionStore, ActionbarMode, IgoConfirmDialogModule, IgoStopPropagationModule, IgoListModule, IgoKeyValueModule, IgoCollapsibleModule, IgoActionbarModule, getEntityTitle, IgoPanelModule, IgoFlexibleModule } from '@igo2/common';
46
- import * as i6$1 from '@ngx-translate/core';
47
- import * as i9$1 from '@angular/material/autocomplete';
46
+ import * as i6 from '@ngx-translate/core';
47
+ import * as i14$1 from '@angular/material/autocomplete';
48
48
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
49
- import * as i1$2 from '@angular/material/dialog';
49
+ import * as i1$3 from '@angular/material/dialog';
50
50
  import { MatDialogModule } from '@angular/material/dialog';
51
- import * as i9 from '@angular/material/icon';
51
+ import * as i4$1 from '@angular/material/icon';
52
52
  import { MatIconModule } from '@angular/material/icon';
53
- import * as i3$3 from '@angular/material/list';
53
+ import * as i7$1 from '@angular/material/list';
54
54
  import { MatListModule } from '@angular/material/list';
55
- import * as i6$3 from '@angular/material/radio';
55
+ import * as i13$1 from '@angular/material/radio';
56
56
  import { MatRadioModule } from '@angular/material/radio';
57
57
  import * as olproj from 'ol/proj';
58
58
  import * as oleasing from 'ol/easing';
59
59
  import { trigger, state, style, transition, animate } from '@angular/animations';
60
- import * as i2$1 from '@angular/material/sidenav';
60
+ import * as i5$2 from '@angular/material/sidenav';
61
61
  import { MatSidenavModule } from '@angular/material/sidenav';
62
- import * as i1$3 from '@angular/platform-browser';
62
+ import * as i1$4 from '@angular/platform-browser';
63
63
 
64
64
  class ExportError extends Error {
65
65
  }
@@ -189,6 +189,7 @@ function addImportedFeaturesToMap(olFeatures, map, layerTitle) {
189
189
  source.ol.addFeatures(olFeatures);
190
190
  const layer = new VectorLayer({
191
191
  title: layerTitle,
192
+ isIgoInternalLayer: true,
192
193
  source,
193
194
  style: new olStyle.Style({
194
195
  stroke,
@@ -208,23 +209,23 @@ function addImportedFeaturesStyledToMap(olFeatures, map, layerTitle, styleListSe
208
209
  let distance;
209
210
  if (styleListService.getStyleList(layerTitle.toString() + '.styleByAttribute')) {
210
211
  const styleByAttribute = styleListService.getStyleList(layerTitle.toString() + '.styleByAttribute');
211
- style = (feature) => {
212
- return styleService.createStyleByAttribute(feature, styleByAttribute);
212
+ style = (feature, resolution) => {
213
+ return styleService.createStyleByAttribute(feature, styleByAttribute, resolution);
213
214
  };
214
215
  }
215
216
  else if (styleListService.getStyleList(layerTitle.toString() + '.clusterStyle')) {
216
217
  const clusterParam = styleListService.getStyleList(layerTitle.toString() + '.clusterParam');
217
218
  distance = styleListService.getStyleList(layerTitle.toString() + '.distance');
218
- const baseStyle = styleService.createStyle(styleListService.getStyleList(layerTitle.toString() + '.clusterStyle'));
219
- style = (feature) => {
220
- return styleService.createClusterStyle(feature, clusterParam, baseStyle);
219
+ style = (feature, resolution) => {
220
+ const baseStyle = styleService.createStyle(styleListService.getStyleList(layerTitle.toString() + '.clusterStyle'), feature, resolution);
221
+ return styleService.createClusterStyle(feature, resolution, clusterParam, baseStyle);
221
222
  };
222
223
  }
223
224
  else if (styleListService.getStyleList(layerTitle.toString() + '.style')) {
224
- style = styleService.createStyle(styleListService.getStyleList(layerTitle.toString() + '.style'));
225
+ style = (feature, resolution) => styleService.createStyle(styleListService.getStyleList(layerTitle.toString() + '.style'), feature, resolution);
225
226
  }
226
227
  else {
227
- style = styleService.createStyle(styleListService.getStyleList('default.style'));
228
+ style = (feature, resolution) => styleService.createStyle(styleListService.getStyleList('default.style'), feature, resolution);
228
229
  }
229
230
  let source;
230
231
  if (styleListService.getStyleList(layerTitle.toString() + '.clusterStyle')) {
@@ -246,6 +247,7 @@ function addImportedFeaturesStyledToMap(olFeatures, map, layerTitle, styleListSe
246
247
  }
247
248
  const layer = new VectorLayer({
248
249
  title: layerTitle,
250
+ isIgoInternalLayer: true,
249
251
  source,
250
252
  style
251
253
  });
@@ -406,12 +408,13 @@ var Scope;
406
408
  })(Scope || (Scope = {}));
407
409
 
408
410
  class ContextService {
409
- constructor(http, authService, languageService, config, messageService, route) {
411
+ constructor(http, authService, languageService, config, messageService, storageService, route) {
410
412
  this.http = http;
411
413
  this.authService = authService;
412
414
  this.languageService = languageService;
413
415
  this.config = config;
414
416
  this.messageService = messageService;
417
+ this.storageService = storageService;
415
418
  this.route = route;
416
419
  this.context$ = new BehaviorSubject(undefined);
417
420
  this.contexts$ = new BehaviorSubject({ ours: [] });
@@ -443,7 +446,7 @@ class ContextService {
443
446
  }
444
447
  }
445
448
  get defaultContextUri() {
446
- return this._defaultContextUri || this.options.defaultContextUri;
449
+ return this.storageService.get('favorite.context.uri') || this._defaultContextUri || this.options.defaultContextUri;
447
450
  }
448
451
  set defaultContextUri(uri) {
449
452
  this._defaultContextUri = uri;
@@ -470,10 +473,17 @@ class ContextService {
470
473
  }));
471
474
  }
472
475
  getDefault() {
473
- const url = this.baseUrl + '/contexts/default';
474
- return this.http.get(url).pipe(tap((context) => {
475
- this.defaultContextId$.next(context.id);
476
- }));
476
+ if (this.authService.authenticated) {
477
+ const url = this.baseUrl + '/contexts/default';
478
+ return this.http.get(url).pipe(tap((context) => {
479
+ this.defaultContextId$.next(context.id);
480
+ }));
481
+ }
482
+ else {
483
+ const uri = this.storageService.get('favorite.context.uri');
484
+ this.defaultContextId$.next(uri);
485
+ return this.getContextByUri(uri);
486
+ }
477
487
  }
478
488
  getProfilByUser() {
479
489
  if (this.baseUrl) {
@@ -483,8 +493,14 @@ class ContextService {
483
493
  return of([]);
484
494
  }
485
495
  setDefault(id) {
486
- const url = this.baseUrl + '/contexts/default';
487
- return this.http.post(url, { defaultContextId: id });
496
+ if (this.authService.authenticated) {
497
+ const url = this.baseUrl + '/contexts/default';
498
+ return this.http.post(url, { defaultContextId: id });
499
+ }
500
+ else {
501
+ this.storageService.set('favorite.context.uri', id);
502
+ return of(undefined);
503
+ }
488
504
  }
489
505
  hideContext(id) {
490
506
  const url = this.baseUrl + '/contexts/' + id + '/hide';
@@ -904,7 +920,6 @@ class ContextService {
904
920
  if (centerKey && params[centerKey]) {
905
921
  const centerParams = params[centerKey];
906
922
  this.mapViewFromRoute.center = centerParams.split(',').map(Number);
907
- this.mapViewFromRoute.geolocate = false;
908
923
  }
909
924
  const projectionKey = this.route.options.projectionKey;
910
925
  if (projectionKey && params[projectionKey]) {
@@ -992,25 +1007,22 @@ class ContextService {
992
1007
  return found;
993
1008
  }
994
1009
  }
995
- ContextService.ɵfac = function ContextService_Factory(t) { return new (t || ContextService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.AuthService), i0.ɵɵinject(i3.LanguageService), i0.ɵɵinject(i3.ConfigService), i0.ɵɵinject(i3.MessageService), i0.ɵɵinject(i3.RouteService, 8)); };
1010
+ ContextService.ɵfac = function ContextService_Factory(t) { return new (t || ContextService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.AuthService), i0.ɵɵinject(i3.LanguageService), i0.ɵɵinject(i3.ConfigService), i0.ɵɵinject(i3.MessageService), i0.ɵɵinject(i3.StorageService), i0.ɵɵinject(i3.RouteService, 8)); };
996
1011
  ContextService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ContextService, factory: ContextService.ɵfac, providedIn: 'root' });
997
1012
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextService, [{
998
1013
  type: Injectable,
999
1014
  args: [{
1000
1015
  providedIn: 'root'
1001
1016
  }]
1002
- }], function () { return [{ type: i1.HttpClient }, { type: i2.AuthService }, { type: i3.LanguageService }, { type: i3.ConfigService }, { type: i3.MessageService }, { type: i3.RouteService, decorators: [{
1017
+ }], function () { return [{ type: i1.HttpClient }, { type: i2.AuthService }, { type: i3.LanguageService }, { type: i3.ConfigService }, { type: i3.MessageService }, { type: i3.StorageService }, { type: i3.RouteService, decorators: [{
1003
1018
  type: Optional
1004
1019
  }] }]; }, null); })();
1005
1020
 
1006
1021
  const _c0$2 = function (a0) { return { size: a0 }; };
1007
1022
  function ContextImportExportComponent_div_8_Template(rf, ctx) { if (rf & 1) {
1008
1023
  const _r4 = i0.ɵɵgetCurrentView();
1009
- i0.ɵɵelementStart(0, "div");
1010
- i0.ɵɵelementStart(1, "form", 5);
1011
- i0.ɵɵelementStart(2, "div", 6);
1012
- i0.ɵɵelementStart(3, "button", 7);
1013
- i0.ɵɵlistener("click", function ContextImportExportComponent_div_8_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(10); return _r2.click(); });
1024
+ i0.ɵɵelementStart(0, "div")(1, "form", 5)(2, "div", 6)(3, "button", 7);
1025
+ i0.ɵɵlistener("click", function ContextImportExportComponent_div_8_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(10); return i0.ɵɵresetView(_r2.click()); });
1014
1026
  i0.ɵɵpipe(4, "async");
1015
1027
  i0.ɵɵtext(5);
1016
1028
  i0.ɵɵpipe(6, "translate");
@@ -1018,23 +1030,16 @@ function ContextImportExportComponent_div_8_Template(rf, ctx) { if (rf & 1) {
1018
1030
  i0.ɵɵelement(7, "igo-spinner", 8);
1019
1031
  i0.ɵɵpipe(8, "async");
1020
1032
  i0.ɵɵelementStart(9, "input", 9, 10);
1021
- i0.ɵɵlistener("click", function ContextImportExportComponent_div_8_Template_input_click_9_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(10); return _r2.value = null; })("change", function ContextImportExportComponent_div_8_Template_input_change_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.importFiles($event.target.files); });
1022
- i0.ɵɵelementEnd();
1023
- i0.ɵɵelementEnd();
1024
- i0.ɵɵelementEnd();
1025
- i0.ɵɵelementStart(11, "section", 11);
1026
- i0.ɵɵelementStart(12, "h4");
1033
+ i0.ɵɵlistener("click", function ContextImportExportComponent_div_8_Template_input_click_9_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(10); return i0.ɵɵresetView(_r2.value = null); })("change", function ContextImportExportComponent_div_8_Template_input_change_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.importFiles($event.target.files)); });
1034
+ i0.ɵɵelementEnd()()();
1035
+ i0.ɵɵelementStart(11, "section", 11)(12, "h4");
1027
1036
  i0.ɵɵtext(13);
1028
1037
  i0.ɵɵpipe(14, "translate");
1029
1038
  i0.ɵɵelementEnd();
1030
- i0.ɵɵelementStart(15, "ul");
1031
- i0.ɵɵelementStart(16, "li");
1039
+ i0.ɵɵelementStart(15, "ul")(16, "li");
1032
1040
  i0.ɵɵtext(17);
1033
1041
  i0.ɵɵpipe(18, "translate");
1034
- i0.ɵɵelementEnd();
1035
- i0.ɵɵelementEnd();
1036
- i0.ɵɵelementEnd();
1037
- i0.ɵɵelementEnd();
1042
+ i0.ɵɵelementEnd()()()();
1038
1043
  } if (rf & 2) {
1039
1044
  const ctx_r0 = i0.ɵɵnextContext();
1040
1045
  i0.ɵɵadvance(3);
@@ -1062,44 +1067,33 @@ function ContextImportExportComponent_form_9_mat_option_18_Template(rf, ctx) { i
1062
1067
  } }
1063
1068
  function ContextImportExportComponent_form_9_Template(rf, ctx) { if (rf & 1) {
1064
1069
  const _r11 = i0.ɵɵgetCurrentView();
1065
- i0.ɵɵelementStart(0, "form", 12);
1066
- i0.ɵɵelementStart(1, "div", 13);
1067
- i0.ɵɵelementStart(2, "mat-form-field", 14);
1068
- i0.ɵɵelementStart(3, "mat-label");
1070
+ i0.ɵɵelementStart(0, "form", 12)(1, "div", 13)(2, "mat-form-field", 14)(3, "mat-label");
1069
1071
  i0.ɵɵtext(4);
1070
1072
  i0.ɵɵpipe(5, "translate");
1071
1073
  i0.ɵɵelementEnd();
1072
1074
  i0.ɵɵelement(6, "input", 15);
1073
- i0.ɵɵelementEnd();
1074
- i0.ɵɵelementEnd();
1075
- i0.ɵɵelementStart(7, "div", 13);
1076
- i0.ɵɵelementStart(8, "mat-form-field");
1077
- i0.ɵɵelementStart(9, "mat-label");
1075
+ i0.ɵɵelementEnd()();
1076
+ i0.ɵɵelementStart(7, "div", 13)(8, "mat-form-field")(9, "mat-label");
1078
1077
  i0.ɵɵtext(10);
1079
1078
  i0.ɵɵpipe(11, "translate");
1080
1079
  i0.ɵɵelementEnd();
1081
- i0.ɵɵelementStart(12, "mat-select", 16);
1082
- i0.ɵɵelementStart(13, "mat-option", 17, 18);
1083
- i0.ɵɵlistener("click", function ContextImportExportComponent_form_9_Template_mat_option_click_13_listener() { i0.ɵɵrestoreView(_r11); const _r7 = i0.ɵɵreference(14); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.selectAll(_r7); });
1080
+ i0.ɵɵelementStart(12, "mat-select", 16)(13, "mat-option", 17, 18);
1081
+ i0.ɵɵlistener("click", function ContextImportExportComponent_form_9_Template_mat_option_click_13_listener() { i0.ɵɵrestoreView(_r11); const _r7 = i0.ɵɵreference(14); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.selectAll(_r7)); });
1084
1082
  i0.ɵɵtext(15);
1085
1083
  i0.ɵɵpipe(16, "translate");
1086
1084
  i0.ɵɵelementEnd();
1087
1085
  i0.ɵɵelement(17, "mat-divider");
1088
1086
  i0.ɵɵtemplate(18, ContextImportExportComponent_form_9_mat_option_18_Template, 2, 2, "mat-option", 19);
1089
- i0.ɵɵelementEnd();
1090
- i0.ɵɵelementEnd();
1091
- i0.ɵɵelementEnd();
1092
- i0.ɵɵelementStart(19, "div", 6);
1093
- i0.ɵɵelementStart(20, "button", 7);
1094
- i0.ɵɵlistener("click", function ContextImportExportComponent_form_9_Template_button_click_20_listener() { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.handleExportFormSubmit(ctx_r12.form.value); });
1087
+ i0.ɵɵelementEnd()()();
1088
+ i0.ɵɵelementStart(19, "div", 6)(20, "button", 7);
1089
+ i0.ɵɵlistener("click", function ContextImportExportComponent_form_9_Template_button_click_20_listener() { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.handleExportFormSubmit(ctx_r12.form.value)); });
1095
1090
  i0.ɵɵpipe(21, "async");
1096
1091
  i0.ɵɵtext(22);
1097
1092
  i0.ɵɵpipe(23, "translate");
1098
1093
  i0.ɵɵelementEnd();
1099
1094
  i0.ɵɵelement(24, "igo-spinner", 8);
1100
1095
  i0.ɵɵpipe(25, "async");
1101
- i0.ɵɵelementEnd();
1102
- i0.ɵɵelementEnd();
1096
+ i0.ɵɵelementEnd()();
1103
1097
  } if (rf & 2) {
1104
1098
  const ctx_r1 = i0.ɵɵnextContext();
1105
1099
  i0.ɵɵproperty("formGroup", ctx_r1.form);
@@ -1193,10 +1187,9 @@ class ContextImportExportComponent {
1193
1187
  this.activeImportExport = event.value;
1194
1188
  }
1195
1189
  }
1196
- ContextImportExportComponent.ɵfac = function ContextImportExportComponent_Factory(t) { return new (t || ContextImportExportComponent)(i0.ɵɵdirectiveInject(ContextImportService), i0.ɵɵdirectiveInject(ContextExportService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(ContextService)); };
1190
+ ContextImportExportComponent.ɵfac = function ContextImportExportComponent_Factory(t) { return new (t || ContextImportExportComponent)(i0.ɵɵdirectiveInject(ContextImportService), i0.ɵɵdirectiveInject(ContextExportService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i1$1.UntypedFormBuilder), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(ContextService)); };
1197
1191
  ContextImportExportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextImportExportComponent, selectors: [["igo-context-import-export"]], inputs: { map: "map" }, decls: 10, vars: 11, consts: [[1, "import-export-toggle", "mat-typography"], [3, "value", "change"], [3, "value"], [4, "ngIf"], ["class", "igo-form", 3, "formGroup", 4, "ngIf"], [1, "igo-form"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "button", 3, "disabled", "click"], [3, "shown"], ["type", "file", 3, "click", "change"], ["fileInput", ""], [1, "mat-typography"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [1, "example-full-width"], ["formControlName", "name", "matInput", "", 3, "value"], ["formControlName", "layers", "multiple", ""], [3, "value", "click"], ["e", ""], [3, "value", 4, "ngFor", "ngForOf"]], template: function ContextImportExportComponent_Template(rf, ctx) { if (rf & 1) {
1198
- i0.ɵɵelementStart(0, "div", 0);
1199
- i0.ɵɵelementStart(1, "mat-button-toggle-group", 1);
1192
+ i0.ɵɵelementStart(0, "div", 0)(1, "mat-button-toggle-group", 1);
1200
1193
  i0.ɵɵlistener("change", function ContextImportExportComponent_Template_mat_button_toggle_group_change_1_listener($event) { return ctx.onImportExportChange($event); });
1201
1194
  i0.ɵɵelementStart(2, "mat-button-toggle", 2);
1202
1195
  i0.ɵɵtext(3);
@@ -1205,9 +1198,7 @@ ContextImportExportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
1205
1198
  i0.ɵɵelementStart(5, "mat-button-toggle", 2);
1206
1199
  i0.ɵɵtext(6);
1207
1200
  i0.ɵɵpipe(7, "translate");
1208
- i0.ɵɵelementEnd();
1209
- i0.ɵɵelementEnd();
1210
- i0.ɵɵelementEnd();
1201
+ i0.ɵɵelementEnd()()();
1211
1202
  i0.ɵɵtemplate(8, ContextImportExportComponent_div_8_Template, 19, 20, "div", 3);
1212
1203
  i0.ɵɵtemplate(9, ContextImportExportComponent_form_9_Template, 26, 21, "form", 4);
1213
1204
  } if (rf & 2) {
@@ -1225,15 +1216,11 @@ ContextImportExportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
1225
1216
  i0.ɵɵproperty("ngIf", ctx.activeImportExport === "import");
1226
1217
  i0.ɵɵadvance(1);
1227
1218
  i0.ɵɵproperty("ngIf", ctx.activeImportExport === "export");
1228
- } }, directives: [i6.MatButtonToggleGroup, i6.MatButtonToggle, i7.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.NgForm, i5.MatButton, i5$1.SpinnerComponent, i4.FormGroupDirective, i3$1.MatFormField, i3$1.MatLabel, i4.DefaultValueAccessor, i3$2.MatInput, i4.NgControlStatus, i4.FormControlName, i12.MatSelect, i11.MatOption, i14.MatDivider, i7.NgForOf], pipes: [i6$1.TranslatePipe, i7.AsyncPipe], styles: [".import-export-toggle[_ngcontent-%COMP%]{padding:10px;text-align:center}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%]{width:100%}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%] mat-button-toggle[_ngcontent-%COMP%]{width:50%}.igo-input-container[_ngcontent-%COMP%]{padding:10px}.igo-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}h4[_ngcontent-%COMP%]{padding:0 5px}.igo-form[_ngcontent-%COMP%]{padding:15px 5px}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}igo-spinner[_ngcontent-%COMP%]{position:absolute;padding-left:10px}"] });
1219
+ } }, dependencies: [i1$1.ɵNgNoValidate, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.NgForm, i1$1.FormGroupDirective, i1$1.FormControlName, i5.NgForOf, i5.NgIf, i7.MatButton, i8.MatButtonToggleGroup, i8.MatButtonToggle, i9.MatDivider, i4.MatFormField, i4.MatLabel, i11.MatSelect, i12.MatOption, i5$1.MatInput, i14.SpinnerComponent, i5.AsyncPipe, i6.TranslatePipe], styles: [".import-export-toggle[_ngcontent-%COMP%]{padding:10px;text-align:center}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%]{width:100%}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%] mat-button-toggle[_ngcontent-%COMP%]{width:50%}.igo-input-container[_ngcontent-%COMP%]{padding:10px}.igo-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}h4[_ngcontent-%COMP%]{padding:0 5px}.igo-form[_ngcontent-%COMP%]{padding:15px 5px}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}igo-spinner[_ngcontent-%COMP%]{position:absolute;padding-left:10px}"] });
1229
1220
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextImportExportComponent, [{
1230
1221
  type: Component,
1231
- args: [{
1232
- selector: 'igo-context-import-export',
1233
- templateUrl: './context-import-export.component.html',
1234
- styleUrls: ['./context-import-export.component.scss']
1235
- }]
1236
- }], function () { return [{ type: ContextImportService }, { type: ContextExportService }, { type: i3.LanguageService }, { type: i3.MessageService }, { type: i4.FormBuilder }, { type: i3.ConfigService }, { type: ContextService }]; }, { map: [{
1222
+ args: [{ selector: 'igo-context-import-export', template: "<div class=\"import-export-toggle mat-typography\">\r\n <mat-button-toggle-group\r\n [value]=\"activeImportExport\"\r\n (change)=\"onImportExportChange($event)\">\r\n <mat-button-toggle [value]=\"'import'\">\r\n {{'igo.geo.importExportForm.importTabTitle' | translate}}\r\n </mat-button-toggle>\r\n <mat-button-toggle [value]=\"'export'\">\r\n {{'igo.geo.importExportForm.exportTabTitle' | translate}}\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n</div>\r\n\r\n<div *ngIf=\"activeImportExport === 'import'\">\r\n <form class=\"igo-form\">\r\n <div class=\"igo-form-button-group\">\r\n <button mat-raised-button type=\"button\" (click)=\"fileInput.click()\" [disabled]=\"loading$ | async\">\r\n {{'igo.geo.importExportForm.importButton' | translate}}\r\n </button>\r\n <igo-spinner [shown]=\"loading$ | async\"></igo-spinner>\r\n <input\r\n #fileInput\r\n type=\"file\"\r\n [style.display]=\"'none'\"\r\n (click)=\"fileInput.value = null\"\r\n (change)=\"importFiles($event.target.files)\">\r\n </div>\r\n </form>\r\n <section class=\"mat-typography\">\r\n <h4>{{'igo.geo.importExportForm.importClarifications' | translate}}</h4>\r\n <ul>\r\n <li>{{'igo.geo.importExportForm.importSizeMax' | translate: {size: fileSizeMb} }}</li>\r\n </ul>\r\n </section>\r\n</div>\r\n\r\n\r\n<form class=\"igo-form\" *ngIf=\"activeImportExport === 'export'\" [formGroup]=\"form\">\r\n <div class=\"igo-input-container\">\r\n <mat-form-field class=\"example-full-width\">\r\n <mat-label>{{'igo.context.contextImportExport.export.exportContextName' | translate}}</mat-label>\r\n <input formControlName=\"name\" matInput [value]=\"\">\r\n </mat-form-field>\r\n </div>\r\n <div class=\"igo-input-container\">\r\n <mat-form-field>\r\n <mat-label>{{'igo.context.contextImportExport.export.exportPlaceHolder' | translate}}</mat-label>\r\n <mat-select formControlName=\"layers\" multiple>\r\n <mat-option [value]=\"1\" (click)=\"selectAll(e)\" #e>\r\n {{'igo.context.contextImportExport.export.exportSelectAll' | translate}}\r\n </mat-option>\r\n <mat-divider></mat-divider>\r\n <mat-option *ngFor=\"let layer of userControlledLayerList\" [value]=\"layer\">{{layer.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"igo-form-button-group\">\r\n <button\r\n mat-raised-button\r\n type=\"button\"\r\n [disabled]=\"!form.valid || (loading$ | async)\"\r\n (click)=\"handleExportFormSubmit(form.value)\">\r\n {{'igo.geo.importExportForm.exportButton' | translate}}\r\n </button>\r\n <igo-spinner [shown]=\"loading$ | async\"></igo-spinner>\r\n </div>\r\n</form>\r\n", styles: [".import-export-toggle{padding:10px;text-align:center}.import-export-toggle mat-button-toggle-group{width:100%}.import-export-toggle mat-button-toggle-group mat-button-toggle{width:50%}.igo-input-container{padding:10px}.igo-input-container mat-form-field{width:100%}h4{padding:0 5px}.igo-form{padding:15px 5px}.igo-form-button-group{text-align:center;padding-top:10px}igo-spinner{position:absolute;padding-left:10px}\n"] }]
1223
+ }], function () { return [{ type: ContextImportService }, { type: ContextExportService }, { type: i3.LanguageService }, { type: i3.MessageService }, { type: i1$1.UntypedFormBuilder }, { type: i3.ConfigService }, { type: ContextService }]; }, { map: [{
1237
1224
  type: Input
1238
1225
  }] }); })();
1239
1226
 
@@ -1246,23 +1233,21 @@ class IgoContextImportExportModule {
1246
1233
  }
1247
1234
  IgoContextImportExportModule.ɵfac = function IgoContextImportExportModule_Factory(t) { return new (t || IgoContextImportExportModule)(); };
1248
1235
  IgoContextImportExportModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextImportExportModule });
1249
- IgoContextImportExportModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
1250
- FormsModule,
1251
- ReactiveFormsModule,
1252
- CommonModule,
1253
- MatButtonModule,
1254
- MatButtonToggleModule,
1255
- MatDividerModule,
1256
- MatTabsModule,
1257
- MatSelectModule,
1258
- MatOptionModule,
1259
- MatFormFieldModule,
1260
- MatInputModule,
1261
- MatCheckboxModule,
1262
- IgoLanguageModule,
1263
- IgoSpinnerModule,
1264
- MatTooltipModule,
1265
- ]] });
1236
+ IgoContextImportExportModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [FormsModule,
1237
+ ReactiveFormsModule,
1238
+ CommonModule,
1239
+ MatButtonModule,
1240
+ MatButtonToggleModule,
1241
+ MatDividerModule,
1242
+ MatTabsModule,
1243
+ MatSelectModule,
1244
+ MatOptionModule,
1245
+ MatFormFieldModule,
1246
+ MatInputModule,
1247
+ MatCheckboxModule,
1248
+ IgoLanguageModule,
1249
+ IgoSpinnerModule,
1250
+ MatTooltipModule] });
1266
1251
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoContextImportExportModule, [{
1267
1252
  type: NgModule,
1268
1253
  args: [{
@@ -1344,6 +1329,9 @@ class MapContextDirective {
1344
1329
  if (!this.component.view || viewContext.keepCurrentView !== true) {
1345
1330
  this.component.view = viewContext;
1346
1331
  }
1332
+ if (this.component.map.geolocationController) {
1333
+ this.component.map.geolocationController.updateGeolocationOptions(viewContext);
1334
+ }
1347
1335
  const controlsContext = context.map.controls;
1348
1336
  if (!this.component.controls && controlsContext) {
1349
1337
  if (this.mediaService.isMobile()) {
@@ -1359,14 +1347,14 @@ class MapContextDirective {
1359
1347
  }
1360
1348
  }
1361
1349
  }
1362
- MapContextDirective.ɵfac = function MapContextDirective_Factory(t) { return new (t || MapContextDirective)(i0.ɵɵdirectiveInject(i1$1.MapBrowserComponent), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.MediaService)); };
1350
+ MapContextDirective.ɵfac = function MapContextDirective_Factory(t) { return new (t || MapContextDirective)(i0.ɵɵdirectiveInject(i1$2.MapBrowserComponent), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.MediaService)); };
1363
1351
  MapContextDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: MapContextDirective, selectors: [["", "igoMapContext", ""]] });
1364
1352
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapContextDirective, [{
1365
1353
  type: Directive,
1366
1354
  args: [{
1367
1355
  selector: '[igoMapContext]'
1368
1356
  }]
1369
- }], function () { return [{ type: i1$1.MapBrowserComponent }, { type: ContextService }, { type: i3.MediaService }]; }, null); })();
1357
+ }], function () { return [{ type: i1$2.MapBrowserComponent }, { type: ContextService }, { type: i3.MediaService }]; }, null); })();
1370
1358
 
1371
1359
  class LayerContextDirective {
1372
1360
  constructor(component, contextService, layerService, configService, styleListService, styleService, route) {
@@ -1492,14 +1480,14 @@ class LayerContextDirective {
1492
1480
  return visible;
1493
1481
  }
1494
1482
  }
1495
- LayerContextDirective.ɵfac = function LayerContextDirective_Factory(t) { return new (t || LayerContextDirective)(i0.ɵɵdirectiveInject(i1$1.MapBrowserComponent), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i1$1.LayerService), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i1$1.StyleListService), i0.ɵɵdirectiveInject(i1$1.StyleService), i0.ɵɵdirectiveInject(i3.RouteService, 8)); };
1483
+ LayerContextDirective.ɵfac = function LayerContextDirective_Factory(t) { return new (t || LayerContextDirective)(i0.ɵɵdirectiveInject(i1$2.MapBrowserComponent), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i1$2.LayerService), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i1$2.StyleListService), i0.ɵɵdirectiveInject(i1$2.StyleService), i0.ɵɵdirectiveInject(i3.RouteService, 8)); };
1496
1484
  LayerContextDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LayerContextDirective, selectors: [["", "igoLayerContext", ""]], inputs: { removeLayersOnContextChange: "removeLayersOnContextChange" } });
1497
1485
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LayerContextDirective, [{
1498
1486
  type: Directive,
1499
1487
  args: [{
1500
1488
  selector: '[igoLayerContext]'
1501
1489
  }]
1502
- }], function () { return [{ type: i1$1.MapBrowserComponent }, { type: ContextService }, { type: i1$1.LayerService }, { type: i3.ConfigService }, { type: i1$1.StyleListService }, { type: i1$1.StyleService }, { type: i3.RouteService, decorators: [{
1490
+ }], function () { return [{ type: i1$2.MapBrowserComponent }, { type: ContextService }, { type: i1$2.LayerService }, { type: i3.ConfigService }, { type: i1$2.StyleListService }, { type: i1$2.StyleService }, { type: i3.RouteService, decorators: [{
1503
1491
  type: Optional
1504
1492
  }] }]; }, { removeLayersOnContextChange: [{
1505
1493
  type: Input
@@ -1517,22 +1505,17 @@ class BookmarkDialogComponent {
1517
1505
  this.dialogRef = dialogRef;
1518
1506
  }
1519
1507
  }
1520
- BookmarkDialogComponent.ɵfac = function BookmarkDialogComponent_Factory(t) { return new (t || BookmarkDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef)); };
1508
+ BookmarkDialogComponent.ɵfac = function BookmarkDialogComponent_Factory(t) { return new (t || BookmarkDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
1521
1509
  BookmarkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BookmarkDialogComponent, selectors: [["igo-bookmark-dialog"]], decls: 14, vars: 14, consts: [["mat-dialog-title", "", 1, "mat-typography"], ["mat-dialog-content", "", 1, "mat-typography"], ["matInput", "", "required", "", "autocomplete", "off", "maxlength", "128", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-dialog-actions", ""], ["mat-button", "", "color", "primary", 3, "disabled", "click"], ["mat-button", "", 3, "click"]], template: function BookmarkDialogComponent_Template(rf, ctx) { if (rf & 1) {
1522
1510
  i0.ɵɵelementStart(0, "h1", 0);
1523
1511
  i0.ɵɵtext(1);
1524
1512
  i0.ɵɵpipe(2, "translate");
1525
1513
  i0.ɵɵelementEnd();
1526
- i0.ɵɵelementStart(3, "div", 1);
1527
- i0.ɵɵelementStart(4, "mat-form-field");
1528
- i0.ɵɵelementStart(5, "input", 2);
1514
+ i0.ɵɵelementStart(3, "div", 1)(4, "mat-form-field")(5, "input", 2);
1529
1515
  i0.ɵɵlistener("ngModelChange", function BookmarkDialogComponent_Template_input_ngModelChange_5_listener($event) { return ctx.title = $event; });
1530
1516
  i0.ɵɵpipe(6, "translate");
1531
- i0.ɵɵelementEnd();
1532
- i0.ɵɵelementEnd();
1533
- i0.ɵɵelementEnd();
1534
- i0.ɵɵelementStart(7, "div", 3);
1535
- i0.ɵɵelementStart(8, "button", 4);
1517
+ i0.ɵɵelementEnd()()();
1518
+ i0.ɵɵelementStart(7, "div", 3)(8, "button", 4);
1536
1519
  i0.ɵɵlistener("click", function BookmarkDialogComponent_Template_button_click_8_listener() { return ctx.dialogRef.close(ctx.title); });
1537
1520
  i0.ɵɵtext(9);
1538
1521
  i0.ɵɵpipe(10, "translate");
@@ -1541,8 +1524,7 @@ BookmarkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Boo
1541
1524
  i0.ɵɵlistener("click", function BookmarkDialogComponent_Template_button_click_11_listener() { return ctx.dialogRef.close(false); });
1542
1525
  i0.ɵɵtext(12);
1543
1526
  i0.ɵɵpipe(13, "translate");
1544
- i0.ɵɵelementEnd();
1545
- i0.ɵɵelementEnd();
1527
+ i0.ɵɵelementEnd()();
1546
1528
  } if (rf & 2) {
1547
1529
  i0.ɵɵadvance(1);
1548
1530
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 6, "igo.context.bookmarkButton.dialog.title"));
@@ -1554,31 +1536,28 @@ BookmarkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Boo
1554
1536
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 10, "igo.common.confirmDialog.confirmBtn"), " ");
1555
1537
  i0.ɵɵadvance(3);
1556
1538
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 12, "igo.common.confirmDialog.cancelBtn"), " ");
1557
- } }, directives: [i1$2.MatDialogTitle, i1$2.MatDialogContent, i3$1.MatFormField, i3$2.MatInput, i4.DefaultValueAccessor, i4.RequiredValidator, i4.MaxLengthValidator, i4.NgControlStatus, i4.NgModel, i1$2.MatDialogActions, i5.MatButton], pipes: [i6$1.TranslatePipe], encapsulation: 2 });
1539
+ } }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel, i7.MatButton, i4.MatFormField, i1$3.MatDialogTitle, i1$3.MatDialogContent, i1$3.MatDialogActions, i5$1.MatInput, i6.TranslatePipe], encapsulation: 2 });
1558
1540
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BookmarkDialogComponent, [{
1559
1541
  type: Component,
1560
- args: [{
1561
- selector: 'igo-bookmark-dialog',
1562
- templateUrl: './bookmark-dialog.component.html'
1563
- }]
1564
- }], function () { return [{ type: i1$2.MatDialogRef }]; }, null); })();
1542
+ args: [{ selector: 'igo-bookmark-dialog', template: "<h1 mat-dialog-title class=\"mat-typography\">{{ 'igo.context.bookmarkButton.dialog.title' |\u00A0translate }}</h1>\r\n<div mat-dialog-content class=\"mat-typography\">\r\n <mat-form-field>\r\n <input matInput required autocomplete=\"off\"\r\n maxlength=\"128\"\r\n [placeholder]=\"'igo.context.bookmarkButton.dialog.placeholder' |\u00A0translate\"\r\n [(ngModel)]=\"title\">\r\n </mat-form-field>\r\n</div>\r\n<div mat-dialog-actions>\r\n <button mat-button color=\"primary\"\r\n [disabled]=\"!title\"\r\n (click)=\"dialogRef.close(title)\">\r\n {{'igo.common.confirmDialog.confirmBtn' | translate}}\r\n </button>\r\n <button mat-button\r\n (click)=\"dialogRef.close(false)\">\r\n {{'igo.common.confirmDialog.cancelBtn' |\u00A0translate}}\r\n </button>\r\n</div>\r\n" }]
1543
+ }], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
1565
1544
 
1566
1545
  function ContextItemComponent_button_1_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
1567
1546
  i0.ɵɵelement(0, "mat-icon", 7);
1568
1547
  } if (rf & 2) {
1569
- const ctx_r2 = i0.ɵɵnextContext(2);
1570
- i0.ɵɵpropertyInterpolate("svgIcon", ctx_r2.context.icon ? ctx_r2.context.icon : ctx_r2.context.scope === "public" ? "earth" : "star");
1548
+ const ctx_r3 = i0.ɵɵnextContext(2);
1549
+ i0.ɵɵpropertyInterpolate("svgIcon", ctx_r3.context.icon ? ctx_r3.context.icon : ctx_r3.context.scope === "public" ? "earth" : "star");
1571
1550
  } }
1572
1551
  function ContextItemComponent_button_1_img_3_Template(rf, ctx) { if (rf & 1) {
1573
1552
  i0.ɵɵelement(0, "img", 8);
1574
1553
  } if (rf & 2) {
1575
- const ctx_r3 = i0.ɵɵnextContext(2);
1576
- i0.ɵɵproperty("src", ctx_r3.context.iconImage, i0.ɵɵsanitizeUrl);
1554
+ const ctx_r4 = i0.ɵɵnextContext(2);
1555
+ i0.ɵɵproperty("src", ctx_r4.context.iconImage, i0.ɵɵsanitizeUrl);
1577
1556
  } }
1578
1557
  function ContextItemComponent_button_1_Template(rf, ctx) { if (rf & 1) {
1579
- const _r5 = i0.ɵɵgetCurrentView();
1558
+ const _r6 = i0.ɵɵgetCurrentView();
1580
1559
  i0.ɵɵelementStart(0, "button", 4);
1581
- i0.ɵɵlistener("click", function ContextItemComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.favoriteClick(ctx_r4.context); });
1560
+ i0.ɵɵlistener("click", function ContextItemComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.favoriteClick(ctx_r5.context)); });
1582
1561
  i0.ɵɵpipe(1, "translate");
1583
1562
  i0.ɵɵtemplate(2, ContextItemComponent_button_1_mat_icon_2_Template, 1, 1, "mat-icon", 5);
1584
1563
  i0.ɵɵtemplate(3, ContextItemComponent_button_1_img_3_Template, 1, 1, "img", 6);
@@ -1591,118 +1570,128 @@ function ContextItemComponent_button_1_Template(rf, ctx) { if (rf & 1) {
1591
1570
  i0.ɵɵadvance(1);
1592
1571
  i0.ɵɵproperty("ngIf", ctx_r0.context.iconImage);
1593
1572
  } }
1594
- function ContextItemComponent_div_4_button_1_Template(rf, ctx) { if (rf & 1) {
1595
- const _r15 = i0.ɵɵgetCurrentView();
1596
- i0.ɵɵelementStart(0, "button", 20);
1597
- i0.ɵɵlistener("click", function ContextItemComponent_div_4_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(2); return ctx_r14.save.emit(ctx_r14.context); });
1573
+ function ContextItemComponent_button_2_Template(rf, ctx) { if (rf & 1) {
1574
+ const _r8 = i0.ɵɵgetCurrentView();
1575
+ i0.ɵɵelementStart(0, "button", 4);
1576
+ i0.ɵɵlistener("click", function ContextItemComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.favoriteClick(ctx_r7.context)); });
1598
1577
  i0.ɵɵpipe(1, "translate");
1599
- i0.ɵɵelement(2, "mat-icon", 21);
1578
+ i0.ɵɵelement(2, "mat-icon", 9);
1600
1579
  i0.ɵɵelementEnd();
1601
1580
  } if (rf & 2) {
1602
- const ctx_r6 = i0.ɵɵnextContext(2);
1603
- i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.save"))("color", ctx_r6.color);
1581
+ const ctx_r1 = i0.ɵɵnextContext();
1582
+ i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.favorite"))("color", ctx_r1.default ? "primary" : "default");
1604
1583
  } }
1605
- function ContextItemComponent_div_4_button_4_Template(rf, ctx) { if (rf & 1) {
1606
- const _r17 = i0.ɵɵgetCurrentView();
1607
- i0.ɵɵelementStart(0, "button", 22);
1608
- i0.ɵɵlistener("click", function ContextItemComponent_div_4_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(2); return ctx_r16.managePermissions.emit(ctx_r16.context); });
1584
+ function ContextItemComponent_div_5_button_1_Template(rf, ctx) { if (rf & 1) {
1585
+ const _r18 = i0.ɵɵgetCurrentView();
1586
+ i0.ɵɵelementStart(0, "button", 21);
1587
+ i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.save.emit(ctx_r17.context)); });
1609
1588
  i0.ɵɵpipe(1, "translate");
1610
- i0.ɵɵelement(2, "mat-icon", 23);
1589
+ i0.ɵɵelement(2, "mat-icon", 22);
1611
1590
  i0.ɵɵelementEnd();
1612
1591
  } if (rf & 2) {
1613
- const ctx_r8 = i0.ɵɵnextContext(2);
1614
- i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.managePermissions"))("color", ctx_r8.color);
1592
+ const ctx_r9 = i0.ɵɵnextContext(2);
1593
+ i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.save"))("color", ctx_r9.color);
1615
1594
  } }
1616
- function ContextItemComponent_div_4_button_5_Template(rf, ctx) { if (rf & 1) {
1617
- const _r19 = i0.ɵɵgetCurrentView();
1618
- i0.ɵɵelementStart(0, "button", 24);
1619
- i0.ɵɵlistener("click", function ContextItemComponent_div_4_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(2); return ctx_r18.clone.emit(ctx_r18.context); });
1595
+ function ContextItemComponent_div_5_button_4_Template(rf, ctx) { if (rf & 1) {
1596
+ const _r20 = i0.ɵɵgetCurrentView();
1597
+ i0.ɵɵelementStart(0, "button", 23);
1598
+ i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r19.managePermissions.emit(ctx_r19.context)); });
1620
1599
  i0.ɵɵpipe(1, "translate");
1621
- i0.ɵɵelement(2, "mat-icon", 25);
1600
+ i0.ɵɵelement(2, "mat-icon", 24);
1622
1601
  i0.ɵɵelementEnd();
1623
1602
  } if (rf & 2) {
1624
- const ctx_r9 = i0.ɵɵnextContext(2);
1625
- i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.clone"))("color", ctx_r9.color);
1603
+ const ctx_r11 = i0.ɵɵnextContext(2);
1604
+ i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.managePermissions"))("color", ctx_r11.color);
1626
1605
  } }
1627
- function ContextItemComponent_div_4_button_6_Template(rf, ctx) { if (rf & 1) {
1628
- const _r21 = i0.ɵɵgetCurrentView();
1629
- i0.ɵɵelementStart(0, "button", 26);
1630
- i0.ɵɵlistener("click", function ContextItemComponent_div_4_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r20 = i0.ɵɵnextContext(2); return ctx_r20.edit.emit(ctx_r20.context); });
1606
+ function ContextItemComponent_div_5_button_5_Template(rf, ctx) { if (rf & 1) {
1607
+ const _r22 = i0.ɵɵgetCurrentView();
1608
+ i0.ɵɵelementStart(0, "button", 25);
1609
+ i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r21.clone.emit(ctx_r21.context)); });
1631
1610
  i0.ɵɵpipe(1, "translate");
1632
- i0.ɵɵelement(2, "mat-icon", 27);
1611
+ i0.ɵɵelement(2, "mat-icon", 26);
1633
1612
  i0.ɵɵelementEnd();
1634
1613
  } if (rf & 2) {
1635
- const ctx_r10 = i0.ɵɵnextContext(2);
1636
- i0.ɵɵproperty("color", ctx_r10.color)("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.edit"));
1614
+ const ctx_r12 = i0.ɵɵnextContext(2);
1615
+ i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.clone"))("color", ctx_r12.color);
1637
1616
  } }
1638
- function ContextItemComponent_div_4_button_7_Template(rf, ctx) { if (rf & 1) {
1639
- const _r23 = i0.ɵɵgetCurrentView();
1640
- i0.ɵɵelementStart(0, "button", 28);
1641
- i0.ɵɵlistener("click", function ContextItemComponent_div_4_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.hide.emit(ctx_r22.context); });
1617
+ function ContextItemComponent_div_5_button_6_Template(rf, ctx) { if (rf & 1) {
1618
+ const _r24 = i0.ɵɵgetCurrentView();
1619
+ i0.ɵɵelementStart(0, "button", 27);
1620
+ i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r23.edit.emit(ctx_r23.context)); });
1642
1621
  i0.ɵɵpipe(1, "translate");
1643
- i0.ɵɵelement(2, "mat-icon", 29);
1622
+ i0.ɵɵelement(2, "mat-icon", 28);
1644
1623
  i0.ɵɵelementEnd();
1645
1624
  } if (rf & 2) {
1646
- const ctx_r11 = i0.ɵɵnextContext(2);
1647
- i0.ɵɵproperty("color", ctx_r11.color)("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.hide"));
1625
+ const ctx_r13 = i0.ɵɵnextContext(2);
1626
+ i0.ɵɵproperty("color", ctx_r13.color)("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.edit"));
1648
1627
  } }
1649
- function ContextItemComponent_div_4_button_8_Template(rf, ctx) { if (rf & 1) {
1650
- const _r25 = i0.ɵɵgetCurrentView();
1651
- i0.ɵɵelementStart(0, "button", 28);
1652
- i0.ɵɵlistener("click", function ContextItemComponent_div_4_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.show.emit(ctx_r24.context); });
1628
+ function ContextItemComponent_div_5_button_7_Template(rf, ctx) { if (rf & 1) {
1629
+ const _r26 = i0.ɵɵgetCurrentView();
1630
+ i0.ɵɵelementStart(0, "button", 29);
1631
+ i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r25.hide.emit(ctx_r25.context)); });
1653
1632
  i0.ɵɵpipe(1, "translate");
1654
1633
  i0.ɵɵelement(2, "mat-icon", 30);
1655
1634
  i0.ɵɵelementEnd();
1656
1635
  } if (rf & 2) {
1657
- const ctx_r12 = i0.ɵɵnextContext(2);
1658
- i0.ɵɵproperty("color", ctx_r12.color)("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.show"));
1636
+ const ctx_r14 = i0.ɵɵnextContext(2);
1637
+ i0.ɵɵproperty("color", ctx_r14.color)("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.hide"));
1659
1638
  } }
1660
- function ContextItemComponent_div_4_button_9_Template(rf, ctx) { if (rf & 1) {
1661
- const _r27 = i0.ɵɵgetCurrentView();
1662
- i0.ɵɵelementStart(0, "button", 31);
1663
- i0.ɵɵlistener("click", function ContextItemComponent_div_4_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r27); const ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.delete.emit(ctx_r26.context); });
1639
+ function ContextItemComponent_div_5_button_8_Template(rf, ctx) { if (rf & 1) {
1640
+ const _r28 = i0.ɵɵgetCurrentView();
1641
+ i0.ɵɵelementStart(0, "button", 29);
1642
+ i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r27 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r27.show.emit(ctx_r27.context)); });
1664
1643
  i0.ɵɵpipe(1, "translate");
1665
- i0.ɵɵelement(2, "mat-icon", 32);
1644
+ i0.ɵɵelement(2, "mat-icon", 31);
1666
1645
  i0.ɵɵelementEnd();
1667
1646
  } if (rf & 2) {
1668
- i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 1, "igo.context.contextManager.delete"));
1647
+ const ctx_r15 = i0.ɵɵnextContext(2);
1648
+ i0.ɵɵproperty("color", ctx_r15.color)("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.show"));
1669
1649
  } }
1670
- function ContextItemComponent_div_4_Template(rf, ctx) { if (rf & 1) {
1671
- const _r29 = i0.ɵɵgetCurrentView();
1672
- i0.ɵɵelementStart(0, "div", 9);
1673
- i0.ɵɵtemplate(1, ContextItemComponent_div_4_button_1_Template, 3, 4, "button", 10);
1674
- i0.ɵɵelementStart(2, "div", 11, 12);
1675
- i0.ɵɵtemplate(4, ContextItemComponent_div_4_button_4_Template, 3, 4, "button", 13);
1676
- i0.ɵɵtemplate(5, ContextItemComponent_div_4_button_5_Template, 3, 4, "button", 14);
1677
- i0.ɵɵtemplate(6, ContextItemComponent_div_4_button_6_Template, 3, 4, "button", 15);
1678
- i0.ɵɵtemplate(7, ContextItemComponent_div_4_button_7_Template, 3, 4, "button", 16);
1679
- i0.ɵɵtemplate(8, ContextItemComponent_div_4_button_8_Template, 3, 4, "button", 16);
1680
- i0.ɵɵtemplate(9, ContextItemComponent_div_4_button_9_Template, 3, 3, "button", 17);
1681
- i0.ɵɵelementEnd();
1682
- i0.ɵɵelementStart(10, "button", 18);
1683
- i0.ɵɵlistener("click", function ContextItemComponent_div_4_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r29); const ctx_r28 = i0.ɵɵnextContext(); return ctx_r28.collapsed = !ctx_r28.collapsed; });
1684
- i0.ɵɵelement(11, "mat-icon", 19);
1650
+ function ContextItemComponent_div_5_button_9_Template(rf, ctx) { if (rf & 1) {
1651
+ const _r30 = i0.ɵɵgetCurrentView();
1652
+ i0.ɵɵelementStart(0, "button", 32);
1653
+ i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r29.delete.emit(ctx_r29.context)); });
1654
+ i0.ɵɵpipe(1, "translate");
1655
+ i0.ɵɵelement(2, "mat-icon", 33);
1685
1656
  i0.ɵɵelementEnd();
1657
+ } if (rf & 2) {
1658
+ i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 1, "igo.context.contextManager.delete"));
1659
+ } }
1660
+ function ContextItemComponent_div_5_Template(rf, ctx) { if (rf & 1) {
1661
+ const _r32 = i0.ɵɵgetCurrentView();
1662
+ i0.ɵɵelementStart(0, "div", 10);
1663
+ i0.ɵɵtemplate(1, ContextItemComponent_div_5_button_1_Template, 3, 4, "button", 11);
1664
+ i0.ɵɵelementStart(2, "div", 12, 13);
1665
+ i0.ɵɵtemplate(4, ContextItemComponent_div_5_button_4_Template, 3, 4, "button", 14);
1666
+ i0.ɵɵtemplate(5, ContextItemComponent_div_5_button_5_Template, 3, 4, "button", 15);
1667
+ i0.ɵɵtemplate(6, ContextItemComponent_div_5_button_6_Template, 3, 4, "button", 16);
1668
+ i0.ɵɵtemplate(7, ContextItemComponent_div_5_button_7_Template, 3, 4, "button", 17);
1669
+ i0.ɵɵtemplate(8, ContextItemComponent_div_5_button_8_Template, 3, 4, "button", 17);
1670
+ i0.ɵɵtemplate(9, ContextItemComponent_div_5_button_9_Template, 3, 3, "button", 18);
1686
1671
  i0.ɵɵelementEnd();
1672
+ i0.ɵɵelementStart(10, "button", 19);
1673
+ i0.ɵɵlistener("click", function ContextItemComponent_div_5_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r32); const ctx_r31 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r31.collapsed = !ctx_r31.collapsed); });
1674
+ i0.ɵɵelement(11, "mat-icon", 20);
1675
+ i0.ɵɵelementEnd()();
1687
1676
  } if (rf & 2) {
1688
- const _r7 = i0.ɵɵreference(3);
1689
- const ctx_r1 = i0.ɵɵnextContext();
1677
+ const _r10 = i0.ɵɵreference(3);
1678
+ const ctx_r2 = i0.ɵɵnextContext();
1690
1679
  i0.ɵɵadvance(1);
1691
- i0.ɵɵproperty("ngIf", ctx_r1.collapsed && ctx_r1.selected && (ctx_r1.context.permission === ctx_r1.typePermission[ctx_r1.typePermission.write] || ctx_r1.context.imported));
1680
+ i0.ɵɵproperty("ngIf", ctx_r2.collapsed && ctx_r2.selected && (ctx_r2.context.permission === ctx_r2.typePermission[ctx_r2.typePermission.write] || ctx_r2.context.imported));
1692
1681
  i0.ɵɵadvance(3);
1693
- i0.ɵɵproperty("ngIf", ctx_r1.canShare && !ctx_r1.context.imported);
1682
+ i0.ɵɵproperty("ngIf", ctx_r2.canShare && !ctx_r2.context.imported);
1694
1683
  i0.ɵɵadvance(1);
1695
- i0.ɵɵproperty("ngIf", !ctx_r1.context.imported);
1684
+ i0.ɵɵproperty("ngIf", !ctx_r2.context.imported);
1696
1685
  i0.ɵɵadvance(1);
1697
- i0.ɵɵproperty("ngIf", ctx_r1.context.permission === ctx_r1.typePermission[ctx_r1.typePermission.write] && !ctx_r1.context.imported);
1686
+ i0.ɵɵproperty("ngIf", ctx_r2.context.permission === ctx_r2.typePermission[ctx_r2.typePermission.write] && !ctx_r2.context.imported);
1698
1687
  i0.ɵɵadvance(1);
1699
- i0.ɵɵproperty("ngIf", !ctx_r1.context.hidden && !ctx_r1.context.imported);
1688
+ i0.ɵɵproperty("ngIf", !ctx_r2.context.hidden && !ctx_r2.context.imported);
1700
1689
  i0.ɵɵadvance(1);
1701
- i0.ɵɵproperty("ngIf", ctx_r1.context.hidden && !ctx_r1.context.imported);
1690
+ i0.ɵɵproperty("ngIf", ctx_r2.context.hidden && !ctx_r2.context.imported);
1702
1691
  i0.ɵɵadvance(1);
1703
- i0.ɵɵproperty("ngIf", ctx_r1.context.permission === ctx_r1.typePermission[ctx_r1.typePermission.write] || ctx_r1.context.imported);
1692
+ i0.ɵɵproperty("ngIf", ctx_r2.context.permission === ctx_r2.typePermission[ctx_r2.typePermission.write] || ctx_r2.context.imported);
1704
1693
  i0.ɵɵadvance(1);
1705
- i0.ɵɵproperty("color", ctx_r1.color)("target", _r7)("collapsed", ctx_r1.collapsed);
1694
+ i0.ɵɵproperty("color", ctx_r2.color)("target", _r10)("collapsed", ctx_r2.collapsed);
1706
1695
  } }
1707
1696
  const _c0$1 = function (a0) { return { "mat-list-item-light": a0 }; };
1708
1697
  class ContextItemComponent {
@@ -1712,7 +1701,7 @@ class ContextItemComponent {
1712
1701
  this.typePermission = TypePermission;
1713
1702
  this.color = 'primary';
1714
1703
  this.collapsed = true;
1715
- this._default = false;
1704
+ this.showFavorite = true;
1716
1705
  this.edit = new EventEmitter();
1717
1706
  this.delete = new EventEmitter();
1718
1707
  this.save = new EventEmitter();
@@ -1723,18 +1712,6 @@ class ContextItemComponent {
1723
1712
  this.managePermissions = new EventEmitter();
1724
1713
  this.manageTools = new EventEmitter();
1725
1714
  }
1726
- get context() {
1727
- return this._context;
1728
- }
1729
- set context(value) {
1730
- this._context = value;
1731
- }
1732
- get default() {
1733
- return this._default;
1734
- }
1735
- set default(value) {
1736
- this._default = value;
1737
- }
1738
1715
  get hidden() {
1739
1716
  return this.context.hidden;
1740
1717
  }
@@ -1742,38 +1719,36 @@ class ContextItemComponent {
1742
1719
  return this.storageService.get('canShare') === true;
1743
1720
  }
1744
1721
  favoriteClick(context) {
1745
- if (this.auth.authenticated) {
1746
- this.favorite.emit(context);
1747
- }
1722
+ this.favorite.emit(context);
1748
1723
  }
1749
1724
  }
1750
1725
  ContextItemComponent.ɵfac = function ContextItemComponent_Factory(t) { return new (t || ContextItemComponent)(i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService)); };
1751
- ContextItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextItemComponent, selectors: [["igo-context-item"]], inputs: { context: "context", default: "default", selected: "selected" }, outputs: { edit: "edit", delete: "delete", save: "save", clone: "clone", hide: "hide", show: "show", favorite: "favorite", managePermissions: "managePermissions", manageTools: "manageTools" }, decls: 5, vars: 6, consts: [[1, "mat-list-item", 3, "ngClass"], ["mat-list-avatar", "", "mat-icon-button", "", "igoStopPropagation", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["matLine", ""], ["igoStopPropagation", "", "class", "igo-actions-container", 4, "ngIf"], ["mat-list-avatar", "", "mat-icon-button", "", "igoStopPropagation", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click"], [3, "svgIcon", 4, "ngIf"], [3, "src", 4, "ngIf"], [3, "svgIcon"], [3, "src"], ["igoStopPropagation", "", 1, "igo-actions-container"], ["class", "save-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], [1, "igo-actions-expand-container"], ["actions", ""], ["mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["class", "clone-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["class", "edit-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "color", "matTooltip", "click", 4, "ngIf"], ["class", "hide-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "color", "matTooltip", "click", 4, "ngIf"], ["class", "delete-button", "mat-icon-button", "", "color", "warn", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["mat-icon-button", "", "igoCollapse", "", 1, "actions-button", 3, "color", "target", "collapsed", "click"], ["svgIcon", "dots-horizontal"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "save-button", 3, "matTooltip", "color", "click"], ["svgIcon", "content-save"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click"], ["svgIcon", "account-arrow-right"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "clone-button", 3, "matTooltip", "color", "click"], ["svgIcon", "content-copy"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "edit-button", 3, "color", "matTooltip", "click"], ["svgIcon", "pencil"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "hide-button", 3, "color", "matTooltip", "click"], ["svgIcon", "eye"], ["svgIcon", "eye-off"], ["mat-icon-button", "", "color", "warn", "matTooltipShowDelay", "500", 1, "delete-button", 3, "matTooltip", "click"], ["svgIcon", "delete"]], template: function ContextItemComponent_Template(rf, ctx) { if (rf & 1) {
1726
+ ContextItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextItemComponent, selectors: [["igo-context-item"]], inputs: { showFavorite: "showFavorite", context: "context", default: "default", selected: "selected" }, outputs: { edit: "edit", delete: "delete", save: "save", clone: "clone", hide: "hide", show: "show", favorite: "favorite", managePermissions: "managePermissions", manageTools: "manageTools" }, decls: 6, vars: 7, consts: [[1, "mat-list-item", 3, "ngClass"], ["mat-list-avatar", "", "mat-icon-button", "", "igoStopPropagation", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["matLine", ""], ["igoStopPropagation", "", "class", "igo-actions-container", 4, "ngIf"], ["mat-list-avatar", "", "mat-icon-button", "", "igoStopPropagation", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click"], [3, "svgIcon", 4, "ngIf"], [3, "src", 4, "ngIf"], [3, "svgIcon"], [3, "src"], ["svgIcon", "star"], ["igoStopPropagation", "", 1, "igo-actions-container"], ["class", "save-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], [1, "igo-actions-expand-container"], ["actions", ""], ["mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["class", "clone-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["class", "edit-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "color", "matTooltip", "click", 4, "ngIf"], ["class", "hide-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "color", "matTooltip", "click", 4, "ngIf"], ["class", "delete-button", "mat-icon-button", "", "color", "warn", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["mat-icon-button", "", "igoCollapse", "", 1, "actions-button", 3, "color", "target", "collapsed", "click"], ["svgIcon", "dots-horizontal"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "save-button", 3, "matTooltip", "color", "click"], ["svgIcon", "content-save"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click"], ["svgIcon", "account-arrow-right"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "clone-button", 3, "matTooltip", "color", "click"], ["svgIcon", "content-copy"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "edit-button", 3, "color", "matTooltip", "click"], ["svgIcon", "pencil"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "hide-button", 3, "color", "matTooltip", "click"], ["svgIcon", "eye"], ["svgIcon", "eye-off"], ["mat-icon-button", "", "color", "warn", "matTooltipShowDelay", "500", 1, "delete-button", 3, "matTooltip", "click"], ["svgIcon", "delete"]], template: function ContextItemComponent_Template(rf, ctx) { if (rf & 1) {
1752
1727
  i0.ɵɵelementStart(0, "mat-list-item", 0);
1753
1728
  i0.ɵɵtemplate(1, ContextItemComponent_button_1_Template, 4, 6, "button", 1);
1754
- i0.ɵɵelementStart(2, "h4", 2);
1755
- i0.ɵɵtext(3);
1729
+ i0.ɵɵtemplate(2, ContextItemComponent_button_2_Template, 3, 4, "button", 1);
1730
+ i0.ɵɵelementStart(3, "h4", 2);
1731
+ i0.ɵɵtext(4);
1756
1732
  i0.ɵɵelementEnd();
1757
- i0.ɵɵtemplate(4, ContextItemComponent_div_4_Template, 12, 10, "div", 3);
1733
+ i0.ɵɵtemplate(5, ContextItemComponent_div_5_Template, 12, 10, "div", 3);
1758
1734
  i0.ɵɵelementEnd();
1759
1735
  } if (rf & 2) {
1760
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$1, ctx.hidden));
1736
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$1, ctx.hidden));
1761
1737
  i0.ɵɵadvance(1);
1762
1738
  i0.ɵɵproperty("ngIf", ctx.auth.authenticated);
1739
+ i0.ɵɵadvance(1);
1740
+ i0.ɵɵproperty("ngIf", !ctx.auth.authenticated && ctx.showFavorite);
1763
1741
  i0.ɵɵadvance(2);
1764
1742
  i0.ɵɵtextInterpolate(ctx.context.title);
1765
1743
  i0.ɵɵadvance(1);
1766
1744
  i0.ɵɵproperty("ngIf", ctx.auth.authenticated);
1767
- } }, directives: [i3$3.MatListItem, i7.NgClass, i7.NgIf, i11.MatLine, i5.MatButton, i3$3.MatListAvatarCssMatStyler, i5$1.StopPropagationDirective, i6$2.MatTooltip, i9.MatIcon, i5$1.CollapseDirective], pipes: [i6$1.TranslatePipe], styles: ["[_nghost-%COMP%]{overflow:hidden}.igo-actions-container[_ngcontent-%COMP%]{flex-shrink:0}.igo-actions-expand-container[_ngcontent-%COMP%]{display:inline-flex}mat-list-item[_ngcontent-%COMP%] .mat-list-item-content .mat-list-text{padding:0}mat-icon.disabled[_ngcontent-%COMP%]{color:#00000061}mat-list-item.mat-list-item-light[_ngcontent-%COMP%] .mat-list-item-content{color:#969696}"], changeDetection: 0 });
1745
+ } }, dependencies: [i5.NgClass, i5.NgIf, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i7$1.MatListItem, i7$1.MatListAvatarCssMatStyler, i12.MatLine, i14.CollapseDirective, i14.StopPropagationDirective, i6.TranslatePipe], styles: ["[_nghost-%COMP%]{overflow:hidden}.igo-actions-container[_ngcontent-%COMP%]{flex-shrink:0}.igo-actions-expand-container[_ngcontent-%COMP%]{display:inline-flex}mat-list-item[_ngcontent-%COMP%] .mat-list-item-content .mat-list-text{padding:0}mat-icon.disabled[_ngcontent-%COMP%]{color:#00000061}mat-list-item.mat-list-item-light[_ngcontent-%COMP%] .mat-list-item-content{color:#969696}"], changeDetection: 0 });
1768
1746
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextItemComponent, [{
1769
1747
  type: Component,
1770
- args: [{
1771
- selector: 'igo-context-item',
1772
- templateUrl: './context-item.component.html',
1773
- styleUrls: ['./context-item.component.scss'],
1774
- changeDetection: ChangeDetectionStrategy.OnPush
1775
- }]
1776
- }], function () { return [{ type: i2.AuthService }, { type: i3.StorageService }]; }, { context: [{
1748
+ args: [{ selector: 'igo-context-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-list-item\r\n class=\"mat-list-item\"\r\n [ngClass]=\"{'mat-list-item-light': hidden}\">\r\n <button mat-list-avatar\r\n *ngIf=\"auth.authenticated\"\r\n mat-icon-button\r\n igoStopPropagation\r\n [matTooltip]=\"auth.authenticated ? ('igo.context.contextManager.favorite' | translate) : ''\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"default ? 'primary' : 'default'\"\r\n (click)=\"favoriteClick(context)\">\r\n <mat-icon *ngIf=\"!context.iconImage\" svgIcon=\"{{context.icon ? context.icon : context.scope === 'public' ? 'earth' : 'star'}}\"></mat-icon>\r\n <img *ngIf=\"context.iconImage\" [src]=\"context.iconImage\">\r\n </button>\r\n <button mat-list-avatar\r\n *ngIf=\"!auth.authenticated && showFavorite\"\r\n mat-icon-button\r\n igoStopPropagation\r\n [matTooltip]=\"'igo.context.contextManager.favorite' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"default ? 'primary' : 'default'\"\r\n (click)=\"favoriteClick(context)\">\r\n <mat-icon svgIcon=\"star\"></mat-icon>\r\n </button>\r\n <h4 matLine>{{context.title}}</h4>\r\n\r\n <div *ngIf=\"auth.authenticated\"\r\n igoStopPropagation\r\n class=\"igo-actions-container\">\r\n\r\n <button *ngIf=\"collapsed && selected && (context.permission === typePermission[typePermission.write] || context.imported)\"\r\n class=\"save-button\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.save' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"color\"\r\n (click)=\"save.emit(context)\">\r\n <mat-icon svgIcon=\"content-save\"></mat-icon>\r\n </button>\r\n\r\n <div #actions class=\"igo-actions-expand-container\">\r\n\r\n <button *ngIf=\"canShare && !context.imported\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.managePermissions' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"color\"\r\n (click)=\"managePermissions.emit(context)\">\r\n <mat-icon svgIcon=\"account-arrow-right\"></mat-icon>\r\n </button>\r\n\r\n <!--button\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.manageTools' | translate\"\r\n [color]=\"color\"\r\n (click)=\"manageTools.emit(context)\">\r\n <mat-icon svgIcon=\"widgets\"></mat-icon>\r\n </button-->\r\n\r\n <button *ngIf=\"!context.imported\"\r\n class=\"clone-button\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.clone' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"color\"\r\n (click)=\"clone.emit(context)\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n </button>\r\n\r\n <button *ngIf=\"context.permission === typePermission[typePermission.write] && !context.imported\"\r\n class=\"edit-button\"\r\n mat-icon-button\r\n [color]=\"color\"\r\n [matTooltip]=\"'igo.context.contextManager.edit' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"edit.emit(context)\">\r\n <mat-icon svgIcon=\"pencil\"></mat-icon>\r\n </button>\r\n\r\n <button *ngIf=\"!context.hidden && !context.imported\"\r\n class=\"hide-button\"\r\n mat-icon-button\r\n [color]=\"color\"\r\n [matTooltip]=\"'igo.context.contextManager.hide' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"hide.emit(context)\">\r\n <mat-icon svgIcon=\"eye\"></mat-icon>\r\n </button>\r\n\r\n <button *ngIf=\"context.hidden && !context.imported\"\r\n class=\"hide-button\"\r\n mat-icon-button\r\n [color]=\"color\"\r\n [matTooltip]=\"'igo.context.contextManager.show' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"show.emit(context)\">\r\n <mat-icon svgIcon=\"eye-off\"></mat-icon>\r\n </button>\r\n\r\n <button *ngIf=\"context.permission === typePermission[typePermission.write] || context.imported\"\r\n class=\"delete-button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n [matTooltip]=\"'igo.context.contextManager.delete' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"delete.emit(context)\">\r\n <mat-icon svgIcon=\"delete\"></mat-icon>\r\n </button>\r\n </div>\r\n\r\n <button\r\n class=\"actions-button\"\r\n mat-icon-button\r\n igoCollapse\r\n [color]=\"color\"\r\n [target]=\"actions\"\r\n [collapsed]=collapsed\r\n (click)=\"collapsed = !collapsed\">\r\n <mat-icon svgIcon=\"dots-horizontal\"></mat-icon>\r\n </button>\r\n\r\n </div>\r\n\r\n</mat-list-item>\r\n", styles: [":host{overflow:hidden}.igo-actions-container{flex-shrink:0}.igo-actions-expand-container{display:inline-flex}mat-list-item ::ng-deep .mat-list-item-content .mat-list-text{padding:0}mat-icon.disabled{color:#00000061}mat-list-item.mat-list-item-light ::ng-deep .mat-list-item-content{color:#969696}\n"] }]
1749
+ }], function () { return [{ type: i2.AuthService }, { type: i3.StorageService }]; }, { showFavorite: [{
1750
+ type: Input
1751
+ }], context: [{
1777
1752
  type: Input
1778
1753
  }], default: [{
1779
1754
  type: Input
@@ -1802,15 +1777,14 @@ ContextItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
1802
1777
  function ContextListComponent_mat_form_field_1_button_3_Template(rf, ctx) { if (rf & 1) {
1803
1778
  const _r10 = i0.ɵɵgetCurrentView();
1804
1779
  i0.ɵɵelementStart(0, "button", 14);
1805
- i0.ɵɵlistener("click", function ContextListComponent_mat_form_field_1_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.clearFilter(); });
1780
+ i0.ɵɵlistener("click", function ContextListComponent_mat_form_field_1_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.clearFilter()); });
1806
1781
  i0.ɵɵelement(1, "mat-icon", 15);
1807
1782
  i0.ɵɵelementEnd();
1808
1783
  } }
1809
1784
  function ContextListComponent_mat_form_field_1_Template(rf, ctx) { if (rf & 1) {
1810
1785
  const _r12 = i0.ɵɵgetCurrentView();
1811
- i0.ɵɵelementStart(0, "mat-form-field", 11);
1812
- i0.ɵɵelementStart(1, "input", 12);
1813
- i0.ɵɵlistener("ngModelChange", function ContextListComponent_mat_form_field_1_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.term = $event; });
1786
+ i0.ɵɵelementStart(0, "mat-form-field", 11)(1, "input", 12);
1787
+ i0.ɵɵlistener("ngModelChange", function ContextListComponent_mat_form_field_1_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.term = $event); });
1814
1788
  i0.ɵɵpipe(2, "translate");
1815
1789
  i0.ɵɵelementEnd();
1816
1790
  i0.ɵɵtemplate(3, ContextListComponent_mat_form_field_1_button_3_Template, 2, 0, "button", 13);
@@ -1826,7 +1800,7 @@ function ContextListComponent_mat_form_field_1_Template(rf, ctx) { if (rf & 1) {
1826
1800
  function ContextListComponent_button_2_Template(rf, ctx) { if (rf & 1) {
1827
1801
  const _r14 = i0.ɵɵgetCurrentView();
1828
1802
  i0.ɵɵelementStart(0, "button", 16);
1829
- i0.ɵɵlistener("click", function ContextListComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.toggleSort(true); });
1803
+ i0.ɵɵlistener("click", function ContextListComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.toggleSort(true)); });
1830
1804
  i0.ɵɵpipe(1, "translate");
1831
1805
  i0.ɵɵelement(2, "mat-icon", 17);
1832
1806
  i0.ɵɵelementEnd();
@@ -1836,7 +1810,7 @@ function ContextListComponent_button_2_Template(rf, ctx) { if (rf & 1) {
1836
1810
  function ContextListComponent_button_3_Template(rf, ctx) { if (rf & 1) {
1837
1811
  const _r16 = i0.ɵɵgetCurrentView();
1838
1812
  i0.ɵɵelementStart(0, "button", 16);
1839
- i0.ɵɵlistener("click", function ContextListComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.toggleSort(false); });
1813
+ i0.ɵɵlistener("click", function ContextListComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.toggleSort(false)); });
1840
1814
  i0.ɵɵpipe(1, "translate");
1841
1815
  i0.ɵɵelement(2, "mat-icon", 18);
1842
1816
  i0.ɵɵelementEnd();
@@ -1882,7 +1856,7 @@ function ContextListComponent_ng_container_8_button_4_Template(rf, ctx) { if (rf
1882
1856
  function ContextListComponent_ng_container_8_mat_checkbox_7_Template(rf, ctx) { if (rf & 1) {
1883
1857
  const _r27 = i0.ɵɵgetCurrentView();
1884
1858
  i0.ɵɵelementStart(0, "mat-checkbox", 8);
1885
- i0.ɵɵlistener("click", function ContextListComponent_ng_container_8_mat_checkbox_7_Template_mat_checkbox_click_0_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_8_mat_checkbox_7_Template_mat_checkbox_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r27); const child_r24 = restoredCtx.$implicit; const user_r17 = i0.ɵɵnextContext().$implicit; const ctx_r26 = i0.ɵɵnextContext(); return ctx_r26.userSelection(child_r24, user_r17); });
1859
+ i0.ɵɵlistener("click", function ContextListComponent_ng_container_8_mat_checkbox_7_Template_mat_checkbox_click_0_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_8_mat_checkbox_7_Template_mat_checkbox_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r27); const child_r24 = restoredCtx.$implicit; const user_r17 = i0.ɵɵnextContext().$implicit; const ctx_r26 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r26.userSelection(child_r24, user_r17)); });
1886
1860
  i0.ɵɵtext(1);
1887
1861
  i0.ɵɵelementEnd();
1888
1862
  } if (rf & 2) {
@@ -1895,9 +1869,8 @@ function ContextListComponent_ng_container_8_mat_checkbox_7_Template(rf, ctx) {
1895
1869
  function ContextListComponent_ng_container_8_Template(rf, ctx) { if (rf & 1) {
1896
1870
  const _r31 = i0.ɵɵgetCurrentView();
1897
1871
  i0.ɵɵelementContainerStart(0);
1898
- i0.ɵɵelementStart(1, "span", 7);
1899
- i0.ɵɵelementStart(2, "mat-checkbox", 22);
1900
- i0.ɵɵlistener("click", function ContextListComponent_ng_container_8_Template_mat_checkbox_click_2_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_8_Template_mat_checkbox_change_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r31); const user_r17 = restoredCtx.$implicit; const ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.userSelection(user_r17); });
1872
+ i0.ɵɵelementStart(1, "span", 7)(2, "mat-checkbox", 22);
1873
+ i0.ɵɵlistener("click", function ContextListComponent_ng_container_8_Template_mat_checkbox_click_2_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_8_Template_mat_checkbox_change_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r31); const user_r17 = restoredCtx.$implicit; const ctx_r30 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r30.userSelection(user_r17)); });
1901
1874
  i0.ɵɵelementEnd();
1902
1875
  i0.ɵɵtemplate(3, ContextListComponent_ng_container_8_button_3_Template, 2, 2, "button", 23);
1903
1876
  i0.ɵɵtemplate(4, ContextListComponent_ng_container_8_button_4_Template, 2, 1, "button", 24);
@@ -1921,7 +1894,7 @@ function ContextListComponent_ng_container_8_Template(rf, ctx) { if (rf & 1) {
1921
1894
  function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
1922
1895
  const _r38 = i0.ɵɵgetCurrentView();
1923
1896
  i0.ɵɵelementStart(0, "igo-context-item", 31);
1924
- i0.ɵɵlistener("edit", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_edit_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.edit.emit(context_r36); })("delete", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_delete_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r39 = i0.ɵɵnextContext(3); return ctx_r39.delete.emit(context_r36); })("clone", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_clone_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r40 = i0.ɵɵnextContext(3); return ctx_r40.clone.emit(context_r36); })("save", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_save_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(3); return ctx_r41.save.emit(context_r36); })("hide", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_hide_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r42 = i0.ɵɵnextContext(3); return ctx_r42.hideContext(context_r36); })("show", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_show_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r43 = i0.ɵɵnextContext(3); return ctx_r43.showContext(context_r36); })("favorite", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r44 = i0.ɵɵnextContext(3); return ctx_r44.favorite.emit(context_r36); })("manageTools", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_manageTools_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r45 = i0.ɵɵnextContext(3); return ctx_r45.manageTools.emit(context_r36); })("managePermissions", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_managePermissions_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r46 = i0.ɵɵnextContext(3); return ctx_r46.managePermissions.emit(context_r36); })("select", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r47 = i0.ɵɵnextContext(3); return ctx_r47.select.emit(context_r36); })("unselect", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r48 = i0.ɵɵnextContext(3); return ctx_r48.unselect.emit(context_r36); });
1897
+ i0.ɵɵlistener("edit", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_edit_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r37 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r37.edit.emit(context_r36)); })("delete", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_delete_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r39 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r39.delete.emit(context_r36)); })("clone", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_clone_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r40 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r40.clone.emit(context_r36)); })("save", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_save_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r41.save.emit(context_r36)); })("hide", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_hide_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r42 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r42.hideContext(context_r36)); })("show", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_show_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r43 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r43.showContext(context_r36)); })("favorite", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r44 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r44.favorite.emit(context_r36)); })("manageTools", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_manageTools_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r45 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r45.manageTools.emit(context_r36)); })("managePermissions", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_managePermissions_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r46 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r46.managePermissions.emit(context_r36)); })("select", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r47 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r47.select.emit(context_r36)); })("unselect", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r48 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r48.unselect.emit(context_r36)); });
1925
1898
  i0.ɵɵelementEnd();
1926
1899
  } if (rf & 2) {
1927
1900
  const context_r36 = ctx.$implicit;
@@ -1931,7 +1904,7 @@ function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Tem
1931
1904
  function ContextListComponent_ng_template_14_igo_collapsible_0_Template(rf, ctx) { if (rf & 1) {
1932
1905
  const _r50 = i0.ɵɵgetCurrentView();
1933
1906
  i0.ɵɵelementStart(0, "igo-collapsible", 30);
1934
- i0.ɵɵlistener("toggle", function ContextListComponent_ng_template_14_igo_collapsible_0_Template_igo_collapsible_toggle_0_listener($event) { i0.ɵɵrestoreView(_r50); const groupContexts_r32 = i0.ɵɵnextContext().$implicit; const ctx_r49 = i0.ɵɵnextContext(); return (ctx_r49.collapsed[ctx_r49.titleMapping[groupContexts_r32.key]] = $event); });
1907
+ i0.ɵɵlistener("toggle", function ContextListComponent_ng_template_14_igo_collapsible_0_Template_igo_collapsible_toggle_0_listener($event) { i0.ɵɵrestoreView(_r50); const groupContexts_r32 = i0.ɵɵnextContext().$implicit; const ctx_r49 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r49.collapsed[ctx_r49.titleMapping[groupContexts_r32.key]] = $event)); });
1935
1908
  i0.ɵɵpipe(1, "translate");
1936
1909
  i0.ɵɵtemplate(2, ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template, 1, 3, "ng-template", 10);
1937
1910
  i0.ɵɵelementEnd();
@@ -1945,22 +1918,22 @@ function ContextListComponent_ng_template_14_igo_collapsible_0_Template(rf, ctx)
1945
1918
  function ContextListComponent_ng_template_14_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1946
1919
  const _r56 = i0.ɵɵgetCurrentView();
1947
1920
  i0.ɵɵelementStart(0, "igo-context-item", 32);
1948
- i0.ɵɵlistener("select", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r55 = i0.ɵɵnextContext(3); return ctx_r55.select.emit(context_r54); })("unselect", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r57 = i0.ɵɵnextContext(3); return ctx_r57.unselect.emit(context_r54); });
1921
+ i0.ɵɵlistener("favorite", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r55 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r55.favorite.emit(context_r54)); })("select", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r57 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r57.select.emit(context_r54)); })("unselect", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r58 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r58.unselect.emit(context_r54)); });
1949
1922
  i0.ɵɵelementEnd();
1950
1923
  } if (rf & 2) {
1951
1924
  const context_r54 = ctx.$implicit;
1952
1925
  const ctx_r53 = i0.ɵɵnextContext(3);
1953
- i0.ɵɵproperty("selected", ctx_r53.selectedContext && ctx_r53.selectedContext.uri === context_r54.uri)("context", context_r54)("default", ctx_r53.defaultContextId === context_r54.id);
1926
+ i0.ɵɵproperty("showFavorite", ctx_r53.configService.getConfig("favoriteContext4NonAuthenticated"))("selected", ctx_r53.selectedContext && ctx_r53.selectedContext.uri === context_r54.uri)("context", context_r54)("default", ctx_r53.configService.getConfig("context") ? ctx_r53.defaultContextId === context_r54.id : ctx_r53.defaultContextId === context_r54.uri);
1954
1927
  } }
1955
1928
  function ContextListComponent_ng_template_14_1_Template(rf, ctx) { if (rf & 1) {
1956
- i0.ɵɵtemplate(0, ContextListComponent_ng_template_14_1_ng_template_0_Template, 1, 3, "ng-template", 10);
1929
+ i0.ɵɵtemplate(0, ContextListComponent_ng_template_14_1_ng_template_0_Template, 1, 4, "ng-template", 10);
1957
1930
  } if (rf & 2) {
1958
1931
  const groupContexts_r32 = i0.ɵɵnextContext().$implicit;
1959
1932
  i0.ɵɵproperty("ngForOf", groupContexts_r32.value);
1960
1933
  } }
1961
1934
  function ContextListComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
1962
1935
  i0.ɵɵtemplate(0, ContextListComponent_ng_template_14_igo_collapsible_0_Template, 3, 5, "igo-collapsible", 28);
1963
- i0.ɵɵtemplate(1, ContextListComponent_ng_template_14_1_Template, 1, 1, undefined, 29);
1936
+ i0.ɵɵtemplate(1, ContextListComponent_ng_template_14_1_Template, 1, 1, null, 29);
1964
1937
  } if (rf & 2) {
1965
1938
  const groupContexts_r32 = ctx.$implicit;
1966
1939
  const ctx_r7 = i0.ɵɵnextContext();
@@ -2033,7 +2006,8 @@ class ContextListComponent {
2033
2006
  this._map = value;
2034
2007
  }
2035
2008
  get defaultContextId() {
2036
- return this._defaultContextId;
2009
+ return this.configService.getConfig('context') ? this._defaultContextId :
2010
+ this.storageService.get('favorite.context.uri') || this._defaultContextId;
2037
2011
  }
2038
2012
  set defaultContextId(value) {
2039
2013
  this._defaultContextId = value;
@@ -2283,8 +2257,8 @@ class ContextListComponent {
2283
2257
  this.show.emit(context);
2284
2258
  }
2285
2259
  }
2286
- ContextListComponent.ɵfac = function ContextListComponent_Factory(t) { return new (t || ContextListComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i1$2.MatDialog), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.StorageService)); };
2287
- ContextListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextListComponent, selectors: [["igo-context-list"]], inputs: { contexts: "contexts", selectedContext: "selectedContext", map: "map", defaultContextId: "defaultContextId", term: "term" }, outputs: { select: "select", unselect: "unselect", edit: "edit", delete: "delete", save: "save", clone: "clone", create: "create", hide: "hide", show: "show", showHiddenContexts: "showHiddenContexts", favorite: "favorite", managePermissions: "managePermissions", manageTools: "manageTools", filterPermissionsChanged: "filterPermissionsChanged" }, decls: 17, vars: 16, consts: [[3, "navigation"], [3, "ngClass", 4, "ngIf"], ["class", "sort-alpha", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["class", "add-context-button", "icon", "plus", 3, "iconColor", "store", "withIcon", "withTitle", "horizontal", "mode", 4, "ngIf"], ["class", "users-filter", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["accountMenu", "matMenu"], [4, "ngFor", "ngForOf"], [1, "profilsMenu"], [1, "mat-menu-item", 3, "checked", "click", "change"], ["mat-menu-item", ""], ["ngFor", "", 3, "ngForOf"], [3, "ngClass"], ["matInput", "", "type", "text", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-button", "", "mat-icon-button", "", "matSuffix", "", "class", "clear-button", "aria-label", "Clear", "color", "warn", 3, "click", 4, "ngIf"], ["mat-button", "", "mat-icon-button", "", "matSuffix", "", "aria-label", "Clear", "color", "warn", 1, "clear-button", 3, "click"], ["svgIcon", "close"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "sort-alpha", 3, "matTooltip", "click"], ["color", "primary", "svgIcon", "sort-alphabetical-variant"], ["color", "warn", "svgIcon", "sort-variant-remove"], ["icon", "plus", 1, "add-context-button", 3, "iconColor", "store", "withIcon", "withTitle", "horizontal", "mode"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "users-filter", 3, "matTooltip", "matMenuTriggerFor"], ["color", "primary", "svgIcon", "filter-menu"], [1, "mat-menu-item", 3, "checked", "indeterminate", "click", "change"], ["mat-menu-item", "", 3, "matMenuTriggerFor", 4, "ngIf"], ["mat-menu-item", "", 4, "ngIf"], ["subAccountMenu", "matMenu"], ["class", "mat-menu-item", 3, "checked", "click", "change", 4, "ngFor", "ngForOf"], ["mat-menu-item", "", 3, "matMenuTriggerFor"], [3, "title", "collapsed", "toggle", 4, "ngIf"], [4, "ngIf"], [3, "title", "collapsed", "toggle"], ["igoListItem", "", "color", "accent", 3, "selected", "context", "default", "edit", "delete", "clone", "save", "hide", "show", "favorite", "manageTools", "managePermissions", "select", "unselect"], ["igoListItem", "", "color", "accent", 3, "selected", "context", "default", "select", "unselect"]], template: function ContextListComponent_Template(rf, ctx) { if (rf & 1) {
2260
+ ContextListComponent.ɵfac = function ContextListComponent_Factory(t) { return new (t || ContextListComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.StorageService)); };
2261
+ ContextListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextListComponent, selectors: [["igo-context-list"]], inputs: { contexts: "contexts", selectedContext: "selectedContext", map: "map", defaultContextId: "defaultContextId", term: "term" }, outputs: { select: "select", unselect: "unselect", edit: "edit", delete: "delete", save: "save", clone: "clone", create: "create", hide: "hide", show: "show", showHiddenContexts: "showHiddenContexts", favorite: "favorite", managePermissions: "managePermissions", manageTools: "manageTools", filterPermissionsChanged: "filterPermissionsChanged" }, decls: 17, vars: 16, consts: [[3, "navigation"], [3, "ngClass", 4, "ngIf"], ["class", "sort-alpha", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["class", "add-context-button", "icon", "plus", 3, "iconColor", "store", "withIcon", "withTitle", "horizontal", "mode", 4, "ngIf"], ["class", "users-filter", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["accountMenu", "matMenu"], [4, "ngFor", "ngForOf"], [1, "profilsMenu"], [1, "mat-menu-item", 3, "checked", "click", "change"], ["mat-menu-item", ""], ["ngFor", "", 3, "ngForOf"], [3, "ngClass"], ["matInput", "", "type", "text", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-button", "", "mat-icon-button", "", "matSuffix", "", "class", "clear-button", "aria-label", "Clear", "color", "warn", 3, "click", 4, "ngIf"], ["mat-button", "", "mat-icon-button", "", "matSuffix", "", "aria-label", "Clear", "color", "warn", 1, "clear-button", 3, "click"], ["svgIcon", "close"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "sort-alpha", 3, "matTooltip", "click"], ["color", "primary", "svgIcon", "sort-alphabetical-variant"], ["color", "warn", "svgIcon", "sort-variant-remove"], ["icon", "plus", 1, "add-context-button", 3, "iconColor", "store", "withIcon", "withTitle", "horizontal", "mode"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "users-filter", 3, "matTooltip", "matMenuTriggerFor"], ["color", "primary", "svgIcon", "filter-menu"], [1, "mat-menu-item", 3, "checked", "indeterminate", "click", "change"], ["mat-menu-item", "", 3, "matMenuTriggerFor", 4, "ngIf"], ["mat-menu-item", "", 4, "ngIf"], ["subAccountMenu", "matMenu"], ["class", "mat-menu-item", 3, "checked", "click", "change", 4, "ngFor", "ngForOf"], ["mat-menu-item", "", 3, "matMenuTriggerFor"], [3, "title", "collapsed", "toggle", 4, "ngIf"], [4, "ngIf"], [3, "title", "collapsed", "toggle"], ["igoListItem", "", "color", "accent", 3, "selected", "context", "default", "edit", "delete", "clone", "save", "hide", "show", "favorite", "manageTools", "managePermissions", "select", "unselect"], ["igoListItem", "", "color", "accent", 3, "showFavorite", "selected", "context", "default", "favorite", "select", "unselect"]], template: function ContextListComponent_Template(rf, ctx) { if (rf & 1) {
2288
2262
  i0.ɵɵelementStart(0, "igo-list", 0);
2289
2263
  i0.ɵɵtemplate(1, ContextListComponent_mat_form_field_1_Template, 4, 6, "mat-form-field", 1);
2290
2264
  i0.ɵɵtemplate(2, ContextListComponent_button_2_Template, 3, 3, "button", 2);
@@ -2293,16 +2267,13 @@ ContextListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
2293
2267
  i0.ɵɵtemplate(5, ContextListComponent_button_5_Template, 3, 4, "button", 4);
2294
2268
  i0.ɵɵelementStart(6, "mat-menu", null, 5);
2295
2269
  i0.ɵɵtemplate(8, ContextListComponent_ng_container_8_Template, 8, 5, "ng-container", 6);
2296
- i0.ɵɵelementStart(9, "span", 7);
2297
- i0.ɵɵelementStart(10, "mat-checkbox", 8);
2270
+ i0.ɵɵelementStart(9, "span", 7)(10, "mat-checkbox", 8);
2298
2271
  i0.ɵɵlistener("click", function ContextListComponent_Template_mat_checkbox_click_10_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_Template_mat_checkbox_change_10_listener() { return ctx.showHiddenContexts.emit(); });
2299
2272
  i0.ɵɵelementEnd();
2300
2273
  i0.ɵɵelementStart(11, "button", 9);
2301
2274
  i0.ɵɵtext(12);
2302
2275
  i0.ɵɵpipe(13, "translate");
2303
- i0.ɵɵelementEnd();
2304
- i0.ɵɵelementEnd();
2305
- i0.ɵɵelementEnd();
2276
+ i0.ɵɵelementEnd()()();
2306
2277
  i0.ɵɵtemplate(14, ContextListComponent_ng_template_14_Template, 2, 2, "ng-template", 10);
2307
2278
  i0.ɵɵpipe(15, "keyvalue");
2308
2279
  i0.ɵɵpipe(16, "async");
@@ -2327,16 +2298,11 @@ ContextListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
2327
2298
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 10, "igo.context.contextManager.showHidden"), " ");
2328
2299
  i0.ɵɵadvance(2);
2329
2300
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(15, 12, i0.ɵɵpipeBind1(16, 14, ctx.contexts$)));
2330
- } }, directives: [i5$1.ListComponent, i7.NgIf, i7$1.MatMenu, i7.NgForOf, i8.MatCheckbox, i7$1.MatMenuItem, i3$1.MatFormField, i7.NgClass, i3$2.MatInput, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgModel, i5.MatButton, i3$1.MatSuffix, i9.MatIcon, i6$2.MatTooltip, i5$1.ActionbarComponent, i7$1.MatMenuTrigger, i5$1.CollapsibleComponent, ContextItemComponent, i5$1.ListItemDirective], pipes: [i6$1.TranslatePipe, i5$1.KeyValuePipe, i7.AsyncPipe], styles: [".context-filter-max-width[_ngcontent-%COMP%]{width:calc(100% - 100px);margin:5px;padding-left:6px}.context-filter-min-width[_ngcontent-%COMP%]{width:calc(100% - 135px);margin:5px;padding-left:6px}.clear-button[_ngcontent-%COMP%]{padding-right:5px}mat-form-field[_ngcontent-%COMP%]{height:40px}.profilsMenu[_ngcontent-%COMP%]{display:flex}.profilsMenu[_ngcontent-%COMP%] > mat-checkbox[_ngcontent-%COMP%]{width:8px}.add-context-button[_ngcontent-%COMP%]{margin:0;width:40px;display:inline-flex;overflow:hidden}"], changeDetection: 0 });
2301
+ } }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgModel, i4.MatFormField, i4.MatSuffix, i5$1.MatInput, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i12$1.MatCheckbox, i13.MatMenu, i13.MatMenuItem, i13.MatMenuTrigger, i14.ListItemDirective, i14.ListComponent, i14.CollapsibleComponent, i14.ActionbarComponent, ContextItemComponent, i5.AsyncPipe, i14.KeyValuePipe, i6.TranslatePipe], styles: [".context-filter-max-width[_ngcontent-%COMP%]{width:calc(100% - 100px);margin:5px;padding-left:6px}.context-filter-min-width[_ngcontent-%COMP%]{width:calc(100% - 135px);margin:5px;padding-left:6px}.clear-button[_ngcontent-%COMP%]{padding-right:5px}mat-form-field[_ngcontent-%COMP%]{height:40px}.profilsMenu[_ngcontent-%COMP%]{display:flex}.profilsMenu[_ngcontent-%COMP%] > mat-checkbox[_ngcontent-%COMP%]{width:8px}.add-context-button[_ngcontent-%COMP%]{margin:0;width:40px;display:inline-flex;overflow:hidden}"], changeDetection: 0 });
2331
2302
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextListComponent, [{
2332
2303
  type: Component,
2333
- args: [{
2334
- selector: 'igo-context-list',
2335
- templateUrl: './context-list.component.html',
2336
- styleUrls: ['./context-list.component.scss'],
2337
- changeDetection: ChangeDetectionStrategy.OnPush
2338
- }]
2339
- }], function () { return [{ type: i0.ChangeDetectorRef }, { type: ContextService }, { type: i3.ConfigService }, { type: i2.AuthService }, { type: i1$2.MatDialog }, { type: i3.LanguageService }, { type: i3.StorageService }]; }, { contexts: [{
2304
+ args: [{ selector: 'igo-context-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-list [navigation]=\"true\">\r\n <mat-form-field *ngIf=\"showFilter()\" [ngClass]=\"auth.authenticated && configService.getConfig('context') ? 'context-filter-min-width' : 'context-filter-max-width'\">\r\n <input\r\n matInput\r\n type=\"text\"\r\n [placeholder]=\"'igo.context.contextManager.filterPlaceHolder' | translate\"\r\n [(ngModel)]=\"term\">\r\n <button\r\n mat-button\r\n mat-icon-button\r\n matSuffix\r\n class=\"clear-button\"\r\n *ngIf=\"term.length\"\r\n aria-label=\"Clear\"\r\n color=\"warn\"\r\n (click)=\"clearFilter()\">\r\n <mat-icon svgIcon=\"close\"></mat-icon>\r\n </button>\r\n </mat-form-field>\r\n\r\n <button\r\n *ngIf=\"!sortedAlpha\"\r\n class=\"sort-alpha\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.sortAlphabetically' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"toggleSort(true)\">\r\n <mat-icon color=\"primary\" svgIcon=\"sort-alphabetical-variant\"></mat-icon>\r\n </button>\r\n <button\r\n *ngIf=\"sortedAlpha\"\r\n class=\"sort-alpha\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.sortContextOrder' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"toggleSort(false)\">\r\n <mat-icon color=\"warn\" svgIcon=\"sort-variant-remove\"></mat-icon>\r\n </button>\r\n\r\n <igo-actionbar *ngIf=\"auth.authenticated && configService.getConfig('context')\"\r\n class=\"add-context-button\"\r\n [iconColor]=\"color\"\r\n [store]=\"actionStore\"\r\n [withIcon]=\"true\"\r\n icon=\"plus\"\r\n [withTitle]=\"actionbarMode === 'overlay'\"\r\n [horizontal]=\"false\"\r\n [mode]=\"actionbarMode\">\r\n </igo-actionbar>\r\n\r\n <button *ngIf=\"auth.authenticated && configService.getConfig('context')\"\r\n class=\"users-filter\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.filterUser' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [matMenuTriggerFor]=\"accountMenu\">\r\n <mat-icon color=\"primary\" svgIcon=\"filter-menu\"></mat-icon>\r\n </button>\r\n\r\n <mat-menu #accountMenu=\"matMenu\">\r\n <ng-container *ngFor=\"let user of users\">\r\n <span class=\"profilsMenu\">\r\n <mat-checkbox\r\n class=\"mat-menu-item\"\r\n [checked]=\"getPermission(user).checked\"\r\n [indeterminate]=\"getPermission(user).indeterminate\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"userSelection(user)\">\r\n </mat-checkbox>\r\n <button *ngIf=\"user.childs\"\r\n [matMenuTriggerFor]=\"subAccountMenu\"\r\n mat-menu-item>\r\n {{user.title}}\r\n </button>\r\n <button\r\n mat-menu-item\r\n *ngIf=\"!user.childs\">\r\n {{user.title}}\r\n </button>\r\n </span>\r\n\r\n <mat-menu #subAccountMenu=\"matMenu\">\r\n <mat-checkbox *ngFor=\"let child of user.childs\"\r\n class=\"mat-menu-item\"\r\n [checked]=\"getPermission(child).checked\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"userSelection(child, user)\">\r\n {{child.title}}\r\n </mat-checkbox>\r\n </mat-menu>\r\n </ng-container>\r\n\r\n <span class=\"profilsMenu\">\r\n <mat-checkbox\r\n class=\"mat-menu-item\"\r\n [checked]=\"showHidden\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"showHiddenContexts.emit()\">\r\n </mat-checkbox>\r\n <button mat-menu-item>\r\n {{ 'igo.context.contextManager.showHidden' | translate }}\r\n </button>\r\n </span>\r\n </mat-menu>\r\n\r\n <ng-template ngFor let-groupContexts [ngForOf]=\"contexts$ | async | keyvalue\">\r\n\r\n <igo-collapsible *ngIf=\"groupContexts.value.length && auth.authenticated\" [title]=\"titleMapping[groupContexts.key] | translate\"\r\n [collapsed]=\"collapsed[titleMapping[groupContexts.key]]\" (toggle)=\"collapsed[titleMapping[groupContexts.key]] = $event\">\r\n\r\n <ng-template ngFor let-context [ngForOf]=\"groupContexts.value\">\r\n <igo-context-item\r\n igoListItem\r\n color=\"accent\"\r\n [selected]=\"selectedContext && selectedContext.uri === context.uri\"\r\n [context]=\"context\"\r\n [default]=\"context.id && this.defaultContextId && this.defaultContextId === context.id\"\r\n (edit)=\"edit.emit(context)\"\r\n (delete)=\"delete.emit(context)\"\r\n (clone)=\"clone.emit(context)\"\r\n (save)=\"save.emit(context)\"\r\n (hide)=\"hideContext(context)\"\r\n (show)=\"showContext(context)\"\r\n (favorite)=\"favorite.emit(context)\"\r\n (manageTools)=\"manageTools.emit(context)\"\r\n (managePermissions)=\"managePermissions.emit(context)\"\r\n (select)=\"select.emit(context)\"\r\n (unselect)=\"unselect.emit(context)\">\r\n </igo-context-item>\r\n </ng-template>\r\n\r\n </igo-collapsible>\r\n\r\n <ng-template *ngIf=\"groupContexts.value.length && !auth.authenticated\" ngFor let-context [ngForOf]=\"groupContexts.value\">\r\n <igo-context-item\r\n igoListItem\r\n color=\"accent\"\r\n [showFavorite]=\"configService.getConfig('favoriteContext4NonAuthenticated')\"\r\n [selected]=\"selectedContext && selectedContext.uri === context.uri\"\r\n [context]=\"context\"\r\n [default]=\"configService.getConfig('context') ? defaultContextId === context.id : defaultContextId === context.uri\"\r\n (favorite)=\"favorite.emit(context)\"\r\n (select)=\"select.emit(context)\"\r\n (unselect)=\"unselect.emit(context)\">\r\n </igo-context-item>\r\n </ng-template>\r\n\r\n </ng-template>\r\n</igo-list>\r\n", styles: [".context-filter-max-width{width:calc(100% - 100px);margin:5px;padding-left:6px}.context-filter-min-width{width:calc(100% - 135px);margin:5px;padding-left:6px}.clear-button{padding-right:5px}mat-form-field{height:40px}.profilsMenu{display:flex}.profilsMenu>mat-checkbox{width:8px}.add-context-button{margin:0;width:40px;display:inline-flex;overflow:hidden}\n"] }]
2305
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: ContextService }, { type: i3.ConfigService }, { type: i2.AuthService }, { type: i1$3.MatDialog }, { type: i3.LanguageService }, { type: i3.StorageService }]; }, { contexts: [{
2340
2306
  type: Input
2341
2307
  }], selectedContext: [{
2342
2308
  type: Input
@@ -2377,7 +2343,7 @@ ContextListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
2377
2343
  }] }); })();
2378
2344
 
2379
2345
  class ContextListBindingDirective {
2380
- constructor(component, contextService, mapService, languageService, confirmDialogService, messageService, auth, storageService) {
2346
+ constructor(component, contextService, mapService, languageService, confirmDialogService, messageService, auth, storageService, cdRef) {
2381
2347
  this.contextService = contextService;
2382
2348
  this.mapService = mapService;
2383
2349
  this.languageService = languageService;
@@ -2385,6 +2351,7 @@ class ContextListBindingDirective {
2385
2351
  this.messageService = messageService;
2386
2352
  this.auth = auth;
2387
2353
  this.storageService = storageService;
2354
+ this.cdRef = cdRef;
2388
2355
  this.component = component;
2389
2356
  }
2390
2357
  onSelect(context) {
@@ -2424,14 +2391,22 @@ class ContextListBindingDirective {
2424
2391
  });
2425
2392
  }
2426
2393
  onFavorite(context) {
2394
+ if (!context.id) {
2395
+ context.id = context.uri;
2396
+ }
2427
2397
  this.contextService.setDefault(context.id).subscribe(() => {
2398
+ if (this.previousMessageId) {
2399
+ this.messageService.remove(this.previousMessageId);
2400
+ }
2428
2401
  this.contextService.defaultContextId$.next(context.id);
2429
2402
  const translate = this.languageService.translate;
2430
2403
  const message = translate.instant('igo.context.contextManager.dialog.favoriteMsg', {
2431
2404
  value: context.title
2432
2405
  });
2433
2406
  const title = translate.instant('igo.context.contextManager.dialog.favoriteTitle');
2434
- this.messageService.success(message, title);
2407
+ const messageObj = this.messageService.success(message, title);
2408
+ this.previousMessageId = messageObj.toastId;
2409
+ this.cdRef.detectChanges();
2435
2410
  });
2436
2411
  }
2437
2412
  onManageTools(context) {
@@ -2516,6 +2491,10 @@ class ContextListBindingDirective {
2516
2491
  this.defaultContextId$$ = this.contextService.defaultContextId$.subscribe((id) => {
2517
2492
  this.component.defaultContextId = id;
2518
2493
  });
2494
+ const storedContextUri = this.storageService.get('favorite.context.uri');
2495
+ if (storedContextUri && !this.auth.authenticated) {
2496
+ this.contextService.defaultContextId$.next(storedContextUri);
2497
+ }
2519
2498
  // See feature-list.component for an explanation about the debounce time
2520
2499
  this.selectedContext$$ = this.contextService.context$
2521
2500
  .pipe(debounceTime(100))
@@ -2562,7 +2541,7 @@ class ContextListBindingDirective {
2562
2541
  this.component.contexts = contexts;
2563
2542
  }
2564
2543
  }
2565
- ContextListBindingDirective.ɵfac = function ContextListBindingDirective_Factory(t) { return new (t || ContextListBindingDirective)(i0.ɵɵdirectiveInject(ContextListComponent, 2), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i1$1.MapService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i5$1.ConfirmDialogService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService)); };
2544
+ ContextListBindingDirective.ɵfac = function ContextListBindingDirective_Factory(t) { return new (t || ContextListBindingDirective)(i0.ɵɵdirectiveInject(ContextListComponent, 2), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i1$2.MapService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i14.ConfirmDialogService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
2566
2545
  ContextListBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ContextListBindingDirective, selectors: [["", "igoContextListBinding", ""]], hostBindings: function ContextListBindingDirective_HostBindings(rf, ctx) { if (rf & 1) {
2567
2546
  i0.ɵɵlistener("select", function ContextListBindingDirective_select_HostBindingHandler($event) { return ctx.onSelect($event); })("edit", function ContextListBindingDirective_edit_HostBindingHandler($event) { return ctx.onEdit($event); })("save", function ContextListBindingDirective_save_HostBindingHandler($event) { return ctx.onSave($event); })("favorite", function ContextListBindingDirective_favorite_HostBindingHandler($event) { return ctx.onFavorite($event); })("manageTools", function ContextListBindingDirective_manageTools_HostBindingHandler($event) { return ctx.onManageTools($event); })("managePermissions", function ContextListBindingDirective_managePermissions_HostBindingHandler($event) { return ctx.onManagePermissions($event); })("delete", function ContextListBindingDirective_delete_HostBindingHandler($event) { return ctx.onDelete($event); })("clone", function ContextListBindingDirective_clone_HostBindingHandler($event) { return ctx.onClone($event); })("create", function ContextListBindingDirective_create_HostBindingHandler($event) { return ctx.onCreate($event); })("filterPermissionsChanged", function ContextListBindingDirective_filterPermissionsChanged_HostBindingHandler() { return ctx.loadContexts(); })("showHiddenContexts", function ContextListBindingDirective_showHiddenContexts_HostBindingHandler() { return ctx.showHiddenContexts(); })("show", function ContextListBindingDirective_show_HostBindingHandler($event) { return ctx.onShowContext($event); })("hide", function ContextListBindingDirective_hide_HostBindingHandler($event) { return ctx.onHideContext($event); });
2568
2547
  } } });
@@ -2573,7 +2552,7 @@ ContextListBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type:
2573
2552
  }]
2574
2553
  }], function () { return [{ type: ContextListComponent, decorators: [{
2575
2554
  type: Self
2576
- }] }, { type: ContextService }, { type: i1$1.MapService }, { type: i3.LanguageService }, { type: i5$1.ConfirmDialogService }, { type: i3.MessageService }, { type: i2.AuthService }, { type: i3.StorageService }]; }, { onSelect: [{
2555
+ }] }, { type: ContextService }, { type: i1$2.MapService }, { type: i3.LanguageService }, { type: i14.ConfirmDialogService }, { type: i3.MessageService }, { type: i2.AuthService }, { type: i3.StorageService }, { type: i0.ChangeDetectorRef }]; }, { onSelect: [{
2577
2556
  type: HostListener,
2578
2557
  args: ['select', ['$event']]
2579
2558
  }], onEdit: [{
@@ -2689,7 +2668,7 @@ class ContextFormComponent {
2689
2668
  });
2690
2669
  }
2691
2670
  }
2692
- ContextFormComponent.ɵfac = function ContextFormComponent_Factory(t) { return new (t || ContextFormComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService)); };
2671
+ ContextFormComponent.ɵfac = function ContextFormComponent_Factory(t) { return new (t || ContextFormComponent)(i0.ɵɵdirectiveInject(i1$1.UntypedFormBuilder), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService)); };
2693
2672
  ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextFormComponent, selectors: [["igo-context-form"]], inputs: { btnSubmitText: "btnSubmitText", context: "context", disabled: "disabled" }, outputs: { submitForm: "submitForm", clone: "clone", delete: "delete" }, decls: 19, vars: 18, consts: [[1, "igo-form", 3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", "maxlength", "128", "formControlName", "title", 3, "placeholder"], ["id", "uriInput", 1, "full-width"], ["class", "prefix", 4, "ngIf"], [1, "fieldWrapper"], ["matInput", "", "maxlength", "64", "floatLabel", "always", "formControlName", "uri", 3, "placeholder"], ["id", "copyButton", "type", "button", "mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", "color", "primary", 3, "matTooltip", "click"], ["svgIcon", "content-copy"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], [1, "prefix"]], template: function ContextFormComponent_Template(rf, ctx) { if (rf & 1) {
2694
2673
  i0.ɵɵelementStart(0, "form", 0);
2695
2674
  i0.ɵɵlistener("ngSubmit", function ContextFormComponent_Template_form_ngSubmit_0_listener() { return ctx.handleFormSubmit(ctx.form.value); });
@@ -2699,27 +2678,22 @@ ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
2699
2678
  i0.ɵɵelementStart(4, "mat-error");
2700
2679
  i0.ɵɵtext(5);
2701
2680
  i0.ɵɵpipe(6, "translate");
2702
- i0.ɵɵelementEnd();
2703
- i0.ɵɵelementEnd();
2681
+ i0.ɵɵelementEnd()();
2704
2682
  i0.ɵɵelementStart(7, "mat-form-field", 3);
2705
2683
  i0.ɵɵtemplate(8, ContextFormComponent_span_8_Template, 2, 1, "span", 4);
2706
2684
  i0.ɵɵelementStart(9, "span", 5);
2707
2685
  i0.ɵɵelement(10, "input", 6);
2708
2686
  i0.ɵɵpipe(11, "translate");
2709
- i0.ɵɵelementEnd();
2710
- i0.ɵɵelementEnd();
2687
+ i0.ɵɵelementEnd()();
2711
2688
  i0.ɵɵelementStart(12, "button", 7);
2712
2689
  i0.ɵɵlistener("click", function ContextFormComponent_Template_button_click_12_listener() { return ctx.copyTextToClipboard(); });
2713
2690
  i0.ɵɵpipe(13, "translate");
2714
2691
  i0.ɵɵelement(14, "mat-icon", 8);
2715
2692
  i0.ɵɵelementEnd();
2716
- i0.ɵɵelementStart(15, "div", 9);
2717
- i0.ɵɵelementStart(16, "button", 10);
2693
+ i0.ɵɵelementStart(15, "div", 9)(16, "button", 10);
2718
2694
  i0.ɵɵtext(17);
2719
2695
  i0.ɵɵpipe(18, "translate");
2720
- i0.ɵɵelementEnd();
2721
- i0.ɵɵelementEnd();
2722
- i0.ɵɵelementEnd();
2696
+ i0.ɵɵelementEnd()()();
2723
2697
  } if (rf & 2) {
2724
2698
  i0.ɵɵproperty("formGroup", ctx.form);
2725
2699
  i0.ɵɵadvance(2);
@@ -2736,15 +2710,11 @@ ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
2736
2710
  i0.ɵɵproperty("disabled", !ctx.form.valid || ctx.disabled);
2737
2711
  i0.ɵɵadvance(1);
2738
2712
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, "igo.context.contextManager.form.edit"), " ");
2739
- } }, directives: [i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, i3$1.MatFormField, i3$2.MatInput, i4.DefaultValueAccessor, i4.RequiredValidator, i4.MaxLengthValidator, i4.NgControlStatus, i4.FormControlName, i3$1.MatError, i7.NgIf, i5.MatButton, i6$2.MatTooltip, i9.MatIcon], pipes: [i6$1.TranslatePipe], styles: ["form[_ngcontent-%COMP%]{margin:10px}.full-width[_ngcontent-%COMP%]{width:100%}#uriInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{display:block;overflow:hidden}#uriInput[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{float:left}#copyButton[_ngcontent-%COMP%]{width:24px;float:right;position:relative;top:-58px;left:5px}"] });
2713
+ } }, dependencies: [i5.NgIf, i1$1.ɵNgNoValidate, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.FormGroupDirective, i1$1.FormControlName, i4.MatError, i4.MatFormField, i5$1.MatInput, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i6.TranslatePipe], styles: ["form[_ngcontent-%COMP%]{margin:10px}.full-width[_ngcontent-%COMP%]{width:100%}#uriInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{display:block;overflow:hidden}#uriInput[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{float:left}#copyButton[_ngcontent-%COMP%]{width:24px;float:right;position:relative;top:-58px;left:5px}"] });
2740
2714
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextFormComponent, [{
2741
2715
  type: Component,
2742
- args: [{
2743
- selector: 'igo-context-form',
2744
- templateUrl: './context-form.component.html',
2745
- styleUrls: ['./context-form.component.scss']
2746
- }]
2747
- }], function () { return [{ type: i4.FormBuilder }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { btnSubmitText: [{
2716
+ args: [{ selector: 'igo-context-form', template: "<form class=\"igo-form\" [formGroup]=\"form\"\r\n (ngSubmit)=\"handleFormSubmit(form.value)\">\r\n\r\n <mat-form-field class=\"full-width\">\r\n <input matInput required\r\n maxlength=\"128\"\r\n [placeholder]=\"'igo.context.contextManager.form.title' | translate\"\r\n formControlName=\"title\">\r\n <mat-error>\r\n {{ 'igo.context.contextManager.form.titleRequired' | translate }}\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field id=\"uriInput\" class=\"full-width\">\r\n <span *ngIf=\"prefix\" class=\"prefix\">{{prefix}}-</span>\r\n <span class=\"fieldWrapper\">\r\n <input matInput\r\n maxlength=\"64\"\r\n floatLabel = \"always\"\r\n [placeholder]=\"'igo.context.contextManager.form.uri' | translate\"\r\n formControlName=\"uri\">\r\n </span>\r\n </mat-form-field>\r\n\r\n <button\r\n id=\"copyButton\"\r\n type=\"button\"\r\n mat-icon-button\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.context.contextManager.form.copy' | translate\"\r\n color=\"primary\"\r\n (click)=\"copyTextToClipboard()\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n </button>\r\n\r\n <div class=\"igo-form-button-group\">\r\n <button\r\n mat-raised-button\r\n type=\"submit\"\r\n [disabled]=\"!form.valid || disabled\">\r\n {{ 'igo.context.contextManager.form.edit' | translate }}\r\n </button>\r\n </div>\r\n\r\n</form>\r\n", styles: ["form{margin:10px}.full-width{width:100%}#uriInput .fieldWrapper{display:block;overflow:hidden}#uriInput .prefix{float:left}#copyButton{width:24px;float:right;position:relative;top:-58px;left:5px}\n"] }]
2717
+ }], function () { return [{ type: i1$1.UntypedFormBuilder }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { btnSubmitText: [{
2748
2718
  type: Input
2749
2719
  }], context: [{
2750
2720
  type: Input
@@ -2761,7 +2731,7 @@ ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
2761
2731
  function ContextEditComponent_igo_context_form_0_Template(rf, ctx) { if (rf & 1) {
2762
2732
  const _r2 = i0.ɵɵgetCurrentView();
2763
2733
  i0.ɵɵelementStart(0, "igo-context-form", 1);
2764
- i0.ɵɵlistener("submitForm", function ContextEditComponent_igo_context_form_0_Template_igo_context_form_submitForm_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return ctx_r1.submitForm.emit($event); });
2734
+ i0.ɵɵlistener("submitForm", function ContextEditComponent_igo_context_form_0_Template_igo_context_form_submitForm_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.submitForm.emit($event)); });
2765
2735
  i0.ɵɵpipe(1, "translate");
2766
2736
  i0.ɵɵelementEnd();
2767
2737
  } if (rf & 2) {
@@ -2789,13 +2759,10 @@ ContextEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
2789
2759
  i0.ɵɵtemplate(0, ContextEditComponent_igo_context_form_0_Template, 2, 4, "igo-context-form", 0);
2790
2760
  } if (rf & 2) {
2791
2761
  i0.ɵɵproperty("ngIf", ctx.context);
2792
- } }, directives: [i7.NgIf, ContextFormComponent], pipes: [i6$1.TranslatePipe], encapsulation: 2 });
2762
+ } }, dependencies: [i5.NgIf, ContextFormComponent, i6.TranslatePipe], encapsulation: 2 });
2793
2763
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextEditComponent, [{
2794
2764
  type: Component,
2795
- args: [{
2796
- selector: 'igo-context-edit',
2797
- templateUrl: './context-edit.component.html'
2798
- }]
2765
+ args: [{ selector: 'igo-context-edit', template: "<igo-context-form *ngIf=\"context\"\r\n [btnSubmitText]=\"'igo.context.contextManager.save' | translate\"\r\n [context]=\"context\"\r\n (submitForm)=\"submitForm.emit($event)\">\r\n</igo-context-form>\r\n" }]
2799
2766
  }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { context: [{
2800
2767
  type: Input
2801
2768
  }], submitForm: [{
@@ -2852,16 +2819,14 @@ ContextEditBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type:
2852
2819
  }] }); })();
2853
2820
 
2854
2821
  function ContextPermissionsComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
2855
- i0.ɵɵelementStart(0, "div", 3);
2856
- i0.ɵɵelementStart(1, "h4");
2822
+ i0.ɵɵelementStart(0, "div", 3)(1, "h4");
2857
2823
  i0.ɵɵtext(2);
2858
2824
  i0.ɵɵpipe(3, "translate");
2859
2825
  i0.ɵɵelementEnd();
2860
2826
  i0.ɵɵelementStart(4, "p");
2861
2827
  i0.ɵɵtext(5);
2862
2828
  i0.ɵɵpipe(6, "translate");
2863
- i0.ɵɵelementEnd();
2864
- i0.ɵɵelementEnd();
2829
+ i0.ɵɵelementEnd()();
2865
2830
  } if (rf & 2) {
2866
2831
  i0.ɵɵadvance(2);
2867
2832
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "igo.context.permission.readOnlyTitle"));
@@ -2879,9 +2844,8 @@ function ContextPermissionsComponent_div_0_div_2_mat_radio_button_8_Template(rf,
2879
2844
  } }
2880
2845
  function ContextPermissionsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
2881
2846
  const _r7 = i0.ɵɵgetCurrentView();
2882
- i0.ɵɵelementStart(0, "div", 3);
2883
- i0.ɵɵelementStart(1, "mat-radio-group", 4);
2884
- i0.ɵɵlistener("ngModelChange", function ContextPermissionsComponent_div_0_div_2_Template_mat_radio_group_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.context.scope = $event; })("change", function ContextPermissionsComponent_div_0_div_2_Template_mat_radio_group_change_1_listener() { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.scopeChanged.emit(ctx_r8.context); });
2847
+ i0.ɵɵelementStart(0, "div", 3)(1, "mat-radio-group", 4);
2848
+ i0.ɵɵlistener("ngModelChange", function ContextPermissionsComponent_div_0_div_2_Template_mat_radio_group_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.context.scope = $event); })("change", function ContextPermissionsComponent_div_0_div_2_Template_mat_radio_group_change_1_listener() { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r8.scopeChanged.emit(ctx_r8.context)); });
2885
2849
  i0.ɵɵelementStart(2, "mat-radio-button", 5);
2886
2850
  i0.ɵɵtext(3);
2887
2851
  i0.ɵɵpipe(4, "translate");
@@ -2891,8 +2855,7 @@ function ContextPermissionsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1)
2891
2855
  i0.ɵɵpipe(7, "translate");
2892
2856
  i0.ɵɵelementEnd();
2893
2857
  i0.ɵɵtemplate(8, ContextPermissionsComponent_div_0_div_2_mat_radio_button_8_Template, 3, 3, "mat-radio-button", 7);
2894
- i0.ɵɵelementEnd();
2895
- i0.ɵɵelementEnd();
2858
+ i0.ɵɵelementEnd()();
2896
2859
  } if (rf & 2) {
2897
2860
  const ctx_r2 = i0.ɵɵnextContext(2);
2898
2861
  i0.ɵɵadvance(1);
@@ -2910,8 +2873,7 @@ function ContextPermissionsComponent_div_0_form_3_mat_option_6_Template(rf, ctx)
2910
2873
  i0.ɵɵelement(2, "br");
2911
2874
  i0.ɵɵelementStart(3, "small", 21);
2912
2875
  i0.ɵɵtext(4);
2913
- i0.ɵɵelementEnd();
2914
- i0.ɵɵelementEnd();
2876
+ i0.ɵɵelementEnd()();
2915
2877
  } if (rf & 2) {
2916
2878
  const profil_r11 = ctx.$implicit;
2917
2879
  i0.ɵɵproperty("value", profil_r11);
@@ -2923,36 +2885,30 @@ function ContextPermissionsComponent_div_0_form_3_mat_option_6_Template(rf, ctx)
2923
2885
  function ContextPermissionsComponent_div_0_form_3_Template(rf, ctx) { if (rf & 1) {
2924
2886
  const _r13 = i0.ɵɵgetCurrentView();
2925
2887
  i0.ɵɵelementStart(0, "form", 9);
2926
- i0.ɵɵlistener("ngSubmit", function ContextPermissionsComponent_div_0_form_3_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return ctx_r12.handleFormSubmit(ctx_r12.form.value); });
2888
+ i0.ɵɵlistener("ngSubmit", function ContextPermissionsComponent_div_0_form_3_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.handleFormSubmit(ctx_r12.form.value)); });
2927
2889
  i0.ɵɵelementStart(1, "mat-form-field", 10);
2928
2890
  i0.ɵɵelement(2, "input", 11);
2929
2891
  i0.ɵɵpipe(3, "translate");
2930
2892
  i0.ɵɵelementStart(4, "mat-autocomplete", 12, 13);
2931
- i0.ɵɵlistener("optionSelected", function ContextPermissionsComponent_div_0_form_3_Template_mat_autocomplete_optionSelected_4_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r14 = i0.ɵɵnextContext(2); return ctx_r14.onProfilSelected($event.option.value); });
2893
+ i0.ɵɵlistener("optionSelected", function ContextPermissionsComponent_div_0_form_3_Template_mat_autocomplete_optionSelected_4_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r14 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r14.onProfilSelected($event.option.value)); });
2932
2894
  i0.ɵɵtemplate(6, ContextPermissionsComponent_div_0_form_3_mat_option_6_Template, 5, 3, "mat-option", 14);
2933
2895
  i0.ɵɵelementEnd();
2934
2896
  i0.ɵɵelementStart(7, "mat-error");
2935
2897
  i0.ɵɵtext(8);
2936
2898
  i0.ɵɵpipe(9, "translate");
2937
- i0.ɵɵelementEnd();
2938
- i0.ɵɵelementEnd();
2939
- i0.ɵɵelementStart(10, "mat-radio-group", 15);
2940
- i0.ɵɵelementStart(11, "mat-radio-button", 16);
2899
+ i0.ɵɵelementEnd()();
2900
+ i0.ɵɵelementStart(10, "mat-radio-group", 15)(11, "mat-radio-button", 16);
2941
2901
  i0.ɵɵtext(12);
2942
2902
  i0.ɵɵpipe(13, "translate");
2943
2903
  i0.ɵɵelementEnd();
2944
2904
  i0.ɵɵelementStart(14, "mat-radio-button", 17);
2945
2905
  i0.ɵɵtext(15);
2946
2906
  i0.ɵɵpipe(16, "translate");
2947
- i0.ɵɵelementEnd();
2948
- i0.ɵɵelementEnd();
2949
- i0.ɵɵelementStart(17, "div", 18);
2950
- i0.ɵɵelementStart(18, "button", 19);
2907
+ i0.ɵɵelementEnd()();
2908
+ i0.ɵɵelementStart(17, "div", 18)(18, "button", 19);
2951
2909
  i0.ɵɵtext(19);
2952
2910
  i0.ɵɵpipe(20, "translate");
2953
- i0.ɵɵelementEnd();
2954
- i0.ɵɵelementEnd();
2955
- i0.ɵɵelementEnd();
2911
+ i0.ɵɵelementEnd()()();
2956
2912
  } if (rf & 2) {
2957
2913
  const _r9 = i0.ɵɵreference(5);
2958
2914
  const ctx_r3 = i0.ɵɵnextContext(2);
@@ -2977,7 +2933,7 @@ function ContextPermissionsComponent_div_0_form_3_Template(rf, ctx) { if (rf & 1
2977
2933
  function ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsible_0_ng_template_2_button_7_Template(rf, ctx) { if (rf & 1) {
2978
2934
  const _r23 = i0.ɵɵgetCurrentView();
2979
2935
  i0.ɵɵelementStart(0, "button", 29);
2980
- i0.ɵɵlistener("click", function ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsible_0_ng_template_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const permission_r19 = i0.ɵɵnextContext().$implicit; const ctx_r21 = i0.ɵɵnextContext(5); return ctx_r21.removePermission.emit(permission_r19); });
2936
+ i0.ɵɵlistener("click", function ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsible_0_ng_template_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const permission_r19 = i0.ɵɵnextContext().$implicit; const ctx_r21 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r21.removePermission.emit(permission_r19)); });
2981
2937
  i0.ɵɵpipe(1, "translate");
2982
2938
  i0.ɵɵelement(2, "mat-icon", 30);
2983
2939
  i0.ɵɵelementEnd();
@@ -2991,12 +2947,10 @@ function ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsi
2991
2947
  i0.ɵɵtext(3);
2992
2948
  i0.ɵɵelementStart(4, "small", 21);
2993
2949
  i0.ɵɵtext(5);
2994
- i0.ɵɵelementEnd();
2995
- i0.ɵɵelementEnd();
2950
+ i0.ɵɵelementEnd()();
2996
2951
  i0.ɵɵelementStart(6, "div", 27);
2997
2952
  i0.ɵɵtemplate(7, ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsible_0_ng_template_2_button_7_Template, 3, 3, "button", 28);
2998
- i0.ɵɵelementEnd();
2999
- i0.ɵɵelementEnd();
2953
+ i0.ɵɵelementEnd()();
3000
2954
  } if (rf & 2) {
3001
2955
  const permission_r19 = ctx.$implicit;
3002
2956
  const ctx_r18 = i0.ɵɵnextContext(5);
@@ -3060,7 +3014,7 @@ class ContextPermissionsComponent {
3060
3014
  this.authService = authService;
3061
3015
  this.config = config;
3062
3016
  this._profils = [];
3063
- this.formControl = new FormControl();
3017
+ this.formControl = new UntypedFormControl();
3064
3018
  this.addPermission = new EventEmitter();
3065
3019
  this.removePermission = new EventEmitter();
3066
3020
  this.scopeChanged = new EventEmitter();
@@ -3129,20 +3083,16 @@ class ContextPermissionsComponent {
3129
3083
  });
3130
3084
  }
3131
3085
  }
3132
- ContextPermissionsComponent.ɵfac = function ContextPermissionsComponent_Factory(t) { return new (t || ContextPermissionsComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.HttpClient), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.ConfigService)); };
3086
+ ContextPermissionsComponent.ɵfac = function ContextPermissionsComponent_Factory(t) { return new (t || ContextPermissionsComponent)(i0.ɵɵdirectiveInject(i1$1.UntypedFormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.HttpClient), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.ConfigService)); };
3133
3087
  ContextPermissionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextPermissionsComponent, selectors: [["igo-context-permissions"]], inputs: { context: "context", permissions: "permissions" }, outputs: { addPermission: "addPermission", removePermission: "removePermission", scopeChanged: "scopeChanged" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["class", "scopeForm", 4, "ngIf"], [3, "formGroup", "ngSubmit", 4, "ngIf"], [1, "scopeForm"], [3, "ngModel", "ngModelChange", "change"], ["value", "private"], ["value", "protected"], ["value", "public", 4, "ngIf"], ["value", "public"], [3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", 3, "placeholder", "formControl", "matAutocomplete"], [3, "displayWith", "optionSelected"], ["auto", "matAutocomplete"], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "typePermission"], ["value", "read"], ["value", "write"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], [3, "value"], [1, "mat-typography"], ["ngFor", "", 3, "ngForOf"], [3, "title", 4, "ngIf"], [3, "title"], ["mat-list-avatar", "", "svgIcon", "account-outline"], ["mat-line", ""], ["igoStopPropagation", "", 1, "igo-actions-container"], ["mat-icon-button", "", "matTooltipShowDelay", "500", "color", "warn", 3, "matTooltip", "click", 4, "ngIf"], ["mat-icon-button", "", "matTooltipShowDelay", "500", "color", "warn", 3, "matTooltip", "click"], ["svgIcon", "delete"]], template: function ContextPermissionsComponent_Template(rf, ctx) { if (rf & 1) {
3134
3088
  i0.ɵɵtemplate(0, ContextPermissionsComponent_div_0_Template, 5, 4, "div", 0);
3135
3089
  } if (rf & 2) {
3136
3090
  i0.ɵɵproperty("ngIf", ctx.context);
3137
- } }, directives: [i7.NgIf, i6$3.MatRadioGroup, i4.NgControlStatus, i4.NgModel, i6$3.MatRadioButton, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, i3$1.MatFormField, i3$2.MatInput, i4.DefaultValueAccessor, i9$1.MatAutocompleteTrigger, i4.RequiredValidator, i4.FormControlDirective, i9$1.MatAutocomplete, i7.NgForOf, i3$1.MatError, i4.FormControlName, i5.MatButton, i11.MatOption, i5$1.ListComponent, i5$1.CollapsibleComponent, i3$3.MatListItem, i9.MatIcon, i3$3.MatListAvatarCssMatStyler, i11.MatLine, i5$1.StopPropagationDirective, i6$2.MatTooltip], pipes: [i6$1.TranslatePipe, i5$1.KeyValuePipe], styles: ["[_nghost-%COMP%]{margin:10px}.full-width[_ngcontent-%COMP%]{width:100%}mat-radio-button[_ngcontent-%COMP%]{padding:14px 14px 14px 0}.scopeForm[_ngcontent-%COMP%], form[_ngcontent-%COMP%]{padding:5px}mat-option[_ngcontent-%COMP%] .mat-option-text{line-height:normal;line-height:initial}"] });
3091
+ } }, dependencies: [i5.NgForOf, i5.NgIf, i1$1.ɵNgNoValidate, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.RequiredValidator, i1$1.NgModel, i1$1.FormControlDirective, i1$1.FormGroupDirective, i1$1.FormControlName, i4.MatError, i4.MatFormField, i5$1.MatInput, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i7$1.MatListItem, i7$1.MatListAvatarCssMatStyler, i12.MatLine, i13$1.MatRadioGroup, i13$1.MatRadioButton, i12.MatOption, i14$1.MatAutocomplete, i14$1.MatAutocompleteTrigger, i14.ListComponent, i14.CollapsibleComponent, i14.StopPropagationDirective, i14.KeyValuePipe, i6.TranslatePipe], styles: ["[_nghost-%COMP%]{margin:10px}.full-width[_ngcontent-%COMP%]{width:100%}mat-radio-button[_ngcontent-%COMP%]{padding:14px 14px 14px 0}.scopeForm[_ngcontent-%COMP%], form[_ngcontent-%COMP%]{padding:5px}mat-option[_ngcontent-%COMP%] .mat-option-text{line-height:normal;line-height:initial}"] });
3138
3092
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextPermissionsComponent, [{
3139
3093
  type: Component,
3140
- args: [{
3141
- selector: 'igo-context-permissions',
3142
- templateUrl: './context-permissions.component.html',
3143
- styleUrls: ['./context-permissions.component.scss']
3144
- }]
3145
- }], function () { return [{ type: i4.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i1.HttpClient }, { type: i2.AuthService }, { type: i3.ConfigService }]; }, { context: [{
3094
+ args: [{ selector: 'igo-context-permissions', template: "<div *ngIf=\"context\">\r\n\r\n <div *ngIf=\"!canWrite\" class=\"scopeForm\">\r\n <h4>{{ 'igo.context.permission.readOnlyTitle' | translate }}</h4>\r\n <p>{{ 'igo.context.permission.readOnlyMsg' | translate }}</p>\r\n </div>\r\n\r\n <div *ngIf=\"canWrite\" class=\"scopeForm\">\r\n <mat-radio-group [(ngModel)]=\"context.scope\"\r\n (change)=\"scopeChanged.emit(context)\">\r\n <mat-radio-button value=\"private\">\r\n {{ 'igo.context.permission.scope.private' | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button value=\"protected\">\r\n {{ 'igo.context.permission.scope.shared' | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button *ngIf=\"authService.isAdmin\" value=\"public\">\r\n {{ 'igo.context.permission.scope.public' | translate }}\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n </div>\r\n\r\n <form *ngIf=\"context.scope !== 'private' && canWrite\" [formGroup]=\"form\"\r\n (ngSubmit)=\"handleFormSubmit(form.value)\">\r\n\r\n <mat-form-field class=\"full-width\">\r\n <input matInput required\r\n [placeholder]=\"'igo.context.permission.user' | translate\"\r\n [formControl]=\"formControl\"\r\n [matAutocomplete]=\"auto\">\r\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onProfilSelected($event.option.value)\"\r\n [displayWith]=\"displayFn\">\r\n <mat-option *ngFor=\"let profil of this.profils\" [value]=\"profil\">\r\n {{profil.title}}<br>\r\n <small class=\"mat-typography\">{{profil.name}}</small>\r\n </mat-option>\r\n </mat-autocomplete>\r\n <mat-error>\r\n {{ 'igo.context.permission.profilRequired' | translate }}\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n\r\n <mat-radio-group formControlName=\"typePermission\">\r\n <mat-radio-button value=\"read\">\r\n {{ 'igo.context.permission.read' | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button value=\"write\">\r\n {{ 'igo.context.permission.write' | translate }}\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n\r\n\r\n <div class=\"igo-form-button-group\">\r\n <button\r\n mat-raised-button\r\n type=\"submit\"\r\n [disabled]=\"!form.valid\">\r\n {{ 'igo.context.permission.addBtn' | translate }}\r\n </button>\r\n </div>\r\n\r\n </form>\r\n\r\n <igo-list *ngIf=\"permissions && context.scope !== 'private'\">\r\n <ng-template ngFor let-groupPermissions [ngForOf]=\"permissions | keyvalue\">\r\n <igo-collapsible\r\n *ngIf=\"groupPermissions.value.length\"\r\n [title]=\"'igo.context.permission.' + groupPermissions.key | translate\">\r\n\r\n <ng-template ngFor let-permission [ngForOf]=\"groupPermissions.value\">\r\n <mat-list-item>\r\n <mat-icon mat-list-avatar svgIcon=\"account-outline\"></mat-icon>\r\n <h4 mat-line>{{permission.profilTitle}} <small class=\"mat-typography\">{{permission.profil}}</small></h4>\r\n\r\n <div igoStopPropagation\r\n class=\"igo-actions-container\">\r\n\r\n <button *ngIf=\"canWrite || permission.profil === authService.decodeToken().user.sourceId\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.permission.delete' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n color=\"warn\"\r\n (click)=\"removePermission.emit(permission)\">\r\n <mat-icon svgIcon=\"delete\"></mat-icon>\r\n </button>\r\n </div>\r\n\r\n </mat-list-item>\r\n </ng-template>\r\n </igo-collapsible>\r\n </ng-template>\r\n </igo-list>\r\n\r\n</div>\r\n", styles: [":host{margin:10px}.full-width{width:100%}mat-radio-button{padding:14px 14px 14px 0}.scopeForm,form{padding:5px}mat-option ::ng-deep .mat-option-text{line-height:normal;line-height:initial}\n"] }]
3095
+ }], function () { return [{ type: i1$1.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }, { type: i1.HttpClient }, { type: i2.AuthService }, { type: i3.ConfigService }]; }, { context: [{
3146
3096
  type: Input
3147
3097
  }], permissions: [{
3148
3098
  type: Input
@@ -3306,27 +3256,21 @@ class BookmarkButtonComponent {
3306
3256
  });
3307
3257
  }
3308
3258
  }
3309
- BookmarkButtonComponent.ɵfac = function BookmarkButtonComponent_Factory(t) { return new (t || BookmarkButtonComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService)); };
3259
+ BookmarkButtonComponent.ɵfac = function BookmarkButtonComponent_Factory(t) { return new (t || BookmarkButtonComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService)); };
3310
3260
  BookmarkButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BookmarkButtonComponent, selectors: [["igo-bookmark-button"]], inputs: { map: "map", color: "color" }, decls: 4, vars: 4, consts: [[1, "igo-bookmark-button-container"], ["mat-icon-button", "", "matTooltipPosition", "above", 3, "matTooltip", "color", "click"], ["svgIcon", "star"]], template: function BookmarkButtonComponent_Template(rf, ctx) { if (rf & 1) {
3311
- i0.ɵɵelementStart(0, "div", 0);
3312
- i0.ɵɵelementStart(1, "button", 1);
3261
+ i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
3313
3262
  i0.ɵɵlistener("click", function BookmarkButtonComponent_Template_button_click_1_listener() { return ctx.createContext(); });
3314
3263
  i0.ɵɵpipe(2, "translate");
3315
3264
  i0.ɵɵelement(3, "mat-icon", 2);
3316
- i0.ɵɵelementEnd();
3317
- i0.ɵɵelementEnd();
3265
+ i0.ɵɵelementEnd()();
3318
3266
  } if (rf & 2) {
3319
3267
  i0.ɵɵadvance(1);
3320
3268
  i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(2, 2, "igo.context.bookmarkButton.create"))("color", ctx.color);
3321
- } }, directives: [i5.MatButton, i6$2.MatTooltip, i9.MatIcon], pipes: [i6$1.TranslatePipe], styles: [".igo-bookmark-button-container[_ngcontent-%COMP%]{width:40px}.igo-bookmark-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}.igo-bookmark-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#efefef}button[_ngcontent-%COMP%], [_nghost-%COMP%] button .mat-button-ripple-round{border-radius:0}"] });
3269
+ } }, dependencies: [i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i6.TranslatePipe], styles: [".igo-bookmark-button-container[_ngcontent-%COMP%]{width:40px}.igo-bookmark-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}.igo-bookmark-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#efefef}button[_ngcontent-%COMP%], [_nghost-%COMP%] button .mat-button-ripple-round{border-radius:0}"] });
3322
3270
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BookmarkButtonComponent, [{
3323
3271
  type: Component,
3324
- args: [{
3325
- selector: 'igo-bookmark-button',
3326
- templateUrl: './bookmark-button.component.html',
3327
- styleUrls: ['./bookmark-button.component.scss']
3328
- }]
3329
- }], function () { return [{ type: i1$2.MatDialog }, { type: ContextService }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { map: [{
3272
+ args: [{ selector: 'igo-bookmark-button', template: "<div class=\"igo-bookmark-button-container\">\r\n <button\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.bookmarkButton.create' | translate\"\r\n matTooltipPosition=\"above\"\r\n [color]=\"color\"\r\n (click)=\"createContext()\">\r\n <mat-icon svgIcon=\"star\"></mat-icon>\r\n </button>\r\n</div>\r\n", styles: [".igo-bookmark-button-container{width:40px}.igo-bookmark-button-container button{background-color:#fff}.igo-bookmark-button-container button:hover{background-color:#efefef}button,:host ::ng-deep button .mat-button-ripple-round{border-radius:0}\n"] }]
3273
+ }], function () { return [{ type: i1$3.MatDialog }, { type: ContextService }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { map: [{
3330
3274
  type: Input
3331
3275
  }], color: [{
3332
3276
  type: Input
@@ -3337,22 +3281,17 @@ class PoiDialogComponent {
3337
3281
  this.dialogRef = dialogRef;
3338
3282
  }
3339
3283
  }
3340
- PoiDialogComponent.ɵfac = function PoiDialogComponent_Factory(t) { return new (t || PoiDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef)); };
3284
+ PoiDialogComponent.ɵfac = function PoiDialogComponent_Factory(t) { return new (t || PoiDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
3341
3285
  PoiDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiDialogComponent, selectors: [["igo-poi-dialog"]], decls: 14, vars: 14, consts: [["mat-dialog-title", "", 1, "mat-typography"], ["mat-dialog-content", ""], ["matInput", "", "required", "", "autocomplete", "off", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-dialog-actions", ""], ["mat-button", "", "color", "primary", 3, "disabled", "click"], ["mat-button", "", 3, "click"]], template: function PoiDialogComponent_Template(rf, ctx) { if (rf & 1) {
3342
3286
  i0.ɵɵelementStart(0, "h1", 0);
3343
3287
  i0.ɵɵtext(1);
3344
3288
  i0.ɵɵpipe(2, "translate");
3345
3289
  i0.ɵɵelementEnd();
3346
- i0.ɵɵelementStart(3, "div", 1);
3347
- i0.ɵɵelementStart(4, "mat-form-field");
3348
- i0.ɵɵelementStart(5, "input", 2);
3290
+ i0.ɵɵelementStart(3, "div", 1)(4, "mat-form-field")(5, "input", 2);
3349
3291
  i0.ɵɵlistener("ngModelChange", function PoiDialogComponent_Template_input_ngModelChange_5_listener($event) { return ctx.title = $event; });
3350
3292
  i0.ɵɵpipe(6, "translate");
3351
- i0.ɵɵelementEnd();
3352
- i0.ɵɵelementEnd();
3353
- i0.ɵɵelementEnd();
3354
- i0.ɵɵelementStart(7, "div", 3);
3355
- i0.ɵɵelementStart(8, "button", 4);
3293
+ i0.ɵɵelementEnd()()();
3294
+ i0.ɵɵelementStart(7, "div", 3)(8, "button", 4);
3356
3295
  i0.ɵɵlistener("click", function PoiDialogComponent_Template_button_click_8_listener() { return ctx.dialogRef.close(ctx.title); });
3357
3296
  i0.ɵɵtext(9);
3358
3297
  i0.ɵɵpipe(10, "translate");
@@ -3361,8 +3300,7 @@ PoiDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiDialo
3361
3300
  i0.ɵɵlistener("click", function PoiDialogComponent_Template_button_click_11_listener() { return ctx.dialogRef.close(false); });
3362
3301
  i0.ɵɵtext(12);
3363
3302
  i0.ɵɵpipe(13, "translate");
3364
- i0.ɵɵelementEnd();
3365
- i0.ɵɵelementEnd();
3303
+ i0.ɵɵelementEnd()();
3366
3304
  } if (rf & 2) {
3367
3305
  i0.ɵɵadvance(1);
3368
3306
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 6, "igo.context.poiButton.dialog.title"));
@@ -3374,14 +3312,11 @@ PoiDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiDialo
3374
3312
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 10, "igo.common.confirmDialog.confirmBtn"), " ");
3375
3313
  i0.ɵɵadvance(3);
3376
3314
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 12, "igo.common.confirmDialog.cancelBtn"), " ");
3377
- } }, directives: [i1$2.MatDialogTitle, i1$2.MatDialogContent, i3$1.MatFormField, i3$2.MatInput, i4.DefaultValueAccessor, i4.RequiredValidator, i4.NgControlStatus, i4.NgModel, i1$2.MatDialogActions, i5.MatButton], pipes: [i6$1.TranslatePipe], encapsulation: 2 });
3315
+ } }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel, i7.MatButton, i4.MatFormField, i1$3.MatDialogTitle, i1$3.MatDialogContent, i1$3.MatDialogActions, i5$1.MatInput, i6.TranslatePipe], encapsulation: 2 });
3378
3316
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoiDialogComponent, [{
3379
3317
  type: Component,
3380
- args: [{
3381
- selector: 'igo-poi-dialog',
3382
- templateUrl: './poi-dialog.component.html'
3383
- }]
3384
- }], function () { return [{ type: i1$2.MatDialogRef }]; }, null); })();
3318
+ args: [{ selector: 'igo-poi-dialog', template: "<h1 mat-dialog-title class=\"mat-typography\">{{ 'igo.context.poiButton.dialog.title' | translate }}</h1>\r\n<div mat-dialog-content>\r\n <mat-form-field>\r\n <input matInput required autocomplete=\"off\"\r\n [placeholder]=\"'igo.context.poiButton.dialog.placeholder' | translate\"\r\n [(ngModel)]=\"title\">\r\n </mat-form-field>\r\n</div>\r\n<div mat-dialog-actions>\r\n <button mat-button color=\"primary\"\r\n [disabled]=\"!title\"\r\n (click)=\"dialogRef.close(title)\">\r\n {{'igo.common.confirmDialog.confirmBtn' | translate}}\r\n </button>\r\n <button mat-button\r\n (click)=\"dialogRef.close(false)\">\r\n {{'igo.common.confirmDialog.cancelBtn' |\u00A0translate}}\r\n </button>\r\n</div>\r\n" }]
3319
+ }], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
3385
3320
 
3386
3321
  class PoiService {
3387
3322
  constructor(http, config) {
@@ -3414,15 +3349,14 @@ PoiService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoiService, f
3414
3349
  function PoiButtonComponent_mat_option_8_Template(rf, ctx) { if (rf & 1) {
3415
3350
  const _r3 = i0.ɵɵgetCurrentView();
3416
3351
  i0.ɵɵelementStart(0, "mat-option", 6);
3417
- i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_8_Template_mat_option_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const poi_r1 = restoredCtx.$implicit; const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.zoomOnPoi(poi_r1.id); });
3352
+ i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_8_Template_mat_option_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const poi_r1 = restoredCtx.$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.zoomOnPoi(poi_r1.id)); });
3418
3353
  i0.ɵɵelementStart(1, "div", 2);
3419
3354
  i0.ɵɵtext(2);
3420
3355
  i0.ɵɵelementEnd();
3421
3356
  i0.ɵɵelementStart(3, "button", 7);
3422
- i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_8_Template_button_click_3_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const poi_r1 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.deletePoi(poi_r1); });
3357
+ i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_8_Template_button_click_3_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const poi_r1 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.deletePoi(poi_r1)); });
3423
3358
  i0.ɵɵelement(4, "mat-icon", 8);
3424
- i0.ɵɵelementEnd();
3425
- i0.ɵɵelementEnd();
3359
+ i0.ɵɵelementEnd()();
3426
3360
  } if (rf & 2) {
3427
3361
  const poi_r1 = ctx.$implicit;
3428
3362
  i0.ɵɵproperty("value", poi_r1.id);
@@ -3533,7 +3467,7 @@ class PoiButtonComponent {
3533
3467
  });
3534
3468
  }
3535
3469
  }
3536
- PoiButtonComponent.ɵfac = function PoiButtonComponent_Factory(t) { return new (t || PoiButtonComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(PoiService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i5$1.ConfirmDialogService)); };
3470
+ PoiButtonComponent.ɵfac = function PoiButtonComponent_Factory(t) { return new (t || PoiButtonComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(PoiService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i14.ConfirmDialogService)); };
3537
3471
  PoiButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiButtonComponent, selectors: [["igo-poi-button"]], inputs: { map: "map", color: "color" }, decls: 9, vars: 7, consts: [["floatPlaceholder", "never", 3, "placeholder"], [3, "click"], [1, "titlePoi"], ["igoStopPropagation", "", "mat-icon-button", "", "color", "primary", 1, "addPoi", "buttonPoi", 3, "click"], ["svgIcon", "plus-circle"], [3, "value", "click", 4, "ngFor", "ngForOf"], [3, "value", "click"], ["igoStopPropagation", "", "mat-icon-button", "", "color", "warn", 1, "deletePoi", "buttonPoi", 3, "click"], ["svgIcon", "delete"]], template: function PoiButtonComponent_Template(rf, ctx) { if (rf & 1) {
3538
3472
  i0.ɵɵelementStart(0, "mat-select", 0);
3539
3473
  i0.ɵɵpipe(1, "translate");
@@ -3546,8 +3480,7 @@ PoiButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiButto
3546
3480
  i0.ɵɵelementStart(6, "button", 3);
3547
3481
  i0.ɵɵlistener("click", function PoiButtonComponent_Template_button_click_6_listener() { return ctx.createPoi(); });
3548
3482
  i0.ɵɵelement(7, "mat-icon", 4);
3549
- i0.ɵɵelementEnd();
3550
- i0.ɵɵelementEnd();
3483
+ i0.ɵɵelementEnd()();
3551
3484
  i0.ɵɵtemplate(8, PoiButtonComponent_mat_option_8_Template, 5, 2, "mat-option", 5);
3552
3485
  i0.ɵɵelementEnd();
3553
3486
  } if (rf & 2) {
@@ -3556,15 +3489,11 @@ PoiButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiButto
3556
3489
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 5, "igo.context.poiButton.create"));
3557
3490
  i0.ɵɵadvance(4);
3558
3491
  i0.ɵɵproperty("ngForOf", ctx.pois);
3559
- } }, directives: [i12.MatSelect, i11.MatOption, i5.MatButton, i5$1.StopPropagationDirective, i9.MatIcon, i7.NgForOf], pipes: [i6$1.TranslatePipe], styles: ["mat-select[_ngcontent-%COMP%]{width:150px;background-color:#fff;height:40px;padding-top:0}mat-select[_ngcontent-%COMP%] .mat-select-trigger{height:40px}mat-select[_ngcontent-%COMP%] .mat-select-value-text, mat-select[_ngcontent-%COMP%] .mat-select-placeholder{padding:5px;top:12px;position:relative}.mat-option[_ngcontent-%COMP%]{text-overflow:inherit}.titlePoi[_ngcontent-%COMP%]{max-width:135px;overflow:hidden;text-overflow:ellipsis;float:left}.buttonPoi[_ngcontent-%COMP%]{float:right;margin:4px -10px 4px 0}.buttonPoi[_ngcontent-%COMP%] .mat-icon{margin:0 8px}"] });
3492
+ } }, dependencies: [i5.NgForOf, i14.StopPropagationDirective, i4$1.MatIcon, i7.MatButton, i11.MatSelect, i12.MatOption, i6.TranslatePipe], styles: ["mat-select[_ngcontent-%COMP%]{width:150px;background-color:#fff;height:40px;padding-top:0}mat-select[_ngcontent-%COMP%] .mat-select-trigger{height:40px}mat-select[_ngcontent-%COMP%] .mat-select-value-text, mat-select[_ngcontent-%COMP%] .mat-select-placeholder{padding:5px;top:12px;position:relative}.mat-option[_ngcontent-%COMP%]{text-overflow:inherit}.titlePoi[_ngcontent-%COMP%]{max-width:135px;overflow:hidden;text-overflow:ellipsis;float:left}.buttonPoi[_ngcontent-%COMP%]{float:right;margin:4px -10px 4px 0}.buttonPoi[_ngcontent-%COMP%] .mat-icon{margin:0 8px}"] });
3560
3493
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoiButtonComponent, [{
3561
3494
  type: Component,
3562
- args: [{
3563
- selector: 'igo-poi-button',
3564
- templateUrl: './poi-button.component.html',
3565
- styleUrls: ['./poi-button.component.scss']
3566
- }]
3567
- }], function () { return [{ type: i1$2.MatDialog }, { type: i2.AuthService }, { type: PoiService }, { type: i3.MessageService }, { type: i3.LanguageService }, { type: i5$1.ConfirmDialogService }]; }, { map: [{
3495
+ args: [{ selector: 'igo-poi-button', template: "<mat-select [placeholder]=\"'igo.context.poiButton.placeholder' |\u00A0translate\"\r\n floatPlaceholder=\"never\">\r\n\r\n <mat-option (click)=\"createPoi()\">\r\n <div class=\"titlePoi\">{{ 'igo.context.poiButton.create' |\u00A0translate }}</div>\r\n <button igoStopPropagation class=\"addPoi buttonPoi\"\r\n mat-icon-button\r\n color=\"primary\"\r\n (click)=\"createPoi()\">\r\n <mat-icon svgIcon=\"plus-circle\"></mat-icon>\r\n </button>\r\n </mat-option>\r\n <mat-option *ngFor=\"let poi of pois\" [value]=\"poi.id\" (click)=\"zoomOnPoi(poi.id)\">\r\n <div class=\"titlePoi\">{{ poi.title }}</div>\r\n <button igoStopPropagation class=\"deletePoi buttonPoi\"\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"deletePoi(poi)\">\r\n <mat-icon svgIcon=\"delete\"></mat-icon>\r\n </button>\r\n </mat-option>\r\n</mat-select>\r\n", styles: ["mat-select{width:150px;background-color:#fff;height:40px;padding-top:0}mat-select ::ng-deep .mat-select-trigger{height:40px}mat-select ::ng-deep .mat-select-value-text,mat-select ::ng-deep .mat-select-placeholder{padding:5px;top:12px;position:relative}.mat-option{text-overflow:inherit}.titlePoi{max-width:135px;overflow:hidden;text-overflow:ellipsis;float:left}.buttonPoi{float:right;margin:4px -10px 4px 0}.buttonPoi ::ng-deep .mat-icon{margin:0 8px}\n"] }]
3496
+ }], function () { return [{ type: i1$3.MatDialog }, { type: i2.AuthService }, { type: PoiService }, { type: i3.MessageService }, { type: i3.LanguageService }, { type: i14.ConfirmDialogService }]; }, { map: [{
3568
3497
  type: Input
3569
3498
  }], color: [{
3570
3499
  type: Input
@@ -3583,14 +3512,13 @@ class UserDialogComponent {
3583
3512
  this.storageService.clear();
3584
3513
  }
3585
3514
  }
3586
- UserDialogComponent.ɵfac = function UserDialogComponent_Factory(t) { return new (t || UserDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService)); };
3515
+ UserDialogComponent.ɵfac = function UserDialogComponent_Factory(t) { return new (t || UserDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService)); };
3587
3516
  UserDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDialogComponent, selectors: [["igo-user-dialog"]], decls: 20, vars: 18, consts: [["mat-dialog-title", "", 1, "mat-typography"], ["mat-dialog-content", "", 1, "mat-typography"], ["mat-stroked-button", "", "color", "primary", 3, "click"], ["mat-dialog-actions", "", 2, "justify-content", "center"], ["mat-raised-button", "", "color", "primary", 3, "click"]], template: function UserDialogComponent_Template(rf, ctx) { if (rf & 1) {
3588
3517
  i0.ɵɵelementStart(0, "h1", 0);
3589
3518
  i0.ɵɵtext(1);
3590
3519
  i0.ɵɵpipe(2, "translate");
3591
3520
  i0.ɵɵelementEnd();
3592
- i0.ɵɵelementStart(3, "div", 1);
3593
- i0.ɵɵelementStart(4, "p");
3521
+ i0.ɵɵelementStart(3, "div", 1)(4, "p");
3594
3522
  i0.ɵɵtext(5);
3595
3523
  i0.ɵɵpipe(6, "translate");
3596
3524
  i0.ɵɵelementEnd();
@@ -3609,12 +3537,10 @@ UserDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDia
3609
3537
  i0.ɵɵelementEnd();
3610
3538
  i0.ɵɵelement(16, "br");
3611
3539
  i0.ɵɵelementEnd();
3612
- i0.ɵɵelementStart(17, "div", 3);
3613
- i0.ɵɵelementStart(18, "button", 4);
3540
+ i0.ɵɵelementStart(17, "div", 3)(18, "button", 4);
3614
3541
  i0.ɵɵlistener("click", function UserDialogComponent_Template_button_click_18_listener() { return ctx.dialogRef.close(false); });
3615
3542
  i0.ɵɵtext(19, " OK ");
3616
- i0.ɵɵelementEnd();
3617
- i0.ɵɵelementEnd();
3543
+ i0.ɵɵelementEnd()();
3618
3544
  } if (rf & 2) {
3619
3545
  i0.ɵɵadvance(1);
3620
3546
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 8, "igo.context.userButton.infoTitle"));
@@ -3626,14 +3552,11 @@ UserDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDia
3626
3552
  i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(12, 14, "igo.context.userButton.dialog.expiration"), ": ", ctx.exp, "");
3627
3553
  i0.ɵɵadvance(3);
3628
3554
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 16, "igo.context.userButton.dialog.clearPreferences"), " ");
3629
- } }, directives: [i1$2.MatDialogTitle, i1$2.MatDialogContent, i5.MatButton, i1$2.MatDialogActions], pipes: [i6$1.TranslatePipe], encapsulation: 2 });
3555
+ } }, dependencies: [i7.MatButton, i1$3.MatDialogTitle, i1$3.MatDialogContent, i1$3.MatDialogActions, i6.TranslatePipe], encapsulation: 2 });
3630
3556
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserDialogComponent, [{
3631
3557
  type: Component,
3632
- args: [{
3633
- selector: 'igo-user-dialog',
3634
- templateUrl: './user-dialog.component.html'
3635
- }]
3636
- }], function () { return [{ type: i1$2.MatDialogRef }, { type: i2.AuthService }, { type: i3.StorageService }]; }, null); })();
3558
+ args: [{ selector: 'igo-user-dialog', template: "<h1 mat-dialog-title class=\"mat-typography\">{{'igo.context.userButton.infoTitle' | translate}}</h1>\r\n<div mat-dialog-content class=\"mat-typography\">\r\n <p>{{'igo.context.userButton.dialog.user' | translate}}: {{user.sourceId}}</p>\r\n <p>{{'igo.context.userButton.dialog.email' | translate}}: {{user.email}}</p>\r\n <p>{{'igo.context.userButton.dialog.expiration' | translate}}: {{exp}}</p>\r\n <button mat-stroked-button color=\"primary\" (click)=\"clearPreferences()\">\r\n {{'igo.context.userButton.dialog.clearPreferences' | translate}}\r\n </button>\r\n <br>\r\n</div>\r\n<div mat-dialog-actions style=\"justify-content: center\">\r\n <button mat-raised-button color=\"primary\"\r\n (click)=\"dialogRef.close(false)\">\r\n OK\r\n </button>\r\n</div>\r\n" }]
3559
+ }], function () { return [{ type: i1$3.MatDialogRef }, { type: i2.AuthService }, { type: i3.StorageService }]; }, null); })();
3637
3560
 
3638
3561
  function userButtonSlideInOut() {
3639
3562
  return trigger('userButtonState', [
@@ -3659,25 +3582,22 @@ function UserButtonComponent_div_0_igo_poi_button_2_Template(rf, ctx) { if (rf &
3659
3582
  } }
3660
3583
  function UserButtonComponent_div_0_Template(rf, ctx) { if (rf & 1) {
3661
3584
  const _r3 = i0.ɵɵgetCurrentView();
3662
- i0.ɵɵelementStart(0, "div", 1);
3663
- i0.ɵɵelementStart(1, "div", 2);
3585
+ i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
3664
3586
  i0.ɵɵtemplate(2, UserButtonComponent_div_0_igo_poi_button_2_Template, 1, 2, "igo-poi-button", 3);
3665
3587
  i0.ɵɵelementStart(3, "button", 4);
3666
- i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.infoUser(); });
3588
+ i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.infoUser()); });
3667
3589
  i0.ɵɵpipe(4, "translate");
3668
3590
  i0.ɵɵelement(5, "mat-icon", 5);
3669
3591
  i0.ɵɵelementEnd();
3670
3592
  i0.ɵɵelementStart(6, "button", 4);
3671
- i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.logout(); });
3593
+ i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.logout()); });
3672
3594
  i0.ɵɵpipe(7, "translate");
3673
3595
  i0.ɵɵelement(8, "mat-icon", 6);
3674
- i0.ɵɵelementEnd();
3675
- i0.ɵɵelementEnd();
3596
+ i0.ɵɵelementEnd()();
3676
3597
  i0.ɵɵelementStart(9, "button", 7);
3677
- i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r3); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.accountClick(); });
3598
+ i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r3); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.accountClick()); });
3678
3599
  i0.ɵɵelement(10, "mat-icon", 8);
3679
- i0.ɵɵelementEnd();
3680
- i0.ɵɵelementEnd();
3600
+ i0.ɵɵelementEnd()();
3681
3601
  } if (rf & 2) {
3682
3602
  const ctx_r0 = i0.ɵɵnextContext();
3683
3603
  i0.ɵɵadvance(1);
@@ -3730,21 +3650,16 @@ class UserButtonComponent {
3730
3650
  this.dialog.open(UserDialogComponent, { disableClose: false });
3731
3651
  }
3732
3652
  }
3733
- UserButtonComponent.ɵfac = function UserButtonComponent_Factory(t) { return new (t || UserButtonComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService)); };
3653
+ UserButtonComponent.ɵfac = function UserButtonComponent_Factory(t) { return new (t || UserButtonComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService)); };
3734
3654
  UserButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserButtonComponent, selectors: [["igo-user-button"]], inputs: { map: "map", color: "color" }, decls: 1, vars: 1, consts: [["class", "igo-user-button-container", 4, "ngIf"], [1, "igo-user-button-container"], [1, "igo-user-button-more-container"], [3, "color", "map", 4, "ngIf"], ["mat-icon-button", "", "matTooltipPosition", "above", 3, "matTooltip", "color", "click"], ["svgIcon", "information-outline"], ["svgIcon", "power"], ["mat-icon-button", "", 3, "color", "click"], ["svgIcon", "account-box"], [3, "color", "map"]], template: function UserButtonComponent_Template(rf, ctx) { if (rf & 1) {
3735
3655
  i0.ɵɵtemplate(0, UserButtonComponent_div_0_Template, 11, 11, "div", 0);
3736
3656
  } if (rf & 2) {
3737
3657
  i0.ɵɵproperty("ngIf", ctx.visible);
3738
- } }, directives: [i7.NgIf, i5.MatButton, i6$2.MatTooltip, i9.MatIcon, PoiButtonComponent], pipes: [i6$1.TranslatePipe], styles: [".igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}.igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#efefef}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{position:absolute;bottom:0}}.igo-user-button-more-container[_ngcontent-%COMP%]{float:left;height:40px}.igo-user-button-more-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:2px;float:left}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-more-container[_ngcontent-%COMP%]{height:80px;width:150px;position:relative;left:24px}}button[_ngcontent-%COMP%], [_nghost-%COMP%] button .mat-button-ripple-round{border-radius:0}"], data: { animation: [userButtonSlideInOut()] } });
3658
+ } }, dependencies: [i5.NgIf, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, PoiButtonComponent, i6.TranslatePipe], styles: [".igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}.igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#efefef}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{position:absolute;bottom:0}}.igo-user-button-more-container[_ngcontent-%COMP%]{float:left;height:40px}.igo-user-button-more-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:2px;float:left}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-more-container[_ngcontent-%COMP%]{height:80px;width:150px;position:relative;left:24px}}button[_ngcontent-%COMP%], [_nghost-%COMP%] button .mat-button-ripple-round{border-radius:0}"], data: { animation: [userButtonSlideInOut()] } });
3739
3659
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserButtonComponent, [{
3740
3660
  type: Component,
3741
- args: [{
3742
- selector: 'igo-user-button',
3743
- templateUrl: './user-button.component.html',
3744
- styleUrls: ['./user-button.component.scss'],
3745
- animations: [userButtonSlideInOut()]
3746
- }]
3747
- }], function () { return [{ type: i1$2.MatDialog }, { type: i3.ConfigService }, { type: i2.AuthService }]; }, { map: [{
3661
+ args: [{ selector: 'igo-user-button', animations: [userButtonSlideInOut()], template: "<div *ngIf=\"visible\" class=\"igo-user-button-container\">\r\n <div class=\"igo-user-button-more-container\" [@userButtonState]=\"expand ? 'expand' : 'collapse'\">\r\n\r\n <igo-poi-button *ngIf=\"hasApi\" [color]=\"color\" [map]=\"map\"></igo-poi-button>\r\n\r\n <button\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.userButton.infoTitle' | translate\"\r\n matTooltipPosition=\"above\"\r\n [color]=\"color\"\r\n (click)=\"infoUser()\">\r\n <mat-icon svgIcon=\"information-outline\"></mat-icon>\r\n </button>\r\n\r\n <button\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.userButton.logout' |\u00A0translate\"\r\n matTooltipPosition=\"above\"\r\n [color]=\"color\"\r\n (click)=\"logout()\">\r\n <mat-icon svgIcon=\"power\"></mat-icon>\r\n </button>\r\n\r\n </div>\r\n\r\n <button\r\n mat-icon-button\r\n [color]=\"auth.authenticated ? color : 'warn'\"\r\n (click)=\"accountClick()\">\r\n <mat-icon svgIcon=\"account-box\"></mat-icon>\r\n </button>\r\n</div>\r\n", styles: [".igo-user-button-container button{background-color:#fff}.igo-user-button-container button:hover{background-color:#efefef}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-container>button{position:absolute;bottom:0}}.igo-user-button-more-container{float:left;height:40px}.igo-user-button-more-container>*{margin-right:2px;float:left}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-more-container{height:80px;width:150px;position:relative;left:24px}}button,:host ::ng-deep button .mat-button-ripple-round{border-radius:0}\n"] }]
3662
+ }], function () { return [{ type: i1$3.MatDialog }, { type: i3.ConfigService }, { type: i2.AuthService }]; }, { map: [{
3748
3663
  type: Input
3749
3664
  }], color: [{
3750
3665
  type: Input
@@ -3759,22 +3674,20 @@ class IgoContextMapButtonModule {
3759
3674
  }
3760
3675
  IgoContextMapButtonModule.ɵfac = function IgoContextMapButtonModule_Factory(t) { return new (t || IgoContextMapButtonModule)(); };
3761
3676
  IgoContextMapButtonModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextMapButtonModule });
3762
- IgoContextMapButtonModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [PoiService], imports: [[
3763
- CommonModule,
3764
- IgoLanguageModule,
3765
- IgoConfirmDialogModule,
3766
- IgoStopPropagationModule,
3767
- IgoAuthModule,
3768
- FormsModule,
3769
- MatIconModule,
3770
- MatButtonModule,
3771
- MatSelectModule,
3772
- MatOptionModule,
3773
- MatTooltipModule,
3774
- MatFormFieldModule,
3775
- MatDialogModule,
3776
- MatInputModule
3777
- ]] });
3677
+ IgoContextMapButtonModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [PoiService], imports: [CommonModule,
3678
+ IgoLanguageModule,
3679
+ IgoConfirmDialogModule,
3680
+ IgoStopPropagationModule,
3681
+ IgoAuthModule,
3682
+ FormsModule,
3683
+ MatIconModule,
3684
+ MatButtonModule,
3685
+ MatSelectModule,
3686
+ MatOptionModule,
3687
+ MatTooltipModule,
3688
+ MatFormFieldModule,
3689
+ MatDialogModule,
3690
+ MatInputModule] });
3778
3691
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoContextMapButtonModule, [{
3779
3692
  type: NgModule,
3780
3693
  args: [{
@@ -3839,32 +3752,30 @@ class IgoContextManagerModule {
3839
3752
  }
3840
3753
  IgoContextManagerModule.ɵfac = function IgoContextManagerModule_Factory(t) { return new (t || IgoContextManagerModule)(); };
3841
3754
  IgoContextManagerModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextManagerModule });
3842
- IgoContextManagerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
3843
- CommonModule,
3844
- FormsModule,
3845
- ReactiveFormsModule,
3846
- MatFormFieldModule,
3847
- MatInputModule,
3848
- MatIconModule,
3849
- MatButtonModule,
3850
- MatTooltipModule,
3851
- MatListModule,
3852
- MatCheckboxModule,
3853
- MatRadioModule,
3854
- MatDialogModule,
3855
- MatMenuModule,
3856
- MatOptionModule,
3857
- MatAutocompleteModule,
3858
- IgoAuthModule,
3859
- IgoListModule,
3860
- IgoKeyValueModule,
3861
- IgoCollapsibleModule,
3862
- IgoStopPropagationModule,
3863
- IgoLanguageModule,
3864
- IgoContextImportExportModule,
3865
- IgoContextMapButtonModule,
3866
- IgoActionbarModule
3867
- ]] });
3755
+ IgoContextManagerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
3756
+ FormsModule,
3757
+ ReactiveFormsModule,
3758
+ MatFormFieldModule,
3759
+ MatInputModule,
3760
+ MatIconModule,
3761
+ MatButtonModule,
3762
+ MatTooltipModule,
3763
+ MatListModule,
3764
+ MatCheckboxModule,
3765
+ MatRadioModule,
3766
+ MatDialogModule,
3767
+ MatMenuModule,
3768
+ MatOptionModule,
3769
+ MatAutocompleteModule,
3770
+ IgoAuthModule,
3771
+ IgoListModule,
3772
+ IgoKeyValueModule,
3773
+ IgoCollapsibleModule,
3774
+ IgoStopPropagationModule,
3775
+ IgoLanguageModule,
3776
+ IgoContextImportExportModule,
3777
+ IgoContextMapButtonModule,
3778
+ IgoActionbarModule] });
3868
3779
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoContextManagerModule, [{
3869
3780
  type: NgModule,
3870
3781
  args: [{
@@ -4053,7 +3964,7 @@ class ShareMapService {
4053
3964
  }
4054
3965
  makeLayersByService(layers, contextLayersID, typeService) {
4055
3966
  const addedLayersByService = [];
4056
- for (const layer of layers.filter(l => { var _a; return ((_a = l.dataSource.options) === null || _a === void 0 ? void 0 : _a.type) === typeService; })) {
3967
+ for (const layer of layers.filter(l => l.dataSource.options?.type === typeService)) {
4057
3968
  if (contextLayersID.indexOf(layer.id) === -1) {
4058
3969
  let linkUrl = encodeURIComponent(layer.dataSource.options.url);
4059
3970
  let addedLayer = '';
@@ -4156,230 +4067,50 @@ ShareMapService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ShareMap
4156
4067
  type: Optional
4157
4068
  }] }]; }, null); })();
4158
4069
 
4159
- function ShareMapApiComponent_span_10_Template(rf, ctx) { if (rf & 1) {
4160
- i0.ɵɵelementStart(0, "span", 11);
4070
+ function ShareMapUrlComponent_h4_13_Template(rf, ctx) { if (rf & 1) {
4071
+ i0.ɵɵelementStart(0, "h4");
4161
4072
  i0.ɵɵtext(1);
4073
+ i0.ɵɵpipe(2, "translate");
4162
4074
  i0.ɵɵelementEnd();
4163
4075
  } if (rf & 2) {
4164
- const ctx_r0 = i0.ɵɵnextContext();
4165
4076
  i0.ɵɵadvance(1);
4166
- i0.ɵɵtextInterpolate1("", ctx_r0.userId, "-");
4077
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.included"));
4167
4078
  } }
4168
- function ShareMapApiComponent_button_18_Template(rf, ctx) { if (rf & 1) {
4169
- i0.ɵɵelementStart(0, "button", 12);
4079
+ function ShareMapUrlComponent_li_16_Template(rf, ctx) { if (rf & 1) {
4080
+ i0.ɵɵelementStart(0, "li");
4170
4081
  i0.ɵɵtext(1);
4171
4082
  i0.ɵɵpipe(2, "translate");
4172
4083
  i0.ɵɵelementEnd();
4173
4084
  } if (rf & 2) {
4174
- const ctx_r1 = i0.ɵɵnextContext();
4175
- i0.ɵɵproperty("disabled", !ctx_r1.form.valid);
4176
4085
  i0.ɵɵadvance(1);
4177
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "igo.context.shareMap.button"), " ");
4086
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.context"));
4178
4087
  } }
4179
- function ShareMapApiComponent_button_19_Template(rf, ctx) { if (rf & 1) {
4180
- const _r5 = i0.ɵɵgetCurrentView();
4181
- i0.ɵɵelementStart(0, "button", 13);
4182
- i0.ɵɵlistener("click", function ShareMapApiComponent_button_19_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.updateContextShared(ctx_r4.form.value); });
4088
+ function ShareMapUrlComponent_li_18_Template(rf, ctx) { if (rf & 1) {
4089
+ i0.ɵɵelementStart(0, "li");
4183
4090
  i0.ɵɵtext(1);
4184
4091
  i0.ɵɵpipe(2, "translate");
4185
4092
  i0.ɵɵelementEnd();
4186
4093
  } if (rf & 2) {
4187
4094
  i0.ɵɵadvance(1);
4188
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.refreshBtn"), " ");
4095
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.center"));
4189
4096
  } }
4190
- function ShareMapApiComponent_div_20_Template(rf, ctx) { if (rf & 1) {
4191
- const _r8 = i0.ɵɵgetCurrentView();
4192
- i0.ɵɵelementStart(0, "div", 14);
4193
- i0.ɵɵelementStart(1, "mat-form-field");
4194
- i0.ɵɵelement(2, "textarea", 15, 16);
4195
- i0.ɵɵpipe(4, "translate");
4196
- i0.ɵɵelementStart(5, "button", 17);
4197
- i0.ɵɵlistener("click", function ShareMapApiComponent_div_20_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r8); const _r6 = i0.ɵɵreference(3); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.copyTextToClipboard(_r6); });
4198
- i0.ɵɵpipe(6, "translate");
4199
- i0.ɵɵelement(7, "mat-icon", 18);
4200
- i0.ɵɵelementEnd();
4097
+ function ShareMapUrlComponent_li_20_Template(rf, ctx) { if (rf & 1) {
4098
+ i0.ɵɵelementStart(0, "li");
4099
+ i0.ɵɵtext(1);
4100
+ i0.ɵɵpipe(2, "translate");
4201
4101
  i0.ɵɵelementEnd();
4202
- i0.ɵɵelement(8, "div");
4102
+ } if (rf & 2) {
4103
+ i0.ɵɵadvance(1);
4104
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.zoom"));
4105
+ } }
4106
+ function ShareMapUrlComponent_li_22_Template(rf, ctx) { if (rf & 1) {
4107
+ i0.ɵɵelementStart(0, "li");
4108
+ i0.ɵɵtext(1);
4109
+ i0.ɵɵpipe(2, "translate");
4203
4110
  i0.ɵɵelementEnd();
4204
4111
  } if (rf & 2) {
4205
- const ctx_r3 = i0.ɵɵnextContext();
4206
- i0.ɵɵadvance(2);
4207
- i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 3, "igo.context.shareMap.placeholderLink"))("value", ctx_r3.url);
4208
- i0.ɵɵadvance(3);
4209
- i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(6, 5, "igo.context.shareMap.copy"));
4210
- } }
4211
- class ShareMapApiComponent {
4212
- constructor(languageService, messageService, auth, shareMapService, formBuilder) {
4213
- this.languageService = languageService;
4214
- this.messageService = messageService;
4215
- this.auth = auth;
4216
- this.shareMapService = shareMapService;
4217
- this.formBuilder = formBuilder;
4218
- }
4219
- ngOnInit() {
4220
- this.auth.authenticate$.subscribe(auth => {
4221
- const decodeToken = this.auth.decodeToken();
4222
- this.userId = decodeToken.user ? decodeToken.user.id : undefined;
4223
- this.buildForm();
4224
- });
4225
- }
4226
- createUrl(values = {}) {
4227
- const inputs = Object.assign({}, values);
4228
- inputs.uri = this.userId ? `${this.userId}-${values.uri}` : values.uri;
4229
- this.url = this.shareMapService.getUrlWithApi(inputs);
4230
- this.shareMapService.createContextShared(this.map, inputs).subscribe(rep => {
4231
- this.idContextShared = rep.id;
4232
- const title = this.languageService.translate.instant('igo.context.contextManager.dialog.saveTitle');
4233
- const msg = this.languageService.translate.instant('igo.context.contextManager.dialog.saveMsg', {
4234
- value: inputs.title
4235
- });
4236
- this.messageService.success(msg, title);
4237
- }, err => {
4238
- err.error.title = this.languageService.translate.instant('igo.context.shareMap.errorTitle');
4239
- this.messageService.showError(err);
4240
- });
4241
- }
4242
- updateContextShared(values = {}) {
4243
- const inputs = Object.assign({}, values);
4244
- inputs.uri = this.userId ? `${this.userId}-${values.uri}` : values.uri;
4245
- this.shareMapService.updateContextShared(this.map, inputs, this.idContextShared).subscribe(rep => {
4246
- const title = this.languageService.translate.instant('igo.context.contextManager.dialog.saveTitle');
4247
- const msg = this.languageService.translate.instant('igo.context.contextManager.dialog.saveMsg', {
4248
- value: inputs.title
4249
- });
4250
- this.messageService.success(msg, title);
4251
- }, err => {
4252
- err.error.title = this.languageService.translate.instant('igo.context.shareMap.errorTitle');
4253
- this.messageService.showError(err);
4254
- });
4255
- }
4256
- copyTextToClipboard(textArea) {
4257
- const successful = Clipboard.copy(textArea);
4258
- if (successful) {
4259
- const translate = this.languageService.translate;
4260
- const title = translate.instant('igo.context.shareMap.dialog.copyTitle');
4261
- const msg = translate.instant('igo.context.shareMap.dialog.copyMsg');
4262
- this.messageService.success(msg, title);
4263
- }
4264
- }
4265
- buildForm() {
4266
- this.url = undefined;
4267
- const id = uuid();
4268
- let title = 'Partage ';
4269
- title += this.userId ? `(${this.userId}-${id})` : `(${id})`;
4270
- this.form = this.formBuilder.group({
4271
- title: [title],
4272
- uri: [id]
4273
- });
4274
- }
4275
- }
4276
- ShareMapApiComponent.ɵfac = function ShareMapApiComponent_Factory(t) { return new (t || ShareMapApiComponent)(i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(ShareMapService), i0.ɵɵdirectiveInject(i4.FormBuilder)); };
4277
- ShareMapApiComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapApiComponent, selectors: [["igo-share-map-api"]], inputs: { map: "map" }, decls: 21, vars: 18, consts: [[1, "igo-form", 3, "formGroup", "ngSubmit"], [1, "igo-input-container"], ["matInput", "", "required", "", "formControlName", "title", 3, "placeholder"], ["id", "uriInput", 1, "igo-input-container"], ["class", "prefix", 4, "ngIf"], [1, "fieldWrapper"], ["matInput", "", "required", "", "formControlName", "uri", 3, "readonly", "placeholder"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled", 4, "ngIf"], ["mat-raised-button", "", "type", "button", 3, "click", 4, "ngIf"], ["class", "igo-input-container linkToShare", 4, "ngIf"], [1, "prefix"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], ["mat-raised-button", "", "type", "button", 3, "click"], [1, "igo-input-container", "linkToShare"], ["matInput", "", "readonly", "", "rows", "3", 1, "textAreaWithButton", 3, "placeholder", "value"], ["textArea", ""], ["mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", "color", "primary", 3, "matTooltip", "click"], ["svgIcon", "content-copy"]], template: function ShareMapApiComponent_Template(rf, ctx) { if (rf & 1) {
4278
- i0.ɵɵelementStart(0, "form", 0);
4279
- i0.ɵɵlistener("ngSubmit", function ShareMapApiComponent_Template_form_ngSubmit_0_listener() { return ctx.createUrl(ctx.form.value); });
4280
- i0.ɵɵelementStart(1, "div", 1);
4281
- i0.ɵɵelementStart(2, "mat-form-field");
4282
- i0.ɵɵelement(3, "input", 2);
4283
- i0.ɵɵpipe(4, "translate");
4284
- i0.ɵɵelementStart(5, "mat-error");
4285
- i0.ɵɵtext(6);
4286
- i0.ɵɵpipe(7, "translate");
4287
- i0.ɵɵelementEnd();
4288
- i0.ɵɵelementEnd();
4289
- i0.ɵɵelementEnd();
4290
- i0.ɵɵelementStart(8, "div", 3);
4291
- i0.ɵɵelementStart(9, "mat-form-field");
4292
- i0.ɵɵtemplate(10, ShareMapApiComponent_span_10_Template, 2, 1, "span", 4);
4293
- i0.ɵɵelementStart(11, "span", 5);
4294
- i0.ɵɵelement(12, "input", 6);
4295
- i0.ɵɵpipe(13, "translate");
4296
- i0.ɵɵelementEnd();
4297
- i0.ɵɵelementStart(14, "mat-error");
4298
- i0.ɵɵtext(15);
4299
- i0.ɵɵpipe(16, "translate");
4300
- i0.ɵɵelementEnd();
4301
- i0.ɵɵelementEnd();
4302
- i0.ɵɵelementEnd();
4303
- i0.ɵɵelementStart(17, "div", 7);
4304
- i0.ɵɵtemplate(18, ShareMapApiComponent_button_18_Template, 3, 4, "button", 8);
4305
- i0.ɵɵtemplate(19, ShareMapApiComponent_button_19_Template, 3, 3, "button", 9);
4306
- i0.ɵɵelementEnd();
4307
- i0.ɵɵelementEnd();
4308
- i0.ɵɵtemplate(20, ShareMapApiComponent_div_20_Template, 9, 7, "div", 10);
4309
- } if (rf & 2) {
4310
- i0.ɵɵproperty("formGroup", ctx.form);
4311
- i0.ɵɵadvance(3);
4312
- i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 10, "igo.context.contextManager.form.title"));
4313
- i0.ɵɵadvance(3);
4314
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, "igo.context.contextManager.form.titleRequired"), " ");
4315
- i0.ɵɵadvance(4);
4316
- i0.ɵɵproperty("ngIf", ctx.userId);
4317
- i0.ɵɵadvance(2);
4318
- i0.ɵɵproperty("readonly", !ctx.userId)("placeholder", i0.ɵɵpipeBind1(13, 14, "igo.context.contextManager.form.uri"));
4319
- i0.ɵɵadvance(3);
4320
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 16, "igo.context.contextManager.form.uriRequired"), " ");
4321
- i0.ɵɵadvance(3);
4322
- i0.ɵɵproperty("ngIf", !ctx.url);
4323
- i0.ɵɵadvance(1);
4324
- i0.ɵɵproperty("ngIf", ctx.url);
4325
- i0.ɵɵadvance(1);
4326
- i0.ɵɵproperty("ngIf", ctx.url);
4327
- } }, directives: [i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, i3$1.MatFormField, i3$2.MatInput, i4.DefaultValueAccessor, i4.RequiredValidator, i4.NgControlStatus, i4.FormControlName, i3$1.MatError, i7.NgIf, i5.MatButton, i6$2.MatTooltip, i9.MatIcon], pipes: [i6$1.TranslatePipe], styles: ["@charset \"UTF-8\";mat-form-field[_ngcontent-%COMP%]{width:100%}#uriInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{display:block;overflow:hidden}#uriInput[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{float:left}.linkToShare\\a0[_ngcontent-%COMP%] {padding:25px 5px 5px}.linkToShare\\a0[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0[_ngcontent-%COMP%] textarea.textAreaWithButton[_ngcontent-%COMP%]{width:calc(100% - 60px)}.linkToShare\\a0[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{float:right;margin:-10px 0}.igo-form[_ngcontent-%COMP%]{padding:20px 5px 5px}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}"] });
4328
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapApiComponent, [{
4329
- type: Component,
4330
- args: [{
4331
- selector: 'igo-share-map-api',
4332
- templateUrl: './share-map-api.component.html',
4333
- styleUrls: ['./share-map-api.component.scss']
4334
- }]
4335
- }], function () { return [{ type: i3.LanguageService }, { type: i3.MessageService }, { type: i2.AuthService }, { type: ShareMapService }, { type: i4.FormBuilder }]; }, { map: [{
4336
- type: Input
4337
- }] }); })();
4338
-
4339
- function ShareMapUrlComponent_h4_13_Template(rf, ctx) { if (rf & 1) {
4340
- i0.ɵɵelementStart(0, "h4");
4341
- i0.ɵɵtext(1);
4342
- i0.ɵɵpipe(2, "translate");
4343
- i0.ɵɵelementEnd();
4344
- } if (rf & 2) {
4345
- i0.ɵɵadvance(1);
4346
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.included"));
4347
- } }
4348
- function ShareMapUrlComponent_li_16_Template(rf, ctx) { if (rf & 1) {
4349
- i0.ɵɵelementStart(0, "li");
4350
- i0.ɵɵtext(1);
4351
- i0.ɵɵpipe(2, "translate");
4352
- i0.ɵɵelementEnd();
4353
- } if (rf & 2) {
4354
- i0.ɵɵadvance(1);
4355
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.context"));
4356
- } }
4357
- function ShareMapUrlComponent_li_18_Template(rf, ctx) { if (rf & 1) {
4358
- i0.ɵɵelementStart(0, "li");
4359
- i0.ɵɵtext(1);
4360
- i0.ɵɵpipe(2, "translate");
4361
- i0.ɵɵelementEnd();
4362
- } if (rf & 2) {
4363
- i0.ɵɵadvance(1);
4364
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.center"));
4365
- } }
4366
- function ShareMapUrlComponent_li_20_Template(rf, ctx) { if (rf & 1) {
4367
- i0.ɵɵelementStart(0, "li");
4368
- i0.ɵɵtext(1);
4369
- i0.ɵɵpipe(2, "translate");
4370
- i0.ɵɵelementEnd();
4371
- } if (rf & 2) {
4372
- i0.ɵɵadvance(1);
4373
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.zoom"));
4374
- } }
4375
- function ShareMapUrlComponent_li_22_Template(rf, ctx) { if (rf & 1) {
4376
- i0.ɵɵelementStart(0, "li");
4377
- i0.ɵɵtext(1);
4378
- i0.ɵɵpipe(2, "translate");
4379
- i0.ɵɵelementEnd();
4380
- } if (rf & 2) {
4381
- i0.ɵɵadvance(1);
4382
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.addedLayers"));
4112
+ i0.ɵɵadvance(1);
4113
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.addedLayers"));
4383
4114
  } }
4384
4115
  function ShareMapUrlComponent_li_24_Template(rf, ctx) { if (rf & 1) {
4385
4116
  i0.ɵɵelementStart(0, "li");
@@ -4477,19 +4208,16 @@ class ShareMapUrlComponent {
4477
4208
  ShareMapUrlComponent.ɵfac = function ShareMapUrlComponent_Factory(t) { return new (t || ShareMapUrlComponent)(i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(ShareMapService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
4478
4209
  ShareMapUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapUrlComponent, selectors: [["igo-share-map-url"]], inputs: { map: "map" }, decls: 37, vars: 40, consts: [[1, "igo-input-container", "linkToShare"], ["matInput", "", "readonly", "", "rows", "3", 3, "placeholder", "value"], ["textArea", ""], [1, "igo-form-button-group"], ["mat-raised-button", "", 3, "click"], ["svgIcon", "content-copy"], [1, "mat-typography"], [4, "ngIf"]], template: function ShareMapUrlComponent_Template(rf, ctx) { if (rf & 1) {
4479
4210
  const _r12 = i0.ɵɵgetCurrentView();
4480
- i0.ɵɵelementStart(0, "div", 0);
4481
- i0.ɵɵelementStart(1, "mat-form-field");
4211
+ i0.ɵɵelementStart(0, "div", 0)(1, "mat-form-field");
4482
4212
  i0.ɵɵelement(2, "textarea", 1, 2);
4483
4213
  i0.ɵɵpipe(4, "translate");
4484
4214
  i0.ɵɵelementEnd();
4485
- i0.ɵɵelementStart(5, "div", 3);
4486
- i0.ɵɵelementStart(6, "button", 4);
4487
- i0.ɵɵlistener("click", function ShareMapUrlComponent_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r12); const _r0 = i0.ɵɵreference(3); return ctx.copyTextToClipboard(_r0); });
4215
+ i0.ɵɵelementStart(5, "div", 3)(6, "button", 4);
4216
+ i0.ɵɵlistener("click", function ShareMapUrlComponent_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r12); const _r0 = i0.ɵɵreference(3); return i0.ɵɵresetView(ctx.copyTextToClipboard(_r0)); });
4488
4217
  i0.ɵɵelement(7, "mat-icon", 5);
4489
4218
  i0.ɵɵtext(8);
4490
4219
  i0.ɵɵpipe(9, "translate");
4491
- i0.ɵɵelementEnd();
4492
- i0.ɵɵelementEnd();
4220
+ i0.ɵɵelementEnd()();
4493
4221
  i0.ɵɵelementStart(10, "div");
4494
4222
  i0.ɵɵelement(11, "br");
4495
4223
  i0.ɵɵelementStart(12, "section", 6);
@@ -4518,10 +4246,7 @@ ShareMapUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareM
4518
4246
  i0.ɵɵpipe(34, "translate");
4519
4247
  i0.ɵɵtemplate(35, ShareMapUrlComponent_li_35_Template, 3, 3, "li", 7);
4520
4248
  i0.ɵɵpipe(36, "translate");
4521
- i0.ɵɵelementEnd();
4522
- i0.ɵɵelementEnd();
4523
- i0.ɵɵelementEnd();
4524
- i0.ɵɵelementEnd();
4249
+ i0.ɵɵelementEnd()()()();
4525
4250
  } if (rf & 2) {
4526
4251
  i0.ɵɵadvance(2);
4527
4252
  i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 14, "igo.context.shareMap.placeholderLink"))("value", ctx.url);
@@ -4549,29 +4274,190 @@ ShareMapUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareM
4549
4274
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(34, 36, "igo.context.shareMap.filterOgc") !== "");
4550
4275
  i0.ɵɵadvance(2);
4551
4276
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(36, 38, "igo.context.shareMap.filterTime") !== "");
4552
- } }, directives: [i3$1.MatFormField, i3$2.MatInput, i5.MatButton, i9.MatIcon, i7.NgIf], pipes: [i6$1.TranslatePipe], styles: ["@charset \"UTF-8\";mat-form-field[_ngcontent-%COMP%]{width:100%}.linkToShare\\a0[_ngcontent-%COMP%] {padding:25px 5px 5px}.linkToShare\\a0[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0[_ngcontent-%COMP%] textarea.textAreaWithButton[_ngcontent-%COMP%]{width:calc(100% - 60px)}.linkToShare\\a0[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{float:right;margin:-10px 0}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}"] });
4277
+ } }, dependencies: [i5.NgIf, i4$1.MatIcon, i4.MatFormField, i5$1.MatInput, i7.MatButton, i6.TranslatePipe], styles: ["@charset \"UTF-8\";mat-form-field[_ngcontent-%COMP%]{width:100%}.linkToShare\\a0[_ngcontent-%COMP%] {padding:25px 5px 5px}.linkToShare\\a0[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0[_ngcontent-%COMP%] textarea.textAreaWithButton[_ngcontent-%COMP%]{width:calc(100% - 60px)}.linkToShare\\a0[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{float:right;margin:-10px 0}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}"] });
4553
4278
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapUrlComponent, [{
4554
4279
  type: Component,
4555
- args: [{
4556
- selector: 'igo-share-map-url',
4557
- templateUrl: './share-map-url.component.html',
4558
- styleUrls: ['./share-map-url.component.scss']
4559
- }]
4280
+ args: [{ selector: 'igo-share-map-url', template: "<div class=\"igo-input-container linkToShare\">\r\n <mat-form-field>\r\n <textarea #textArea matInput readonly rows=\"3\"\r\n [placeholder]=\"'igo.context.shareMap.placeholderLink' | translate\"\r\n [value]=\"url\"></textarea>\r\n </mat-form-field>\r\n\r\n <div class=\"igo-form-button-group\">\r\n <button\r\n mat-raised-button\r\n (click)=\"copyTextToClipboard(textArea)\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n {{ 'igo.context.shareMap.copy' | translate }}\r\n </button>\r\n </div>\r\n <div>\r\n <br/>\r\n <section class=\"mat-typography\">\r\n <h4 *ngIf=\"('igo.context.shareMap.included' | translate)!==''\">{{'igo.context.shareMap.included' | translate}}</h4>\r\n <ul>\r\n <li *ngIf=\"('igo.context.shareMap.context' | translate)!==''\">{{'igo.context.shareMap.context' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.center' | translate)!==''\">{{'igo.context.shareMap.center' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.zoom' | translate)!==''\">{{'igo.context.shareMap.zoom' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.addedLayers' | translate)!==''\">{{'igo.context.shareMap.addedLayers' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.visibleInvisible' | translate)!==''\">{{'igo.context.shareMap.visibleInvisible' | translate}}</li>\r\n </ul>\r\n\r\n <h4 *ngIf=\"('igo.context.shareMap.excluded' | translate)!==''\">{{'igo.context.shareMap.excluded' | translate}}</h4>\r\n <ul>\r\n <li *ngIf=\"('igo.context.shareMap.order' | translate)!==''\">{{'igo.context.shareMap.order' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.opacity' | translate)!==''\">{{'igo.context.shareMap.opacity' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.filterOgc' | translate)!==''\">{{'igo.context.shareMap.filterOgc' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.filterTime' | translate)!==''\">{{'igo.context.shareMap.filterTime' | translate}}</li>\r\n </ul>\r\n </section>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";mat-form-field{width:100%}.linkToShare\\a0 {padding:25px 5px 5px}.linkToShare\\a0 textarea{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0 textarea.textAreaWithButton{width:calc(100% - 60px)}.linkToShare\\a0 mat-form-field>button{float:right;margin:-10px 0}.igo-form-button-group{text-align:center;padding-top:10px}\n"] }]
4560
4281
  }], function () { return [{ type: i3.LanguageService }, { type: i3.MessageService }, { type: ShareMapService }, { type: i0.ChangeDetectorRef }]; }, { map: [{
4561
4282
  type: Input
4562
4283
  }] }); })();
4563
4284
 
4285
+ function ShareMapApiComponent_span_10_Template(rf, ctx) { if (rf & 1) {
4286
+ i0.ɵɵelementStart(0, "span", 11);
4287
+ i0.ɵɵtext(1);
4288
+ i0.ɵɵelementEnd();
4289
+ } if (rf & 2) {
4290
+ const ctx_r0 = i0.ɵɵnextContext();
4291
+ i0.ɵɵadvance(1);
4292
+ i0.ɵɵtextInterpolate1("", ctx_r0.userId, "-");
4293
+ } }
4294
+ function ShareMapApiComponent_button_18_Template(rf, ctx) { if (rf & 1) {
4295
+ i0.ɵɵelementStart(0, "button", 12);
4296
+ i0.ɵɵtext(1);
4297
+ i0.ɵɵpipe(2, "translate");
4298
+ i0.ɵɵelementEnd();
4299
+ } if (rf & 2) {
4300
+ const ctx_r1 = i0.ɵɵnextContext();
4301
+ i0.ɵɵproperty("disabled", !ctx_r1.form.valid);
4302
+ i0.ɵɵadvance(1);
4303
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "igo.context.shareMap.button"), " ");
4304
+ } }
4305
+ function ShareMapApiComponent_button_19_Template(rf, ctx) { if (rf & 1) {
4306
+ const _r5 = i0.ɵɵgetCurrentView();
4307
+ i0.ɵɵelementStart(0, "button", 13);
4308
+ i0.ɵɵlistener("click", function ShareMapApiComponent_button_19_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.updateContextShared(ctx_r4.form.value)); });
4309
+ i0.ɵɵtext(1);
4310
+ i0.ɵɵpipe(2, "translate");
4311
+ i0.ɵɵelementEnd();
4312
+ } if (rf & 2) {
4313
+ i0.ɵɵadvance(1);
4314
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.refreshBtn"), " ");
4315
+ } }
4316
+ function ShareMapApiComponent_div_20_Template(rf, ctx) { if (rf & 1) {
4317
+ const _r8 = i0.ɵɵgetCurrentView();
4318
+ i0.ɵɵelementStart(0, "div", 14)(1, "mat-form-field");
4319
+ i0.ɵɵelement(2, "textarea", 15, 16);
4320
+ i0.ɵɵpipe(4, "translate");
4321
+ i0.ɵɵelementStart(5, "button", 17);
4322
+ i0.ɵɵlistener("click", function ShareMapApiComponent_div_20_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r8); const _r6 = i0.ɵɵreference(3); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.copyTextToClipboard(_r6)); });
4323
+ i0.ɵɵpipe(6, "translate");
4324
+ i0.ɵɵelement(7, "mat-icon", 18);
4325
+ i0.ɵɵelementEnd()();
4326
+ i0.ɵɵelement(8, "div");
4327
+ i0.ɵɵelementEnd();
4328
+ } if (rf & 2) {
4329
+ const ctx_r3 = i0.ɵɵnextContext();
4330
+ i0.ɵɵadvance(2);
4331
+ i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 3, "igo.context.shareMap.placeholderLink"))("value", ctx_r3.url);
4332
+ i0.ɵɵadvance(3);
4333
+ i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(6, 5, "igo.context.shareMap.copy"));
4334
+ } }
4335
+ class ShareMapApiComponent {
4336
+ constructor(languageService, messageService, auth, shareMapService, formBuilder) {
4337
+ this.languageService = languageService;
4338
+ this.messageService = messageService;
4339
+ this.auth = auth;
4340
+ this.shareMapService = shareMapService;
4341
+ this.formBuilder = formBuilder;
4342
+ }
4343
+ ngOnInit() {
4344
+ this.auth.authenticate$.subscribe(auth => {
4345
+ const decodeToken = this.auth.decodeToken();
4346
+ this.userId = decodeToken.user ? decodeToken.user.id : undefined;
4347
+ this.buildForm();
4348
+ });
4349
+ }
4350
+ createUrl(values = {}) {
4351
+ const inputs = Object.assign({}, values);
4352
+ inputs.uri = this.userId ? `${this.userId}-${values.uri}` : values.uri;
4353
+ this.url = this.shareMapService.getUrlWithApi(inputs);
4354
+ this.shareMapService.createContextShared(this.map, inputs).subscribe(rep => {
4355
+ this.idContextShared = rep.id;
4356
+ const title = this.languageService.translate.instant('igo.context.contextManager.dialog.saveTitle');
4357
+ const msg = this.languageService.translate.instant('igo.context.contextManager.dialog.saveMsg', {
4358
+ value: inputs.title
4359
+ });
4360
+ this.messageService.success(msg, title);
4361
+ }, err => {
4362
+ err.error.title = this.languageService.translate.instant('igo.context.shareMap.errorTitle');
4363
+ this.messageService.showError(err);
4364
+ });
4365
+ }
4366
+ updateContextShared(values = {}) {
4367
+ const inputs = Object.assign({}, values);
4368
+ inputs.uri = this.userId ? `${this.userId}-${values.uri}` : values.uri;
4369
+ this.shareMapService.updateContextShared(this.map, inputs, this.idContextShared).subscribe(rep => {
4370
+ const title = this.languageService.translate.instant('igo.context.contextManager.dialog.saveTitle');
4371
+ const msg = this.languageService.translate.instant('igo.context.contextManager.dialog.saveMsg', {
4372
+ value: inputs.title
4373
+ });
4374
+ this.messageService.success(msg, title);
4375
+ }, err => {
4376
+ err.error.title = this.languageService.translate.instant('igo.context.shareMap.errorTitle');
4377
+ this.messageService.showError(err);
4378
+ });
4379
+ }
4380
+ copyTextToClipboard(textArea) {
4381
+ const successful = Clipboard.copy(textArea);
4382
+ if (successful) {
4383
+ const translate = this.languageService.translate;
4384
+ const title = translate.instant('igo.context.shareMap.dialog.copyTitle');
4385
+ const msg = translate.instant('igo.context.shareMap.dialog.copyMsg');
4386
+ this.messageService.success(msg, title);
4387
+ }
4388
+ }
4389
+ buildForm() {
4390
+ this.url = undefined;
4391
+ const id = uuid();
4392
+ let title = 'Partage ';
4393
+ title += this.userId ? `(${this.userId}-${id})` : `(${id})`;
4394
+ this.form = this.formBuilder.group({
4395
+ title: [title],
4396
+ uri: [id]
4397
+ });
4398
+ }
4399
+ }
4400
+ ShareMapApiComponent.ɵfac = function ShareMapApiComponent_Factory(t) { return new (t || ShareMapApiComponent)(i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(ShareMapService), i0.ɵɵdirectiveInject(i1$1.UntypedFormBuilder)); };
4401
+ ShareMapApiComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapApiComponent, selectors: [["igo-share-map-api"]], inputs: { map: "map" }, decls: 21, vars: 18, consts: [[1, "igo-form", 3, "formGroup", "ngSubmit"], [1, "igo-input-container"], ["matInput", "", "required", "", "formControlName", "title", 3, "placeholder"], ["id", "uriInput", 1, "igo-input-container"], ["class", "prefix", 4, "ngIf"], [1, "fieldWrapper"], ["matInput", "", "required", "", "formControlName", "uri", 3, "readonly", "placeholder"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled", 4, "ngIf"], ["mat-raised-button", "", "type", "button", 3, "click", 4, "ngIf"], ["class", "igo-input-container linkToShare", 4, "ngIf"], [1, "prefix"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], ["mat-raised-button", "", "type", "button", 3, "click"], [1, "igo-input-container", "linkToShare"], ["matInput", "", "readonly", "", "rows", "3", 1, "textAreaWithButton", 3, "placeholder", "value"], ["textArea", ""], ["mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", "color", "primary", 3, "matTooltip", "click"], ["svgIcon", "content-copy"]], template: function ShareMapApiComponent_Template(rf, ctx) { if (rf & 1) {
4402
+ i0.ɵɵelementStart(0, "form", 0);
4403
+ i0.ɵɵlistener("ngSubmit", function ShareMapApiComponent_Template_form_ngSubmit_0_listener() { return ctx.createUrl(ctx.form.value); });
4404
+ i0.ɵɵelementStart(1, "div", 1)(2, "mat-form-field");
4405
+ i0.ɵɵelement(3, "input", 2);
4406
+ i0.ɵɵpipe(4, "translate");
4407
+ i0.ɵɵelementStart(5, "mat-error");
4408
+ i0.ɵɵtext(6);
4409
+ i0.ɵɵpipe(7, "translate");
4410
+ i0.ɵɵelementEnd()()();
4411
+ i0.ɵɵelementStart(8, "div", 3)(9, "mat-form-field");
4412
+ i0.ɵɵtemplate(10, ShareMapApiComponent_span_10_Template, 2, 1, "span", 4);
4413
+ i0.ɵɵelementStart(11, "span", 5);
4414
+ i0.ɵɵelement(12, "input", 6);
4415
+ i0.ɵɵpipe(13, "translate");
4416
+ i0.ɵɵelementEnd();
4417
+ i0.ɵɵelementStart(14, "mat-error");
4418
+ i0.ɵɵtext(15);
4419
+ i0.ɵɵpipe(16, "translate");
4420
+ i0.ɵɵelementEnd()()();
4421
+ i0.ɵɵelementStart(17, "div", 7);
4422
+ i0.ɵɵtemplate(18, ShareMapApiComponent_button_18_Template, 3, 4, "button", 8);
4423
+ i0.ɵɵtemplate(19, ShareMapApiComponent_button_19_Template, 3, 3, "button", 9);
4424
+ i0.ɵɵelementEnd()();
4425
+ i0.ɵɵtemplate(20, ShareMapApiComponent_div_20_Template, 9, 7, "div", 10);
4426
+ } if (rf & 2) {
4427
+ i0.ɵɵproperty("formGroup", ctx.form);
4428
+ i0.ɵɵadvance(3);
4429
+ i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 10, "igo.context.contextManager.form.title"));
4430
+ i0.ɵɵadvance(3);
4431
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, "igo.context.contextManager.form.titleRequired"), " ");
4432
+ i0.ɵɵadvance(4);
4433
+ i0.ɵɵproperty("ngIf", ctx.userId);
4434
+ i0.ɵɵadvance(2);
4435
+ i0.ɵɵproperty("readonly", !ctx.userId)("placeholder", i0.ɵɵpipeBind1(13, 14, "igo.context.contextManager.form.uri"));
4436
+ i0.ɵɵadvance(3);
4437
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 16, "igo.context.contextManager.form.uriRequired"), " ");
4438
+ i0.ɵɵadvance(3);
4439
+ i0.ɵɵproperty("ngIf", !ctx.url);
4440
+ i0.ɵɵadvance(1);
4441
+ i0.ɵɵproperty("ngIf", ctx.url);
4442
+ i0.ɵɵadvance(1);
4443
+ i0.ɵɵproperty("ngIf", ctx.url);
4444
+ } }, dependencies: [i5.NgIf, i1$1.ɵNgNoValidate, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.RequiredValidator, i1$1.FormGroupDirective, i1$1.FormControlName, i4$1.MatIcon, i6$1.MatTooltip, i4.MatError, i4.MatFormField, i5$1.MatInput, i7.MatButton, i6.TranslatePipe], styles: ["@charset \"UTF-8\";mat-form-field[_ngcontent-%COMP%]{width:100%}#uriInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{display:block;overflow:hidden}#uriInput[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{float:left}.linkToShare\\a0[_ngcontent-%COMP%] {padding:25px 5px 5px}.linkToShare\\a0[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0[_ngcontent-%COMP%] textarea.textAreaWithButton[_ngcontent-%COMP%]{width:calc(100% - 60px)}.linkToShare\\a0[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{float:right;margin:-10px 0}.igo-form[_ngcontent-%COMP%]{padding:20px 5px 5px}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}"] });
4445
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapApiComponent, [{
4446
+ type: Component,
4447
+ args: [{ selector: 'igo-share-map-api', template: "<form class=\"igo-form\" [formGroup]=\"form\"\r\n (ngSubmit)=\"createUrl(form.value)\">\r\n\r\n <div class=\"igo-input-container\">\r\n <mat-form-field>\r\n <input matInput required\r\n [placeholder]=\"'igo.context.contextManager.form.title' | translate\"\r\n formControlName=\"title\">\r\n <mat-error>\r\n {{ 'igo.context.contextManager.form.titleRequired' | translate }}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div id=\"uriInput\" class=\"igo-input-container\">\r\n <mat-form-field>\r\n <span *ngIf=\"userId\" class=\"prefix\">{{userId}}-</span>\r\n <span class=\"fieldWrapper\">\r\n <input matInput required\r\n [readonly]=\"!userId\"\r\n [placeholder]=\"'igo.context.contextManager.form.uri' | translate\"\r\n formControlName=\"uri\">\r\n </span>\r\n <mat-error>\r\n {{ 'igo.context.contextManager.form.uriRequired' | translate }}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"igo-form-button-group\">\r\n <button *ngIf=\"!url\"\r\n mat-raised-button\r\n type=\"submit\"\r\n [disabled]=\"!form.valid\">\r\n {{ 'igo.context.shareMap.button' | translate }}\r\n </button>\r\n <button *ngIf=\"url\"\r\n mat-raised-button\r\n type=\"button\"\r\n (click)=\"updateContextShared(form.value)\">\r\n {{ 'igo.context.shareMap.refreshBtn' | translate }}\r\n </button>\r\n </div>\r\n</form>\r\n\r\n<div *ngIf=\"url\" class=\"igo-input-container linkToShare\">\r\n <mat-form-field>\r\n <textarea #textArea matInput readonly rows=\"3\"\r\n class=\"textAreaWithButton\"\r\n [placeholder]=\"'igo.context.shareMap.placeholderLink' | translate\"\r\n [value]=\"url\"></textarea>\r\n <button\r\n mat-icon-button\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.context.shareMap.copy' | translate\"\r\n color=\"primary\"\r\n (click)=\"copyTextToClipboard(textArea)\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n </button>\r\n </mat-form-field>\r\n<div>\r\n", styles: ["@charset \"UTF-8\";mat-form-field{width:100%}#uriInput .fieldWrapper{display:block;overflow:hidden}#uriInput .prefix{float:left}.linkToShare\\a0 {padding:25px 5px 5px}.linkToShare\\a0 textarea{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0 textarea.textAreaWithButton{width:calc(100% - 60px)}.linkToShare\\a0 mat-form-field>button{float:right;margin:-10px 0}.igo-form{padding:20px 5px 5px}.igo-form-button-group{text-align:center;padding-top:10px}\n"] }]
4448
+ }], function () { return [{ type: i3.LanguageService }, { type: i3.MessageService }, { type: i2.AuthService }, { type: ShareMapService }, { type: i1$1.UntypedFormBuilder }]; }, { map: [{
4449
+ type: Input
4450
+ }] }); })();
4451
+
4564
4452
  function ShareMapComponent_mat_tab_group_0_Template(rf, ctx) { if (rf & 1) {
4565
- i0.ɵɵelementStart(0, "mat-tab-group");
4566
- i0.ɵɵelementStart(1, "mat-tab", 2);
4453
+ i0.ɵɵelementStart(0, "mat-tab-group")(1, "mat-tab", 2);
4567
4454
  i0.ɵɵpipe(2, "translate");
4568
4455
  i0.ɵɵelement(3, "igo-share-map-api", 3);
4569
4456
  i0.ɵɵelementEnd();
4570
4457
  i0.ɵɵelementStart(4, "mat-tab", 2);
4571
4458
  i0.ɵɵpipe(5, "translate");
4572
4459
  i0.ɵɵelement(6, "igo-share-map-url", 3);
4573
- i0.ɵɵelementEnd();
4574
- i0.ɵɵelementEnd();
4460
+ i0.ɵɵelementEnd()();
4575
4461
  } if (rf & 2) {
4576
4462
  const ctx_r0 = i0.ɵɵnextContext();
4577
4463
  i0.ɵɵadvance(1);
@@ -4604,14 +4490,10 @@ ShareMapComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapC
4604
4490
  i0.ɵɵproperty("ngIf", ctx.hasApi);
4605
4491
  i0.ɵɵadvance(1);
4606
4492
  i0.ɵɵproperty("ngIf", !ctx.hasApi);
4607
- } }, directives: [i7.NgIf, i3$4.MatTabGroup, i3$4.MatTab, ShareMapApiComponent, ShareMapUrlComponent], pipes: [i6$1.TranslatePipe], styles: [""] });
4493
+ } }, dependencies: [i5.NgIf, i3$1.MatTabGroup, i3$1.MatTab, ShareMapUrlComponent, ShareMapApiComponent, i6.TranslatePipe] });
4608
4494
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapComponent, [{
4609
4495
  type: Component,
4610
- args: [{
4611
- selector: 'igo-share-map',
4612
- templateUrl: './share-map.component.html',
4613
- styleUrls: ['./share-map.component.scss']
4614
- }]
4496
+ args: [{ selector: 'igo-share-map', template: "<mat-tab-group *ngIf=\"hasApi\" >\r\n <mat-tab [label]=\"'igo.context.shareMap.shareWithApi' | translate\">\r\n <igo-share-map-api [map]=\"map\"></igo-share-map-api>\r\n </mat-tab>\r\n <mat-tab [label]=\"'igo.context.shareMap.shareWithUrl' | translate\">\r\n <igo-share-map-url [map]=\"map\"></igo-share-map-url>\r\n </mat-tab>\r\n</mat-tab-group>\r\n\r\n<igo-share-map-url *ngIf=\"!hasApi\" [map]=\"map\"></igo-share-map-url>\r\n" }]
4615
4497
  }], function () { return [{ type: i3.ConfigService }]; }, { map: [{
4616
4498
  type: Input
4617
4499
  }] }); })();
@@ -4625,18 +4507,16 @@ class IgoShareMapModule {
4625
4507
  }
4626
4508
  IgoShareMapModule.ɵfac = function IgoShareMapModule_Factory(t) { return new (t || IgoShareMapModule)(); };
4627
4509
  IgoShareMapModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoShareMapModule });
4628
- IgoShareMapModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
4629
- CommonModule,
4630
- FormsModule,
4631
- ReactiveFormsModule,
4632
- MatIconModule,
4633
- MatTooltipModule,
4634
- MatTabsModule,
4635
- MatFormFieldModule,
4636
- MatInputModule,
4637
- MatButtonModule,
4638
- IgoLanguageModule
4639
- ]] });
4510
+ IgoShareMapModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
4511
+ FormsModule,
4512
+ ReactiveFormsModule,
4513
+ MatIconModule,
4514
+ MatTooltipModule,
4515
+ MatTabsModule,
4516
+ MatFormFieldModule,
4517
+ MatInputModule,
4518
+ MatButtonModule,
4519
+ IgoLanguageModule] });
4640
4520
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoShareMapModule, [{
4641
4521
  type: NgModule,
4642
4522
  args: [{
@@ -4686,7 +4566,7 @@ function SidenavComponent_button_9_Template(rf, ctx) { if (rf & 1) {
4686
4566
  function SidenavComponent_igo_panel_11_button_3_Template(rf, ctx) { if (rf & 1) {
4687
4567
  const _r8 = i0.ɵɵgetCurrentView();
4688
4568
  i0.ɵɵelementStart(0, "button", 19);
4689
- i0.ɵɵlistener("click", function SidenavComponent_igo_panel_11_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.zoomToFeatureExtent(); });
4569
+ i0.ɵɵlistener("click", function SidenavComponent_igo_panel_11_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.zoomToFeatureExtent()); });
4690
4570
  i0.ɵɵelement(1, "mat-icon", 20);
4691
4571
  i0.ɵɵelementEnd();
4692
4572
  } }
@@ -4699,9 +4579,8 @@ function SidenavComponent_igo_panel_11_igo_feature_details_4_Template(rf, ctx) {
4699
4579
  const _c0 = function () { return ["collapsed", "initial"]; };
4700
4580
  function SidenavComponent_igo_panel_11_Template(rf, ctx) { if (rf & 1) {
4701
4581
  const _r10 = i0.ɵɵgetCurrentView();
4702
- i0.ɵɵelementStart(0, "igo-panel", 6);
4703
- i0.ɵɵelementStart(1, "button", 15);
4704
- i0.ɵɵlistener("click", function SidenavComponent_igo_panel_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.toggleTopPanel(); });
4582
+ i0.ɵɵelementStart(0, "igo-panel", 6)(1, "button", 15);
4583
+ i0.ɵɵlistener("click", function SidenavComponent_igo_panel_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.toggleTopPanel()); });
4705
4584
  i0.ɵɵelement(2, "mat-icon", 16);
4706
4585
  i0.ɵɵelementEnd();
4707
4586
  i0.ɵɵtemplate(3, SidenavComponent_igo_panel_11_button_3_Template, 2, 0, "button", 17);
@@ -4784,24 +4663,16 @@ class SidenavComponent {
4784
4663
  }
4785
4664
  }
4786
4665
  }
4787
- SidenavComponent.ɵfac = function SidenavComponent_Factory(t) { return new (t || SidenavComponent)(i0.ɵɵdirectiveInject(i1$3.Title)); };
4666
+ SidenavComponent.ɵfac = function SidenavComponent_Factory(t) { return new (t || SidenavComponent)(i0.ɵɵdirectiveInject(i1$4.Title)); };
4788
4667
  SidenavComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidenavComponent, selectors: [["igo-sidenav"]], inputs: { map: "map", opened: "opened", feature: "feature", tool: "tool", media: "media", title: "title" }, decls: 12, vars: 8, consts: [["igoSidenavShim", "", "mode", "side", 3, "opened"], ["sidenav", ""], [1, "igo-sidenav-content"], ["initial", "50%", "initialMobile", "100%", "expanded", "calc(100% - 58px)", 3, "state"], ["topPanel", ""], [1, "igo-content"], [3, "title"], ["mat-icon-button", "", "panelLeftButton", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip", 4, "ngIf"], ["mat-icon-button", "", "panelRightButton", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip", 4, "ngIf"], ["igoFlexibleFill", "", 1, "igo-content"], [3, "title", 4, "ngIf"], ["mat-icon-button", "", "panelLeftButton", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip"], ["svgIcon", "arrow-back"], ["mat-icon-button", "", "panelRightButton", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip"], ["svgIcon", "menu"], ["mat-icon-button", "", "panelLeftButton", "", 1, "igo-icon-button", 3, "click"], [3, "svgIcon"], ["mat-icon-button", "", "panelRightButton", "", "class", "igo-icon-button", 3, "click", 4, "ngIf"], [3, "feature", 4, "ngIf"], ["mat-icon-button", "", "panelRightButton", "", 1, "igo-icon-button", 3, "click"], ["svgIcon", "zoom-in"], [3, "feature"]], template: function SidenavComponent_Template(rf, ctx) { if (rf & 1) {
4789
- i0.ɵɵelementStart(0, "mat-sidenav", 0, 1);
4790
- i0.ɵɵelementStart(2, "div", 2);
4791
- i0.ɵɵelementStart(3, "igo-flexible", 3, 4);
4792
- i0.ɵɵelementStart(5, "div", 5);
4793
- i0.ɵɵelementStart(6, "igo-panel", 6);
4668
+ i0.ɵɵelementStart(0, "mat-sidenav", 0, 1)(2, "div", 2)(3, "igo-flexible", 3, 4)(5, "div", 5)(6, "igo-panel", 6);
4794
4669
  i0.ɵɵpipe(7, "translate");
4795
4670
  i0.ɵɵtemplate(8, SidenavComponent_button_8_Template, 3, 3, "button", 7);
4796
4671
  i0.ɵɵtemplate(9, SidenavComponent_button_9_Template, 3, 3, "button", 8);
4797
- i0.ɵɵelementEnd();
4798
- i0.ɵɵelementEnd();
4672
+ i0.ɵɵelementEnd()();
4799
4673
  i0.ɵɵelementStart(10, "div", 9);
4800
4674
  i0.ɵɵtemplate(11, SidenavComponent_igo_panel_11_Template, 5, 6, "igo-panel", 10);
4801
- i0.ɵɵelementEnd();
4802
- i0.ɵɵelementEnd();
4803
- i0.ɵɵelementEnd();
4804
- i0.ɵɵelementEnd();
4675
+ i0.ɵɵelementEnd()()()();
4805
4676
  } if (rf & 2) {
4806
4677
  i0.ɵɵproperty("opened", ctx.opened);
4807
4678
  i0.ɵɵadvance(3);
@@ -4814,15 +4685,11 @@ SidenavComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidenavCom
4814
4685
  i0.ɵɵproperty("ngIf", ctx.tool);
4815
4686
  i0.ɵɵadvance(2);
4816
4687
  i0.ɵɵproperty("ngIf", ctx.feature && ctx.media !== "mobile");
4817
- } }, directives: [i2$1.MatSidenav, i5$1.FlexibleComponent, i5$1.PanelComponent, i7.NgIf, i5.MatButton, i6$2.MatTooltip, i9.MatIcon, i1$1.FeatureDetailsComponent], pipes: [i6$1.TranslatePipe], styles: ["[_nghost-%COMP%] .igo-flexible-fill .igo-container, .igo-sidenav-content[_ngcontent-%COMP%] .igo-flexible-fill[_ngcontent-%COMP%] .igo-container[_ngcontent-%COMP%]{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}[_nghost-%COMP%] .igo-flexible-fill .igo-container, .igo-sidenav-content[_ngcontent-%COMP%] .igo-flexible-fill[_ngcontent-%COMP%] .igo-container[_ngcontent-%COMP%]{border-top-width:1px;border-top-style:solid;border-top-color:#0003}mat-sidenav[_ngcontent-%COMP%]{-o-box-shadow:2px 0px 2px 0px #dddddd;box-shadow:2px 0 2px #ddd}[_nghost-%COMP%]{background-color:#fff}[_nghost-%COMP%] mat-sidenav{z-index:3!important}mat-sidenav[_ngcontent-%COMP%]{width:400px}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){mat-sidenav[_ngcontent-%COMP%]{width:calc(100% - 40px - 5px)}}.igo-sidenav-content[_ngcontent-%COMP%]{margin-top:50px;height:calc(100% - 50px)}igo-feature-details[_ngcontent-%COMP%] table{width:100%}"] });
4688
+ } }, dependencies: [i5.NgIf, i4$1.MatIcon, i7.MatButton, i5$2.MatSidenav, i6$1.MatTooltip, i14.PanelComponent, i14.FlexibleComponent, i1$2.FeatureDetailsComponent, i6.TranslatePipe], styles: ["[_nghost-%COMP%] .igo-flexible-fill .igo-container, .igo-sidenav-content[_ngcontent-%COMP%] .igo-flexible-fill[_ngcontent-%COMP%] .igo-container[_ngcontent-%COMP%]{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}[_nghost-%COMP%] .igo-flexible-fill .igo-container, .igo-sidenav-content[_ngcontent-%COMP%] .igo-flexible-fill[_ngcontent-%COMP%] .igo-container[_ngcontent-%COMP%]{border-top-width:1px;border-top-style:solid;border-top-color:#0003}mat-sidenav[_ngcontent-%COMP%]{-o-box-shadow:2px 0px 2px 0px #dddddd;box-shadow:2px 0 2px #ddd}[_nghost-%COMP%]{background-color:#fff}[_nghost-%COMP%] mat-sidenav{z-index:3!important}mat-sidenav[_ngcontent-%COMP%]{width:400px}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){mat-sidenav[_ngcontent-%COMP%]{width:calc(100% - 45px)}}.igo-sidenav-content[_ngcontent-%COMP%]{margin-top:50px;height:calc(100% - 50px)}igo-feature-details[_ngcontent-%COMP%] table{width:100%}"] });
4818
4689
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavComponent, [{
4819
4690
  type: Component,
4820
- args: [{
4821
- selector: 'igo-sidenav',
4822
- templateUrl: './sidenav.component.html',
4823
- styleUrls: ['./sidenav.component.scss']
4824
- }]
4825
- }], function () { return [{ type: i1$3.Title }]; }, { map: [{
4691
+ args: [{ selector: 'igo-sidenav', template: "<mat-sidenav\r\n #sidenav\r\n igoSidenavShim\r\n mode=\"side\"\r\n [opened]=\"opened\">\r\n\r\n <div class=\"igo-sidenav-content\">\r\n\r\n <igo-flexible\r\n #topPanel\r\n initial=\"50%\" initialMobile=\"100%\"\r\n expanded=\"calc(100% - 58px)\"\r\n [state]=\"topPanelState\">\r\n\r\n <div class=\"igo-content\">\r\n <igo-panel [title]=\"tool ? (tool.title | translate) : title\">\r\n <button\r\n mat-icon-button\r\n panelLeftButton\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.context.sidenav.goBack' | translate\"\r\n *ngIf=\"tool\">\r\n <mat-icon svgIcon=\"arrow-back\"></mat-icon>\r\n </button>\r\n\r\n <button\r\n mat-icon-button\r\n panelRightButton\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.context.sidenav.mainMenu' | translate\"\r\n *ngIf=\"tool\">\r\n <mat-icon svgIcon=\"menu\"></mat-icon>\r\n </button>\r\n\r\n </igo-panel>\r\n </div>\r\n\r\n <div igoFlexibleFill class=\"igo-content\">\r\n <igo-panel\r\n [title]=\"featureTitle\"\r\n *ngIf=\"feature && media !== 'mobile'\">\r\n\r\n <button\r\n mat-icon-button\r\n panelLeftButton\r\n class=\"igo-icon-button\"\r\n (click)=\"toggleTopPanel()\">\r\n <mat-icon [svgIcon]=\"['collapsed', 'initial'].indexOf(topPanel.state) >= 0 ? 'arrow_downward' : 'arrow_upward'\"></mat-icon>\r\n </button>\r\n\r\n <button\r\n mat-icon-button\r\n panelRightButton\r\n class=\"igo-icon-button\"\r\n (click)=\"zoomToFeatureExtent()\"\r\n *ngIf=\"feature.geometry\">\r\n <mat-icon svgIcon=\"zoom-in\"></mat-icon>\r\n </button>\r\n\r\n <igo-feature-details\r\n [feature]=\"feature\"\r\n *ngIf=\"['collapsed', 'initial'].indexOf(topPanel.state) >= 0\">\r\n </igo-feature-details>\r\n </igo-panel>\r\n </div>\r\n\r\n </igo-flexible>\r\n\r\n </div>\r\n</mat-sidenav>\r\n", styles: [":host ::ng-deep .igo-flexible-fill .igo-container,.igo-sidenav-content .igo-flexible-fill .igo-container{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}:host ::ng-deep .igo-flexible-fill .igo-container,.igo-sidenav-content .igo-flexible-fill .igo-container{border-top-width:1px;border-top-style:solid;border-top-color:#0003}mat-sidenav{-o-box-shadow:2px 0px 2px 0px #dddddd;box-shadow:2px 0 2px #ddd}:host{background-color:#fff}:host ::ng-deep mat-sidenav{z-index:3!important}mat-sidenav{width:400px}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){mat-sidenav{width:calc(100% - 45px)}}.igo-sidenav-content{margin-top:50px;height:calc(100% - 50px)}igo-feature-details ::ng-deep table{width:100%}\n"] }]
4692
+ }], function () { return [{ type: i1$4.Title }]; }, { map: [{
4826
4693
  type: Input
4827
4694
  }], opened: [{
4828
4695
  type: Input
@@ -4845,18 +4712,16 @@ class IgoSidenavModule {
4845
4712
  }
4846
4713
  IgoSidenavModule.ɵfac = function IgoSidenavModule_Factory(t) { return new (t || IgoSidenavModule)(); };
4847
4714
  IgoSidenavModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoSidenavModule });
4848
- IgoSidenavModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
4849
- CommonModule,
4850
- MatIconModule,
4851
- MatButtonModule,
4852
- MatSidenavModule,
4853
- MatTooltipModule,
4854
- IgoLanguageModule,
4855
- IgoPanelModule,
4856
- IgoFlexibleModule,
4857
- IgoFeatureModule,
4858
- IgoContextManagerModule
4859
- ]] });
4715
+ IgoSidenavModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
4716
+ MatIconModule,
4717
+ MatButtonModule,
4718
+ MatSidenavModule,
4719
+ MatTooltipModule,
4720
+ IgoLanguageModule,
4721
+ IgoPanelModule,
4722
+ IgoFlexibleModule,
4723
+ IgoFeatureModule,
4724
+ IgoContextManagerModule] });
4860
4725
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoSidenavModule, [{
4861
4726
  type: NgModule,
4862
4727
  args: [{
@@ -4897,7 +4762,7 @@ class IgoContextModule {
4897
4762
  }
4898
4763
  IgoContextModule.ɵfac = function IgoContextModule_Factory(t) { return new (t || IgoContextModule)(); };
4899
4764
  IgoContextModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextModule });
4900
- IgoContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[MatInputModule, MatFormFieldModule, MatMenuModule], IgoContextImportExportModule,
4765
+ IgoContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatInputModule, MatFormFieldModule, MatMenuModule, IgoContextImportExportModule,
4901
4766
  IgoContextManagerModule,
4902
4767
  IgoContextMapButtonModule,
4903
4768
  IgoShareMapModule,
@@ -4931,4 +4796,4 @@ IgoContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[MatInp
4931
4796
  */
4932
4797
 
4933
4798
  export { BookmarkButtonComponent, BookmarkDialogComponent, ContextEditBindingDirective, ContextEditComponent, ContextExportService, ContextFormComponent, ContextImportExportComponent, ContextImportService, ContextItemComponent, ContextListBindingDirective, ContextListComponent, ContextPermissionsBindingDirective, ContextPermissionsComponent, ContextService, ExportError, ExportInvalidFileError, ExportNothingToExportError, IgoContextImportExportModule, IgoContextManagerModule, IgoContextMapButtonModule, IgoContextModule, IgoShareMapModule, IgoSidenavModule, ImportError, ImportInvalidFileError, ImportNothingToImportError, ImportSRSError, ImportSizeError, ImportUnreadableFileError, LayerContextDirective, MapContextDirective, PoiButtonComponent, PoiDialogComponent, PoiService, Scope, ShareMapApiComponent, ShareMapComponent, ShareMapService, ShareMapUrlComponent, SidenavComponent, TypePermission, UserButtonComponent, UserDialogComponent, addContextToContextList, addImportedFeaturesStyledToMap, addImportedFeaturesToMap, computeLayerTitleFromFile, getFileExtension, handleFileExportError, handleFileExportSuccess, handleFileImportError, handleFileImportSuccess, handleInvalidFileImportError, handleNothingToExportError, handleNothingToImportError, handleSizeFileImportError, handleUnreadbleFileImportError };
4934
- //# sourceMappingURL=igo2-context.js.map
4799
+ //# sourceMappingURL=igo2-context.mjs.map