UNPKG

2.9 kBTypeScriptView Raw
1import * as i0 from "@angular/core";
2/**
3 * A directive that provides feedback on the progress of a workflow or an action.
4 */
5export declare class NgbProgressbar {
6 private _config;
7 stacked: NgbProgressbarStacked | null;
8 private _max;
9 /**
10 * The maximal value to be displayed in the progress bar.
11 *
12 * Should be a positive number. Will default to 100 otherwise.
13 */
14 set max(max: number);
15 get max(): number;
16 /**
17 * If `true`, the stripes on the progress bar are animated.
18 *
19 * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.
20 */
21 animated: boolean;
22 /**
23 * The accessible progress bar name.
24 *
25 * @since 13.1.0
26 */
27 ariaLabel: string;
28 /**
29 * If `true`, the progress bars will be displayed as striped.
30 */
31 striped: boolean;
32 /**
33 * If `true`, the current percentage will be shown in the `xx%` format.
34 */
35 showValue: boolean;
36 /**
37 * Optional text variant type of the progress bar.
38 *
39 * Supports types based on Bootstrap background color variants, like:
40 * `"success"`, `"info"`, `"warning"`, `"danger"`, `"primary"`, `"secondary"`, `"dark"` and so on.
41 *
42 * @since 5.2.0
43 */
44 textType: string;
45 /**
46 * The type of the progress bar.
47 *
48 * Supports types based on Bootstrap background color variants, like:
49 * `"success"`, `"info"`, `"warning"`, `"danger"`, `"primary"`, `"secondary"`, `"dark"` and so on.
50 */
51 type: string;
52 /**
53 * The current value for the progress bar.
54 *
55 * Should be in the `[0, max]` range.
56 */
57 value: number;
58 /**
59 * The height of the progress bar.
60 *
61 * Accepts any valid CSS height values, ex. `"2rem"`
62 */
63 height: string;
64 constructor();
65 getValue(): number;
66 getPercentValue(): number;
67 static ɵfac: i0.ɵɵFactoryDeclaration<NgbProgressbar, never>;
68 static ɵcmp: i0.ɵɵComponentDeclaration<NgbProgressbar, "ngb-progressbar", never, { "max": { "alias": "max"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showValue": { "alias": "showValue"; "required": false; }; "textType": { "alias": "textType"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": true; }; "height": { "alias": "height"; "required": false; }; }, {}, never, ["*"], true, never>;
69}
70/**
71 * A directive that allow to stack progress bars.
72 *
73 * @since 16.0.0
74 */
75export declare class NgbProgressbarStacked {
76 static ɵfac: i0.ɵɵFactoryDeclaration<NgbProgressbarStacked, never>;
77 static ɵcmp: i0.ɵɵComponentDeclaration<NgbProgressbarStacked, "ngb-progressbar-stacked", never, {}, {}, never, ["*"], true, never>;
78}