source: trip-planner-front/node_modules/@angular/material/stepper/step-header.d.ts@ e29cc2e

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

initial commit

  • Property mode set to 100644
File size: 2.6 KB
Line 
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 { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
9import { ChangeDetectorRef, ElementRef, OnDestroy, TemplateRef, AfterViewInit } from '@angular/core';
10import { MatStepLabel } from './step-label';
11import { MatStepperIntl } from './stepper-intl';
12import { MatStepperIconContext } from './stepper-icon';
13import { StepState } from '@angular/cdk/stepper';
14import { CanColor } from '@angular/material/core';
15/** @docs-private */
16declare const _MatStepHeaderBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanColor> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanColor> & {
17 new (elementRef: ElementRef): {
18 _elementRef: ElementRef<HTMLElement>;
19 focus(): void;
20 };
21};
22export declare class MatStepHeader extends _MatStepHeaderBase implements AfterViewInit, OnDestroy, CanColor {
23 _intl: MatStepperIntl;
24 private _focusMonitor;
25 private _intlSubscription;
26 /** State of the given step. */
27 state: StepState;
28 /** Label of the given step. */
29 label: MatStepLabel | string;
30 /** Error message to display when there's an error. */
31 errorMessage: string;
32 /** Overrides for the header icons, passed in via the stepper. */
33 iconOverrides: {
34 [key: string]: TemplateRef<MatStepperIconContext>;
35 };
36 /** Index of the given step. */
37 index: number;
38 /** Whether the given step is selected. */
39 selected: boolean;
40 /** Whether the given step label is active. */
41 active: boolean;
42 /** Whether the given step is optional. */
43 optional: boolean;
44 /** Whether the ripple should be disabled. */
45 disableRipple: boolean;
46 constructor(_intl: MatStepperIntl, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef);
47 ngAfterViewInit(): void;
48 ngOnDestroy(): void;
49 /** Focuses the step header. */
50 focus(origin?: FocusOrigin, options?: FocusOptions): void;
51 /** Returns string label of given step if it is a text label. */
52 _stringLabel(): string | null;
53 /** Returns MatStepLabel if the label of given step is a template label. */
54 _templateLabel(): MatStepLabel | null;
55 /** Returns the host HTML element. */
56 _getHostElement(): HTMLElement;
57 /** Template context variables that are exposed to the `matStepperIcon` instances. */
58 _getIconContext(): MatStepperIconContext;
59 _getDefaultTextForState(state: StepState): string;
60}
61export {};
Note: See TracBrowser for help on using the repository browser.