mesauth-angular 1.12.0 → 1.15.0
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.
|
|
3
|
+
"version": "1.15.0",
|
|
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,
|
|
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';
|
|
@@ -47,6 +47,8 @@ interface IUser {
|
|
|
47
47
|
phoneNumber?: string;
|
|
48
48
|
department?: string;
|
|
49
49
|
position?: string;
|
|
50
|
+
givenTitle?: string | null;
|
|
51
|
+
givenColor?: string | null;
|
|
50
52
|
tokenVersion?: string;
|
|
51
53
|
permEndpoint?: string;
|
|
52
54
|
perms?: Set<string>;
|
|
@@ -247,6 +249,7 @@ declare class UserProfileComponent {
|
|
|
247
249
|
readonly avatarShape: _angular_core.Signal<"circle" | "rounded" | "rectangle" | "portrait">;
|
|
248
250
|
readonly avatarFrame: _angular_core.Signal<string>;
|
|
249
251
|
readonly avatarRatio: _angular_core.Signal<"ar-11" | "ar-43" | "ar-169">;
|
|
252
|
+
readonly givenStyle: _angular_core.Signal<string>;
|
|
250
253
|
private readonly authService;
|
|
251
254
|
private readonly router;
|
|
252
255
|
private readonly themeService;
|
|
@@ -262,6 +265,7 @@ declare class UserProfileComponent {
|
|
|
262
265
|
onDocumentClick(event: Event): void;
|
|
263
266
|
onLogin(): void;
|
|
264
267
|
onViewProfile(): void;
|
|
268
|
+
private openInNewTabIfSameOrigin;
|
|
265
269
|
onLogout(): void;
|
|
266
270
|
onNotificationClick(): void;
|
|
267
271
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
|
@@ -491,17 +495,41 @@ declare class MaApprovalPanelComponent {
|
|
|
491
495
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaApprovalPanelComponent, "ma-approval-panel", never, {}, { "approvalActioned": "approvalActioned"; }, never, never, true, never>;
|
|
492
496
|
}
|
|
493
497
|
|
|
498
|
+
type Theme = 'light' | 'dark';
|
|
499
|
+
declare class ThemeService implements OnDestroy {
|
|
500
|
+
private readonly _currentTheme;
|
|
501
|
+
readonly currentTheme: _angular_core.Signal<Theme>;
|
|
502
|
+
/** Observable kept for backward compatibility */
|
|
503
|
+
readonly currentTheme$: Observable<Theme>;
|
|
504
|
+
private observer;
|
|
505
|
+
private _settedTheme;
|
|
506
|
+
constructor();
|
|
507
|
+
ngOnDestroy(): void;
|
|
508
|
+
private detectTheme;
|
|
509
|
+
private startWatching;
|
|
510
|
+
private stopWatching;
|
|
511
|
+
get currentThemeValue(): Theme;
|
|
512
|
+
setTheme(theme: Theme): void;
|
|
513
|
+
setFixTheme(theme: Theme): void;
|
|
514
|
+
refreshTheme(): void;
|
|
515
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
516
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
517
|
+
}
|
|
518
|
+
|
|
494
519
|
declare class MaUserComponent implements AfterViewInit {
|
|
495
520
|
userProfile?: UserProfileComponent;
|
|
496
521
|
approvalPanel: MaApprovalPanelComponent;
|
|
497
522
|
avatarShape: _angular_core.InputSignal<"circle" | "rounded" | "rectangle">;
|
|
498
523
|
showBell: _angular_core.InputSignal<boolean>;
|
|
499
524
|
showApproval: _angular_core.InputSignal<boolean>;
|
|
525
|
+
theme: _angular_core.InputSignal<"light" | "dark">;
|
|
526
|
+
themeService: ThemeService;
|
|
527
|
+
constructor();
|
|
500
528
|
ngAfterViewInit(): void;
|
|
501
529
|
onNotificationRead(): void;
|
|
502
530
|
onApprovalActioned(): void;
|
|
503
531
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaUserComponent, never>;
|
|
504
|
-
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; }; }, {}, never, ["*"], true, never>;
|
|
532
|
+
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>;
|
|
505
533
|
}
|
|
506
534
|
|
|
507
535
|
declare class NotificationBadgeComponent {
|
|
@@ -588,25 +616,6 @@ declare class ToastService {
|
|
|
588
616
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastService>;
|
|
589
617
|
}
|
|
590
618
|
|
|
591
|
-
type Theme = 'light' | 'dark';
|
|
592
|
-
declare class ThemeService implements OnDestroy {
|
|
593
|
-
private readonly _currentTheme;
|
|
594
|
-
readonly currentTheme: _angular_core.Signal<Theme>;
|
|
595
|
-
/** Observable kept for backward compatibility */
|
|
596
|
-
readonly currentTheme$: Observable<Theme>;
|
|
597
|
-
private observer;
|
|
598
|
-
constructor();
|
|
599
|
-
ngOnDestroy(): void;
|
|
600
|
-
private detectTheme;
|
|
601
|
-
private startWatching;
|
|
602
|
-
private stopWatching;
|
|
603
|
-
get currentThemeValue(): Theme;
|
|
604
|
-
setTheme(theme: Theme): void;
|
|
605
|
-
refreshTheme(): void;
|
|
606
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
607
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
619
|
declare class MaApprovalService {
|
|
611
620
|
private apiBase;
|
|
612
621
|
private http;
|
|
@@ -744,7 +753,7 @@ interface MaUiManifest {
|
|
|
744
753
|
features?: Record<string, boolean>;
|
|
745
754
|
}
|
|
746
755
|
/** Current installed package version — keep in sync with package.json. */
|
|
747
|
-
declare const PACKAGE_VERSION = "1.
|
|
756
|
+
declare const PACKAGE_VERSION = "1.15.0";
|
|
748
757
|
/**
|
|
749
758
|
* Provides server-driven UI configuration loaded from the hosted manifest.
|
|
750
759
|
* Components read `labels()` and `features()` signals instead of hardcoded strings.
|