mesauth-angular 1.11.0 → 1.12.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mesauth-angular",
3
- "version": "1.11.0",
3
+ "version": "1.12.1",
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
  "keywords": [
6
6
  "angular",
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { InjectionToken, EnvironmentProviders, AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
2
+ import { InjectionToken, EnvironmentProviders, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
3
3
  import { HttpClient, HttpInterceptorFn, HttpResponse, HttpParams } from '@angular/common/http';
4
4
  import { Observable, OperatorFunction } from 'rxjs';
5
5
  import { Router } from '@angular/router';
@@ -231,6 +231,9 @@ declare class MaAvatarComponent {
231
231
  }
232
232
 
233
233
  declare class UserProfileComponent {
234
+ inputAvatarShape: _angular_core.InputSignal<"circle" | "rounded" | "rectangle">;
235
+ showBell: _angular_core.InputSignal<boolean>;
236
+ showApproval: _angular_core.InputSignal<boolean>;
234
237
  notificationClick: _angular_core.OutputEmitterRef<void>;
235
238
  approvalClick: _angular_core.OutputEmitterRef<void>;
236
239
  get themeClass(): string;
@@ -259,10 +262,11 @@ declare class UserProfileComponent {
259
262
  onDocumentClick(event: Event): void;
260
263
  onLogin(): void;
261
264
  onViewProfile(): void;
265
+ private openInNewTabIfSameOrigin;
262
266
  onLogout(): void;
263
267
  onNotificationClick(): void;
264
268
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserProfileComponent, never>;
265
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserProfileComponent, "ma-user-profile", never, {}, { "notificationClick": "notificationClick"; "approvalClick": "approvalClick"; }, never, ["*"], true, never>;
269
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserProfileComponent, "ma-user-profile", never, { "inputAvatarShape": { "alias": "inputAvatarShape"; "required": false; "isSignal": true; }; "showBell": { "alias": "showBell"; "required": false; "isSignal": true; }; "showApproval": { "alias": "showApproval"; "required": false; "isSignal": true; }; }, { "notificationClick": "notificationClick"; "approvalClick": "approvalClick"; }, never, ["*"], true, never>;
266
270
  }
267
271
 
268
272
  declare enum ApprovalStepMode {
@@ -488,14 +492,38 @@ declare class MaApprovalPanelComponent {
488
492
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaApprovalPanelComponent, "ma-approval-panel", never, {}, { "approvalActioned": "approvalActioned"; }, never, never, true, never>;
489
493
  }
490
494
 
495
+ type Theme = 'light' | 'dark';
496
+ declare class ThemeService implements OnDestroy {
497
+ private readonly _currentTheme;
498
+ readonly currentTheme: _angular_core.Signal<Theme>;
499
+ /** Observable kept for backward compatibility */
500
+ readonly currentTheme$: Observable<Theme>;
501
+ private observer;
502
+ constructor();
503
+ ngOnDestroy(): void;
504
+ private detectTheme;
505
+ private startWatching;
506
+ private stopWatching;
507
+ get currentThemeValue(): Theme;
508
+ setTheme(theme: Theme): void;
509
+ refreshTheme(): void;
510
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
511
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
512
+ }
513
+
491
514
  declare class MaUserComponent implements AfterViewInit {
492
515
  userProfile?: UserProfileComponent;
493
516
  approvalPanel: MaApprovalPanelComponent;
517
+ avatarShape: _angular_core.InputSignal<"circle" | "rounded" | "rectangle">;
518
+ showBell: _angular_core.InputSignal<boolean>;
519
+ showApproval: _angular_core.InputSignal<boolean>;
520
+ theme: _angular_core.InputSignal<"light" | "dark">;
521
+ themeService: ThemeService;
494
522
  ngAfterViewInit(): void;
495
523
  onNotificationRead(): void;
496
524
  onApprovalActioned(): void;
497
525
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaUserComponent, never>;
498
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaUserComponent, "ma-user", never, {}, {}, never, ["*"], true, never>;
526
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaUserComponent, "ma-user", never, { "avatarShape": { "alias": "avatarShape"; "required": false; "isSignal": true; }; "showBell": { "alias": "showBell"; "required": false; "isSignal": true; }; "showApproval": { "alias": "showApproval"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
499
527
  }
500
528
 
501
529
  declare class NotificationBadgeComponent {
@@ -582,25 +610,6 @@ declare class ToastService {
582
610
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastService>;
583
611
  }
584
612
 
585
- type Theme = 'light' | 'dark';
586
- declare class ThemeService implements OnDestroy {
587
- private readonly _currentTheme;
588
- readonly currentTheme: _angular_core.Signal<Theme>;
589
- /** Observable kept for backward compatibility */
590
- readonly currentTheme$: Observable<Theme>;
591
- private observer;
592
- constructor();
593
- ngOnDestroy(): void;
594
- private detectTheme;
595
- private startWatching;
596
- private stopWatching;
597
- get currentThemeValue(): Theme;
598
- setTheme(theme: Theme): void;
599
- refreshTheme(): void;
600
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
601
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
602
- }
603
-
604
613
  declare class MaApprovalService {
605
614
  private apiBase;
606
615
  private http;
@@ -738,7 +747,7 @@ interface MaUiManifest {
738
747
  features?: Record<string, boolean>;
739
748
  }
740
749
  /** Current installed package version — keep in sync with package.json. */
741
- declare const PACKAGE_VERSION = "1.11.0";
750
+ declare const PACKAGE_VERSION = "1.12.1";
742
751
  /**
743
752
  * Provides server-driven UI configuration loaded from the hosted manifest.
744
753
  * Components read `labels()` and `features()` signals instead of hardcoded strings.