@ieeesa-npm/presentation 0.2.4 → 0.2.6
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 +3 -1
- package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -3
- package/esm2022/lib/components/header/header.component.mjs +8 -8
- package/esm2022/lib/components/icon-button/icon-button.component.mjs +35 -0
- package/esm2022/lib/components/legend/legend.component.mjs +20 -0
- package/esm2022/lib/components/menu/menu.component.mjs +60 -0
- package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +3 -3
- package/esm2022/lib/components/notification/notification.component.mjs +3 -3
- package/esm2022/lib/components/search/search.component.mjs +3 -3
- package/esm2022/lib/components/select/select.component.mjs +2 -2
- package/esm2022/lib/directives/set-background/set-background.directive.mjs +52 -0
- package/esm2022/lib/models/icon-button.model.mjs +2 -0
- package/esm2022/lib/models/legend.model.mjs +2 -0
- package/esm2022/lib/models/menu.model.mjs +2 -0
- package/esm2022/public-api.mjs +9 -2
- package/fesm2022/ieeesa-npm-presentation.mjs +180 -33
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/header/header.component.d.ts +3 -3
- package/lib/components/icon-button/icon-button.component.d.ts +20 -0
- package/lib/components/legend/legend.component.d.ts +8 -0
- package/lib/components/menu/menu.component.d.ts +29 -0
- package/lib/directives/set-background/set-background.directive.d.ts +28 -0
- package/lib/models/icon-button.model.d.ts +7 -0
- package/lib/models/legend.model.d.ts +4 -0
- package/lib/models/menu.model.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +8 -1
- package/src/lib/assets/constants.json +3 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { HeaderConfig } from '../../models/header-config.model';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
|
-
import {
|
|
4
|
+
import { BreakpointObserverService } from '@ieeesa-npm/utility';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class HeaderComponent implements OnDestroy {
|
|
12
12
|
private router;
|
|
13
|
-
private
|
|
13
|
+
private breakPointObserverService;
|
|
14
14
|
/**
|
|
15
15
|
* HeaderConfig represents the configurable properties required for header component.
|
|
16
16
|
* Input property of the component to get the configurable values such as logo, app title, signed in user name and logout redirect URL.
|
|
@@ -21,7 +21,7 @@ export declare class HeaderComponent implements OnDestroy {
|
|
|
21
21
|
destroy$: Subject<boolean>;
|
|
22
22
|
screenTexts: any;
|
|
23
23
|
isMobileView: boolean;
|
|
24
|
-
constructor(router: Router,
|
|
24
|
+
constructor(router: Router, breakPointObserverService: BreakpointObserverService);
|
|
25
25
|
/**
|
|
26
26
|
* Desktop event to navigate to logout page.
|
|
27
27
|
* @memberof HeaderComponent
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { IconButton } from '../../models/icon-button.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Creates svg icon as button component.
|
|
6
|
+
* @export
|
|
7
|
+
* @class IconButtonComponent
|
|
8
|
+
*/
|
|
9
|
+
export declare class IconButtonComponent {
|
|
10
|
+
iconButton: IconButton;
|
|
11
|
+
iconButtonClick: EventEmitter<IconButton>;
|
|
12
|
+
/**
|
|
13
|
+
* Emits the clicked icon button information.
|
|
14
|
+
* @param {Event} IconButton
|
|
15
|
+
* @memberof IconButtonComponent
|
|
16
|
+
*/
|
|
17
|
+
onClick(event: IconButton): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "ieeesa-icon-button", never, { "iconButton": { "alias": "iconButton"; "required": false; }; }, { "iconButtonClick": "iconButtonClick"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Legend } from '../../models/legend.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LegendComponent {
|
|
4
|
+
legends: Legend[];
|
|
5
|
+
trackByFn(index: number, item: Legend): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "ieeesa-legend", never, { "legends": { "alias": "legends"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Menu } from '../../models/menu.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Creates menu and the menu items are icon based buttons
|
|
6
|
+
* @export
|
|
7
|
+
* @class MenuComponent
|
|
8
|
+
*/
|
|
9
|
+
export declare class MenuComponent {
|
|
10
|
+
constants: any;
|
|
11
|
+
menuItems: Menu[];
|
|
12
|
+
menuItemClick: EventEmitter<Menu>;
|
|
13
|
+
/**
|
|
14
|
+
* Emits the clicked menu item
|
|
15
|
+
* @param {Menu} menu
|
|
16
|
+
* @memberof MenuComponent
|
|
17
|
+
*/
|
|
18
|
+
onMenuItemClick(menu: Menu): void;
|
|
19
|
+
/**
|
|
20
|
+
* Takes the index and the menu item as arguments and needs to return the unique identifier for this item.
|
|
21
|
+
* @param {number} index
|
|
22
|
+
* @param {Menu} menu
|
|
23
|
+
* @return {number}
|
|
24
|
+
* @memberof MenuComponent
|
|
25
|
+
*/
|
|
26
|
+
trackByFn(index: number, menu: Menu): number;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "ieeesa-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "menuItemClick": "menuItemClick"; }, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { SafeStyle } from '@angular/platform-browser';
|
|
3
|
+
import { SafePipe } from '@ieeesa-npm/utility';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Sets background color and image for the attached element.
|
|
7
|
+
* @export
|
|
8
|
+
* @class SetBackgroundDirective
|
|
9
|
+
* @implements {OnInit}
|
|
10
|
+
*/
|
|
11
|
+
export declare class SetBackgroundDirective implements OnInit {
|
|
12
|
+
private safePipe;
|
|
13
|
+
background: {
|
|
14
|
+
color?: string;
|
|
15
|
+
imgURL?: string;
|
|
16
|
+
};
|
|
17
|
+
bg: SafeStyle;
|
|
18
|
+
bgSize: string;
|
|
19
|
+
constants: any;
|
|
20
|
+
constructor(safePipe: SafePipe);
|
|
21
|
+
/**
|
|
22
|
+
* Sets the elements background color and image.
|
|
23
|
+
* @memberof SetBackgroundDirective
|
|
24
|
+
*/
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SetBackgroundDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SetBackgroundDirective, "[ieeesaSetBackground]", never, { "background": { "alias": "background"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -5,8 +5,12 @@ export * from './lib/components/date-picker-header/date-picker-header.component'
|
|
|
5
5
|
export * from './lib/components/dynamic-form/dynamic-form.component';
|
|
6
6
|
export * from './lib/components/footer/footer.component';
|
|
7
7
|
export * from './lib/components/form-error/form-error.component';
|
|
8
|
+
export * from './lib/components/form-support-text/form-support-text.component';
|
|
8
9
|
export * from './lib/components/header/header.component';
|
|
10
|
+
export * from './lib/components/icon-button/icon-button.component';
|
|
9
11
|
export * from './lib/components/input/input.component';
|
|
12
|
+
export * from './lib/components/legend/legend.component';
|
|
13
|
+
export * from './lib/components/menu/menu.component';
|
|
10
14
|
export * from './lib/components/modal/modal.component';
|
|
11
15
|
export * from './lib/components/modal-confirmation/modal-confirmation.component';
|
|
12
16
|
export * from './lib/components/navigation-menu/navigation-menu.component';
|
|
@@ -16,9 +20,9 @@ export * from './lib/components/search/search.component';
|
|
|
16
20
|
export * from './lib/components/select/select.component';
|
|
17
21
|
export * from './lib/components/text-area/text-area.component';
|
|
18
22
|
export * from './lib/components/toggle-button/toggle-button.component';
|
|
19
|
-
export * from './lib/components/form-support-text/form-support-text.component';
|
|
20
23
|
export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
|
|
21
24
|
export * from './lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive';
|
|
25
|
+
export * from './lib/directives/set-background/set-background.directive';
|
|
22
26
|
export * from './lib/models/align-type.model';
|
|
23
27
|
export * from './lib/models/autocomplete-option.model';
|
|
24
28
|
export * from './lib/models/calendar.model';
|
|
@@ -32,6 +36,9 @@ export * from './lib/models/form-field.model';
|
|
|
32
36
|
export * from './lib/models/form-grid.model';
|
|
33
37
|
export * from './lib/models/form.model';
|
|
34
38
|
export * from './lib/models/header-config.model';
|
|
39
|
+
export * from './lib/models/icon-button.model';
|
|
40
|
+
export * from './lib/models/legend.model';
|
|
41
|
+
export * from './lib/models/menu.model';
|
|
35
42
|
export * from './lib/models/navigation-menu.model';
|
|
36
43
|
export * from './lib/models/radio-option.model';
|
|
37
44
|
export * from './lib/models/search.model';
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"warning": "Warning",
|
|
5
5
|
"previousMonth": "Previous month",
|
|
6
6
|
"nextMonth": "Next month",
|
|
7
|
+
"menuIcon": "Menu",
|
|
7
8
|
"close": "Close"
|
|
8
9
|
},
|
|
9
10
|
"button": {
|
|
@@ -88,5 +89,6 @@
|
|
|
88
89
|
"hyperLinkPart3": " IEEE Terms and Conditions.",
|
|
89
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."
|
|
90
91
|
}
|
|
91
|
-
}
|
|
92
|
+
},
|
|
93
|
+
"defaultWelcomeBgColor": "#C0DCED"
|
|
92
94
|
}
|