UNPKG

@nova-ui/bits

Version:

SolarWinds Nova Framework

47 lines (46 loc) 2.81 kB
import { FocusMonitor } from "@angular/cdk/a11y"; import { CdkStepHeader, StepState } from "@angular/cdk/stepper"; import { AfterViewInit, ElementRef, OnChanges, OnDestroy, SimpleChanges } from "@angular/core"; import { IWizardConfig, WizardStepStateConfig } from "../types"; import { WizardStepV2Component } from "../wizard-step/wizard-step.component"; import { WizardStepLabelDirective } from "../wizard-step-label.directive"; import * as i0 from "@angular/core"; /** @ignore */ export declare class WizardStepHeaderComponent extends CdkStepHeader implements AfterViewInit, OnDestroy, OnChanges { private _focusMonitor; readonly config?: IWizardConfig | undefined; /** State of the given step. */ stepState: StepState; /** Custom icon config received from the wizard step. Allows to customize state icons for a particular wizard step */ stepStateConfig: Partial<WizardStepStateConfig>; /** Label of the given step. */ label: WizardStepLabelDirective | string; /** Label that is rendered below optional steps. */ optionalLabel: string; /** Error message to display when there's an error. */ errorMessage: string; /** Index of the given step. */ index: number; /** Whether the given step is selected. */ selected: boolean; /** Whether the given step label is active. */ active: boolean; step: WizardStepV2Component; stepStateConfigMap: WizardStepStateConfig; private wizardConfig; constructor(_focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>, config?: IWizardConfig | undefined); ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** Focuses the step header. */ focus(): void; /** Returns string label of given step if it is a text label. */ get stringLabel(): string | null; /** Returns WizardStepLabel if the label of given step is a template label. */ get templateLabel(): WizardStepLabelDirective | null; private updateStepStateConfig; private createStepStateConfigMap; private getStepState; static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepHeaderComponent, [null, null, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepHeaderComponent, "nui-wizard-step-header", never, { "stepStateConfig": { "alias": "stepStateConfig"; "required": false; }; "label": { "alias": "label"; "required": false; }; "optionalLabel": { "alias": "optionalLabel"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "index": { "alias": "index"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "active": { "alias": "active"; "required": false; }; "step": { "alias": "step"; "required": false; }; }, {}, never, never, false, never>; }