@ieeesa-npm/presentation 0.7.0 → 0.7.2

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.
Files changed (42) hide show
  1. package/esm2022/lib/assets/constants.json +3 -5
  2. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +3 -3
  3. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +3 -3
  4. package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -3
  5. package/esm2022/lib/components/chips/chips.component.mjs +3 -3
  6. package/esm2022/lib/components/data-table/data-table.component.mjs +4 -3
  7. package/esm2022/lib/components/date-picker/date-picker.component.mjs +3 -3
  8. package/esm2022/lib/components/date-picker-header/date-picker-header.component.mjs +3 -3
  9. package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +3 -3
  10. package/esm2022/lib/components/filter/filter.component.mjs +3 -3
  11. package/esm2022/lib/components/footer/footer.component.mjs +5 -4
  12. package/esm2022/lib/components/form-error/form-error.component.mjs +3 -3
  13. package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -3
  14. package/esm2022/lib/components/header/header.component.mjs +3 -3
  15. package/esm2022/lib/components/input/input.component.mjs +3 -3
  16. package/esm2022/lib/components/menu/menu.component.mjs +3 -3
  17. package/esm2022/lib/components/modal/modal.component.mjs +3 -3
  18. package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +3 -3
  19. package/esm2022/lib/components/navigation-menu/navigation-menu.component.mjs +3 -3
  20. package/esm2022/lib/components/notification/notification.component.mjs +3 -3
  21. package/esm2022/lib/components/radio/radio.component.mjs +3 -3
  22. package/esm2022/lib/components/search/search.component.mjs +15 -3
  23. package/esm2022/lib/components/select/select.component.mjs +3 -3
  24. package/esm2022/lib/components/text-area/text-area.component.mjs +3 -3
  25. package/esm2022/lib/components/tile/tile.component.mjs +70 -0
  26. package/esm2022/lib/components/toggle-button/toggle-button.component.mjs +3 -3
  27. package/esm2022/lib/components/welcome/welcome.component.mjs +3 -3
  28. package/esm2022/lib/models/app-config-info.model.mjs +1 -1
  29. package/esm2022/lib/models/footer-config.model.mjs +1 -1
  30. package/esm2022/lib/models/tile.model.mjs +2 -0
  31. package/esm2022/public-api.mjs +3 -1
  32. package/fesm2022/ieeesa-npm-presentation.mjs +164 -90
  33. package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
  34. package/lib/components/chips/chips.component.d.ts +8 -1
  35. package/lib/components/data-table/data-table.component.d.ts +1 -0
  36. package/lib/components/tile/tile.component.d.ts +39 -0
  37. package/lib/models/app-config-info.model.d.ts +1 -0
  38. package/lib/models/footer-config.model.d.ts +1 -0
  39. package/lib/models/tile.model.d.ts +12 -0
  40. package/package.json +3 -3
  41. package/public-api.d.ts +2 -0
  42. package/src/lib/assets/constants.json +3 -5
@@ -66,6 +66,9 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
66
66
  label: {
67
67
  clearAll: string;
68
68
  };
