easy-mat-ui 0.0.1 → 0.0.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.
package/fesm2022/easy-mat-ui.mjs
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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 } from '@angular/material/table';
|
|
6
|
+
import { TranslatePipe } from '@ngx-translate/core';
|
|
7
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
8
|
+
import { MatSort } from '@angular/material/sort';
|
|
3
9
|
|
|
4
10
|
class EasyMatUiService {
|
|
5
11
|
constructor() { }
|
|
@@ -30,6 +36,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
30
36
|
` }]
|
|
31
37
|
}] });
|
|
32
38
|
|
|
39
|
+
class EasyTableComponent {
|
|
40
|
+
dataSource;
|
|
41
|
+
displayedColumns = [];
|
|
42
|
+
paginator;
|
|
43
|
+
sort;
|
|
44
|
+
ngAfterViewInit() {
|
|
45
|
+
if (this.dataSource && this.paginator && this.sort) {
|
|
46
|
+
this.dataSource.paginator = this.paginator;
|
|
47
|
+
this.dataSource.sort = this.sort;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
applyFilter(event) {
|
|
51
|
+
this.dataSource.filter = event.target.value
|
|
52
|
+
.trim()
|
|
53
|
+
.toLowerCase();
|
|
54
|
+
}
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EasyTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EasyTableComponent, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{ selector: 'lib-easy-table', standalone: true, imports: [
|
|
61
|
+
CommonModule,
|
|
62
|
+
MatTable,
|
|
63
|
+
MatColumnDef,
|
|
64
|
+
MatCell,
|
|
65
|
+
MatHeaderRow,
|
|
66
|
+
MatPaginator,
|
|
67
|
+
MatHeaderCell,
|
|
68
|
+
MatSort,
|
|
69
|
+
MatRow,
|
|
70
|
+
MatRowDef,
|
|
71
|
+
MatHeaderRowDef,
|
|
72
|
+
MatHeaderCellDef,
|
|
73
|
+
MatCellDef,
|
|
74
|
+
TranslatePipe,
|
|
75
|
+
], 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"] }]
|
|
76
|
+
}], propDecorators: { dataSource: [{
|
|
77
|
+
type: Input,
|
|
78
|
+
args: [{ required: true }]
|
|
79
|
+
}], displayedColumns: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], paginator: [{
|
|
82
|
+
type: ViewChild,
|
|
83
|
+
args: [MatPaginator]
|
|
84
|
+
}], sort: [{
|
|
85
|
+
type: ViewChild,
|
|
86
|
+
args: [MatSort]
|
|
87
|
+
}] } });
|
|
88
|
+
|
|
33
89
|
/*
|
|
34
90
|
* Public API Surface of easy-mat-ui
|
|
35
91
|
*/
|
|
@@ -38,5 +94,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
38
94
|
* Generated bundle index. Do not edit.
|
|
39
95
|
*/
|
|
40
96
|
|
|
41
|
-
export { EasyMatUiComponent, EasyMatUiService };
|
|
97
|
+
export { EasyMatUiComponent, EasyMatUiService, EasyTableComponent };
|
|
42
98
|
//# 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":"
|
|
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 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 {TranslateModule, TranslatePipe} from '@ngx-translate/core';\r\nimport {MatPaginator} from '@angular/material/paginator';\r\nimport {MatSort} from '@angular/material/sort';\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 ],\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,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,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aAAa;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;;;AE7CpB;;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.
|
|
3
|
+
"version": "0.0.2",
|
|
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.
|
|
6
|
-
"@angular/core": "^19.
|
|
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