@ieeesa-npm/presentation 0.3.7 → 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 +15 -4
- package/esm2022/lib/components/navigation-menu/navigation-menu.component.mjs +13 -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 +106 -5
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/header/header.component.d.ts +9 -2
- package/lib/components/navigation-menu/navigation-menu.component.d.ts +7 -0
- package/lib/components/welcome/welcome.component.d.ts +41 -0
- package/lib/models/app-config-info.model.d.ts +9 -0
- package/package.json +3 -3
- package/public-api.d.ts +2 -0
- package/src/lib/assets/constants.json +14 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { HeaderConfig } from '../../models/header-config.model';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { BreakpointObserverService } from '@ieeesa-npm/utility';
|
|
@@ -21,17 +21,24 @@ export declare class HeaderComponent implements OnDestroy {
|
|
|
21
21
|
destroy$: Subject<boolean>;
|
|
22
22
|
screenTexts: any;
|
|
23
23
|
isMobileView: boolean;
|
|
24
|
+
toggleNavMenuClick: EventEmitter<Event>;
|
|
24
25
|
constructor(router: Router, breakPointObserverService: BreakpointObserverService);
|
|
25
26
|
/**
|
|
26
27
|
* Desktop event to navigate to logout page.
|
|
27
28
|
* @memberof HeaderComponent
|
|
28
29
|
*/
|
|
29
30
|
logout(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Emits toggleNavMenuClick event once hamburger icon is clicked.
|
|
33
|
+
* @param {Event} event
|
|
34
|
+
* @memberof HeaderComponent
|
|
35
|
+
*/
|
|
36
|
+
toggleNavMenu(event: Event): void;
|
|
30
37
|
/**
|
|
31
38
|
* Cleans up resources when the component is destroyed.
|
|
32
39
|
* @memberof HeaderComponent
|
|
33
40
|
*/
|
|
34
41
|
ngOnDestroy(): void;
|
|
35
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "ieeesa-header", never, { "headerConfig": { "alias": "headerConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "ieeesa-header", never, { "headerConfig": { "alias": "headerConfig"; "required": false; }; }, { "toggleNavMenuClick": "toggleNavMenuClick"; }, never, never, true, never>;
|
|
37
44
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatSidenav } from '@angular/material/sidenav';
|
|
2
3
|
import { MediaMatcher } from '@angular/cdk/layout';
|
|
3
4
|
import { SideMenuItem } from '../../models/navigation-menu.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -15,6 +16,7 @@ export declare class NavigationMenuComponent implements OnDestroy {
|
|
|
15
16
|
media: MediaMatcher;
|
|
16
17
|
isMenuOpen: boolean;
|
|
17
18
|
SideMenu: SideMenuItem[];
|
|
19
|
+
navMenu: MatSidenav;
|
|
18
20
|
mobileQuery: MediaQueryList;
|
|
19
21
|
mobileQueryListener: () => void;
|
|
20
22
|
constructor(changeDetectorRef: ChangeDetectorRef, media: MediaMatcher);
|
|
@@ -32,6 +34,11 @@ export declare class NavigationMenuComponent implements OnDestroy {
|
|
|
32
34
|
* @memberof NavigationMenuComponent
|
|
33
35
|
*/
|
|
34
36
|
isMenuOpened(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Toggles the navigation menu state.
|
|
39
|
+
* @memberof NavigationMenuComponent
|
|
40
|
+
*/
|
|
41
|
+
toggleNavMenu(): void;
|
|
35
42
|
ngOnDestroy(): void;
|
|
36
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationMenuComponent, never>;
|
|
37
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationMenuComponent, "ieeesa-navigation-menu", never, { "isMenuOpen": { "alias": "isMenuOpen"; "required": false; }; "SideMenu": { "alias": "SideMenu"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/presentation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
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.
|
|
22
|
-
"@ieeesa-npm/feature": "^0.2.
|
|
21
|
+
"@ieeesa-npm/shared-styles": "^0.0.7",
|
|
22
|
+
"@ieeesa-npm/feature": "^0.2.1"
|
|
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
|
}
|