@ieeesa-npm/presentation 0.5.1 → 0.5.3

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 (41) hide show
  1. package/esm2022/lib/assets/constants.json +1 -1
  2. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +3 -3
  3. package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -3
  4. package/esm2022/lib/components/chips/chips.component.mjs +3 -3
  5. package/esm2022/lib/components/data-table/data-table.component.mjs +3 -3
  6. package/esm2022/lib/components/date-picker/date-picker.component.mjs +5 -17
  7. package/esm2022/lib/components/date-picker-header/date-picker-header.component.mjs +4 -3
  8. package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +3 -3
  9. package/esm2022/lib/components/filter/filter.component.mjs +3 -3
  10. package/esm2022/lib/components/footer/footer.component.mjs +10 -3
  11. package/esm2022/lib/components/form-error/form-error.component.mjs +3 -3
  12. package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -3
  13. package/esm2022/lib/components/header/header.component.mjs +15 -11
  14. package/esm2022/lib/components/input/input.component.mjs +3 -3
  15. package/esm2022/lib/components/menu/menu.component.mjs +3 -3
  16. package/esm2022/lib/components/modal/modal.component.mjs +3 -3
  17. package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +3 -3
  18. package/esm2022/lib/components/navigation-menu/navigation-menu.component.mjs +3 -3
  19. package/esm2022/lib/components/notification/notification.component.mjs +3 -3
  20. package/esm2022/lib/components/radio/radio.component.mjs +3 -3
  21. package/esm2022/lib/components/search/search.component.mjs +3 -3
  22. package/esm2022/lib/components/select/select.component.mjs +3 -3
  23. package/esm2022/lib/components/text-area/text-area.component.mjs +3 -3
  24. package/esm2022/lib/components/toggle-button/toggle-button.component.mjs +3 -3
  25. package/esm2022/lib/components/welcome/welcome.component.mjs +26 -3
  26. package/esm2022/lib/date-formats.mjs +2 -2
  27. package/esm2022/lib/models/app-config-info.model.mjs +1 -1
  28. package/esm2022/lib/models/date-picker.model.mjs +1 -1
  29. package/esm2022/lib/models/header-config.model.mjs +1 -1
  30. package/esm2022/lib/models/navigation-menu.model.mjs +1 -1
  31. package/fesm2022/ieeesa-npm-presentation.mjs +117 -93
  32. package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
  33. package/lib/components/date-picker/date-picker.component.d.ts +1 -9
  34. package/lib/components/footer/footer.component.d.ts +8 -1
  35. package/lib/components/header/header.component.d.ts +4 -4
  36. package/lib/components/welcome/welcome.component.d.ts +9 -1
  37. package/lib/models/app-config-info.model.d.ts +5 -0
  38. package/lib/models/date-picker.model.d.ts +0 -3
  39. package/lib/models/header-config.model.d.ts +4 -0
  40. package/package.json +3 -3
  41. package/src/lib/assets/constants.json +1 -1
@@ -71,8 +71,6 @@ export declare class DatePickerComponent implements FormField, OnInit {
71
71
  minDate: string;
72
72
  maxDate: string;
73
73
  };
74
- minDate: Date | moment.Moment;
75
- maxDate: Date | moment.Moment;
76
74
  selectedDate: EventEmitter<string>;
