From cb5ec8ffb441ac618fc4fd50c662d7c08845d7bd Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Tue, 6 Mar 2018 11:53:52 -0800 Subject: [PATCH] refactor(form-field): remove deprecated @Inputs small piece of #10164, split out for presubmit reasons BREAKING CHANGES: - dividerColor which was deprecated in 5.0.0 has been removed. Use color instead. - floatPlaceholder which was deprecated in 5.0.0 has been removed. Use floatLabel instead. --- src/lib/form-field/form-field.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/lib/form-field/form-field.ts b/src/lib/form-field/form-field.ts index ddc6727f9fcf..2f808d322c47 100644 --- a/src/lib/form-field/form-field.ts +++ b/src/lib/form-field/form-field.ts @@ -32,7 +32,6 @@ import { LabelOptions, MAT_LABEL_GLOBAL_OPTIONS, mixinColor, - ThemePalette } from '@angular/material/core'; import {fromEvent} from 'rxjs/observable/fromEvent'; import {startWith} from 'rxjs/operators/startWith'; @@ -139,14 +138,6 @@ export class MatFormField extends _MatFormFieldMixinBase } _appearance: MatFormFieldAppearance; - /** - * @deprecated Use `color` instead. - * @deletion-target 6.0.0 - */ - @Input() - get dividerColor(): ThemePalette { return this.color; } - set dividerColor(value: ThemePalette) { this.color = value; } - /** Whether the required marker should be hidden. */ @Input() get hideRequiredMarker(): boolean { return this._hideRequiredMarker; } @@ -181,15 +172,6 @@ export class MatFormField extends _MatFormFieldMixinBase // Unique id for the hint label. _hintLabelId: string = `mat-hint-${nextUniqueId++}`; - /** - * Whether the placeholder should always float, never float or float as the user types. - * @deprecated Use floatLabel instead. - * @deletion-target 6.0.0 - */ - @Input() - get floatPlaceholder(): FloatLabelType { return this.floatLabel; } - set floatPlaceholder(value: FloatLabelType) { this.floatLabel = value; } - /** * Whether the label should always float, never float or float as the user types. *