UNPKG

@y3krulez/angular-archwizard

Version:

The port of angular-archwizard, supporting IVY and thus being compatible with Angular16+

51 lines (50 loc) 1.57 kB
import { OnInit } from '@angular/core'; import { WizardStep } from '../util/wizard-step.interface'; import * as i0 from "@angular/core"; /** * The `awCompletedStep` directive can be used to make a wizard step initially completed. * * Initially completed steps are shown as completed when the wizard is presented to the user. * * A typical use case is to make a step initially completed if it is automatically filled with some derived/predefined information. * * ### Syntax * * ```html * <aw-wizard-step awCompletedStep> * ... * </aw-wizard-step> * ``` * * An optional boolean condition can be specified: * * ```html * <aw-wizard-step [awCompletedStep]="shouldBeCompleted"> * ... * </aw-wizard-step> * ``` * * ### Example * * ```html * <aw-wizard-step stepTitle="First step" [awCompletedStep]="firstStepPrefilled"> * ... * </aw-wizard-step> * ``` */ export declare class CompletedStepDirective implements OnInit { private wizardStep; initiallyCompleted: boolean; /** * Constructor * * @param wizardStep The wizard step, which contains this [[CompletedStepDirective]] */ constructor(wizardStep: WizardStep); /** * Initialization work */ ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<CompletedStepDirective, [{ host: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<CompletedStepDirective, "[awCompletedStep]", never, { "initiallyCompleted": "awCompletedStep"; }, {}, never, never, false, never>; }