@ieeesa-npm/presentation 0.2.5 → 0.2.7

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,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,7 @@
1
+ export interface IconButton {
2
+ id: number;
3
+ iconURL: string;
4
+ label?: string;
5
+ ariaLabel: string;
6
+ toolTip: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface Legend {
2
+ label: string;
3
+ color: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ export interface Menu {
2
+ id: number;
3
+ iconURL: string;
4
+ label: string;
5
+ ariaLabel: string;
6
+ toolTip: string;
7
+ isToolTipNeeded: boolean;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
@@ -18,7 +18,7 @@
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.4",
21
+ "@ieeesa-npm/shared-styles": "^0.0.5",
22
22
  "@ieeesa-npm/feature": "^0.1.3"
23
23
  },
24
24
  "dependencies": {
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,7 +20,6 @@ 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';
22
25
  export * from './lib/directives/set-background/set-background.directive';
@@ -33,6 +36,9 @@ export * from './lib/models/form-field.model';
33
36
  export * from './lib/models/form-grid.model';
34
37
  export * from './lib/models/form.model';
35
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';
36
42
  export * from './lib/models/navigation-menu.model';
37
43
  export * from './lib/models/radio-option.model';
38
44
  export * from './lib/models/search.model';