1 | import { AfterContentInit, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
2 | import { Observable } from 'rxjs';
|
3 | import * as i0 from "@angular/core";
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare class NgbToastHeader {
|
11 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbToastHeader, never>;
|
12 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbToastHeader, "[ngbToastHeader]", never, {}, {}, never, never, true, never>;
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare class NgbToast implements AfterContentInit, OnChanges {
|
21 | ariaLive: string;
|
22 | private _config;
|
23 | private _zone;
|
24 | private _injector;
|
25 | private _element;
|
26 | private _timeoutID;
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | animation: boolean;
|
35 | |
36 |
|
37 |
|
38 |
|
39 | delay: number;
|
40 | |
41 |
|
42 |
|
43 |
|
44 | autohide: boolean;
|
45 | |
46 |
|
47 |
|
48 |
|
49 | header: string;
|
50 | |
51 |
|
52 |
|
53 |
|
54 | contentHeaderTpl: TemplateRef<any> | null;
|
55 | |
56 |
|
57 |
|
58 |
|
59 |
|
60 | shown: EventEmitter<void>;
|
61 | |
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 | hidden: EventEmitter<void>;
|
74 | constructor(ariaLive: string);
|
75 | ngAfterContentInit(): void;
|
76 | ngOnChanges(changes: SimpleChanges): void;
|
77 | /**
|
78 | * Triggers toast closing programmatically.
|
79 | *
|
80 | * The returned observable will emit and be completed once the closing transition has finished.
|
81 | * If the animations are turned off this happens synchronously.
|
82 | *
|
83 | * Alternatively you could listen or subscribe to the `(hidden)` output
|
84 | *
|
85 | * @since 8.0.0
|
86 | */
|
87 | hide(): Observable<void>;
|
88 | /**
|
89 | * Triggers toast opening programmatically.
|
90 | *
|
91 | * The returned observable will emit and be completed once the opening transition has finished.
|
92 | * If the animations are turned off this happens synchronously.
|
93 | *
|
94 | * Alternatively you could listen or subscribe to the `(shown)` output
|
95 | *
|
96 | * @since 8.0.0
|
97 | */
|
98 | show(): Observable<void>;
|
99 | private _init;
|
100 | private _clearTimeout;
|
101 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbToast, [{ attribute: "aria-live"; }]>;
|
102 | static ɵcmp: i0.ɵɵComponentDeclaration<NgbToast, "ngb-toast", ["ngbToast"], { "animation": { "alias": "animation"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "autohide": { "alias": "autohide"; "required": false; }; "header": { "alias": "header"; "required": false; }; }, { "shown": "shown"; "hidden": "hidden"; }, ["contentHeaderTpl"], ["*"], true, never>;
|
103 | }
|