UNPKG

2 kBTypeScriptView Raw
1import { TemplateRef } from '@angular/core';
2import { NbStepperComponent } from './stepper.component';
3import { NbBooleanInput } from '../helpers';
4import * as i0 from "@angular/core";
5/**
6 * Component intended to be used within the `<nb-stepper>` component.
7 * Container for a step
8 */
9export declare class NbStepComponent {
10 protected stepper: NbStepperComponent;
11 /**
12 * Step content
13 *
14 * @type {TemplateRef}
15 */
16 content: TemplateRef<any>;
17 /**
18 * Top level abstract control of the step
19 */
20 stepControl?: {
21 valid: boolean | null;
22 reset: () => void;
23 };
24 /**
25 * Step label
26 *
27 * @type {string|TemplateRef<any>}
28 */
29 label: string | TemplateRef<any>;
30 /**
31 * Whether step will be displayed in wizard
32 *
33 * @type {boolean}
34 */
35 get hidden(): boolean;
36 set hidden(value: boolean);
37 protected _hidden: boolean;
38 static ngAcceptInputType_hidden: NbBooleanInput;
39 /**
40 * Check that label is a TemplateRef.
41 *
42 * @return boolean
43 * */
44 get isLabelTemplate(): boolean;
45 /**
46 * Whether step is marked as completed.
47 *
48 * @type {boolean}
49 */
50 get completed(): boolean;
51 set completed(value: boolean);
52 protected _completed: boolean;
53 static ngAcceptInputType_completed: NbBooleanInput;
54 protected get isCompleted(): boolean;
55 interacted: boolean;
56 constructor(stepper: any);
57 /**
58 * Mark step as selected
59 * */
60 select(): void;
61 /**
62 * Reset step and stepControl state
63 * */
64 reset(): void;
65 static ɵfac: i0.ɵɵFactoryDeclaration<NbStepComponent, never>;
66 static ɵcmp: i0.ɵɵComponentDeclaration<NbStepComponent, "nb-step", never, { "stepControl": { "alias": "stepControl"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "completed": { "alias": "completed"; "required": false; }; }, {}, never, ["*"], false, never>;
67}