@ieeesa-npm/presentation 0.4.0 → 0.4.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.
@@ -11,13 +11,15 @@ import * as i0 from "@angular/core";
11
11
  export declare class HeaderComponent implements OnDestroy {
12
12
  private router;
13
13
  private breakPointObserverService;
14
+ private headerConfigInfo;
14
15
  /**
15
16
  * HeaderConfig represents the configurable properties required for header component.
16
17
  * Input property of the component to get the configurable values such as logo, app title, signed in user name and logout redirect URL.
17
18
  * @type {HeaderConfig}
18
19
  * @memberof HeaderComponent
19
20
  */
20
- headerConfig: HeaderConfig;
21
+ set headerConfig(value: HeaderConfig);
22
+ get headerConfig(): HeaderConfig;
21
23
  destroy$: Subject<boolean>;
22
24
  screenTexts: any;
23
25
  isMobileView: boolean;
@@ -15,7 +15,7 @@ export declare class NavigationMenuComponent implements OnDestroy {
15
15
  changeDetectorRef: ChangeDetectorRef;
16
16
  media: MediaMatcher;
17
17
  isMenuOpen: boolean;
18
- SideMenu: SideMenuItem[];
18
+ sideMenu: SideMenuItem[];
19
19
  navMenu: MatSidenav;
20
20
  mobileQuery: MediaQueryList;
21
21
  mobileQueryListener: () => void;
@@ -41,5 +41,5 @@ export declare class NavigationMenuComponent implements OnDestroy {
41
41
  toggleNavMenu(): void;
42
42
  ngOnDestroy(): void;
43
43
  static ɵfac: i0.ɵɵFactoryDeclaration<NavigationMenuComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<NavigationMenuComponent, "ieeesa-navigation-menu", never, { "isMenuOpen": { "alias": "isMenuOpen"; "required": false; }; "SideMenu": { "alias": "SideMenu"; "required": false; }; }, {}, never, never, true, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavigationMenuComponent, "ieeesa-navigation-menu", never, { "isMenuOpen": { "alias": "isMenuOpen"; "required": false; }; "sideMenu": { "alias": "sideMenu"; "required": false; }; }, {}, never, never, true, never>;
45
45
  }
@@ -0,0 +1,32 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AppConfigInfo } from '../../models/app-config-info.model';
3
+ import { Router } from '@angular/router';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Provides reusable implementation to pre-login page by getting the application config information as an input to the component.
7
+ * @export
8
+ * @class WelcomeComponent
9
+ * @implements {OnInit}
10
+ * @implements {OnDestroy}
11
+ */
12
+ export declare class WelcomeComponent {
13
+ private router;
14
+ /**
15
+ * AppConfigInfo data can be passed as input while calling this component using selector and it can also be passed as a route data.
16
+ * @usage <nesc-welcome [appConfigInfo]="appConfigInfo"></nesc-welcome> or routes: Route[]=[{ path: 'landing', component: WelcomeComponent, data:{appConfigInfo:appConfigInfo} }]
17
+ * @type {AppConfigInfo}
18
+ * @memberof WelcomeComponent
19
+ */
20
+ appConfigInfo: AppConfigInfo;
21
+ signInClick: EventEmitter<Event>;
22
+ constants: any;
23
+ constructor(router: Router);
24
+ /**
25
+ * Navigates to passed sign in route url or emits the click event in case route url is not there.
26
+ * @param {Event} event
27
+ * @memberof WelcomeComponent
28
+ */
29
+ onSignInClick(event: Event): void;
30
+ 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>;
32
+ }
@@ -0,0 +1,9 @@
1
+ export interface AppConfigInfo {
2
+ appTitle: string;
3
+ appDescription: string;
4
+ background?: {
5
+ color?: string;
6
+ imgURL?: string;
7
+ };
8
+ signInRouteUrl?: string;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
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.0.8",
22
- "@ieeesa-npm/feature": "^0.2.3"
21
+ "@ieeesa-npm/shared-styles": "^0.0.9",
22
+ "@ieeesa-npm/feature": "^0.2.4"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -20,10 +20,12 @@ export * from './lib/components/search/search.component';
20
20
  export * from './lib/components/select/select.component';
21
21
  export * from './lib/components/text-area/text-area.component';
22
22
  export * from './lib/components/toggle-button/toggle-button.component';
23
+ export * from './lib/components/welcome/welcome.component';
23
24
  export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
24
25
  export * from './lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive';
25
26
  export * from './lib/directives/set-background/set-background.directive';
26
27
  export * from './lib/models/align-type.model';
28
+ export * from './lib/models/app-config-info.model';
27
29
  export * from './lib/models/autocomplete-option.model';
28
30
  export * from './lib/models/calendar.model';
29
31
  export * from './lib/models/checkbox-option.model';
@@ -90,5 +90,19 @@
90
90
  "textPart4": "A not-for-profit organization, IEEE is the world's largest technical professional organization dedicated to advancing technology for the benefit of humanity."
91
91
  }
92
92
  },
93
+ "welcome": {
94
+ "buttons": [
95
+ {
96
+ "label": "Create Account",
97
+ "ariaLabel": "Create Account",
98
+ "url": "https://www.ieee.org/profile/public/createwebaccount/showCreateAccount.html"
99
+ },
100
+ {
101
+ "label": "Sign In",
102
+ "ariaLabel": "",
103
+ "url": ""
104
+ }
105
+ ]
106
+ },
93
107
  "defaultWelcomeBgColor": "#C0DCED"
94
108
  }