easy-mat-ui 0.0.1 → 0.0.3

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.
@@ -1,5 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component } from '@angular/core';
2
+ import { Injectable, Component, ViewChild, Input, ChangeDetectionStrategy } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { MatTable, MatColumnDef, MatCell, MatHeaderRow, MatHeaderCell, MatRow, MatRowDef, MatHeaderRowDef, MatHeaderCellDef, MatCellDef, MatTableModule } from '@angular/material/table';
6
+ import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
7
+ import { MatSort, MatSortModule } from '@angular/material/sort';
8
+ import { MatInputModule } from '@angular/material/input';
9
+ import { MatFormFieldModule } from '@angular/material/form-field';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import { MatIconModule } from '@angular/material/icon';
12
+ import { TranslatePipe, TranslateModule } from '@ngx-translate/core';
3
13
 
4
14
  class EasyMatUiService {
5
15
  constructor() { }
@@ -27,9 +37,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
27
37
  <p>
28
38
  easy-mat-ui works!
29
39
  </p>
30
- ` }]
40
+ `, standalone: true }]
31
41
  }] });
32
42
 
43
+ class EasyTableComponent {
44
+ dataSource;
45
+ displayedColumns = [];
46
+ paginator;
47
+ sort;
48
+ ngAfterViewInit() {
49
+ if (this.dataSource && this.paginator && this.sort) {
50
+ this.dataSource.paginator = this.paginator;
51
+ this.dataSource.sort = this.sort;
52
+ }
53
+ }
54
+ applyFilter(event) {
55
+ this.dataSource.filter = event.target.value
56
+ .trim()
57
+ .toLowerCase();
58
+ }
59
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EasyTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: EasyTableComponent, isStandalone: true, selector: "lib-easy-table", inputs: { dataSource: "dataSource", displayedColumns: "displayedColumns" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }], ngImport: i0, template: "<div class=\"table-responsive p-3 border rounded shadow-sm bg-white\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-3\">\r\n <input\r\n class=\"form-control w-25\"\r\n placeholder=\"Filter\"\r\n (input)=\"applyFilter($event)\"\r\n type=\"text\"\r\n />\r\n </div>\r\n\r\n <table mat-table [dataSource]=\"dataSource\" matSort class=\"table table-hover align-middle\">\r\n\r\n <ng-container *ngFor=\"let column of displayedColumns\" [matColumnDef]=\"column\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n {{ column | translate }}\r\n </th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n {{ element[column] }}\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n\r\n <mat-paginator [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25]\" showFirstLastButtons></mat-paginator>\r\n</div>\r\n", styles: [":host{display:block}.table th{white-space:nowrap}.table td{white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatTableModule }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "ngmodule", type: MatSortModule }, { kind: "ngmodule", type: MatInputModule }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: TranslateModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
61
+ }
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EasyTableComponent, decorators: [{
63
+ type: Component,
64
+ args: [{ selector: 'lib-easy-table', standalone: true, imports: [
65
+ CommonModule,
66
+ MatTable,
67
+ MatColumnDef,
68
+ MatCell,
69
+ MatHeaderRow,
70
+ MatPaginator,
71
+ MatHeaderCell,
72
+ MatSort,
73
+ MatRow,
74
+ MatRowDef,
75
+ MatHeaderRowDef,
76
+ MatHeaderCellDef,
77
+ MatCellDef,
78
+ TranslatePipe,
79
+ MatTableModule,
80
+ MatPaginatorModule,
81
+ MatSortModule,
82
+ MatInputModule,
83
+ MatFormFieldModule,
84
+ MatButtonModule,
85
+ MatIconModule,
86
+ TranslateModule
87
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"table-responsive p-3 border rounded shadow-sm bg-white\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-3\">\r\n <input\r\n class=\"form-control w-25\"\r\n placeholder=\"Filter\"\r\n (input)=\"applyFilter($event)\"\r\n type=\"text\"\r\n />\r\n </div>\r\n\r\n <table mat-table [dataSource]=\"dataSource\" matSort class=\"table table-hover align-middle\">\r\n\r\n <ng-container *ngFor=\"let column of displayedColumns\" [matColumnDef]=\"column\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n {{ column | translate }}\r\n </th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n {{ element[column] }}\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n\r\n <mat-paginator [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25]\" showFirstLastButtons></mat-paginator>\r\n</div>\r\n", styles: [":host{display:block}.table th{white-space:nowrap}.table td{white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis}\n"] }]
88
+ }], propDecorators: { dataSource: [{
89
+ type: Input,
90
+ args: [{ required: true }]
91
+ }], displayedColumns: [{
92
+ type: Input
93
+ }], paginator: [{
94
+ type: ViewChild,
95
+ args: [MatPaginator]
96
+ }], sort: [{
97
+ type: ViewChild,
98
+ args: [MatSort]
99
+ }] } });
100
+
33
101
  /*
34
102
  * Public API Surface of easy-mat-ui
35
103
  */
@@ -38,5 +106,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
38
106
  * Generated bundle index. Do not edit.
