adb-shared 6.1.9 → 6.1.10
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 +180 -186
- package/fesm2022/adb-shared.mjs.map +1 -1
- package/index.d.ts +5 -0
- package/lib/components/adb-artportalen-nav/adb-artportalen-footer.component.d.ts +23 -0
- package/lib/components/adb-artportalen-nav/adb-artportalen-nav.component.d.ts +41 -0
- package/lib/components/adb-artportalen-nav/adb-artportalen-nav.module.d.ts +16 -0
- package/lib/components/adb-artportalen-nav/environment.service.d.ts +7 -0
- package/lib/components/adb-artportalen-nav/navigation.model.d.ts +18 -0
- package/lib/components/adb-buttons/adb-buttons.module.d.ts +9 -0
- package/lib/components/adb-buttons/help-button.component.d.ts +16 -0
- package/lib/components/adb-confirm-modal/adb-confirm-modal.d.ts +21 -0
- package/lib/components/adb-confirm-modal/adb-modal.module.d.ts +10 -0
- package/lib/components/adb-confirm-modal/adb-modal.service.d.ts +18 -0
- package/lib/components/adb-dropdown/adb-dropdown.directive.d.ts +21 -0
- package/lib/components/adb-dropdown/adb-dropdown.module.d.ts +11 -0
- package/lib/components/adb-dropdown/adb-dropdown.service.d.ts +7 -0
- package/lib/components/adb-dropdown/adb-dropdown2.directive.d.ts +23 -0
- package/lib/components/adb-filter-section/adb-filter-section.module.d.ts +11 -0
- package/lib/components/adb-filter-section/filter-section.component.d.ts +13 -0
- package/lib/components/adb-header/adb-header.module.d.ts +15 -0
- package/lib/components/adb-header/adb-nav.component.d.ts +41 -0
- package/lib/components/adb-header/environment.service.d.ts +7 -0
- package/lib/components/adb-header/navigation.model.d.ts +29 -0
- package/lib/components/adb-rich-editor/adb-rich-editor.component.d.ts +28 -0
- package/lib/components/adb-rich-editor/adb-rich-editor.module.d.ts +13 -0
- package/lib/components/adb-rich-editor/adb-rich-text.d.ts +18 -0
- package/lib/components/adb-rich-editor/rich-module-config.d.ts +5 -0
- package/lib/components/adb-toast/adb-toast.d.ts +11 -0
- package/lib/components/adb-toast/adb-toast.module.d.ts +10 -0
- package/lib/components/adb-toast/adb-toast.service.d.ts +36 -0
- package/lib/components/adb-user/adb-user-service-config.d.ts +22 -0
- package/lib/components/adb-user/adb-user.interceptor.d.ts +13 -0
- package/lib/components/adb-user/adb-user.module.d.ts +13 -0
- package/lib/components/adb-user/adb-user.service.d.ts +34 -0
- package/lib/components/adb-user/auth-callback.component.d.ts +16 -0
- package/lib/components/adb-user/user-constants.d.ts +9 -0
- package/lib/components/date-picker/adb-date-picker.component.d.ts +64 -0
- package/lib/components/date-picker/adb-date-picker.directive.d.ts +47 -0
- package/lib/components/date-picker/adb-date-picker.module.d.ts +12 -0
- package/lib/components/date-picker/adb-date-picker.service.d.ts +8 -0
- package/lib/components/pagers/infinite-scroll.component.d.ts +15 -0
- package/lib/components/pagers/pager-base.directive.d.ts +17 -0
- package/lib/components/pagers/pager-inline.d.ts +16 -0
- package/lib/components/pagers/pager.d.ts +22 -0
- package/lib/components/pagers/pagers.module.d.ts +11 -0
- package/lib/directives/active-fragment.directive.d.ts +17 -0
- package/lib/directives/click-outside.directive.d.ts +10 -0
- package/lib/directives/directives.module.d.ts +13 -0
- package/lib/directives/file-upload.directive.d.ts +12 -0
- package/lib/directives/focus.directive.d.ts +11 -0
- package/lib/directives/image-loader.directive.d.ts +21 -0
- package/lib/directives/redlist-badge-class.directive.d.ts +7 -0
- package/lib/directives/risk-class.directive.d.ts +7 -0
- package/lib/pipes/date.pipe.d.ts +10 -0
- package/lib/pipes/emptyValue.pipe.d.ts +7 -0
- package/lib/pipes/highlight-html.pipe.d.ts +10 -0
- package/lib/pipes/highlight.pipe.d.ts +9 -0
- package/lib/pipes/number-spacing.pipe.d.ts +7 -0
- package/lib/pipes/pipes.module.d.ts +11 -0
- package/package.json +6 -6
- package/public-api.d.ts +48 -0
- package/types/adb-shared.d.ts +0 -817
package/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { EnvironmentService } from "./environment.service";
|
|
3
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
4
|
+
import { HttpClient } from '@angular/common/http';
|
|
5
|
+
import { Navigation } from "./navigation.model";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ArtportalenFooterComponent implements OnInit, OnDestroy {
|
|
8
|
+
private httpClient;
|
|
9
|
+
private envService;
|
|
10
|
+
trans: TranslateService;
|
|
11
|
+
private subscription;
|
|
12
|
+
translationFinished: boolean;
|
|
13
|
+
url: string;
|
|
14
|
+
navigation: Navigation;
|
|
15
|
+
baseUrl: any;
|
|
16
|
+
constructor(httpClient: HttpClient, envService: EnvironmentService, trans: TranslateService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
private initTranslations;
|
|
19
|
+
private loadTranslation;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenFooterComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArtportalenFooterComponent, "adb-artportalen-footer", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
3
|
+
import { HttpClient } from "@angular/common/http";
|
|
4
|
+
import { Router } from "@angular/router";
|
|
5
|
+
import { Navigation } from "./navigation.model";
|
|
6
|
+
import { EnvironmentService } from "./environment.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ArtportalenNavComponent implements OnInit, OnDestroy {
|
|
9
|
+
private httpClient;
|
|
10
|
+
private router;
|
|
11
|
+
trans: TranslateService;
|
|
12
|
+
private envService;
|
|
13
|
+
private subscription;
|
|
14
|
+
loginClicked: EventEmitter<any>;
|
|
15
|
+
logoutClicked: EventEmitter<any>;
|
|
16
|
+
dropMenuChange: EventEmitter<boolean>;
|
|
17
|
+
showPattern: boolean;
|
|
18
|
+
fullName: string;
|
|
19
|
+
translationFinished: boolean;
|
|
20
|
+
lastPosition: number;
|
|
21
|
+
set userName(fullName: string);
|
|
22
|
+
navigation: Navigation;
|
|
23
|
+
url: string;
|
|
24
|
+
showNavMenu: boolean;
|
|
25
|
+
showUserMenu: boolean;
|
|
26
|
+
showReport: boolean;
|
|
27
|
+
showObservations: boolean;
|
|
28
|
+
showSubs: boolean;
|
|
29
|
+
constructor(httpClient: HttpClient, router: Router, trans: TranslateService, envService: EnvironmentService);
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
showMenuDropdown(show: boolean): void;
|
|
32
|
+
setLanguage(lang: any): void;
|
|
33
|
+
onUserClick(): void;
|
|
34
|
+
login(): void;
|
|
35
|
+
logout(): void;
|
|
36
|
+
private initTranslations;
|
|
37
|
+
private loadTranslation;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenNavComponent, never>;
|
|
40
|
+
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>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./adb-artportalen-nav.component";
|
|
4
|
+
import * as i2 from "./adb-artportalen-footer.component";
|
|
5
|
+
import * as i3 from "@angular/common";
|
|
6
|
+
import * as i4 from "@angular/router";
|
|
7
|
+
import * as i5 from "@ngx-translate/core";
|
|
8
|
+
import * as i6 from "../../directives/directives.module";
|
|
9
|
+
import * as i7 from "../adb-dropdown/adb-dropdown.module";
|
|
10
|
+
import * as i8 from "../pagers/pagers.module";
|
|
11
|
+
export declare class ArtportalenNavModule {
|
|
12
|
+
static forRoot(environment: any): ModuleWithProviders<ArtportalenNavModule>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenNavModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArtportalenNavModule, [typeof i1.ArtportalenNavComponent, typeof i2.ArtportalenFooterComponent], [typeof i3.CommonModule, typeof i4.RouterModule, typeof i5.TranslateModule, typeof i6.AdbDirectivesModule, typeof i7.AdbDropdownModule, typeof i8.AdbPagersModule], [typeof i1.ArtportalenNavComponent, typeof i2.ArtportalenFooterComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ArtportalenNavModule>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class EnvironmentService {
|
|
3
|
+
environment: any;
|
|
4
|
+
constructor(environment: any);
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface Navigation {
|
|
2
|
+
home: Link2;
|
|
3
|
+
report: Link2;
|
|
4
|
+
wanted: Link2;
|
|
5
|
+
checklist: Link2;
|
|
6
|
+
createAccountLink: Link2;
|
|
7
|
+
observations: Link2;
|
|
8
|
+
fieldDiary: Link2;
|
|
9
|
+
subcriptions: Link2;
|
|
10
|
+
events: Link2;
|
|
11
|
+
fyndregler: Link2;
|
|
12
|
+
artportalenUrl: string;
|
|
13
|
+
artfaktaUrl: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Link2 {
|
|
16
|
+
transId: string;
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./help-button.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../directives/directives.module";
|
|
5
|
+
export declare class AdbButtonsModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbButtonsModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbButtonsModule, [typeof i1.AdbHelpButtonComponent], [typeof i2.CommonModule, typeof i3.AdbDirectivesModule], [typeof i1.AdbHelpButtonComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbButtonsModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AdbHelpButtonComponent implements OnInit {
|
|
4
|
+
private elementRef;
|
|
5
|
+
showHelp: boolean;
|
|
6
|
+
buttonClass: string;
|
|
7
|
+
iconClass: string;
|
|
8
|
+
label: string;
|
|
9
|
+
id: number;
|
|
10
|
+
onClickDoc(event: MouseEvent): void;
|
|
11
|
+
constructor(elementRef: ElementRef);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
onClose(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbHelpButtonComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbHelpButtonComponent, "adb-help-button", never, { "buttonClass": { "alias": "buttonClass"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { AdbModalService } from './adb-modal.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AdbConfirmModal implements AfterViewInit {
|
|
5
|
+
modalRef: AdbModalService;
|
|
6
|
+
private elementRef;
|
|
7
|
+
model: DialogModel;
|
|
8
|
+
constructor(modalRef: AdbModalService, elementRef: ElementRef);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
onClose(confirm: boolean): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbConfirmModal, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbConfirmModal, "ng-component", never, { "model": { "alias": "model"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
14
|
+
export interface DialogModel {
|
|
15
|
+
header: string;
|
|
16
|
+
text: string;
|
|
17
|
+
confirm?: string;
|
|
18
|
+
decline?: string;
|
|
19
|
+
showDecline?: boolean;
|
|
20
|
+
value?: any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./adb-confirm-modal";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
import * as i4 from "../../directives/directives.module";
|
|
6
|
+
export declare class AdbModalModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbModalModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof i1.AdbConfirmModal], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.AdbDirectivesModule], [typeof i1.AdbConfirmModal]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbModalModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector, Renderer2, RendererFactory2 } from "@angular/core";
|
|
2
|
+
import { DialogModel } from "./adb-confirm-modal";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AdbModalService {
|
|
5
|
+
private componentFactoryResolver;
|
|
6
|
+
private appRef;
|
|
7
|
+
private injector;
|
|
8
|
+
private closeSubject;
|
|
9
|
+
close$: import("rxjs").Observable<boolean>;
|
|
10
|
+
renderer: Renderer2;
|
|
11
|
+
domElem: HTMLElement;
|
|
12
|
+
backdrop: any;
|
|
13
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, rendererFactory: RendererFactory2, appRef: ApplicationRef, injector: Injector);
|
|
14
|
+
hide(confirm: boolean): void;
|
|
15
|
+
showConfirm(model: DialogModel): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbModalService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdbModalService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from "@angular/core";
|
|
2
|
+
import { AdbDropdownService } from "./adb-dropdown.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AdbDropdownDirective {
|
|
5
|
+
private elementRef;
|
|
6
|
+
private adbDropdownService;
|
|
7
|
+
constructor(elementRef: ElementRef, adbDropdownService: AdbDropdownService);
|
|
8
|
+
adbDropdown: EventEmitter<any>;
|
|
9
|
+
insideClick: boolean;
|
|
10
|
+
id: string;
|
|
11
|
+
dataToggle: string;
|
|
12
|
+
haspPopup: boolean;
|
|
13
|
+
expanded: boolean;
|
|
14
|
+
dropId: string;
|
|
15
|
+
onClick(): void;
|
|
16
|
+
onCheckOutSideClick(target: any): void;
|
|
17
|
+
close(): void;
|
|
18
|
+
private getId;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbDropdownDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdbDropdownDirective, "[adbDropdown]", ["adbDropdown"], { "insideClick": { "alias": "insideClick"; "required": false; }; }, { "adbDropdown": "adbDropdown"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./adb-dropdown.directive";
|
|
3
|
+
import * as i2 from "./adb-dropdown2.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
import * as i5 from "../../directives/directives.module";
|
|
7
|
+
export declare class AdbDropdownModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbDropdownModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDropdownModule, [typeof i1.AdbDropdownDirective, typeof i2.AdbDropdown2Directive], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.AdbDirectivesModule], [typeof i1.AdbDropdownDirective, typeof i2.AdbDropdown2Directive]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbDropdownModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from "@angular/core";
|
|
2
|
+
import { AdbDropdownService } from "./adb-dropdown.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AdbDropdown2Directive {
|
|
5
|
+
private elementRef;
|
|
6
|
+
private adbDropdownService;
|
|
7
|
+
constructor(elementRef: ElementRef, adbDropdownService: AdbDropdownService);
|
|
8
|
+
adbDropdown: EventEmitter<any>;
|
|
9
|
+
insideClick: boolean;
|
|
10
|
+
id: string;
|
|
11
|
+
dataToggle: string;
|
|
12
|
+
haspPopup: boolean;
|
|
13
|
+
expanded: boolean;
|
|
14
|
+
dropId: string;
|
|
15
|
+
onClick(): void;
|
|
16
|
+
onCheckOutSideClick(target: any): void;
|
|
17
|
+
onWindowScroll(): void;
|
|
18
|
+
private setMenuPosition;
|
|
19
|
+
close(): void;
|
|
20
|
+
private getId;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbDropdown2Directive, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdbDropdown2Directive, "[adbDropdown2]", ["adbDropdown"], { "insideClick": { "alias": "insideClick"; "required": false; }; }, { "adbDropdown": "adbDropdown"; }, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./filter-section.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
import * as i5 from "../adb-buttons/adb-buttons.module";
|
|
7
|
+
export declare class AdbFilterSectionModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbFilterSectionModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof i1.FilterSectionComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.TranslateModule, typeof i5.AdbButtonsModule], [typeof i1.FilterSectionComponent, typeof i5.AdbButtonsModule]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbFilterSectionModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FilterSectionComponent implements OnInit, OnDestroy {
|
|
4
|
+
titleResource: string;
|
|
5
|
+
helpResource: any;
|
|
6
|
+
count: number;
|
|
7
|
+
expanded: any;
|
|
8
|
+
id: number;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterSectionComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterSectionComponent, "adb-filter-section", never, { "titleResource": { "alias": "titleResource"; "required": false; }; "helpResource": { "alias": "helpResource"; "required": false; }; "count": { "alias": "count"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./adb-nav.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/router";
|
|
6
|
+
import * as i4 from "@ngx-translate/core";
|
|
7
|
+
import * as i5 from "../../directives/directives.module";
|
|
8
|
+
import * as i6 from "../adb-dropdown/adb-dropdown.module";
|
|
9
|
+
import * as i7 from "../pagers/pagers.module";
|
|
10
|
+
export declare class ADBHeaderModule {
|
|
11
|
+
static forRoot(environment: any): ModuleWithProviders<ADBHeaderModule>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ADBHeaderModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ADBHeaderModule, [typeof i1.ADBNavComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.TranslateModule, typeof i5.AdbDirectivesModule, typeof i6.AdbDropdownModule, typeof i7.AdbPagersModule], [typeof i1.ADBNavComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ADBHeaderModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { EnvironmentService } from './environment.service';
|
|
6
|
+
import { Navigation } from './navigation.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ADBNavComponent implements OnInit, OnDestroy {
|
|
9
|
+
private httpClient;
|
|
10
|
+
private router;
|
|
11
|
+
private envService;
|
|
12
|
+
trans: TranslateService;
|
|
13
|
+
private subscription;
|
|
14
|
+
loginClicked: EventEmitter<any>;
|
|
15
|
+
logoutClicked: EventEmitter<any>;
|
|
16
|
+
dropMenuChange: EventEmitter<boolean>;
|
|
17
|
+
showPattern: boolean;
|
|
18
|
+
fullName: string;
|
|
19
|
+
translationFinished: boolean;
|
|
20
|
+
lastPosition: number;
|
|
21
|
+
set userName(fullName: string);
|
|
22
|
+
artfakta: boolean;
|
|
23
|
+
initials: string;
|
|
24
|
+
showNavMenu: boolean;
|
|
25
|
+
showUserMenu: boolean;
|
|
26
|
+
showArtfakta: boolean;
|
|
27
|
+
showNOS: boolean;
|
|
28
|
+
navigation: Navigation;
|
|
29
|
+
url: string;
|
|
30
|
+
constructor(httpClient: HttpClient, router: Router, envService: EnvironmentService, trans: TranslateService);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
private initTranslations;
|
|
33
|
+
private loadTranslation;
|
|
34
|
+
showMenuDropdown(show: boolean): void;
|
|
35
|
+
setLanguage(lang: any): void;
|
|
36
|
+
login(): void;
|
|
37
|
+
logout(): void;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ADBNavComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ADBNavComponent, "adb-nav", never, { "showPattern": { "alias": "showPattern"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "artfakta": { "alias": "artfakta"; "required": false; }; }, { "loginClicked": "loginClicked"; "logoutClicked": "logoutClicked"; "dropMenuChange": "dropMenuChange"; }, never, ["*"], false, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class EnvironmentService {
|
|
3
|
+
environment: any;
|
|
4
|
+
constructor(environment: any);
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface Link {
|
|
2
|
+
transId: string;
|
|
3
|
+
url: string;
|
|
4
|
+
topLink?: boolean;
|
|
5
|
+
icon?: string;
|
|
6
|
+
children?: Link[];
|
|
7
|
+
}
|
|
8
|
+
export interface Navigation {
|
|
9
|
+
about: Link2;
|
|
10
|
+
artinfo: Link2;
|
|
11
|
+
artfakta: Link2;
|
|
12
|
+
keys: Link2;
|
|
13
|
+
mySpecies: Link2;
|
|
14
|
+
lists: Link2;
|
|
15
|
+
imageRec: Link2;
|
|
16
|
+
filter: Link2;
|
|
17
|
+
observations: Link2;
|
|
18
|
+
nameAndRelationship: Link2;
|
|
19
|
+
nameSearch: Link2;
|
|
20
|
+
match: Link2;
|
|
21
|
+
createAccountLink: string;
|
|
22
|
+
artfaktaUrl: string;
|
|
23
|
+
artportalenUrl: string;
|
|
24
|
+
supportUrl: string;
|
|
25
|
+
}
|
|
26
|
+
export interface Link2 {
|
|
27
|
+
transId: string;
|
|
28
|
+
url?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AdbRichEditorComponent implements ControlValueAccessor, OnDestroy {
|
|
5
|
+
private el;
|
|
6
|
+
text: string;
|
|
7
|
+
hasTaxon: boolean;
|
|
8
|
+
hasReference: boolean;
|
|
9
|
+
rows: number;
|
|
10
|
+
constructor(el: ElementRef);
|
|
11
|
+
onDoubleClick(): void;
|
|
12
|
+
onItalicClick(): void;
|
|
13
|
+
onBoldClick(): void;
|
|
14
|
+
private applyFormatting;
|
|
15
|
+
onTaxonClick(): void;
|
|
16
|
+
onReferenceClick(): void;
|
|
17
|
+
private replaceMarked;
|
|
18
|
+
onTextChange(): void;
|
|
19
|
+
onChange: any;
|
|
20
|
+
onTouched: any;
|
|
21
|
+
writeValue(value: string): void;
|
|
22
|
+
registerOnChange(fn: any): void;
|
|
23
|
+
registerOnTouched(fn: any): void;
|
|
24
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbRichEditorComponent, "adb-rich-editor", never, { "hasTaxon": { "alias": "hasTaxon"; "required": false; }; "hasReference": { "alias": "hasReference"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { RichModuleConfig } from './rich-module-config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./adb-rich-editor.component";
|
|
5
|
+
import * as i2 from "./adb-rich-text";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/forms";
|
|
8
|
+
export declare class AdbRichEditorModule {
|
|
9
|
+
static forRoot(config: RichModuleConfig): ModuleWithProviders<AdbRichEditorModule>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbRichEditorModule, [typeof i1.AdbRichEditorComponent, typeof i2.RichTextComponent], [typeof i3.CommonModule, typeof i4.FormsModule], [typeof i1.AdbRichEditorComponent, typeof i2.RichTextComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbRichEditorModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RichModuleConfig } from './rich-module-config';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface RichTextPart {
|
|
4
|
+
type: 'text' | 'italic' | 'bold' | 'taxon' | 'term' | 'reference';
|
|
5
|
+
content: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class RichTextComponent {
|
|
9
|
+
private config;
|
|
10
|
+
text: string;
|
|
11
|
+
parts: RichTextPart[];
|
|
12
|
+
taxonUrl: string;
|
|
13
|
+
constructor(config: RichModuleConfig);
|
|
14
|
+
ngOnChanges(): void;
|
|
15
|
+
private parseCustomMarkdown;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RichTextComponent, "adb-rich-text", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AdbToastService, ToastMessage, ToastType } from './adb-toast.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AdbToast {
|
|
4
|
+
toastService: AdbToastService;
|
|
5
|
+
toasts: ToastMessage[];
|
|
6
|
+
toastType: typeof ToastType;
|
|
7
|
+
constructor(toastService: AdbToastService);
|
|
8
|
+
onRemoveToast(toast: ToastMessage): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbToast, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdbToast, "ng-component", never, {}, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./adb-toast";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ngx-translate/core";
|
|
5
|
+
import * as i4 from "../../directives/directives.module";
|
|
6
|
+
export declare class AdbToastModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbToastModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof i1.AdbToast], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.AdbDirectivesModule], [typeof i1.AdbToast]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbToastModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector, Renderer2, RendererFactory2 } from "@angular/core";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AdbToastService {
|
|
5
|
+
private componentFactoryResolver;
|
|
6
|
+
private rendererFactory;
|
|
7
|
+
private appRef;
|
|
8
|
+
private injector;
|
|
9
|
+
private toasts;
|
|
10
|
+
private toastsSubject;
|
|
11
|
+
$toasts: Observable<ToastMessage[]>;
|
|
12
|
+
renderer: Renderer2;
|
|
13
|
+
domElement: HTMLElement;
|
|
14
|
+
container: any;
|
|
15
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, rendererFactory: RendererFactory2, appRef: ApplicationRef, injector: Injector);
|
|
16
|
+
add(toastMessage: ToastMessage, time?: number): void;
|
|
17
|
+
remove(toast: ToastMessage): void;
|
|
18
|
+
private addContainer;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbToastService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdbToastService>;
|
|
21
|
+
}
|
|
22
|
+
export interface ToastMessage {
|
|
23
|
+
header?: string;
|
|
24
|
+
headerValue?: any;
|
|
25
|
+
message: string;
|
|
26
|
+
messageValue?: any;
|
|
27
|
+
type?: ToastType;
|
|
28
|
+
index?: number;
|
|
29
|
+
delay?: any;
|
|
30
|
+
}
|
|
31
|
+
export declare enum ToastType {
|
|
32
|
+
Primary = 1,
|
|
33
|
+
Success = 2,
|
|
34
|
+
Warn = 3,
|
|
35
|
+
Danger = 4
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
export interface AdbUserServiceConfig {
|
|
3
|
+
redirectUrl: string;
|
|
4
|
+
clientId: string;
|
|
5
|
+
issuer: string;
|
|
6
|
+
scope?: string;
|
|
7
|
+
responseType?: string;
|
|
8
|
+
idleTime?: number;
|
|
9
|
+
autoLogin?: boolean;
|
|
10
|
+
postLogoutUrl?: string;
|
|
11
|
+
overrideIssuer?: boolean;
|
|
12
|
+
log?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ADB_USER_SERVICE_CONFIG: InjectionToken<AdbUserServiceConfig>;
|
|
15
|
+
export declare const DEFAULT_ADB_USER_SERVICE_CONFIG: {
|
|
16
|
+
scope: string;
|
|
17
|
+
idleTime: number;
|
|
18
|
+
autoLogin: boolean;
|
|
19
|
+
response_type: string;
|
|
20
|
+
overrideIssuer: boolean;
|
|
21
|
+
log: boolean;
|
|
22
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AdbUserService } from './adb-user.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AdbUserInterceptor implements HttpInterceptor {
|
|
6
|
+
private adbUserService;
|
|
7
|
+
private static UNAUTHENTICATED;
|
|
8
|
+
constructor(adbUserService: AdbUserService);
|
|
9
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
10
|
+
private handleErrors;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbUserInterceptor, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdbUserInterceptor>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModuleWithProviders } from "@angular/core";
|
|
2
|
+
import { AdbUserServiceConfig } from "./adb-user-service-config";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./auth-callback.component";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/router";
|
|
7
|
+
import * as i4 from "@ngx-translate/core";
|
|
8
|
+
export declare class AdbUserModule {
|
|
9
|
+
static forRoot(config?: AdbUserServiceConfig): ModuleWithProviders<AdbUserModule>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbUserModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbUserModule, [typeof i1.AuthCallbackComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.TranslateModule], [typeof i1.AuthCallbackComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbUserModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { AdbUserServiceConfig } from './adb-user-service-config';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AdbUserService implements OnDestroy {
|
|
7
|
+
config: AdbUserServiceConfig;
|
|
8
|
+
private http;
|
|
9
|
+
private router;
|
|
10
|
+
private subscriptions;
|
|
11
|
+
private userSubject;
|
|
12
|
+
user$: import("rxjs").Observable<any>;
|
|
13
|
+
lastRefreshTime: number;
|
|
14
|
+
intervalId: any;
|
|
15
|
+
constructor(config: AdbUserServiceConfig, http: HttpClient, router: Router);
|
|
16
|
+
init(): void;
|
|
17
|
+
startMainLoop(): void;
|
|
18
|
+
login(url?: string): void;
|
|
19
|
+
logout(): void;
|
|
20
|
+
private checkStatus;
|
|
21
|
+
_internalTriggerUserEvent(token: string): void;
|
|
22
|
+
private refreshToken;
|
|
23
|
+
setTokensInSession(params: any): void;
|
|
24
|
+
authorize(): Promise<void>;
|
|
25
|
+
private addQueryParams;
|
|
26
|
+
private getTokenTimeToLive;
|
|
27
|
+
private canRefreshToken;
|
|
28
|
+
private hasUserBeenActive;
|
|
29
|
+
log(message: string, ...optionalParams: any[]): void;
|
|
30
|
+
getUser(token: string): any;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbUserService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdbUserService>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { ActivatedRoute, Router } from "@angular/router";
|
|
3
|
+
import { HttpClient } from "@angular/common/http";
|
|
4
|
+
import { AdbUserService } from "./adb-user.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AuthCallbackComponent implements OnInit {
|
|
7
|
+
private activatedRoute;
|
|
8
|
+
private router;
|
|
9
|
+
private http;
|
|
10
|
+
private adbUserService;
|
|
11
|
+
private subscriptions;
|
|
12
|
+
constructor(activatedRoute: ActivatedRoute, router: Router, http: HttpClient, adbUserService: AdbUserService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthCallbackComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthCallbackComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class UserModuleConstants {
|
|
2
|
+
static CURRENT_URL: string;
|
|
3
|
+
static CODE_VERIFIER: string;
|
|
4
|
+
static REFRESH_TOKEN: string;
|
|
5
|
+
static TOKEN_EXPIRES: string;
|
|
6
|
+
static ACCESS_TOKEN: string;
|
|
7
|
+
static USER_LAST_ACTIVE: string;
|
|
8
|
+
static ONGOING_CODEFLOW: string;
|
|
9
|
+
}
|