@angular/material
Version:
Angular Material
44 lines (43 loc) • 2.05 kB
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { CdkStep, CdkStepper } from '@angular/cdk/stepper';
import { Directionality } from '@angular/cdk/bidi';
import { AfterContentInit, ElementRef, QueryList, ChangeDetectorRef, TemplateRef } from '@angular/core';
import { FormControl, FormGroupDirective, NgForm } from '@angular/forms';
import { ErrorStateMatcher } from '@angular/material/core';
import { MatStepLabel } from './step-label';
import { MatStepperIcon } from './stepper-icon';
/** Workaround for https://github.com/angular/angular/issues/17849 */
export declare const _MatStep: typeof CdkStep;
export declare const _MatStepper: typeof CdkStepper;
export declare class MatStep extends CdkStep implements ErrorStateMatcher {
private _errorStateMatcher;
/** Content for step label given by `<ng-template matStepLabel>`. */
stepLabel: MatStepLabel;
constructor(stepper: MatStepper, _errorStateMatcher: ErrorStateMatcher);
/** Custom error state matcher that additionally checks for validity of interacted form. */
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
}
export declare class MatStepper extends CdkStepper implements AfterContentInit {
/** The list of step headers of the steps in the stepper. */
_stepHeader: QueryList<ElementRef>;
/** Steps that the stepper holds. */
_steps: QueryList<MatStep>;
/** Custom icon overrides passed in by the consumer. */
_icons: QueryList<MatStepperIcon>;
/** Consumer-specified template-refs to be used to override the header icons. */
_iconOverrides: {
[key: string]: TemplateRef<any>;
};
ngAfterContentInit(): void;
}
export declare class MatHorizontalStepper extends MatStepper {
}
export declare class MatVerticalStepper extends MatStepper {
constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef);
}