mesauth-angular 1.12.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.12.
|
|
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,
|
|
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';
|
|
@@ -262,6 +262,7 @@ declare class UserProfileComponent {
|
|
|
262
262
|
onDocumentClick(event: Event): void;
|
|
263
263
|
onLogin(): void;
|
|
264
264
|
onViewProfile(): void;
|
|
265
|
+
private openInNewTabIfSameOrigin;
|
|
265
266
|
onLogout(): void;
|
|
266
267
|
onNotificationClick(): void;
|
|
267
268
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
|
@@ -491,17 +492,38 @@ declare class MaApprovalPanelComponent {
|
|
|
491
492
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaApprovalPanelComponent, "ma-approval-panel", never, {}, { "approvalActioned": "approvalActioned"; }, never, never, true, never>;
|
|
492
493
|
}
|
|
493
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
|
+
|
|
494
514
|
declare class MaUserComponent implements AfterViewInit {
|
|
495
515
|
userProfile?: UserProfileComponent;
|
|
496
516
|
approvalPanel: MaApprovalPanelComponent;
|
|
497
517
|
avatarShape: _angular_core.InputSignal<"circle" | "rounded" | "rectangle">;
|
|
498
518
|
showBell: _angular_core.InputSignal<boolean>;
|
|
499
519
|
showApproval: _angular_core.InputSignal<boolean>;
|
|
520
|
+
theme: _angular_core.InputSignal<"light" | "dark">;
|
|
521
|
+
themeService: ThemeService;
|
|
500
522
|
ngAfterViewInit(): void;
|
|
501
523
|
onNotificationRead(): void;
|
|
502
524
|
onApprovalActioned(): void;
|
|
503
525
|
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>;
|
|
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>;
|
|
505
527
|
}
|
|
506
528
|
|
|
507
529
|
declare class NotificationBadgeComponent {
|
|
@@ -588,25 +610,6 @@ declare class ToastService {
|
|
|
588
610
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastService>;
|
|
589
611
|
}
|
|
590
612
|
|
|
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
613
|
declare class MaApprovalService {
|
|
611
614
|
private apiBase;
|
|
612
615
|
private http;
|
|
@@ -744,7 +747,7 @@ interface MaUiManifest {
|
|
|
744
747
|
features?: Record<string, boolean>;
|
|
745
748
|
}
|
|
746
749
|
/** Current installed package version — keep in sync with package.json. */
|
|
747
|
-
declare const PACKAGE_VERSION = "1.12.
|
|
750
|
+
declare const PACKAGE_VERSION = "1.12.1";
|
|
748
751
|
/**
|
|
749
752
|
* Provides server-driven UI configuration loaded from the hosted manifest.
|
|
750
753
|
* Components read `labels()` and `features()` signals instead of hardcoded strings.
|