stepper.ts (material2-7.3.3) | : | stepper.ts (material2-7.3.4) | ||
---|---|---|---|---|
skipping to change at line 37 | skipping to change at line 37 | |||
OnDestroy, | OnDestroy, | |||
Optional, | Optional, | |||
Output, | Output, | |||
QueryList, | QueryList, | |||
TemplateRef, | TemplateRef, | |||
ViewChild, | ViewChild, | |||
ViewEncapsulation, | ViewEncapsulation, | |||
InjectionToken, | InjectionToken, | |||
} from '@angular/core'; | } from '@angular/core'; | |||
import {DOCUMENT} from '@angular/common'; | import {DOCUMENT} from '@angular/common'; | |||
import {AbstractControl} from '@angular/forms'; | ||||
import {CdkStepLabel} from './step-label'; | import {CdkStepLabel} from './step-label'; | |||
import {Observable, Subject, of as obaservableOf} from 'rxjs'; | import {Observable, Subject, of as obaservableOf} from 'rxjs'; | |||
import {startWith, takeUntil} from 'rxjs/operators'; | import {startWith, takeUntil} from 'rxjs/operators'; | |||
import {CdkStepHeader} from './step-header'; | import {CdkStepHeader} from './step-header'; | |||
/** Used to generate unique ID for each stepper component. */ | /** Used to generate unique ID for each stepper component. */ | |||
let nextId = 0; | let nextId = 0; | |||
/** | /** | |||
* Position state of the content of each step in stepper that is used for transi tioning | * Position state of the content of each step in stepper that is used for transi tioning | |||
skipping to change at line 128 | skipping to change at line 127 | |||
_showError: boolean; | _showError: boolean; | |||
_displayDefaultIndicatorType: boolean; | _displayDefaultIndicatorType: boolean; | |||
/** Template for step label if it exists. */ | /** Template for step label if it exists. */ | |||
@ContentChild(CdkStepLabel) stepLabel: CdkStepLabel; | @ContentChild(CdkStepLabel) stepLabel: CdkStepLabel; | |||
/** Template for step content. */ | /** Template for step content. */ | |||
@ViewChild(TemplateRef) content: TemplateRef<any>; | @ViewChild(TemplateRef) content: TemplateRef<any>; | |||
/** The top level abstract control of the step. */ | /** The top level abstract control of the step. */ | |||
@Input() stepControl: AbstractControl; | @Input() stepControl: { | |||
valid: boolean; | ||||
invalid: boolean; | ||||
pending: boolean; | ||||
reset: () => void; | ||||
}; | ||||
/** Whether user has seen the expanded step content or not. */ | /** Whether user has seen the expanded step content or not. */ | |||
interacted = false; | interacted = false; | |||
/** Plain text label of the step. */ | /** Plain text label of the step. */ | |||
@Input() label: string; | @Input() label: string; | |||
/** Error message to display when there's an error. */ | /** Error message to display when there's an error. */ | |||
@Input() errorMessage: string; | @Input() errorMessage: string; | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 6 lines changed or added |