adb-shared 6.1.9 → 6.2.0-beta
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/adb-shared.mjs +428 -215
- package/fesm2022/adb-shared.mjs.map +1 -1
- package/package.json +6 -4
- package/types/adb-shared.d.ts +192 -132
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adb-shared",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0-beta",
|
|
4
4
|
"author": "ADB",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@angular/common": ">= 19.x",
|
|
8
8
|
"@angular/core": ">= 19.x ",
|
|
9
9
|
"@angular/router": ">= 19.x ",
|
|
10
|
-
"@ngx-translate/core": ">=
|
|
11
|
-
"@ngx-translate/http-loader": ">=
|
|
12
|
-
"date-fns": ">= 4.x.x"
|
|
10
|
+
"@ngx-translate/core": ">= 17.x",
|
|
11
|
+
"@ngx-translate/http-loader": ">= 17.x",
|
|
12
|
+
"date-fns": ">= 4.x.x",
|
|
13
|
+
"leaflet": "1.9.4",
|
|
14
|
+
"leaflet-draw": "1.0.4"
|
|
13
15
|
},
|
|
14
16
|
"dependencies": {
|
|
15
17
|
"tslib": "^2.3.0"
|
package/types/adb-shared.d.ts
CHANGED
|
@@ -1,51 +1,47 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, OnDestroy, EventEmitter, ElementRef, AfterViewInit, Renderer2, ModuleWithProviders, PipeTransform, ComponentRef, ViewContainerRef, ComponentFactoryResolver, RendererFactory2, ApplicationRef, Injector, TemplateRef, InjectionToken } from '@angular/core';
|
|
3
|
-
import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
4
|
-
import * as i3 from '@angular/router';
|
|
5
|
-
import { Router, ActivatedRoute } from '@angular/router';
|
|
6
3
|
import * as i4 from '@ngx-translate/core';
|
|
7
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
6
|
+
import * as i5 from '@angular/router';
|
|
7
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
8
8
|
import * as i2 from '@angular/common';
|
|
9
9
|
import * as i4$1 from '@angular/forms';
|
|
10
10
|
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
11
11
|
import * as rxjs from 'rxjs';
|
|
12
12
|
import { Observable } from 'rxjs';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
keys: Link2$1;
|
|
26
|
-
mySpecies: Link2$1;
|
|
27
|
-
lists: Link2$1;
|
|
28
|
-
imageRec: Link2$1;
|
|
29
|
-
filter: Link2$1;
|
|
30
|
-
observations: Link2$1;
|
|
31
|
-
nameAndRelationship: Link2$1;
|
|
32
|
-
nameSearch: Link2$1;
|
|
33
|
-
match: Link2$1;
|
|
34
|
-
createAccountLink: string;
|
|
35
|
-
artfaktaUrl: string;
|
|
14
|
+
interface Navigation {
|
|
15
|
+
home: Link2;
|
|
16
|
+
report: Link2;
|
|
17
|
+
wanted: Link2;
|
|
18
|
+
checklist: Link2;
|
|
19
|
+
createAccountLink: Link2;
|
|
20
|
+
observations: Link2;
|
|
21
|
+
fieldDiary: Link2;
|
|
22
|
+
subcriptions: Link2;
|
|
23
|
+
events: Link2;
|
|
24
|
+
fyndregler: Link2;
|
|
36
25
|
artportalenUrl: string;
|
|
37
|
-
|
|
26
|
+
artfaktaUrl: string;
|
|
38
27
|
}
|
|
39
|
-
interface Link2
|
|
28
|
+
interface Link2 {
|
|
40
29
|
transId: string;
|
|
41
|
-
url
|
|
30
|
+
url: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class EnvironmentService {
|
|
34
|
+
environment: any;
|
|
35
|
+
constructor(environment: any);
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentService, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentService>;
|
|
42
38
|
}
|
|
43
39
|
|
|
44
|
-
declare class
|
|
40
|
+
declare class ArtportalenNavComponent implements OnInit, OnDestroy {
|
|
45
41
|
private httpClient;
|
|
46
42
|
private router;
|
|
47
|
-
private envService;
|
|
48
43
|
trans: TranslateService;
|
|
44
|
+
private envService;
|
|
49
45
|
private subscription;
|
|
50
46
|
loginClicked: EventEmitter<any>;
|
|
51
47
|
logoutClicked: EventEmitter<any>;
|
|
@@ -55,25 +51,43 @@ declare class ADBNavComponent implements OnInit, OnDestroy {
|
|
|
55
51
|
translationFinished: boolean;
|
|
56
52
|
lastPosition: number;
|
|
57
53
|
set userName(fullName: string);
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
navigation: Navigation;
|
|
55
|
+
url: string;
|
|
60
56
|
showNavMenu: boolean;
|
|
61
57
|
showUserMenu: boolean;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
constructor(httpClient: HttpClient, router: Router, envService: EnvironmentService$1, trans: TranslateService);
|
|
58
|
+
showReport: boolean;
|
|
59
|
+
showObservations: boolean;
|
|
60
|
+
showSubs: boolean;
|
|
61
|
+
constructor(httpClient: HttpClient, router: Router, trans: TranslateService, envService: EnvironmentService);
|
|
67
62
|
ngOnInit(): void;
|
|
68
|
-
private initTranslations;
|
|
69
|
-
private loadTranslation;
|
|
70
63
|
showMenuDropdown(show: boolean): void;
|
|
71
64
|
setLanguage(lang: any): void;
|
|
65
|
+
onUserClick(): void;
|
|
72
66
|
login(): void;
|
|
73
67
|
logout(): void;
|
|
68
|
+
private initTranslations;
|
|
69
|
+
private loadTranslation;
|
|
74
70
|
ngOnDestroy(): void;
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenNavComponent, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArtportalenNavComponent, "adb-artportalen-nav", never, { "showPattern": { "alias": "showPattern"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; }, { "loginClicked": "loginClicked"; "logoutClicked": "logoutClicked"; "dropMenuChange": "dropMenuChange"; }, never, ["*"], false, never>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare class ArtportalenFooterComponent implements OnInit, OnDestroy {
|
|
76
|
+
private httpClient;
|
|
77
|
+
private envService;
|
|
78
|
+
trans: TranslateService;
|
|
79
|
+
private subscription;
|
|
80
|
+
translationFinished: boolean;
|
|
81
|
+
url: string;
|
|
82
|
+
navigation: Navigation;
|
|
83
|
+
baseUrl: any;
|
|
84
|
+
constructor(httpClient: HttpClient, envService: EnvironmentService, trans: TranslateService);
|
|
85
|
+
ngOnInit(): void;
|
|
86
|
+
private initTranslations;
|
|
87
|
+
private loadTranslation;
|
|
88
|
+
ngOnDestroy(): void;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenFooterComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArtportalenFooterComponent, "adb-artportalen-footer", never, {}, {}, never, never, false, never>;
|
|
77
91
|
}
|
|
78
92
|
|
|
79
93
|
declare class ClickOutsideDirective {
|
|
@@ -279,100 +293,14 @@ declare class PagerInlineComponent extends PagerBaseDirective {
|
|
|
279
293
|
|
|
280
294
|
declare class AdbPagersModule {
|
|
281
295
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbPagersModule, never>;
|
|
282
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPagersModule, [typeof InfiniteScrollComponent, typeof PagerComponent, typeof PagerInlineComponent], [typeof i2.CommonModule, typeof
|
|
296
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPagersModule, [typeof InfiniteScrollComponent, typeof PagerComponent, typeof PagerInlineComponent], [typeof i2.CommonModule, typeof i5.RouterModule], [typeof InfiniteScrollComponent, typeof PagerComponent, typeof PagerInlineComponent]>;
|
|
283
297
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbPagersModule>;
|
|
284
298
|
}
|
|
285
299
|
|
|
286
|
-
declare class ADBHeaderModule {
|
|
287
|
-
static forRoot(environment: any): ModuleWithProviders<ADBHeaderModule>;
|
|
288
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ADBHeaderModule, never>;
|
|
289
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ADBHeaderModule, [typeof ADBNavComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.TranslateModule, typeof AdbDirectivesModule, typeof AdbDropdownModule, typeof AdbPagersModule], [typeof ADBNavComponent]>;
|
|
290
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ADBHeaderModule>;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
interface Navigation {
|
|
294
|
-
home: Link2;
|
|
295
|
-
report: Link2;
|
|
296
|
-
wanted: Link2;
|
|
297
|
-
checklist: Link2;
|
|
298
|
-
createAccountLink: Link2;
|
|
299
|
-
observations: Link2;
|
|
300
|
-
fieldDiary: Link2;
|
|
301
|
-
subcriptions: Link2;
|
|
302
|
-
events: Link2;
|
|
303
|
-
fyndregler: Link2;
|
|
304
|
-
artportalenUrl: string;
|
|
305
|
-
artfaktaUrl: string;
|
|
306
|
-
}
|
|
307
|
-
interface Link2 {
|
|
308
|
-
transId: string;
|
|
309
|
-
url: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
declare class EnvironmentService {
|
|
313
|
-
environment: any;
|
|
314
|
-
constructor(environment: any);
|
|
315
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentService, never>;
|
|
316
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentService>;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
declare class ArtportalenNavComponent implements OnInit, OnDestroy {
|
|
320
|
-
private httpClient;
|
|
321
|
-
private router;
|
|
322
|
-
trans: TranslateService;
|
|
323
|
-
private envService;
|
|
324
|
-
private subscription;
|
|
325
|
-
loginClicked: EventEmitter<any>;
|
|
326
|
-
logoutClicked: EventEmitter<any>;
|
|
327
|
-
dropMenuChange: EventEmitter<boolean>;
|
|
328
|
-
showPattern: boolean;
|
|
329
|
-
fullName: string;
|
|
330
|
-
translationFinished: boolean;
|
|
331
|
-
lastPosition: number;
|
|
332
|
-
set userName(fullName: string);
|
|
333
|
-
navigation: Navigation;
|
|
334
|
-
url: string;
|
|
335
|
-
showNavMenu: boolean;
|
|
336
|
-
showUserMenu: boolean;
|
|
337
|
-
showReport: boolean;
|
|
338
|
-
showObservations: boolean;
|
|
339
|
-
showSubs: boolean;
|
|
340
|
-
constructor(httpClient: HttpClient, router: Router, trans: TranslateService, envService: EnvironmentService);
|
|
341
|
-
ngOnInit(): void;
|
|
342
|
-
showMenuDropdown(show: boolean): void;
|
|
343
|
-
setLanguage(lang: any): void;
|
|
344
|
-
onUserClick(): void;
|
|
345
|
-
login(): void;
|
|
346
|
-
logout(): void;
|
|
347
|
-
private initTranslations;
|
|
348
|
-
private loadTranslation;
|
|
349
|
-
ngOnDestroy(): void;
|
|
350
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenNavComponent, never>;
|
|
351
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArtportalenNavComponent, "adb-artportalen-nav", never, { "showPattern": { "alias": "showPattern"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; }, { "loginClicked": "loginClicked"; "logoutClicked": "logoutClicked"; "dropMenuChange": "dropMenuChange"; }, never, ["*"], false, never>;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
declare class ArtportalenFooterComponent implements OnInit, OnDestroy {
|
|
355
|
-
private httpClient;
|
|
356
|
-
private envService;
|
|
357
|
-
trans: TranslateService;
|
|
358
|
-
private subscription;
|
|
359
|
-
translationFinished: boolean;
|
|
360
|
-
url: string;
|
|
361
|
-
navigation: Navigation;
|
|
362
|
-
baseUrl: any;
|
|
363
|
-
constructor(httpClient: HttpClient, envService: EnvironmentService, trans: TranslateService);
|
|
364
|
-
ngOnInit(): void;
|
|
365
|
-
private initTranslations;
|
|
366
|
-
private loadTranslation;
|
|
367
|
-
ngOnDestroy(): void;
|
|
368
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenFooterComponent, never>;
|
|
369
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArtportalenFooterComponent, "adb-artportalen-footer", never, {}, {}, never, never, false, never>;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
300
|
declare class ArtportalenNavModule {
|
|
373
301
|
static forRoot(environment: any): ModuleWithProviders<ArtportalenNavModule>;
|
|
374
302
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenNavModule, never>;
|
|
375
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArtportalenNavModule, [typeof ArtportalenNavComponent, typeof ArtportalenFooterComponent], [typeof i2.CommonModule, typeof
|
|
303
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArtportalenNavModule, [typeof ArtportalenNavComponent, typeof ArtportalenFooterComponent], [typeof i2.CommonModule, typeof i5.RouterModule, typeof i4.TranslateModule, typeof AdbDirectivesModule, typeof AdbDropdownModule, typeof AdbPagersModule], [typeof ArtportalenNavComponent, typeof ArtportalenFooterComponent]>;
|
|
376
304
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArtportalenNavModule>;
|
|
377
305
|
}
|
|
378
306
|
|
|
@@ -789,7 +717,7 @@ declare class AuthCallbackComponent implements OnInit {
|
|
|
789
717
|
declare class AdbUserModule {
|
|
790
718
|
static forRoot(config?: AdbUserServiceConfig): ModuleWithProviders<AdbUserModule>;
|
|
791
719
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbUserModule, never>;
|
|
792
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbUserModule, [typeof AuthCallbackComponent], [typeof i2.CommonModule, typeof
|
|
720
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbUserModule, [typeof AuthCallbackComponent], [typeof i2.CommonModule, typeof i5.RouterModule, typeof i4.TranslateModule], [typeof AuthCallbackComponent]>;
|
|
793
721
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbUserModule>;
|
|
794
722
|
}
|
|
795
723
|
|
|
@@ -813,5 +741,137 @@ declare class UserModuleConstants {
|
|
|
813
741
|
static ONGOING_CODEFLOW: string;
|
|
814
742
|
}
|
|
815
743
|
|
|
816
|
-
|
|
817
|
-
|
|
744
|
+
interface AdbPickerConfig {
|
|
745
|
+
api: string;
|
|
746
|
+
}
|
|
747
|
+
declare const ADB_PICKER_CONFIG: InjectionToken<AdbPickerConfig>;
|
|
748
|
+
declare class AdbPickerConfigService {
|
|
749
|
+
readonly areas: string;
|
|
750
|
+
readonly taxa: string;
|
|
751
|
+
constructor(config: AdbPickerConfig);
|
|
752
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbPickerConfigService, never>;
|
|
753
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdbPickerConfigService>;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
interface SOSArea {
|
|
757
|
+
name: string;
|
|
758
|
+
areaType: string;
|
|
759
|
+
featureId: string;
|
|
760
|
+
}
|
|
761
|
+
interface Area {
|
|
762
|
+
id: string;
|
|
763
|
+
name: string;
|
|
764
|
+
areaType: string;
|
|
765
|
+
featureId: string;
|
|
766
|
+
}
|
|
767
|
+
interface PagedResult<T> {
|
|
768
|
+
records: Array<T>;
|
|
769
|
+
items?: Array<T>;
|
|
770
|
+
totalCount: number;
|
|
771
|
+
}
|
|
772
|
+
interface Taxon {
|
|
773
|
+
id: any;
|
|
774
|
+
swedishName: string;
|
|
775
|
+
scientificName: string;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
declare class GenericPickerComponent<T> implements OnInit, OnDestroy {
|
|
779
|
+
private readonly subs;
|
|
780
|
+
private readonly searchChanged$;
|
|
781
|
+
search: (query: string) => Observable<PagedResult<T>>;
|
|
782
|
+
displayFn: (item: T) => string;
|
|
783
|
+
loadById?: (id: any) => Observable<T>;
|
|
784
|
+
disabled: boolean;
|
|
785
|
+
placeholder: string;
|
|
786
|
+
itemTemplate: TemplateRef<any>;
|
|
787
|
+
selectItemChange: EventEmitter<T>;
|
|
788
|
+
focus: EventEmitter<FocusEvent>;
|
|
789
|
+
set initialValue(item: T | null);
|
|
790
|
+
searchQuery: string;
|
|
791
|
+
loading: boolean;
|
|
792
|
+
error: any;
|
|
793
|
+
items$: Observable<T[]>;
|
|
794
|
+
private itemsSnapshot;
|
|
795
|
+
showPop: boolean;
|
|
796
|
+
rowIndex: number;
|
|
797
|
+
ngOnInit(): void;
|
|
798
|
+
onModelChange(): void;
|
|
799
|
+
onArrowDown(): void;
|
|
800
|
+
onArrowUp(): void;
|
|
801
|
+
onEnter(event: KeyboardEvent): void;
|
|
802
|
+
resetPopup(): void;
|
|
803
|
+
selectItem(item: T | null): void;
|
|
804
|
+
resetModel(): void;
|
|
805
|
+
ngOnDestroy(): void;
|
|
806
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericPickerComponent<any>, never>;
|
|
807
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericPickerComponent<any>, "adb-generic-picker", never, { "search": { "alias": "search"; "required": false; }; "displayFn": { "alias": "displayFn"; "required": false; }; "loadById": { "alias": "loadById"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; }, { "selectItemChange": "selectItemChange"; "focus": "focus"; }, ["itemTemplate"], never, false, never>;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
declare class AdbAreaPickerComponent implements ControlValueAccessor {
|
|
811
|
+
private translate;
|
|
812
|
+
private config;
|
|
813
|
+
private http;
|
|
814
|
+
fullWidth: boolean;
|
|
815
|
+
placeholder: string;
|
|
816
|
+
useObject: boolean;
|
|
817
|
+
prefill: boolean;
|
|
818
|
+
initialValue: Area | null;
|
|
819
|
+
isDisabled: boolean;
|
|
820
|
+
loading: boolean;
|
|
821
|
+
showPrefill: boolean;
|
|
822
|
+
private onChange;
|
|
823
|
+
private onTouched;
|
|
824
|
+
constructor(translate: TranslateService, config: AdbPickerConfigService, http: HttpClient);
|
|
825
|
+
getAreas: (query: string) => rxjs.Observable<PagedResult<Area>>;
|
|
826
|
+
displayArea: (area: SOSArea) => string;
|
|
827
|
+
loadAreaId: (id: any) => rxjs.Observable<Area>;
|
|
828
|
+
onSelect(area: Area | null): void;
|
|
829
|
+
onFocus(): void;
|
|
830
|
+
writeValue(value: any): void;
|
|
831
|
+
registerOnChange(fn: any): void;
|
|
832
|
+
registerOnTouched(fn: any): void;
|
|
833
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
834
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbAreaPickerComponent, never>;
|
|
835
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbAreaPickerComponent, "adb-area-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "useObject": { "alias": "useObject"; "required": false; }; "prefill": { "alias": "prefill"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
declare class AdbTaxonPickerComponent implements ControlValueAccessor {
|
|
839
|
+
private config;
|
|
840
|
+
private http;
|
|
841
|
+
fullWidth: boolean;
|
|
842
|
+
placeholder: string;
|
|
843
|
+
useObject: boolean;
|
|
844
|
+
prefill: boolean;
|
|
845
|
+
initialValue: Taxon | null;
|
|
846
|
+
isDisabled: boolean;
|
|
847
|
+
loading: boolean;
|
|
848
|
+
showPrefill: boolean;
|
|
849
|
+
private onChange;
|
|
850
|
+
private onTouched;
|
|
851
|
+
constructor(config: AdbPickerConfigService, http: HttpClient);
|
|
852
|
+
getTaxa: (query: string) => rxjs.Observable<{
|
|
853
|
+
items: Taxon[];
|
|
854
|
+
} | {
|
|
855
|
+
items: any[];
|
|
856
|
+
}>;
|
|
857
|
+
displayTaxon: (taxon: Taxon) => string;
|
|
858
|
+
loadTaxonById(id: any): rxjs.Observable<Taxon>;
|
|
859
|
+
onSelect(taxon: Taxon | null): void;
|
|
860
|
+
onFocus(): void;
|
|
861
|
+
writeValue(value: any): void;
|
|
862
|
+
registerOnChange(fn: any): void;
|
|
863
|
+
registerOnTouched(fn: any): void;
|
|
864
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
865
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbTaxonPickerComponent, never>;
|
|
866
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbTaxonPickerComponent, "adb-taxon-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "useObject": { "alias": "useObject"; "required": false; }; "prefill": { "alias": "prefill"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
declare class AdbPickerModule {
|
|
870
|
+
static forRoot(config?: AdbPickerConfig): ModuleWithProviders<AdbPickerModule>;
|
|
871
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbPickerModule, never>;
|
|
872
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof i4.TranslateModule, typeof AdbPipesModule, typeof AdbDirectivesModule], [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent]>;
|
|
873
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbPickerModule>;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export { ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, AdbDropdown2Directive, AdbDropdownDirective, AdbDropdownModule, AdbFilterSectionModule, AdbHelpButtonComponent, AdbModalModule, AdbModalService, AdbPagersModule, AdbPickerConfigService, AdbPickerModule, AdbPipesModule, AdbRichEditorComponent, AdbRichEditorModule, AdbTaxonPickerComponent, AdbToast, AdbToastModule, AdbToastService, AdbUserInterceptor, AdbUserModule, AdbUserService, ArtportalenFooterComponent, ArtportalenNavComponent, ArtportalenNavModule, AuthCallbackComponent, ClickOutsideDirective, DEFAULT_ADB_USER_SERVICE_CONFIG, EmptyValuePipe, EnvironmentService, FileUploadDirective, FilterSectionComponent, FocusDirective, GenericPickerComponent, HighlightHtmlPipe, HighlightPipe, ImageLoaderDirective, InfiniteScrollComponent, LocaleDatePipe, NumberSpacingPipe, PagerComponent, PagerInlineComponent, RedListBadgeClassDirective, RichTextComponent, RiskClassDirective, RouterLinkActiveFragmentDirective, ToastType, UserModuleConstants };
|
|
877
|
+
export type { AdbPickerConfig, AdbUserServiceConfig, DialogModel, PickerDay, PickerWeek, RichTextPart, ToastMessage };
|