Componenti
Notifications
Widget notifiche — alert, annunci aziendali e centro notifiche unificato.
I widget notifications gestiscono comunicazioni interne e alert di sistema. Tutti estendono BaseWidgetProps e supportano l'event bus tramite useWidgetEvent per azioni come dismiss e mark-as-read.
AlertsWidget
Lista alert con filtri per severita.
| Prop | Tipo | Descrizione |
|---|---|---|
alerts | readonly Alert[] | Alert da visualizzare |
minSeverity | AlertSeverity | Mostra solo alert con severita >= |
showDismissed | boolean | Mostra alert gia ignorati |
Eventi emessi: alertDismiss, alertAction (vedi composable useWidgetEvent).
AnnouncementsWidget
Lista annunci aziendali con autore e data.
| Prop | Tipo | Descrizione |
|---|---|---|
announcements | readonly Announcement[] | Annunci |
maxItems | number | Numero massimo da mostrare |
showAuthor | boolean | Mostra nome e avatar autore |
Eventi emessi: announcementClick.
NotificationsCenter
Centro notifiche con raggruppamento per tipo e contatore non lette.
| Prop | Tipo | Descrizione |
|---|---|---|
groups | readonly NotificationGroup[] | Gruppi di notifiche |
unreadCount | number | Conteggio non lette |
showMarkAllRead | boolean | Mostra pulsante "Segna tutto come letto" |
Eventi emessi: notificationRead, notificationAction, markAllRead.
<PzetaDashboard :config="{ widgets: [{
id: 'notif', type: WidgetType.NotificationsCenter, width: 4, height: 4,
props: { groups, unreadCount: 12, showMarkAllRead: true }
}] }" />