@igo2/context 19.0.3 → 20.0.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/fesm2022/igo2-context.mjs +292 -425
- package/fesm2022/igo2-context.mjs.map +1 -1
- package/index.d.ts +1033 -3
- package/package.json +12 -15
- package/lib/context-import-export/context-import-export/context-import-export.component.d.ts +0 -44
- package/lib/context-import-export/context-import-export.module.d.ts +0 -12
- package/lib/context-import-export/index.d.ts +0 -2
- package/lib/context-import-export/shared/context-export.errors.d.ts +0 -8
- package/lib/context-import-export/shared/context-export.interface.d.ts +0 -5
- package/lib/context-import-export/shared/context-export.service.d.ts +0 -10
- package/lib/context-import-export/shared/context-export.utils.d.ts +0 -4
- package/lib/context-import-export/shared/context-import.errors.d.ts +0 -17
- package/lib/context-import-export/shared/context-import.service.d.ts +0 -18
- package/lib/context-import-export/shared/context-import.utils.d.ts +0 -15
- package/lib/context-import-export/shared/index.d.ts +0 -7
- package/lib/context-manager/context-edit/context-edit-binding.directive.d.ts +0 -20
- package/lib/context-manager/context-edit/context-edit.component.d.ts +0 -14
- package/lib/context-manager/context-edit/index.d.ts +0 -2
- package/lib/context-manager/context-form/context-form.component.d.ts +0 -32
- package/lib/context-manager/context-form/index.d.ts +0 -1
- package/lib/context-manager/context-item/context-item.component.d.ts +0 -32
- package/lib/context-manager/context-item/index.d.ts +0 -1
- package/lib/context-manager/context-list/context-list-binding.directive.d.ts +0 -48
- package/lib/context-manager/context-list/context-list.component.d.ts +0 -93
- package/lib/context-manager/context-list/context-list.enum.d.ts +0 -5
- package/lib/context-manager/context-list/index.d.ts +0 -2
- package/lib/context-manager/context-manager.directive.d.ts +0 -7
- package/lib/context-manager/context-manager.module.d.ts +0 -21
- package/lib/context-manager/context-permissions/context-permissions-binding.directive.d.ts +0 -24
- package/lib/context-manager/context-permissions/context-permissions.component.d.ts +0 -40
- package/lib/context-manager/context-permissions/index.d.ts +0 -2
- package/lib/context-manager/index.d.ts +0 -7
- package/lib/context-manager/shared/context.enum.d.ts +0 -10
- package/lib/context-manager/shared/context.interface.d.ts +0 -81
- package/lib/context-manager/shared/context.service.d.ts +0 -81
- package/lib/context-manager/shared/index.d.ts +0 -5
- package/lib/context-manager/shared/layer-context.directive.d.ts +0 -31
- package/lib/context-manager/shared/map-context.directive.d.ts +0 -22
- package/lib/context-map-button/bookmark-button/bookmark-button.component.d.ts +0 -20
- package/lib/context-map-button/bookmark-button/bookmark-dialog.component.d.ts +0 -9
- package/lib/context-map-button/bookmark-button/index.d.ts +0 -2
- package/lib/context-map-button/context-map-button.directive.d.ts +0 -4
- package/lib/context-map-button/context-map-button.module.d.ts +0 -15
- package/lib/context-map-button/index.d.ts +0 -4
- package/lib/context-map-button/poi-button/index.d.ts +0 -3
- package/lib/context-map-button/poi-button/poi-button.component.d.ts +0 -35
- package/lib/context-map-button/poi-button/poi-dialog.component.d.ts +0 -9
- package/lib/context-map-button/poi-button/shared/index.d.ts +0 -2
- package/lib/context-map-button/poi-button/shared/poi.interface.d.ts +0 -7
- package/lib/context-map-button/poi-button/shared/poi.service.d.ts +0 -16
- package/lib/context-map-button/user-button/index.d.ts +0 -2
- package/lib/context-map-button/user-button/user-button.animation.d.ts +0 -2
- package/lib/context-map-button/user-button/user-button.component.d.ts +0 -25
- package/lib/context-map-button/user-button/user-dialog.component.d.ts +0 -15
- package/lib/context.module.d.ts +0 -16
- package/lib/environment/environment.interface.d.ts +0 -9
- package/lib/environment/index.d.ts +0 -1
- package/lib/share-map/index.d.ts +0 -5
- package/lib/share-map/share-map/share-map-api.component.d.ts +0 -34
- package/lib/share-map/share-map/share-map-url.component.d.ts +0 -28
- package/lib/share-map/share-map/share-map.component.d.ts +0 -11
- package/lib/share-map/share-map.module.d.ts +0 -18
- package/lib/share-map/shared/index.d.ts +0 -4
- package/lib/share-map/shared/share-map-definitions.d.ts +0 -2
- package/lib/share-map/shared/share-map-encoder.d.ts +0 -62
- package/lib/share-map/shared/share-map-legacy.service.d.ts +0 -18
- package/lib/share-map/shared/share-map-parser.d.ts +0 -20
- package/lib/share-map/shared/share-map.interface.d.ts +0 -81
- package/lib/share-map/shared/share-map.service.d.ts +0 -23
- package/lib/share-map/shared/share-map.utils.d.ts +0 -13
- package/lib/sidenav/index.d.ts +0 -1
- package/lib/sidenav/sidenav.component.d.ts +0 -36
- package/lib/sidenav/sidenav.module.d.ts +0 -12
- package/public_api.d.ts +0 -12
- package/src/context.theme.scss +0 -5
- package/src/lib/context-manager/context-item/context-item.theming.scss +0 -21
- package/src/lib/context-manager/context-list/context-list.theming.scss +0 -23
- package/src/lib/context-manager/context-manager.theming.scss +0 -7
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { Tool } from '@igo2/common/tool';
|
|
2
|
-
import { Message } from '@igo2/core/message';
|
|
3
|
-
import { AnyLayerOptions, MapAttributionOptions, MapExtent, MapScaleLineOptions, MapViewOptions } from '@igo2/geo';
|
|
4
|
-
import { FeatureCollection } from 'geojson';
|
|
5
|
-
import { TypePermission } from './context.enum';
|
|
6
|
-
export interface Context {
|
|
7
|
-
id?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
uri?: string;
|
|
10
|
-
scope?: string;
|
|
11
|
-
permission?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
icon?: string;
|
|
14
|
-
iconImage?: string;
|
|
15
|
-
hidden?: boolean;
|
|
16
|
-
imported?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface ContextsList {
|
|
19
|
-
ours: Context[];
|
|
20
|
-
shared?: Context[];
|
|
21
|
-
public?: Context[];
|
|
22
|
-
}
|
|
23
|
-
export type ExtraFeatures = FeatureCollection & {
|
|
24
|
-
name: string;
|
|
25
|
-
opacity: number;
|
|
26
|
-
visible: boolean;
|
|
27
|
-
};
|
|
28
|
-
export interface DetailedContext extends Context {
|
|
29
|
-
layers?: AnyLayerOptions[];
|
|
30
|
-
base?: string;
|
|
31
|
-
map?: ContextMap;
|
|
32
|
-
tools?: Tool[];
|
|
33
|
-
toolbar?: string[];
|
|
34
|
-
message?: Message;
|
|
35
|
-
messages?: Message[];
|
|
36
|
-
removeLayersOnContextChange?: boolean;
|
|
37
|
-
extraFeatures?: ExtraFeatures[];
|
|
38
|
-
}
|
|
39
|
-
export interface ContextMapView extends MapViewOptions {
|
|
40
|
-
keepCurrentView?: boolean;
|
|
41
|
-
homeExtent?: ContextHomeExtent;
|
|
42
|
-
}
|
|
43
|
-
export interface ContextHomeExtent {
|
|
44
|
-
extent?: MapExtent;
|
|
45
|
-
center?: [number, number];
|
|
46
|
-
zoom?: number;
|
|
47
|
-
}
|
|
48
|
-
export interface ContextMap {
|
|
49
|
-
view: ContextMapView;
|
|
50
|
-
controls?: {
|
|
51
|
-
scaleLine?: boolean | MapScaleLineOptions;
|
|
52
|
-
attribution?: boolean | MapAttributionOptions;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface ContextServiceOptions {
|
|
56
|
-
url?: string;
|
|
57
|
-
basePath?: string;
|
|
58
|
-
contextListFile?: string;
|
|
59
|
-
defaultContextUri?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface ContextPermission {
|
|
62
|
-
id?: string;
|
|
63
|
-
contextId?: string;
|
|
64
|
-
profil: string;
|
|
65
|
-
profilTitle?: string;
|
|
66
|
-
typePermission: TypePermission;
|
|
67
|
-
}
|
|
68
|
-
export interface ContextPermissionsList {
|
|
69
|
-
read: ContextPermission[];
|
|
70
|
-
write: ContextPermission[];
|
|
71
|
-
}
|
|
72
|
-
export interface ContextUserPermission {
|
|
73
|
-
name: string;
|
|
74
|
-
checked: boolean;
|
|
75
|
-
indeterminate?: boolean;
|
|
76
|
-
}
|
|
77
|
-
export interface ContextProfils {
|
|
78
|
-
name: string;
|
|
79
|
-
title: string;
|
|
80
|
-
childs?: ContextProfils[];
|
|
81
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { AuthService } from '@igo2/auth';
|
|
3
|
-
import { Tool } from '@igo2/common/tool';
|
|
4
|
-
import { ConfigService } from '@igo2/core/config';
|
|
5
|
-
import { LanguageService } from '@igo2/core/language';
|
|
6
|
-
import { MessageService } from '@igo2/core/message';
|
|
7
|
-
import { RouteService } from '@igo2/core/route';
|
|
8
|
-
import { StorageService } from '@igo2/core/storage';
|
|
9
|
-
import type { AnyLayer, IgoMap } from '@igo2/geo';
|
|
10
|
-
import { ExportService } from '@igo2/geo';
|
|
11
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
12
|
-
import { ShareMapService } from '../../share-map/shared/share-map.service';
|
|
13
|
-
import { TypePermission } from './context.enum';
|
|
14
|
-
import { Context, ContextPermission, ContextProfils, ContextsList, DetailedContext } from './context.interface';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
export declare class ContextService {
|
|
17
|
-
private http;
|
|
18
|
-
private authService;
|
|
19
|
-
private languageService;
|
|
20
|
-
private config;
|
|
21
|
-
private messageService;
|
|
22
|
-
private storageService;
|
|
23
|
-
private exportService;
|
|
24
|
-
private shareMapService;
|
|
25
|
-
private route;
|
|
26
|
-
context$: BehaviorSubject<DetailedContext>;
|
|
27
|
-
contexts$: BehaviorSubject<ContextsList>;
|
|
28
|
-
defaultContextId$: BehaviorSubject<string>;
|
|
29
|
-
editedContext$: BehaviorSubject<DetailedContext>;
|
|
30
|
-
importedContext: DetailedContext[];
|
|
31
|
-
toolsChanged$: Subject<DetailedContext>;
|
|
32
|
-
private mapViewFromRoute;
|
|
33
|
-
private options;
|
|
34
|
-
private baseUrl;
|
|
35
|
-
private tools;
|
|
36
|
-
private toolbar;
|
|
37
|
-
get defaultContextUri(): string;
|
|
38
|
-
set defaultContextUri(uri: string);
|
|
39
|
-
private _defaultContextUri;
|
|
40
|
-
constructor(http: HttpClient, authService: AuthService, languageService: LanguageService, config: ConfigService, messageService: MessageService, storageService: StorageService, exportService: ExportService, shareMapService: ShareMapService, route: RouteService);
|
|
41
|
-
get(permissions?: string[], hidden?: boolean): Observable<ContextsList>;
|
|
42
|
-
getById(id: string): Observable<Context>;
|
|
43
|
-
getDetails(id: string): Observable<DetailedContext>;
|
|
44
|
-
getDefault(): Observable<DetailedContext>;
|
|
45
|
-
getProfilByUser(): Observable<ContextProfils[]>;
|
|
46
|
-
setDefault(id: string): Observable<any>;
|
|
47
|
-
hideContext(id: string): Observable<Object>;
|
|
48
|
-
showContext(id: string): Observable<Object>;
|
|
49
|
-
delete(id: string, imported?: boolean): Observable<void>;
|
|
50
|
-
create(context: DetailedContext): Observable<Context>;
|
|
51
|
-
clone(id: string, properties?: {}): Observable<Context>;
|
|
52
|
-
update(id: string, context: DetailedContext): Observable<Context>;
|
|
53
|
-
addToolAssociation(contextId: string, toolId: string): Observable<void>;
|
|
54
|
-
deleteToolAssociation(contextId: string, toolId: string): Observable<any>;
|
|
55
|
-
getPermissions(id: string): Observable<ContextPermission[]>;
|
|
56
|
-
addPermissionAssociation(contextId: string, profil: string, type: TypePermission): Observable<ContextPermission[]>;
|
|
57
|
-
deletePermissionAssociation(contextId: string, permissionId: string): Observable<void>;
|
|
58
|
-
getLocalContexts(): Observable<ContextsList>;
|
|
59
|
-
getLocalContext(uri: string): Observable<DetailedContext>;
|
|
60
|
-
loadContexts(permissions?: string[], hidden?: boolean): void;
|
|
61
|
-
loadDefaultContext(): void;
|
|
62
|
-
loadContext(uri: string): void;
|
|
63
|
-
setContext(context: DetailedContext): void;
|
|
64
|
-
loadEditedContext(uri: string): void;
|
|
65
|
-
setEditedContext(context: DetailedContext): void;
|
|
66
|
-
getContextFromMap(igoMap: IgoMap, empty?: boolean): DetailedContext;
|
|
67
|
-
getContextFromLayers(igoMap: IgoMap, layers: AnyLayer[], name: string, keepCurrentView?: boolean): DetailedContext;
|
|
68
|
-
private getExtraFeatures;
|
|
69
|
-
setTools(tools: Tool[]): void;
|
|
70
|
-
setToolbar(toolbar: string[]): void;
|
|
71
|
-
private handleContextMessage;
|
|
72
|
-
private getContextByUri;
|
|
73
|
-
getContextLayers(map: IgoMap): readonly AnyLayer[];
|
|
74
|
-
private getPath;
|
|
75
|
-
private handleError;
|
|
76
|
-
private handleContextsChange;
|
|
77
|
-
private addContextToList;
|
|
78
|
-
private findContext;
|
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextService, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
80
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ContextService>;
|
|
81
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { ConfigService } from '@igo2/core/config';
|
|
3
|
-
import { LayerService, MapBrowserComponent, StyleListService, StyleService } from '@igo2/geo';
|
|
4
|
-
import type { IgoMap } from '@igo2/geo';
|
|
5
|
-
import { ShareMapService } from '../../share-map/shared/share-map.service';
|
|
6
|
-
import { ContextService } from './context.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class LayerContextDirective implements OnInit, OnDestroy {
|
|
9
|
-
private component;
|
|
10
|
-
private contextService;
|
|
11
|
-
private layerService;
|
|
12
|
-
private configService;
|
|
13
|
-
private styleListService;
|
|
14
|
-
private styleService;
|
|
15
|
-
private shareMapService;
|
|
16
|
-
private context$$;
|
|
17
|
-
private queryParams;
|
|
18
|
-
private contextLayers;
|
|
19
|
-
removeLayersOnContextChange: boolean;
|
|
20
|
-
contextLayersLoaded: EventEmitter<boolean>;
|
|
21
|
-
get map(): IgoMap;
|
|
22
|
-
constructor(component: MapBrowserComponent, contextService: ContextService, layerService: LayerService, configService: ConfigService, styleListService: StyleListService, styleService: StyleService, shareMapService: ShareMapService);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
ngOnDestroy(): void;
|
|
25
|
-
private handleContextChange;
|
|
26
|
-
private handleAddLayers;
|
|
27
|
-
private computeLayerVisibilityFromUrl;
|
|
28
|
-
private handleContextWithSharedUrl;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayerContextDirective, never>;
|
|
30
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LayerContextDirective, "[igoLayerContext]", never, { "removeLayersOnContextChange": { "alias": "removeLayersOnContextChange"; "required": false; }; }, { "contextLayersLoaded": "contextLayersLoaded"; }, never, never, true, never>;
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MediaService } from '@igo2/core/media';
|
|
3
|
-
import { MapBrowserComponent } from '@igo2/geo';
|
|
4
|
-
import type { IgoMap } from '@igo2/geo';
|
|
5
|
-
import { ShareMapService } from '../../share-map/shared/share-map.service';
|
|
6
|
-
import { ContextService } from './context.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MapContextDirective implements OnInit, OnDestroy {
|
|
9
|
-
private contextService;
|
|
10
|
-
private mediaService;
|
|
11
|
-
private shareMapService;
|
|
12
|
-
private component;
|
|
13
|
-
private context$$;
|
|
14
|
-
get map(): IgoMap;
|
|
15
|
-
private queryParams;
|
|
16
|
-
constructor(component: MapBrowserComponent, contextService: ContextService, mediaService: MediaService, shareMapService: ShareMapService);
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
ngOnDestroy(): void;
|
|
19
|
-
private handleContextChange;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapContextDirective, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MapContextDirective, "[igoMapContext]", never, {}, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
-
import { MessageService } from '@igo2/core/message';
|
|
3
|
-
import type { IgoMap } from '@igo2/geo';
|
|
4
|
-
import { ContextService } from '../../context-manager/shared/context.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class BookmarkButtonComponent {
|
|
7
|
-
private dialog;
|
|
8
|
-
private contextService;
|
|
9
|
-
private messageService;
|
|
10
|
-
get map(): IgoMap;
|
|
11
|
-
set map(value: IgoMap);
|
|
12
|
-
private _map;
|
|
13
|
-
get color(): string;
|
|
14
|
-
set color(value: string);
|
|
15
|
-
private _color;
|
|
16
|
-
constructor(dialog: MatDialog, contextService: ContextService, messageService: MessageService);
|
|
17
|
-
createContext(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BookmarkButtonComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BookmarkButtonComponent, "igo-bookmark-button", never, { "map": { "alias": "map"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BookmarkDialogComponent {
|
|
4
|
-
dialogRef: MatDialogRef<BookmarkDialogComponent>;
|
|
5
|
-
title: string;
|
|
6
|
-
constructor(dialogRef: MatDialogRef<BookmarkDialogComponent>);
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BookmarkDialogComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BookmarkDialogComponent, "igo-bookmark-dialog", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { BookmarkButtonComponent, BookmarkDialogComponent } from './bookmark-button';
|
|
2
|
-
import { PoiButtonComponent } from './poi-button';
|
|
3
|
-
import { UserButtonComponent } from './user-button';
|
|
4
|
-
export declare const CONTEXT_MAP_BUTTON_DIRECTIVES: readonly [typeof BookmarkButtonComponent, typeof BookmarkDialogComponent, typeof PoiButtonComponent, typeof UserButtonComponent];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./bookmark-button/bookmark-button.component";
|
|
4
|
-
import * as i2 from "./bookmark-button/bookmark-dialog.component";
|
|
5
|
-
import * as i3 from "./poi-button/poi-button.component";
|
|
6
|
-
import * as i4 from "./user-button/user-button.component";
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated import the components/directives directly or CONTEXT_MAP_BUTTON_DIRECTIVES for the set
|
|
9
|
-
*/
|
|
10
|
-
export declare class IgoContextMapButtonModule {
|
|
11
|
-
static forRoot(): ModuleWithProviders<IgoContextMapButtonModule>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoContextMapButtonModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextMapButtonModule, never, [typeof i1.BookmarkButtonComponent, typeof i2.BookmarkDialogComponent, typeof i3.PoiButtonComponent, typeof i4.UserButtonComponent], [typeof i1.BookmarkButtonComponent, typeof i3.PoiButtonComponent, typeof i4.UserButtonComponent, typeof i2.BookmarkDialogComponent]>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextMapButtonModule>;
|
|
15
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { AuthService } from '@igo2/auth';
|
|
4
|
-
import { ConfirmDialogService } from '@igo2/common/confirm-dialog';
|
|
5
|
-
import { LanguageService } from '@igo2/core/language';
|
|
6
|
-
import { MessageService } from '@igo2/core/message';
|
|
7
|
-
import type { IgoMap } from '@igo2/geo';
|
|
8
|
-
import { Poi } from './shared/poi.interface';
|
|
9
|
-
import { PoiService } from './shared/poi.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class PoiButtonComponent implements OnInit, OnDestroy {
|
|
12
|
-
private dialog;
|
|
13
|
-
private authService;
|
|
14
|
-
private poiService;
|
|
15
|
-
private messageService;
|
|
16
|
-
private languageService;
|
|
17
|
-
private confirmDialogService;
|
|
18
|
-
get map(): IgoMap;
|
|
19
|
-
set map(value: IgoMap);
|
|
20
|
-
private _map;
|
|
21
|
-
get color(): string;
|
|
22
|
-
set color(value: string);
|
|
23
|
-
private _color;
|
|
24
|
-
pois: Poi[];
|
|
25
|
-
private authenticate$$;
|
|
26
|
-
constructor(dialog: MatDialog, authService: AuthService, poiService: PoiService, messageService: MessageService, languageService: LanguageService, confirmDialogService: ConfirmDialogService);
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
ngOnDestroy(): void;
|
|
29
|
-
deletePoi(poi: Poi): void;
|
|
30
|
-
private getPois;
|
|
31
|
-
createPoi(): void;
|
|
32
|
-
zoomOnPoi(id: any): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoiButtonComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoiButtonComponent, "igo-poi-button", never, { "map": { "alias": "map"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class PoiDialogComponent {
|
|
4
|
-
dialogRef: MatDialogRef<PoiDialogComponent>;
|
|
5
|
-
title: string;
|
|
6
|
-
constructor(dialogRef: MatDialogRef<PoiDialogComponent>);
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoiDialogComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoiDialogComponent, "igo-poi-dialog", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ConfigService } from '@igo2/core/config';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { Poi } from './poi.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class PoiService {
|
|
7
|
-
private http;
|
|
8
|
-
private config;
|
|
9
|
-
private baseUrl;
|
|
10
|
-
constructor(http: HttpClient, config: ConfigService);
|
|
11
|
-
get(): Observable<Poi[]>;
|
|
12
|
-
delete(id: string): Observable<void>;
|
|
13
|
-
create(context: Poi): Observable<Poi>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoiService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoiService>;
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
-
import { AuthService } from '@igo2/auth';
|
|
3
|
-
import { ConfigService } from '@igo2/core/config';
|
|
4
|
-
import type { IgoMap } from '@igo2/geo';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class UserButtonComponent {
|
|
7
|
-
private dialog;
|
|
8
|
-
private config;
|
|
9
|
-
auth: AuthService;
|
|
10
|
-
get map(): IgoMap;
|
|
11
|
-
set map(value: IgoMap);
|
|
12
|
-
private _map;
|
|
13
|
-
get color(): string;
|
|
14
|
-
set color(value: string);
|
|
15
|
-
private _color;
|
|
16
|
-
expand: boolean;
|
|
17
|
-
visible: boolean;
|
|
18
|
-
hasApi: boolean;
|
|
19
|
-
constructor(dialog: MatDialog, config: ConfigService, auth: AuthService);
|
|
20
|
-
accountClick(): void;
|
|
21
|
-
logout(): void;
|
|
22
|
-
infoUser(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserButtonComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserButtonComponent, "igo-user-button", never, { "map": { "alias": "map"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import { AuthService } from '@igo2/auth';
|
|
3
|
-
import { StorageService } from '@igo2/core/storage';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UserDialogComponent {
|
|
6
|
-
dialogRef: MatDialogRef<UserDialogComponent>;
|
|
7
|
-
private auth;
|
|
8
|
-
private storageService;
|
|
9
|
-
user: any;
|
|
10
|
-
exp: any;
|
|
11
|
-
constructor(dialogRef: MatDialogRef<UserDialogComponent>, auth: AuthService, storageService: StorageService);
|
|
12
|
-
clearPreferences(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserDialogComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserDialogComponent, "igo-user-dialog", never, {}, {}, never, never, true, never>;
|
|
15
|
-
}
|
package/lib/context.module.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./context-import-export/context-import-export.module";
|
|
4
|
-
import * as i2 from "./context-manager/context-manager.module";
|
|
5
|
-
import * as i3 from "./context-map-button/context-map-button.module";
|
|
6
|
-
import * as i4 from "./share-map/share-map.module";
|
|
7
|
-
import * as i5 from "./sidenav/sidenav.module";
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated import the components/directives directly or SHARE_MAP_DIRECTIVES for the set
|
|
10
|
-
*/
|
|
11
|
-
export declare class IgoContextModule {
|
|
12
|
-
static forRoot(): ModuleWithProviders<IgoContextModule>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoContextModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextModule, never, never, [typeof i1.IgoContextImportExportModule, typeof i2.IgoContextManagerModule, typeof i3.IgoContextMapButtonModule, typeof i4.IgoShareMapModule, typeof i5.IgoSidenavModule]>;
|
|
15
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextModule>;
|
|
16
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AuthOptions } from '@igo2/auth';
|
|
2
|
-
import { ImportExportServiceOptions } from '@igo2/geo';
|
|
3
|
-
import { ContextServiceOptions } from '../context-manager';
|
|
4
|
-
export interface EnvironmentOptions {
|
|
5
|
-
auth?: AuthOptions;
|
|
6
|
-
context?: ContextServiceOptions;
|
|
7
|
-
favoriteContext4NonAuthenticated?: boolean;
|
|
8
|
-
importExport?: ImportExportServiceOptions;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './environment.interface';
|
package/lib/share-map/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Clipboard } from '@angular/cdk/clipboard';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
3
|
-
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
-
import { AuthService } from '@igo2/auth';
|
|
5
|
-
import { LanguageService } from '@igo2/core/language';
|
|
6
|
-
import { MessageService } from '@igo2/core/message';
|
|
7
|
-
import type { IgoMap } from '@igo2/geo';
|
|
8
|
-
import { ContextService } from '../../context-manager';
|
|
9
|
-
import { ShareMapService } from '../shared/share-map.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class ShareMapApiComponent implements OnInit {
|
|
12
|
-
private clipboard;
|
|
13
|
-
private languageService;
|
|
14
|
-
private messageService;
|
|
15
|
-
private auth;
|
|
16
|
-
private shareMapService;
|
|
17
|
-
private formBuilder;
|
|
18
|
-
private contextService;
|
|
19
|
-
form: UntypedFormGroup;
|
|
20
|
-
map: IgoMap;
|
|
21
|
-
url: string;
|
|
22
|
-
userId: string;
|
|
23
|
-
idContextShared: string;
|
|
24
|
-
constructor(clipboard: Clipboard, languageService: LanguageService, messageService: MessageService, auth: AuthService, shareMapService: ShareMapService, formBuilder: UntypedFormBuilder, contextService: ContextService);
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
createUrl(values?: any): void;
|
|
27
|
-
updateContextShared(values?: any): void;
|
|
28
|
-
copyTextToClipboard(textArea: HTMLTextAreaElement): void;
|
|
29
|
-
buildForm(): void;
|
|
30
|
-
private createContextShared;
|
|
31
|
-
private _updateContextShared;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapApiComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapApiComponent, "igo-share-map-api", never, { "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
34
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Clipboard } from '@angular/cdk/clipboard';
|
|
2
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import { MessageService } from '@igo2/core/message';
|
|
4
|
-
import { RouteService } from '@igo2/core/route';
|
|
5
|
-
import type { IgoMap } from '@igo2/geo';
|
|
6
|
-
import { ContextService } from '../../context-manager/shared/context.service';
|
|
7
|
-
import { ShareMapService } from '../shared/share-map.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ShareMapUrlComponent implements OnInit, OnDestroy {
|
|
10
|
-
private clipboard;
|
|
11
|
-
private messageService;
|
|
12
|
-
private shareMapService;
|
|
13
|
-
private contextService;
|
|
14
|
-
private cdRef;
|
|
15
|
-
private route;
|
|
16
|
-
private mapState$$;
|
|
17
|
-
map: IgoMap;
|
|
18
|
-
url: string;
|
|
19
|
-
private publicShareOption;
|
|
20
|
-
private language;
|
|
21
|
-
constructor(clipboard: Clipboard, messageService: MessageService, shareMapService: ShareMapService, contextService: ContextService, cdRef: ChangeDetectorRef, route: RouteService);
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
ngOnDestroy(): void;
|
|
24
|
-
generateUrl(): void;
|
|
25
|
-
copyTextToClipboard(textArea: HTMLTextAreaElement): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapUrlComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapUrlComponent, "igo-share-map-url", never, { "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ConfigService } from '@igo2/core/config';
|
|
2
|
-
import type { IgoMap } from '@igo2/geo';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ShareMapComponent {
|
|
5
|
-
private config;
|
|
6
|
-
map: IgoMap;
|
|
7
|
-
hasApi: boolean;
|
|
8
|
-
constructor(config: ConfigService);
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShareMapComponent, "igo-share-map", never, { "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { ShareMapApiComponent } from './share-map/share-map-api.component';
|
|
3
|
-
import { ShareMapUrlComponent } from './share-map/share-map-url.component';
|
|
4
|
-
import { ShareMapComponent } from './share-map/share-map.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./share-map/share-map.component";
|
|
7
|
-
import * as i2 from "./share-map/share-map-url.component";
|
|
8
|
-
import * as i3 from "./share-map/share-map-api.component";
|
|
9
|
-
export declare const SHARE_MAP_DIRECTIVES: readonly [typeof ShareMapComponent, typeof ShareMapUrlComponent, typeof ShareMapApiComponent];
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated import the components/directives directly or SHARE_MAP_DIRECTIVES for the set
|
|
12
|
-
*/
|
|
13
|
-
export declare class IgoShareMapModule {
|
|
14
|
-
static forRoot(): ModuleWithProviders<IgoShareMapModule>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoShareMapModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoShareMapModule, never, [typeof i1.ShareMapComponent, typeof i2.ShareMapUrlComponent, typeof i3.ShareMapApiComponent], [typeof i1.ShareMapComponent, typeof i2.ShareMapUrlComponent, typeof i3.ShareMapApiComponent]>;
|
|
17
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoShareMapModule>;
|
|
18
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { IgoMap } from '@igo2/geo';
|
|
2
|
-
import type { DetailedContext } from '../../context-manager';
|
|
3
|
-
import { ShareMapKeysDefinitions, ShareOption } from './share-map.interface';
|
|
4
|
-
export declare class ShareMapEncoder {
|
|
5
|
-
private SHARE_MAP_DEFS;
|
|
6
|
-
private document;
|
|
7
|
-
private context;
|
|
8
|
-
constructor(SHARE_MAP_DEFS: ShareMapKeysDefinitions, document: Document);
|
|
9
|
-
generateUrl(map: IgoMap, context: DetailedContext, publicShareOption: ShareOption, language: string | undefined): string;
|
|
10
|
-
/**
|
|
11
|
-
* Replaces local group IDs with unique IDs to avoid conflicts and have short URL.
|
|
12
|
-
* This is necessary for sharing the map context.
|
|
13
|
-
*/
|
|
14
|
-
private replaceGroupLocalIds;
|
|
15
|
-
private getUniqueId;
|
|
16
|
-
private getCurrentContext;
|
|
17
|
-
/**
|
|
18
|
-
* Filters layers to include only LayerGroups or LayerItems with a valid ServiceType.
|
|
19
|
-
*/
|
|
20
|
-
private isLayerSharable;
|
|
21
|
-
/**
|
|
22
|
-
* Extracts only LayerGroup items from the filtered layers.
|
|
23
|
-
*/
|
|
24
|
-
private getLayerGroups;
|
|
25
|
-
/**
|
|
26
|
-
* Extracts only LayerItem items from the filtered layers.
|
|
27
|
-
*/
|
|
28
|
-
private getLayerItems;
|
|
29
|
-
private buildQueryUrl;
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves the current context layers and maps them by identifier.
|
|
32
|
-
*/
|
|
33
|
-
private getContextLayersMap;
|
|
34
|
-
/**
|
|
35
|
-
* Filters layers and context layers based on visibility, opacity, and expanded state.
|
|
36
|
-
*/
|
|
37
|
-
private getFilteredMapLayers;
|
|
38
|
-
private getIdsNestedParent;
|
|
39
|
-
private generateLayersOptionsByService;
|
|
40
|
-
private generateLayerOption;
|
|
41
|
-
private getLayerNames;
|
|
42
|
-
private getWmsVersion;
|
|
43
|
-
private concatUrlWithVersion;
|
|
44
|
-
private getLayerParams;
|
|
45
|
-
private getOpacity;
|
|
46
|
-
private getVisibility;
|
|
47
|
-
private getQueryString;
|
|
48
|
-
private buildLayersQueryUrl;
|
|
49
|
-
private stringifyLayerParams;
|
|
50
|
-
private getBaseUrlConfig;
|
|
51
|
-
private sanitizeBaseUrl;
|
|
52
|
-
private extractKeys;
|
|
53
|
-
private getPosition;
|
|
54
|
-
private getProjection;
|
|
55
|
-
private getZoom;
|
|
56
|
-
private getRotation;
|
|
57
|
-
private stringifyPosition;
|
|
58
|
-
private stringifyDefinitions;
|
|
59
|
-
private buildGroupsQueryUrl;
|
|
60
|
-
private getLayerGroupParams;
|
|
61
|
-
private stringifyGroupParams;
|
|
62
|
-
}
|