1 | import { ComponentRef } from '@angular/core';
|
2 | import { Observable, ReplaySubject, Subject } from 'rxjs';
|
3 | import { NbWindowComponent } from './window.component';
|
4 | import { NbWindowConfig, NbWindowState, NbWindowStateChange } from './window.options';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare class NbWindowRef<T = any, R = any> {
|
12 | config: NbWindowConfig;
|
13 | componentRef: ComponentRef<NbWindowComponent>;
|
14 | componentInstance: T;
|
15 | protected prevStateValue: NbWindowState;
|
16 | protected stateValue: NbWindowState;
|
17 | |
18 |
|
19 |
|
20 | get state(): NbWindowState;
|
21 | set state(newState: NbWindowState);
|
22 | protected stateChange$: ReplaySubject<NbWindowStateChange>;
|
23 | |
24 |
|
25 |
|
26 | get stateChange(): Observable<NbWindowStateChange>;
|
27 | protected _closed: boolean;
|
28 | protected closed$: Subject<R>;
|
29 | |
30 |
|
31 |
|
32 | get onClose(): Observable<R>;
|
33 | constructor(config: NbWindowConfig);
|
34 | /**
|
35 | * Minimize window.
|
36 | */
|
37 | minimize(): void;
|
38 | /**
|
39 | * Maximize window.
|
40 | */
|
41 | maximize(): void;
|
42 | /**
|
43 | * Set window on top.
|
44 | */
|
45 | fullScreen(): void;
|
46 | toPreviousState(): void;
|
47 | /**
|
48 | * Closes window.
|
49 | * */
|
50 | close(res?: R): void;
|
51 | }
|