source: trip-planner-front/node_modules/@angular/material/stepper/stepper.d.ts@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[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 */
8import { Directionality } from '@angular/cdk/bidi';
9import { CdkStep, CdkStepper, StepperOptions } from '@angular/cdk/stepper';
10import { AnimationEvent } from '@angular/animations';
11import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
12import { FormControl, FormGroupDirective, NgForm } from '@angular/forms';
13import { ErrorStateMatcher, ThemePalette } from '@angular/material/core';
14import { TemplatePortal } from '@angular/cdk/portal';
15import { Subject } from 'rxjs';
16import { MatStepHeader } from './step-header';
17import { MatStepLabel } from './step-label';
18import { MatStepperIcon, MatStepperIconContext } from './stepper-icon';
19import { MatStepContent } from './step-content';
20export 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 */
45declare 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 */
56export declare class MatHorizontalStepper extends _MatProxyStepperBase {
57}
58/**
59 * @deprecated Use `MatStepper` instead.
60 * @breaking-change 13.0.0
61 */
62export declare class MatVerticalStepper extends _MatProxyStepperBase {
63}
64export 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}
92export {};
Note: See TracBrowser for help on using the repository browser.