af-connect-components 18.0.1 → 18.0.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/esm2020/lib/af-connect-button/af-connect-button.component.mjs +2 -2
- package/esm2020/lib/af-connect-header/af-connect-header.component.mjs +29 -6
- package/esm2020/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.mjs +23 -9
- package/esm2020/lib/models/url-config.mjs +2 -0
- package/esm2020/lib/services/breakpoint.service.mjs +2 -1
- package/fesm2015/af-connect-components.mjs +51 -16
- package/fesm2015/af-connect-components.mjs.map +1 -1
- package/fesm2020/af-connect-components.mjs +51 -16
- package/fesm2020/af-connect-components.mjs.map +1 -1
- package/lib/af-connect-header/af-connect-header.component.d.ts +10 -3
- package/lib/af-connect-profile-dropdown/af-connect-profile-dropdown.component.d.ts +12 -2
- package/lib/models/url-config.d.ts +5 -0
- package/lib/services/breakpoint.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { UserType } from '../af-connect-profile-dropdown/af-connect-profile-dropdown.component';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { UrlConfig } from '../models/url-config';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AfConnectHeaderComponent {
|
|
7
|
+
private route;
|
|
6
8
|
private router;
|
|
7
9
|
username: string;
|
|
10
|
+
activeRoute: string;
|
|
11
|
+
navUrls: UrlConfig[];
|
|
8
12
|
isLogoHidden: boolean;
|
|
9
13
|
userType: UserType.Institutional | UserType.Retail;
|
|
10
14
|
hasSwitchIndicator: boolean;
|
|
@@ -14,11 +18,14 @@ export declare class AfConnectHeaderComponent {
|
|
|
14
18
|
resetPassword: EventEmitter<void>;
|
|
15
19
|
logout: EventEmitter<void>;
|
|
16
20
|
switchUserType: EventEmitter<UserType>;
|
|
21
|
+
navigate: EventEmitter<string>;
|
|
17
22
|
USER_TYPE: typeof UserType;
|
|
18
|
-
constructor(router: Router);
|
|
23
|
+
constructor(route: ActivatedRoute, router: Router);
|
|
19
24
|
refresh(): void;
|
|
20
25
|
switch(type: UserType): void;
|
|
21
26
|
gotoProfileDetails(): void;
|
|
27
|
+
navigateTo(url: string): void;
|
|
28
|
+
isActive(route: string): boolean;
|
|
22
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<AfConnectHeaderComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AfConnectHeaderComponent, "lib-af-connect-header", never, { "username": "username"; "isLogoHidden": "isLogoHidden"; "userType": "userType"; "hasSwitchIndicator": "hasSwitchIndicator"; "isHybrid": "isHybrid"; }, { "callMeBack": "callMeBack"; "contactAdviser": "contactAdviser"; "resetPassword": "resetPassword"; "logout": "logout"; "switchUserType": "switchUserType"; }, never, never, false, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AfConnectHeaderComponent, "lib-af-connect-header", never, { "username": "username"; "activeRoute": "activeRoute"; "navUrls": "navUrls"; "isLogoHidden": "isLogoHidden"; "userType": "userType"; "hasSwitchIndicator": "hasSwitchIndicator"; "isHybrid": "isHybrid"; }, { "callMeBack": "callMeBack"; "contactAdviser": "contactAdviser"; "resetPassword": "resetPassword"; "logout": "logout"; "switchUserType": "switchUserType"; "navigate": "navigate"; }, never, never, false, never>;
|
|
24
31
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { EventEmitter, ElementRef } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { BreakpointLibService } from '../services/breakpoint.service';
|
|
5
|
+
import { UrlConfig } from '../models/url-config';
|
|
2
6
|
import * as i0 from "@angular/core";
|
|
3
7
|
export declare enum UserType {
|
|
4
8
|
Retail = "Retail",
|
|
@@ -7,8 +11,12 @@ export declare enum UserType {
|
|
|
7
11
|
}
|
|
8
12
|
export declare class AfConnectProfileDropdown {
|
|
9
13
|
private elementRef;
|
|
14
|
+
private sanitizer;
|
|
15
|
+
private router;
|
|
16
|
+
breakpointService: BreakpointLibService;
|
|
10
17
|
username: string;
|
|
11
18
|
userType: UserType.Institutional | UserType.Retail;
|
|
19
|
+
navUrls: UrlConfig[];
|
|
12
20
|
hasSwitchIndicator: boolean;
|
|
13
21
|
isHybrid: boolean;
|
|
14
22
|
callMeBack: EventEmitter<void>;
|
|
@@ -18,10 +26,12 @@ export declare class AfConnectProfileDropdown {
|
|
|
18
26
|
switchUserType: EventEmitter<UserType>;
|
|
19
27
|
showMenu: boolean;
|
|
20
28
|
USER_TYPE: typeof UserType;
|
|
21
|
-
constructor(elementRef: ElementRef);
|
|
29
|
+
constructor(elementRef: ElementRef, sanitizer: DomSanitizer, router: Router, breakpointService: BreakpointLibService);
|
|
22
30
|
show(e: any): void;
|
|
23
31
|
click(event: any): void;
|
|
24
32
|
select(value: UserType.Institutional | UserType.Retail): void;
|
|
33
|
+
sanitizeSvg(svg: string): import("@angular/platform-browser").SafeHtml;
|
|
34
|
+
navigateTo(url: string): void;
|
|
25
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<AfConnectProfileDropdown, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AfConnectProfileDropdown, "lib-af-connect-profile-dropdown", never, { "username": "username"; "userType": "userType"; "hasSwitchIndicator": "hasSwitchIndicator"; "isHybrid": "isHybrid"; }, { "callMeBack": "callMeBack"; "contactAdviser": "contactAdviser"; "resetPassword": "resetPassword"; "logout": "logout"; "switchUserType": "switchUserType"; }, never, never, false, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AfConnectProfileDropdown, "lib-af-connect-profile-dropdown", never, { "username": "username"; "userType": "userType"; "navUrls": "navUrls"; "hasSwitchIndicator": "hasSwitchIndicator"; "isHybrid": "isHybrid"; }, { "callMeBack": "callMeBack"; "contactAdviser": "contactAdviser"; "resetPassword": "resetPassword"; "logout": "logout"; "switchUserType": "switchUserType"; }, never, never, false, never>;
|
|
27
37
|
}
|
|
@@ -4,6 +4,7 @@ export declare class BreakpointLibService {
|
|
|
4
4
|
private responsive;
|
|
5
5
|
constructor(responsive: BreakpointObserver);
|
|
6
6
|
isMobile$: import("rxjs").Observable<boolean>;
|
|
7
|
+
isTablet$: import("rxjs").Observable<boolean>;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointLibService, never>;
|
|
8
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<BreakpointLibService>;
|
|
9
10
|
}
|