angular2-advanced-notifications
Version:
UI and native notifications library for Angular
44 lines (43 loc) • 1.48 kB
TypeScript
import { AnBusService } from '../anBus.service';
import { Alert } from './alert.type';
import { AnAlertItemsByPosition } from './alertItemsByPosition.type';
export declare class AnAlert {
anBus: AnBusService;
private globalAlertConfig;
private browserViewports;
private showAlertSubscription;
private hideAlertSubscription;
private hideAllAlertsSubscription;
private hideAlertsSubscription;
containerStates: {
left: boolean;
center: boolean;
right: boolean;
};
containerDirections: {
reverseLeft: boolean;
reverseCenter: boolean;
reverseRight: boolean;
};
items: AnAlertItemsByPosition;
defaults: Alert;
constructor(anBus: AnBusService);
onClose(id: string): void;
private _subscribeToBusShowHandler(config);
private _subscribeToBusHideHandler(id);
private _subscribeToBusHideAllHandler();
private _subscribeToBusHideAlertsHandler(alertsIds);
private _subscribeToBus();
private _updateItems(config);
private _hideAlerts(alertsIds);
private _hideAllAlerts();
private _notifyUpdateListeners();
private _updateBrowserViewports();
private _updateContainerState();
private _getShortVerticalPositionIdentifier(item);
private _addItem(item);
private _removeItem(id);
private _findItemById(id);
private _setContainerDirections();
private _getAnimationState(position);
}