@igo2/context 21.0.0-next.9 → 21.0.1-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 +171 -177
- package/fesm2022/igo2-context.mjs.map +1 -1
- package/package.json +6 -6
- package/types/igo2-context.d.ts +14 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/context",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.1-next.1",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "IGO Community",
|
|
6
6
|
"keywords": [
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"@angular/forms": "^21.0.0",
|
|
36
36
|
"@angular/material": "^21.0.0",
|
|
37
37
|
"@angular/platform-browser": "^21.0.0",
|
|
38
|
-
"@igo2/auth": "^21.0.
|
|
39
|
-
"@igo2/common": "^21.0.
|
|
40
|
-
"@igo2/core": "^21.0.
|
|
41
|
-
"@igo2/geo": "^21.0.
|
|
42
|
-
"@igo2/utils": "^21.0.
|
|
38
|
+
"@igo2/auth": "^21.0.1-next.1",
|
|
39
|
+
"@igo2/common": "^21.0.1-next.1",
|
|
40
|
+
"@igo2/core": "^21.0.1-next.1",
|
|
41
|
+
"@igo2/geo": "^21.0.1-next.1",
|
|
42
|
+
"@igo2/utils": "^21.0.1-next.1",
|
|
43
43
|
"ol": "^10.0.0",
|
|
44
44
|
"rxjs": "^7.8.0"
|
|
45
45
|
},
|
package/types/igo2-context.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { OnInit, ModuleWithProviders, OnDestroy } from '@angular/core';
|
|
3
3
|
import { UntypedFormGroup, FormGroup, UntypedFormControl } from '@angular/forms';
|
|
4
4
|
import { MatOption } from '@angular/material/core';
|
|
5
|
-
import { AnyLayerOptions, MapViewOptions, MapExtent, MapScaleLineOptions, MapAttributionOptions, VectorLayer, AnyLayer, IgoMap, Feature, ImportExportServiceOptions, LayerOptions, LayerGroupOptions, AnyDataSourceOptions } from '@igo2/geo';
|
|
5
|
+
import { AnyLayerOptions, MapViewOptions, MapExtent, MapScaleLineOptions, MapAttributionOptions, VectorLayer, AnyLayer, IgoMap, Feature, LayerService, ImportExportServiceOptions, LayerOptions, LayerGroupOptions, AnyDataSourceOptions } from '@igo2/geo';
|
|
6
6
|
import { BehaviorSubject, Subject, Observable, ReplaySubject, Subscription } from 'rxjs';
|
|
7
7
|
import { Tool } from '@igo2/common/tool';
|
|
8
8
|
import { Message, MessageService } from '@igo2/core/message';
|
|
@@ -157,6 +157,7 @@ declare class ContextService {
|
|
|
157
157
|
private exportService;
|
|
158
158
|
private shareMapService;
|
|
159
159
|
private route;
|
|
160
|
+
private destroyRef;
|
|
160
161
|
context$: BehaviorSubject<DetailedContext | undefined>;
|
|
161
162
|
contexts$: BehaviorSubject<ContextsList>;
|
|
162
163
|
defaultContextId$: BehaviorSubject<string | number | undefined>;
|
|
@@ -299,6 +300,7 @@ declare class ContextListComponent implements OnInit, OnDestroy {
|
|
|
299
300
|
private dialog;
|
|
300
301
|
private languageService;
|
|
301
302
|
private storageService;
|
|
303
|
+
private destroyRef;
|
|
302
304
|
contextConfigs: ContextServiceOptions;
|
|
303
305
|
private contextsInitial;
|
|
304
306
|
contexts$: BehaviorSubject<ContextsList>;
|
|
@@ -341,7 +343,7 @@ declare class ContextListComponent implements OnInit, OnDestroy {
|
|
|
341
343
|
shared: string;
|
|
342
344
|
public: string;
|
|
343
345
|
};
|
|
344
|
-
|
|
346
|
+
contextProfils: ContextProfils[];
|
|
345
347
|
permissions: ContextUserPermission[];
|
|
346
348
|
actionStore: ActionStore;
|
|
347
349
|
actionbarMode: ActionbarMode;
|
|
@@ -534,7 +536,8 @@ declare class PoiButtonComponent implements OnInit, OnDestroy {
|
|
|
534
536
|
private messageService;
|
|
535
537
|
private languageService;
|
|
536
538
|
private confirmDialogService;
|
|
537
|
-
|
|
539
|
+
private destroyRef;
|
|
540
|
+
selected?: Poi;
|
|
538
541
|
readonly map: _angular_core.InputSignal<IgoMap>;
|
|
539
542
|
readonly color: _angular_core.InputSignal<string | undefined>;
|
|
540
543
|
pois: Poi[];
|
|
@@ -713,7 +716,7 @@ declare function handleNothingToImportError(file: File, messageService: MessageS
|
|
|
713
716
|
declare function addContextToContextList(context: DetailedContext, contextTitle: string, contextService: ContextService): void;
|
|
714
717
|
declare function getFileExtension(file: File): string;
|
|
715
718
|
declare function computeLayerTitleFromFile(file: File): string;
|
|
716
|
-
declare function addImportedFeaturesToMap(extraFeatures: ExtraFeatures, map: IgoMap): VectorLayer;
|
|
719
|
+
declare function addImportedFeaturesToMap(extraFeatures: ExtraFeatures, map: IgoMap, layerService: LayerService): VectorLayer;
|
|
717
720
|
|
|
718
721
|
declare function handleFileExportError(error: Error, messageService: MessageService): void;
|
|
719
722
|
declare function handleFileExportSuccess(messageService: MessageService): void;
|
|
@@ -743,10 +746,12 @@ declare class PoiService {
|
|
|
743
746
|
declare class UserDialogComponent {
|
|
744
747
|
dialogRef: MatDialogRef<UserDialogComponent, any>;
|
|
745
748
|
private auth;
|
|
749
|
+
private tokenService;
|
|
746
750
|
private storageService;
|
|
747
|
-
user?: User;
|
|
751
|
+
user?: User | null;
|
|
748
752
|
exp?: string;
|
|
749
753
|
constructor();
|
|
754
|
+
get expirationTime(): string | undefined;
|
|
750
755
|
clearPreferences(): void;
|
|
751
756
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserDialogComponent, never>;
|
|
752
757
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserDialogComponent, "igo-user-dialog", never, {}, {}, never, never, true, never>;
|
|
@@ -761,21 +766,21 @@ interface EnvironmentOptions {
|
|
|
761
766
|
importExport?: ImportExportServiceOptions;
|
|
762
767
|
}
|
|
763
768
|
|
|
764
|
-
declare const ServiceType: readonly ["wms", "wmts", "arcgisrest", "imagearcgisrest", "tilearcgisrest"];
|
|
769
|
+
declare const ServiceType: readonly ["wms", "wmts", "xyz", "arcgisrest", "imagearcgisrest", "tilearcgisrest"];
|
|
765
770
|
type ServiceType = (typeof ServiceType)[number];
|
|
766
771
|
declare enum ServiceTypeEnum {
|
|
767
772
|
wms = 0,
|
|
768
773
|
wmts = 1,
|
|
769
774
|
arcgisrest = 2,
|
|
770
775
|
imagearcgisrest = 3,
|
|
771
|
-
tilearcgisrest = 4
|
|
776
|
+
tilearcgisrest = 4,
|
|
777
|
+
xyz = 5
|
|
772
778
|
}
|
|
773
779
|
declare const LayerParamsKeys: readonly ["id", "index", "names", "type", "version", "queryString", "visible", "opacity", "zIndex", "parentId"];
|
|
774
780
|
type LayerParamsKeys = (typeof LayerParamsKeys)[number];
|
|
775
781
|
declare const GroupParamsKeys: readonly ["title", "id", "expanded", "visible", "opacity", "zIndex", "parentId"];
|
|
776
782
|
type GroupParamsKeys = (typeof GroupParamsKeys)[number];
|
|
777
|
-
|
|
778
|
-
type PositionParamsKeys = (typeof PositionParamsKeys)[number];
|
|
783
|
+
type PositionParamsKeys = 'center' | 'zoom' | 'rotation' | 'projection';
|
|
779
784
|
interface ShareMapKeysDefinitions {
|
|
780
785
|
urlsKey: string;
|
|
781
786
|
contextKey: string;
|