@igo2/context 19.0.2 → 20.0.0-next.1
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/context",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0-next.1",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "IGO Community",
|
|
6
6
|
"keywords": [
|
|
@@ -20,9 +20,6 @@
|
|
|
20
20
|
"types": "./index.d.ts",
|
|
21
21
|
"default": "./fesm2022/igo2-context.mjs"
|
|
22
22
|
},
|
|
23
|
-
"./theme": {
|
|
24
|
-
"sass": "./src/context.theme.scss"
|
|
25
|
-
},
|
|
26
23
|
"./package.json": {
|
|
27
24
|
"default": "./package.json"
|
|
28
25
|
}
|
|
@@ -31,17 +28,17 @@
|
|
|
31
28
|
"tslib": "^2.6.0"
|
|
32
29
|
},
|
|
33
30
|
"peerDependencies": {
|
|
34
|
-
"@angular/animations": "^
|
|
35
|
-
"@angular/common": "^
|
|
36
|
-
"@angular/core": "^
|
|
37
|
-
"@angular/forms": "^
|
|
38
|
-
"@angular/material": "^
|
|
39
|
-
"@angular/platform-browser": "^
|
|
40
|
-
"@igo2/auth": "^
|
|
41
|
-
"@igo2/common": "^
|
|
42
|
-
"@igo2/core": "^
|
|
43
|
-
"@igo2/geo": "^
|
|
44
|
-
"@igo2/utils": "^
|
|
31
|
+
"@angular/animations": "^20.0.0",
|
|
32
|
+
"@angular/common": "^20.0.0",
|
|
33
|
+
"@angular/core": "^20.0.0",
|
|
34
|
+
"@angular/forms": "^20.0.0",
|
|
35
|
+
"@angular/material": "^20.0.0",
|
|
36
|
+
"@angular/platform-browser": "^20.0.0",
|
|
37
|
+
"@igo2/auth": "^20.0.0-next.1",
|
|
38
|
+
"@igo2/common": "^20.0.0-next.1",
|
|
39
|
+
"@igo2/core": "^20.0.0-next.1",
|
|
40
|
+
"@igo2/geo": "^20.0.0-next.1",
|
|
41
|
+
"@igo2/utils": "^20.0.0-next.1",
|
|
45
42
|
"ol": "10.6.0",
|
|
46
43
|
"rxjs": "^7.8.0"
|
|
47
44
|
},
|
package/lib/context-import-export/context-import-export/context-import-export.component.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { ConfigService } from '@igo2/core/config';
|
|
4
|
-
import { MessageService } from '@igo2/core/message';
|
|
5
|
-
import { type AnyLayer, type IgoMap, VectorLayer } from '@igo2/geo';
|
|
6
|
-
import { BehaviorSubject } from 'rxjs';
|
|
7
|
-
import { DetailedContext } from '../../context-manager/shared/context.interface';
|
|
8
|
-
import { ContextService } from '../../context-manager/shared/context.service';
|
|
9
|
-
import { ContextExportService } from '../shared/context-export.service';
|
|
10
|
-
import { ContextImportService } from '../shared/context-import.service';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class ContextImportExportComponent implements OnInit {
|
|
13
|
-
private contextImportService;
|
|
14
|
-
private contextExportService;
|
|
15
|
-
private messageService;
|
|
16
|
-
private formBuilder;
|
|
17
|
-
private config;
|
|
18
|
-
private contextService;
|
|
19
|
-
form: UntypedFormGroup;
|
|
20
|
-
layers: VectorLayer[];
|
|
21
|
-
inputProj: string;
|
|
22
|
-
loading$: BehaviorSubject<boolean>;
|
|
23
|
-
forceNaming: boolean;
|
|
24
|
-
layerList: AnyLayer[];
|
|
25
|
-
userControlledLayerList: readonly AnyLayer[];
|
|
26
|
-
res: DetailedContext;
|
|
27
|
-
private clientSideFileSizeMax;
|
|
28
|
-
fileSizeMb: number;
|
|
29
|
-
activeImportExport: string;
|
|
30
|
-
map: IgoMap;
|
|
31
|
-
constructor(contextImportService: ContextImportService, contextExportService: ContextExportService, messageService: MessageService, formBuilder: UntypedFormBuilder, config: ConfigService, contextService: ContextService);
|
|
32
|
-
ngOnInit(): void;
|
|
33
|
-
importFiles(files: File[]): void;
|
|
34
|
-
handleExportFormSubmit(contextOptions: any): void;
|
|
35
|
-
private buildForm;
|
|
36
|
-
private onFileImportSuccess;
|
|
37
|
-
private onFileImportError;
|
|
38
|
-
private onFileExportError;
|
|
39
|
-
private onFileExportSuccess;
|
|
40
|
-
selectAll(e: any): void;
|
|
41
|
-
onImportExportChange(event: any): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextImportExportComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextImportExportComponent, "igo-context-import-export", never, { "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
44
|
-
}
|
|
@@ -1,12 +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.component";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated import the ContextImportExportComponent directly
|
|
6
|
-
*/
|
|
7
|
-
export declare class IgoContextImportExportModule {
|
|
8
|
-
static forRoot(): ModuleWithProviders<IgoContextImportExportModule>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoContextImportExportModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextImportExportModule, never, [typeof i1.ContextImportExportComponent], [typeof i1.ContextImportExportComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextImportExportModule>;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DetailedContext } from '../../context-manager/shared/context.interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ContextExportService {
|
|
5
|
-
export(res: DetailedContext): Observable<void>;
|
|
6
|
-
protected exportAsync(res: DetailedContext): Observable<void>;
|
|
7
|
-
protected nothingToExport(res: DetailedContext): boolean;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextExportService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ContextExportService>;
|
|
10
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { MessageService } from '@igo2/core/message';
|
|
2
|
-
export declare function handleFileExportError(error: Error, messageService: MessageService): void;
|
|
3
|
-
export declare function handleFileExportSuccess(messageService: MessageService): void;
|
|
4
|
-
export declare function handleNothingToExportError(messageService: MessageService): void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare class ImportError extends Error {
|
|
2
|
-
}
|
|
3
|
-
export declare class ImportInvalidFileError extends ImportError {
|
|
4
|
-
constructor();
|
|
5
|
-
}
|
|
6
|
-
export declare class ImportUnreadableFileError extends ImportError {
|
|
7
|
-
constructor();
|
|
8
|
-
}
|
|
9
|
-
export declare class ImportNothingToImportError extends ImportError {
|
|
10
|
-
constructor();
|
|
11
|
-
}
|
|
12
|
-
export declare class ImportSizeError extends ImportError {
|
|
13
|
-
constructor();
|
|
14
|
-
}
|
|
15
|
-
export declare class ImportSRSError extends ImportError {
|
|
16
|
-
constructor();
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ConfigService } from '@igo2/core/config';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DetailedContext } from '../../context-manager/shared/context.interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ContextImportService {
|
|
6
|
-
private config;
|
|
7
|
-
static allowedMimeTypes: string[];
|
|
8
|
-
static allowedExtensions: string;
|
|
9
|
-
private clientSideFileSizeMax;
|
|
10
|
-
constructor(config: ConfigService);
|
|
11
|
-
import(file: File): Observable<DetailedContext>;
|
|
12
|
-
private getFileImporter;
|
|
13
|
-
private importAsync;
|
|
14
|
-
private importFile;
|
|
15
|
-
private parseContextFromFile;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextImportService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ContextImportService>;
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { MessageService } from '@igo2/core/message';
|
|
2
|
-
import { IgoMap, StyleListService, StyleService, VectorLayer } from '@igo2/geo';
|
|
3
|
-
import { DetailedContext, ExtraFeatures } from '../../context-manager/shared/context.interface';
|
|
4
|
-
import { ContextService } from '../../context-manager/shared/context.service';
|
|
5
|
-
export declare function handleFileImportSuccess(file: File, context: DetailedContext, messageService: MessageService, contextService: ContextService): void;
|
|
6
|
-
export declare function handleFileImportError(file: File, error: Error, messageService: MessageService, sizeMb?: number): void;
|
|
7
|
-
export declare function handleInvalidFileImportError(file: File, error: Error, messageService: MessageService): void;
|
|
8
|
-
export declare function handleSizeFileImportError(file: File, error: Error, messageService: MessageService, sizeMb: number): void;
|
|
9
|
-
export declare function handleUnreadbleFileImportError(file: File, error: Error, messageService: MessageService): void;
|
|
10
|
-
export declare function handleNothingToImportError(file: File, messageService: MessageService): void;
|
|
11
|
-
export declare function addContextToContextList(context: DetailedContext, contextTitle: string, contextService: ContextService): void;
|
|
12
|
-
export declare function getFileExtension(file: File): string;
|
|
13
|
-
export declare function computeLayerTitleFromFile(file: File): string;
|
|
14
|
-
export declare function addImportedFeaturesToMap(extraFeatures: ExtraFeatures, map: IgoMap): VectorLayer;
|
|
15
|
-
export declare function addImportedFeaturesStyledToMap(extraFeatures: ExtraFeatures, map: IgoMap, styleListService: StyleListService, styleService: StyleService): VectorLayer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './context-export.errors';
|
|
2
|
-
export * from './context-import.errors';
|
|
3
|
-
export * from './context-export.service';
|
|
4
|
-
export * from './context-import.service';
|
|
5
|
-
export * from './context-export.interface';
|
|
6
|
-
export * from './context-import.utils';
|
|
7
|
-
export * from './context-export.utils';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MessageService } from '@igo2/core/message';
|
|
3
|
-
import { Context } from '../shared/context.interface';
|
|
4
|
-
import { ContextService } from '../shared/context.service';
|
|
5
|
-
import { ContextEditComponent } from './context-edit.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ContextEditBindingDirective implements OnInit, OnDestroy {
|
|
8
|
-
private contextService;
|
|
9
|
-
private messageService;
|
|
10
|
-
private component;
|
|
11
|
-
private editedContext$$;
|
|
12
|
-
submitSuccessed: EventEmitter<Context>;
|
|
13
|
-
onEdit(context: Context): void;
|
|
14
|
-
constructor(component: ContextEditComponent, contextService: ContextService, messageService: MessageService);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
private handleEditedContextChange;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextEditBindingDirective, [{ self: true; }, null, null]>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextEditBindingDirective, "[igoContextEditBinding]", never, {}, { "submitSuccessed": "submitSuccessed"; }, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Context } from '../shared/context.interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ContextEditComponent {
|
|
5
|
-
private cd;
|
|
6
|
-
get context(): Context;
|
|
7
|
-
set context(value: Context);
|
|
8
|
-
private _context;
|
|
9
|
-
submitForm: EventEmitter<Context>;
|
|
10
|
-
constructor(cd: ChangeDetectorRef);
|
|
11
|
-
refresh(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextEditComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextEditComponent, "igo-context-edit", never, { "context": { "alias": "context"; "required": false; }; }, { "submitForm": "submitForm"; }, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Clipboard } from '@angular/cdk/clipboard';
|
|
2
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
3
|
-
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
-
import { MessageService } from '@igo2/core/message';
|
|
5
|
-
import { Context } from '../shared/context.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ContextFormComponent implements OnInit {
|
|
8
|
-
private clipboard;
|
|
9
|
-
private formBuilder;
|
|
10
|
-
private messageService;
|
|
11
|
-
form: UntypedFormGroup;
|
|
12
|
-
prefix: string;
|
|
13
|
-
get btnSubmitText(): string;
|
|
14
|
-
set btnSubmitText(value: string);
|
|
15
|
-
private _btnSubmitText;
|
|
16
|
-
get context(): Context;
|
|
17
|
-
set context(value: Context);
|
|
18
|
-
private _context;
|
|
19
|
-
get disabled(): boolean;
|
|
20
|
-
set disabled(value: boolean);
|
|
21
|
-
private _disabled;
|
|
22
|
-
submitForm: EventEmitter<any>;
|
|
23
|
-
clone: EventEmitter<any>;
|
|
24
|
-
delete: EventEmitter<any>;
|
|
25
|
-
constructor(clipboard: Clipboard, formBuilder: UntypedFormBuilder, messageService: MessageService);
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
handleFormSubmit(value: any): void;
|
|
28
|
-
copyTextToClipboard(): void;
|
|
29
|
-
private buildForm;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextFormComponent, never>;
|
|
31
|
-
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>;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './context-form.component';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { AuthService } from '@igo2/auth';
|
|
3
|
-
import { StorageService } from '@igo2/core/storage';
|
|
4
|
-
import { TypePermission } from '../shared/context.enum';
|
|
5
|
-
import { DetailedContext } from '../shared/context.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ContextItemComponent {
|
|
8
|
-
auth: AuthService;
|
|
9
|
-
private storageService;
|
|
10
|
-
typePermission: typeof TypePermission;
|
|
11
|
-
color: string;
|
|
12
|
-
collapsed: boolean;
|
|
13
|
-
showFavorite: boolean;
|
|
14
|
-
context: DetailedContext;
|
|
15
|
-
default: boolean;
|
|
16
|
-
selected: boolean;
|
|
17
|
-
edit: EventEmitter<DetailedContext>;
|
|
18
|
-
delete: EventEmitter<DetailedContext>;
|
|
19
|
-
save: EventEmitter<DetailedContext>;
|
|
20
|
-
clone: EventEmitter<DetailedContext>;
|
|
21
|
-
hide: EventEmitter<DetailedContext>;
|
|
22
|
-
show: EventEmitter<DetailedContext>;
|
|
23
|
-
favorite: EventEmitter<DetailedContext>;
|
|
24
|
-
managePermissions: EventEmitter<DetailedContext>;
|
|
25
|
-
manageTools: EventEmitter<DetailedContext>;
|
|
26
|
-
get hidden(): boolean;
|
|
27
|
-
get canShare(): boolean;
|
|
28
|
-
constructor(auth: AuthService, storageService: StorageService);
|
|
29
|
-
favoriteClick(context: DetailedContext): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextItemComponent, never>;
|
|
31
|
-
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>;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './context-item.component';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { AuthService } from '@igo2/auth';
|
|
3
|
-
import { ConfirmDialogService } from '@igo2/common/confirm-dialog';
|
|
4
|
-
import { LanguageService } from '@igo2/core/language';
|
|
5
|
-
import { MessageService } from '@igo2/core/message';
|
|
6
|
-
import { StorageService } from '@igo2/core/storage';
|
|
7
|
-
import { MapService } from '@igo2/geo';
|
|
8
|
-
import { Context, DetailedContext } from '../shared/context.interface';
|
|
9
|
-
import { ContextService } from '../shared/context.service';
|
|
10
|
-
import { ContextListComponent } from './context-list.component';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class ContextListBindingDirective implements OnInit, OnDestroy {
|
|
13
|
-
private contextService;
|
|
14
|
-
private mapService;
|
|
15
|
-
private languageService;
|
|
16
|
-
private confirmDialogService;
|
|
17
|
-
private messageService;
|
|
18
|
-
private auth;
|
|
19
|
-
private storageService;
|
|
20
|
-
private cdRef;
|
|
21
|
-
private component;
|
|
22
|
-
private contexts$$;
|
|
23
|
-
private selectedContext$$;
|
|
24
|
-
private defaultContextId$$;
|
|
25
|
-
private previousMessageId;
|
|
26
|
-
onSelect(context: Context): void;
|
|
27
|
-
onEdit(context: Context): void;
|
|
28
|
-
onSave(context: Context): void;
|
|
29
|
-
onFavorite(context: Context): void;
|
|
30
|
-
onManageTools(context: Context): void;
|
|
31
|
-
onManagePermissions(context: Context): void;
|
|
32
|
-
onDelete(context: Context): void;
|
|
33
|
-
onClone(context: DetailedContext): void;
|
|
34
|
-
onCreate(opts: {
|
|
35
|
-
title: string;
|
|
36
|
-
empty: boolean;
|
|
37
|
-
}): void;
|
|
38
|
-
loadContexts(): void;
|
|
39
|
-
showHiddenContexts(): void;
|
|
40
|
-
onShowContext(context: DetailedContext): void;
|
|
41
|
-
onHideContext(context: DetailedContext): void;
|
|
42
|
-
constructor(component: ContextListComponent, contextService: ContextService, mapService: MapService, languageService: LanguageService, confirmDialogService: ConfirmDialogService, messageService: MessageService, auth: AuthService, storageService: StorageService, cdRef: ChangeDetectorRef);
|
|
43
|
-
ngOnInit(): void;
|
|
44
|
-
ngOnDestroy(): void;
|
|
45
|
-
private handleContextsChange;
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextListBindingDirective, [{ self: true; }, null, null, null, null, null, null, null, null]>;
|
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextListBindingDirective, "[igoContextListBinding]", never, {}, {}, never, never, true, never>;
|
|
48
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { AuthService } from '@igo2/auth';
|
|
4
|
-
import { ActionStore, ActionbarMode } from '@igo2/common/action';
|
|
5
|
-
import { ConfigService } from '@igo2/core/config';
|
|
6
|
-
import { LanguageService } from '@igo2/core/language';
|
|
7
|
-
import { StorageService } from '@igo2/core/storage';
|
|
8
|
-
import type { IgoMap } from '@igo2/geo';
|
|
9
|
-
import { BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
10
|
-
import { ContextProfils, ContextServiceOptions, ContextUserPermission, ContextsList, DetailedContext } from '../shared/context.interface';
|
|
11
|
-
import { ContextListControlsEnum } from './context-list.enum';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class ContextListComponent implements OnInit, OnDestroy {
|
|
14
|
-
private cdRef;
|
|
15
|
-
configService: ConfigService;
|
|
16
|
-
auth: AuthService;
|
|
17
|
-
private dialog;
|
|
18
|
-
private languageService;
|
|
19
|
-
private storageService;
|
|
20
|
-
contextConfigs: ContextServiceOptions;
|
|
21
|
-
private contextsInitial;
|
|
22
|
-
contexts$: BehaviorSubject<ContextsList>;
|
|
23
|
-
change$: ReplaySubject<void>;
|
|
24
|
-
private change$$;
|
|
25
|
-
get contexts(): ContextsList;
|
|
26
|
-
set contexts(value: ContextsList);
|
|
27
|
-
private _contexts;
|
|
28
|
-
selectedContext: DetailedContext;
|
|
29
|
-
map: IgoMap;
|
|
30
|
-
get defaultContextId(): string;
|
|
31
|
-
set defaultContextId(value: string);
|
|
32
|
-
private _defaultContextId;
|
|
33
|
-
collapsed: {
|
|
34
|
-
contextScope: any;
|
|
35
|
-
}[];
|
|
36
|
-
select: EventEmitter<DetailedContext>;
|
|
37
|
-
unselect: EventEmitter<DetailedContext>;
|
|
38
|
-
edit: EventEmitter<DetailedContext>;
|
|
39
|
-
delete: EventEmitter<DetailedContext>;
|
|
40
|
-
save: EventEmitter<DetailedContext>;
|
|
41
|
-
clone: EventEmitter<DetailedContext>;
|
|
42
|
-
create: EventEmitter<{
|
|
43
|
-
title: string;
|
|
44
|
-
empty: boolean;
|
|
45
|
-
}>;
|
|
46
|
-
hide: EventEmitter<DetailedContext>;
|
|
47
|
-
show: EventEmitter<DetailedContext>;
|
|
48
|
-
showHiddenContexts: EventEmitter<boolean>;
|
|
49
|
-
favorite: EventEmitter<DetailedContext>;
|
|
50
|
-
managePermissions: EventEmitter<DetailedContext>;
|
|
51
|
-
manageTools: EventEmitter<DetailedContext>;
|
|
52
|
-
filterPermissionsChanged: EventEmitter<ContextUserPermission[]>;
|
|
53
|
-
titleMapping: {
|
|
54
|
-
ours: string;
|
|
55
|
-
shared: string;
|
|
56
|
-
public: string;
|
|
57
|
-
};
|
|
58
|
-
users: ContextProfils[];
|
|
59
|
-
permissions: ContextUserPermission[];
|
|
60
|
-
actionStore: ActionStore;
|
|
61
|
-
actionbarMode: ActionbarMode;
|
|
62
|
-
color: string;
|
|
63
|
-
showHidden: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Context filter term
|
|
66
|
-
*/
|
|
67
|
-
set term(value: string);
|
|
68
|
-
get term(): string;
|
|
69
|
-
_term: string;
|
|
70
|
-
get sortedAlpha(): boolean;
|
|
71
|
-
set sortedAlpha(value: boolean);
|
|
72
|
-
private _sortedAlpha;
|
|
73
|
-
showContextFilter: ContextListControlsEnum;
|
|
74
|
-
thresholdToFilter: number;
|
|
75
|
-
get isEmpty(): boolean;
|
|
76
|
-
constructor(cdRef: ChangeDetectorRef, configService: ConfigService, auth: AuthService, dialog: MatDialog, languageService: LanguageService, storageService: StorageService);
|
|
77
|
-
ngOnInit(): void;
|
|
78
|
-
private next;
|
|
79
|
-
private filterContextsList;
|
|
80
|
-
ngOnDestroy(): void;
|
|
81
|
-
showFilter(): boolean;
|
|
82
|
-
sortContextsList(contexts: ContextsList): any;
|
|
83
|
-
normalize(str: string): string;
|
|
84
|
-
toggleSort(): void;
|
|
85
|
-
clearFilter(): void;
|
|
86
|
-
createContext(empty?: boolean): void;
|
|
87
|
-
getPermission(user?: any): ContextUserPermission;
|
|
88
|
-
handleToggleCategory(user: any, parent?: any): void;
|
|
89
|
-
hideContext(context: DetailedContext): void;
|
|
90
|
-
showContext(context: DetailedContext): void;
|
|
91
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextListComponent, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextListComponent, "igo-context-list", never, { "contexts": { "alias": "contexts"; "required": false; }; "selectedContext": { "alias": "selectedContext"; "required": false; }; "map": { "alias": "map"; "required": false; }; "defaultContextId": { "alias": "defaultContextId"; "required": false; }; "term": { "alias": "term"; "required": false; }; }, { "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>;
|
|
93
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ContextEditBindingDirective, ContextEditComponent } from './context-edit';
|
|
2
|
-
import { ContextFormComponent } from './context-form';
|
|
3
|
-
import { ContextItemComponent } from './context-item';
|
|
4
|
-
import { ContextListBindingDirective, ContextListComponent } from './context-list';
|
|
5
|
-
import { ContextPermissionsBindingDirective, ContextPermissionsComponent } from './context-permissions';
|
|
6
|
-
import { LayerContextDirective, MapContextDirective } from './shared';
|
|
7
|
-
export 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];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./context-list/context-list.component";
|
|
4
|
-
import * as i2 from "./context-list/context-list-binding.directive";
|
|
5
|
-
import * as i3 from "./context-item/context-item.component";
|
|
6
|
-
import * as i4 from "./context-form/context-form.component";
|
|
7
|
-
import * as i5 from "./context-edit/context-edit.component";
|
|
8
|
-
import * as i6 from "./context-edit/context-edit-binding.directive";
|
|
9
|
-
import * as i7 from "./context-permissions/context-permissions.component";
|
|
10
|
-
import * as i8 from "./context-permissions/context-permissions-binding.directive";
|
|
11
|
-
import * as i9 from "./shared/layer-context.directive";
|
|
12
|
-
import * as i10 from "./shared/map-context.directive";
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated import the components/directives directly or CONTEXT_MANAGER_DIRECTIVES for the set
|
|
15
|
-
*/
|
|
16
|
-
export declare class IgoContextManagerModule {
|
|
17
|
-
static forRoot(): ModuleWithProviders<IgoContextManagerModule>;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoContextManagerModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextManagerModule, never, [typeof i1.ContextListComponent, typeof i2.ContextListBindingDirective, typeof i3.ContextItemComponent, typeof i4.ContextFormComponent, typeof i5.ContextEditComponent, typeof i6.ContextEditBindingDirective, typeof i7.ContextPermissionsComponent, typeof i8.ContextPermissionsBindingDirective, typeof i9.LayerContextDirective, typeof i10.MapContextDirective], [typeof i1.ContextListComponent, typeof i2.ContextListBindingDirective, typeof i3.ContextItemComponent, typeof i4.ContextFormComponent, typeof i5.ContextEditComponent, typeof i6.ContextEditBindingDirective, typeof i7.ContextPermissionsComponent, typeof i8.ContextPermissionsBindingDirective, typeof i9.LayerContextDirective, typeof i10.MapContextDirective]>;
|
|
20
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextManagerModule>;
|
|
21
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { LanguageService } from '@igo2/core/language';
|
|
3
|
-
import { MessageService } from '@igo2/core/message';
|
|
4
|
-
import { Context, ContextPermission } from '../shared/context.interface';
|
|
5
|
-
import { ContextService } from '../shared/context.service';
|
|
6
|
-
import { ContextPermissionsComponent } from './context-permissions.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ContextPermissionsBindingDirective implements OnInit, OnDestroy {
|
|
9
|
-
private contextService;
|
|
10
|
-
private languageService;
|
|
11
|
-
private messageService;
|
|
12
|
-
private cd;
|
|
13
|
-
private component;
|
|
14
|
-
private editedContext$$;
|
|
15
|
-
onAddPermission(permission: ContextPermission): void;
|
|
16
|
-
onRemovePermission(permission: ContextPermission): void;
|
|
17
|
-
onScopeChanged(context: Context): void;
|
|
18
|
-
constructor(component: ContextPermissionsComponent, contextService: ContextService, languageService: LanguageService, messageService: MessageService, cd: ChangeDetectorRef);
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
ngOnDestroy(): void;
|
|
21
|
-
private handleEditedContextChange;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextPermissionsBindingDirective, [{ self: true; }, null, null, null, null]>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextPermissionsBindingDirective, "[igoContextPermissionsBinding]", never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
|
-
import { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
|
4
|
-
import { AuthService } from '@igo2/auth';
|
|
5
|
-
import { ConfigService } from '@igo2/core/config';
|
|
6
|
-
import { Subscription } from 'rxjs';
|
|
7
|
-
import { Context, ContextPermission, ContextPermissionsList, ContextProfils } from '../shared/context.interface';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ContextPermissionsComponent implements OnInit {
|
|
10
|
-
private formBuilder;
|
|
11
|
-
private cd;
|
|
12
|
-
private http;
|
|
13
|
-
authService: AuthService;
|
|
14
|
-
private config;
|
|
15
|
-
form: UntypedFormGroup;
|
|
16
|
-
get context(): Context;
|
|
17
|
-
set context(value: Context);
|
|
18
|
-
private _context;
|
|
19
|
-
get permissions(): ContextPermissionsList;
|
|
20
|
-
set permissions(value: ContextPermissionsList);
|
|
21
|
-
private _permissions;
|
|
22
|
-
get profils(): ContextProfils[];
|
|
23
|
-
set profils(value: ContextProfils[]);
|
|
24
|
-
private _profils;
|
|
25
|
-
get canWrite(): boolean;
|
|
26
|
-
private baseUrlProfils;
|
|
27
|
-
formControl: UntypedFormControl;
|
|
28
|
-
formValueChanges$$: Subscription;
|
|
29
|
-
addPermission: EventEmitter<ContextPermission>;
|
|
30
|
-
removePermission: EventEmitter<ContextPermission>;
|
|
31
|
-
scopeChanged: EventEmitter<Context>;
|
|
32
|
-
constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, http: HttpClient, authService: AuthService, config: ConfigService);
|
|
33
|
-
ngOnInit(): void;
|
|
34
|
-
displayFn(profil?: ContextProfils): string | undefined;
|
|
35
|
-
handleFormSubmit(value: any): void;
|
|
36
|
-
private buildForm;
|
|
37
|
-
onProfilSelected(value: any): void;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextPermissionsComponent, never>;
|
|
39
|
-
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>;
|
|
40
|
-
}
|