@acorex-platform/module-auth-client 0.0.38 → 0.0.48
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/acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs +179 -0
- package/fesm2022/acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-C1oSPf12.mjs} +1154 -107
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-C1oSPf12.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-CjWofUGR.mjs → acorex-platform-module-auth-client-app-chooser.component-CLKLwWW8.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-CjWofUGR.mjs.map → acorex-platform-module-auth-client-app-chooser.component-CLKLwWW8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs → acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs} +3 -3
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-BqU3jYV9.mjs → acorex-platform-module-auth-client-change-password.command-CknYaMZD.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-BqU3jYV9.mjs.map → acorex-platform-module-auth-client-change-password.command-CknYaMZD.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs → acorex-platform-module-auth-client-change-photo.command-CML784Lg.mjs} +71 -21
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CML784Lg.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs +69 -0
- package/fesm2022/acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +12 -7
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs → acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs} +25 -4
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-B1bKcSVQ.mjs → acorex-platform-module-auth-client-get-user-activity.query-CV9mdOBi.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-B1bKcSVQ.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-CV9mdOBi.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-DKtlBzS7.mjs → acorex-platform-module-auth-client-lock-screen.command-BH3Q6lJE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-DKtlBzS7.mjs.map → acorex-platform-module-auth-client-lock-screen.command-BH3Q6lJE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-login.module-CXl61yOu.mjs → acorex-platform-module-auth-client-login.module-DtvnPpBH.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-login.module-CXl61yOu.mjs.map → acorex-platform-module-auth-client-login.module-DtvnPpBH.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-manage-two-factor.command-BAg2W20W.mjs +445 -0
- package/fesm2022/acorex-platform-module-auth-client-manage-two-factor.command-BAg2W20W.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-master.layout-D7zUm7aL.mjs → acorex-platform-module-auth-client-master.layout-B3krDskY.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-master.layout-D7zUm7aL.mjs.map → acorex-platform-module-auth-client-master.layout-B3krDskY.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-fdWC08nA.mjs → acorex-platform-module-auth-client-oauth-callback.component-DWnljN18.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-fdWC08nA.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-DWnljN18.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-DKvyMkhl.mjs → acorex-platform-module-auth-client-open-sessions.command-CEpu6c7D.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-DKvyMkhl.mjs.map → acorex-platform-module-auth-client-open-sessions.command-CEpu6c7D.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs +28 -0
- package/fesm2022/acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs → acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs.map → acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BoWDVby5.mjs → acorex-platform-module-auth-client-password.component-ddh-_0k3.mjs} +39 -9
- package/fesm2022/acorex-platform-module-auth-client-password.component-ddh-_0k3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-CFaRGMKu.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-D4bqeKCd.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-CFaRGMKu.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-D4bqeKCd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DWNbDzDd.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DWNbDzDd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-1Spuexhb.mjs → acorex-platform-module-auth-client-profile-page-component.provider-DLTbTEe6.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-1Spuexhb.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-DLTbTEe6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs → acorex-platform-module-auth-client-profile-page.component-BhmMsO3g.mjs} +9 -7
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-BhmMsO3g.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-pwa-install.component-BJOvT0hW.mjs +84 -0
- package/fesm2022/acorex-platform-module-auth-client-pwa-install.component-BJOvT0hW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs → acorex-platform-module-auth-client-register-password.component-M-ayP7oO.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs.map → acorex-platform-module-auth-client-register-password.component-M-ayP7oO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs → acorex-platform-module-auth-client-register.module-Qa3ovje0.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs.map → acorex-platform-module-auth-client-register.module-Qa3ovje0.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs → acorex-platform-module-auth-client-remove-pin-code.command-BenNCyt6.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-BenNCyt6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs → acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs.map → acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs → acorex-platform-module-auth-client-result.component-PhPaEAgh.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs.map → acorex-platform-module-auth-client-result.component-PhPaEAgh.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs +17 -0
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs → acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map → acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-cDCrwNRV.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-ChigSAI-.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-cDCrwNRV.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-ChigSAI-.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-FjM1kzUj.mjs → acorex-platform-module-auth-client-set-pin-code.command-CefSbJz8.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-FjM1kzUj.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-CefSbJz8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BgEgdFxQ.mjs → acorex-platform-module-auth-client-set-pin-code.component-DqFW_4rM.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BgEgdFxQ.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-DqFW_4rM.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs → acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs} +18 -13
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs → acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs} +7 -1
- package/fesm2022/acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-B8CNqHx5.mjs → acorex-platform-module-auth-client-tenant-chooser.component-DCdRCf1m.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-B8CNqHx5.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-DCdRCf1m.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs +48 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CtSv3MQu.mjs +200 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CtSv3MQu.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs → acorex-platform-module-auth-client-two-factor.module-B7tETPbq.mjs} +10 -5
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-B7tETPbq.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Cqb27L-l.mjs → acorex-platform-module-auth-client-view-login-history.command-CKPbyVWd.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Cqb27L-l.mjs.map → acorex-platform-module-auth-client-view-login-history.command-CKPbyVWd.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs +165 -0
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding-page.component-C2WYgv4l.mjs +813 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding-page.component-C2WYgv4l.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding.command-Ck1A26BI.mjs +59 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding.command-Ck1A26BI.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-auth-client-contracts.d.ts +13 -3
- package/types/acorex-platform-module-auth-client.d.ts +60 -2
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-password.component-BoWDVby5.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-B6iJHJ60.mjs +0 -13
- package/fesm2022/acorex-platform-module-auth-client-routes-B6iJHJ60.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs +0 -40
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs.map +0 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import * as i1 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
4
|
+
import { AXLoadingModule } from '@acorex/components/loading';
|
|
5
|
+
import * as i3 from '@acorex/components/skeleton';
|
|
6
|
+
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
|
7
|
+
import { AXToastService } from '@acorex/components/toast';
|
|
8
|
+
import * as i5 from '@acorex/core/translation';
|
|
9
|
+
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
10
|
+
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
11
|
+
import { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';
|
|
12
|
+
import { AXPLogoComponent } from '@acorex-platform/framework-client/core';
|
|
13
|
+
import { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';
|
|
14
|
+
import { AXPCommandService } from '@acorex-platform/framework-client/runtime';
|
|
15
|
+
import { AXM_MEMBERSHIP_INVITE_WAITING_ROOM_SOURCE, AXMSecurityManagementServerCommands } from '@acorex-platform/module-security-management-client/contracts';
|
|
16
|
+
import * as i3$1 from '@angular/common';
|
|
17
|
+
import { CommonModule } from '@angular/common';
|
|
18
|
+
import * as i0 from '@angular/core';
|
|
19
|
+
import { inject, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
20
|
+
import { Router, ActivatedRoute, RouterModule } from '@angular/router';
|
|
21
|
+
|
|
22
|
+
//#region ----- Waiting room -----
|
|
23
|
+
class AXPAuthWaitingRoomComponent {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.sessionService = inject(AXPSessionService);
|
|
26
|
+
this.commandService = inject(AXPCommandService);
|
|
27
|
+
this.translationService = inject(AXTranslationService);
|
|
28
|
+
this.toastService = inject(AXToastService);
|
|
29
|
+
this.platformBranding = inject(AXPPlatformBrandingService);
|
|
30
|
+
this.router = inject(Router);
|
|
31
|
+
this.route = inject(ActivatedRoute);
|
|
32
|
+
this.platformTitle = signal('', /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "platformTitle" }] : /* istanbul ignore next */ []));
|
|
34
|
+
this.loading = signal(true, /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
36
|
+
this.busyId = signal(null, /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "busyId" }] : /* istanbul ignore next */ []));
|
|
38
|
+
this.invitations = signal([], /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "invitations" }] : /* istanbul ignore next */ []));
|
|
40
|
+
/** True when opened from membership-invite notification or user already has other tenants. */
|
|
41
|
+
this.membershipContext = signal(false, /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "membershipContext" }] : /* istanbul ignore next */ []));
|
|
43
|
+
this.titleKey = computed(() => this.membershipContext()
|
|
44
|
+
? '@auth:waiting-room.membership-invite.title'
|
|
45
|
+
: '@auth:waiting-room.title', /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "titleKey" }] : /* istanbul ignore next */ []));
|
|
47
|
+
this.descriptionKey = computed(() => this.membershipContext()
|
|
48
|
+
? '@auth:waiting-room.membership-invite.description'
|
|
49
|
+
: '@auth:waiting-room.description', /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "descriptionKey" }] : /* istanbul ignore next */ []));
|
|
51
|
+
}
|
|
52
|
+
get user() {
|
|
53
|
+
return this.sessionService.user;
|
|
54
|
+
}
|
|
55
|
+
async ngOnInit() {
|
|
56
|
+
const title = await this.platformBranding.resolvePlatformTitle().catch(() => '');
|
|
57
|
+
this.platformTitle.set(title || 'ACoreX');
|
|
58
|
+
const source = String(this.route.snapshot.queryParamMap.get('source') ?? '').trim();
|
|
59
|
+
const fromInvite = source === AXM_MEMBERSHIP_INVITE_WAITING_ROOM_SOURCE;
|
|
60
|
+
const tenants = await this.sessionService.getTenantsList().catch(() => []);
|
|
61
|
+
this.membershipContext.set(fromInvite || (Array.isArray(tenants) && tenants.length > 0));
|
|
62
|
+
await this.reload();
|
|
63
|
+
}
|
|
64
|
+
async reload() {
|
|
65
|
+
this.loading.set(true);
|
|
66
|
+
try {
|
|
67
|
+
const result = await this.commandService.execute(AXMSecurityManagementServerCommands.ListMyPendingInvitations, {});
|
|
68
|
+
const items = result?.data?.items ?? [];
|
|
69
|
+
this.invitations.set(Array.isArray(items) ? items : []);
|
|
70
|
+
}
|
|
71
|
+
finally {
|
|
72
|
+
this.loading.set(false);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async accept(item) {
|
|
76
|
+
this.busyId.set(item.tenantUserId);
|
|
77
|
+
try {
|
|
78
|
+
let newPassword;
|
|
79
|
+
// First attempt without password; if server requires one, prompt once.
|
|
80
|
+
let result = await this.commandService.execute(AXMSecurityManagementServerCommands.AcceptMyInvitation, { tenantUserId: item.tenantUserId });
|
|
81
|
+
const needsPassword = !result?.success &&
|
|
82
|
+
typeof result?.message?.text === 'string' &&
|
|
83
|
+
result.message.text.toLowerCase().includes('password');
|
|
84
|
+
if (needsPassword) {
|
|
85
|
+
const promptTitle = await this.translationService
|
|
86
|
+
.translateAsync('@auth:waiting-room.set-password-title')
|
|
87
|
+
.catch(() => 'Set Password');
|
|
88
|
+
const promptMessage = await this.translationService
|
|
89
|
+
.translateAsync('@auth:waiting-room.set-password-message')
|
|
90
|
+
.catch(() => 'Choose a password to activate your account (min 6 characters).');
|
|
91
|
+
newPassword = window.prompt(`${promptTitle}\n${promptMessage}`) ?? undefined;
|
|
92
|
+
if (!newPassword || newPassword.length < 6) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
result = await this.commandService.execute(AXMSecurityManagementServerCommands.AcceptMyInvitation, { tenantUserId: item.tenantUserId, newPassword });
|
|
96
|
+
}
|
|
97
|
+
if (!result?.success) {
|
|
98
|
+
const fallback = await this.translationService
|
|
99
|
+
.translateAsync('@auth:waiting-room.accept-failed')
|
|
100
|
+
.catch(() => 'Could not accept the invitation.');
|
|
101
|
+
const text = (typeof result?.message?.text === 'string' && result.message.text) || fallback;
|
|
102
|
+
this.toastService.show({ color: 'danger', title: text, content: text, timeOut: 4000 });
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const ok = await this.translationService
|
|
106
|
+
.translateAsync('@auth:waiting-room.accept-success')
|
|
107
|
+
.catch(() => 'Invitation accepted. Choose a tenant to continue.');
|
|
108
|
+
this.toastService.show({ color: 'success', title: ok, content: ok, timeOut: 3000 });
|
|
109
|
+
// Hard reload clears the in-memory tenants catalog cache so the chooser
|
|
110
|
+
// sees the newly activated membership (no public invalidate API yet).
|
|
111
|
+
if (typeof window !== 'undefined') {
|
|
112
|
+
window.location.assign('/auth/account/tenant-chooser');
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
await this.router.navigate(['/auth/account/tenant-chooser']);
|
|
116
|
+
}
|
|
117
|
+
finally {
|
|
118
|
+
this.busyId.set(null);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
async decline(item) {
|
|
122
|
+
this.busyId.set(item.tenantUserId);
|
|
123
|
+
try {
|
|
124
|
+
const result = await this.commandService.execute(AXMSecurityManagementServerCommands.DeclineInvitation, { tenantUserId: item.tenantUserId });
|
|
125
|
+
if (!result?.success) {
|
|
126
|
+
const fallback = await this.translationService
|
|
127
|
+
.translateAsync('@auth:waiting-room.decline-failed')
|
|
128
|
+
.catch(() => 'Could not decline the invitation.');
|
|
129
|
+
const text = (typeof result?.message?.text === 'string' && result.message.text) || fallback;
|
|
130
|
+
this.toastService.show({ color: 'danger', title: text, content: text, timeOut: 4000 });
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
await this.reload();
|
|
134
|
+
}
|
|
135
|
+
finally {
|
|
136
|
+
this.busyId.set(null);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
async signOut() {
|
|
140
|
+
await this.sessionService.signout().catch(() => undefined);
|
|
141
|
+
await this.router.navigate(['/auth/login']);
|
|
142
|
+
}
|
|
143
|
+
async goBack() {
|
|
144
|
+
await this.router.navigate(['/auth/account/tenant-chooser']);
|
|
145
|
+
}
|
|
146
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthWaitingRoomComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
147
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthWaitingRoomComponent, isStandalone: true, selector: "axp-auth-waiting-room", ngImport: i0, template: "<main class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Loading skeleton while invitations are fetched ----- -->\n @if (loading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n }\n <!-- ----- Signed-in identity for the waiting room ----- -->\n @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"user?.id!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ titleKey() | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ descriptionKey() | translate | async }}\n </p>\n <p class=\"text-sm text-neutral-600 m-0\">\n {{ user?.title || user?.name }}\n </p>\n }\n\n <div class=\"mt-4 w-full flex flex-col gap-3 text-start\">\n <h3 class=\"text-sm font-semibold m-0\">\n {{ '@auth:waiting-room.invitations-heading' | translate | async }}\n </h3>\n\n <!-- ----- Invitation list loading placeholders ----- -->\n @if (loading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n }\n <!-- ----- Empty state when there are no pending invitations ----- -->\n @else if (invitations().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:waiting-room.empty' | translate | async }}\n </p>\n }\n <!-- ----- Pending invitation cards with accept / decline ----- -->\n @else {\n @for (item of invitations(); track item.tenantUserId) {\n <div\n class=\"flex flex-col gap-2 p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"busyId() === item.tenantUserId\"\n >\n <div class=\"font-medium\">\n {{ item.tenantTitle || item.tenantId }}\n </div>\n <!--->\n <!-- ----- Show invitation expiry when present ----- -->\n @if (item.expiresAt) {\n <div class=\"text-xs text-neutral-500\">\n {{ '@auth:waiting-room.expires-at' | translate | async }}: {{ item.expiresAt }}\n </div>\n }\n <div class=\"flex gap-2 flex-wrap\">\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.accept' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"accept(item)\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.decline' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"decline(item)\"\n ></ax-button>\n </div>\n </div>\n }\n }\n </div>\n\n <div class=\"mt-4 flex gap-2 flex-wrap justify-center\">\n @if (membershipContext()) {\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.back' | translate | async\"\n (onClick)=\"goBack()\"\n ></ax-button>\n }\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.sign-out' | translate | async\"\n (onClick)=\"signOut()\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.refresh' | translate | async\"\n (onClick)=\"reload()\"\n ></ax-button>\n </div>\n </div>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n", ""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
148
|
+
}
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthWaitingRoomComponent, decorators: [{
|
|
150
|
+
type: Component,
|
|
151
|
+
args: [{ selector: 'axp-auth-waiting-room', imports: [
|
|
152
|
+
CommonModule,
|
|
153
|
+
RouterModule,
|
|
154
|
+
AXButtonModule,
|
|
155
|
+
AXDecoratorModule,
|
|
156
|
+
AXLoadingModule,
|
|
157
|
+
AXSkeletonModule,
|
|
158
|
+
AXTranslationModule,
|
|
159
|
+
AXPLogoComponent,
|
|
160
|
+
AXPUserAvatarComponent,
|
|
161
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<main class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Loading skeleton while invitations are fetched ----- -->\n @if (loading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n }\n <!-- ----- Signed-in identity for the waiting room ----- -->\n @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"user?.id!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ titleKey() | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ descriptionKey() | translate | async }}\n </p>\n <p class=\"text-sm text-neutral-600 m-0\">\n {{ user?.title || user?.name }}\n </p>\n }\n\n <div class=\"mt-4 w-full flex flex-col gap-3 text-start\">\n <h3 class=\"text-sm font-semibold m-0\">\n {{ '@auth:waiting-room.invitations-heading' | translate | async }}\n </h3>\n\n <!-- ----- Invitation list loading placeholders ----- -->\n @if (loading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n }\n <!-- ----- Empty state when there are no pending invitations ----- -->\n @else if (invitations().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:waiting-room.empty' | translate | async }}\n </p>\n }\n <!-- ----- Pending invitation cards with accept / decline ----- -->\n @else {\n @for (item of invitations(); track item.tenantUserId) {\n <div\n class=\"flex flex-col gap-2 p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"busyId() === item.tenantUserId\"\n >\n <div class=\"font-medium\">\n {{ item.tenantTitle || item.tenantId }}\n </div>\n <!--->\n <!-- ----- Show invitation expiry when present ----- -->\n @if (item.expiresAt) {\n <div class=\"text-xs text-neutral-500\">\n {{ '@auth:waiting-room.expires-at' | translate | async }}: {{ item.expiresAt }}\n </div>\n }\n <div class=\"flex gap-2 flex-wrap\">\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.accept' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"accept(item)\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.decline' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"decline(item)\"\n ></ax-button>\n </div>\n </div>\n }\n }\n </div>\n\n <div class=\"mt-4 flex gap-2 flex-wrap justify-center\">\n @if (membershipContext()) {\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.back' | translate | async\"\n (onClick)=\"goBack()\"\n ></ax-button>\n }\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.sign-out' | translate | async\"\n (onClick)=\"signOut()\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.refresh' | translate | async\"\n (onClick)=\"reload()\"\n ></ax-button>\n </div>\n </div>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
162
|
+
}] });
|
|
163
|
+
|
|
164
|
+
export { AXPAuthWaitingRoomComponent };
|
|
165
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/waiting-room/waiting-room.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/waiting-room/waiting-room.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXM_MEMBERSHIP_INVITE_WAITING_ROOM_SOURCE,\n AXMSecurityManagementServerCommands,\n type AXMPendingInvitationItem,\n} from '@acorex-platform/module-security-management-client/contracts';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n OnInit,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\n//#region ----- Waiting room -----\n\n@Component({\n selector: 'axp-auth-waiting-room',\n templateUrl: './waiting-room.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './waiting-room.component.css'],\n imports: [\n CommonModule,\n RouterModule,\n AXButtonModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXSkeletonModule,\n AXTranslationModule,\n AXPLogoComponent,\n AXPUserAvatarComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthWaitingRoomComponent implements OnInit {\n private readonly sessionService = inject(AXPSessionService);\n private readonly commandService = inject(AXPCommandService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n private readonly router = inject(Router);\n private readonly route = inject(ActivatedRoute);\n\n protected readonly platformTitle = signal('');\n protected readonly loading = signal(true);\n protected readonly busyId = signal<string | null>(null);\n protected readonly invitations = signal<AXMPendingInvitationItem[]>([]);\n /** True when opened from membership-invite notification or user already has other tenants. */\n protected readonly membershipContext = signal(false);\n\n protected readonly titleKey = computed(() =>\n this.membershipContext()\n ? '@auth:waiting-room.membership-invite.title'\n : '@auth:waiting-room.title',\n );\n\n protected readonly descriptionKey = computed(() =>\n this.membershipContext()\n ? '@auth:waiting-room.membership-invite.description'\n : '@auth:waiting-room.description',\n );\n\n protected get user() {\n return this.sessionService.user;\n }\n\n async ngOnInit(): Promise<void> {\n const title = await this.platformBranding.resolvePlatformTitle().catch(() => '');\n this.platformTitle.set(title || 'ACoreX');\n\n const source = String(this.route.snapshot.queryParamMap.get('source') ?? '').trim();\n const fromInvite = source === AXM_MEMBERSHIP_INVITE_WAITING_ROOM_SOURCE;\n const tenants = await this.sessionService.getTenantsList().catch(() => []);\n this.membershipContext.set(fromInvite || (Array.isArray(tenants) && tenants.length > 0));\n\n await this.reload();\n }\n\n protected async reload(): Promise<void> {\n this.loading.set(true);\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.ListMyPendingInvitations,\n {},\n );\n const items =\n ((result as { data?: { items?: AXMPendingInvitationItem[] } })?.data?.items as\n | AXMPendingInvitationItem[]\n | undefined) ?? [];\n this.invitations.set(Array.isArray(items) ? items : []);\n } finally {\n this.loading.set(false);\n }\n }\n\n protected async accept(item: AXMPendingInvitationItem): Promise<void> {\n this.busyId.set(item.tenantUserId);\n try {\n let newPassword: string | undefined;\n // First attempt without password; if server requires one, prompt once.\n let result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.AcceptMyInvitation,\n { tenantUserId: item.tenantUserId },\n );\n const needsPassword =\n !result?.success &&\n typeof result?.message?.text === 'string' &&\n result.message.text.toLowerCase().includes('password');\n if (needsPassword) {\n const promptTitle = await this.translationService\n .translateAsync('@auth:waiting-room.set-password-title')\n .catch(() => 'Set Password');\n const promptMessage = await this.translationService\n .translateAsync('@auth:waiting-room.set-password-message')\n .catch(() => 'Choose a password to activate your account (min 6 characters).');\n newPassword = window.prompt(`${promptTitle}\\n${promptMessage}`) ?? undefined;\n if (!newPassword || newPassword.length < 6) {\n return;\n }\n result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.AcceptMyInvitation,\n { tenantUserId: item.tenantUserId, newPassword },\n );\n }\n if (!result?.success) {\n const fallback = await this.translationService\n .translateAsync('@auth:waiting-room.accept-failed')\n .catch(() => 'Could not accept the invitation.');\n const text =\n (typeof result?.message?.text === 'string' && result.message.text) || fallback;\n this.toastService.show({ color: 'danger', title: text, content: text, timeOut: 4000 });\n return;\n }\n const ok = await this.translationService\n .translateAsync('@auth:waiting-room.accept-success')\n .catch(() => 'Invitation accepted. Choose a tenant to continue.');\n this.toastService.show({ color: 'success', title: ok, content: ok, timeOut: 3000 });\n // Hard reload clears the in-memory tenants catalog cache so the chooser\n // sees the newly activated membership (no public invalidate API yet).\n if (typeof window !== 'undefined') {\n window.location.assign('/auth/account/tenant-chooser');\n return;\n }\n await this.router.navigate(['/auth/account/tenant-chooser']);\n } finally {\n this.busyId.set(null);\n }\n }\n\n protected async decline(item: AXMPendingInvitationItem): Promise<void> {\n this.busyId.set(item.tenantUserId);\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.DeclineInvitation,\n { tenantUserId: item.tenantUserId },\n );\n if (!result?.success) {\n const fallback = await this.translationService\n .translateAsync('@auth:waiting-room.decline-failed')\n .catch(() => 'Could not decline the invitation.');\n const text =\n (typeof result?.message?.text === 'string' && result.message.text) || fallback;\n this.toastService.show({ color: 'danger', title: text, content: text, timeOut: 4000 });\n return;\n }\n await this.reload();\n } finally {\n this.busyId.set(null);\n }\n }\n\n protected async signOut(): Promise<void> {\n await this.sessionService.signout().catch(() => undefined);\n await this.router.navigate(['/auth/login']);\n }\n\n protected async goBack(): Promise<void> {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n }\n}\n\n//#endregion\n","<main class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"onLight\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Loading skeleton while invitations are fetched ----- -->\n @if (loading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n }\n <!-- ----- Signed-in identity for the waiting room ----- -->\n @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"user?.id!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ titleKey() | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ descriptionKey() | translate | async }}\n </p>\n <p class=\"text-sm text-neutral-600 m-0\">\n {{ user?.title || user?.name }}\n </p>\n }\n\n <div class=\"mt-4 w-full flex flex-col gap-3 text-start\">\n <h3 class=\"text-sm font-semibold m-0\">\n {{ '@auth:waiting-room.invitations-heading' | translate | async }}\n </h3>\n\n <!-- ----- Invitation list loading placeholders ----- -->\n @if (loading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n }\n <!-- ----- Empty state when there are no pending invitations ----- -->\n @else if (invitations().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:waiting-room.empty' | translate | async }}\n </p>\n }\n <!-- ----- Pending invitation cards with accept / decline ----- -->\n @else {\n @for (item of invitations(); track item.tenantUserId) {\n <div\n class=\"flex flex-col gap-2 p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"busyId() === item.tenantUserId\"\n >\n <div class=\"font-medium\">\n {{ item.tenantTitle || item.tenantId }}\n </div>\n <!--->\n <!-- ----- Show invitation expiry when present ----- -->\n @if (item.expiresAt) {\n <div class=\"text-xs text-neutral-500\">\n {{ '@auth:waiting-room.expires-at' | translate | async }}: {{ item.expiresAt }}\n </div>\n }\n <div class=\"flex gap-2 flex-wrap\">\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.accept' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"accept(item)\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.decline' | translate | async\"\n [disabled]=\"!!busyId()\"\n (onClick)=\"decline(item)\"\n ></ax-button>\n </div>\n </div>\n }\n }\n </div>\n\n <div class=\"mt-4 flex gap-2 flex-wrap justify-center\">\n @if (membershipContext()) {\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@auth:waiting-room.actions.back' | translate | async\"\n (onClick)=\"goBack()\"\n ></ax-button>\n }\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.sign-out' | translate | async\"\n (onClick)=\"signOut()\"\n ></ax-button>\n <ax-button\n look=\"outline\"\n color=\"default\"\n [text]=\"'@auth:waiting-room.actions.refresh' | translate | async\"\n (onClick)=\"reload()\"\n ></ax-button>\n </div>\n </div>\n </section>\n </div>\n</main>\n"],"names":["i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BA;MAoBa,2BAA2B,CAAA;AAlBxC,IAAA,WAAA,GAAA;AAmBmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrD,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;QAE5B,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EAAE;0FAAC;QAC1B,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,IAAI;oFAAC;QACtB,IAAA,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