1 | import { Observable } from 'rxjs/Observable';
|
2 | export declare enum SlimLoadingBarEventType {
|
3 | PROGRESS = 0,
|
4 | HEIGHT = 1,
|
5 | COLOR = 2,
|
6 | VISIBLE = 3,
|
7 | }
|
8 | export declare class SlimLoadingBarEvent {
|
9 | type: SlimLoadingBarEventType;
|
10 | value: any;
|
11 | constructor(type: SlimLoadingBarEventType, value: any);
|
12 | }
|
13 | /**
|
14 | * SlimLoadingBar service helps manage Slim Loading bar on the top of screen or parent component
|
15 | */
|
16 | export declare class SlimLoadingBarService {
|
17 | private _progress;
|
18 | private _height;
|
19 | private _color;
|
20 | private _visible;
|
21 | private _intervalCounterId;
|
22 | interval: number;
|
23 | private eventSource;
|
24 | events: Observable<SlimLoadingBarEvent>;
|
25 | constructor();
|
26 | progress: number;
|
27 | height: string;
|
28 | color: string;
|
29 | visible: boolean;
|
30 | private emitEvent(event);
|
31 | start(onCompleted?: Function): void;
|
32 | stop(): void;
|
33 | reset(): void;
|
34 | complete(): void;
|
35 | }
|