@igo2/context 20.1.0-next.1 → 20.1.0-next.2

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.
package/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import { FeatureCollection } from 'geojson';
9
9
  import { AuthService, AuthOptions } from '@igo2/auth';
10
10
  import { ActionStore, ActionbarMode } from '@igo2/common/action';
11
11
  import { ConfigService } from '@igo2/core/config';
12
+ import { MatMenuTrigger } from '@angular/material/menu';
12
13
  import { MatDialogRef } from '@angular/material/dialog';
13
14
  import { Title } from '@angular/platform-browser';
14
15
  import { FlexibleState } from '@igo2/common/flexible';
@@ -60,6 +61,14 @@ interface DetailedContext extends Context {
60
61
  removeLayersOnContextChange?: boolean;
61
62
  extraFeatures?: ExtraFeatures[];
62
63
  }
64
+ interface ContextDetailedChanges extends Pick<DetailedContext, 'id'> {
65
+ layers: IProcessChanges<AnyLayerOptions>;
66
+ }
67
+ interface IProcessChanges<T> {
68
+ created: T[];
69
+ updated: T[];
70
+ deleted: number[];
71
+ }
63
72
  interface ContextMapView extends MapViewOptions {
64
73
  keepCurrentView?: boolean;
65
74
  homeExtent?: ContextHomeExtent;
@@ -157,6 +166,12 @@ declare enum ContextListControlsEnum {
157
166
  declare class ContextListComponent implements OnInit, OnDestroy {
158
167
  configService: ConfigService<any>;
159
168
  auth: AuthService;
169
+ private contextService;
170
+ private shareMapService;
171
+ private clipboard;
172
+ private messageService;
173
+ private mapService;
174
+ private confirmDialogService;
160
175
  private dialog;
161
176
  private languageService;
162
177
  private storageService;
@@ -165,6 +180,8 @@ declare class ContextListComponent implements OnInit, OnDestroy {
165
180
  contexts$: BehaviorSubject<ContextsList>;
166
181
  change$: ReplaySubject<void>;
167
182
  private change$$;
183
+ private previousMessageId;
184
+ isDesktop: boolean;
168
185
  get contexts(): ContextsList;
169
186
  set contexts(value: ContextsList);
170
187
  private _contexts;
@@ -216,12 +233,15 @@ declare class ContextListComponent implements OnInit, OnDestroy {
216
233
  showContextFilter: ContextListControlsEnum;
217
234
  thresholdToFilter: number;
218
235
  get isEmpty(): boolean;
236
+ private contexts$$;
237
+ private selectedContext$$;
238
+ private defaultContextId$$;
219
239
  constructor();
220
240
  ngOnInit(): void;
241
+ ngOnDestroy(): void;
221
242
  setSelected(context: DetailedContext): void;
222
243
  private next;
223
244
  private filterContextsList;
224
- ngOnDestroy(): void;
225
245
  showFilter(): boolean;
226
246
  sortContextsList(contexts: ContextsList): any;
227
247
  normalize(str: string): string;
@@ -230,30 +250,13 @@ declare class ContextListComponent implements OnInit, OnDestroy {
230
250
  createContext(empty?: boolean): void;
231
251
  getPermission(user?: any): ContextUserPermission;
232
252
  handleToggleCategory(user: any, parent?: any): void;
233
- hideContext(context: DetailedContext): void;
234
253
  showContext(context: DetailedContext): void;
235
254
  onSelect(context: DetailedContext): void;
236
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextListComponent, never>;
237
- static ɵcmp: i0.ɵɵComponentDeclaration<ContextListComponent, "igo-context-list", never, { "contexts": { "alias": "contexts"; "required": false; }; "selectedContext": { "alias": "selectedContext"; "required": false; "isSignal": true; }; "map": { "alias": "map"; "required": false; "isSignal": true; }; "defaultContextId": { "alias": "defaultContextId"; "required": false; }; "term": { "alias": "term"; "required": false; }; }, { "selectedContext": "selectedContextChange"; "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"; }, never, never, true, never>;
238
- }
239
-
240
- declare class ContextListBindingDirective implements OnInit, OnDestroy {
241
- private contextService;
242
- private mapService;
243
- private languageService;
244
- private confirmDialogService;
245
- private messageService;
246
- private auth;
247
- private storageService;
248
- private cdRef;
249
- private component;
250
- private contexts$$;
251
- private selectedContext$$;
252
- private defaultContextId$$;
253
- private previousMessageId;
254
- onSelect(context: Context): void;
255
+ isContextSelected(context: DetailedContext): boolean;
256
+ onShareContext(context: DetailedContext): void;
255
257
  onEdit(context: Context): void;
256
258
  onSave(context: Context): void;
259
+ private handleContextChanges;
257
260
  onFavorite(context: Context): void;
258
261
  onManageTools(context: Context): void;
259
262
  onManagePermissions(context: Context): void;
@@ -263,16 +266,11 @@ declare class ContextListBindingDirective implements OnInit, OnDestroy {
263
266
  title: string;
264
267
  empty: boolean;
265
268
  }): void;
266
- loadContexts(): void;
267
- showHiddenContexts(): void;
268
- onShowContext(context: DetailedContext): void;
269
+ onFilterPermissionsChanged(): void;
270
+ onShowHiddenContexts(): void;
269
271
  onHideContext(context: DetailedContext): void;
270
- constructor();
271
- ngOnInit(): void;
272
- ngOnDestroy(): void;
273
- private handleContextsChange;
274
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextListBindingDirective, never>;
275
- static ɵdir: i0.ɵɵDirectiveDeclaration<ContextListBindingDirective, "[igoContextListBinding]", never, {}, {}, never, never, true, never>;
272
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContextListComponent, never>;
273
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContextListComponent, "igo-context-list", never, { "isDesktop": { "alias": "isDesktop"; "required": false; }; "contexts": { "alias": "contexts"; "required": false; }; "selectedContext": { "alias": "selectedContext"; "required": false; "isSignal": true; }; "map": { "alias": "map"; "required": false; "isSignal": true; }; "defaultContextId": { "alias": "defaultContextId"; "required": false; }; "term": { "alias": "term"; "required": false; }; }, { "selectedContext": "selectedContextChange"; "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"; }, never, never, true, never>;
276
274
  }
277
275
 
278
276
  declare class ContextItemComponent {
@@ -285,6 +283,7 @@ declare class ContextItemComponent {
285
283
  readonly context: i0.InputSignal<DetailedContext>;
286
284
  readonly default: i0.InputSignal<boolean>;
287
285
  readonly selected: i0.InputSignal<boolean>;
286
+ readonly isDesktop: i0.InputSignal<boolean>;
288
287
  readonly edit: i0.OutputEmitterRef<DetailedContext>;
289
288
  readonly delete: i0.OutputEmitterRef<DetailedContext>;
290
289
  readonly save: i0.OutputEmitterRef<DetailedContext>;
@@ -294,11 +293,14 @@ declare class ContextItemComponent {
294
293
  readonly favorite: i0.OutputEmitterRef<DetailedContext>;
295
294
  readonly managePermissions: i0.OutputEmitterRef<DetailedContext>;
296
295
  readonly manageTools: i0.OutputEmitterRef<DetailedContext>;
296
+ readonly share: i0.OutputEmitterRef<DetailedContext>;
297
297
  get hidden(): boolean;
298
298
  get canShare(): boolean;
299
+ get isMenuOpen(): boolean;
300
+ itemActionsMenuTrigger: i0.Signal<MatMenuTrigger>;
299
301
  favoriteClick(context: DetailedContext): void;
300
302
  static ɵfac: i0.ɵɵFactoryDeclaration<ContextItemComponent, never>;
301
- static ɵcmp: i0.ɵɵComponentDeclaration<ContextItemComponent, "igo-context-item", never, { "showFavorite": { "alias": "showFavorite"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "default": { "alias": "default"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "edit": "edit"; "delete": "delete"; "save": "save"; "clone": "clone"; "hide": "hide"; "show": "show"; "favorite": "favorite"; "managePermissions": "managePermissions"; "manageTools": "manageTools"; }, never, never, true, never>;
303
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContextItemComponent, "igo-context-item", never, { "showFavorite": { "alias": "showFavorite"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "default": { "alias": "default"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "isDesktop": { "alias": "isDesktop"; "required": false; "isSignal": true; }; }, { "edit": "edit"; "delete": "delete"; "save": "save"; "clone": "clone"; "hide": "hide"; "show": "show"; "favorite": "favorite"; "managePermissions": "managePermissions"; "manageTools": "manageTools"; "share": "share"; }, never, never, true, never>;
302
304
  }
303
305
 
304
306
  declare class ContextFormComponent {
@@ -310,9 +312,9 @@ declare class ContextFormComponent {
310
312
  readonly btnSubmitText: i0.InputSignal<string>;
311
313
  readonly context: i0.InputSignal<Context>;
312
314
  readonly disabled: i0.InputSignal<boolean>;
313
- readonly submitForm: i0.OutputEmitterRef<any>;
314
- readonly clone: i0.OutputEmitterRef<any>;
315
- readonly delete: i0.OutputEmitterRef<any>;
315
+ readonly submitForm: i0.OutputEmitterRef<unknown>;
316
+ readonly clone: i0.OutputEmitterRef<unknown>;
317
+ readonly delete: i0.OutputEmitterRef<unknown>;
316
318
  constructor();
317
319
  handleFormSubmit(value: any): void;
318
320
  copyTextToClipboard(): void;
@@ -321,26 +323,18 @@ declare class ContextFormComponent {
321
323
  static ɵcmp: i0.ɵɵComponentDeclaration<ContextFormComponent, "igo-context-form", never, { "btnSubmitText": { "alias": "btnSubmitText"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "submitForm": "submitForm"; "clone": "clone"; "delete": "delete"; }, never, never, true, never>;
322
324
  }
323
325
 
324
- declare class ContextEditComponent {
325
- readonly context: i0.ModelSignal<Context>;
326
- readonly submitForm: i0.OutputEmitterRef<Context>;
327
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextEditComponent, never>;
328
- static ɵcmp: i0.ɵɵComponentDeclaration<ContextEditComponent, "igo-context-edit", never, { "context": { "alias": "context"; "required": false; "isSignal": true; }; }, { "context": "contextChange"; "submitForm": "submitForm"; }, never, never, true, never>;
329
- }
330
-
331
- declare class ContextEditBindingDirective implements OnInit, OnDestroy {
326
+ declare class ContextEditComponent implements OnInit, OnDestroy {
332
327
  private contextService;
333
328
  private messageService;
334
- private component;
335
- private editedContext$$;
329
+ readonly context: i0.WritableSignal<Context>;
336
330
  readonly submitSuccessed: i0.OutputEmitterRef<Context>;
337
- onEdit(context: Context): void;
338
- constructor();
331
+ private editedContext$$;
339
332
  ngOnInit(): void;
340
333
  ngOnDestroy(): void;
341
334
  private handleEditedContextChange;
342
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextEditBindingDirective, never>;
343
- static ɵdir: i0.ɵɵDirectiveDeclaration<ContextEditBindingDirective, "[igoContextEditBinding]", never, {}, { "submitSuccessed": "submitSuccessed"; }, never, never, true, never>;
335
+ onEdit(context: Context): void;
336
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContextEditComponent, never>;
337
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContextEditComponent, "igo-context-edit", never, {}, { "submitSuccessed": "submitSuccessed"; }, never, never, true, never>;
344
338
  }
345
339
 
346
340
  declare class ContextPermissionsComponent implements OnInit {
@@ -434,7 +428,7 @@ declare class MapContextDirective implements OnInit, OnDestroy {
434
428
  declare class IgoContextManagerModule {
435
429
  static forRoot(): ModuleWithProviders<IgoContextManagerModule>;
436
430
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoContextManagerModule, never>;
437
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextManagerModule, never, [typeof ContextListComponent, typeof ContextListBindingDirective, typeof ContextItemComponent, typeof ContextFormComponent, typeof ContextEditComponent, typeof ContextEditBindingDirective, typeof ContextPermissionsComponent, typeof ContextPermissionsBindingDirective, typeof LayerContextDirective, typeof MapContextDirective], [typeof ContextListComponent, typeof ContextListBindingDirective, typeof ContextItemComponent, typeof ContextFormComponent, typeof ContextEditComponent, typeof ContextEditBindingDirective, typeof ContextPermissionsComponent, typeof ContextPermissionsBindingDirective, typeof LayerContextDirective, typeof MapContextDirective]>;
431
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextManagerModule, never, [typeof ContextListComponent, typeof ContextItemComponent, typeof ContextFormComponent, typeof ContextEditComponent, typeof ContextPermissionsComponent, typeof ContextPermissionsBindingDirective, typeof LayerContextDirective, typeof MapContextDirective], [typeof ContextListComponent, typeof ContextItemComponent, typeof ContextFormComponent, typeof ContextEditComponent, typeof ContextPermissionsComponent, typeof ContextPermissionsBindingDirective, typeof LayerContextDirective, typeof MapContextDirective]>;
438
432
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextManagerModule>;
439
433
  }
440
434
 
@@ -524,43 +518,15 @@ declare class IgoContextMapButtonModule {
524
518
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextMapButtonModule>;
525
519
  }
526
520
 
527
- declare class ShareMapApiComponent implements OnInit {
528
- private clipboard;
529
- private languageService;
530
- private messageService;
531
- private auth;
532
- private shareMapService;
533
- private formBuilder;
534
- private contextService;
535
- form: UntypedFormGroup;
536
- readonly map: i0.InputSignal<IgoMap>;
537
- url: string;
538
- userId: string;
539
- idContextShared: string;
540
- ngOnInit(): void;
541
- createUrl(values?: any): void;
542
- updateContextShared(values?: any): void;
543
- copyTextToClipboard(textArea: HTMLTextAreaElement): void;
544
- buildForm(): void;
545
- private createContextShared;
546
- private _updateContextShared;
547
- static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapApiComponent, never>;
548
- static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapApiComponent, "igo-share-map-api", never, { "map": { "alias": "map"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
549
- }
550
-
551
521
  declare class ShareMapUrlComponent implements OnInit, OnDestroy {
552
522
  private clipboard;
553
523
  private messageService;
554
524
  private shareMapService;
555
525
  private contextService;
556
526
  private cdRef;
557
- private route;
558
527
  private mapState$$;
559
528
  readonly map: i0.InputSignal<IgoMap>;
560
529
  url: string;
561
- private publicShareOption;
562
- private language;
563
- constructor();
564
530
  ngOnInit(): void;
565
531
  ngOnDestroy(): void;
566
532
  generateUrl(): void;
@@ -570,22 +536,19 @@ declare class ShareMapUrlComponent implements OnInit, OnDestroy {
570
536
  }
571
537
 
572
538
  declare class ShareMapComponent {
573
- private config;
574
539
  readonly map: i0.InputSignal<IgoMap>;
575
- hasApi: boolean;
576
- constructor();
577
540
  static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapComponent, never>;
578
541
  static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapComponent, "igo-share-map", never, { "map": { "alias": "map"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
579
542
  }
580
543
 
581
- declare const SHARE_MAP_DIRECTIVES: readonly [typeof ShareMapComponent, typeof ShareMapUrlComponent, typeof ShareMapApiComponent];
544
+ declare const SHARE_MAP_DIRECTIVES: readonly [typeof ShareMapComponent, typeof ShareMapUrlComponent];
582
545
  /**
583
546
  * @deprecated import the components/directives directly or SHARE_MAP_DIRECTIVES for the set
584
547
  */
585
548
  declare class IgoShareMapModule {
586
549
  static forRoot(): ModuleWithProviders<IgoShareMapModule>;
587
550
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoShareMapModule, never>;
588
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoShareMapModule, never, [typeof ShareMapComponent, typeof ShareMapUrlComponent, typeof ShareMapApiComponent], [typeof ShareMapComponent, typeof ShareMapUrlComponent, typeof ShareMapApiComponent]>;
551
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoShareMapModule, never, [typeof ShareMapComponent, typeof ShareMapUrlComponent], [typeof ShareMapComponent, typeof ShareMapUrlComponent]>;
589
552
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoShareMapModule>;
590
553
  }
591
554
 
@@ -724,15 +687,15 @@ declare class ContextService {
724
687
  getDetails(id: string): Observable<DetailedContext>;
725
688
  getDefault(): Observable<DetailedContext>;
726
689
  getProfilByUser(): Observable<ContextProfils[]>;
727
- setDefault(id: string): Observable<any>;
690
+ setDefault(id: string): Observable<string | undefined>;
728
691
  hideContext(id: string): Observable<Object>;
729
692
  showContext(id: string): Observable<Object>;
730
693
  delete(id: string, imported?: boolean): Observable<void>;
731
694
  create(context: DetailedContext): Observable<Context>;
732
695
  clone(id: string, properties?: {}): Observable<Context>;
733
- update(id: string, context: DetailedContext): Observable<Context>;
696
+ update(id: string, context: DetailedContext): Observable<ContextDetailedChanges>;
734
697
  addToolAssociation(contextId: string, toolId: string): Observable<void>;
735
- deleteToolAssociation(contextId: string, toolId: string): Observable<any>;
698
+ deleteToolAssociation(contextId: string, toolId: string): Observable<unknown>;
736
699
  getPermissions(id: string): Observable<ContextPermission[]>;
737
700
  addPermissionAssociation(contextId: string, profil: string, type: TypePermission): Observable<ContextPermission[]>;
738
701
  deletePermissionAssociation(contextId: string, permissionId: string): Observable<void>;
@@ -777,7 +740,7 @@ declare function handleFileExportError(error: Error, messageService: MessageServ
777
740
  declare function handleFileExportSuccess(messageService: MessageService): void;
778
741
  declare function handleNothingToExportError(messageService: MessageService): void;
779
742
 
780
- declare const CONTEXT_MANAGER_DIRECTIVES: readonly [typeof ContextListComponent, typeof ContextListBindingDirective, typeof ContextItemComponent, typeof ContextFormComponent, typeof ContextEditComponent, typeof ContextEditBindingDirective, typeof ContextPermissionsComponent, typeof ContextPermissionsBindingDirective, typeof MapContextDirective, typeof LayerContextDirective];
743
+ declare const CONTEXT_MANAGER_DIRECTIVES: readonly [typeof ContextListComponent, typeof ContextItemComponent, typeof ContextFormComponent, typeof ContextEditComponent, typeof ContextPermissionsComponent, typeof ContextPermissionsBindingDirective, typeof MapContextDirective, typeof LayerContextDirective];
781
744
 
782
745
  declare class PoiDialogComponent {
783
746
  dialogRef: MatDialogRef<PoiDialogComponent, any>;
@@ -828,12 +791,7 @@ declare enum ServiceTypeEnum {
828
791
  imagearcgisrest = 3,
829
792
  tilearcgisrest = 4
830
793
  }
831
- interface ShareOption {
832
- layerlistControls: {
833
- querystring: string;
834
- };
835
- }
836
- declare const LayerParamsKeys: readonly ["index", "names", "type", "version", "queryString", "visible", "opacity", "zIndex", "parentId"];
794
+ declare const LayerParamsKeys: readonly ["id", "index", "names", "type", "version", "queryString", "visible", "opacity", "zIndex", "parentId"];
837
795
  type LayerParamsKeys = (typeof LayerParamsKeys)[number];
838
796
  declare const GroupParamsKeys: readonly ["title", "id", "expanded", "visible", "opacity", "zIndex", "parentId"];
839
797
  type GroupParamsKeys = (typeof GroupParamsKeys)[number];
@@ -876,14 +834,13 @@ interface UrlParsedParam {
876
834
  }
877
835
  type LayerParams = BaseLayerParams & {
878
836
  index: number;
879
- names: string;
880
- type: string;
881
- queryString?: string;
837
+ names?: string;
838
+ type?: string;
882
839
  };
883
840
  type GroupParams = BaseLayerParams & Pick<LayerGroupOptions, 'title' | 'id'> & {
884
841
  expanded?: boolean;
885
842
  };
886
- type BaseLayerParams = Pick<LayerOptions, 'visible' | 'opacity' | 'zIndex' | 'parentId'>;
843
+ type BaseLayerParams = Pick<LayerOptions, 'visible' | 'opacity' | 'zIndex' | 'parentId' | 'id'>;
887
844
  interface ShareMapRouteKeysOptions extends RouteServiceOptions {
888
845
  context: string;
889
846
  urls: string;
@@ -902,8 +859,9 @@ declare class ShareMapEncoder {
902
859
  private SHARE_MAP_DEFS;
903
860
  private document;
904
861
  private context;
862
+ language: string;
905
863
  constructor(SHARE_MAP_DEFS: ShareMapKeysDefinitions, document: Document);
906
- generateUrl(map: IgoMap, context: DetailedContext, publicShareOption: ShareOption, language: string | undefined): string;
864
+ generateUrl(map: IgoMap, context: DetailedContext): string;
907
865
  /**
908
866
  * Replaces local group IDs with unique IDs to avoid conflicts and have short URL.
909
867
  * This is necessary for sharing the map context.
@@ -939,13 +897,14 @@ declare class ShareMapEncoder {
939
897
  private getWmsVersion;
940
898
  private concatUrlWithVersion;
941
899
  private getLayerParams;
900
+ /** Recursive */
901
+ private hasLayerId;
942
902
  private getOpacity;
943
903
  private getVisibility;
944
- private getQueryString;
945
904
  private buildLayersQueryUrl;
946
905
  private stringifyLayerParams;
947
906
  private getBaseUrlConfig;
948
- private sanitizeBaseUrl;
907
+ sanitizeBaseUrl(baseUrl: string): string;
949
908
  private extractKeys;
950
909
  private getPosition;
951
910
  private getProjection;
@@ -984,6 +943,7 @@ declare class ShareMapParser {
984
943
  private parseLayer;
985
944
  private parseGroup;
986
945
  private extractVersionFromUrl;
946
+ private extractLayerId;
987
947
  private extractUrlIndex;
988
948
  private extractLayerNames;
989
949
  private extractLayerProperties;
@@ -1017,5 +977,5 @@ declare function hasLegacyParams(params: Params, optionsLegacy: RouteServiceOpti
1017
977
  declare function hasModernShareParams(params: Params, keysDefinitions: ShareMapKeysDefinitions): boolean;
1018
978
  declare function getParamValue(params: Params, key: string): string | undefined;
1019
979
 
1020
- export { BookmarkButtonComponent, BookmarkDialogComponent, CONTEXT_MANAGER_DIRECTIVES, CONTEXT_MAP_BUTTON_DIRECTIVES, ContextEditBindingDirective, ContextEditComponent, ContextExportService, ContextFormComponent, ContextImportExportComponent, ContextImportService, ContextItemComponent, ContextListBindingDirective, ContextListComponent, ContextPermissionsBindingDirective, ContextPermissionsComponent, ContextService, ExportError, ExportInvalidFileError, ExportNothingToExportError, GroupParamsKeys, IgoContextImportExportModule, IgoContextManagerModule, IgoContextMapButtonModule, IgoContextModule, IgoShareMapModule, IgoSidenavModule, ImportError, ImportInvalidFileError, ImportNothingToImportError, ImportSRSError, ImportSizeError, ImportUnreadableFileError, LayerContextDirective, LayerParamsKeys, MapContextDirective, PoiButtonComponent, PoiDialogComponent, PoiService, SHARE_MAP_DIRECTIVES, SHARE_MAP_KEYS_DEFAULT_OPTIONS, Scope, ServiceType, ServiceTypeEnum, ShareMapApiComponent, ShareMapComponent, ShareMapLegacyParser, ShareMapService, ShareMapUrlComponent, SidenavComponent, TypePermission, UserButtonComponent, UserDialogComponent, addContextToContextList, addImportedFeaturesStyledToMap, addImportedFeaturesToMap, buildDataSourceOptions, computeLayerTitleFromFile, getFileExtension, getFlattenOptions, getParamValue, handleFileExportError, handleFileExportSuccess, handleFileImportError, handleFileImportSuccess, handleInvalidFileImportError, handleNothingToExportError, handleNothingToImportError, handleSizeFileImportError, handleUnreadbleFileImportError, hasLegacyParams, hasModernShareParams };
1021
- export type { BaseKeyParams, Context, ContextExportOptions, ContextHomeExtent, ContextMap, ContextMapView, ContextPermission, ContextPermissionsList, ContextProfils, ContextServiceOptions, ContextUserPermission, ContextsList, DefinitionKeyParams, DefinitionParams, DetailedContext, EnvironmentOptions, ExtraFeatures, GroupParams, LayerParams, LayerProperties, Poi, PositionParams, ShareMapKeysDefinitions, ShareMapRouteKeysOptions, ShareOption, UrlParsedParam };
980
+ export { BookmarkButtonComponent, BookmarkDialogComponent, CONTEXT_MANAGER_DIRECTIVES, CONTEXT_MAP_BUTTON_DIRECTIVES, ContextEditComponent, ContextExportService, ContextFormComponent, ContextImportExportComponent, ContextImportService, ContextItemComponent, ContextListComponent, ContextPermissionsBindingDirective, ContextPermissionsComponent, ContextService, ExportError, ExportInvalidFileError, ExportNothingToExportError, GroupParamsKeys, IgoContextImportExportModule, IgoContextManagerModule, IgoContextMapButtonModule, IgoContextModule, IgoShareMapModule, IgoSidenavModule, ImportError, ImportInvalidFileError, ImportNothingToImportError, ImportSRSError, ImportSizeError, ImportUnreadableFileError, LayerContextDirective, LayerParamsKeys, MapContextDirective, PoiButtonComponent, PoiDialogComponent, PoiService, SHARE_MAP_DIRECTIVES, SHARE_MAP_KEYS_DEFAULT_OPTIONS, Scope, ServiceType, ServiceTypeEnum, ShareMapComponent, ShareMapLegacyParser, ShareMapService, ShareMapUrlComponent, SidenavComponent, TypePermission, UserButtonComponent, UserDialogComponent, addContextToContextList, addImportedFeaturesStyledToMap, addImportedFeaturesToMap, buildDataSourceOptions, computeLayerTitleFromFile, getFileExtension, getFlattenOptions, getParamValue, handleFileExportError, handleFileExportSuccess, handleFileImportError, handleFileImportSuccess, handleInvalidFileImportError, handleNothingToExportError, handleNothingToImportError, handleSizeFileImportError, handleUnreadbleFileImportError, hasLegacyParams, hasModernShareParams };
981
+ export type { BaseKeyParams, Context, ContextDetailedChanges, ContextExportOptions, ContextHomeExtent, ContextMap, ContextMapView, ContextPermission, ContextPermissionsList, ContextProfils, ContextServiceOptions, ContextUserPermission, ContextsList, DefinitionKeyParams, DefinitionParams, DetailedContext, EnvironmentOptions, ExtraFeatures, GroupParams, IProcessChanges, LayerParams, LayerProperties, Poi, PositionParams, ShareMapKeysDefinitions, ShareMapRouteKeysOptions, UrlParsedParam };
@@ -11,8 +11,8 @@
11
11
  }
12
12
  },
13
13
  "contextManager": {
14
- "clone": "Clone this context",
15
- "delete": "Delete this context",
14
+ "clone": "Clone",
15
+ "delete": "Delete",
16
16
  "dialog": {
17
17
  "cloneMsg": "The context '{{value}}' was cloned",
18
18
  "cloneTitle": "Context cloned",
@@ -26,7 +26,8 @@
26
26
  "saveMsg": "The context '{{value}}' was saved",
27
27
  "saveTitle": "Context saved"
28
28
  },
29
- "edit": "Edit this context",
29
+ "edit": "Edit",
30
+ "share": "Share by URL",
30
31
  "errors": {
31
32
  "uncaught": {
32
33
  "message": "Sorry, service is currently not available. Please try again later",
@@ -64,8 +65,8 @@
64
65
  "emptyContextTooltip": "Create a new empty context",
65
66
  "contextMap": "Context from map",
66
67
  "contextMapTooltip": "Create a new context from map layers",
67
- "hide": "Hide this context",
68
- "show": "Show up this context",
68
+ "hide": "Hide",
69
+ "show": "Show up",
69
70
  "showHidden": "Show hidden contexts",
70
71
  "noResult": "No results for selected filters"
71
72
  },
@@ -11,8 +11,8 @@
11
11
  }
12
12
  },
13
13
  "contextManager": {
14
- "clone": "Cloner ce contexte",
15
- "delete": "Supprimer ce contexte",
14
+ "clone": "Cloner",
15
+ "delete": "Supprimer",
16
16
  "dialog": {
17
17
  "cloneMsg": "Le contexte '{{value}}' a été cloné",
18
18
  "cloneTitle": "Contexte cloné",
@@ -26,7 +26,8 @@
26
26
  "saveMsg": "Le contexte '{{value}}' a été enregistré",
27
27
  "saveTitle": "Contexte enregistré"
28
28
  },
29
- "edit": "Éditer ce contexte",
29
+ "edit": "Éditer",
30
+ "share": "Partager par URL",
30
31
  "errors": {
31
32
  "uncaught": {
32
33
  "message": "Désolé! Le service que vous voulez utiliser n’est malheureusement pas disponible pour le moment. Essayez plus tard!",
@@ -64,8 +65,8 @@
64
65
  "emptyContextTooltip": "Créer un nouveau contexte vide",
65
66
  "contextMap": "Contexte à partir de la carte",
66
67
  "contextMapTooltip": "Créer un nouveau contexte à partir des couches la carte",
67
- "hide": "Masquer ce contexte",
68
- "show": "Montrer ce contexte",
68
+ "hide": "Masquer",
69
+ "show": "Montrer",
69
70
  "showHidden": "Montrer les contextes masqués",
70
71
  "noResult": "Aucun résultat pour les filtres sélectionnés"
71
72
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/context",
3
- "version": "20.1.0-next.1",
3
+ "version": "20.1.0-next.2",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -34,11 +34,11 @@
34
34
  "@angular/forms": "^20.0.0",
35
35
  "@angular/material": "^20.0.0",
36
36
  "@angular/platform-browser": "^20.0.0",
37
- "@igo2/auth": "^20.1.0-next.1",
38
- "@igo2/common": "^20.1.0-next.1",
39
- "@igo2/core": "^20.1.0-next.1",
40
- "@igo2/geo": "^20.1.0-next.1",
41
- "@igo2/utils": "^20.1.0-next.1",
37
+ "@igo2/auth": "^20.1.0-next.2",
38
+ "@igo2/common": "^20.1.0-next.2",
39
+ "@igo2/core": "^20.1.0-next.2",
40
+ "@igo2/geo": "^20.1.0-next.2",
41
+ "@igo2/utils": "^20.1.0-next.2",
42
42
  "ol": "10.6.0",
43
43
  "rxjs": "^7.8.0"
44
44
  },