@ea-controls/mat-table-extensions 19.0.1 → 19.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.
- package/README.md +36 -133
- package/fesm2022/ea-controls-mat-table-extensions.mjs +146 -0
- package/fesm2022/ea-controls-mat-table-extensions.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/cell.d.ts +18 -0
- package/{projects/mat-table-extensions/src/lib/index.ts → lib/index.d.ts} +3 -3
- package/lib/module.d.ts +9 -0
- package/lib/row.d.ts +16 -0
- package/package.json +20 -39
- package/public-api.d.ts +1 -0
- package/.editorconfig +0 -17
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -137
- package/projects/mat-table-extensions/README.md +0 -63
- package/projects/mat-table-extensions/ng-package.json +0 -7
- package/projects/mat-table-extensions/package.json +0 -12
- package/projects/mat-table-extensions/src/lib/cell.ts +0 -58
- package/projects/mat-table-extensions/src/lib/module.ts +0 -21
- package/projects/mat-table-extensions/src/lib/row.ts +0 -38
- package/projects/mat-table-extensions/src/public-api.ts +0 -6
- package/projects/mat-table-extensions/tsconfig.lib.json +0 -15
- package/projects/mat-table-extensions/tsconfig.lib.prod.json +0 -11
- package/projects/mat-table-extensions/tsconfig.spec.json +0 -15
- package/projects/mat-table-extensions-examples/public/favicon.ico +0 -0
- package/projects/mat-table-extensions-examples/src/app/app.component.html +0 -6
- package/projects/mat-table-extensions-examples/src/app/app.component.scss +0 -29
- package/projects/mat-table-extensions-examples/src/app/app.component.spec.ts +0 -29
- package/projects/mat-table-extensions-examples/src/app/app.component.ts +0 -14
- package/projects/mat-table-extensions-examples/src/app/app.config.ts +0 -9
- package/projects/mat-table-extensions-examples/src/app/app.routes.ts +0 -9
- package/projects/mat-table-extensions-examples/src/app/basic/basic.component.html +0 -66
- package/projects/mat-table-extensions-examples/src/app/basic/basic.component.scss +0 -0
- package/projects/mat-table-extensions-examples/src/app/basic/basic.component.spec.ts +0 -23
- package/projects/mat-table-extensions-examples/src/app/basic/basic.component.ts +0 -33
- package/projects/mat-table-extensions-examples/src/app/sticky/sticky.component.html +0 -83
- package/projects/mat-table-extensions-examples/src/app/sticky/sticky.component.scss +0 -0
- package/projects/mat-table-extensions-examples/src/app/sticky/sticky.component.spec.ts +0 -23
- package/projects/mat-table-extensions-examples/src/app/sticky/sticky.component.ts +0 -57
- package/projects/mat-table-extensions-examples/src/index.html +0 -15
- package/projects/mat-table-extensions-examples/src/main.ts +0 -6
- package/projects/mat-table-extensions-examples/src/styles.scss +0 -4
- package/projects/mat-table-extensions-examples/tsconfig.app.json +0 -15
- package/projects/mat-table-extensions-examples/tsconfig.spec.json +0 -15
- package/tsconfig.json +0 -35
package/README.md
CHANGED
@@ -1,160 +1,63 @@
|
|
1
1
|
# MatTableExtensions
|
2
2
|
|
3
|
-
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.1.0.
|
4
4
|
|
5
|
-
##
|
5
|
+
## Code scaffolding
|
6
6
|
|
7
|
-
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
8
8
|
|
9
|
-
```
|
10
|
-
|
11
|
-
<ng-container matColumnDef="position">
|
12
|
-
<th mat-header-cell *matHeaderCellDef> No. </th> <!-- Only one header -->
|
13
|
-
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
|
14
|
-
</ng-container>
|
15
|
-
|
16
|
-
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
17
|
-
</table>
|
9
|
+
```bash
|
10
|
+
ng generate component component-name
|
18
11
|
```
|
19
12
|
|
20
|
-
|
21
|
-
|
22
|
-
```html
|
23
|
-
<table mat-table>
|
24
|
-
<ng-container matColumnDef="position">
|
25
|
-
<th mat-header-cell *matHeaderCellDef> No. </th>
|
26
|
-
<th mat-header-cell *matExtraHeaderCellDef="'extra-header-name'"> Extra Header </th> <!-- Extra header cell-->
|
27
|
-
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
|
28
|
-
</ng-container>
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
29
14
|
|
30
|
-
|
31
|
-
|
32
|
-
</table>
|
15
|
+
```bash
|
16
|
+
ng generate --help
|
33
17
|
```
|
34
18
|
|
35
|
-
|
36
|
-
|
37
|
-
1. Import `MatExtraTableModule`
|
38
|
-
1. Add new `*matExtraHeaderCellDef` instead `*matHeaderCellDef` for extra headers
|
39
|
-
1. You have to send any string value as cell identifier
|
40
|
-
> Replace `extra-header-name` with your custom name
|
41
|
-
1. Notice you can use `*matHeaderRowDef` normally, new directive is only used when you need extra header cell
|
42
|
-
1. Add new `*matExtraHeaderRowDef` instead `*matHeaderRowDef` for extra rows using extra header cells
|
43
|
-
1. `name` is required to find extra header, it have to be the same use in `matExtraHeaderCellDef` attribute
|
44
|
-
> *matExtraHeaderRowDef="displayedColumns; `name`: 'extra-header-name'>"
|
45
|
-
1. Notice you can use `*matHeaderRowDef` normally, new directive is only used when you need extra header row
|
46
|
-
1. Similar tags you can use when extra footer is required
|
47
|
-
|
48
|
-
```html
|
49
|
-
<td mat-footer-cell *matExtraFooterCellDef="'extra-footer-name'">Footer</th> <!-- Extra footer cell -->
|
50
|
-
```
|
19
|
+
## Building
|
51
20
|
|
52
|
-
|
53
|
-
<tr mat-header-row *matExtraFooterRowDef="displayedColumns; name: 'extra-footer-name'"></tr> <!-- Extra footer row -->
|
54
|
-
```
|
55
|
-
|
56
|
-
|
57
|
-
### Full example
|
58
|
-
|
59
|
-
```ts
|
60
|
-
|
61
|
-
export interface PeriodicElement {
|
62
|
-
name: string;
|
63
|
-
position: number;
|
64
|
-
weight: number;
|
65
|
-
symbol: string;
|
66
|
-
}
|
67
|
-
|
68
|
-
const ELEMENT_DATA: PeriodicElement[] = [
|
69
|
-
{ position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H' },
|
70
|
-
{ position: 2, name: 'Helium', weight: 4.0026, symbol: 'He' },
|
71
|
-
{ position: 3, name: 'Lithium', weight: 6.941, symbol: 'Li' },
|
72
|
-
{ position: 4, name: 'Beryllium', weight: 9.0122, symbol: 'Be' },
|
73
|
-
{ position: 5, name: 'Boron', weight: 10.811, symbol: 'B' },
|
74
|
-
{ position: 6, name: 'Carbon', weight: 12.0107, symbol: 'C' },
|
75
|
-
{ position: 7, name: 'Nitrogen', weight: 14.0067, symbol: 'N' },
|
76
|
-
{ position: 8, name: 'Oxygen', weight: 15.9994, symbol: 'O' },
|
77
|
-
{ position: 9, name: 'Fluorine', weight: 18.9984, symbol: 'F' },
|
78
|
-
{ position: 10, name: 'Neon', weight: 20.1797, symbol: 'Ne' },
|
79
|
-
];
|
80
|
-
|
81
|
-
@Component({
|
82
|
-
selector: 'app-basic',
|
83
|
-
imports: [MatExtraTableModule],
|
84
|
-
templateUrl: './basic.component.html'
|
85
|
-
})
|
86
|
-
export class BasicComponent {
|
87
|
-
displayedColumns: string[] = ['position', 'name', 'weight', 'symbol'];
|
88
|
-
dataSource = ELEMENT_DATA;
|
89
|
-
}
|
21
|
+
To build the library, run:
|
90
22
|
|
23
|
+
```bash
|
24
|
+
ng build mat-table-extensions
|
91
25
|
```
|
92
26
|
|
93
|
-
|
94
|
-
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
|
95
|
-
|
96
|
-
<!-- POSITION -->
|
97
|
-
<ng-container matColumnDef="position">
|
98
|
-
<th mat-header-cell *matHeaderCellDef> 1. from html </th>
|
99
|
-
<th mat-header-cell *matExtraHeaderCellDef="'filter'">
|
100
|
-
<input type="text">
|
101
|
-
</th>
|
102
|
-
|
103
|
-
<td mat-cell *matCellDef="let data"> xxxxxxxxxx from html </td>
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
104
28
|
|
105
|
-
|
106
|
-
<th mat-footer-cell *matExtraFooterCellDef="'filter'" [attr.colspan]="2">f2</th>
|
107
|
-
</ng-container>
|
29
|
+
### Publishing the Library
|
108
30
|
|
109
|
-
|
110
|
-
<ng-container matColumnDef="name">
|
111
|
-
<th mat-header-cell *matHeaderCellDef> Name </th>
|
112
|
-
<th mat-header-cell *matExtraHeaderCellDef="'filter'">
|
113
|
-
<input type="text">
|
114
|
-
</th>
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
115
32
|
|
116
|
-
|
33
|
+
1. Navigate to the `dist` directory:
|
34
|
+
```bash
|
35
|
+
cd dist/mat-table-extensions
|
36
|
+
```
|
117
37
|
|
118
|
-
|
119
|
-
|
120
|
-
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
39
|
+
```bash
|
40
|
+
npm publish
|
41
|
+
```
|
121
42
|
|
122
|
-
|
123
|
-
<ng-container matColumnDef="weight">
|
124
|
-
<th mat-header-cell *matHeaderCellDef> Weight </th>
|
125
|
-
<th mat-header-cell *matExtraHeaderCellDef="'filter'">
|
126
|
-
<input type="text">
|
127
|
-
</th>
|
43
|
+
## Running unit tests
|
128
44
|
|
129
|
-
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
130
46
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<!-- SYMBOL -->
|
135
|
-
<ng-container matColumnDef="symbol">
|
136
|
-
<th mat-header-cell *matHeaderCellDef> Symbol </th>
|
137
|
-
<th mat-header-cell *matExtraHeaderCellDef="'filter'">
|
138
|
-
<input type="text">
|
139
|
-
</th>
|
140
|
-
|
141
|
-
<td mat-cell *matCellDef="let element"> {{element.symbol}} </td>
|
142
|
-
|
143
|
-
<td mat-footer-cell *matFooterCellDef> f1 </td>
|
144
|
-
</ng-container>
|
47
|
+
```bash
|
48
|
+
ng test
|
49
|
+
```
|
145
50
|
|
51
|
+
## Running end-to-end tests
|
146
52
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
147
54
|
|
148
|
-
|
149
|
-
|
150
|
-
|
55
|
+
```bash
|
56
|
+
ng e2e
|
57
|
+
```
|
151
58
|
|
152
|
-
|
153
|
-
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
154
60
|
|
155
|
-
|
156
|
-
<tr mat-footer-row *matFooterRowDef="displayedColumns"></tr>
|
157
|
-
<tr mat-footer-row *matExtraFooterRowDef="['position', 'name']; name: 'filter'"></tr>
|
61
|
+
## Additional Resources
|
158
62
|
|
159
|
-
|
160
|
-
```
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
@@ -0,0 +1,146 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { inject, input, effect, Directive, booleanAttribute, NgModule } from '@angular/core';
|
3
|
+
import { MatHeaderCellDef, MatTable, MatColumnDef, MatFooterCellDef, MatTableModule } from '@angular/material/table';
|
4
|
+
import { CdkHeaderRowDef, CdkFooterRowDef } from '@angular/cdk/table';
|
5
|
+
|
6
|
+
class MatExtraHeaderCellDefDirective extends MatHeaderCellDef {
|
7
|
+
_table = inject(MatTable);
|
8
|
+
_column = inject(MatColumnDef);
|
9
|
+
_prefix = input('', { alias: 'matExtraHeaderCellDef' });
|
10
|
+
constructor() {
|
11
|
+
super();
|
12
|
+
let column = new MatColumnDef();
|
13
|
+
effect(() => {
|
14
|
+
if (this._table) {
|
15
|
+
column.name = `h_${this._column.name}_${this._prefix()}`;
|
16
|
+
column.sticky = this._column.sticky;
|
17
|
+
column.stickyEnd = this._column.stickyEnd;
|
18
|
+
column.cssClassFriendlyName = this._column.cssClassFriendlyName;
|
19
|
+
column.headerCell = this;
|
20
|
+
this._table.addColumnDef(column);
|
21
|
+
}
|
22
|
+
});
|
23
|
+
}
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraHeaderCellDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.7", type: MatExtraHeaderCellDefDirective, isStandalone: true, selector: "[matExtraHeaderCellDef]", inputs: { _prefix: { classPropertyName: "_prefix", publicName: "matExtraHeaderCellDef", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: MatHeaderCellDef, useExisting: MatExtraHeaderCellDefDirective }], usesInheritance: true, ngImport: i0 });
|
26
|
+
}
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraHeaderCellDefDirective, decorators: [{
|
28
|
+
type: Directive,
|
29
|
+
args: [{
|
30
|
+
selector: '[matExtraHeaderCellDef]',
|
31
|
+
providers: [{ provide: MatHeaderCellDef, useExisting: MatExtraHeaderCellDefDirective }]
|
32
|
+
}]
|
33
|
+
}], ctorParameters: () => [] });
|
34
|
+
class MatExtraFooterCellDefDirective extends MatFooterCellDef {
|
35
|
+
_table = inject(MatTable);
|
36
|
+
_column = inject(MatColumnDef);
|
37
|
+
_prefix = input('', { alias: 'matExtraFooterCellDef' });
|
38
|
+
constructor() {
|
39
|
+
super();
|
40
|
+
let column = new MatColumnDef();
|
41
|
+
effect(() => {
|
42
|
+
if (this._table) {
|
43
|
+
column.name = `f_${this._column.name}_${this._prefix()}`;
|
44
|
+
column.sticky = this._column.sticky;
|
45
|
+
column.stickyEnd = this._column.stickyEnd;
|
46
|
+
column.cssClassFriendlyName = this._column.cssClassFriendlyName;
|
47
|
+
column.footerCell = this;
|
48
|
+
this._table.addColumnDef(column);
|
49
|
+
}
|
50
|
+
});
|
51
|
+
}
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterCellDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
53
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.7", type: MatExtraFooterCellDefDirective, isStandalone: true, selector: "[matExtraFooterCellDef]", inputs: { _prefix: { classPropertyName: "_prefix", publicName: "matExtraFooterCellDef", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: MatFooterCellDef, useExisting: MatExtraFooterCellDefDirective }], usesInheritance: true, ngImport: i0 });
|
54
|
+
}
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterCellDefDirective, decorators: [{
|
56
|
+
type: Directive,
|
57
|
+
args: [{
|
58
|
+
selector: '[matExtraFooterCellDef]',
|
59
|
+
providers: [{ provide: MatFooterCellDef, useExisting: MatExtraFooterCellDefDirective }]
|
60
|
+
}]
|
61
|
+
}], ctorParameters: () => [] });
|
62
|
+
|
63
|
+
class MatExtraHeaderRowDefDirective extends CdkHeaderRowDef {
|
64
|
+
_prefix = input.required({ alias: 'matExtraHeaderRowDefName' });
|
65
|
+
constructor() {
|
66
|
+
super();
|
67
|
+
effect(() => this.columns = [...this.columns].map(c => `h_${c}_${this._prefix()}`));
|
68
|
+
}
|
69
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraHeaderRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
70
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.7", type: MatExtraHeaderRowDefDirective, isStandalone: true, selector: "[matExtraHeaderRowDef]", inputs: { columns: { classPropertyName: "columns", publicName: "matExtraHeaderRowDef", isSignal: false, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "matExtraHeaderRowDefSticky", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, _prefix: { classPropertyName: "_prefix", publicName: "matExtraHeaderRowDefName", isSignal: true, isRequired: true, transformFunction: null } }, providers: [{ provide: CdkHeaderRowDef, useExisting: MatExtraHeaderRowDefDirective }], usesInheritance: true, ngImport: i0 });
|
71
|
+
}
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraHeaderRowDefDirective, decorators: [{
|
73
|
+
type: Directive,
|
74
|
+
args: [{
|
75
|
+
selector: '[matExtraHeaderRowDef]',
|
76
|
+
providers: [{ provide: CdkHeaderRowDef, useExisting: MatExtraHeaderRowDefDirective }],
|
77
|
+
inputs: [
|
78
|
+
{ name: 'columns', alias: 'matExtraHeaderRowDef' },
|
79
|
+
{ name: 'sticky', alias: 'matExtraHeaderRowDefSticky', transform: booleanAttribute },
|
80
|
+
],
|
81
|
+
}]
|
82
|
+
}], ctorParameters: () => [] });
|
83
|
+
class MatExtraFooterRowDefDirective extends CdkFooterRowDef {
|
84
|
+
_prefix = input.required({ alias: 'matExtraFooterRowDefName' });
|
85
|
+
constructor() {
|
86
|
+
super();
|
87
|
+
effect(() => this.columns = [...this.columns].map(c => `f_${c}_${this._prefix()}`));
|
88
|
+
}
|
89
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
90
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.7", type: MatExtraFooterRowDefDirective, isStandalone: true, selector: "[matExtraFooterRowDef]", inputs: { columns: { classPropertyName: "columns", publicName: "matExtraFooterRowDef", isSignal: false, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "matExtraFooterRowDefSticky", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, _prefix: { classPropertyName: "_prefix", publicName: "matExtraFooterRowDefName", isSignal: true, isRequired: true, transformFunction: null } }, providers: [{ provide: CdkFooterRowDef, useExisting: MatExtraFooterRowDefDirective }], usesInheritance: true, ngImport: i0 });
|
91
|
+
}
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterRowDefDirective, decorators: [{
|
93
|
+
type: Directive,
|
94
|
+
args: [{
|
95
|
+
selector: '[matExtraFooterRowDef]',
|
96
|
+
providers: [{ provide: CdkFooterRowDef, useExisting: MatExtraFooterRowDefDirective }],
|
97
|
+
inputs: [
|
98
|
+
{ name: 'columns', alias: 'matExtraFooterRowDef' },
|
99
|
+
{ name: 'sticky', alias: 'matExtraFooterRowDefSticky', transform: booleanAttribute },
|
100
|
+
],
|
101
|
+
}]
|
102
|
+
}], ctorParameters: () => [] });
|
103
|
+
|
104
|
+
class MatExtraTableModule {
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
106
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: MatExtraTableModule, imports: [MatExtraHeaderCellDefDirective,
|
107
|
+
MatExtraFooterCellDefDirective,
|
108
|
+
MatExtraHeaderRowDefDirective,
|
109
|
+
MatExtraFooterRowDefDirective,
|
110
|
+
MatTableModule], exports: [MatExtraHeaderCellDefDirective,
|
111
|
+
MatExtraFooterCellDefDirective,
|
112
|
+
MatExtraHeaderRowDefDirective,
|
113
|
+
MatExtraFooterRowDefDirective,
|
114
|
+
MatTableModule] });
|
115
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraTableModule, imports: [MatTableModule, MatTableModule] });
|
116
|
+
}
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraTableModule, decorators: [{
|
118
|
+
type: NgModule,
|
119
|
+
args: [{
|
120
|
+
imports: [
|
121
|
+
MatExtraHeaderCellDefDirective,
|
122
|
+
MatExtraFooterCellDefDirective,
|
123
|
+
MatExtraHeaderRowDefDirective,
|
124
|
+
MatExtraFooterRowDefDirective,
|
125
|
+
MatTableModule
|
126
|
+
],
|
127
|
+
exports: [
|
128
|
+
MatExtraHeaderCellDefDirective,
|
129
|
+
MatExtraFooterCellDefDirective,
|
130
|
+
MatExtraHeaderRowDefDirective,
|
131
|
+
MatExtraFooterRowDefDirective,
|
132
|
+
MatTableModule
|
133
|
+
],
|
134
|
+
}]
|
135
|
+
}] });
|
136
|
+
|
137
|
+
/*
|
138
|
+
* Public API Surface of mat-table-extensions
|
139
|
+
*/
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Generated bundle index. Do not edit.
|
143
|
+
*/
|
144
|
+
|
145
|
+
export { MatExtraFooterCellDefDirective, MatExtraFooterRowDefDirective, MatExtraHeaderCellDefDirective, MatExtraHeaderRowDefDirective, MatExtraTableModule };
|
146
|
+
//# sourceMappingURL=ea-controls-mat-table-extensions.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ea-controls-mat-table-extensions.mjs","sources":["../../../projects/mat-table-extensions/src/lib/cell.ts","../../../projects/mat-table-extensions/src/lib/row.ts","../../../projects/mat-table-extensions/src/lib/module.ts","../../../projects/mat-table-extensions/src/public-api.ts","../../../projects/mat-table-extensions/src/ea-controls-mat-table-extensions.ts"],"sourcesContent":["import { Directive, inject, input, effect } from \"@angular/core\";\r\nimport { MatHeaderCellDef, MatTable, MatColumnDef, MatFooterCellDef } from \"@angular/material/table\";\r\n\r\n@Directive({\r\n selector: '[matExtraHeaderCellDef]',\r\n providers: [{ provide: MatHeaderCellDef, useExisting: MatExtraHeaderCellDefDirective }]\r\n})\r\nexport class MatExtraHeaderCellDefDirective extends MatHeaderCellDef {\r\n\r\n private _table = inject(MatTable);\r\n private _column = inject(MatColumnDef);\r\n public _prefix = input('', { alias: 'matExtraHeaderCellDef' })\r\n\r\n constructor() {\r\n super();\r\n\r\n let column = new MatColumnDef();\r\n\r\n effect(() => {\r\n if (this._table) {\r\n column.name = `h_${this._column.name}_${this._prefix()}`;\r\n column.sticky = this._column.sticky;\r\n column.stickyEnd = this._column.stickyEnd;\r\n column.cssClassFriendlyName = this._column.cssClassFriendlyName;\r\n column.headerCell = this;\r\n this._table.addColumnDef(column);\r\n }\r\n });\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[matExtraFooterCellDef]',\r\n providers: [{ provide: MatFooterCellDef, useExisting: MatExtraFooterCellDefDirective }]\r\n})\r\nexport class MatExtraFooterCellDefDirective extends MatFooterCellDef {\r\n\r\n private _table = inject(MatTable);\r\n private _column = inject(MatColumnDef);\r\n public _prefix = input('', { alias: 'matExtraFooterCellDef' })\r\n\r\n constructor() {\r\n super();\r\n\r\n let column = new MatColumnDef();\r\n\r\n effect(() => {\r\n if (this._table) {\r\n column.name = `f_${this._column.name}_${this._prefix()}`;\r\n column.sticky = this._column.sticky;\r\n column.stickyEnd = this._column.stickyEnd;\r\n column.cssClassFriendlyName = this._column.cssClassFriendlyName;\r\n column.footerCell = this;\r\n this._table.addColumnDef(column);\r\n }\r\n });\r\n }\r\n}","import { CdkHeaderRowDef, CdkFooterRowDef } from \"@angular/cdk/table\";\r\nimport { Directive, booleanAttribute, input, effect } from \"@angular/core\";\r\n\r\n@Directive({\r\n selector: '[matExtraHeaderRowDef]',\r\n providers: [{ provide: CdkHeaderRowDef, useExisting: MatExtraHeaderRowDefDirective }],\r\n inputs: [\r\n { name: 'columns', alias: 'matExtraHeaderRowDef' },\r\n { name: 'sticky', alias: 'matExtraHeaderRowDefSticky', transform: booleanAttribute },\r\n ],\r\n})\r\nexport class MatExtraHeaderRowDefDirective extends CdkHeaderRowDef {\r\n\r\n public _prefix = input.required({ alias: 'matExtraHeaderRowDefName' })\r\n\r\n constructor() {\r\n super();\r\n effect(() => this.columns = [...this.columns].map(c => `h_${c}_${this._prefix()}`));\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[matExtraFooterRowDef]',\r\n providers: [{ provide: CdkFooterRowDef, useExisting: MatExtraFooterRowDefDirective }],\r\n inputs: [\r\n { name: 'columns', alias: 'matExtraFooterRowDef' },\r\n { name: 'sticky', alias: 'matExtraFooterRowDefSticky', transform: booleanAttribute },\r\n ],\r\n})\r\nexport class MatExtraFooterRowDefDirective extends CdkFooterRowDef {\r\n\r\n public _prefix = input.required({ alias: 'matExtraFooterRowDefName' })\r\n\r\n constructor() {\r\n super();\r\n effect(() => this.columns = [...this.columns].map(c => `f_${c}_${this._prefix()}`));\r\n }\r\n}\r\n","import { NgModule } from \"@angular/core\";\r\nimport { MatExtraFooterCellDefDirective, MatExtraFooterRowDefDirective, MatExtraHeaderCellDefDirective, MatExtraHeaderRowDefDirective } from \".\";\r\nimport { MatTableModule } from \"@angular/material/table\";\r\n\r\n@NgModule({\r\n imports: [\r\n MatExtraHeaderCellDefDirective,\r\n MatExtraFooterCellDefDirective,\r\n MatExtraHeaderRowDefDirective,\r\n MatExtraFooterRowDefDirective,\r\n MatTableModule\r\n ],\r\n exports: [\r\n MatExtraHeaderCellDefDirective,\r\n MatExtraFooterCellDefDirective,\r\n MatExtraHeaderRowDefDirective,\r\n MatExtraFooterRowDefDirective,\r\n MatTableModule\r\n ],\r\n})\r\nexport class MatExtraTableModule { }","/*\r\n * Public API Surface of mat-table-extensions\r\n */\r\n\r\n\r\nexport * from './lib';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAOM,MAAO,8BAA+B,SAAQ,gBAAgB,CAAA;AAExD,IAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;AACzB,IAAA,OAAO,GAAG,MAAM,CAAC,YAAY,CAAC;IAC/B,OAAO,GAAG,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAE,CAAC;AAE9D,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;AAEP,QAAA,IAAI,MAAM,GAAG,IAAI,YAAY,EAAE;QAE/B,MAAM,CAAC,MAAK;AACR,YAAA,IAAI,IAAI,CAAC,MAAM,EAAE;AACb,gBAAA,MAAM,CAAC,IAAI,GAAG,CAAA,EAAA,EAAK,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EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAdxB,8BAA8B;YAC9B,8BAA8B;YAC9B,6BAA6B;YAC7B,6BAA6B;AAC7B,YAAA,cAAc,aAGd,8BAA8B;YAC9B,8BAA8B;YAC9B,6BAA6B;YAC7B,6BAA6B;YAC7B,cAAc,CAAA,EAAA,CAAA;wGAGT,mBAAmB,EAAA,OAAA,EAAA,CAVxB,cAAc,EAOd,cAAc,CAAA,EAAA,CAAA;;2FAGT,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAhB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,8BAA8B;wBAC9B,8BAA8B;wBAC9B,6BAA6B;wBAC7B,6BAA6B;wBAC7B;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,8BAA8B;wBAC9B,8BAA8B;wBAC9B,6BAA6B;wBAC7B,6BAA6B;wBAC7B;AACH,qBAAA;AACJ,iBAAA;;;ACnBD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
package/lib/cell.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { MatHeaderCellDef, MatFooterCellDef } from "@angular/material/table";
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class MatExtraHeaderCellDefDirective extends MatHeaderCellDef {
|
4
|
+
private _table;
|
5
|
+
private _column;
|
6
|
+
_prefix: import("@angular/core").InputSignal<string>;
|
7
|
+
constructor();
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraHeaderCellDefDirective, never>;
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraHeaderCellDefDirective, "[matExtraHeaderCellDef]", never, { "_prefix": { "alias": "matExtraHeaderCellDef"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
10
|
+
}
|
11
|
+
export declare class MatExtraFooterCellDefDirective extends MatFooterCellDef {
|
12
|
+
private _table;
|
13
|
+
private _column;
|
14
|
+
_prefix: import("@angular/core").InputSignal<string>;
|
15
|
+
constructor();
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraFooterCellDefDirective, never>;
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraFooterCellDefDirective, "[matExtraFooterCellDef]", never, { "_prefix": { "alias": "matExtraFooterCellDef"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
18
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from './cell';
|
2
|
-
export * from './row';
|
3
|
-
export * from './module';
|
1
|
+
export * from './cell';
|
2
|
+
export * from './row';
|
3
|
+
export * from './module';
|
package/lib/module.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./cell";
|
3
|
+
import * as i2 from "./row";
|
4
|
+
import * as i3 from "@angular/material/table";
|
5
|
+
export declare class MatExtraTableModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraTableModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatExtraTableModule, never, [typeof i1.MatExtraHeaderCellDefDirective, typeof i1.MatExtraFooterCellDefDirective, typeof i2.MatExtraHeaderRowDefDirective, typeof i2.MatExtraFooterRowDefDirective, typeof i3.MatTableModule], [typeof i1.MatExtraHeaderCellDefDirective, typeof i1.MatExtraFooterCellDefDirective, typeof i2.MatExtraHeaderRowDefDirective, typeof i2.MatExtraFooterRowDefDirective, typeof i3.MatTableModule]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatExtraTableModule>;
|
9
|
+
}
|
package/lib/row.d.ts
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
import { CdkHeaderRowDef, CdkFooterRowDef } from "@angular/cdk/table";
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class MatExtraHeaderRowDefDirective extends CdkHeaderRowDef {
|
4
|
+
_prefix: import("@angular/core").InputSignal<unknown>;
|
5
|
+
constructor();
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraHeaderRowDefDirective, never>;
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraHeaderRowDefDirective, "[matExtraHeaderRowDef]", never, { "columns": { "alias": "matExtraHeaderRowDef"; "required": false; }; "sticky": { "alias": "matExtraHeaderRowDefSticky"; "required": false; }; "_prefix": { "alias": "matExtraHeaderRowDefName"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
8
|
+
static ngAcceptInputType_sticky: unknown;
|
9
|
+
}
|
10
|
+
export declare class MatExtraFooterRowDefDirective extends CdkFooterRowDef {
|
11
|
+
_prefix: import("@angular/core").InputSignal<unknown>;
|
12
|
+
constructor();
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraFooterRowDefDirective, never>;
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraFooterRowDefDirective, "[matExtraFooterRowDef]", never, { "columns": { "alias": "matExtraFooterRowDef"; "required": false; }; "sticky": { "alias": "matExtraFooterRowDefSticky"; "required": false; }; "_prefix": { "alias": "matExtraFooterRowDefName"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
15
|
+
static ngAcceptInputType_sticky: unknown;
|
16
|
+
}
|
package/package.json
CHANGED
@@ -1,46 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ea-controls/mat-table-extensions",
|
3
|
-
"version": "19.0.
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"build": "ng build",
|
8
|
-
"watch": "ng build --watch --configuration development",
|
9
|
-
"test": "ng test",
|
10
|
-
"publish": "ng build mat-table-extensions && npm publish"
|
11
|
-
},
|
12
|
-
"private": false,
|
13
|
-
"publishConfig": {
|
14
|
-
"access": "public"
|
3
|
+
"version": "19.0.3",
|
4
|
+
"peerDependencies": {
|
5
|
+
"@angular/common": "^19.1.0",
|
6
|
+
"@angular/core": "^19.1.0"
|
15
7
|
},
|
16
8
|
"dependencies": {
|
17
|
-
"
|
18
|
-
"@angular/cdk": "^19.1.5",
|
19
|
-
"@angular/common": "^19.1.0",
|
20
|
-
"@angular/compiler": "^19.1.0",
|
21
|
-
"@angular/core": "^19.1.0",
|
22
|
-
"@angular/forms": "^19.1.0",
|
23
|
-
"@angular/material": "^19.1.5",
|
24
|
-
"@angular/platform-browser": "^19.1.0",
|
25
|
-
"@angular/platform-browser-dynamic": "^19.1.0",
|
26
|
-
"@angular/router": "^19.1.0",
|
27
|
-
"rxjs": "~7.8.0",
|
28
|
-
"tslib": "^2.3.0",
|
29
|
-
"zone.js": "~0.15.0"
|
9
|
+
"tslib": "^2.3.0"
|
30
10
|
},
|
31
|
-
"
|
32
|
-
|
33
|
-
"
|
34
|
-
"@angular/compiler-cli": "^19.1.0",
|
35
|
-
"@types/jasmine": "~5.1.0",
|
36
|
-
"jasmine-core": "~5.5.0",
|
37
|
-
"karma": "~6.4.0",
|
38
|
-
"karma-chrome-launcher": "~3.2.0",
|
39
|
-
"karma-coverage": "~2.2.0",
|
40
|
-
"karma-jasmine": "~5.1.0",
|
41
|
-
"karma-jasmine-html-reporter": "~2.1.0",
|
42
|
-
"ng-packagr": "^19.1.0",
|
43
|
-
"typescript": "~5.7.2"
|
11
|
+
"sideEffects": false,
|
12
|
+
"publishConfig": {
|
13
|
+
"access": "public"
|
44
14
|
},
|
45
15
|
"keywords": [
|
46
16
|
"angular",
|
@@ -50,5 +20,16 @@
|
|
50
20
|
"table",
|
51
21
|
"grid"
|
52
22
|
],
|
53
|
-
"author": "Edwin Arias"
|
23
|
+
"author": "Edwin Arias",
|
24
|
+
"module": "fesm2022/ea-controls-mat-table-extensions.mjs",
|
25
|
+
"typings": "index.d.ts",
|
26
|
+
"exports": {
|
27
|
+
"./package.json": {
|
28
|
+
"default": "./package.json"
|
29
|
+
},
|
30
|
+
".": {
|
31
|
+
"types": "./index.d.ts",
|
32
|
+
"default": "./fesm2022/ea-controls-mat-table-extensions.mjs"
|
33
|
+
}
|
34
|
+
}
|
54
35
|
}
|
package/public-api.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './lib';
|
package/.editorconfig
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# Editor configuration, see https://editorconfig.org
|
2
|
-
root = true
|
3
|
-
|
4
|
-
[*]
|
5
|
-
charset = utf-8
|
6
|
-
indent_style = space
|
7
|
-
indent_size = 2
|
8
|
-
insert_final_newline = true
|
9
|
-
trim_trailing_whitespace = true
|
10
|
-
|
11
|
-
[*.ts]
|
12
|
-
quote_type = single
|
13
|
-
ij_typescript_use_double_quotes = false
|
14
|
-
|
15
|
-
[*.md]
|
16
|
-
max_line_length = off
|
17
|
-
trim_trailing_whitespace = false
|
package/.vscode/extensions.json
DELETED
package/.vscode/launch.json
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
3
|
-
"version": "0.2.0",
|
4
|
-
"configurations": [
|
5
|
-
{
|
6
|
-
"name": "ng serve",
|
7
|
-
"type": "chrome",
|
8
|
-
"request": "launch",
|
9
|
-
"preLaunchTask": "npm: start",
|
10
|
-
"url": "http://localhost:4200/"
|
11
|
-
},
|
12
|
-
{
|
13
|
-
"name": "ng test",
|
14
|
-
"type": "chrome",
|
15
|
-
"request": "launch",
|
16
|
-
"preLaunchTask": "npm: test",
|
17
|
-
"url": "http://localhost:9876/debug.html"
|
18
|
-
}
|
19
|
-
]
|
20
|
-
}
|
package/.vscode/tasks.json
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
{
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
3
|
-
"version": "2.0.0",
|
4
|
-
"tasks": [
|
5
|
-
{
|
6
|
-
"type": "npm",
|
7
|
-
"script": "start",
|
8
|
-
"isBackground": true,
|
9
|
-
"problemMatcher": {
|
10
|
-
"owner": "typescript",
|
11
|
-
"pattern": "$tsc",
|
12
|
-
"background": {
|
13
|
-
"activeOnStart": true,
|
14
|
-
"beginsPattern": {
|
15
|
-
"regexp": "(.*?)"
|
16
|
-
},
|
17
|
-
"endsPattern": {
|
18
|
-
"regexp": "bundle generation complete"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"type": "npm",
|
25
|
-
"script": "test",
|
26
|
-
"isBackground": true,
|
27
|
-
"problemMatcher": {
|
28
|
-
"owner": "typescript",
|
29
|
-
"pattern": "$tsc",
|
30
|
-
"background": {
|
31
|
-
"activeOnStart": true,
|
32
|
-
"beginsPattern": {
|
33
|
-
"regexp": "(.*?)"
|
34
|
-
},
|
35
|
-
"endsPattern": {
|
36
|
-
"regexp": "bundle generation complete"
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
]
|
42
|
-
}
|