@nova-ui/bits
Version:
SolarWinds Nova Framework
30 lines (29 loc) • 1.98 kB
TypeScript
import { CdkStep, StepperOptions } from "@angular/cdk/stepper";
import { ChangeDetectorRef, OnDestroy, OnInit, TemplateRef } from "@angular/core";
import { FormControl, FormGroupDirective, NgForm } from "@angular/forms";
import { ErrorStateMatcher } from "../error-state-matcher.provider";
import { WizardStepStateConfig } from "../types";
import { WizardStepFooterDirective } from "../wizard-step-footer.directive";
import { WizardStepLabelDirective } from "../wizard-step-label.directive";
import * as i0 from "@angular/core";
/** @ignore */
export declare class WizardStepV2Component extends CdkStep implements OnInit, OnDestroy, ErrorStateMatcher {
private changeDetectorRef;
private _errorStateMatcher;
template?: TemplateRef<any>;
stepStateConfig: Partial<WizardStepStateConfig>;
stepIndex: number;
/** Content for step label given by `<ng-template wizardStepLabel>`. */
stepLabel: WizardStepLabelDirective;
/** Content for footer given by `<ng-template wizardStepFooter>`. */
stepFooter: WizardStepFooterDirective;
private readonly destroy$;
constructor(changeDetectorRef: ChangeDetectorRef, stepper: any, _errorStateMatcher: ErrorStateMatcher, stepperOptions?: StepperOptions);
ngOnInit(): void;
ngOnDestroy(): void;
/** Custom error state matcher that additionally checks for validity of interacted form. */
isErrorState(control?: FormControl, form?: FormGroupDirective | NgForm): boolean;
private onControlStatusChanges;
static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepV2Component, [null, null, { skipSelf: true; }, { optional: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepV2Component, "nui-wizard-step-v2", ["nuiWizardStep"], { "template": { "alias": "template"; "required": false; }; "stepStateConfig": { "alias": "stepStateConfig"; "required": false; }; "stepIndex": { "alias": "stepIndex"; "required": false; }; }, {}, ["stepLabel", "stepFooter"], ["*"], false, never>;
}