@igo2/context 20.0.1 → 20.1.0-next.10
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/fesm2022/igo2-context.mjs +873 -1093
- package/fesm2022/igo2-context.mjs.map +1 -1
- package/index.d.ts +113 -167
- package/locale/en.context.json +6 -5
- package/locale/fr.context.json +6 -5
- package/package.json +8 -7
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, ModuleWithProviders, OnDestroy
|
|
2
|
+
import { OnInit, ModuleWithProviders, OnDestroy } from '@angular/core';
|
|
3
3
|
import { UntypedFormGroup, UntypedFormControl } from '@angular/forms';
|
|
4
4
|
import { AnyLayerOptions, MapViewOptions, MapExtent, MapScaleLineOptions, MapAttributionOptions, VectorLayer, AnyLayer, IgoMap, Feature, StyleListService, StyleService, ImportExportServiceOptions, LayerOptions, LayerGroupOptions, AnyDataSourceOptions } from '@igo2/geo';
|
|
5
5
|
import { BehaviorSubject, ReplaySubject, Subscription, Observable, Subject } from 'rxjs';
|
|
@@ -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;
|
|
@@ -122,7 +131,7 @@ declare class ContextImportExportComponent implements OnInit {
|
|
|
122
131
|
private clientSideFileSizeMax;
|
|
123
132
|
fileSizeMb: number;
|
|
124
133
|
activeImportExport: string;
|
|
125
|
-
map: IgoMap
|
|
134
|
+
readonly map: i0.InputSignal<IgoMap>;
|
|
126
135
|
constructor();
|
|
127
136
|
ngOnInit(): void;
|
|
128
137
|
importFiles(files: File[]): void;
|
|
@@ -135,7 +144,7 @@ declare class ContextImportExportComponent implements OnInit {
|
|
|
135
144
|
selectAll(e: any): void;
|
|
136
145
|
onImportExportChange(event: any): void;
|
|
137
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextImportExportComponent, never>;
|
|
138
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextImportExportComponent, "igo-context-import-export", never, { "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextImportExportComponent, "igo-context-import-export", never, { "map": { "alias": "map"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
139
148
|
}
|
|
140
149
|
|
|
141
150
|
/**
|
|
@@ -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,34 +180,36 @@ 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;
|
|
171
|
-
selectedContext: DetailedContext
|
|
172
|
-
map: IgoMap
|
|
188
|
+
readonly selectedContext: i0.ModelSignal<DetailedContext>;
|
|
189
|
+
readonly map: i0.InputSignal<IgoMap>;
|
|
173
190
|
get defaultContextId(): string;
|
|
174
191
|
set defaultContextId(value: string);
|
|
175
192
|
private _defaultContextId;
|
|
176
193
|
collapsed: {
|
|
177
194
|
contextScope: any;
|
|
178
195
|
}[];
|
|
179
|
-
select:
|
|
180
|
-
unselect:
|
|
181
|
-
edit:
|
|
182
|
-
delete:
|
|
183
|
-
save:
|
|
184
|
-
clone:
|
|
185
|
-
create:
|
|
196
|
+
readonly select: i0.OutputEmitterRef<DetailedContext>;
|
|
197
|
+
readonly unselect: i0.OutputEmitterRef<DetailedContext>;
|
|
198
|
+
readonly edit: i0.OutputEmitterRef<DetailedContext>;
|
|
199
|
+
readonly delete: i0.OutputEmitterRef<DetailedContext>;
|
|
200
|
+
readonly save: i0.OutputEmitterRef<DetailedContext>;
|
|
201
|
+
readonly clone: i0.OutputEmitterRef<DetailedContext>;
|
|
202
|
+
readonly create: i0.OutputEmitterRef<{
|
|
186
203
|
title: string;
|
|
187
204
|
empty: boolean;
|
|
188
205
|
}>;
|
|
189
|
-
hide:
|
|
190
|
-
show:
|
|
191
|
-
showHiddenContexts:
|
|
192
|
-
favorite:
|
|
193
|
-
managePermissions:
|
|
194
|
-
manageTools:
|
|
195
|
-
filterPermissionsChanged:
|
|
206
|
+
readonly hide: i0.OutputEmitterRef<DetailedContext>;
|
|
207
|
+
readonly show: i0.OutputEmitterRef<DetailedContext>;
|
|
208
|
+
readonly showHiddenContexts: i0.OutputEmitterRef<boolean>;
|
|
209
|
+
readonly favorite: i0.OutputEmitterRef<DetailedContext>;
|
|
210
|
+
readonly managePermissions: i0.OutputEmitterRef<DetailedContext>;
|
|
211
|
+
readonly manageTools: i0.OutputEmitterRef<DetailedContext>;
|
|
212
|
+
readonly filterPermissionsChanged: i0.OutputEmitterRef<ContextUserPermission[]>;
|
|
196
213
|
titleMapping: {
|
|
197
214
|
ours: string;
|
|
198
215
|
shared: string;
|
|
@@ -216,11 +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;
|
|
242
|
+
setSelected(context: DetailedContext): void;
|
|
221
243
|
private next;
|
|
222
244
|
private filterContextsList;
|
|
223
|
-
ngOnDestroy(): void;
|
|
224
245
|
showFilter(): boolean;
|
|
225
246
|
sortContextsList(contexts: ContextsList): any;
|
|
226
247
|
normalize(str: string): string;
|
|
@@ -229,30 +250,13 @@ declare class ContextListComponent implements OnInit, OnDestroy {
|
|
|
229
250
|
createContext(empty?: boolean): void;
|
|
230
251
|
getPermission(user?: any): ContextUserPermission;
|
|
231
252
|
handleToggleCategory(user: any, parent?: any): void;
|
|
232
|
-
hideContext(context: DetailedContext): void;
|
|
233
253
|
showContext(context: DetailedContext): void;
|
|
234
254
|
onSelect(context: DetailedContext): void;
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
declare class ContextListBindingDirective implements OnInit, OnDestroy {
|
|
240
|
-
private contextService;
|
|
241
|
-
private mapService;
|
|
242
|
-
private languageService;
|
|
243
|
-
private confirmDialogService;
|
|
244
|
-
private messageService;
|
|
245
|
-
private auth;
|
|
246
|
-
private storageService;
|
|
247
|
-
private cdRef;
|
|
248
|
-
private component;
|
|
249
|
-
private contexts$$;
|
|
250
|
-
private selectedContext$$;
|
|
251
|
-
private defaultContextId$$;
|
|
252
|
-
private previousMessageId;
|
|
253
|
-
onSelect(context: Context): void;
|
|
255
|
+
isContextSelected(context: DetailedContext): boolean;
|
|
256
|
+
onShareContext(context: DetailedContext): void;
|
|
254
257
|
onEdit(context: Context): void;
|
|
255
258
|
onSave(context: Context): void;
|
|
259
|
+
private handleContextChanges;
|
|
256
260
|
onFavorite(context: Context): void;
|
|
257
261
|
onManageTools(context: Context): void;
|
|
258
262
|
onManagePermissions(context: Context): void;
|
|
@@ -262,16 +266,11 @@ declare class ContextListBindingDirective implements OnInit, OnDestroy {
|
|
|
262
266
|
title: string;
|
|
263
267
|
empty: boolean;
|
|
264
268
|
}): void;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
onShowContext(context: DetailedContext): void;
|
|
269
|
+
onFilterPermissionsChanged(): void;
|
|
270
|
+
onShowHiddenContexts(): void;
|
|
268
271
|
onHideContext(context: DetailedContext): void;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
ngOnDestroy(): void;
|
|
272
|
-
private handleContextsChange;
|
|
273
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextListBindingDirective, never>;
|
|
274
|
-
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>;
|
|
275
274
|
}
|
|
276
275
|
|
|
277
276
|
declare class ContextItemComponent {
|
|
@@ -280,91 +279,72 @@ declare class ContextItemComponent {
|
|
|
280
279
|
typePermission: typeof TypePermission;
|
|
281
280
|
color: string;
|
|
282
281
|
collapsed: boolean;
|
|
283
|
-
showFavorite: boolean
|
|
284
|
-
context: DetailedContext
|
|
285
|
-
default: boolean
|
|
286
|
-
selected: boolean
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
282
|
+
readonly showFavorite: i0.InputSignal<boolean>;
|
|
283
|
+
readonly context: i0.InputSignal<DetailedContext>;
|
|
284
|
+
readonly default: i0.InputSignal<boolean>;
|
|
285
|
+
readonly selected: i0.InputSignal<boolean>;
|
|
286
|
+
readonly isDesktop: i0.InputSignal<boolean>;
|
|
287
|
+
readonly edit: i0.OutputEmitterRef<DetailedContext>;
|
|
288
|
+
readonly delete: i0.OutputEmitterRef<DetailedContext>;
|
|
289
|
+
readonly save: i0.OutputEmitterRef<DetailedContext>;
|
|
290
|
+
readonly clone: i0.OutputEmitterRef<DetailedContext>;
|
|
291
|
+
readonly hide: i0.OutputEmitterRef<DetailedContext>;
|
|
292
|
+
readonly show: i0.OutputEmitterRef<DetailedContext>;
|
|
293
|
+
readonly favorite: i0.OutputEmitterRef<DetailedContext>;
|
|
294
|
+
readonly managePermissions: i0.OutputEmitterRef<DetailedContext>;
|
|
295
|
+
readonly manageTools: i0.OutputEmitterRef<DetailedContext>;
|
|
296
|
+
readonly share: i0.OutputEmitterRef<DetailedContext>;
|
|
296
297
|
get hidden(): boolean;
|
|
297
298
|
get canShare(): boolean;
|
|
299
|
+
get isMenuOpen(): boolean;
|
|
300
|
+
itemActionsMenuTrigger: i0.Signal<MatMenuTrigger>;
|
|
298
301
|
favoriteClick(context: DetailedContext): void;
|
|
299
302
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextItemComponent, never>;
|
|
300
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextItemComponent, "igo-context-item", never, { "showFavorite": { "alias": "showFavorite"; "required": false; }; "context": { "alias": "context"; "required": false; }; "default": { "alias": "default"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "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>;
|
|
301
304
|
}
|
|
302
305
|
|
|
303
|
-
declare class ContextFormComponent
|
|
306
|
+
declare class ContextFormComponent {
|
|
304
307
|
private clipboard;
|
|
305
308
|
private formBuilder;
|
|
306
309
|
private messageService;
|
|
307
310
|
form: UntypedFormGroup;
|
|
308
311
|
prefix: string;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
set disabled(value: boolean);
|
|
317
|
-
private _disabled;
|
|
318
|
-
submitForm: EventEmitter<any>;
|
|
319
|
-
clone: EventEmitter<any>;
|
|
320
|
-
delete: EventEmitter<any>;
|
|
321
|
-
ngOnInit(): void;
|
|
312
|
+
readonly btnSubmitText: i0.InputSignal<string>;
|
|
313
|
+
readonly context: i0.InputSignal<Context>;
|
|
314
|
+
readonly disabled: i0.InputSignal<boolean>;
|
|
315
|
+
readonly submitForm: i0.OutputEmitterRef<unknown>;
|
|
316
|
+
readonly clone: i0.OutputEmitterRef<unknown>;
|
|
317
|
+
readonly delete: i0.OutputEmitterRef<unknown>;
|
|
318
|
+
constructor();
|
|
322
319
|
handleFormSubmit(value: any): void;
|
|
323
320
|
copyTextToClipboard(): void;
|
|
324
321
|
private buildForm;
|
|
325
322
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextFormComponent, never>;
|
|
326
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextFormComponent, "igo-context-form", never, { "btnSubmitText": { "alias": "btnSubmitText"; "required": false; }; "context": { "alias": "context"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "submitForm": "submitForm"; "clone": "clone"; "delete": "delete"; }, never, never, true, never>;
|
|
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>;
|
|
327
324
|
}
|
|
328
325
|
|
|
329
|
-
declare class ContextEditComponent {
|
|
330
|
-
private cd;
|
|
331
|
-
get context(): Context;
|
|
332
|
-
set context(value: Context);
|
|
333
|
-
private _context;
|
|
334
|
-
submitForm: EventEmitter<Context>;
|
|
335
|
-
refresh(): void;
|
|
336
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextEditComponent, never>;
|
|
337
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextEditComponent, "igo-context-edit", never, { "context": { "alias": "context"; "required": false; }; }, { "submitForm": "submitForm"; }, never, never, true, never>;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
declare class ContextEditBindingDirective implements OnInit, OnDestroy {
|
|
326
|
+
declare class ContextEditComponent implements OnInit, OnDestroy {
|
|
341
327
|
private contextService;
|
|
342
328
|
private messageService;
|
|
343
|
-
|
|
329
|
+
readonly context: i0.WritableSignal<Context>;
|
|
330
|
+
readonly submitSuccessed: i0.OutputEmitterRef<Context>;
|
|
344
331
|
private editedContext$$;
|
|
345
|
-
submitSuccessed: EventEmitter<Context>;
|
|
346
|
-
onEdit(context: Context): void;
|
|
347
|
-
constructor();
|
|
348
332
|
ngOnInit(): void;
|
|
349
333
|
ngOnDestroy(): void;
|
|
350
334
|
private handleEditedContextChange;
|
|
351
|
-
|
|
352
|
-
static
|
|
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>;
|
|
353
338
|
}
|
|
354
339
|
|
|
355
340
|
declare class ContextPermissionsComponent implements OnInit {
|
|
356
341
|
private formBuilder;
|
|
357
|
-
private cd;
|
|
358
342
|
private http;
|
|
359
343
|
authService: AuthService;
|
|
360
344
|
private config;
|
|
361
345
|
form: UntypedFormGroup;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
private _context;
|
|
365
|
-
get permissions(): ContextPermissionsList;
|
|
366
|
-
set permissions(value: ContextPermissionsList);
|
|
367
|
-
private _permissions;
|
|
346
|
+
readonly context: i0.ModelSignal<Context>;
|
|
347
|
+
readonly permissions: i0.ModelSignal<ContextPermissionsList>;
|
|
368
348
|
get profils(): ContextProfils[];
|
|
369
349
|
set profils(value: ContextProfils[]);
|
|
370
350
|
private _profils;
|
|
@@ -372,16 +352,16 @@ declare class ContextPermissionsComponent implements OnInit {
|
|
|
372
352
|
private baseUrlProfils;
|
|
373
353
|
formControl: UntypedFormControl;
|
|
374
354
|
formValueChanges$$: Subscription;
|
|
375
|
-
addPermission:
|
|
376
|
-
removePermission:
|
|
377
|
-
scopeChanged:
|
|
355
|
+
readonly addPermission: i0.OutputEmitterRef<ContextPermission>;
|
|
356
|
+
readonly removePermission: i0.OutputEmitterRef<ContextPermission>;
|
|
357
|
+
readonly scopeChanged: i0.OutputEmitterRef<Context>;
|
|
378
358
|
ngOnInit(): void;
|
|
379
359
|
displayFn(profil?: ContextProfils): string | undefined;
|
|
380
360
|
handleFormSubmit(value: any): void;
|
|
381
361
|
private buildForm;
|
|
382
362
|
onProfilSelected(value: any): void;
|
|
383
363
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextPermissionsComponent, never>;
|
|
384
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextPermissionsComponent, "igo-context-permissions", never, { "context": { "alias": "context"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; }, { "addPermission": "addPermission"; "removePermission": "removePermission"; "scopeChanged": "scopeChanged"; }, never, never, true, never>;
|
|
364
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextPermissionsComponent, "igo-context-permissions", never, { "context": { "alias": "context"; "required": false; "isSignal": true; }; "permissions": { "alias": "permissions"; "required": false; "isSignal": true; }; }, { "context": "contextChange"; "permissions": "permissionsChange"; "addPermission": "addPermission"; "removePermission": "removePermission"; "scopeChanged": "scopeChanged"; }, never, never, true, never>;
|
|
385
365
|
}
|
|
386
366
|
|
|
387
367
|
declare class ContextPermissionsBindingDirective implements OnInit, OnDestroy {
|
|
@@ -413,8 +393,8 @@ declare class LayerContextDirective implements OnInit, OnDestroy {
|
|
|
413
393
|
private context$$;
|
|
414
394
|
private queryParams;
|
|
415
395
|
private contextLayers;
|
|
416
|
-
removeLayersOnContextChange: boolean
|
|
417
|
-
contextLayersLoaded:
|
|
396
|
+
readonly removeLayersOnContextChange: i0.InputSignal<boolean>;
|
|
397
|
+
readonly contextLayersLoaded: i0.OutputEmitterRef<boolean>;
|
|
418
398
|
get map(): IgoMap;
|
|
419
399
|
ngOnInit(): void;
|
|
420
400
|
ngOnDestroy(): void;
|
|
@@ -423,7 +403,7 @@ declare class LayerContextDirective implements OnInit, OnDestroy {
|
|
|
423
403
|
private computeLayerVisibilityFromUrl;
|
|
424
404
|
private handleContextWithSharedUrl;
|
|
425
405
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayerContextDirective, never>;
|
|
426
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LayerContextDirective, "[igoLayerContext]", never, { "removeLayersOnContextChange": { "alias": "removeLayersOnContextChange"; "required": false; }; }, { "contextLayersLoaded": "contextLayersLoaded"; }, never, never, true, never>;
|
|
406
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LayerContextDirective, "[igoLayerContext]", never, { "removeLayersOnContextChange": { "alias": "removeLayersOnContextChange"; "required": false; "isSignal": true; }; }, { "contextLayersLoaded": "contextLayersLoaded"; }, never, never, true, never>;
|
|
427
407
|
}
|
|
428
408
|
|
|
429
409
|
declare class MapContextDirective implements OnInit, OnDestroy {
|
|
@@ -448,7 +428,7 @@ declare class MapContextDirective implements OnInit, OnDestroy {
|
|
|
448
428
|
declare class IgoContextManagerModule {
|
|
449
429
|
static forRoot(): ModuleWithProviders<IgoContextManagerModule>;
|
|
450
430
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgoContextManagerModule, never>;
|
|
451
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextManagerModule, never, [typeof ContextListComponent, typeof
|
|
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]>;
|
|
452
432
|
static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextManagerModule>;
|
|
453
433
|
}
|
|
454
434
|
|
|
@@ -538,68 +518,37 @@ declare class IgoContextMapButtonModule {
|
|
|
538
518
|
static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextMapButtonModule>;
|
|
539
519
|
}
|
|
540
520
|
|
|
541
|
-
declare class ShareMapApiComponent implements OnInit {
|
|
542
|
-
private clipboard;
|
|
543
|
-
private languageService;
|
|
544
|
-
private messageService;
|
|
545
|
-
private auth;
|
|
546
|
-
private shareMapService;
|
|
547
|
-
private formBuilder;
|
|
548
|
-
private contextService;
|
|
549
|
-
form: UntypedFormGroup;
|
|
550
|
-
map: IgoMap;
|
|
551
|
-
url: string;
|
|
552
|
-
userId: string;
|
|
553
|
-
idContextShared: string;
|
|
554
|
-
ngOnInit(): void;
|
|
555
|
-
createUrl(values?: any): void;
|
|
556
|
-
updateContextShared(values?: any): void;
|
|
557
|
-
copyTextToClipboard(textArea: HTMLTextAreaElement): void;
|
|
558
|
-
buildForm(): void;
|
|
559
|
-
private createContextShared;
|
|
560
|
-
private _updateContextShared;
|
|
561
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapApiComponent, never>;
|
|
562
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapApiComponent, "igo-share-map-api", never, { "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
521
|
declare class ShareMapUrlComponent implements OnInit, OnDestroy {
|
|
566
522
|
private clipboard;
|
|
567
523
|
private messageService;
|
|
568
524
|
private shareMapService;
|
|
569
525
|
private contextService;
|
|
570
526
|
private cdRef;
|
|
571
|
-
private route;
|
|
572
527
|
private mapState$$;
|
|
573
|
-
map: IgoMap
|
|
528
|
+
readonly map: i0.InputSignal<IgoMap>;
|
|
574
529
|
url: string;
|
|
575
|
-
private publicShareOption;
|
|
576
|
-
private language;
|
|
577
|
-
constructor();
|
|
578
530
|
ngOnInit(): void;
|
|
579
531
|
ngOnDestroy(): void;
|
|
580
532
|
generateUrl(): void;
|
|
581
533
|
copyTextToClipboard(textArea: HTMLTextAreaElement): void;
|
|
582
534
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapUrlComponent, never>;
|
|
583
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapUrlComponent, "igo-share-map-url", never, { "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
535
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapUrlComponent, "igo-share-map-url", never, { "map": { "alias": "map"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
584
536
|
}
|
|
585
537
|
|
|
586
538
|
declare class ShareMapComponent {
|
|
587
|
-
|
|
588
|
-
map: IgoMap;
|
|
589
|
-
hasApi: boolean;
|
|
590
|
-
constructor();
|
|
539
|
+
readonly map: i0.InputSignal<IgoMap>;
|
|
591
540
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapComponent, never>;
|
|
592
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapComponent, "igo-share-map", never, { "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
541
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapComponent, "igo-share-map", never, { "map": { "alias": "map"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
593
542
|
}
|
|
594
543
|
|
|
595
|
-
declare const SHARE_MAP_DIRECTIVES: readonly [typeof ShareMapComponent, typeof ShareMapUrlComponent
|
|
544
|
+
declare const SHARE_MAP_DIRECTIVES: readonly [typeof ShareMapComponent, typeof ShareMapUrlComponent];
|
|
596
545
|
/**
|
|
597
546
|
* @deprecated import the components/directives directly or SHARE_MAP_DIRECTIVES for the set
|
|
598
547
|
*/
|
|
599
548
|
declare class IgoShareMapModule {
|
|
600
549
|
static forRoot(): ModuleWithProviders<IgoShareMapModule>;
|
|
601
550
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgoShareMapModule, never>;
|
|
602
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoShareMapModule, never, [typeof ShareMapComponent, typeof ShareMapUrlComponent
|
|
551
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoShareMapModule, never, [typeof ShareMapComponent, typeof ShareMapUrlComponent], [typeof ShareMapComponent, typeof ShareMapUrlComponent]>;
|
|
603
552
|
static ɵinj: i0.ɵɵInjectorDeclaration<IgoShareMapModule>;
|
|
604
553
|
}
|
|
605
554
|
|
|
@@ -738,15 +687,15 @@ declare class ContextService {
|
|
|
738
687
|
getDetails(id: string): Observable<DetailedContext>;
|
|
739
688
|
getDefault(): Observable<DetailedContext>;
|
|
740
689
|
getProfilByUser(): Observable<ContextProfils[]>;
|
|
741
|
-
setDefault(id: string): Observable<
|
|
690
|
+
setDefault(id: string): Observable<string | undefined>;
|
|
742
691
|
hideContext(id: string): Observable<Object>;
|
|
743
692
|
showContext(id: string): Observable<Object>;
|
|
744
693
|
delete(id: string, imported?: boolean): Observable<void>;
|
|
745
694
|
create(context: DetailedContext): Observable<Context>;
|
|
746
695
|
clone(id: string, properties?: {}): Observable<Context>;
|
|
747
|
-
update(id: string, context: DetailedContext): Observable<
|
|
696
|
+
update(id: string, context: DetailedContext): Observable<ContextDetailedChanges>;
|
|
748
697
|
addToolAssociation(contextId: string, toolId: string): Observable<void>;
|
|
749
|
-
deleteToolAssociation(contextId: string, toolId: string): Observable<
|
|
698
|
+
deleteToolAssociation(contextId: string, toolId: string): Observable<unknown>;
|
|
750
699
|
getPermissions(id: string): Observable<ContextPermission[]>;
|
|
751
700
|
addPermissionAssociation(contextId: string, profil: string, type: TypePermission): Observable<ContextPermission[]>;
|
|
752
701
|
deletePermissionAssociation(contextId: string, permissionId: string): Observable<void>;
|
|
@@ -791,7 +740,7 @@ declare function handleFileExportError(error: Error, messageService: MessageServ
|
|
|
791
740
|
declare function handleFileExportSuccess(messageService: MessageService): void;
|
|
792
741
|
declare function handleNothingToExportError(messageService: MessageService): void;
|
|
793
742
|
|
|
794
|
-
declare const CONTEXT_MANAGER_DIRECTIVES: readonly [typeof ContextListComponent, typeof
|
|
743
|
+
declare const CONTEXT_MANAGER_DIRECTIVES: readonly [typeof ContextListComponent, typeof ContextItemComponent, typeof ContextFormComponent, typeof ContextEditComponent, typeof ContextPermissionsComponent, typeof ContextPermissionsBindingDirective, typeof MapContextDirective, typeof LayerContextDirective];
|
|
795
744
|
|
|
796
745
|
declare class PoiDialogComponent {
|
|
797
746
|
dialogRef: MatDialogRef<PoiDialogComponent, any>;
|
|
@@ -842,12 +791,7 @@ declare enum ServiceTypeEnum {
|
|
|
842
791
|
imagearcgisrest = 3,
|
|
843
792
|
tilearcgisrest = 4
|
|
844
793
|
}
|
|
845
|
-
|
|
846
|
-
layerlistControls: {
|
|
847
|
-
querystring: string;
|
|
848
|
-
};
|
|
849
|
-
}
|
|
850
|
-
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"];
|
|
851
795
|
type LayerParamsKeys = (typeof LayerParamsKeys)[number];
|
|
852
796
|
declare const GroupParamsKeys: readonly ["title", "id", "expanded", "visible", "opacity", "zIndex", "parentId"];
|
|
853
797
|
type GroupParamsKeys = (typeof GroupParamsKeys)[number];
|
|
@@ -890,14 +834,13 @@ interface UrlParsedParam {
|
|
|
890
834
|
}
|
|
891
835
|
type LayerParams = BaseLayerParams & {
|
|
892
836
|
index: number;
|
|
893
|
-
names
|
|
894
|
-
type
|
|
895
|
-
queryString?: string;
|
|
837
|
+
names?: string;
|
|
838
|
+
type?: string;
|
|
896
839
|
};
|
|
897
840
|
type GroupParams = BaseLayerParams & Pick<LayerGroupOptions, 'title' | 'id'> & {
|
|
898
841
|
expanded?: boolean;
|
|
899
842
|
};
|
|
900
|
-
type BaseLayerParams = Pick<LayerOptions, 'visible' | 'opacity' | 'zIndex' | 'parentId'>;
|
|
843
|
+
type BaseLayerParams = Pick<LayerOptions, 'visible' | 'opacity' | 'zIndex' | 'parentId' | 'id'>;
|
|
901
844
|
interface ShareMapRouteKeysOptions extends RouteServiceOptions {
|
|
902
845
|
context: string;
|
|
903
846
|
urls: string;
|
|
@@ -916,8 +859,9 @@ declare class ShareMapEncoder {
|
|
|
916
859
|
private SHARE_MAP_DEFS;
|
|
917
860
|
private document;
|
|
918
861
|
private context;
|
|
862
|
+
language: string;
|
|
919
863
|
constructor(SHARE_MAP_DEFS: ShareMapKeysDefinitions, document: Document);
|
|
920
|
-
generateUrl(map: IgoMap, context: DetailedContext
|
|
864
|
+
generateUrl(map: IgoMap, context: DetailedContext): string;
|
|
921
865
|
/**
|
|
922
866
|
* Replaces local group IDs with unique IDs to avoid conflicts and have short URL.
|
|
923
867
|
* This is necessary for sharing the map context.
|
|
@@ -953,13 +897,14 @@ declare class ShareMapEncoder {
|
|
|
953
897
|
private getWmsVersion;
|
|
954
898
|
private concatUrlWithVersion;
|
|
955
899
|
private getLayerParams;
|
|
900
|
+
/** Recursive */
|
|
901
|
+
private hasLayerId;
|
|
956
902
|
private getOpacity;
|
|
957
903
|
private getVisibility;
|
|
958
|
-
private getQueryString;
|
|
959
904
|
private buildLayersQueryUrl;
|
|
960
905
|
private stringifyLayerParams;
|
|
961
906
|
private getBaseUrlConfig;
|
|
962
|
-
|
|
907
|
+
sanitizeBaseUrl(baseUrl: string): string;
|
|
963
908
|
private extractKeys;
|
|
964
909
|
private getPosition;
|
|
965
910
|
private getProjection;
|
|
@@ -998,6 +943,7 @@ declare class ShareMapParser {
|
|
|
998
943
|
private parseLayer;
|
|
999
944
|
private parseGroup;
|
|
1000
945
|
private extractVersionFromUrl;
|
|
946
|
+
private extractLayerId;
|
|
1001
947
|
private extractUrlIndex;
|
|
1002
948
|
private extractLayerNames;
|
|
1003
949
|
private extractLayerProperties;
|
|
@@ -1031,5 +977,5 @@ declare function hasLegacyParams(params: Params, optionsLegacy: RouteServiceOpti
|
|
|
1031
977
|
declare function hasModernShareParams(params: Params, keysDefinitions: ShareMapKeysDefinitions): boolean;
|
|
1032
978
|
declare function getParamValue(params: Params, key: string): string | undefined;
|
|
1033
979
|
|
|
1034
|
-
export { BookmarkButtonComponent, BookmarkDialogComponent, CONTEXT_MANAGER_DIRECTIVES, CONTEXT_MAP_BUTTON_DIRECTIVES,
|
|
1035
|
-
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,
|
|
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 };
|
package/locale/en.context.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"contextManager": {
|
|
14
|
-
"clone": "Clone
|
|
15
|
-
"delete": "Delete
|
|
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
|
|
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
|
|
68
|
-
"show": "Show up
|
|
68
|
+
"hide": "Hide",
|
|
69
|
+
"show": "Show up",
|
|
69
70
|
"showHidden": "Show hidden contexts",
|
|
70
71
|
"noResult": "No results for selected filters"
|
|
71
72
|
},
|
package/locale/fr.context.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"contextManager": {
|
|
14
|
-
"clone": "Cloner
|
|
15
|
-
"delete": "Supprimer
|
|
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
|
|
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
|
|
68
|
-
"show": "Montrer
|
|
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
|
},
|