| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- 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 `<ng-template matStepLabel>`. */
- 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<MatStep, [null, { skipSelf: true; }, null, { optional: true; }]>;
- static ɵcmp: i0.ɵɵComponentDeclaration<MatStep, "mat-step", ["matStep"], { "color": { "alias": "color"; "required": false; }; }, {}, ["stepLabel", "_lazyContent"], ["*"], false, never>;
- }
- /**
- * Content for a `mat-step` that will be rendered lazily.
- */
- export declare class MatStepContent {
- _template: TemplateRef<any>;
- constructor(_template: TemplateRef<any>);
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepContent, never>;
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepContent, "ng-template[matStepContent]", never, {}, {}, never, never, false, never>;
- }
- 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<MatStepperIconContext>;
- };
- /** 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<HTMLElement>, 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<MatStepHeader, never>;
- static ɵcmp: i0.ɵɵComponentDeclaration<MatStepHeader, "mat-step-header", never, { "color": { "alias": "color"; "required": false; }; "state": { "alias": "state"; "required": false; }; "label": { "alias": "label"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "iconOverrides": { "alias": "iconOverrides"; "required": false; }; "index": { "alias": "index"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "active": { "alias": "active"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, never, never, false, never>;
- }
- /** @docs-private */
- declare const _MatStepHeaderBase: _Constructor<CanColor> & _AbstractConstructor<CanColor> & {
- new (elementRef: ElementRef): {
- _elementRef: ElementRef<HTMLElement>;
- focus(): void;
- };
- ɵfac: unknown;
- ɵdir: unknown;
- };
- export declare class MatStepLabel extends CdkStepLabel {
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepLabel, never>;
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepLabel, "[matStepLabel]", never, {}, {}, never, never, false, never>;
- }
- 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;
- /**
- * 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<string, TemplateRef<MatStepperIconContext>>;
- /** Stream of animation `done` events when the body expands/collapses. */
- readonly _animationDone: Subject<AnimationEvent_2>;
- /** 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<HTMLElement>);
- ngAfterContentInit(): void;
- _stepIsNavigable(index: number, step: MatStep): boolean;
- _getAnimationDuration(): string;
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepper, [{ optional: true; }, null, null]>;
- static ɵcmp: i0.ɵɵComponentDeclaration<MatStepper, "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", ["matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "headerPosition": { "alias": "headerPosition"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never, false, never>;
- }
- /**
- * 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<MatStepperIconContext>;
- /** Name of the icon to be overridden. */
- name: StepState;
- constructor(templateRef: TemplateRef<MatStepperIconContext>);
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperIcon, never>;
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepperIcon, "ng-template[matStepperIcon]", never, { "name": { "alias": "matStepperIcon"; "required": false; }; }, {}, never, never, false, never>;
- }
- /** 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<void>;
- /** 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<MatStepperIntl, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<MatStepperIntl>;
- }
- export declare class MatStepperModule {
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperModule, never>;
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, [typeof i1.MatStep, typeof i2.MatStepLabel, typeof i1.MatStepper, typeof i3.MatStepperNext, typeof i3.MatStepperPrevious, typeof i4.MatStepHeader, typeof i5.MatStepperIcon, typeof i6.MatStepContent], [typeof i7.MatCommonModule, typeof i8.CommonModule, typeof i9.PortalModule, typeof i10.CdkStepperModule, typeof i11.MatIconModule, typeof i7.MatRippleModule], [typeof i7.MatCommonModule, typeof i1.MatStep, typeof i2.MatStepLabel, typeof i1.MatStepper, typeof i3.MatStepperNext, typeof i3.MatStepperPrevious, typeof i4.MatStepHeader, typeof i5.MatStepperIcon, typeof i6.MatStepContent]>;
- static ɵinj: i0.ɵɵInjectorDeclaration<MatStepperModule>;
- }
- /** Button that moves to the next step in a stepper workflow. */
- export declare class MatStepperNext extends CdkStepperNext {
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperNext, never>;
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepperNext, "button[matStepperNext]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
- }
- /** Button that moves to the previous step in a stepper workflow. */
- export declare class MatStepperPrevious extends CdkStepperPrevious {
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperPrevious, never>;
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepperPrevious, "button[matStepperPrevious]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
- }
- export { StepperOrientation }
- export { StepState }
- export { }
|