mesauth-angular 1.15.1 → 1.16.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.15.1",
3
+ "version": "1.16.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",
@@ -39,6 +39,7 @@ declare const MES_AUTH_CONFIG: InjectionToken<MesAuthConfig>;
39
39
  */
40
40
  declare function provideMesAuth(config: MesAuthConfig): EnvironmentProviders;
41
41
  interface IUser {
42
+ id?: string;
42
43
  userId?: string;
43
44
  userName?: string;
44
45
  fullName?: string;
@@ -186,6 +187,7 @@ declare class MesAuthService {
186
187
  avatarSize: string | null;
187
188
  avatarRatio: string | null;
188
189
  }>;
190
+ getUserX(userId: string): Observable<IUser | null>;
189
191
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MesAuthService, never>;
190
192
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<MesAuthService>;
191
193
  }
@@ -532,6 +534,41 @@ declare class MaUserComponent implements AfterViewInit {
532
534
  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>;
533
535
  }
534
536
 
537
+ declare class MaUserXComponent {
538
+ userId: _angular_core.InputSignal<string>;
539
+ showName: _angular_core.InputSignal<"none" | "short" | "full">;
540
+ showTitle: _angular_core.InputSignal<boolean>;
541
+ scale: _angular_core.InputSignal<number>;
542
+ shape: _angular_core.InputSignal<"circle" | "rounded" | "rectangle">;
543
+ ratio: _angular_core.InputSignal<"ar-11" | "ar-43" | "ar-169">;
544
+ user: _angular_core.InputSignal<IUser>;
545
+ useDefault: _angular_core.InputSignal<boolean>;
546
+ showTooltip: _angular_core.InputSignal<boolean>;
547
+ theme: _angular_core.InputSignal<"light" | "dark">;
548
+ themeService: ThemeService;
549
+ authService: MesAuthService;
550
+ private hostEl;
551
+ xUser: _angular_core.WritableSignal<IUser>;
552
+ readonly avatarRefresh: _angular_core.WritableSignal<number>;
553
+ readonly tooltipOpen: _angular_core.WritableSignal<boolean>;
554
+ readonly tooltipTop: _angular_core.WritableSignal<number>;
555
+ readonly tooltipLeft: _angular_core.WritableSignal<number>;
556
+ readonly avatarShape: _angular_core.Signal<"circle" | "rounded" | "rectangle" | "portrait">;
557
+ readonly avatarFrame: _angular_core.Signal<string>;
558
+ readonly avatarRatio: _angular_core.Signal<"ar-11" | "ar-43" | "ar-169">;
559
+ readonly avatarSize: _angular_core.Signal<AvatarSize>;
560
+ get themeClass(): string;
561
+ constructor();
562
+ name: _angular_core.Signal<string>;
563
+ getAvatarUrl(user?: IUser): string;
564
+ getLastNameInitial(user: IUser): string;
565
+ onHostMouseEnter(): void;
566
+ onHostMouseLeave(): void;
567
+ onViewportChange(): void;
568
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaUserXComponent, never>;
569
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaUserXComponent, "ma-ux", never, { "userId": { "alias": "userId"; "required": false; "isSignal": true; }; "showName": { "alias": "showName"; "required": false; "isSignal": true; }; "showTitle": { "alias": "showTitle"; "required": false; "isSignal": true; }; "scale": { "alias": "scale"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "ratio": { "alias": "ratio"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; "useDefault": { "alias": "useDefault"; "required": false; "isSignal": true; }; "showTooltip": { "alias": "showTooltip"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
570
+ }
571
+
535
572
  declare class NotificationBadgeComponent {
536
573
  notificationClick: _angular_core.OutputEmitterRef<void>;
537
574
  get themeClass(): string;
@@ -753,7 +790,7 @@ interface MaUiManifest {
753
790
  features?: Record<string, boolean>;
754
791
  }
755
792
  /** Current installed package version — keep in sync with package.json. */
756
- declare const PACKAGE_VERSION = "1.15.1";
793
+ declare const PACKAGE_VERSION = "1.16.1";
757
794
  /**
758
795
  * Provides server-driven UI configuration loaded from the hosted manifest.
759
796
  * Components read `labels()` and `features()` signals instead of hardcoded strings.
@@ -858,5 +895,5 @@ declare class MaUserMenuComponent {
858
895
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaUserMenuComponent, "ma-user-menu", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, ["[maUserMenuIcon]"], true, never>;
859
896
  }
860
897
 
861
- export { ALL_ACTIONS, AVATAR_FRAMES, ApprovalActionType, ApprovalDocumentStatus, ApprovalStepMode, ApprovalStepStatus, MES_AUTH_CONFIG, MaApprovalPanelComponent, MaApprovalService, MaArvContainerComponent, MaAvatarComponent, MaIconComponent, MaThemeDirective, MaUiConfigService, MaUserComponent, MaUserMenuColor, MaUserMenuComponent, MesAuthModule, MesAuthService, NotificationBadgeComponent, NotificationPanelComponent, NotificationType, PACKAGE_VERSION, ThemeService, ToastContainerComponent, ToastService, UserProfileComponent, extractXMaPerm, mesAuthInterceptor, provideMesAuth, withXMaPerm, xMaResource };
898
+ export { ALL_ACTIONS, AVATAR_FRAMES, ApprovalActionType, ApprovalDocumentStatus, ApprovalStepMode, ApprovalStepStatus, MES_AUTH_CONFIG, MaApprovalPanelComponent, MaApprovalService, MaArvContainerComponent, MaAvatarComponent, MaIconComponent, MaThemeDirective, MaUiConfigService, MaUserComponent, MaUserMenuColor, MaUserMenuComponent, MaUserXComponent, MesAuthModule, MesAuthService, NotificationBadgeComponent, NotificationPanelComponent, NotificationType, PACKAGE_VERSION, ThemeService, ToastContainerComponent, ToastService, UserProfileComponent, extractXMaPerm, mesAuthInterceptor, provideMesAuth, withXMaPerm, xMaResource };
862
899
  export type { ApprovalDashboardDto, ApprovalDocumentDto, ApprovalDocumentSummaryDto, ApprovalHistoryDto, ApprovalReferenceDto, ApprovalStepDto, ApprovalStepRequest, ApprovalSubmitResult, ApprovalTemplateDto, ApprovalTemplateStepDto, ApprovalTemplateSummaryDto, ApproveRejectRequest, AvatarFrameDef, AvatarShape, AvatarSize, CreateApprovalRequest, CreateApprovalResponseDto, CreateApprovalTemplateRequest, DelegateRequest, FrontEndRoute, IUser, MaUiManifest, MesAuthConfig, NotificationDto, PagedList, PermissionHeader, RealTimeNotificationDto, RequestConfig, RolePreviewUserDto, StepRoleDto, Theme, Toast, UpdateApprovalTemplateRequest, UserFrontEndRoutesGrouped };