@ea-controls/mat-table-extensions 0.0.1 → 16.0.1
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
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
Angular directives that allows to extend Angular [mat-table](https://material.angular.io/components/table/overview) features
|
4
4
|
|
5
|
+
## Dependencies
|
6
|
+
|
7
|
+
1. @angular version > 16.0.0 (Includes 17 and 18)
|
8
|
+
1. @angular/material ```ng add @angular/material```
|
9
|
+
|
5
10
|
## Multiple Headers/Footer
|
6
11
|
|
7
12
|
Usually mat-table only allows one header and footer inside [matColumnDef] directive
|
@@ -159,4 +164,6 @@ export class BasicComponent {
|
|
159
164
|
<tr mat-footer-row *matExtraFooterRowDef="['position', 'name']; name: 'filter'"></tr>
|
160
165
|
|
161
166
|
</table>
|
162
|
-
```
|
167
|
+
```
|
168
|
+
|
169
|
+
> Join to my [telegram](https://t.me/+M3Q1VDg0crJlNWUx) group for supporting and commenting
|
@@ -1,105 +1,137 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { inject,
|
2
|
+
import { inject, Directive, Input, booleanAttribute, NgModule } from '@angular/core';
|
3
3
|
import { MatHeaderCellDef, MatTable, MatColumnDef, MatFooterCellDef, MatTableModule } from '@angular/material/table';
|
4
4
|
import { CdkHeaderRowDef, CdkFooterRowDef } from '@angular/cdk/table';
|
5
5
|
|
6
6
|
class MatExtraHeaderCellDefDirective extends MatHeaderCellDef {
|
7
7
|
_table = inject(MatTable);
|
8
8
|
_column = inject(MatColumnDef);
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
});
|
9
|
+
_newColumn;
|
10
|
+
_prefix = '';
|
11
|
+
set prefix(value) {
|
12
|
+
if (value !== this._prefix) {
|
13
|
+
this._prefix = value;
|
14
|
+
this._newColumn = new MatColumnDef();
|
15
|
+
this._newColumn.name = `h_${this._column.name}_${this._prefix}`;
|
16
|
+
this._newColumn.sticky = this._column.sticky;
|
17
|
+
this._newColumn.stickyEnd = this._column.stickyEnd;
|
18
|
+
this._newColumn.cssClassFriendlyName = this._column.cssClassFriendlyName;
|
19
|
+
this._newColumn.headerCell = this;
|
20
|
+
this._table.addColumnDef(this._newColumn);
|
21
|
+
}
|
23
22
|
}
|
24
|
-
|
25
|
-
|
23
|
+
ngOnDestroy() {
|
24
|
+
if (this._newColumn)
|
25
|
+
this._table.removeColumnDef(this._newColumn);
|
26
|
+
}
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraHeaderCellDefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.7", type: MatExtraHeaderCellDefDirective, isStandalone: true, selector: "[matExtraHeaderCellDef]", inputs: { prefix: ["matExtraHeaderCellDef", "prefix"] }, providers: [{ provide: MatHeaderCellDef, useExisting: MatExtraHeaderCellDefDirective }], usesInheritance: true, ngImport: i0 });
|
26
29
|
}
|
27
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraHeaderCellDefDirective, decorators: [{
|
28
31
|
type: Directive,
|
29
32
|
args: [{
|
30
33
|
selector: '[matExtraHeaderCellDef]',
|
34
|
+
standalone: true,
|
31
35
|
providers: [{ provide: MatHeaderCellDef, useExisting: MatExtraHeaderCellDefDirective }]
|
32
36
|
}]
|
33
|
-
}],
|
37
|
+
}], propDecorators: { prefix: [{
|
38
|
+
type: Input,
|
39
|
+
args: [{ alias: 'matExtraHeaderCellDef' }]
|
40
|
+
}] } });
|
34
41
|
class MatExtraFooterCellDefDirective extends MatFooterCellDef {
|
35
42
|
_table = inject(MatTable);
|
36
43
|
_column = inject(MatColumnDef);
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
44
|
+
_newColumn;
|
45
|
+
_prefix = '';
|
46
|
+
set prefix(value) {
|
47
|
+
if (value !== this._prefix) {
|
48
|
+
this._prefix = value;
|
49
|
+
this._newColumn = new MatColumnDef();
|
50
|
+
this._newColumn.name = `f_${this._column.name}_${this._prefix}`;
|
51
|
+
this._newColumn.sticky = this._column.sticky;
|
52
|
+
this._newColumn.stickyEnd = this._column.stickyEnd;
|
53
|
+
this._newColumn.cssClassFriendlyName = this._column.cssClassFriendlyName;
|
54
|
+
this._newColumn.footerCell = this;
|
55
|
+
this._table.addColumnDef(this._newColumn);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
ngOnDestroy() {
|
59
|
+
if (this._newColumn)
|
60
|
+
this._table.removeColumnDef(this._newColumn);
|
51
61
|
}
|
52
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterCellDefDirective, deps:
|
53
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterCellDefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
63
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.7", type: MatExtraFooterCellDefDirective, isStandalone: true, selector: "[matExtraFooterCellDef]", inputs: { prefix: ["matExtraFooterCellDef", "prefix"] }, providers: [{ provide: MatFooterCellDef, useExisting: MatExtraFooterCellDefDirective }], usesInheritance: true, ngImport: i0 });
|
54
64
|
}
|
55
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterCellDefDirective, decorators: [{
|
56
66
|
type: Directive,
|
57
67
|
args: [{
|
58
68
|
selector: '[matExtraFooterCellDef]',
|
69
|
+
standalone: true,
|
59
70
|
providers: [{ provide: MatFooterCellDef, useExisting: MatExtraFooterCellDefDirective }]
|
60
71
|
}]
|
61
|
-
}],
|
72
|
+
}], propDecorators: { prefix: [{
|
73
|
+
type: Input,
|
74
|
+
args: [{ alias: 'matExtraFooterCellDef' }]
|
75
|
+
}] } });
|
62
76
|
|
63
77
|
class MatExtraHeaderRowDefDirective extends CdkHeaderRowDef {
|
64
|
-
_prefix =
|
65
|
-
|
66
|
-
|
67
|
-
|
78
|
+
_prefix = '';
|
79
|
+
set prefix(value) {
|
80
|
+
if (value !== this._prefix) {
|
81
|
+
this._prefix = value;
|
82
|
+
this.columns = [...this.columns].map(c => `h_${c}_${this._prefix}`);
|
83
|
+
}
|
68
84
|
}
|
69
|
-
|
70
|
-
|
85
|
+
ngOnDestroy() {
|
86
|
+
this.columns = [];
|
87
|
+
}
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraHeaderRowDefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
89
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.7", type: MatExtraHeaderRowDefDirective, isStandalone: true, selector: "[matExtraHeaderRowDef]", inputs: { columns: ["matExtraHeaderRowDef", "columns"], sticky: ["matExtraHeaderRowDefSticky", "sticky", booleanAttribute], prefix: ["matExtraHeaderRowDefName", "prefix"] }, providers: [{ provide: CdkHeaderRowDef, useExisting: MatExtraHeaderRowDefDirective }], usesInheritance: true, ngImport: i0 });
|
71
90
|
}
|
72
91
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraHeaderRowDefDirective, decorators: [{
|
73
92
|
type: Directive,
|
74
93
|
args: [{
|
75
94
|
selector: '[matExtraHeaderRowDef]',
|
76
95
|
providers: [{ provide: CdkHeaderRowDef, useExisting: MatExtraHeaderRowDefDirective }],
|
96
|
+
standalone: true,
|
77
97
|
inputs: [
|
78
98
|
{ name: 'columns', alias: 'matExtraHeaderRowDef' },
|
79
99
|
{ name: 'sticky', alias: 'matExtraHeaderRowDefSticky', transform: booleanAttribute },
|
80
100
|
],
|
81
101
|
}]
|
82
|
-
}],
|
102
|
+
}], propDecorators: { prefix: [{
|
103
|
+
type: Input,
|
104
|
+
args: [{ alias: 'matExtraHeaderRowDefName' }]
|
105
|
+
}] } });
|
83
106
|
class MatExtraFooterRowDefDirective extends CdkFooterRowDef {
|
84
|
-
_prefix =
|
85
|
-
|
86
|
-
|
87
|
-
|
107
|
+
_prefix = '';
|
108
|
+
set prefix(value) {
|
109
|
+
if (value !== this._prefix) {
|
110
|
+
this._prefix = value;
|
111
|
+
this.columns = [...this.columns].map(c => `f_${c}_${this._prefix}`);
|
112
|
+
}
|
113
|
+
}
|
114
|
+
ngOnDestroy() {
|
115
|
+
this.columns = [];
|
88
116
|
}
|
89
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterRowDefDirective, deps:
|
90
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterRowDefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
118
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.7", type: MatExtraFooterRowDefDirective, isStandalone: true, selector: "[matExtraFooterRowDef]", inputs: { columns: ["matExtraFooterRowDef", "columns"], sticky: ["matExtraFooterRowDefSticky", "sticky", booleanAttribute], prefix: ["matExtraFooterRowDefName", "prefix"] }, providers: [{ provide: CdkFooterRowDef, useExisting: MatExtraFooterRowDefDirective }], usesInheritance: true, ngImport: i0 });
|
91
119
|
}
|
92
120
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraFooterRowDefDirective, decorators: [{
|
93
121
|
type: Directive,
|
94
122
|
args: [{
|
95
123
|
selector: '[matExtraFooterRowDef]',
|
96
124
|
providers: [{ provide: CdkFooterRowDef, useExisting: MatExtraFooterRowDefDirective }],
|
125
|
+
standalone: true,
|
97
126
|
inputs: [
|
98
127
|
{ name: 'columns', alias: 'matExtraFooterRowDef' },
|
99
128
|
{ name: 'sticky', alias: 'matExtraFooterRowDefSticky', transform: booleanAttribute },
|
100
129
|
],
|
101
130
|
}]
|
102
|
-
}],
|
131
|
+
}], propDecorators: { prefix: [{
|
132
|
+
type: Input,
|
133
|
+
args: [{ alias: 'matExtraFooterRowDefName' }]
|
134
|
+
}] } });
|
103
135
|
|
104
136
|
class MatExtraTableModule {
|
105
137
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MatExtraTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -1 +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,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AAE;AACvF,qBAAA;AACJ,iBAAA;;;MCRY,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,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;;;;"}
|
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, OnDestroy } from \"@angular/core\";\r\nimport { MatHeaderCellDef, MatTable, MatColumnDef, MatFooterCellDef } from \"@angular/material/table\";\r\n\r\n@Directive({\r\n selector: '[matExtraHeaderCellDef]',\r\n standalone: true,\r\n providers: [{ provide: MatHeaderCellDef, useExisting: MatExtraHeaderCellDefDirective }]\r\n})\r\nexport class MatExtraHeaderCellDefDirective extends MatHeaderCellDef implements OnDestroy {\r\n\r\n private _table = inject(MatTable);\r\n private _column = inject(MatColumnDef);\r\n private _newColumn?: MatColumnDef;\r\n private _prefix = '';\r\n\r\n @Input({ alias: 'matExtraHeaderCellDef' })\r\n set prefix(value: string) {\r\n if (value !== this._prefix) {\r\n this._prefix = value;\r\n\r\n this._newColumn = new MatColumnDef();\r\n this._newColumn.name = `h_${this._column.name}_${this._prefix}`;\r\n this._newColumn.sticky = this._column.sticky;\r\n this._newColumn.stickyEnd = this._column.stickyEnd;\r\n this._newColumn.cssClassFriendlyName = this._column.cssClassFriendlyName;\r\n this._newColumn.headerCell = this;\r\n this._table.addColumnDef(this._newColumn);\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n if (this._newColumn)\r\n this._table.removeColumnDef(this._newColumn)\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[matExtraFooterCellDef]',\r\n standalone: true,\r\n providers: [{ provide: MatFooterCellDef, useExisting: MatExtraFooterCellDefDirective }]\r\n})\r\nexport class MatExtraFooterCellDefDirective extends MatFooterCellDef implements OnDestroy {\r\n\r\n private _table = inject(MatTable);\r\n private _column = inject(MatColumnDef);\r\n private _newColumn?: MatColumnDef;\r\n private _prefix = '';\r\n\r\n @Input({ alias: 'matExtraFooterCellDef' })\r\n set prefix(value: string) {\r\n if (value !== this._prefix) {\r\n this._prefix = value;\r\n\r\n this._newColumn = new MatColumnDef();\r\n this._newColumn.name = `f_${this._column.name}_${this._prefix}`;\r\n this._newColumn.sticky = this._column.sticky;\r\n this._newColumn.stickyEnd = this._column.stickyEnd;\r\n this._newColumn.cssClassFriendlyName = this._column.cssClassFriendlyName;\r\n this._newColumn.footerCell = this;\r\n this._table.addColumnDef(this._newColumn);\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n if (this._newColumn)\r\n this._table.removeColumnDef(this._newColumn)\r\n }\r\n}","import { CdkHeaderRowDef, CdkFooterRowDef } from \"@angular/cdk/table\";\r\nimport { Directive, booleanAttribute, Input, OnDestroy } from \"@angular/core\";\r\n\r\n@Directive({\r\n selector: '[matExtraHeaderRowDef]',\r\n providers: [{ provide: CdkHeaderRowDef, useExisting: MatExtraHeaderRowDefDirective }],\r\n standalone: true,\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 implements OnDestroy {\r\n\r\n private _prefix = '';\r\n\r\n @Input({ alias: 'matExtraHeaderRowDefName' })\r\n set prefix(value: string) {\r\n if (value !== this._prefix) {\r\n this._prefix = value;\r\n this.columns = [...this.columns].map(c => `h_${c}_${this._prefix}`)\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.columns = [];\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: '[matExtraFooterRowDef]',\r\n providers: [{ provide: CdkFooterRowDef, useExisting: MatExtraFooterRowDefDirective }],\r\n standalone: true,\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 implements OnDestroy {\r\n\r\n private _prefix = '';\r\n\r\n @Input({ alias: 'matExtraFooterRowDefName' })\r\n set prefix(value: string) {\r\n if (value !== this._prefix) {\r\n this._prefix = value;\r\n this.columns = [...this.columns].map(c => `f_${c}_${this._prefix}`)\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.columns = [];\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":";;;;;AAQM,MAAO,8BAA+B,SAAQ,gBAAgB,CAAA;AAExD,IAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;AACzB,IAAA,OAAO,GAAG,MAAM,CAAC,YAAY,CAAC;AAC9B,IAAA,UAAU;IACV,OAAO,GAAG,EAAE;IAEpB,IACI,MAAM,CAAC,KAAa,EAAA;AACpB,QAAA,IAAI,KAAK,KAAK,IAAI,CAAC,OAAO,EAAE;AACxB,YAAA,IAAI,CAAC,OAAO,GAAG,KAAK;AAEpB,YAAA,IAAI,CAAC,UAAU,GAAG,IAAI,YAAY,EAAE;AACpC,YAAA,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,OAAO,EAAE;YAC/D,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM;YAC5C,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS;YAClD,IAAI,CAAC,UAAU,CAAC,oBAAoB,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAo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AA,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/lib/cell.d.ts
CHANGED
@@ -1,18 +1,23 @@
|
|
1
|
+
import { OnDestroy } from "@angular/core";
|
1
2
|
import { MatHeaderCellDef, MatFooterCellDef } from "@angular/material/table";
|
2
3
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class MatExtraHeaderCellDefDirective extends MatHeaderCellDef {
|
4
|
+
export declare class MatExtraHeaderCellDefDirective extends MatHeaderCellDef implements OnDestroy {
|
4
5
|
private _table;
|
5
6
|
private _column;
|
6
|
-
|
7
|
-
|
7
|
+
private _newColumn?;
|
8
|
+
private _prefix;
|
9
|
+
set prefix(value: string);
|
10
|
+
ngOnDestroy(): void;
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraHeaderCellDefDirective, never>;
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraHeaderCellDefDirective, "[matExtraHeaderCellDef]", never, { "
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraHeaderCellDefDirective, "[matExtraHeaderCellDef]", never, { "prefix": { "alias": "matExtraHeaderCellDef"; "required": false; }; }, {}, never, never, true, never>;
|
10
13
|
}
|
11
|
-
export declare class MatExtraFooterCellDefDirective extends MatFooterCellDef {
|
14
|
+
export declare class MatExtraFooterCellDefDirective extends MatFooterCellDef implements OnDestroy {
|
12
15
|
private _table;
|
13
16
|
private _column;
|
14
|
-
|
15
|
-
|
17
|
+
private _newColumn?;
|
18
|
+
private _prefix;
|
19
|
+
set prefix(value: string);
|
20
|
+
ngOnDestroy(): void;
|
16
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraFooterCellDefDirective, never>;
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraFooterCellDefDirective, "[matExtraFooterCellDef]", never, { "
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraFooterCellDefDirective, "[matExtraFooterCellDef]", never, { "prefix": { "alias": "matExtraFooterCellDef"; "required": false; }; }, {}, never, never, true, never>;
|
18
23
|
}
|
package/lib/row.d.ts
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
import { CdkHeaderRowDef, CdkFooterRowDef } from "@angular/cdk/table";
|
2
|
+
import { OnDestroy } from "@angular/core";
|
2
3
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class MatExtraHeaderRowDefDirective extends CdkHeaderRowDef {
|
4
|
-
_prefix
|
5
|
-
|
4
|
+
export declare class MatExtraHeaderRowDefDirective extends CdkHeaderRowDef implements OnDestroy {
|
5
|
+
private _prefix;
|
6
|
+
set prefix(value: string);
|
7
|
+
ngOnDestroy(): void;
|
6
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraHeaderRowDefDirective, never>;
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraHeaderRowDefDirective, "[matExtraHeaderRowDef]", never, { "columns": { "alias": "matExtraHeaderRowDef"; "required": false; }; "sticky": { "alias": "matExtraHeaderRowDefSticky"; "required": false; }; "
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraHeaderRowDefDirective, "[matExtraHeaderRowDef]", never, { "columns": { "alias": "matExtraHeaderRowDef"; "required": false; }; "sticky": { "alias": "matExtraHeaderRowDefSticky"; "required": false; }; "prefix": { "alias": "matExtraHeaderRowDefName"; "required": false; }; }, {}, never, never, true, never>;
|
8
10
|
static ngAcceptInputType_sticky: unknown;
|
9
11
|
}
|
10
|
-
export declare class MatExtraFooterRowDefDirective extends CdkFooterRowDef {
|
11
|
-
_prefix
|
12
|
-
|
12
|
+
export declare class MatExtraFooterRowDefDirective extends CdkFooterRowDef implements OnDestroy {
|
13
|
+
private _prefix;
|
14
|
+
set prefix(value: string);
|
15
|
+
ngOnDestroy(): void;
|
13
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatExtraFooterRowDefDirective, never>;
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraFooterRowDefDirective, "[matExtraFooterRowDef]", never, { "columns": { "alias": "matExtraFooterRowDef"; "required": false; }; "sticky": { "alias": "matExtraFooterRowDefSticky"; "required": false; }; "
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatExtraFooterRowDefDirective, "[matExtraFooterRowDef]", never, { "columns": { "alias": "matExtraFooterRowDef"; "required": false; }; "sticky": { "alias": "matExtraFooterRowDefSticky"; "required": false; }; "prefix": { "alias": "matExtraFooterRowDefName"; "required": false; }; }, {}, never, never, true, never>;
|
15
18
|
static ngAcceptInputType_sticky: unknown;
|
16
19
|
}
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ea-controls/mat-table-extensions",
|
3
|
-
"version": "
|
3
|
+
"version": "16.0.1",
|
4
4
|
"peerDependencies": {
|
5
|
-
"@angular/common": "^16.
|
6
|
-
"@angular/core": "^16.
|
7
|
-
"@angular/material": "^16.
|
8
|
-
"@angular/cdk": "^16.
|
5
|
+
"@angular/common": "^16.1.0 || ^17.1.0 || ^18.1.0",
|
6
|
+
"@angular/core": "^16.1.0 || ^17.1.0 || ^18.1.0",
|
7
|
+
"@angular/material": "^16.1.0 || ^17.1.0 || ^18.1.0",
|
8
|
+
"@angular/cdk": "^16.1.0 || ^17.1.0 || ^18.1.0"
|
9
9
|
},
|
10
10
|
"dependencies": {
|
11
11
|
"tslib": "^2.3.0"
|