diff --git a/src/material/form-field/form-field.html b/src/material/form-field/form-field.html
index d60362ba50dd..8b58dba3248d 100644
--- a/src/material/form-field/form-field.html
+++ b/src/material/form-field/form-field.html
@@ -63,7 +63,7 @@
-
;
@@ -268,13 +262,6 @@ export class MatFormField extends _MatFormFieldBase
constructor(
elementRef: ElementRef, private _changeDetectorRef: ChangeDetectorRef,
- /**
- * @deprecated `_labelOptions` parameter no longer being used. To be removed.
- * @breaking-change 12.0.0
- */
- @Inject(ElementRef)
- // Use `ElementRef` here so Angular has something to inject.
- _labelOptions: any,
@Optional() private _dir: Directionality,
@Optional() @Inject(MAT_FORM_FIELD_DEFAULT_OPTIONS) private _defaults:
MatFormFieldDefaultOptions, private _platform: Platform, private _ngZone: NgZone,
diff --git a/src/material/form-field/testing/form-field-harness.ts b/src/material/form-field/testing/form-field-harness.ts
index 72d86599ed85..78dfed658cab 100644
--- a/src/material/form-field/testing/form-field-harness.ts
+++ b/src/material/form-field/testing/form-field-harness.ts
@@ -134,32 +134,12 @@ export abstract class _MatFormFieldHarnessBase hints.map(e => e.text()));
}
- /**
- * Gets a reference to the container element which contains all projected
- * prefixes of the form-field.
- * @deprecated Use `getPrefixText` instead.
- * @breaking-change 11.0.0
- */
- async getHarnessLoaderForPrefix(): Promise {
- return this._prefixContainer();
- }
-
/** Gets the text inside the prefix element. */
async getPrefixText(): Promise {
const prefix = await this._prefixContainer();
return prefix ? prefix.text() : '';
}
- /**
- * Gets a reference to the container element which contains all projected
- * suffixes of the form-field.
- * @deprecated Use `getSuffixText` instead.
- * @breaking-change 11.0.0
- */
- async getHarnessLoaderForSuffix(): Promise {
- return this._suffixContainer();
- }
-
/** Gets the text inside the suffix element. */
async getSuffixText(): Promise {
const suffix = await this._suffixContainer();
diff --git a/src/material/schematics/ng-update/data/constructor-checks.ts b/src/material/schematics/ng-update/data/constructor-checks.ts
index 2c1e7d133191..5fbba0838c71 100644
--- a/src/material/schematics/ng-update/data/constructor-checks.ts
+++ b/src/material/schematics/ng-update/data/constructor-checks.ts
@@ -14,6 +14,12 @@ import {ConstructorChecksUpgradeData, TargetVersion, VersionChanges} from '@angu
* automatically through type checking.
*/
export const constructorChecks: VersionChanges = {
+ [TargetVersion.V13]: [
+ {
+ pr: 'https://github.com/angular/components/pull/23389',
+ changes: ['MatFormField']
+ }
+ ],
[TargetVersion.V12]: [
{
pr: 'https://github.com/angular/components/pull/21897',
diff --git a/tools/public_api_guard/material/form-field-testing.md b/tools/public_api_guard/material/form-field-testing.md
index 8418e7be2bf5..c2cb4058beae 100644
--- a/tools/public_api_guard/material/form-field-testing.md
+++ b/tools/public_api_guard/material/form-field-testing.md
@@ -65,10 +65,6 @@ export abstract class _MatFormFieldHarnessBase;
getControl(type: ComponentHarnessConstructor): Promise;
getControl(type: HarnessPredicate): Promise;
- // @deprecated
- getHarnessLoaderForPrefix(): Promise;
- // @deprecated
- getHarnessLoaderForSuffix(): Promise;
getLabel(): Promise;
getPrefixText(): Promise;
getSuffixText(): Promise;
diff --git a/tools/public_api_guard/material/form-field.md b/tools/public_api_guard/material/form-field.md
index 2967ef4c0a6c..b7e9b03e87b3 100644
--- a/tools/public_api_guard/material/form-field.md
+++ b/tools/public_api_guard/material/form-field.md
@@ -70,8 +70,7 @@ export class MatError {
// @public
export class MatFormField extends _MatFormFieldBase implements AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy, CanColor {
- constructor(elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef,
- _labelOptions: any, _dir: Directionality, _defaults: MatFormFieldDefaultOptions, _platform: Platform, _ngZone: NgZone, _animationMode: string);
+ constructor(elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _dir: Directionality, _defaults: MatFormFieldDefaultOptions, _platform: Platform, _ngZone: NgZone, _animationMode: string);
_animateAndLockLabel(): void;
_animationsEnabled: boolean;
get appearance(): MatFormFieldAppearance;
@@ -140,14 +139,12 @@ export class MatFormField extends _MatFormFieldBase implements AfterContentInit,
_subscriptAnimationState: string;
// (undocumented)
_suffixChildren: QueryList;
- // @deprecated (undocumented)
- underlineRef: ElementRef;
updateOutlineGap(): void;
protected _validateControlChild(): void;
// (undocumented)
static ɵcmp: i0.ɵɵComponentDeclaration;
// (undocumented)
- static ɵfac: i0.ɵɵFactoryDeclaration;
+ static ɵfac: i0.ɵɵFactoryDeclaration;
}
// @public