@igo2/context 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/igo2-context.umd.js +165 -136
- package/bundles/igo2-context.umd.js.map +1 -1
- package/esm2015/lib/context-import-export/context-import-export/context-import-export.component.js +1 -1
- package/esm2015/lib/context-import-export/context-import-export.module.js +1 -1
- package/esm2015/lib/context-import-export/index.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-export.errors.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-export.interface.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-export.service.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-export.utils.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-import.errors.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-import.service.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-import.utils.js +10 -8
- package/esm2015/lib/context-import-export/shared/index.js +1 -1
- package/esm2015/lib/context-manager/context-edit/context-edit-binding.directive.js +1 -1
- package/esm2015/lib/context-manager/context-edit/context-edit.component.js +1 -1
- package/esm2015/lib/context-manager/context-edit/index.js +1 -1
- package/esm2015/lib/context-manager/context-form/context-form.component.js +1 -1
- package/esm2015/lib/context-manager/context-form/index.js +1 -1
- package/esm2015/lib/context-manager/context-item/context-item.component.js +101 -99
- package/esm2015/lib/context-manager/context-item/index.js +1 -1
- package/esm2015/lib/context-manager/context-list/context-list-binding.directive.js +18 -5
- package/esm2015/lib/context-manager/context-list/context-list.component.js +8 -7
- package/esm2015/lib/context-manager/context-list/context-list.enum.js +1 -1
- package/esm2015/lib/context-manager/context-list/index.js +1 -1
- package/esm2015/lib/context-manager/context-manager.module.js +1 -1
- package/esm2015/lib/context-manager/context-permissions/context-permissions-binding.directive.js +1 -1
- package/esm2015/lib/context-manager/context-permissions/context-permissions.component.js +1 -1
- package/esm2015/lib/context-manager/context-permissions/index.js +1 -1
- package/esm2015/lib/context-manager/index.js +1 -1
- package/esm2015/lib/context-manager/shared/context.enum.js +1 -1
- package/esm2015/lib/context-manager/shared/context.interface.js +1 -1
- package/esm2015/lib/context-manager/shared/context.service.js +25 -12
- package/esm2015/lib/context-manager/shared/index.js +1 -1
- package/esm2015/lib/context-manager/shared/layer-context.directive.js +1 -1
- package/esm2015/lib/context-manager/shared/map-context.directive.js +4 -1
- package/esm2015/lib/context-map-button/bookmark-button/bookmark-button.component.js +1 -1
- package/esm2015/lib/context-map-button/bookmark-button/bookmark-dialog.component.js +1 -1
- package/esm2015/lib/context-map-button/bookmark-button/index.js +1 -1
- package/esm2015/lib/context-map-button/context-map-button.module.js +1 -1
- package/esm2015/lib/context-map-button/index.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/index.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/poi-button.component.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/poi-dialog.component.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/shared/index.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/shared/poi.interface.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/shared/poi.service.js +1 -1
- package/esm2015/lib/context-map-button/user-button/index.js +1 -1
- package/esm2015/lib/context-map-button/user-button/user-button.animation.js +1 -1
- package/esm2015/lib/context-map-button/user-button/user-button.component.js +1 -1
- package/esm2015/lib/context-map-button/user-button/user-dialog.component.js +1 -1
- package/esm2015/lib/context.module.js +1 -1
- package/esm2015/lib/share-map/index.js +1 -1
- package/esm2015/lib/share-map/share-map/share-map-api.component.js +1 -1
- package/esm2015/lib/share-map/share-map/share-map-url.component.js +1 -1
- package/esm2015/lib/share-map/share-map/share-map.component.js +1 -1
- package/esm2015/lib/share-map/share-map.module.js +1 -1
- package/esm2015/lib/share-map/shared/index.js +1 -1
- package/esm2015/lib/share-map/shared/share-map.service.js +3 -3
- package/esm2015/lib/sidenav/index.js +1 -1
- package/esm2015/lib/sidenav/sidenav.component.js +1 -1
- package/esm2015/lib/sidenav/sidenav.module.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/fesm2015/igo2-context.js +162 -128
- package/fesm2015/igo2-context.js.map +1 -1
- package/lib/context-manager/context-item/context-item.component.d.ts +5 -8
- package/lib/context-manager/context-list/context-list-binding.directive.d.ts +5 -3
- package/lib/context-manager/shared/context.interface.d.ts +7 -1
- package/lib/context-manager/shared/context.service.d.ts +4 -3
- package/ngcc.config.js +3 -3
- package/package.json +6 -6
|
@@ -10,12 +10,9 @@ export declare class ContextItemComponent {
|
|
|
10
10
|
typePermission: typeof TypePermission;
|
|
11
11
|
color: string;
|
|
12
12
|
collapsed: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
get default(): boolean;
|
|
17
|
-
set default(value: boolean);
|
|
18
|
-
private _default;
|
|
13
|
+
showFavorite: boolean;
|
|
14
|
+
context: DetailedContext;
|
|
15
|
+
default: boolean;
|
|
19
16
|
selected: boolean;
|
|
20
17
|
edit: EventEmitter<DetailedContext>;
|
|
21
18
|
delete: EventEmitter<DetailedContext>;
|
|
@@ -29,7 +26,7 @@ export declare class ContextItemComponent {
|
|
|
29
26
|
get hidden(): boolean;
|
|
30
27
|
get canShare(): boolean;
|
|
31
28
|
constructor(auth: AuthService, storageService: StorageService);
|
|
32
|
-
favoriteClick(context:
|
|
29
|
+
favoriteClick(context: DetailedContext): void;
|
|
33
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextItemComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextItemComponent, "igo-context-item", never, { "context": "context"; "default": "default"; "selected": "selected"; }, { "edit": "edit"; "delete": "delete"; "save": "save"; "clone": "clone"; "hide": "hide"; "show": "show"; "favorite": "favorite"; "managePermissions": "managePermissions"; "manageTools": "manageTools"; }, never, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextItemComponent, "igo-context-item", never, { "showFavorite": "showFavorite"; "context": "context"; "default": "default"; "selected": "selected"; }, { "edit": "edit"; "delete": "delete"; "save": "save"; "clone": "clone"; "hide": "hide"; "show": "show"; "favorite": "favorite"; "managePermissions": "managePermissions"; "manageTools": "manageTools"; }, never, never>;
|
|
35
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { MessageService, LanguageService, StorageService } from '@igo2/core';
|
|
3
3
|
import { AuthService } from '@igo2/auth';
|
|
4
4
|
import { ConfirmDialogService } from '@igo2/common';
|
|
@@ -15,10 +15,12 @@ export declare class ContextListBindingDirective implements OnInit, OnDestroy {
|
|
|
15
15
|
private messageService;
|
|
16
16
|
private auth;
|
|
17
17
|
private storageService;
|
|
18
|
+
private cdRef;
|
|
18
19
|
private component;
|
|
19
20
|
private contexts$$;
|
|
20
21
|
private selectedContext$$;
|
|
21
22
|
private defaultContextId$$;
|
|
23
|
+
private previousMessageId;
|
|
22
24
|
onSelect(context: Context): void;
|
|
23
25
|
onEdit(context: Context): void;
|
|
24
26
|
onSave(context: Context): void;
|
|
@@ -35,10 +37,10 @@ export declare class ContextListBindingDirective implements OnInit, OnDestroy {
|
|
|
35
37
|
showHiddenContexts(): void;
|
|
36
38
|
onShowContext(context: DetailedContext): void;
|
|
37
39
|
onHideContext(context: DetailedContext): void;
|
|
38
|
-
constructor(component: ContextListComponent, contextService: ContextService, mapService: MapService, languageService: LanguageService, confirmDialogService: ConfirmDialogService, messageService: MessageService, auth: AuthService, storageService: StorageService);
|
|
40
|
+
constructor(component: ContextListComponent, contextService: ContextService, mapService: MapService, languageService: LanguageService, confirmDialogService: ConfirmDialogService, messageService: MessageService, auth: AuthService, storageService: StorageService, cdRef: ChangeDetectorRef);
|
|
39
41
|
ngOnInit(): void;
|
|
40
42
|
ngOnDestroy(): void;
|
|
41
43
|
private handleContextsChange;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextListBindingDirective, [{ self: true; }, null, null, null, null, null, null, null]>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextListBindingDirective, [{ self: true; }, null, null, null, null, null, null, null, null]>;
|
|
43
45
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextListBindingDirective, "[igoContextListBinding]", never, {}, {}, never>;
|
|
44
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Message } from '@igo2/core';
|
|
2
2
|
import { Tool } from '@igo2/common';
|
|
3
|
-
import { MapViewOptions, LayerOptions, MapScaleLineOptions, MapAttributionOptions } from '@igo2/geo';
|
|
3
|
+
import { MapViewOptions, LayerOptions, MapScaleLineOptions, MapAttributionOptions, MapExtent } from '@igo2/geo';
|
|
4
4
|
import { TypePermission } from './context.enum';
|
|
5
5
|
export interface Context {
|
|
6
6
|
id?: string;
|
|
@@ -32,6 +32,12 @@ export interface DetailedContext extends Context {
|
|
|
32
32
|
}
|
|
33
33
|
export interface ContextMapView extends MapViewOptions {
|
|
34
34
|
keepCurrentView?: boolean;
|
|
35
|
+
homeExtent?: ContextHomeExtent;
|
|
36
|
+
}
|
|
37
|
+
export interface ContextHomeExtent {
|
|
38
|
+
extent?: MapExtent;
|
|
39
|
+
center?: [number, number];
|
|
40
|
+
zoom?: number;
|
|
35
41
|
}
|
|
36
42
|
export interface ContextMap {
|
|
37
43
|
view: ContextMapView;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
3
|
import { Tool } from '@igo2/common';
|
|
4
|
-
import { ConfigService, RouteService, MessageService, LanguageService } from '@igo2/core';
|
|
4
|
+
import { ConfigService, RouteService, MessageService, LanguageService, StorageService } from '@igo2/core';
|
|
5
5
|
import { AuthService } from '@igo2/auth';
|
|
6
6
|
import type { IgoMap, Layer } from '@igo2/geo';
|
|
7
7
|
import { TypePermission } from './context.enum';
|
|
@@ -13,6 +13,7 @@ export declare class ContextService {
|
|
|
13
13
|
private languageService;
|
|
14
14
|
private config;
|
|
15
15
|
private messageService;
|
|
16
|
+
private storageService;
|
|
16
17
|
private route;
|
|
17
18
|
context$: BehaviorSubject<DetailedContext>;
|
|
18
19
|
contexts$: BehaviorSubject<ContextsList>;
|
|
@@ -28,7 +29,7 @@ export declare class ContextService {
|
|
|
28
29
|
get defaultContextUri(): string;
|
|
29
30
|
set defaultContextUri(uri: string);
|
|
30
31
|
private _defaultContextUri;
|
|
31
|
-
constructor(http: HttpClient, authService: AuthService, languageService: LanguageService, config: ConfigService, messageService: MessageService, route: RouteService);
|
|
32
|
+
constructor(http: HttpClient, authService: AuthService, languageService: LanguageService, config: ConfigService, messageService: MessageService, storageService: StorageService, route: RouteService);
|
|
32
33
|
get(permissions?: string[], hidden?: boolean): Observable<ContextsList>;
|
|
33
34
|
getById(id: string): Observable<Context>;
|
|
34
35
|
getDetails(id: string): Observable<DetailedContext>;
|
|
@@ -67,6 +68,6 @@ export declare class ContextService {
|
|
|
67
68
|
private handleContextsChange;
|
|
68
69
|
private addContextToList;
|
|
69
70
|
private findContext;
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextService, [null, null, null, null, null, { optional: true; }]>;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextService, [null, null, null, null, null, null, { optional: true; }]>;
|
|
71
72
|
static ɵprov: i0.ɵɵInjectableDeclaration<ContextService>;
|
|
72
73
|
}
|
package/ngcc.config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
ignorableDeepImportMatchers: [/ol\//]
|
|
3
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
ignorableDeepImportMatchers: [/ol\//]
|
|
3
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/context",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "MSP",
|
|
6
6
|
"keywords": [
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"@angular/core": "^12.2.9",
|
|
22
22
|
"@angular/forms": "^12.2.9",
|
|
23
23
|
"@angular/material": "^12.2.9",
|
|
24
|
-
"@igo2/auth": "^1.
|
|
25
|
-
"@igo2/common": "^1.
|
|
26
|
-
"@igo2/core": "^1.
|
|
27
|
-
"@igo2/utils": "^1.
|
|
28
|
-
"@igo2/geo": "^1.
|
|
24
|
+
"@igo2/auth": "^1.12.0",
|
|
25
|
+
"@igo2/common": "^1.12.0",
|
|
26
|
+
"@igo2/core": "^1.12.0",
|
|
27
|
+
"@igo2/utils": "^1.12.0",
|
|
28
|
+
"@igo2/geo": "^1.12.0",
|
|
29
29
|
"ol": "^6.8.1",
|
|
30
30
|
"rxjs": "^6.6.7"
|
|
31
31
|
},
|