import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, EventEmitter, Injector, NgZone, OnInit, ViewContainerRef } from '@angular/core'; import { BzBaseComponent } from '../base/base.component'; import { BzToastrConfig } from './toastr.config'; export declare class BzToastrContainerComponent { private resolver; private injector; private ngZone; private cd; constructor(resolver: ComponentFactoryResolver, injector: Injector, ngZone: NgZone, cd: ChangeDetectorRef); viewToast: ViewContainerRef; set componentToAttach(value: any); text: string; config: BzToastrConfig; textList: string[]; /** * Creates toast component. * * @author Federico Gamabrdella * @param {any} value */ private _createToastComponent; /** * Pass input values to Toast component. * * @author Federico Gambardella * @param {ComponentRef} componentRef */ private _passInputToToaster; /** * Checks if a toast whit same text is already in the screen. * * @author Federico Gambardella */ private _isAlreadyToast; /** * Add new toast. * * @author Federico Gambardella * @param value */ private _addNewToast; /** * Attach toast to container depending on position in input. * * @author Federico Gambardella * @param componentRef * @param position */ private _attachToastByPosition; } export declare class BzToastrComponent extends BzBaseComponent implements OnInit { private cd; constructor(cd: ChangeDetectorRef); toastText: string; componentRef: ComponentRef; config: BzToastrConfig; listText: string[]; textListchange: EventEmitter; slideOut: string; duration: number; destroyByClick: boolean; ANIMATION_DURATION: number; toastIcon: string; toastSeverityClass: string; ngOnInit(): void; /** * Set config object at int * * @author Federico Gambardella */ private _setConfigPropertyAtInit; /** * Sets icon and color toast by severity. * * @author Federico Gambardella * @param {Severity} severity */ private _toastConfigBySeverity; /** * Destroy component * * @author Federico Gambardella */ destroyComponent(): void; /** * Start silde out animation. * * @author Federico Gambardella */ startSlideOutAnimation(): void; /** * Destroy toast by click on it. * * @author Federico Gambardella */ destroyToastByClick(): void; /** * Destroy component automatically. * * @author Federico Gambardella */ private _destroyComponentAutomatically; /** * Delete first item that check the condition. * * @author Federico Gambardella * @param {string[]} list * @param {string} matchItem */ private _deleteFirstMatchingItem; }