39
107
  */
40
108
 
41
- export { EasyMatUiComponent, EasyMatUiService };
109
+ export { EasyMatUiComponent, EasyMatUiService, EasyTableComponent };
42
110
  //# sourceMappingURL=easy-mat-ui.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"easy-mat-ui.mjs","sources":["../../../projects/easy-mat-ui/src/lib/easy-mat-ui.service.ts","../../../projects/easy-mat-ui/src/lib/easy-mat-ui.component.ts","../../../projects/easy-mat-ui/src/public-api.ts","../../../projects/easy-mat-ui/src/easy-mat-ui.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class EasyMatUiService {\r\n\r\n constructor() { }\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-easy-mat-ui',\r\n imports: [],\r\n template: `\r\n <p>\r\n easy-mat-ui works!\r\n </p>\r\n `,\r\n styles: ``\r\n})\r\nexport class EasyMatUiComponent {\r\n\r\n}\r\n","/*\r\n * Public API Surface of easy-mat-ui\r\n */\r\n\r\nexport * from './lib/easy-mat-ui.service';\r\nexport * from './lib/easy-mat-ui.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,gBAAgB,CAAA;AAE3B,IAAA,WAAA,GAAA;wGAFW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA;;4FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCQY,kBAAkB,CAAA;wGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,EAPnB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAGU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAV9B,SAAS;+BACE,iBAAiB,EAAA,OAAA,EAClB,EAAE,EACD,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA;;;ACTH;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"easy-mat-ui.mjs","sources":["../../../projects/easy-mat-ui/src/lib/easy-mat-ui.service.ts","../../../projects/easy-mat-ui/src/lib/easy-mat-ui.component.ts","../../../projects/easy-mat-ui/src/lib/easy-table/easy-table.component.ts","../../../projects/easy-mat-ui/src/lib/easy-table/easy-table.component.html","../../../projects/easy-mat-ui/src/public-api.ts","../../../projects/easy-mat-ui/src/easy-mat-ui.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class EasyMatUiService {\r\n\r\n constructor() { }\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-easy-mat-ui',\r\n imports: [],\r\n template: `\r\n <p>\r\n easy-mat-ui works!\r\n </p>\r\n `,\r\n standalone: true,\r\n styles: ``\r\n})\r\nexport class EasyMatUiComponent {\r\n\r\n}\r\n","import {AfterViewInit, ChangeDetectionStrategy, Component, Input, ViewChild} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {\r\n MatCell, MatCellDef,\r\n MatColumnDef,\r\n MatHeaderCell, MatHeaderCellDef,\r\n MatHeaderRow, MatHeaderRowDef,\r\n MatRow, MatRowDef,\r\n MatTable, MatTableDataSource,\r\n MatTableModule\r\n} from '@angular/material/table';\r\nimport {MatPaginator, MatPaginatorModule} from '@angular/material/paginator';\r\nimport {MatSort, MatSortModule} from '@angular/material/sort';\r\nimport {MatInputModule} from '@angular/material/input';\r\nimport {MatFormFieldModule} from '@angular/material/form-field';\r\nimport {MatButtonModule} from '@angular/material/button';\r\nimport {MatIconModule} from '@angular/material/icon';\r\nimport {TranslateModule, TranslatePipe} from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'lib-easy-table',\r\n standalone: true,\r\n imports: [\r\n CommonModule,\r\n MatTable,\r\n MatColumnDef,\r\n MatCell,\r\n MatHeaderRow,\r\n MatPaginator,\r\n MatHeaderCell,\r\n MatSort,\r\n MatRow,\r\n MatRowDef,\r\n MatHeaderRowDef,\r\n MatHeaderCellDef,\r\n MatCellDef,\r\n TranslatePipe,\r\n MatTableModule,\r\n MatPaginatorModule,\r\n MatSortModule,\r\n MatInputModule,\r\n MatFormFieldModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n TranslateModule\r\n ],\r\n templateUrl: './easy-table.component.html',\r\n styleUrl: './easy-table.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class EasyTableComponent<T extends Record<string, never>>\r\n implements AfterViewInit\r\n{\r\n @Input({ required: true }) dataSource!: MatTableDataSource<T>;\r\n @Input() displayedColumns: string[] = [];\r\n\r\n @ViewChild(MatPaginator) paginator!: MatPaginator;\r\n @ViewChild(MatSort) sort!: MatSort;\r\n\r\n ngAfterViewInit(): void {\r\n if (this.dataSource && this.paginator && this.sort) {\r\n this.dataSource.paginator = this.paginator;\r\n this.dataSource.sort = this.sort;\r\n }\r\n }\r\n\r\n applyFilter(event: Event): void {\r\n this.dataSource.filter = (event.target as HTMLInputElement).value\r\n .trim()\r\n .toLowerCase();\r\n }\r\n}\r\n","<div class=\"table-responsive p-3 border rounded shadow-sm bg-white\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-3\">\r\n <input\r\n class=\"form-control w-25\"\r\n placeholder=\"Filter\"\r\n (input)=\"applyFilter($event)\"\r\n type=\"text\"\r\n />\r\n </div>\r\n\r\n <table mat-table [dataSource]=\"dataSource\" matSort class=\"table table-hover align-middle\">\r\n\r\n <ng-container *ngFor=\"let column of displayedColumns\" [matColumnDef]=\"column\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n {{ column | translate }}\r\n </th>\r\n <td mat-cell *matCellDef=\"let element\">\r\n {{ element[column] }}\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n\r\n <mat-paginator [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25]\" showFirstLastButtons></mat-paginator>\r\n</div>\r\n","/*\r\n * Public API Surface of easy-mat-ui\r\n */\r\n\r\nexport * from './lib/easy-mat-ui.service';\r\nexport * from './lib/easy-mat-ui.component';\r\nexport * from './lib/easy-table/easy-table.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAKa,gBAAgB,CAAA;AAE3B,IAAA,WAAA,GAAA;wGAFW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA;;4FAEP,gBAAgB,EAAA,UAAA,EAAA,CA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A,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACf,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACb,eAAe,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAMN,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBA/B9B,SAAS;+BACE,gBAAgB,EAAA,UAAA,EACd,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,QAAQ;wBACR,YAAY;wBACZ,OAAO;wBACP,YAAY;wBACZ,YAAY;wBACZ,aAAa;wBACb,OAAO;wBACP,MAAM;wBACN,SAAS;wBACT,eAAe;wBACf,gBAAgB;wBAChB,UAAU;wBACV,aAAa;wBACb,cAAc;wBACd,kBAAkB;wBAClB,aAAa;wBACb,cAAc;wBACd,kBAAkB;wBAClB,eAAe;wBACf,aAAa;wBACb;qBACD,EAGgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ogCAAA,EAAA,MAAA,EAAA,CAAA,yIAAA,CAAA,EAAA;8BAKpB,UAAU,EAAA,CAAA;sBAApC,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAChB,gBAAgB,EAAA,CAAA;sBAAxB;gBAEwB,SAAS,EAAA,CAAA;sBAAjC,SAAS;uBAAC,YAAY;gBACH,IAAI,EAAA,CAAA;sBAAvB,SAAS;uBAAC,OAAO;;;AEzDpB;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,15 @@