69
+ message: {
70
+ noRecordFound: string;
71
+ };
69
72
  ariaLabel: {
70
73
  search: string;
71
74
  selectAll: string;
@@ -120,7 +123,11 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
120
123
  label: {
121
124
  signOut: string;
122
125
  };
123
- };
126
+ }; /**
127
+ * Onclick the chip, it emits selectedChip event with selected chip.
128
+ * @param {ChipOption} chip
129
+ * @memberof ChipComponent
130
+ */
124
131
  footer: {
125
132
  alt: {
126
133
  logo: string;
@@ -69,6 +69,7 @@ export declare class DataTableComponent implements OnInit, AfterViewInit, OnDest
69
69
  columnType: typeof TableColumnType;
70
70
  isSearchActive: boolean;
71
71
  clearAll: any;
72
+ noRecordFound: any;
72
73
  destroy$: Subject<boolean>;
73
74
  sort: MatSort;
74
75
  paginator: MatPaginator;
@@ -0,0 +1,39 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Button, Tile } from '../../models/tile.model';
3
+ import { AlignType } from '../../models/align-type.model';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Creates tile component.
7
+ * @export
8
+ * @class TileComponent
9
+ */
10
+ export declare class TileComponent {
11
+ alignmentType: typeof AlignType;
12
+ private tilesInfo;
13
+ /**
14
+ * Input property to get the tiles info.
15
+ * @type {Tile}
16
+ * @memberof TileComponent
17
+ */
18
+ set tiles(value: Tile[]);
19
+ get tiles(): Tile[];
20
+ /**
21
+ * Emits the click event
22
+ * @type {EventEmitter}
23
+ * @memberof TileComponent
24
+ */
25
+ tileClicked: EventEmitter<Tile>;
26
+ private buttonAlignment;
27
+ /**
28
+ * Sets tile buttons alignment type..
29
+ * @type {string} accepts Left, Right and Middle as values
30
+ * @memberof TileComponent
31
+ */
32
+ set buttonAlignmentInfo(value: AlignType);
33
+ get buttonAlignmentInfo(): AlignType;
34
+ trackByFn(index: number, item: Tile): string;
35
+ trackByButtonFn(index: number, item: Button): string;
36
+ onTileButtonClicked(tile: Tile): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<TileComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<TileComponent, "ieeesa-tile", never, { "tiles": { "alias": "tiles"; "required": false; }; "buttonAlignmentInfo": { "alias": "buttonAlignmentInfo"; "required": false; }; }, { "tileClicked": "tileClicked"; }, never, never, true, never>;
39
+ }
@@ -1,5 +1,6 @@
1
1
  export interface AppConfigInfo {
2
2
  appTitle: string;
3
+ appHeading?: string;
3
4
  appDescription: string;
4
5
  background?: {
5
6
  color?: string;
@@ -2,6 +2,7 @@ export interface FooterLink {
2
2
  label: string;
3
3
  ariaLabel: string;
4
4
  redirectUrl: string;
5
+ isRouterLink?: boolean;
5
6
  }
6
7
  export interface FooterConfig {
7
8
  links: FooterLink[];
@@ -0,0 +1,12 @@
1
+ export interface Button {
2
+ id: string;
3
+ isRightArrowNeeded?: boolean;
4
+ label: string;
5
+ isDisabled: boolean;
6
+ }
7
+ export interface Tile {
8
+ title: string;
9
+ description: string;
10
+ isActive: boolean;
11
+ buttons?: Button[];
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
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.1.7",
22
- "@ieeesa-npm/feature": "^0.5.3"
21
+ "@ieeesa-npm/shared-styles": "^0.1.8",
22
+ "@ieeesa-npm/feature": "^0.5.5"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -25,6 +25,7 @@ export * from './lib/components/chips/chips.component';
25
25
  export * from './lib/components/filter/filter.component';
26
26
  export * from './lib/components/data-table/data-table.component';
27
27
  export * from './lib/components/breadcrumb/breadcrumb.component';
28
+ export * from './lib/components/tile/tile.component';
28
29
  export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
29
30
  export * from './lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive';
30
31
  export * from './lib/directives/set-background/set-background.directive';
@@ -56,6 +57,7 @@ export * from './lib/models/paginator-config.model';
56
57
  export * from './lib/models/table-actions.model';
57
58
  export * from './lib/models/table-schema.model';
58
59
  export * from './lib/models/breadcrumb.model';
60
+ export * from './lib/models/tile.model';
59
61
  export * from './lib/services/datepicker.service';
60
62
  export * from './lib/services/form-utility.service';
61
63
  export * from './lib/presentation.module';
@@ -40,6 +40,9 @@
40
40
  "label": {
41
41
  "clearAll": "Clear All"
42
42
  },
43
+ "message": {
44
+ "noRecordFound": "No record(s) found."
45
+ },
43
46
  "ariaLabel": {
44
47
  "search": "Search",
45
48
  "selectAll": "Select All",
@@ -128,11 +131,6 @@
128
131
  "logo": "IEEE Logo"
129
132
  },
130
133
  "links": [
131
- {
132
- "label": "Dashboard",
133
- "ariaLabel": "Dashboard",
134
- "redirectUrl": "#"
135
- },
136
134
  {
137
135
  "label": "Contact & Support",
138
136
  "ariaLabel": "Contact & Support",