File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
tools/public_api_guard/material Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { Observable } from 'rxjs' ;
10
- import { NgControl } from '@angular/forms' ;
10
+ import { NgControl , AbstractControlDirective } from '@angular/forms' ;
11
11
import { Directive } from '@angular/core' ;
12
12
13
13
@@ -30,7 +30,7 @@ export abstract class MatFormFieldControl<T> {
30
30
readonly placeholder : string ;
31
31
32
32
/** Gets the NgControl for this control. */
33
- readonly ngControl : NgControl | null ;
33
+ readonly ngControl : NgControl | AbstractControlDirective | null ;
34
34
35
35
/** Whether the control is focused. */
36
36
readonly focused : boolean ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ import {MatPlaceholder} from './placeholder';
50
50
import { MatPrefix } from './prefix' ;
51
51
import { MatSuffix } from './suffix' ;
52
52
import { Platform } from '@angular/cdk/platform' ;
53
- import { NgControl } from '@angular/forms' ;
53
+ import { AbstractControlDirective } from '@angular/forms' ;
54
54
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations' ;
55
55
56
56
@@ -383,7 +383,7 @@ export class MatFormField extends _MatFormFieldMixinBase
383
383
}
384
384
385
385
/** Determines whether a class from the NgControl should be forwarded to the host element. */
386
- _shouldForward ( prop : keyof NgControl ) : boolean {
386
+ _shouldForward ( prop : keyof AbstractControlDirective ) : boolean {
387
387
const ngControl = this . _control ? this . _control . ngControl : null ;
388
388
return ngControl && ngControl [ prop ] ;
389
389
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export declare class MatFormField extends _MatFormFieldMixinBase implements Afte
53
53
_hasLabel ( ) : boolean ;
54
54
_hasPlaceholder ( ) : boolean ;
55
55
_hideControlPlaceholder ( ) : boolean ;
56
- _shouldForward ( prop : keyof NgControl ) : boolean ;
56
+ _shouldForward ( prop : keyof AbstractControlDirective ) : boolean ;
57
57
_shouldLabelFloat ( ) : boolean ;
58
58
protected _validateControlChild ( ) : void ;
59
59
getConnectedOverlayOrigin ( ) : ElementRef ;
@@ -81,7 +81,7 @@ export declare abstract class MatFormFieldControl<T> {
81
81
readonly errorState : boolean ;
82
82
readonly focused : boolean ;
83
83
readonly id : string ;
84
- readonly ngControl : NgControl | null ;
84
+ readonly ngControl : NgControl | AbstractControlDirective | null ;
85
85
readonly placeholder : string ;
86
86
readonly required : boolean ;
87
87
readonly shouldLabelFloat : boolean ;
You can’t perform that action at this time.
0 commit comments