1
+ import { AfterViewInit } from '@angular/core';
2
+ import { MatTableDataSource } from '@angular/material/table';
3
+ import { MatPaginator } from '@angular/material/paginator';
4
+ import { MatSort } from '@angular/material/sort';
5
+ import * as i0 from "@angular/core";
6
+ export declare class EasyTableComponent<T extends Record<string, never>> implements AfterViewInit {
7
+ dataSource: MatTableDataSource<T>;
8
+ displayedColumns: string[];
9
+ paginator: MatPaginator;
10
+ sort: MatSort;
11
+ ngAfterViewInit(): void;
12
+ applyFilter(event: Event): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<EasyTableComponent<any>, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<EasyTableComponent<any>, "lib-easy-table", never, { "dataSource": { "alias": "dataSource"; "required": true; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
package/package.json CHANGED
@@ -1,23 +1,40 @@
1
1
  {
2
2
  "name": "easy-mat-ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
+ "description": "A customizable Angular Material Table component with Bootstrap styling and i18n support",
5
+ "keywords": [
6
+ "angular",
7
+ "material",
8
+ "table",
9
+ "bootstrap",
10
+ "i18n",
11
+ "component",
12
+ "easy-mat-ui"
13
+ ],
14
+ "author": "Red One <ton.email@example.com>",
15
+ "license": "MIT",
4
16
  "peerDependencies": {
5
- "@angular/common": "^19.2.0",
6
- "@angular/core": "^19.2.0"
17
+ "@angular/common": "^19.0.0",
18
+ "@angular/core": "^19.0.0",
19
+ "@angular/material": "^19.0.0",
20
+ "@angular/cdk": "^19.0.0",
21
+ "@ngx-translate/core": "^16.0.0",
22
+ "@ngx-translate/http-loader": "^16.0.0",
23
+ "bootstrap": "^5.3.0"
7
24
  },
8
25
  "dependencies": {
9
26
  "tslib": "^2.3.0"
10
27
  },
11
- "sideEffects": false,
12
28
  "module": "fesm2022/easy-mat-ui.mjs",
13
29
  "typings": "index.d.ts",
14
30
  "exports": {
31
+ ".": {
32
+ "default": "./fesm2022/easy-mat-ui.mjs",
33
+ "types": "./index.d.ts"
34
+ },
15
35
  "./package.json": {
16
36
  "default": "./package.json"
17
- },
18
- ".": {
19
- "types": "./index.d.ts",
20
- "default": "./fesm2022/easy-mat-ui.mjs"
21
37
  }
22
- }
38
+ },
39
+ "sideEffects": false
23
40
  }
package/public-api.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './lib/easy-mat-ui.service';
2
2
  export * from './lib/easy-mat-ui.component';
3
+ export * from './lib/easy-table/easy-table.component';