@ieeesa-npm/presentation 0.8.5 → 0.8.6
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/esm2022/lib/assets/constants.json +27 -2
- package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -3
- package/esm2022/lib/components/header/header.component.mjs +41 -4
- package/esm2022/lib/components/menu/menu.component.mjs +10 -4
- package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +3 -3
- package/esm2022/lib/components/notification/notification.component.mjs +3 -3
- package/esm2022/lib/models/profile-menu.model.mjs +8 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +148 -75
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +18 -6
- package/lib/components/header/header.component.d.ts +15 -1
- package/lib/components/menu/menu.component.d.ts +4 -1
- package/lib/models/profile-menu.model.d.ts +4 -0
- package/package.json +3 -3
- package/public-api.d.ts +1 -0
- package/src/lib/assets/constants.json +27 -2
|
@@ -117,17 +117,29 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
117
117
|
};
|
|
118
118
|
ariaLabel: {
|
|
119
119
|
helpLink: string;
|
|
120
|
-
userProfile: string;
|
|
121
120
|
hamburgerMenu: string;
|
|
122
121
|
};
|
|
123
122
|
label: {
|
|
124
123
|
signOut: string;
|
|
125
124
|
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
buttons: {
|
|
126
|
+
id: number;
|
|
127
|
+
iconURL: string;
|
|
128
|
+
toolTip: string;
|
|
129
|
+
ariaLabel: string;
|
|
130
|
+
}[];
|
|
131
|
+
userProfileMenuOptions: {
|
|
132
|
+
id: number;
|
|
133
|
+
iconURL: string;
|
|
134
|
+
label: string;
|
|
135
|
+
ariaLabel: string;
|
|
136
|
+
toolTip: string;
|
|
137
|
+
isToolTipNeeded: boolean; /**
|
|
138
|
+
* Shows list of chips on the basis of view more/less button state.
|
|
139
|
+
* @memberof ChipComponent
|
|
140
|
+
*/
|
|
141
|
+
}[];
|
|
142
|
+
};
|
|
131
143
|
footer: {
|
|
132
144
|
alt: {
|
|
133
145
|
logo: string;
|
|
@@ -2,6 +2,8 @@ import { EventEmitter, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { HeaderConfig } from '../../models/header-config.model';
|
|
3
3
|
import { BreakpointObserverService, AuthService, StorageService } from '@ieeesa-npm/utility';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
|
+
import { Menu } from '../../models/menu.model';
|
|
6
|
+
import { IconButton } from '../../models/icon-button.model';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* Implements & displays application logo, title, signed in user information, sign-out link, and hamburger link for mobile view.
|
|
@@ -20,10 +22,15 @@ export declare class HeaderComponent implements OnDestroy {
|
|
|
20
22
|
*/
|
|
21
23
|
set headerConfig(value: HeaderConfig);
|
|
22
24
|
get headerConfig(): HeaderConfig;
|
|
25
|
+
set menuConfig(value: Menu[]);
|
|
26
|
+
get menuConfig(): Menu[];
|
|
23
27
|
destroy$: Subject<boolean>;
|
|
24
28
|
screenTexts: any;
|
|
25
29
|
isMobileView: boolean;
|
|
26
30
|
toggleNavMenuClick: EventEmitter<Event>;
|
|
31
|
+
private profileMenuOptions;
|
|
32
|
+
userProfileIconButton: IconButton;
|
|
33
|
+
menuItems: Menu[];
|
|
27
34
|
constructor(breakPointObserverService: BreakpointObserverService, authService: AuthService, storageService: StorageService);
|
|
28
35
|
/**
|
|
29
36
|
* Desktop event to navigate to logout page.
|
|
@@ -37,11 +44,18 @@ export declare class HeaderComponent implements OnDestroy {
|
|
|
37
44
|
* @memberof HeaderComponent
|
|
38
45
|
*/
|
|
39
46
|
toggleNavMenu(event: Event): void;
|
|
47
|
+
/**
|
|
48
|
+
* Handles the profile menu item click event and calls the logout
|
|
49
|
+
* method when Sign Out button is clicked..
|
|
50
|
+
* @param {Menu} menu
|
|
51
|
+
* @memberof HeaderComponent
|
|
52
|
+
*/
|
|
53
|
+
onUserProfileMenuClick(menu: Menu): void;
|
|
40
54
|
/**
|
|
41
55
|
* Cleans up resources when the component is destroyed.
|
|
42
56
|
* @memberof HeaderComponent
|
|
43
57
|
*/
|
|
44
58
|
ngOnDestroy(): void;
|
|
45
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "ieeesa-header", never, { "headerConfig": { "alias": "headerConfig"; "required": false; }; }, { "toggleNavMenuClick": "toggleNavMenuClick"; }, never, never, true, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "ieeesa-header", never, { "headerConfig": { "alias": "headerConfig"; "required": false; }; "menuConfig": { "alias": "menuConfig"; "required": false; }; }, { "toggleNavMenuClick": "toggleNavMenuClick"; }, never, never, true, never>;
|
|
47
61
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { Menu } from '../../models/menu.model';
|
|
3
|
+
import { IconButton } from '../../models/icon-button.model';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Creates menu and the menu items are icon based buttons
|
|
@@ -9,6 +10,8 @@ import * as i0 from "@angular/core";
|
|
|
9
10
|
export declare class MenuComponent {
|
|
10
11
|
constants: any;
|
|
11
12
|
menuItems: Menu[];
|
|
13
|
+
button: IconButton;
|
|
14
|
+
isMarginBottomZero: boolean;
|
|
12
15
|
menuItemClick: EventEmitter<Menu>;
|
|
13
16
|
/**
|
|
14
17
|
* Emits the clicked menu item
|
|
@@ -25,5 +28,5 @@ export declare class MenuComponent {
|
|
|
25
28
|
*/
|
|
26
29
|
trackByFn(index: number, menu: Menu): number;
|
|
27
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "ieeesa-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "menuItemClick": "menuItemClick"; }, never, never, true, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "ieeesa-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "button": { "alias": "button"; "required": false; }; "isMarginBottomZero": { "alias": "isMarginBottomZero"; "required": false; }; }, { "menuItemClick": "menuItemClick"; }, never, never, true, never>;
|
|
29
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/presentation",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"moment": "^2.29.4",
|
|
19
19
|
"rxjs": "~7.8.0",
|
|
20
20
|
"zone.js": "~0.13.0",
|
|
21
|
-
"@ieeesa-npm/shared-styles": "^0.
|
|
22
|
-
"@ieeesa-npm/feature": "^0.6.
|
|
21
|
+
"@ieeesa-npm/shared-styles": "^0.2.0",
|
|
22
|
+
"@ieeesa-npm/feature": "^0.6.9"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * from './lib/models/table-actions.model';
|
|
|
59
59
|
export * from './lib/models/table-schema.model';
|
|
60
60
|
export * from './lib/models/breadcrumb.model';
|
|
61
61
|
export * from './lib/models/tile.model';
|
|
62
|
+
export * from './lib/models/profile-menu.model';
|
|
62
63
|
export * from './lib/services/datepicker.service';
|
|
63
64
|
export * from './lib/services/form-utility.service';
|
|
64
65
|
export * from './lib/presentation.module';
|
|
@@ -119,12 +119,37 @@
|
|
|
119
119
|
},
|
|
120
120
|
"ariaLabel": {
|
|
121
121
|
"helpLink": "Help Link",
|
|
122
|
-
"userProfile": "User profile",
|
|
123
122
|
"hamburgerMenu": "Hamburger Menu"
|
|
124
123
|
},
|
|
125
124
|
"label": {
|
|
126
125
|
"signOut": "Sign Out"
|
|
127
|
-
}
|
|
126
|
+
},
|
|
127
|
+
"buttons": [
|
|
128
|
+
{
|
|
129
|
+
"id": 5,
|
|
130
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-header-user-profile",
|
|
131
|
+
"toolTip": "User Profile",
|
|
132
|
+
"ariaLabel": "User Profile"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"userProfileMenuOptions": [
|
|
136
|
+
{
|
|
137
|
+
"id": 1,
|
|
138
|
+
"iconURL": "",
|
|
139
|
+
"label": "My Profile",
|
|
140
|
+
"ariaLabel": "My Profile",
|
|
141
|
+
"toolTip": "",
|
|
142
|
+
"isToolTipNeeded": false
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": 2,
|
|
146
|
+
"iconURL": "",
|
|
147
|
+
"label": "Sign Out",
|
|
148
|
+
"ariaLabel": "Sign Out",
|
|
149
|
+
"toolTip": "",
|
|
150
|
+
"isToolTipNeeded": false
|
|
151
|
+
}
|
|
152
|
+
]
|
|
128
153
|
},
|
|
129
154
|
"footer": {
|
|
130
155
|
"alt": {
|