mesauth-angular 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
1
+ import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
2
2
  import { MesAuthService, NotificationDto } from './mes-auth.service';
3
3
  import { ToastService } from './toast.service';
4
4
  import { ThemeService, Theme } from './theme.service';
@@ -7,6 +7,7 @@ export declare class NotificationPanelComponent implements OnInit, OnDestroy {
7
7
  private authService;
8
8
  private toastService;
9
9
  private themeService;
10
+ notificationRead: EventEmitter<void>;
10
11
  get themeClass(): string;
11
12
  isOpen: boolean;
12
13
  notifications: NotificationDto[];
@@ -18,10 +19,10 @@ export declare class NotificationPanelComponent implements OnInit, OnDestroy {
18
19
  private loadNotifications;
19
20
  open(): void;
20
21
  close(): void;
21
- markAsRead(notificationId: string): void;
22
+ markAsRead(notificationId: string, event?: Event): void;
22
23
  markAllAsRead(): void;
23
24
  delete(notificationId: string, event: Event): void;
24
25
  formatDate(dateString: string): string;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationPanelComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<NotificationPanelComponent, "ma-notification-panel", never, {}, {}, never, never, true>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationPanelComponent, "ma-notification-panel", never, {}, { "notificationRead": "notificationRead"; }, never, never, true>;
27
28
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mesauth-angular",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Angular helper library to connect to a backend API and SignalR hub to surface the current logged-in user and incoming notifications with dark/light theme support",
5
5
  "main": "dist/fesm2015/mesauth-angular.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -17,7 +17,7 @@ export declare class UserProfileComponent implements OnInit, OnDestroy {
17
17
  constructor(authService: MesAuthService, router: Router, themeService: ThemeService);
18
18
  ngOnInit(): void;
19
19
  ngOnDestroy(): void;
20
- private loadUnreadCount;
20
+ loadUnreadCount(): void;
21
21
  getAvatarUrl(user: IUser): string;
22
22
  getLastNameInitial(user: IUser): string;
23
23
  toggleDropdown(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mesauth-angular",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Angular helper library to connect to a backend API and SignalR hub to surface the current logged-in user and incoming notifications with dark/light theme support",
5
5
  "main": "dist/fesm2015/mesauth-angular.mjs",
6
6
  "types": "dist/index.d.ts",