diff --git a/src/cdk/stepper/BUILD.bazel b/src/cdk/stepper/BUILD.bazel index 226d53bacdfe..6c5c8b56f951 100644 --- a/src/cdk/stepper/BUILD.bazel +++ b/src/cdk/stepper/BUILD.bazel @@ -9,7 +9,6 @@ ng_module( deps = [ "@angular//packages/common", "@angular//packages/core", - "@angular//packages/forms", "@rxjs", "@rxjs//operators", "//src/cdk/a11y", diff --git a/src/cdk/stepper/stepper.ts b/src/cdk/stepper/stepper.ts index 9b07794d81a5..8261cd4fbeac 100644 --- a/src/cdk/stepper/stepper.ts +++ b/src/cdk/stepper/stepper.ts @@ -34,7 +34,6 @@ import { InjectionToken, } from '@angular/core'; import {DOCUMENT} from '@angular/common'; -import {AbstractControl} from '@angular/forms'; import {CdkStepLabel} from './step-label'; import {Observable, Subject, of as obaservableOf} from 'rxjs'; import {startWith, takeUntil} from 'rxjs/operators'; @@ -125,7 +124,12 @@ export class CdkStep implements OnChanges { @ViewChild(TemplateRef) content: TemplateRef; /** 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. */ interacted = false; diff --git a/tools/public_api_guard/cdk/stepper.d.ts b/tools/public_api_guard/cdk/stepper.d.ts index 7e01551690e7..f336da9527f3 100644 --- a/tools/public_api_guard/cdk/stepper.d.ts +++ b/tools/public_api_guard/cdk/stepper.d.ts @@ -12,7 +12,12 @@ export declare class CdkStep implements OnChanges { label: string; optional: boolean; state: StepState; - stepControl: AbstractControl; + stepControl: { + valid: boolean; + invalid: boolean; + pending: boolean; + reset: () => void; + }; stepLabel: CdkStepLabel; constructor(_stepper: CdkStepper, stepperOptions?: StepperOptions); ngOnChanges(): void;