UNPKG

@mobilelivenpm/fds-angular-qa

Version:

This library was generated with [Nx](https://nx.dev).

43 lines (42 loc) 2.34 kB
import { BooleanInput } from '@angular/cdk/coercion'; import { CdkStep, CdkStepper, StepperOptions } from '@angular/cdk/stepper'; import { AnimationEvent } from '@angular/animations'; import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core'; import { FormControl, FormGroupDirective, NgForm } from '@angular/forms'; import { FdsErrorStateMatcher } from '../shared/error-options'; import { Subject } from 'rxjs'; import { FdsStepLabel } from './step-label'; export declare class FdsStep extends CdkStep implements FdsErrorStateMatcher { private _errorStateMatcher; /** Content for step label given by `<ng-template matStepLabel>`. */ stepLabel: FdsStepLabel; constructor(stepper: FdsStepper, _errorStateMatcher: FdsErrorStateMatcher, stepperOptions: StepperOptions); /** Custom error state matcher that additionally checks for validity of interacted form. */ isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; } export declare class FdsStepper extends CdkStepper implements AfterContentInit { static ngAcceptInputType_editable: BooleanInput; static ngAcceptInputType_optional: BooleanInput; static ngAcceptInputType_completed: BooleanInput; static ngAcceptInputType_hasError: BooleanInput; /** Full list of steps inside the stepper, including inside nested steppers. */ _steps: QueryList<FdsStep>; /** Steps that belong to the current stepper, excluding ones from nested steppers. */ readonly steps: QueryList<FdsStep>; /** Event emitted when the current step is done transitioning in. */ readonly animationDone: EventEmitter<void>; /** Stream of animation `done` events when the body expands/collapses. */ _animationDone: Subject<AnimationEvent>; ngAfterContentInit(): void; } export declare class FdsHorizontalStepper extends FdsStepper implements AfterContentInit { /** Whether the label should display in bottom or end position. */ labelPosition: 'bottom' | 'end'; templates: QueryList<any>; headerTemplate: TemplateRef<any>; ngAfterContentInit(): void; static ngAcceptInputType_editable: BooleanInput; static ngAcceptInputType_optional: BooleanInput; static ngAcceptInputType_completed: BooleanInput; static ngAcceptInputType_hasError: BooleanInput; }