77
75
  selectedDateRange: EventEmitter<{
78
76
  startDate: string;
@@ -127,12 +125,6 @@ export declare class DatePickerComponent implements FormField, OnInit {
127
125
  * @memberof DatePickerComponent
128
126
  */
129
127
  isRequired(): boolean;
130
- /**
131
- * Sets the updated selected date using datepicker service which will be shown in datepicker header
132
- * @param {string} controlName
133
- * @memberof DatePickerComponent
134
- */
135
- onDatePickerOpen(controlName: string): void;
136
128
  static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
137
- static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "ieeesa-date-picker", never, { "selectedDates": { "alias": "selectedDates"; "required": false; }; "selectedRange": { "alias": "selectedRange"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isLabelAlignedLeft": { "alias": "isLabelAlignedLeft"; "required": false; }; "datepickerLabel": { "alias": "datepickerLabel"; "required": false; }; "dateRange": { "alias": "dateRange"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "selectedDate": "selectedDate"; "selectedDateRange": "selectedDateRange"; }, never, never, true, never>;
129
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "ieeesa-date-picker", never, { "selectedDates": { "alias": "selectedDates"; "required": false; }; "selectedRange": { "alias": "selectedRange"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isLabelAlignedLeft": { "alias": "isLabelAlignedLeft"; "required": false; }; "datepickerLabel": { "alias": "datepickerLabel"; "required": false; }; "dateRange": { "alias": "dateRange"; "required": false; }; }, { "selectedDate": "selectedDate"; "selectedDateRange": "selectedDateRange"; }, never, never, true, never>;
138
130
  }
@@ -13,10 +13,17 @@ export declare class FooterComponent implements OnInit {
13
13
  * @memberof FooterComponent
14
14
  */
15
15
  footerConfig: FooterConfig;
16
+ /**
17
+ * Input property to get the user signed in status.
18
+ * @type {boolean}
19
+ * @memberof FooterComponent
20
+ */
21
+ isSignedIn: boolean;
16
22
  screenTexts: any;
17
23
  currentYear: number;
18
24
  /**
19
25
  * Initializes the component with default values if not provided.
26
+ * It should hide the the dashboard link if the user is not signed in.
20
27
  * @return -returns nothing
21
28
  * @memberof FooterComponent
22
29
  */
@@ -30,5 +37,5 @@ export declare class FooterComponent implements OnInit {
30
37
  */
31
38
  trackByFunc(index: number, link: FooterLink): string;
32
39
  static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "ieeesa-footer", never, { "footerConfig": { "alias": "footerConfig"; "required": false; }; }, {}, never, never, true, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "ieeesa-footer", never, { "footerConfig": { "alias": "footerConfig"; "required": false; }; "isSignedIn": { "alias": "isSignedIn"; "required": false; }; }, {}, never, never, true, never>;
34
41
  }
@@ -1,7 +1,6 @@
1
1
  import { EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { HeaderConfig } from '../../models/header-config.model';
3
- import { Router } from '@angular/router';
4
- import { BreakpointObserverService } from '@ieeesa-npm/utility';
3
+ import { BreakpointObserverService, AuthService } from '@ieeesa-npm/utility';
5
4
  import { Subject } from 'rxjs';
6
5
  import * as i0 from "@angular/core";
7
6
  /**
@@ -9,8 +8,8 @@ import * as i0 from "@angular/core";
9
8
  * @class HeaderComponent
10
9
  */
11
10
  export declare class HeaderComponent implements OnDestroy {
12
- private router;
13
11
  private breakPointObserverService;
12
+ private authService;
14
13
  private headerConfigInfo;
15
14
  /**
16
15
  * HeaderConfig represents the configurable properties required for header component.
@@ -24,10 +23,11 @@ export declare class HeaderComponent implements OnDestroy {
24
23
  screenTexts: any;
25
24
  isMobileView: boolean;
26
25
  toggleNavMenuClick: EventEmitter<Event>;
27
- constructor(router: Router, breakPointObserverService: BreakpointObserverService);
26
+ constructor(breakPointObserverService: BreakpointObserverService, authService: AuthService);
28
27
  /**
29
28
  * Desktop event to navigate to logout page.
30
29
  * @memberof HeaderComponent
30
+ * It will deletes the application specific and SSO related cookies
31
31
  */
32
32
  logout(): void;
33
33
  /**
@@ -19,8 +19,16 @@ export declare class WelcomeComponent {
19
19
  */
20
20
  appConfigInfo: AppConfigInfo;
21
21
  signInClick: EventEmitter<Event>;
22
+ signUpClick: EventEmitter<Event>;
22
23
  constants: any;
24
+ url: string;
23
25
  constructor(router: Router);
26
+ /**
27
+ * Navigates to passed sign up route url or emits the click event in case route url is not there.
28
+ * @param {Event} event
29
+ * @memberof WelcomeComponent
30
+ */
31
+ onCreateAccountClick(event: Event): void;
24
32
  /**
25
33
  * Navigates to passed sign in route url or emits the click event in case route url is not there.
26
34
  * @param {Event} event
@@ -28,5 +36,5 @@ export declare class WelcomeComponent {
28
36
  */
29
37
  onSignInClick(event: Event): void;
30
38
  static ɵfac: i0.ɵɵFactoryDeclaration<WelcomeComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<WelcomeComponent, "ieeesa-welcome", never, { "appConfigInfo": { "alias": "appConfigInfo"; "required": false; }; }, { "signInClick": "signInClick"; }, never, never, true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<WelcomeComponent, "ieeesa-welcome", never, { "appConfigInfo": { "alias": "appConfigInfo"; "required": false; }; }, { "signInClick": "signInClick"; "signUpClick": "signUpClick"; }, never, never, true, never>;
32
40
  }
@@ -6,4 +6,9 @@ export interface AppConfigInfo {
6
6
  imgURL?: string;
7
7
  };
8
8
  signInRouteUrl?: string;
9
+ cookieName: string;
10
+ ssoSignOutUrl: string;
11
+ redirectUrlPostSignOut: string;
12
+ signOutRedirectionCookie: string;
13
+ createAccountRouteUrl?: string;
9
14
  }
@@ -1,5 +1,4 @@
1
1
  import { CalendarType } from '../models/calendar.model';
2
- import * as moment from 'moment';
3
2
  export interface DatePicker {
4
3
  placeholderLabel?: string;
5
4
  selectedDates?: string[];
@@ -11,6 +10,4 @@ export interface DatePicker {
11
10
  maxDate: string;
12
11
  };
13
12
  calendarType: CalendarType;
14
- minDate?: Date | moment.Moment;
15
- maxDate?: Date | moment.Moment;
16
13
  }
@@ -5,4 +5,8 @@ export interface HeaderConfig {
5
5
  userName: string;
6
6
  helpLink: string;
7
7
  logoutLink: string;
8
+ ssoSignOutUrl: string;
9
+ redirectUrlPostSignOut: string;
10
+ signOutRedirectionCookie: string;
11
+ cookieName: string;
8
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
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.2",
22
- "@ieeesa-npm/feature": "^0.3.3"
21
+ "@ieeesa-npm/shared-styles": "^0.1.3",
22
+ "@ieeesa-npm/feature": "^0.3.5"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.3.0"
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "datePicker": {
84
84
  "selectDateLabel": "Select Date",
85
- "dateFormatLabel": "dd mmm yyyy",
85
+ "dateFormatLabel": "DD-MMM-YYYY",
86
86
  "startDateLabel": "Start Date",
87
87
  "endDateLabel": "End Date"
88
88
  },