import { _AbstractConstructor } from '@angular/material/core'; import { AbstractControl } from '@angular/forms'; import { AfterContentInit } from '@angular/core'; import { AfterViewInit } from '@angular/core'; import { AnimationEvent as AnimationEvent_2 } from '@angular/animations'; import { AnimationTriggerMetadata } from '@angular/animations'; import { CanColor } from '@angular/material/core'; import { CdkStep } from '@angular/cdk/stepper'; import { CdkStepLabel } from '@angular/cdk/stepper'; import { CdkStepper } from '@angular/cdk/stepper'; import { CdkStepperNext } from '@angular/cdk/stepper'; import { CdkStepperPrevious } from '@angular/cdk/stepper'; import { ChangeDetectorRef } from '@angular/core'; import { _Constructor } from '@angular/material/core'; import { Directionality } from '@angular/cdk/bidi'; import { ElementRef } from '@angular/core'; import { ErrorStateMatcher } from '@angular/material/core'; import { EventEmitter } from '@angular/core'; import { FocusMonitor } from '@angular/cdk/a11y'; import { FocusOrigin } from '@angular/cdk/a11y'; import { FormGroupDirective } from '@angular/forms'; import * as i0 from '@angular/core'; import * as i10 from '@angular/cdk/stepper'; import * as i11 from '@angular/material/icon'; import * as i7 from '@angular/material/core'; import * as i8 from '@angular/common'; import * as i9 from '@angular/cdk/portal'; import { NgForm } from '@angular/forms'; import { OnDestroy } from '@angular/core'; import { Optional } from '@angular/core'; import { QueryList } from '@angular/core'; import { StepperOptions } from '@angular/cdk/stepper'; import { StepperOrientation } from '@angular/cdk/stepper'; import { StepState } from '@angular/cdk/stepper'; import { Subject } from 'rxjs'; import { TemplatePortal } from '@angular/cdk/portal'; import { TemplateRef } from '@angular/core'; import { ThemePalette } from '@angular/material/core'; import { ViewContainerRef } from '@angular/core'; declare namespace i1 { export { MatStep, MatStepper } } declare namespace i2 { export { MatStepLabel } } declare namespace i3 { export { MatStepperNext, MatStepperPrevious } } declare namespace i4 { export { MatStepHeader } } declare namespace i5 { export { MatStepperIconContext, MatStepperIcon } } declare namespace i6 { export { MatStepContent } } /** @docs-private */ export declare const MAT_STEPPER_INTL_PROVIDER: { provide: typeof MatStepperIntl; deps: Optional[][]; useFactory: typeof MAT_STEPPER_INTL_PROVIDER_FACTORY; }; /** @docs-private */ export declare function MAT_STEPPER_INTL_PROVIDER_FACTORY(parentIntl: MatStepperIntl): MatStepperIntl; export declare class MatStep extends CdkStep implements ErrorStateMatcher, AfterContentInit, OnDestroy { private _errorStateMatcher; private _viewContainerRef; private _isSelected; /** Content for step label given by ``. */ stepLabel: MatStepLabel; /** Theme color for the particular step. */ color: ThemePalette; /** Content that will be rendered lazily. */ _lazyContent: MatStepContent; /** Currently-attached portal containing the lazy content. */ _portal: TemplatePortal; constructor(stepper: MatStepper, _errorStateMatcher: ErrorStateMatcher, _viewContainerRef: ViewContainerRef, stepperOptions?: StepperOptions); ngAfterContentInit(): void; ngOnDestroy(): void; /** Custom error state matcher that additionally checks for validity of interacted form. */ isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Content for a `mat-step` that will be rendered lazily. */ export declare class MatStepContent { _template: TemplateRef; constructor(_template: TemplateRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MatStepHeader extends _MatStepHeaderBase implements AfterViewInit, OnDestroy, CanColor { _intl: MatStepperIntl; private _focusMonitor; private _intlSubscription; /** State of the given step. */ state: StepState; /** Label of the given step. */ label: MatStepLabel | string; /** Error message to display when there's an error. */ errorMessage: string; /** Overrides for the header icons, passed in via the stepper. */ iconOverrides: { [key: string]: TemplateRef; }; /** Index of the given step. */ index: number; /** Whether the given step is selected. */ selected: boolean; /** Whether the given step label is active. */ active: boolean; /** Whether the given step is optional. */ optional: boolean; /** Whether the ripple should be disabled. */ disableRipple: boolean; constructor(_intl: MatStepperIntl, _focusMonitor: FocusMonitor, _elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef); ngAfterViewInit(): void; ngOnDestroy(): void; /** Focuses the step header. */ focus(origin?: FocusOrigin, options?: FocusOptions): void; /** Returns string label of given step if it is a text label. */ _stringLabel(): string | null; /** Returns MatStepLabel if the label of given step is a template label. */ _templateLabel(): MatStepLabel | null; /** Returns the host HTML element. */ _getHostElement(): HTMLElement; /** Template context variables that are exposed to the `matStepperIcon` instances. */ _getIconContext(): MatStepperIconContext; _getDefaultTextForState(state: StepState): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** @docs-private */ declare const _MatStepHeaderBase: _Constructor & _AbstractConstructor & { new (elementRef: ElementRef): { _elementRef: ElementRef; focus(): void; }; ɵfac: unknown; ɵdir: unknown; }; export declare class MatStepLabel extends CdkStepLabel { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MatStepper extends CdkStepper implements AfterContentInit { /** The list of step headers of the steps in the stepper. */ _stepHeader: QueryList; /** Full list of steps inside the stepper, including inside nested steppers. */ _steps: QueryList; /** Steps that belong to the current stepper, excluding ones from nested steppers. */ readonly steps: QueryList; /** Custom icon overrides passed in by the consumer. */ _icons: QueryList; /** Event emitted when the current step is done transitioning in. */ readonly animationDone: EventEmitter; /** Whether ripples should be disabled for the step headers. */ disableRipple: boolean; /** Theme color for all of the steps in stepper. */ color: ThemePalette; /** * Whether the label should display in bottom or end position. * Only applies in the `horizontal` orientation. */ labelPosition: 'bottom' | 'end'; /** * Position of the stepper's header. * Only applies in the `horizontal` orientation. */ headerPosition: 'top' | 'bottom'; /** Consumer-specified template-refs to be used to override the header icons. */ _iconOverrides: Record>; /** Stream of animation `done` events when the body expands/collapses. */ readonly _animationDone: Subject; /** Duration for the animation. Will be normalized to milliseconds if no units are set. */ get animationDuration(): string; set animationDuration(value: string); private _animationDuration; constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef); ngAfterContentInit(): void; _stepIsNavigable(index: number, step: MatStep): boolean; _getAnimationDuration(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Animations used by the Material steppers. * @docs-private */ export declare const matStepperAnimations: { readonly horizontalStepTransition: AnimationTriggerMetadata; readonly verticalStepTransition: AnimationTriggerMetadata; }; /** * Template to be used to override the icons inside the step header. */ export declare class MatStepperIcon { templateRef: TemplateRef; /** Name of the icon to be overridden. */ name: StepState; constructor(templateRef: TemplateRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** Template context available to an attached `matStepperIcon`. */ export declare interface MatStepperIconContext { /** Index of the step. */ index: number; /** Whether the step is currently active. */ active: boolean; /** Whether the step is optional. */ optional: boolean; } /** Stepper data that is required for internationalization. */ export declare class MatStepperIntl { /** * Stream that emits whenever the labels here are changed. Use this to notify * components if the labels have changed after initialization. */ readonly changes: Subject; /** Label that is rendered below optional steps. */ optionalLabel: string; /** Label that is used to indicate step as completed to screen readers. */ completedLabel: string; /** Label that is used to indicate step as editable to screen readers. */ editableLabel: string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare class MatStepperModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** Button that moves to the next step in a stepper workflow. */ export declare class MatStepperNext extends CdkStepperNext { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** Button that moves to the previous step in a stepper workflow. */ export declare class MatStepperPrevious extends CdkStepperPrevious { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export { StepperOrientation } export { StepState } export { }