@@ -20,11 +20,6 @@ import {
2020 CdkRowDef ,
2121} from '@angular/cdk/table' ;
2222
23- // TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
24- export const _CdkHeaderRowDef = CdkHeaderRowDef ;
25- export const _CdkFooterRowDef = CdkFooterRowDef ;
26- export const _CdkRowDef = CdkRowDef ;
27-
2823/**
2924 * Header row definition for the mat-table.
3025 * Captures the header row's template and other header properties such as the columns to display.
@@ -34,7 +29,7 @@ export const _CdkRowDef = CdkRowDef;
3429 providers : [ { provide : CdkHeaderRowDef , useExisting : MatHeaderRowDef } ] ,
3530 inputs : [ 'columns: matHeaderRowDef' , 'sticky: matHeaderRowDefSticky' ] ,
3631} )
37- export class MatHeaderRowDef extends _CdkHeaderRowDef { }
32+ export class MatHeaderRowDef extends CdkHeaderRowDef { }
3833
3934/**
4035 * Footer row definition for the mat-table.
@@ -45,7 +40,7 @@ export class MatHeaderRowDef extends _CdkHeaderRowDef {}
4540 providers : [ { provide : CdkFooterRowDef , useExisting : MatFooterRowDef } ] ,
4641 inputs : [ 'columns: matFooterRowDef' , 'sticky: matFooterRowDefSticky' ] ,
4742} )
48- export class MatFooterRowDef extends _CdkFooterRowDef { }
43+ export class MatFooterRowDef extends CdkFooterRowDef { }
4944
5045/**
5146 * Data row definition for the mat-table.
@@ -57,7 +52,12 @@ export class MatFooterRowDef extends _CdkFooterRowDef {}
5752 providers : [ { provide : CdkRowDef , useExisting : MatRowDef } ] ,
5853 inputs : [ 'columns: matRowDefColumns' , 'when: matRowDefWhen' ] ,
5954} )
60- export class MatRowDef < T > extends _CdkRowDef < T > { }
55+ export class MatRowDef < T > extends CdkRowDef < T > { }
56+
57+ // TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
58+ ( MatHeaderRowDef as any ) [ 'ctorParameters' ] = ( ) => ( CdkHeaderRowDef as any ) [ 'ctorParameters' ] ;
59+ ( MatFooterRowDef as any ) [ 'ctorParameters' ] = ( ) => ( CdkFooterRowDef as any ) [ 'ctorParameters' ] ;
60+ ( MatRowDef as any ) [ 'ctorParameters' ] = ( ) => ( CdkRowDef as any ) [ 'ctorParameters' ] ;
6161
6262/** Footer template container that contains the cell outlet. Adds the right class and role. */
6363@Component ( {
0 commit comments