UNPKG

@anglr/notifications

Version:
54 lines 2.14 kB
import { EventEmitter, ChangeDetectorRef } from '@angular/core'; import { Notification } from '@anglr/common'; import { Dictionary } from '@jscrpt/common'; import { NotificationMessage, NotificationMessageCss, NotificationMessageOptions } from '../../common/notifications.interface'; import * as i0 from "@angular/core"; /** * Notification message component that represents simple message */ export declare class NotificationMessageComponent implements NotificationMessage<NotificationMessageCss, NotificationMessageOptions<NotificationMessageCss>> { protected changeDetector: ChangeDetectorRef; /** * Item holding notification information */ protected ɵitem: Notification | undefined | null; /** * Represents notification options instance */ protected ɵoptions: NotificationMessageOptions<NotificationMessageCss>; /** * Object representing css class definition */ protected classObj: Dictionary<boolean>; /** * Represents notification that will be displayed */ get item(): Notification; set item(item: Notification); /** * Options used for notification message */ get options(): NotificationMessageOptions<NotificationMessageCss>; set options(options: Partial<NotificationMessageOptions<NotificationMessageCss>>); /** * Occurs when notification is closed by user */ closed: EventEmitter<Notification>; constructor(changeDetector: ChangeDetectorRef, options?: NotificationMessageOptions<NotificationMessageCss>); /** * Used for invoking 'closing' event * @internal */ close(): void; /** * Explicitly runs invalidation of content (change detection) */ invalidateVisuals(): void; /** * Initialize component from provided options */ protected init(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NotificationMessageComponent, [null, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<NotificationMessageComponent, "notification", never, {}, {}, never, never, true, never>; } //# sourceMappingURL=notificationMessage.component.d.ts.map