import { AfterViewInit, OnInit } from '@angular/core'; import { BaseComponent, DateService, MenuService, MessageService } from '@itix/core'; import { ButtonGroupModel } from '../../../common/button/models/button-group.model'; import { NotificationModel } from '../../models/notification.model'; import { NotificationCenterService } from '../../services/notification-center.service'; import { NotificationsStorage } from '../../services/storages/notifications.storage'; import * as i0 from "@angular/core"; /** * Central de notificações (Veja: #ixsee[p:abstractions, i:BaseComponent, l:core]). */ export declare class NotificationCenterComponent extends BaseComponent implements OnInit, AfterViewInit { private dateService; private menuService; private messageService; private notificationCenterService; private notificationsStorage; /** * Indica se está no modo central. */ isInCentral: boolean; /** * Indica se tem barra superior. */ hasTopBar: boolean; /** * Ações (Veja: #ixsee[p:common/button/models, i:ButtonGroupModel]). */ actions: ButtonGroupModel; /** * Lista de notificações de hoje exibidas ao usuário (Veja: #ixsee[p:layouts/models, i:NotificationModel]). */ todayNotifications: NotificationModel[]; /** * Lista de notificações de ontem exibidas ao usuário (Veja: #ixsee[p:layouts/models, i:NotificationModel]). */ yesterdayNotifications: NotificationModel[]; /** * Lista de notificações mais antigas exibidas ao usuário (Veja: #ixsee[p:layouts/models, i:NotificationModel]). */ olderNotifications: NotificationModel[]; /** * Indica se a central de notificações está aberta. */ isNotificationCenterOpen: boolean; /** * Obtém o subtítulo. */ get subtitle(): string; private newNotificationsCount; private now; private yesterday; constructor(dateService: DateService, menuService: MenuService, messageService: MessageService, notificationCenterService: NotificationCenterService, notificationsStorage: NotificationsStorage); ngOnInit(): void; ngAfterViewInit(): void; /** * Ação executada ao clicar na notificação. * @param notification Notificação (Veja: #ixsee[p:layouts/models, i:NotificationModel]). */ onClick(notification: NotificationModel): void; /** * Remove o item informado da lista. * @param id ID da notificação. */ remove(id: string): void; /** * Apaga a lista de notificações. */ clearAll(): void; /** * Obtém há quanto tempo a mensagem foi recebida. * @param notification Notificação (Veja: #ixsee[p:layouts/models, i:NotificationModel]). */ getTimeAgo(notification: NotificationModel): string; private loadNotifications; private setupActions; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }