blob: 3312a0679f3feb41f93d84b00e8a0c9e25535121 [file] [log] [blame]
/**
* @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 { Directionality } from '@angular/cdk/bidi';
import { BooleanInput } from '@angular/cdk/coercion';
import { CdkStep, CdkStepper, StepperOptions } from '@angular/cdk/stepper';
import { AnimationEvent } from '@angular/animations';
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, QueryList, TemplateRef } from '@angular/core';
import { FormControl, FormGroupDirective, NgForm } from '@angular/forms';
import { ErrorStateMatcher, ThemePalette } from '@angular/material/core';
import { Subject } from 'rxjs';
import { MatStepHeader } from './step-header';
import { MatStepLabel } from './step-label';
import { MatStepperIcon, MatStepperIconContext } from './stepper-icon';
export declare class MatStep extends CdkStep implements ErrorStateMatcher {
private _errorStateMatcher;
/** Content for step label given by `<ng-template matStepLabel>`. */
stepLabel: MatStepLabel;
/** Theme color for the particular step. */
color: ThemePalette;
/** @breaking-change 8.0.0 remove the `?` after `stepperOptions` */
constructor(stepper: MatStepper, _errorStateMatcher: ErrorStateMatcher, stepperOptions?: StepperOptions);
/** 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<MatStepHeader>;
/** Full list of steps inside the stepper, including inside nested steppers. */
_steps: QueryList<MatStep>;
/** Steps that belong to the current stepper, excluding ones from nested steppers. */
readonly steps: QueryList<MatStep>;
/** Custom icon overrides passed in by the consumer. */
_icons: QueryList<MatStepperIcon>;
/** Event emitted when the current step is done transitioning in. */
readonly animationDone: EventEmitter<void>;
/** Whether ripples should be disabled for the step headers. */
disableRipple: boolean;
/** Theme color for all of the steps in stepper. */
color: ThemePalette;
/** Consumer-specified template-refs to be used to override the header icons. */
_iconOverrides: {
[key: string]: TemplateRef<MatStepperIconContext>;
};
/** Stream of animation `done` events when the body expands/collapses. */
_animationDone: Subject<AnimationEvent>;
ngAfterContentInit(): void;
static ngAcceptInputType_editable: BooleanInput;
static ngAcceptInputType_optional: BooleanInput;
static ngAcceptInputType_completed: BooleanInput;
static ngAcceptInputType_hasError: BooleanInput;
}
export declare class MatHorizontalStepper extends MatStepper {
/** Whether the label should display in bottom or end position. */
labelPosition: 'bottom' | 'end';
static ngAcceptInputType_editable: BooleanInput;
static ngAcceptInputType_optional: BooleanInput;
static ngAcceptInputType_completed: BooleanInput;
static ngAcceptInputType_hasError: BooleanInput;
}
export declare class MatVerticalStepper extends MatStepper {
constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, elementRef?: ElementRef<HTMLElement>, _document?: any);
static ngAcceptInputType_editable: BooleanInput;
static ngAcceptInputType_optional: BooleanInput;
static ngAcceptInputType_completed: BooleanInput;
static ngAcceptInputType_hasError: BooleanInput;
}