UNPKG

@anglr/notifications

Version:
51 lines 1.95 kB
import { OnDestroy, ChangeDetectorRef, OnInit } from '@angular/core'; import { Notification } from '@anglr/common'; import { Subscription } from 'rxjs'; import { NotificationsOptions } from '../../common/notifications.interface'; import { LocalNotificationsService } from '../../common/notifications.service'; import * as i0 from "@angular/core"; /** * Notifications component for local messages */ export declare class NotificationsComponent implements OnInit, OnDestroy { protected service: LocalNotificationsService; protected changeDetector: ChangeDetectorRef; protected platformId: object; /** * Subscription all subscriptions created during initialization */ protected initSubscriptions: Subscription; /** * Represents notification options instance */ protected ɵoptions: NotificationsOptions; /** * Options used for notification message */ get options(): NotificationsOptions; set options(options: Partial<NotificationsOptions>); /** * Array of displayed notifications - displayed set * @internal */ notifications: readonly Notification[]; constructor(service: LocalNotificationsService, changeDetector: ChangeDetectorRef, platformId: object, options?: NotificationsOptions); /** * Initialize component */ ngOnInit(): void; /** * Called when component is destroyed */ ngOnDestroy(): void; /** * Removes notification item from list * @param item - Item to be removed * * @internal */ removeItem(item: Notification): void; static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsComponent, [null, null, null, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsComponent, "notifications", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>; } //# sourceMappingURL=notifications.component.d.ts.map