license import { CdkTextareaAutosize } from '@angular/cdk/text-field' ; import { Directive , Input } from '@angular/core' ; deprecated breaking-change @ Directive ( { selector : 'textarea[mat-autosize], textarea[matTextareaAutosize]' , exportAs : 'matTextareaAutosize' , inputs : [ 'cdkAutosizeMinRows' , 'cdkAutosizeMaxRows' ] , host : { 'class' : 'cdk-textarea-autosize mat-autosize' , 'rows' : '1' , '(input)' : '_noopInputHandler()' , } , } ) export class MatTextareaAutosize extends CdkTextareaAutosize { @ Input ( ) get matAutosizeMinRows ( ) : number { return this . minRows ; } set matAutosizeMinRows ( value ) { this . minRows = value ; } @ Input ( ) get matAutosizeMaxRows ( ) : number { return this . maxRows ; } set matAutosizeMaxRows ( value ) { this . maxRows = value ; } @ Input ( 'mat-autosize' ) get matAutosize ( ) : boolean { return this . enabled ; } set matAutosize ( value ) { this . enabled = value ; } @ Input ( ) get matTextareaAutosize ( ) : boolean { return this . enabled ; } set matTextareaAutosize ( value ) { this . enabled = value ; } }