Skip to content

Commit 833f467

Browse files
committed
refactor(cdk/table): remove deprecated APIs for version 10
Removes the APIs that have been deprecated for v10. BREAKING CHANGES: * `CdkTable.setHeaderRowDef` has been removed. Use `CdkTable.addHeaderRowDef` and `CdkTable.removeHeaderRowDef` instead. * `CdkTable.setFooterRowDef` has been removed. Use `CdkTable.addFooterRowDef` and `CdkTable.removeFooterRowDef` instead.
1 parent 14a51ef commit 833f467

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

scripts/breaking-changes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {join, relative} from 'path';
22
import {readFileSync} from 'fs';
33
import chalk from 'chalk';
4-
import * as ts from 'typescript';
4+
import * as ts from 'typescript-3.8';
55
import * as tsutils from 'tsutils';
66

77
const projectRoot = process.cwd();

src/cdk/table/table.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -544,32 +544,6 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
544544
this.updateStickyColumnStyles();
545545
}
546546

547-
/**
548-
* Sets the header row definition to be used. Overrides the header row definition gathered by
549-
* using `ContentChild`, if one exists. Sets a flag that will re-render the header row after the
550-
* table's content is checked.
551-
* @docs-private
552-
* @deprecated Use `addHeaderRowDef` and `removeHeaderRowDef` instead
553-
* @breaking-change 8.0.0
554-
*/
555-
setHeaderRowDef(headerRowDef: CdkHeaderRowDef) {
556-
this._customHeaderRowDefs = new Set([headerRowDef]);
557-
this._headerRowDefChanged = true;
558-
}
559-
560-
/**
561-
* Sets the footer row definition to be used. Overrides the footer row definition gathered by
562-
* using `ContentChild`, if one exists. Sets a flag that will re-render the footer row after the
563-
* table's content is checked.
564-
* @docs-private
565-
* @deprecated Use `addFooterRowDef` and `removeFooterRowDef` instead
566-
* @breaking-change 8.0.0
567-
*/
568-
setFooterRowDef(footerRowDef: CdkFooterRowDef) {
569-
this._customFooterRowDefs = new Set([footerRowDef]);
570-
this._footerRowDefChanged = true;
571-
}
572-
573547
/** Adds a column definition that was not included as part of the content children. */
574548
addColumnDef(columnDef: CdkColumnDef) {
575549
this._customColumnDefs.add(columnDef);

tools/public_api_guard/cdk/table.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ export declare class CdkTable<T> implements AfterContentChecked, CollectionViewe
209209
removeHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
210210
removeRowDef(rowDef: CdkRowDef<T>): void;
211211
renderRows(): void;
212-
setFooterRowDef(footerRowDef: CdkFooterRowDef): void;
213-
setHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
214212
updateStickyColumnStyles(): void;
215213
updateStickyFooterRowStyles(): void;
216214
updateStickyHeaderRowStyles(): void;

0 commit comments

Comments
 (0)