adb-shared 22.0.0-beta.0 → 22.0.0-beta.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/package.json
CHANGED
|
@@ -5,10 +5,10 @@ import { Extent } from "ol/extent.js";
|
|
|
5
5
|
import Map from "ol/Map.js";
|
|
6
6
|
import * as i11 from "@angular/router";
|
|
7
7
|
import { ActivatedRoute, ParamMap, Params, Router } from "@angular/router";
|
|
8
|
-
import { HttpClient } from "@angular/common/http";
|
|
9
8
|
import * as i10 from "@angular/forms";
|
|
10
9
|
import { ControlValueAccessor, FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
11
|
-
import { Subscription } from "rxjs";
|
|
10
|
+
import { Observable, Subscription } from "rxjs";
|
|
11
|
+
import { HttpClient } from "@angular/common/http";
|
|
12
12
|
import * as i8 from "@angular/common";
|
|
13
13
|
import * as i9 from "adb-shared";
|
|
14
14
|
import * as i12 from "@ngx-translate/core";
|
|
@@ -20,7 +20,6 @@ export interface AdbMapConfig {
|
|
|
20
20
|
api: string;
|
|
21
21
|
artfaktaTaxonLists: string;
|
|
22
22
|
dynamic?: boolean;
|
|
23
|
-
gridOnly?: boolean;
|
|
24
23
|
enableClusterSelection?: boolean;
|
|
25
24
|
dataProviderIds?: readonly number[];
|
|
26
25
|
}
|
|
@@ -31,7 +30,6 @@ export declare class AdbMapConfigService {
|
|
|
31
30
|
readonly observationFeatures: string;
|
|
32
31
|
readonly taxaListsApi: string;
|
|
33
32
|
readonly dynamic: boolean;
|
|
34
|
-
readonly gridOnly: boolean;
|
|
35
33
|
readonly enableClusterSelection: boolean;
|
|
36
34
|
readonly dataProviderIds: readonly number[] | undefined;
|
|
37
35
|
constructor(config: AdbMapConfig);
|
|
@@ -186,13 +184,13 @@ export declare class AdbMapComponent implements AfterViewInit, OnDestroy {
|
|
|
186
184
|
private activatedRoute;
|
|
187
185
|
private config;
|
|
188
186
|
private router;
|
|
189
|
-
private http;
|
|
190
187
|
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
191
188
|
showHeader: import("@angular/core").InputSignal<boolean>;
|
|
192
189
|
allowPresentationMode: import("@angular/core").InputSignal<boolean>;
|
|
193
190
|
presentationMode: import("@angular/core").InputSignal<MapPresentationMode>;
|
|
194
191
|
private route;
|
|
195
192
|
activePresentationMode: import("@angular/core").Signal<any>;
|
|
193
|
+
private readonly dataSource;
|
|
196
194
|
private requestedParams;
|
|
197
195
|
settingsOpen: import("@angular/core").WritableSignal<boolean>;
|
|
198
196
|
savingSettings: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -230,7 +228,7 @@ export declare class AdbMapComponent implements AfterViewInit, OnDestroy {
|
|
|
230
228
|
map: Map;
|
|
231
229
|
private mapReady;
|
|
232
230
|
queryParams: Params;
|
|
233
|
-
constructor(activatedRoute: ActivatedRoute, config: AdbMapConfigService, router: Router
|
|
231
|
+
constructor(activatedRoute: ActivatedRoute, config: AdbMapConfigService, router: Router);
|
|
234
232
|
ngAfterViewInit(): void;
|
|
235
233
|
openSettings(): void;
|
|
236
234
|
cancelSettings(button: HTMLButtonElement): void;
|
|
@@ -446,4 +444,22 @@ interface MapProvider {
|
|
|
446
444
|
wms: boolean;
|
|
447
445
|
params?: any;
|
|
448
446
|
}
|
|
447
|
+
export interface AdbMapRequest {
|
|
448
|
+
url: string;
|
|
449
|
+
params: Params;
|
|
450
|
+
metersPerPixel: number;
|
|
451
|
+
dataProviderIds?: readonly number[];
|
|
452
|
+
}
|
|
453
|
+
export interface AdbMapDataSource {
|
|
454
|
+
load(request: AdbMapRequest): Observable<GeoJson>;
|
|
455
|
+
}
|
|
456
|
+
/** Default transport for the shared BFF observation-features contract. */
|
|
457
|
+
export declare class AdbBffMapDataSource implements AdbMapDataSource {
|
|
458
|
+
private readonly http;
|
|
459
|
+
load(request: AdbMapRequest): Observable<GeoJson>;
|
|
460
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbBffMapDataSource, never>;
|
|
461
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
462
|
+
}
|
|
463
|
+
/** Applications normally use the default BFF source without overriding this token. */
|
|
464
|
+
export declare const ADB_MAP_DATA_SOURCE: InjectionToken<AdbMapDataSource>;
|
|
449
465
|
export {};
|
package/types/adb-shared.d.ts
CHANGED
|
@@ -902,16 +902,21 @@ export declare class AdbPickerConfigService {
|
|
|
902
902
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbPickerConfigService, never>;
|
|
903
903
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
904
904
|
}
|
|
905
|
-
interface SOSArea {
|
|
906
|
-
name: string;
|
|
907
|
-
areaType: string;
|
|
908
|
-
featureId: string;
|
|
909
|
-
}
|
|
910
905
|
interface Area {
|
|
911
|
-
|
|
906
|
+
identifier: string;
|
|
912
907
|
name: string;
|
|
913
908
|
areaType: string;
|
|
914
909
|
featureId: string;
|
|
910
|
+
boundingBox: {
|
|
911
|
+
bottomRight: {
|
|
912
|
+
latitude: number;
|
|
913
|
+
longitude: number;
|
|
914
|
+
};
|
|
915
|
+
topLeft: {
|
|
916
|
+
latitude: number;
|
|
917
|
+
longitude: number;
|
|
918
|
+
};
|
|
919
|
+
};
|
|
915
920
|
}
|
|
916
921
|
interface PagedResult<T> {
|
|
917
922
|
records?: Array<T>;
|
|
@@ -998,9 +1003,9 @@ export declare class AdbAreaPickerComponent implements ControlValueAccessor {
|
|
|
998
1003
|
private onTouched;
|
|
999
1004
|
constructor(translate: TranslateService, config: AdbPickerConfigService, http: HttpClient);
|
|
1000
1005
|
getAreas: (query: string) => import("rxjs").Observable<PagedResult<Area>>;
|
|
1001
|
-
displayArea: (area:
|
|
1002
|
-
|
|
1003
|
-
onSelect(area:
|
|
1006
|
+
displayArea: (area: Area) => string;
|
|
1007
|
+
loadAreaIdentifier: (identifier: string) => import("rxjs").Observable<Area>;
|
|
1008
|
+
onSelect(area: Area | null): void;
|
|
1004
1009
|
onFocus(): void;
|
|
1005
1010
|
writeValue(value: any): void;
|
|
1006
1011
|
registerOnChange(fn: any): void;
|