@ieeesa-npm/presentation 0.7.3 → 0.7.5

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,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
+ }
@@ -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.3",
3
+ "version": "0.7.5",
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.8",
22
- "@ieeesa-npm/feature": "^0.5.6"
21
+ "@ieeesa-npm/shared-styles": "^0.1.9",
22
+ "@ieeesa-npm/feature": "^0.5.8"
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';