@ieeesa-npm/presentation 0.8.5 → 0.8.7

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.
Files changed (43) hide show
  1. package/esm2022/lib/assets/constants.json +27 -2
  2. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +3 -3
  3. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +3 -3
  4. package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -3
  5. package/esm2022/lib/components/chips/chips.component.mjs +3 -3
  6. package/esm2022/lib/components/data-table/data-table.component.mjs +3 -3
  7. package/esm2022/lib/components/date-picker/date-picker.component.mjs +3 -3
  8. package/esm2022/lib/components/date-picker-header/date-picker-header.component.mjs +3 -3
  9. package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +3 -3
  10. package/esm2022/lib/components/filter/filter.component.mjs +3 -3
  11. package/esm2022/lib/components/footer/footer.component.mjs +3 -3
  12. package/esm2022/lib/components/form-error/form-error.component.mjs +3 -3
  13. package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -3
  14. package/esm2022/lib/components/header/header.component.mjs +41 -4
  15. package/esm2022/lib/components/input/input.component.mjs +3 -3
  16. package/esm2022/lib/components/loader/loader.component.mjs +3 -3
  17. package/esm2022/lib/components/menu/menu.component.mjs +10 -4
  18. package/esm2022/lib/components/modal/modal.component.mjs +3 -3
  19. package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +3 -3
  20. package/esm2022/lib/components/navigation-menu/navigation-menu.component.mjs +3 -3
  21. package/esm2022/lib/components/notification/notification.component.mjs +3 -3
  22. package/esm2022/lib/components/radio/radio.component.mjs +3 -3
  23. package/esm2022/lib/components/search/search.component.mjs +6 -3
  24. package/esm2022/lib/components/select/select.component.mjs +3 -3
  25. package/esm2022/lib/components/text-area/text-area.component.mjs +3 -3
  26. package/esm2022/lib/components/tile/tile.component.mjs +3 -3
  27. package/esm2022/lib/components/toggle-button/toggle-button.component.mjs +3 -3
  28. package/esm2022/lib/components/welcome/welcome.component.mjs +10 -5
  29. package/esm2022/lib/models/app-config-info.model.mjs +1 -1
  30. package/esm2022/lib/models/profile-menu.model.mjs +8 -0
  31. package/esm2022/public-api.mjs +2 -1
  32. package/fesm2022/ieeesa-npm-presentation.mjs +202 -121
  33. package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
  34. package/lib/components/chips/chips.component.d.ts +18 -6
  35. package/lib/components/header/header.component.d.ts +15 -1
  36. package/lib/components/menu/menu.component.d.ts +4 -1
  37. package/lib/components/search/search.component.d.ts +2 -1
  38. package/lib/components/welcome/welcome.component.d.ts +3 -2
  39. package/lib/models/app-config-info.model.d.ts +1 -0
  40. package/lib/models/profile-menu.model.d.ts +4 -0
  41. package/package.json +3 -3
  42. package/public-api.d.ts +1 -0
  43. 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
- * Onclick the chip, it emits selectedChip event with selected chip.
128
- * @param {ChipOption} chip
129
- * @memberof ChipComponent
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
  }
@@ -23,6 +23,7 @@ export declare class SearchComponent implements OnInit, AfterViewInit, OnDestroy
23
23
  formControlName: string;
24
24
  placeholderLabel: string;
25
25
  searchTerm: string;
26
+ supportMessage: string;
26
27
  searchType: SearchType;
27
28
  searchValue: EventEmitter<any>;
28
29
  searchControl: ElementRef;
@@ -69,5 +70,5 @@ export declare class SearchComponent implements OnInit, AfterViewInit, OnDestroy
69
70
  */
70
71
  ngOnDestroy(): void;
71
72
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, never>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "ieeesa-search", never, { "formControlName": { "alias": "formControlName"; "required": false; }; "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "searchTerm": { "alias": "searchTerm"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; "minCharacterToSearch": { "alias": "minCharacterToSearch"; "required": false; }; }, { "searchValue": "searchValue"; }, never, never, true, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "ieeesa-search", never, { "formControlName": { "alias": "formControlName"; "required": false; }; "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "searchTerm": { "alias": "searchTerm"; "required": false; }; "supportMessage": { "alias": "supportMessage"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; "minCharacterToSearch": { "alias": "minCharacterToSearch"; "required": false; }; }, { "searchValue": "searchValue"; }, never, never, true, never>;
73
74
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { AppConfigInfo } from '../../models/app-config-info.model';
3
3
  import { Router } from '@angular/router';
4
4
  import * as i0 from "@angular/core";
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
9
9
  * @implements {OnInit}
10
10
  * @implements {OnDestroy}
11
11
  */
12
- export declare class WelcomeComponent {
12
+ export declare class WelcomeComponent implements OnInit {
13
13
  private router;
14
14
  /**
15
15
  * AppConfigInfo data can be passed as input while calling this component using selector and it can also be passed as a route data.
@@ -23,6 +23,7 @@ export declare class WelcomeComponent {
23
23
  constants: any;
24
24
  url: string;
25
25
  constructor(router: Router);
26
+ ngOnInit(): void;
26
27
  /**
27
28
  * Navigates to passed sign up route url or emits the click event in case route url is not there.
28
29
  * @param {Event} event
@@ -12,4 +12,5 @@ export interface AppConfigInfo {
12
12
  redirectUrlPostSignOut: string;
13
13
  signOutRedirectionCookie: string;
14
14
  createAccountRouteUrl?: string;
15
+ createAccountUrl?: string;
15
16
  }
@@ -0,0 +1,4 @@
1
+ export declare enum UserProfileMenu {
2
+ USER_PROFILE = 1,
3
+ SIGN_OUT = 2
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
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.1.9",
22
- "@ieeesa-npm/feature": "^0.6.6"
21
+ "@ieeesa-npm/shared-styles": "^0.2.1",
22
+ "@ieeesa-npm/feature": "^0.7.0"
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": {