adb-shared 22.0.0-beta.4 → 22.0.0-beta.5
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
|
@@ -25,7 +25,7 @@ export interface AdbMapConfig {
|
|
|
25
25
|
enableClusterSelection?: boolean;
|
|
26
26
|
dataProviderIds?: readonly number[];
|
|
27
27
|
}
|
|
28
|
-
export type AdbMapFilterType = 'taxon' | 'area' | 'ownArea' | 'time' | 'redlist' | 'risklist' | 'taxonLists' | 'datasources';
|
|
28
|
+
export type AdbMapFilterType = 'taxon' | 'area' | 'location' | 'ownArea' | 'time' | 'redlist' | 'risklist' | 'taxonLists' | 'datasources';
|
|
29
29
|
export declare const ADB_MAP_CONFIG: InjectionToken<AdbMapConfig>;
|
|
30
30
|
export declare class AdbMapConfigService {
|
|
31
31
|
readonly artfaktaTaxonLists: string;
|
|
@@ -346,12 +346,15 @@ export declare class AdbMapFilters implements OnInit, OnDestroy {
|
|
|
346
346
|
private http;
|
|
347
347
|
private router;
|
|
348
348
|
private activatedRoute;
|
|
349
|
+
private static nextLocationInputId;
|
|
350
|
+
readonly locationInputId: string;
|
|
349
351
|
inline: boolean;
|
|
350
352
|
readonly hiddenFilters: import("@angular/core").InputSignal<AdbMapFilterType[]>;
|
|
351
353
|
readonly visibleFilters: import("@angular/core").Signal<{
|
|
352
354
|
taxon: boolean;
|
|
353
355
|
time: boolean;
|
|
354
356
|
area: boolean;
|
|
357
|
+
location: boolean;
|
|
355
358
|
ownArea: boolean;
|
|
356
359
|
taxaLists: boolean;
|
|
357
360
|
datasources: boolean;
|
package/types/adb-shared.d.ts
CHANGED
|
@@ -955,6 +955,7 @@ export declare class GenericPickerComponent<T> implements OnInit, OnDestroy {
|
|
|
955
955
|
loadById?: (id: any) => Observable<T>;
|
|
956
956
|
disabled: boolean;
|
|
957
957
|
placeholder: string;
|
|
958
|
+
inputId?: string;
|
|
958
959
|
itemTemplate: TemplateRef<any>;
|
|
959
960
|
selectItemChange: EventEmitter<T>;
|
|
960
961
|
focus: EventEmitter<FocusEvent>;
|
|
@@ -997,6 +998,10 @@ export declare class GenericPickerComponent<T> implements OnInit, OnDestroy {
|
|
|
997
998
|
"alias": "placeholder";
|
|
998
999
|
"required": false;
|
|
999
1000
|
};
|
|
1001
|
+
"inputId": {
|
|
1002
|
+
"alias": "inputId";
|
|
1003
|
+
"required": false;
|
|
1004
|
+
};
|
|
1000
1005
|
"initialValue": {
|
|
1001
1006
|
"alias": "initialValue";
|
|
1002
1007
|
"required": false;
|
|
@@ -1048,6 +1053,46 @@ export declare class AdbAreaPickerComponent implements ControlValueAccessor {
|
|
|
1048
1053
|
};
|
|
1049
1054
|
}, {}, never, ["*"], false, never>;
|
|
1050
1055
|
}
|
|
1056
|
+
interface LocationSearchResult {
|
|
1057
|
+
id: string;
|
|
1058
|
+
name: string;
|
|
1059
|
+
municipality?: string;
|
|
1060
|
+
}
|
|
1061
|
+
export declare class AdbLocationPickerComponent implements ControlValueAccessor, OnDestroy {
|
|
1062
|
+
private http;
|
|
1063
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
1064
|
+
readonly inputId: import("@angular/core").InputSignal<string>;
|
|
1065
|
+
readonly initialValue: import("@angular/core").WritableSignal<LocationSearchResult>;
|
|
1066
|
+
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
1067
|
+
private readonly locationsUrl;
|
|
1068
|
+
private lookup?;
|
|
1069
|
+
private onChange;
|
|
1070
|
+
private onTouched;
|
|
1071
|
+
constructor(http: HttpClient);
|
|
1072
|
+
readonly searchLocations: (query: string) => import("rxjs").Observable<{
|
|
1073
|
+
items: any[];
|
|
1074
|
+
}>;
|
|
1075
|
+
readonly displayLocation: (location: LocationSearchResult) => string;
|
|
1076
|
+
selectLocation(location: LocationSearchResult | null): void;
|
|
1077
|
+
writeValue(id: string | null): void;
|
|
1078
|
+
registerOnChange(fn: (id: string | null) => void): void;
|
|
1079
|
+
registerOnTouched(fn: () => void): void;
|
|
1080
|
+
setDisabledState(disabled: boolean): void;
|
|
1081
|
+
ngOnDestroy(): void;
|
|
1082
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbLocationPickerComponent, never>;
|
|
1083
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbLocationPickerComponent, "adb-location-picker", never, {
|
|
1084
|
+
"placeholder": {
|
|
1085
|
+
"alias": "placeholder";
|
|
1086
|
+
"required": false;
|
|
1087
|
+
"isSignal": true;
|
|
1088
|
+
};
|
|
1089
|
+
"inputId": {
|
|
1090
|
+
"alias": "inputId";
|
|
1091
|
+
"required": false;
|
|
1092
|
+
"isSignal": true;
|
|
1093
|
+
};
|
|
1094
|
+
}, {}, never, never, false, never>;
|
|
1095
|
+
}
|
|
1051
1096
|
export declare class AdbTaxonPickerComponent implements ControlValueAccessor {
|
|
1052
1097
|
private config;
|
|
1053
1098
|
private http;
|
|
@@ -1094,7 +1139,7 @@ export declare class AdbTaxonPickerComponent implements ControlValueAccessor {
|
|
|
1094
1139
|
export declare class AdbPickerModule {
|
|
1095
1140
|
static forRoot(config?: AdbPickerConfig): ModuleWithProviders<AdbPickerModule>;
|
|
1096
1141
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbPickerModule, never>;
|
|
1097
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4.FormsModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i3.TranslatePipe], [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent]>;
|
|
1142
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbLocationPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4.FormsModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i3.TranslatePipe], [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbLocationPickerComponent, typeof AdbTaxonPickerComponent]>;
|
|
1098
1143
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbPickerModule>;
|
|
1099
1144
|
}
|
|
1100
1145
|
export {};
|