Skip to content

Commit 8bd90f4

Browse files
committed
ci: fix ci issues
1 parent e7b1752 commit 8bd90f4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/material/form-field/form-field.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ import {MatFormFieldLineRipple} from './directives/line-ripple';
4040
import {MatFormFieldNotchedOutline} from './directives/notched-outline';
4141
import {MAT_PREFIX, MatPrefix} from './directives/prefix';
4242
import {MAT_SUFFIX, MatSuffix} from './directives/suffix';
43-
import {DOCUMENT} from '@angular/common';
4443
import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';
4544
import {matFormFieldAnimations} from './form-field-animations';
4645
import {MatFormFieldControl} from './form-field-control';
4746
import {
4847
getMatFormFieldDuplicatedHintError,
4948
getMatFormFieldMissingControlError,
5049
} from './form-field-errors';
50+
import {DOCUMENT} from '@angular/common';
5151

5252
/** Type for the available floatLabel values. */
5353
export type FloatLabelType = 'always' | 'auto';
@@ -288,7 +288,11 @@ export class MatFormField
288288
@Inject(MAT_FORM_FIELD_DEFAULT_OPTIONS)
289289
private _defaults?: MatFormFieldDefaultOptions,
290290
@Optional() @Inject(ANIMATION_MODULE_TYPE) public _animationMode?: string,
291-
@Inject(DOCUMENT) private _document?: any,
291+
/**
292+
* @deprecated not needed, to be removed.
293+
* @breaking-change 17.0.0 remove this param
294+
*/
295+
@Inject(DOCUMENT) _unusedDocument?: any,
292296
) {
293297
if (_defaults) {
294298
if (_defaults.appearance) {

tools/public_api_guard/material/form-field.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { BooleanInput } from '@angular/cdk/coercion';
1313
import { ChangeDetectorRef } from '@angular/core';
1414
import { Directionality } from '@angular/cdk/bidi';
1515
import { ElementRef } from '@angular/core';
16+
import { EventEmitter } from '@angular/core';
1617
import * as i0 from '@angular/core';
1718
import * as i10 from '@angular/material/core';
1819
import * as i11 from '@angular/common';
@@ -66,7 +67,8 @@ export class MatError {
6667

6768
// @public
6869
export class MatFormField implements AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy {
69-
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone, _dir: Directionality, _platform: Platform, _defaults?: MatFormFieldDefaultOptions | undefined, _animationMode?: string | undefined, _document?: any);
70+
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone, _dir: Directionality, _platform: Platform, _defaults?: MatFormFieldDefaultOptions | undefined, _animationMode?: string | undefined,
71+
_unusedDocument?: any);
7072
_animateAndLockLabel(): void;
7173
// (undocumented)
7274
_animationMode?: string | undefined;
@@ -117,7 +119,6 @@ export class MatFormField implements AfterContentInit, AfterContentChecked, Afte
117119
_labelChildStatic: MatLabel | undefined;
118120
// (undocumented)
119121
readonly _labelId: string;
120-
_labelWidth: number;
121122
// (undocumented)
122123
_lineRipple: MatFormFieldLineRipple | undefined;
123124
// (undocumented)

0 commit comments

Comments
 (0)