Skip to content

build: remove es2015 workaround #14066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/lib/input/autosize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,3 @@ export class MatTextareaAutosize extends CdkTextareaAutosize {
get matTextareaAutosize(): boolean { return this.enabled; }
set matTextareaAutosize(value: boolean) { this.enabled = value; }
}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatTextareaAutosize as any)['ctorParameters'] = () =>
(CdkTextareaAutosize as any)['ctorParameters'];
3 changes: 0 additions & 3 deletions src/lib/stepper/step-label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ import {CdkStepLabel} from '@angular/cdk/stepper';
selector: '[matStepLabel]',
})
export class MatStepLabel extends CdkStepLabel {}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatStepLabel as any)['ctorParameters'] = () => (CdkStepLabel as any)['ctorParameters'];
5 changes: 0 additions & 5 deletions src/lib/stepper/stepper-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,3 @@ export class MatStepperNext extends CdkStepperNext {}
providers: [{provide: CdkStepper, useExisting: MatStepper}]
})
export class MatStepperPrevious extends CdkStepperPrevious {}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatStepperNext as any)['ctorParameters'] = () => (CdkStepperNext as any)['ctorParameters'];
(MatStepperPrevious as any)['ctorParameters'] = () =>
(CdkStepperPrevious as any)['ctorParameters'];
3 changes: 0 additions & 3 deletions src/lib/stepper/stepper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ export class MatStepper extends CdkStepper implements AfterContentInit {
}
}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatStepper as any)['ctorParameters'] = () => (CdkStepper as any)['ctorParameters'];

@Component({
moduleId: module.id,
selector: 'mat-horizontal-stepper',
Expand Down
5 changes: 0 additions & 5 deletions src/lib/table/cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ export class MatHeaderCellDef extends CdkHeaderCellDef {}
})
export class MatFooterCellDef extends CdkFooterCellDef {}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatCellDef as any)['ctorParameters'] = () => (CdkCellDef as any)['ctorParameters'];
(MatHeaderCellDef as any)['ctorParameters'] = () => (CdkHeaderCellDef as any)['ctorParameters'];
(MatFooterCellDef as any)['ctorParameters'] = () => (MatFooterCellDef as any)['ctorParameters'];

/**
* Column definition for the mat-table.
* Defines a set of cells available for a table column.
Expand Down
5 changes: 0 additions & 5 deletions src/lib/table/row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ export class MatFooterRowDef extends CdkFooterRowDef {}
})
export class MatRowDef<T> extends CdkRowDef<T> {}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatHeaderRowDef as any)['ctorParameters'] = () => (CdkHeaderRowDef as any)['ctorParameters'];
(MatFooterRowDef as any)['ctorParameters'] = () => (CdkFooterRowDef as any)['ctorParameters'];
(MatRowDef as any)['ctorParameters'] = () => (CdkRowDef as any)['ctorParameters'];

/** Footer template container that contains the cell outlet. Adds the right class and role. */
@Component({
moduleId: module.id,
Expand Down
3 changes: 0 additions & 3 deletions src/lib/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ export class MatTable<T> extends CdkTable<T> {
/** Overrides the sticky CSS class set by the `CdkTable`. */
protected stickyCssClass = 'mat-table-sticky';
}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatTable as any)['ctorParameters'] = () => (CdkTable as any)['ctorParameters'];
3 changes: 0 additions & 3 deletions src/lib/tabs/tab-label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ import {CdkPortal} from '@angular/cdk/portal';
selector: '[mat-tab-label], [matTabLabel]',
})
export class MatTabLabel extends CdkPortal {}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatTabLabel as any)['ctorParameters'] = () => (CdkPortal as any)['ctorParameters'];
3 changes: 0 additions & 3 deletions src/lib/tree/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ export class MatTreeNodeDef<T> extends CdkTreeNodeDef<T> {
@Input('matTreeNode') data: T;
}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatTreeNodeDef as any)['ctorParameters'] = () => (CdkTreeNodeDef as any)['ctorParameters'];

/**
* Wrapper for the CdkTree nested node with Material design styles.
*/
Expand Down
4 changes: 0 additions & 4 deletions src/lib/tree/padding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ export class MatTreeNodePadding<T> extends CdkTreeNodePadding<T> {
/** The indent for each level. Default number 40px from material design menu sub-menu spec. */
@Input('matTreeNodePaddingIndent') indent: number;
}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatTreeNodePadding as any)['ctorParameters'] = () =>
(CdkTreeNodePadding as any)['ctorParameters'];
3 changes: 0 additions & 3 deletions src/lib/tree/toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ import {Directive, Input} from '@angular/core';
export class MatTreeNodeToggle<T> extends CdkTreeNodeToggle<T> {
@Input('matTreeNodeToggleRecursive') recursive: boolean = false;
}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatTreeNodeToggle as any)['ctorParameters'] = () => (CdkTreeNodeToggle as any)['ctorParameters'];
3 changes: 0 additions & 3 deletions src/lib/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@ export class MatTree<T> extends CdkTree<T> {
// Outlets within the tree's template where the dataNodes will be inserted.
@ViewChild(MatTreeNodeOutlet) _nodeOutlet: MatTreeNodeOutlet;
}

// TODO(devversion): workaround for https://github.com/angular/material2/issues/12760
(MatTree as any)['ctorParameters'] = () => (CdkTree as any)['ctorParameters'];