mesauth-angular 1.8.8 → 1.8.9
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/fesm2022/mesauth-angular.mjs +229 -260
- package/fesm2022/mesauth-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mesauth-angular.d.ts +45 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mesauth-angular",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.9",
|
|
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",
|
|
@@ -131,7 +131,7 @@ interface RealTimeNotificationDto {
|
|
|
131
131
|
declare class MesAuthService {
|
|
132
132
|
private hubConnection;
|
|
133
133
|
private readonly _currentUser;
|
|
134
|
-
/** Observable for components that prefer RxJS
|
|
134
|
+
/** Observable for components that prefer RxJS - backed by the signal. */
|
|
135
135
|
readonly currentUser$: Observable<IUser | null>;
|
|
136
136
|
private readonly _notifications;
|
|
137
137
|
readonly notifications$: Observable<any>;
|
|
@@ -142,7 +142,7 @@ declare class MesAuthService {
|
|
|
142
142
|
private http;
|
|
143
143
|
private router?;
|
|
144
144
|
constructor();
|
|
145
|
-
/** _ngZone accepted but ignored
|
|
145
|
+
/** _ngZone accepted but ignored - not needed in zoneless apps. */
|
|
146
146
|
init(config: MesAuthConfig, httpClient: HttpClient, router?: Router, _ngZone?: unknown): void;
|
|
147
147
|
private injectThemeStylesheet;
|
|
148
148
|
getConfig(): MesAuthConfig | null;
|
|
@@ -189,16 +189,15 @@ declare class UserProfileComponent {
|
|
|
189
189
|
notificationClick: _angular_core.OutputEmitterRef<void>;
|
|
190
190
|
approvalClick: _angular_core.OutputEmitterRef<void>;
|
|
191
191
|
get themeClass(): string;
|
|
192
|
-
currentUser: _angular_core.WritableSignal<IUser>;
|
|
193
|
-
unreadCount: _angular_core.WritableSignal<number>;
|
|
194
|
-
pendingApprovalCount: _angular_core.WritableSignal<number>;
|
|
195
|
-
dropdownOpen: _angular_core.WritableSignal<boolean>;
|
|
196
|
-
avatarRefresh: _angular_core.WritableSignal<number>;
|
|
197
|
-
private
|
|
198
|
-
private
|
|
199
|
-
private
|
|
200
|
-
private
|
|
201
|
-
private http;
|
|
192
|
+
readonly currentUser: _angular_core.WritableSignal<IUser>;
|
|
193
|
+
readonly unreadCount: _angular_core.WritableSignal<number>;
|
|
194
|
+
readonly pendingApprovalCount: _angular_core.WritableSignal<number>;
|
|
195
|
+
readonly dropdownOpen: _angular_core.WritableSignal<boolean>;
|
|
196
|
+
readonly avatarRefresh: _angular_core.WritableSignal<number>;
|
|
197
|
+
private readonly authService;
|
|
198
|
+
private readonly router;
|
|
199
|
+
private readonly themeService;
|
|
200
|
+
private readonly http;
|
|
202
201
|
constructor();
|
|
203
202
|
loadUnreadCount(): void;
|
|
204
203
|
loadPendingApprovalCount(): void;
|
|
@@ -414,15 +413,15 @@ interface ApprovalSubmitResult {
|
|
|
414
413
|
type PanelTab = 'processing' | 'approved' | 'rejected';
|
|
415
414
|
declare class MaApprovalPanelComponent {
|
|
416
415
|
approvalActioned: _angular_core.OutputEmitterRef<void>;
|
|
417
|
-
isOpen: boolean
|
|
418
|
-
loading: boolean
|
|
419
|
-
activeTab: PanelTab
|
|
420
|
-
processingItems: ApprovalDocumentSummaryDto[]
|
|
421
|
-
approvedItems: ApprovalDocumentSummaryDto[]
|
|
422
|
-
rejectedItems: ApprovalDocumentSummaryDto[]
|
|
423
|
-
private mesAuth;
|
|
424
|
-
private http;
|
|
425
|
-
private router;
|
|
416
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
417
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
418
|
+
readonly activeTab: _angular_core.WritableSignal<PanelTab>;
|
|
419
|
+
readonly processingItems: _angular_core.WritableSignal<ApprovalDocumentSummaryDto[]>;
|
|
420
|
+
readonly approvedItems: _angular_core.WritableSignal<ApprovalDocumentSummaryDto[]>;
|
|
421
|
+
readonly rejectedItems: _angular_core.WritableSignal<ApprovalDocumentSummaryDto[]>;
|
|
422
|
+
private readonly mesAuth;
|
|
423
|
+
private readonly http;
|
|
424
|
+
private readonly router;
|
|
426
425
|
private approvalSvc;
|
|
427
426
|
constructor();
|
|
428
427
|
open(): void;
|
|
@@ -450,10 +449,9 @@ declare class MaUserComponent implements AfterViewInit {
|
|
|
450
449
|
declare class NotificationBadgeComponent {
|
|
451
450
|
notificationClick: _angular_core.OutputEmitterRef<void>;
|
|
452
451
|
get themeClass(): string;
|
|
453
|
-
unreadCount: _angular_core.WritableSignal<number>;
|
|
454
|
-
private
|
|
455
|
-
private
|
|
456
|
-
private themeService;
|
|
452
|
+
readonly unreadCount: _angular_core.WritableSignal<number>;
|
|
453
|
+
private readonly authService;
|
|
454
|
+
private readonly themeService;
|
|
457
455
|
constructor();
|
|
458
456
|
private loadUnreadCount;
|
|
459
457
|
onNotificationClick(): void;
|
|
@@ -464,20 +462,17 @@ declare class NotificationBadgeComponent {
|
|
|
464
462
|
declare class NotificationPanelComponent {
|
|
465
463
|
notificationRead: _angular_core.OutputEmitterRef<void>;
|
|
466
464
|
get themeClass(): string;
|
|
467
|
-
isOpen: boolean
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
465
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
466
|
+
readonly activeTab: _angular_core.WritableSignal<"unread" | "read">;
|
|
467
|
+
readonly notifications: _angular_core.WritableSignal<NotificationDto[]>;
|
|
468
|
+
readonly selectedNotification: _angular_core.WritableSignal<NotificationDto>;
|
|
469
|
+
readonly selectedNotificationHtml: _angular_core.WritableSignal<SafeHtml>;
|
|
470
|
+
readonly selectedNotificationDate: _angular_core.WritableSignal<string>;
|
|
471
|
+
readonly dateLabels: _angular_core.WritableSignal<Map<string, string>>;
|
|
472
|
+
readonly unreadNotifications: _angular_core.Signal<NotificationDto[]>;
|
|
473
|
+
readonly readNotifications: _angular_core.Signal<NotificationDto[]>;
|
|
474
|
+
readonly currentNotifications: _angular_core.Signal<NotificationDto[]>;
|
|
473
475
|
private dateTimer;
|
|
474
|
-
get unreadNotifications(): NotificationDto[];
|
|
475
|
-
get readNotifications(): NotificationDto[];
|
|
476
|
-
get currentNotifications(): NotificationDto[];
|
|
477
|
-
selectedNotification: NotificationDto | null;
|
|
478
|
-
selectedNotificationHtml: SafeHtml | null;
|
|
479
|
-
selectedNotificationDate: string;
|
|
480
|
-
getNotificationMessage(notification: NotificationDto): string;
|
|
481
476
|
typeOf(notification: {
|
|
482
477
|
type: any;
|
|
483
478
|
}): 'Info' | 'Success' | 'Warning' | 'Error';
|
|
@@ -503,8 +498,6 @@ declare class NotificationPanelComponent {
|
|
|
503
498
|
formatDate(dateString: string): string;
|
|
504
499
|
private computeTimeAgo;
|
|
505
500
|
private refreshDateLabels;
|
|
506
|
-
private recomputeFilteredLists;
|
|
507
|
-
private onNotificationsChanged;
|
|
508
501
|
private parseUtcDate;
|
|
509
502
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationPanelComponent, never>;
|
|
510
503
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NotificationPanelComponent, "ma-notification-panel", never, {}, { "notificationRead": "notificationRead"; }, never, never, true, never>;
|
|
@@ -597,7 +590,7 @@ declare class MaArvContainerComponent {
|
|
|
597
590
|
cancelled: _angular_core.OutputEmitterRef<void>;
|
|
598
591
|
contentBody: ElementRef<HTMLElement>;
|
|
599
592
|
get themeClass(): string;
|
|
600
|
-
routingMode:
|
|
593
|
+
readonly routingMode: _angular_core.WritableSignal<"template" | "adhoc">;
|
|
601
594
|
templates: _angular_core.WritableSignal<ApprovalTemplateSummaryDto[]>;
|
|
602
595
|
selectedTemplateId: _angular_core.WritableSignal<number>;
|
|
603
596
|
selectedTemplate: _angular_core.WritableSignal<ApprovalTemplateDto>;
|
|
@@ -605,21 +598,21 @@ declare class MaArvContainerComponent {
|
|
|
605
598
|
stepCandidates: _angular_core.WritableSignal<RolePreviewUserDto[][]>;
|
|
606
599
|
stepLoadingCandidates: _angular_core.WritableSignal<boolean[]>;
|
|
607
600
|
stepSelectedUsers: _angular_core.WritableSignal<string[]>;
|
|
608
|
-
adHocSteps: ApprovalStepRequest[]
|
|
609
|
-
referenceUserIds: string[]
|
|
610
|
-
refSearchQuery: string
|
|
611
|
-
refSearchResults: any[]
|
|
612
|
-
userSearchQuery: string[]
|
|
613
|
-
userSearchResults: any[][]
|
|
614
|
-
candidateSearchQuery: string[]
|
|
615
|
-
candidateSearchResults: any[][]
|
|
601
|
+
readonly adHocSteps: _angular_core.WritableSignal<ApprovalStepRequest[]>;
|
|
602
|
+
readonly referenceUserIds: _angular_core.WritableSignal<string[]>;
|
|
603
|
+
readonly refSearchQuery: _angular_core.WritableSignal<string>;
|
|
604
|
+
readonly refSearchResults: _angular_core.WritableSignal<any[]>;
|
|
605
|
+
readonly userSearchQuery: _angular_core.WritableSignal<string[]>;
|
|
606
|
+
readonly userSearchResults: _angular_core.WritableSignal<any[][]>;
|
|
607
|
+
readonly candidateSearchQuery: _angular_core.WritableSignal<string[]>;
|
|
608
|
+
readonly candidateSearchResults: _angular_core.WritableSignal<any[][]>;
|
|
616
609
|
submitting: _angular_core.WritableSignal<boolean>;
|
|
617
610
|
isSubmitted: _angular_core.WritableSignal<boolean>;
|
|
618
611
|
errorMessage: _angular_core.Signal<string>;
|
|
619
612
|
isError: _angular_core.Signal<boolean>;
|
|
620
613
|
isStepsError: _angular_core.Signal<Record<number, boolean>>;
|
|
621
614
|
submitResultError: _angular_core.WritableSignal<string>;
|
|
622
|
-
userLabelMap: Record<string, string
|
|
615
|
+
readonly userLabelMap: _angular_core.WritableSignal<Record<string, string>>;
|
|
623
616
|
private mesAuth;
|
|
624
617
|
private themeService;
|
|
625
618
|
private approvalSvc;
|
|
@@ -633,9 +626,11 @@ declare class MaArvContainerComponent {
|
|
|
633
626
|
onStepUserChangeInput(stepIndex: number, userId: string): void;
|
|
634
627
|
private normalize;
|
|
635
628
|
onCandidateSearchInput(stepIndex: number, query: string): void;
|
|
629
|
+
clearCandidateResults(stepIndex: number): void;
|
|
636
630
|
onTemplateChange(event: Event): void;
|
|
637
631
|
addStep(): void;
|
|
638
632
|
removeStep(i: number): void;
|
|
633
|
+
updateStepName(stepIndex: number, name: string): void;
|
|
639
634
|
addApprover(stepIndex: number, userId: string): void;
|
|
640
635
|
removeApprover(stepIndex: number, approverIndex: number): void;
|
|
641
636
|
addReference(userId: string): void;
|