inet-ui
Version:
iNet Angular UI === [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][downloads-url]
59 lines (58 loc) • 1.89 kB
TypeScript
import { NgZone, OnDestroy } from '@angular/core';
import { IndividualConfig, ToastPackage } from './toastr-config';
import { ToastrService } from './toastr.service';
import * as i0 from "@angular/core";
export declare class Toast implements OnDestroy {
protected toastrService: ToastrService;
toastPackage: ToastPackage;
protected ngZone?: NgZone | undefined;
message?: string | 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;
/** controls animation */
state: {
value: string;
params: {
easeTime: string | number;
easing: string;
};
};
/** hides component when waiting to be displayed */
get displayStyle(): string | undefined;
private timeout;
private intervalId;
private hideTime;
private sub;
private sub1;
private sub2;
private sub3;
constructor(toastrService: ToastrService, toastPackage: ToastPackage, ngZone?: NgZone | undefined);
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;
outsideTimeout(func: () => any, timeout: number): void;
outsideInterval(func: () => any, timeout: number): void;
private runInsideAngular;
static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "[toast-component]", never, {}, {}, never, never, false, never>;
}