UNPKG

2.23 kBTypeScriptView Raw
1import { ModuleWithProviders } from '@angular/core';
2import { ApplicationRef, OnDestroy } from '@angular/core';
3import { GlobalConfig, IndividualConfig, ToastPackage } from './toastr-config';
4import { ToastrService } from './toastr.service';
5import * as i0 from "@angular/core";
6import * as i1 from "@angular/common";
7export declare class ToastNoAnimation implements OnDestroy {
8 protected toastrService: ToastrService;
9 toastPackage: ToastPackage;
10 protected appRef: ApplicationRef;
11 message?: string | null;
12 title?: string;
13 options: IndividualConfig;
14 duplicatesCount: number;
15 originalTimeout: number;
16 /** width of progress bar */
17 width: number;
18 /** a combination of toast type and options.toastClass */
19 toastClasses: string;
20 /** hides component when waiting to be displayed */
21 get displayStyle(): string;
22 /** controls animation */
23 state: string;
24 private timeout;
25 private intervalId;
26 private hideTime;
27 private sub;
28 private sub1;
29 private sub2;
30 private sub3;
31 constructor(toastrService: ToastrService, toastPackage: ToastPackage, appRef: ApplicationRef);
32 ngOnDestroy(): void;
33 /**
34 * activates toast and sets timeout
35 */
36 activateToast(): void;
37 /**
38 * updates progress bar width
39 */
40 updateProgress(): void;
41 resetTimeout(): void;
42 /**
43 * tells toastrService to remove this toast after animation time
44 */
45 remove(): void;
46 tapToast(): void;
47 stickAround(): void;
48 delayedHideToast(): void;
49 static ɵfac: i0.ɵɵFactoryDeclaration<ToastNoAnimation, never>;
50 static ɵcmp: i0.ɵɵComponentDeclaration<ToastNoAnimation, "[toast-component]", never, {}, {}, never, never>;
51}
52export declare const DefaultNoAnimationsGlobalConfig: GlobalConfig;
53export declare class ToastNoAnimationModule {
54 static forRoot(config?: Partial<GlobalConfig>): ModuleWithProviders<ToastNoAnimationModule>;
55 static ɵfac: i0.ɵɵFactoryDeclaration<ToastNoAnimationModule, never>;
56 static ɵmod: i0.ɵɵNgModuleDeclaration<ToastNoAnimationModule, [typeof ToastNoAnimation], [typeof i1.CommonModule], [typeof ToastNoAnimation]>;
57 static ɵinj: i0.ɵɵInjectorDeclaration<ToastNoAnimationModule>;
58}