@ieeesa-npm/presentation 0.3.8 → 0.3.9

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.
@@ -0,0 +1,41 @@
1
+ import { EventEmitter, OnDestroy } from '@angular/core';
2
+ import { AppConfigInfo } from '../../models/app-config-info.model';
3
+ import { Router } from '@angular/router';
4
+ import { LoaderService } from '@ieeesa-npm/utility';
5
+ import { Subject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Provides reusable implementation to pre-login page by getting the application config information as an input to the component.
9
+ * @export
10
+ * @class WelcomeComponent
11
+ * @implements {OnInit}
12
+ * @implements {OnDestroy}
13
+ */
14
+ export declare class WelcomeComponent implements OnDestroy {
15
+ private router;
16
+ private loaderService;
17
+ /**
18
+ * AppConfigInfo data can be passed as input while calling this component using selector and it can also be passed as a route data.
19
+ * @usage <nesc-welcome [appConfigInfo]="appConfigInfo"></nesc-welcome> or routes: Route[]=[{ path: 'landing', component: WelcomeComponent, data:{appConfigInfo:appConfigInfo} }]
20
+ * @type {AppConfigInfo}
21
+ * @memberof WelcomeComponent
22
+ */
23
+ appConfigInfo: AppConfigInfo;
24
+ signInClick: EventEmitter<Event>;
25
+ constants: any;
26
+ destroy$: Subject<boolean>;
27
+ constructor(router: Router, loaderService: LoaderService);
28
+ /**
29
+ * Navigates to passed sign in route url or emits the click event in case route url is not there.
30
+ * @param {Event} event
31
+ * @memberof WelcomeComponent
32
+ */
33
+ onSignInClick(event: Event): void;
34
+ /**
35
+ * Unsubscribes the open subscriptions while destroying the component.
36
+ * @memberof ReusableErrorPageComponent
37
+ */
38
+ ngOnDestroy(): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<WelcomeComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<WelcomeComponent, "ieeesa-welcome", never, { "appConfigInfo": { "alias": "appConfigInfo"; "required": false; }; }, { "signInClick": "signInClick"; }, never, never, true, never>;
41
+ }
@@ -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.3.8",
3
+ "version": "0.3.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.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
  }