[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { Directionality } from '@angular/cdk/bidi';
|
---|
| 9 | import { CdkStep, CdkStepper, StepperOptions } from '@angular/cdk/stepper';
|
---|
| 10 | import { AnimationEvent } from '@angular/animations';
|
---|
| 11 | import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
|
---|
| 12 | import { FormControl, FormGroupDirective, NgForm } from '@angular/forms';
|
---|
| 13 | import { ErrorStateMatcher, ThemePalette } from '@angular/material/core';
|
---|
| 14 | import { TemplatePortal } from '@angular/cdk/portal';
|
---|
| 15 | import { Subject } from 'rxjs';
|
---|
| 16 | import { MatStepHeader } from './step-header';
|
---|
| 17 | import { MatStepLabel } from './step-label';
|
---|
| 18 | import { MatStepperIcon, MatStepperIconContext } from './stepper-icon';
|
---|
| 19 | import { MatStepContent } from './step-content';
|
---|
| 20 | export declare class MatStep extends CdkStep implements ErrorStateMatcher, AfterContentInit, OnDestroy {
|
---|
| 21 | private _errorStateMatcher;
|
---|
| 22 | private _viewContainerRef;
|
---|
| 23 | private _isSelected;
|
---|
| 24 | /** Content for step label given by `<ng-template matStepLabel>`. */
|
---|
| 25 | stepLabel: MatStepLabel;
|
---|
| 26 | /** Theme color for the particular step. */
|
---|
| 27 | color: ThemePalette;
|
---|
| 28 | /** Content that will be rendered lazily. */
|
---|
| 29 | _lazyContent: MatStepContent;
|
---|
| 30 | /** Currently-attached portal containing the lazy content. */
|
---|
| 31 | _portal: TemplatePortal;
|
---|
| 32 | constructor(stepper: MatStepper, _errorStateMatcher: ErrorStateMatcher, _viewContainerRef: ViewContainerRef, stepperOptions?: StepperOptions);
|
---|
| 33 | ngAfterContentInit(): void;
|
---|
| 34 | ngOnDestroy(): void;
|
---|
| 35 | /** Custom error state matcher that additionally checks for validity of interacted form. */
|
---|
| 36 | isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
---|
| 37 | }
|
---|
| 38 | /**
|
---|
| 39 | * Proxies the public APIs from `MatStepper` to the deprecated `MatHorizontalStepper` and
|
---|
| 40 | * `MatVerticalStepper`.
|
---|
| 41 | * @deprecated Use `MatStepper` instead.
|
---|
| 42 | * @breaking-change 13.0.0
|
---|
| 43 | * @docs-private
|
---|
| 44 | */
|
---|
| 45 | declare abstract class _MatProxyStepperBase extends CdkStepper {
|
---|
| 46 | readonly steps: QueryList<MatStep>;
|
---|
| 47 | readonly animationDone: EventEmitter<void>;
|
---|
| 48 | disableRipple: boolean;
|
---|
| 49 | color: ThemePalette;
|
---|
| 50 | labelPosition: 'bottom' | 'end';
|
---|
| 51 | }
|
---|
| 52 | /**
|
---|
| 53 | * @deprecated Use `MatStepper` instead.
|
---|
| 54 | * @breaking-change 13.0.0
|
---|
| 55 | */
|
---|
| 56 | export declare class MatHorizontalStepper extends _MatProxyStepperBase {
|
---|
| 57 | }
|
---|
| 58 | /**
|
---|
| 59 | * @deprecated Use `MatStepper` instead.
|
---|
| 60 | * @breaking-change 13.0.0
|
---|
| 61 | */
|
---|
| 62 | export declare class MatVerticalStepper extends _MatProxyStepperBase {
|
---|
| 63 | }
|
---|
| 64 | export declare class MatStepper extends CdkStepper implements AfterContentInit {
|
---|
| 65 | /** The list of step headers of the steps in the stepper. */
|
---|
| 66 | _stepHeader: QueryList<MatStepHeader>;
|
---|
| 67 | /** Full list of steps inside the stepper, including inside nested steppers. */
|
---|
| 68 | _steps: QueryList<MatStep>;
|
---|
| 69 | /** Steps that belong to the current stepper, excluding ones from nested steppers. */
|
---|
| 70 | readonly steps: QueryList<MatStep>;
|
---|
| 71 | /** Custom icon overrides passed in by the consumer. */
|
---|
| 72 | _icons: QueryList<MatStepperIcon>;
|
---|
| 73 | /** Event emitted when the current step is done transitioning in. */
|
---|
| 74 | readonly animationDone: EventEmitter<void>;
|
---|
| 75 | /** Whether ripples should be disabled for the step headers. */
|
---|
| 76 | disableRipple: boolean;
|
---|
| 77 | /** Theme color for all of the steps in stepper. */
|
---|
| 78 | color: ThemePalette;
|
---|
| 79 | /**
|
---|
| 80 | * Whether the label should display in bottom or end position.
|
---|
| 81 | * Only applies in the `horizontal` orientation.
|
---|
| 82 | */
|
---|
| 83 | labelPosition: 'bottom' | 'end';
|
---|
| 84 | /** Consumer-specified template-refs to be used to override the header icons. */
|
---|
| 85 | _iconOverrides: Record<string, TemplateRef<MatStepperIconContext>>;
|
---|
| 86 | /** Stream of animation `done` events when the body expands/collapses. */
|
---|
| 87 | readonly _animationDone: Subject<AnimationEvent>;
|
---|
| 88 | constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _document: any);
|
---|
| 89 | ngAfterContentInit(): void;
|
---|
| 90 | _stepIsNavigable(index: number, step: MatStep): boolean;
|
---|
| 91 | }
|
---|
| 92 | export {};
|
---|