| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import { ModuleWithProviders } from '@angular/compiler/src/core';
- import { ApplicationRef, OnDestroy } from '@angular/core';
- import { SafeHtml } from '@angular/platform-browser';
- import { GlobalConfig, IndividualConfig, ToastPackage } from './toastr-config';
- import { ToastrService } from './toastr.service';
- export declare class ToastNoAnimation implements OnDestroy {
- protected toastrService: ToastrService;
- toastPackage: ToastPackage;
- protected appRef: ApplicationRef;
- message?: string | SafeHtml | null;
- title?: string;
- options: IndividualConfig;
- duplicatesCount: number;
- originalTimeout: number;
- /** width of progress bar */
- width: number;
- /** a combination of toast type and options.toastClass */
- toastClasses: string;
- /** hides component when waiting to be displayed */
- readonly displayStyle: string;
- /** controls animation */
- state: string;
- private timeout;
- private intervalId;
- private hideTime;
- private sub;
- private sub1;
- private sub2;
- private sub3;
- constructor(toastrService: ToastrService, toastPackage: ToastPackage, appRef: ApplicationRef);
- ngOnDestroy(): void;
- /**
- * activates toast and sets timeout
- */
- activateToast(): void;
- /**
- * updates progress bar width
- */
- updateProgress(): void;
- resetTimeout(): void;
- /**
- * tells toastrService to remove this toast after animation time
- */
- remove(): void;
- tapToast(): void;
- stickAround(): void;
- delayedHideToast(): void;
- }
- export declare const DefaultNoAnimationsGlobalConfig: GlobalConfig;
- export declare class ToastNoAnimationModule {
- static forRoot(config?: Partial<GlobalConfig>): ModuleWithProviders;
- }
|