import * as i2 from '@angular/cdk/stepper'; import { CdkStepper, CdkStep, CdkStepHeader, CdkStepperNext, CdkStepperPrevious, CdkStepLabel } from '@angular/cdk/stepper'; import * as i0 from '@angular/core'; import { AfterContentInit, QueryList, OnChanges, OnDestroy, ChangeDetectorRef, ElementRef, DoCheck, AfterViewInit, AfterViewChecked } from '@angular/core'; import { Directionality } from '@angular/cdk/bidi'; import { FormControl, FormGroupDirective, NgForm } from '@angular/forms'; import { ErrorStateMatcher } from '@aposin/ng-aquila/utils'; import { Subject } from 'rxjs'; import { FocusMonitor } from '@angular/cdk/a11y'; import { BooleanInput } from '@angular/cdk/coercion'; import * as i1 from '@angular/common'; import * as i3 from '@aposin/ng-aquila/icon'; import * as i4 from '@aposin/ng-aquila/progressbar'; import * as i5 from '@aposin/ng-aquila/base'; declare class NxStepComponent extends CdkStep implements ErrorStateMatcher, OnChanges, OnDestroy { readonly stepper: NxProgressStepperDirective; private readonly _errorStateMatcher; constructor(stepper: NxProgressStepperDirective, _errorStateMatcher: ErrorStateMatcher); private _stepControl; /** The top level abstract control of the step. */ stepControl: any; private isInteracted; readonly _destroyed: Subject; wasCompleted: boolean; /** Custom error state matcher that checks for validity of the step form. */ isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; ngOnChanges(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** @docs-private */ declare class NxProgressStepperDirective extends CdkStepper implements AfterContentInit { private readonly _cdr; /** Full list of steps inside the stepper, including inside nested steppers */ _steps: QueryList; /** Steps that belong to the current stepper, excluding ones from nested steppers. */ readonly steps: QueryList; _stepHeader: QueryList; /** Sets the label on the left side showing the current step label. Used for mobile viewports. */ currentStepLabel: string; constructor(_cdr: ChangeDetectorRef, _dir: Directionality | null, _elementRef: ElementRef); ngAfterContentInit(): void; /** @docs-private */ get hasPrevious(): boolean; /** @docs-private */ get hasNext(): boolean; /** @docs-private */ get count(): number; /** @docs-private */ get currentStep(): NxStepComponent | null; /** @docs-private */ get nextStep(): NxStepComponent | null; /** @docs-private */ get currentLabel(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NxStepperNextDirective extends CdkStepperNext implements DoCheck { private readonly _cdr; /** @docs-private */ disabled: boolean; constructor(_stepper: CdkStepper, _cdr: ChangeDetectorRef); /** * Implemented to prevent changed after checked error after stepper init. * When the stepper initializes the directive is checked first before * the stepper can check its content thus it doesn't know about it's children yet * so _stepper.hasNext returns false and disables the buttons. In the same CD cycle * after the stepper has checked its contents the button needs to be enabled resulting * in the error. */ ngDoCheck(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NxStepperPreviousDirective extends CdkStepperPrevious { constructor(_stepper: CdkStepper); get stepper(): NxProgressStepperDirective; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** Direction of the multi stepper */ type NxMultiStepperDirection = 'vertical' | 'horizontal'; declare class NxMultiStepperGroupComponent { private readonly _cdr; /** @docs-private */ steps: QueryList; /** Sets the label of a group that is shown to the user. */ set label(value: string); get label(): string; private _label; constructor(_cdr: ChangeDetectorRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** @docs-private */ declare class NxMultiStepItemComponent extends CdkStepHeader implements OnDestroy, AfterViewInit { private readonly _cdr; readonly _elementRef: ElementRef; private readonly _focusMonitor; /** The direction of the step */ set direction(value: NxMultiStepperDirection); get direction(): NxMultiStepperDirection; private _direction; /** The label of the step. */ label: CdkStepLabel | string; /** Sets the selected step. */ set selected(value: BooleanInput); get selected(): boolean; private _selected; /** Sets the active step. */ set active(value: BooleanInput); get active(): boolean; private _active; set disabled(value: BooleanInput); get disabled(): boolean; private _disabled; /** Sets the last step. */ set last(value: BooleanInput); get last(): boolean; private _last; /** Sets the step completed. */ set completed(value: BooleanInput); get completed(): boolean; private _completed; /** Sets the step was completed. */ set wasCompleted(value: BooleanInput); get wasCompleted(): boolean; private _wasCompleted; set ariaControls(value: string); get ariaControls(): string; private _ariaControls; constructor(_cdr: ChangeDetectorRef, _elementRef: ElementRef, _focusMonitor: FocusMonitor); ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxMultiStepperComponent extends NxProgressStepperDirective implements OnDestroy, AfterContentInit, AfterViewChecked { /** * We need to set the `_stepHeader` property as `ViewChildren` here as it is a `ContentChildren` query in the CDK. */ _stepHeader: QueryList; /** @docs-private */ groups: QueryList; /** Sets the direction of the multi stepper. */ set direction(value: NxMultiStepperDirection); get direction(): NxMultiStepperDirection; private _direction; constructor(_cdr: ChangeDetectorRef, _dir: Directionality | null, _el: ElementRef); ngAfterViewChecked(): void; ngAfterContentInit(): void; ngOnDestroy(): void; _stepDisabled(index: number): boolean; private get _stepsInGroups(); _getIndex(step: NxStepComponent): number; _isGroupActive(groupIndex: number): boolean; _isGroupDisabled(groupIndex: number): boolean; private getGroupItemIndex; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxProgressStepperComponent extends NxProgressStepperDirective { /** Overrides the `aria-label` of the nx-progressbar. Defaults to "Progress" */ progressbarAriaLabel: string | undefined; /** Sets the `aria-labelledby` of the nx-progressbar */ progressbarAriaLabeledBy: string | undefined; /** Sets the current value/progress of the progress bar. */ set progress(value: number); get progress(): number; private _progress; constructor(_cdr: ChangeDetectorRef, _dir: Directionality | null, _el: ElementRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxSingleStepperComponent extends NxProgressStepperDirective { /** Sets the label on the right showing the next step. */ set rightLabel(v: string); get rightLabel(): string; private _rightLabel; /** Overrides the `aria-label` of the nx-progressbar. Defaults to "Progress" */ progressbarAriaLabel: string | undefined; /** Sets the `aria-labelledby` of the nx-progressbar */ progressbarAriaLabeledBy: string | undefined; /** @docs-private */ get progress(): number; /** @docs-private */ get currentLabel(): string; /** @docs-private */ get nextLabel(): string | null; constructor(_cdr: ChangeDetectorRef, _dir: Directionality | null, _el: ElementRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxProgressStepperModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NxMultiStepItemComponent, NxMultiStepperComponent, NxMultiStepperGroupComponent, NxProgressStepperComponent, NxProgressStepperDirective, NxProgressStepperModule, NxSingleStepperComponent, NxStepComponent, NxStepperNextDirective, NxStepperPreviousDirective }; export type { NxMultiStepperDirection };