@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.
- package/esm2022/lib/assets/constants.json +14 -0
- package/esm2022/lib/components/header/header.component.mjs +3 -3
- package/esm2022/lib/components/welcome/welcome.component.mjs +74 -0
- package/esm2022/lib/models/app-config-info.model.mjs +2 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +84 -4
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/welcome/welcome.component.d.ts +41 -0
- package/lib/models/app-config-info.model.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/assets/constants.json +14 -0
|
@@ -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
|
+
}
|
package/package.json
CHANGED
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
|
}
|