@acorex-platform/module-auth-client 0.0.58 → 0.0.60
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 → acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs.map → acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CQEt9bXJ.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-DINrCCAx.mjs} +75 -51
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-DINrCCAx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-SUwPTueG.mjs → acorex-platform-module-auth-client-app-chooser.component-C1fUi_Mp.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-SUwPTueG.mjs.map → acorex-platform-module-auth-client-app-chooser.component-C1fUi_Mp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-DRwzhNlO.mjs → acorex-platform-module-auth-client-change-password.command-UvBqwF9V.mjs} +48 -23
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-UvBqwF9V.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-C1Fm_MdA.mjs → acorex-platform-module-auth-client-change-photo.command-2e7ZjiEf.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-C1Fm_MdA.mjs.map → acorex-platform-module-auth-client-change-photo.command-2e7ZjiEf.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-CLdmidQb.mjs → acorex-platform-module-auth-client-get-user-activity.query-BGOYJ4FC.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-CLdmidQb.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-BGOYJ4FC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-CHbe_N-Z.mjs → acorex-platform-module-auth-client-lock-screen.command-BOKKr6WW.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-CHbe_N-Z.mjs.map → acorex-platform-module-auth-client-lock-screen.command-BOKKr6WW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-login.module-BM3L_d8i.mjs → acorex-platform-module-auth-client-login.module-gi6wea8m.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-login.module-BM3L_d8i.mjs.map → acorex-platform-module-auth-client-login.module-gi6wea8m.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-BOM6_896.mjs → acorex-platform-module-auth-client-manage-two-factor.command-DRsNZWZF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-BOM6_896.mjs.map → acorex-platform-module-auth-client-manage-two-factor.command-DRsNZWZF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-BgUSFibH.mjs → acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-BgUSFibH.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-Dq9eJ-bY.mjs → acorex-platform-module-auth-client-open-sessions.command-CwWtPiTG.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-Dq9eJ-bY.mjs.map → acorex-platform-module-auth-client-open-sessions.command-CwWtPiTG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-SpEVRPaE.mjs → acorex-platform-module-auth-client-password.component-CAZ3tVPG.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-password.component-SpEVRPaE.mjs.map → acorex-platform-module-auth-client-password.component-CAZ3tVPG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs → acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs.map → acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DcMdz44P.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-BcbVLmZo.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DcMdz44P.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-BcbVLmZo.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DTujROAP.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DTujROAP.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CelasDrw.mjs → acorex-platform-module-auth-client-profile-page-component.provider-DEVBmVKd.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CelasDrw.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-DEVBmVKd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-iGdfjv6g.mjs → acorex-platform-module-auth-client-profile-page.component-BNYoh2IL.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-iGdfjv6g.mjs.map → acorex-platform-module-auth-client-profile-page.component-BNYoh2IL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-CaztyyPx.mjs → acorex-platform-module-auth-client-register-password.component-DArLfswX.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-CaztyyPx.mjs.map → acorex-platform-module-auth-client-register-password.component-DArLfswX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register.module-R-yxS0EI.mjs → acorex-platform-module-auth-client-register.module-BXMV9tp3.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register.module-R-yxS0EI.mjs.map → acorex-platform-module-auth-client-register.module-BXMV9tp3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DHY46WWD.mjs → acorex-platform-module-auth-client-remove-pin-code.command-D9uLV6je.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DHY46WWD.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-D9uLV6je.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs → acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs.map → acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-result.component-DuMch6Ge.mjs → acorex-platform-module-auth-client-result.component-BS5uizi6.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-result.component-DuMch6Ge.mjs.map → acorex-platform-module-auth-client-result.component-BS5uizi6.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-Dw8YhBrw.mjs +21 -0
- package/fesm2022/acorex-platform-module-auth-client-routes-Dw8YhBrw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs → acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs.map → acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-DBJjSIOq.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-D_IKdJl8.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-DBJjSIOq.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-D_IKdJl8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CheMeghC.mjs → acorex-platform-module-auth-client-set-pin-code.command-DRLTGXEF.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CheMeghC.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-DRLTGXEF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BWl3vLOO.mjs → acorex-platform-module-auth-client-set-pin-code.component-m7SwyaZH.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BWl3vLOO.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-m7SwyaZH.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-BEtlhGUb.mjs → acorex-platform-module-auth-client-tenant-chooser.component-CdqBeKVw.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-BEtlhGUb.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-CdqBeKVw.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs +256 -0
- package/fesm2022/acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-4XVRgh6H.mjs → acorex-platform-module-auth-client-two-factor-code.component-B1334bPg.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-4XVRgh6H.mjs.map → acorex-platform-module-auth-client-two-factor-code.component-B1334bPg.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CrLPxje1.mjs → acorex-platform-module-auth-client-two-factor.module-C0mkbR4X.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CrLPxje1.mjs.map → acorex-platform-module-auth-client-two-factor.module-C0mkbR4X.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-qrd0bNM9.mjs → acorex-platform-module-auth-client-view-login-history.command-CerhsvHF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-qrd0bNM9.mjs.map → acorex-platform-module-auth-client-view-login-history.command-CerhsvHF.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-Wu8iPiTm.mjs +327 -0
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-Wu8iPiTm.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-3yva-FyV.mjs → acorex-platform-module-auth-client-welcome-onboarding-page.component-BKqHYkv2.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-3yva-FyV.mjs.map → acorex-platform-module-auth-client-welcome-onboarding-page.component-BKqHYkv2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-CFpMZAwC.mjs → acorex-platform-module-auth-client-welcome-onboarding.command--Rr0duJS.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-CFpMZAwC.mjs.map → acorex-platform-module-auth-client-welcome-onboarding.command--Rr0duJS.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/i18n/en-AU/auth.json +70 -5
- package/i18n/en-US/auth.json +70 -5
- package/i18n/fa-IR/auth.json +70 -5
- package/package.json +3 -2
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CQEt9bXJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-DRwzhNlO.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs +0 -17
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs +0 -165
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-remove-pin-code.command-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-remove-pin-code.command-D9uLV6je.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/remove-pin-code.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {AXMSecurityManagementUsersEntityModel} from '@acorex-platform/module-security-management-client/contracts'\nimport {RootConfig as SecurityManagementRootConfig} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject, Injectable } from '@angular/core';\nimport { defaultTo, get, isEmpty, isNil } from 'lodash';\n\nimport { AXPIdleLockService } from '../shared/services/idle-lock.service';\n\n//#region ---- Remove PIN code command ----\n\n/** Removes the current user's security PIN after confirmation. */\n@Injectable({ providedIn: 'root' })\nexport class AXPRemovePinCodeCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly dialogService = inject(AXDialogService);\n private readonly translateService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly entityService = inject(AXPEntityService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly idleLockService = inject(AXPIdleLockService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n if (!(await this.userHasPinCode())) {\n await this.showError('@auth:profile-page.commands.remove-pin-code.messages.no-pin');\n return { success: false };\n }\n\n const dialogResult = await this.dialogService.confirm(\n await this.translateService.translateAsync('@auth:profile-page.commands.remove-pin-code.dialog.title'),\n await this.translateService.translateAsync('@auth:profile-page.commands.remove-pin-code.dialog.description'),\n 'warning',\n 'horizontal',\n false,\n 'cancel',\n );\n\n if (!dialogResult.result) {\n return { success: false };\n }\n\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n await this.showError('@auth:profile-page.commands.remove-pin-code.messages.not-signed-in');\n return { success: false };\n }\n\n try {\n await this.entityService\n .withEntity(SecurityManagementRootConfig.module.name, SecurityManagementRootConfig.entities.users.name)\n .data<string, AXMSecurityManagementUsersEntityModel>()\n .update(userId, { pinCode: '', pinChangedAt: null });\n\n if (this.idleLockService.canLock()) {\n await this.idleLockService.notifyPinChanged();\n }\n\n const successTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.remove-pin-code.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n\n return { success: true, kind: 'object', data: undefined };\n } catch (error) {\n console.error('Failed to remove security PIN', error);\n await this.showError('@auth:profile-page.commands.remove-pin-code.messages.remove-failed');\n return { success: false };\n }\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private async userHasPinCode(): Promise<boolean> {\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n return false;\n }\n\n try {\n const user = await this.entityService\n .withEntity(SecurityManagementRootConfig.module.name, SecurityManagementRootConfig.entities.users.name)\n .data<string, AXMSecurityManagementUsersEntityModel>()\n .byKey(userId);\n\n return !isEmpty(defaultTo(get(user, 'pinCode'), ''));\n } catch (error) {\n console.error('Failed to load security PIN for remove command', error);\n return false;\n }\n }\n\n private async showError(messageKey: string): Promise<void> {\n const content = await this.translateService.translateAsync(messageKey);\n const title = await this.translateService.translateAsync('@general:messages.generic.error.title');\n this.toastService.show({ color: 'danger', title, content, closeButton: true });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig"],"mappings":";;;;;;;;;;;AAeA;AAEA;MAEa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAC/C,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAoF9D,IAAA;;;AA9EC,IAAA,MAAM,OAAO,GAAA;QACX,IAAI,EAAE,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE;AAClC,YAAA,MAAM,IAAI,CAAC,SAAS,CAAC,6DAA6D,CAAC;AACnF,YAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B;AAEA,QAAA,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CACnD,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,0DAA0D,CAAC,EACtG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,gEAAgE,CAAC,EAC5G,SAAS,E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,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cADV,MAAM,EAAA,CAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
|
|
@@ -12,7 +12,7 @@ import { AXPasswordBoxModule } from '@acorex/components/password-box';
|
|
|
12
12
|
import { AXToastService } from '@acorex/components/toast';
|
|
13
13
|
import * as i5 from '@acorex/core/translation';
|
|
14
14
|
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i5$1 from '@angular/common';
|
|
16
16
|
import { CommonModule } from '@angular/common';
|
|
17
17
|
import * as i0 from '@angular/core';
|
|
18
18
|
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
@@ -96,7 +96,7 @@ class AXPResetPasswordComponent {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPResetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
99
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPResetPasswordComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i2.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.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: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "pipe", type:
|
|
99
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPResetPasswordComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-password-box{display:block;width:100%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i2.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.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: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
100
100
|
}
|
|
101
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPResetPasswordComponent, decorators: [{
|
|
102
102
|
type: Component,
|
|
@@ -112,4 +112,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
112
112
|
}] });
|
|
113
113
|
|
|
114
114
|
export { AXPResetPasswordComponent };
|
|
115
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-reset-password.component-
|
|
115
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/reset-password/reset-password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/reset-password/reset-password.component.html"],"sourcesContent":["import { commandMessageTextForError } from '@acorex-platform/framework-client/common';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXMSecurityManagementServerCommands } from '@acorex-platform/module-security-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\n@Component({\n templateUrl: './reset-password.component.html',\n styleUrls: ['./reset-password.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n AXFormModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPResetPasswordComponent implements OnInit {\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n\n protected token = '';\n protected newPassword = '';\n protected confirmPassword = '';\n protected submitting = false;\n\n ngOnInit(): void {\n this.token = this.route.snapshot.queryParamMap.get('token') ?? '';\n }\n\n protected async submit(): Promise<void> {\n if (this.submitting) {\n return;\n }\n\n const token = this.token.trim();\n if (!token) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.invalid-link')\n .catch(() => 'This password reset link is invalid.');\n this.toast.show({ color: 'danger', title: msg, content: msg });\n return;\n }\n\n if (!this.newPassword || this.newPassword.length < 6) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.password-too-short')\n .catch(() => 'Password must be at least 6 characters.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n if (this.newPassword !== this.confirmPassword) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.password-mismatch')\n .catch(() => 'Passwords do not match.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n this.submitting = true;\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.CompletePasswordReset,\n { token, newPassword: this.newPassword },\n );\n\n if (!result?.success) {\n throw new Error(\n commandMessageTextForError(result?.message?.text) || 'Reset failed',\n );\n }\n\n const [title, content] = await Promise.all([\n this.translation\n .translateAsync('@auth:reset-password.success.title')\n .catch(() => 'Password Updated'),\n this.translation\n .translateAsync('@auth:reset-password.success.description')\n .catch(() => 'Your password has been updated. You can sign in now.'),\n ]);\n this.toast.show({ color: 'success', title, content, timeOut: 4000 });\n await this.router.navigate(['/auth/login']);\n } catch (error) {\n const [title, fallbackContent] = await Promise.all([\n this.translation\n .translateAsync('@auth:reset-password.error.title')\n .catch(() => 'Reset Failed'),\n this.translation\n .translateAsync('@auth:reset-password.error.description')\n .catch(\n () => 'Unable to reset password. The link may have expired.',\n ),\n ]);\n const content =\n error instanceof Error && error.message\n ? error.message\n : fallbackContent;\n this.toast.show({ color: 'danger', title, content, timeOut: 5000 });\n } finally {\n this.submitting = false;\n }\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n"],"names":["i3","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;MA2Ba,yBAAyB,CAAA;AAdtC,IAAA,WAAA,GAAA;AAemB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;QAEjD,IAAA,CAAA,KAAK,GAAG,EAAE;QACV,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,eAAe,GAAG,EAAE;QACpB,IAAA,CAAA,UAAU,GAAG,KAAK;AA+E7B,IAAA;IA7EC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;IACnE;AAEU,IAAA,MAAM,MAAM,GAAA;AACpB,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB;QACF;QAEA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QAC/B,IAAI,CAAC,KAAK,EAAE;AACV,YAAA,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC;iBACpB,cAAc,CAAC,mCAAmC;AAClD,iBAAA,KAAK,CAAC,MAAM,sCAAsC,CAAC;AACtD,YAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAA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SAAS;sCAGS,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC;wBACP,YAAY;wBACZ,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,aAAa;wBACb,mBAAmB;wBACnB,YAAY;AACb,qBAAA,EAAA,QAAA,EAAA,kwDAAA,EAAA,MAAA,EAAA,CAAA,kUAAA,CAAA,EAAA;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/reset-password/reset-password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/reset-password/reset-password.component.html"],"sourcesContent":["import { commandMessageTextForError } from '@acorex-platform/framework-client/common';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXMSecurityManagementServerCommands } from '@acorex-platform/module-security-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\n@Component({\n templateUrl: './reset-password.component.html',\n styleUrls: ['./reset-password.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n AXFormModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPResetPasswordComponent implements OnInit {\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n\n protected token = '';\n protected newPassword = '';\n protected confirmPassword = '';\n protected submitting = false;\n\n ngOnInit(): void {\n this.token = this.route.snapshot.queryParamMap.get('token') ?? '';\n }\n\n protected async submit(): Promise<void> {\n if (this.submitting) {\n return;\n }\n\n const token = this.token.trim();\n if (!token) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.invalid-link')\n .catch(() => 'This password reset link is invalid.');\n this.toast.show({ color: 'danger', title: msg, content: msg });\n return;\n }\n\n if (!this.newPassword || this.newPassword.length < 6) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.password-too-short')\n .catch(() => 'Password must be at least 6 characters.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n if (this.newPassword !== this.confirmPassword) {\n const msg = await this.translation\n .translateAsync('@auth:reset-password.password-mismatch')\n .catch(() => 'Passwords do not match.');\n this.toast.show({ color: 'warning', title: msg, content: msg });\n return;\n }\n\n this.submitting = true;\n try {\n const result = await this.commandService.execute(\n AXMSecurityManagementServerCommands.CompletePasswordReset,\n { token, newPassword: this.newPassword },\n );\n\n if (!result?.success) {\n throw new Error(\n commandMessageTextForError(result?.message?.text) || 'Reset failed',\n );\n }\n\n const [title, content] = await Promise.all([\n this.translation\n .translateAsync('@auth:reset-password.success.title')\n .catch(() => 'Password Updated'),\n this.translation\n .translateAsync('@auth:reset-password.success.description')\n .catch(() => 'Your password has been updated. You can sign in now.'),\n ]);\n this.toast.show({ color: 'success', title, content, timeOut: 4000 });\n await this.router.navigate(['/auth/login']);\n } catch (error) {\n const [title, fallbackContent] = await Promise.all([\n this.translation\n .translateAsync('@auth:reset-password.error.title')\n .catch(() => 'Reset Failed'),\n this.translation\n .translateAsync('@auth:reset-password.error.description')\n .catch(\n () => 'Unable to reset password. The link may have expired.',\n ),\n ]);\n const content =\n error instanceof Error && error.message\n ? error.message\n : fallbackContent;\n this.toast.show({ color: 'danger', title, content, timeOut: 5000 });\n } finally {\n this.submitting = false;\n }\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:reset-password.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:reset-password.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.new-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"newPassword\"\n [(value)]=\"newPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:reset-password.confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n name=\"confirmPassword\"\n [(value)]=\"confirmPassword\"\n [disabled]=\"submitting\"\n ></ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:reset-password.submit' | translate | async\"\n [disabled]=\"submitting\"\n (onClick)=\"submit()\"\n ></ax-button>\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n </div>\n</ng-container>\n"],"names":["i3","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;MA2Ba,yBAAyB,CAAA;AAdtC,IAAA,WAAA,GAAA;AAemB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;QAEjD,IAAA,CAAA,KAA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EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACb,mBAAmB,8GACnB,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAGH,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAdrC,SAAS;sCAGS,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC;wBACP,YAAY;wBACZ,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBACd,aAAa;wBACb,mBAAmB;wBACnB,YAAY;AACb,qBAAA,EAAA,QAAA,EAAA,kwDAAA,EAAA,MAAA,EAAA,CAAA,kUAAA,CAAA,EAAA;;;"}
|
|
@@ -7,9 +7,9 @@ import { AXLabelModule } from '@acorex/components/label';
|
|
|
7
7
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
8
8
|
import { AXPasswordBoxModule } from '@acorex/components/password-box';
|
|
9
9
|
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
10
|
-
import * as i5 from '@acorex/core/translation';
|
|
10
|
+
import * as i5$1 from '@acorex/core/translation';
|
|
11
11
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
12
|
-
import * as
|
|
12
|
+
import * as i5 from '@angular/common';
|
|
13
13
|
import { CommonModule } from '@angular/common';
|
|
14
14
|
import * as i0 from '@angular/core';
|
|
15
15
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
@@ -27,7 +27,7 @@ const MODULES = [
|
|
|
27
27
|
];
|
|
28
28
|
class AXPRegisterResultComponent {
|
|
29
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPRegisterResultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPRegisterResultComponent, isStandalone: true, selector: "ng-component", providers: [], ngImport: i0, template: "<div class=\"text-center mb-6\">\n <ax-icon class=\"fa-solid fa-circle-check text-5xl mb-4 text-success-500\"> </ax-icon>\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:register-wizard.result.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:register-wizard.result.description' | translate | async }}\n </p>\n <ax-button\n color=\"primary\"\n class=\"mt-10\"\n [text]=\"('@auth:register-wizard.result.continue-dashboard' | translate | async) ?? ''\"\n >\n </ax-button>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXPasswordBoxModule }, { 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: AXLabelModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "pipe", type:
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPRegisterResultComponent, isStandalone: true, selector: "ng-component", providers: [], ngImport: i0, template: "<div class=\"text-center mb-6\">\n <ax-icon class=\"fa-solid fa-circle-check text-5xl mb-4 text-success-500\"> </ax-icon>\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:register-wizard.result.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:register-wizard.result.description' | translate | async }}\n </p>\n <ax-button\n color=\"primary\"\n class=\"mt-10\"\n [text]=\"('@auth:register-wizard.result.continue-dashboard' | translate | async) ?? ''\"\n >\n </ax-button>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXPasswordBoxModule }, { 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: AXLabelModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
31
31
|
}
|
|
32
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPRegisterResultComponent, decorators: [{
|
|
33
33
|
type: Component,
|
|
@@ -35,4 +35,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
35
35
|
}] });
|
|
36
36
|
|
|
37
37
|
export { AXPRegisterResultComponent };
|
|
38
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-result.component-
|
|
38
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-result.component-BS5uizi6.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-result.component-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-result.component-BS5uizi6.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/result/result.component.ts","../../../../libs/modules/auth/client/src/lib/pages/register/result/result.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\n\nconst MODULES = [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXLoadingModule,\n];\n\n@Component({\n templateUrl: './result.component.html',\n imports: [...MODULES],\n changeDetection: ChangeDetectionStrategy.Eager,\n providers: []\n})\nexport class AXPRegisterResultComponent {}\n","<div class=\"text-center mb-6\">\n <ax-icon class=\"fa-solid fa-circle-check text-5xl mb-4 text-success-500\"> </ax-icon>\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:register-wizard.result.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:register-wizard.result.description' | translate | async }}\n </p>\n <ax-button\n color=\"primary\"\n class=\"mt-10\"\n [text]=\"('@auth:register-wizard.result.continue-dashboard' | translate | async) ?? ''\"\n >\n </ax-button>\n</div>\n"],"names":["i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;;AAWA,MAAM,OAAO,GAAG;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;CAChB;MAQY,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,SAAA,EAFxB,EAAE,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3BjB,uiBAeA,2CDHE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,eAAe,8BACf,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,YAAA,EAAA,UAAA,EAAA,UAAA,EAAA,MAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACd,aAAa,8BACb,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACjB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FASJ,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBANtC,SAAS;8BAEG,CAAC,GAAG,OAAO,CAAC,EAAA,eAAA,EACJ,uBAAuB,CAAC,KAAK,aACnC,EAAE,EAAA,QAAA,EAAA,uiBAAA,EAAA;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var routes = [
|
|
2
|
+
{
|
|
3
|
+
path: 'forgot',
|
|
4
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs').then((c) => c.AXPForgetPasswordComponent),
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
path: 'reset-password',
|
|
8
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs').then((c) => c.AXPResetPasswordComponent),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
path: 'accept-invitation',
|
|
12
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs').then((c) => c.AXPAcceptInvitationComponent),
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
path: 'tenant-request',
|
|
16
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs').then((c) => c.AXPTenantRequestComponent),
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export { routes as default };
|
|
21
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-routes-Dw8YhBrw.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-routes-Dw8YhBrw.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/forgot/routes.ts"],"sourcesContent":["import { Route } from '@angular/router';\n\nexport default [\n {\n path: 'forgot',\n loadComponent: () =>\n import('./password/password.component').then((c) => c.AXPForgetPasswordComponent),\n },\n {\n path: 'reset-password',\n loadComponent: () =>\n import('../reset-password/reset-password.component').then((c) => c.AXPResetPasswordComponent),\n },\n {\n path: 'accept-invitation',\n loadComponent: () =>\n import('../accept-invitation/accept-invitation.component').then((c) => c.AXPAcceptInvitationComponent),\n },\n {\n path: 'tenant-request',\n loadComponent: () =>\n import('../tenant-request/tenant-request.component').then((c) => c.AXPTenantRequestComponent),\n },\n] as Route[];\n"],"names":[],"mappings":"AAEA,aAAe;AACb,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,aAAa,EAAE,MACb,OAAO,sEAA+B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,CAAC;AACpF,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,gBAAgB;AACtB,QAAA,aAAa,EAAE,MACb,OAAO,4EAA4C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AAChG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,mBAAmB;AACzB,QAAA,aAAa,EAAE,MACb,OAAO,+EAAkD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,CAAC;AACzG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,gBAAgB;AACtB,QAAA,aAAa,EAAE,MACb,OAAO,4EAA4C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,CAAC;AAChG,KAAA;CACS;;"}
|
|
@@ -14,7 +14,7 @@ import { AXPSettingsService, AXPPlatformBrandingService } from '@acorex-platform
|
|
|
14
14
|
import { AXPLogoComponent } from '@acorex-platform/framework-client/core';
|
|
15
15
|
import { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';
|
|
16
16
|
import { AXPRegionalSetting } from '@acorex-platform/framework-shared/core';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i5$1 from '@angular/common';
|
|
18
18
|
import { CommonModule } from '@angular/common';
|
|
19
19
|
import * as i0 from '@angular/core';
|
|
20
20
|
import { inject, signal, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
@@ -175,7 +175,7 @@ class AXPAuthSessionLimitComponent {
|
|
|
175
175
|
return { id: item.id, title, subtitle, metaLabel };
|
|
176
176
|
}
|
|
177
177
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthSessionLimitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
178
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthSessionLimitComponent, isStandalone: true, selector: "axp-auth-session-limit", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\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 <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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 <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\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", ".axp-session-limit__row{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: "component", type: i2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { 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 }); }
|
|
178
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthSessionLimitComponent, isStandalone: true, selector: "axp-auth-session-limit", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\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 <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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 <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\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", ".axp-session-limit__row{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: "component", type: i2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { 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: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
179
179
|
}
|
|
180
180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthSessionLimitComponent, decorators: [{
|
|
181
181
|
type: Component,
|
|
@@ -192,4 +192,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
192
192
|
}], ctorParameters: () => [] });
|
|
193
193
|
|
|
194
194
|
export { AXPAuthSessionLimitComponent };
|
|
195
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-session-limit.component-
|
|
195
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/session-limit/session-limit.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/session-limit/session-limit.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 { AXFormatService } from '@acorex/core/format';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPPlatformAuthRuntimeService,\n AXPSessionService,\n clearSessionLimitPendingTenant,\n readSessionLimitPendingTenant,\n storeSessionLimitPendingTenant,\n type AXPSessionLimitPendingTenant,\n type PlatformAuthOwnDeviceSessionDto,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService, AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPRegionalSetting } from '@acorex-platform/framework-shared/core';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n inject,\n signal,\n} from '@angular/core';\nimport { Router } from '@angular/router';\n\n//#region ----- Types -----\n\ninterface SessionLimitRowView {\n id: string;\n title: string;\n subtitle: string;\n metaLabel: string;\n}\n\n//#endregion\n\n@Component({\n selector: 'axp-auth-session-limit',\n templateUrl: './session-limit.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './session-limit.component.css'],\n imports: [\n CommonModule,\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 AXPAuthSessionLimitComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly router = inject(Router);\n private readonly sessionService = inject(AXPSessionService);\n private readonly authRuntime = inject(AXPPlatformAuthRuntimeService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly formatService = inject(AXFormatService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly platformTitle = signal('');\n protected readonly pendingTenant = signal<AXPSessionLimitPendingTenant | null>(null);\n protected readonly isLoading = signal(true);\n protected readonly isBusy = signal(false);\n protected readonly terminatingId = signal<string | null>(null);\n protected readonly sessions = signal<PlatformAuthOwnDeviceSessionDto[]>([]);\n protected readonly sessionViews = signal<SessionLimitRowView[]>([]);\n\n protected readonly user = this.sessionService.user;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n constructor() {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n void this.bootstrap();\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected async handleTerminate(sessionId: string): Promise<void> {\n if (this.isBusy()) {\n return;\n }\n\n this.isBusy.set(true);\n this.terminatingId.set(sessionId);\n try {\n await this.authRuntime.terminateOwnDeviceSession(sessionId);\n await this.reloadSessions();\n } catch {\n this.toastService.show({\n color: 'danger',\n content: await this.translationService.translateAsync(\n '@auth:session-limit.terminate-failed',\n ),\n timeOut: 5000,\n });\n } finally {\n this.isBusy.set(false);\n this.terminatingId.set(null);\n }\n }\n\n protected async handleContinue(): Promise<void> {\n const tenant = this.pendingTenant();\n if (!tenant || this.isBusy()) {\n return;\n }\n\n this.isBusy.set(true);\n try {\n await this.sessionService.updateToken({\n user: this.sessionService.user,\n tenant,\n });\n clearSessionLimitPendingTenant();\n await this.router.navigate(['/auth/account/app-chooser']);\n } catch {\n this.toastService.show({\n color: 'warning',\n content: await this.translationService.translateAsync(\n '@auth:session-limit.still-at-limit',\n ),\n timeOut: 5000,\n });\n await this.reloadSessions();\n } finally {\n this.isBusy.set(false);\n }\n }\n\n protected async handleBackToTenants(): Promise<void> {\n clearSessionLimitPendingTenant();\n await this.router.navigate(['/auth/account/tenant-chooser']);\n }\n\n protected async handleSignout(): Promise<void> {\n clearSessionLimitPendingTenant();\n await this.sessionService.signout();\n await this.router.navigate(['/auth/login']);\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async bootstrap(): Promise<void> {\n const navTenant = (\n this.router.getCurrentNavigation()?.extras?.state as\n | { tenant?: AXPSessionLimitPendingTenant }\n | undefined\n )?.tenant;\n const historyTenant = (history.state as { tenant?: AXPSessionLimitPendingTenant } | null)?.tenant;\n const stored = readSessionLimitPendingTenant();\n const tenant = navTenant ?? historyTenant ?? stored;\n\n if (!tenant?.id) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (!this.sessionService.user?.id || !this.sessionService.hasSessionCredentials()) {\n await this.router.navigate(['/auth/login']);\n return;\n }\n\n storeSessionLimitPendingTenant(tenant);\n this.pendingTenant.set(tenant);\n await this.reloadSessions();\n }\n\n private async reloadSessions(): Promise<void> {\n const tenant = this.pendingTenant();\n if (!tenant?.id) {\n this.isLoading.set(false);\n return;\n }\n\n this.isLoading.set(true);\n try {\n const items = await this.authRuntime.listOwnDeviceSessions(tenant.id);\n this.sessions.set(items);\n this.sessionViews.set(await Promise.all(items.map((item) => this.toRowView(item))));\n } catch {\n this.sessions.set([]);\n this.sessionViews.set([]);\n this.toastService.show({\n color: 'danger',\n content: await this.translationService.translateAsync('@auth:session-limit.load-failed'),\n timeOut: 5000,\n });\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private async toRowView(item: PlatformAuthOwnDeviceSessionDto): Promise<SessionLimitRowView> {\n const title = [item.deviceName, item.browser].filter(Boolean).join(' · ') || item.id;\n const subtitle = [item.operatingSystem, item.ipAddress].filter(Boolean).join(' · ');\n let metaLabel = '';\n if (item.lastLoginAt) {\n try {\n const dateFormat = await this.settingsService.get(AXPRegionalSetting.ShortDate);\n const timeFormat = await this.settingsService.get(AXPRegionalSetting.ShortTime);\n const format = `${dateFormat} ${timeFormat}`.trim();\n metaLabel = String(this.formatService.format(new Date(item.lastLoginAt), 'datetime', { format }));\n } catch {\n metaLabel = item.lastLoginAt;\n }\n }\n\n return { id: item.id, title, subtitle, metaLabel };\n }\n\n //#endregion\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\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 <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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 <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n"],"names":["i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA;MAmBa,4BAA4B,CAAA;;;AA8BvC,IAAA,WAAA,GAAA;;AA3BiB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,6BAA6B,CAAC;AACnD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;;;QAMnD,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EAAE;0FAAC;QAC1B,IAAA,CAA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AAsB;AACvB,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+6IAAA,EAAA,MAAA,EAAA,CAAA,4yIAAA,EAAA,uCAAA,CAAA,EAAA;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/session-limit/session-limit.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/session-limit/session-limit.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 { AXFormatService } from '@acorex/core/format';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPPlatformAuthRuntimeService,\n AXPSessionService,\n clearSessionLimitPendingTenant,\n readSessionLimitPendingTenant,\n storeSessionLimitPendingTenant,\n type AXPSessionLimitPendingTenant,\n type PlatformAuthOwnDeviceSessionDto,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService, AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPRegionalSetting } from '@acorex-platform/framework-shared/core';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n inject,\n signal,\n} from '@angular/core';\nimport { Router } from '@angular/router';\n\n//#region ----- Types -----\n\ninterface SessionLimitRowView {\n id: string;\n title: string;\n subtitle: string;\n metaLabel: string;\n}\n\n//#endregion\n\n@Component({\n selector: 'axp-auth-session-limit',\n templateUrl: './session-limit.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './session-limit.component.css'],\n imports: [\n CommonModule,\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 AXPAuthSessionLimitComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly router = inject(Router);\n private readonly sessionService = inject(AXPSessionService);\n private readonly authRuntime = inject(AXPPlatformAuthRuntimeService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly formatService = inject(AXFormatService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly platformTitle = signal('');\n protected readonly pendingTenant = signal<AXPSessionLimitPendingTenant | null>(null);\n protected readonly isLoading = signal(true);\n protected readonly isBusy = signal(false);\n protected readonly terminatingId = signal<string | null>(null);\n protected readonly sessions = signal<PlatformAuthOwnDeviceSessionDto[]>([]);\n protected readonly sessionViews = signal<SessionLimitRowView[]>([]);\n\n protected readonly user = this.sessionService.user;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n constructor() {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n void this.bootstrap();\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected async handleTerminate(sessionId: string): Promise<void> {\n if (this.isBusy()) {\n return;\n }\n\n this.isBusy.set(true);\n this.terminatingId.set(sessionId);\n try {\n await this.authRuntime.terminateOwnDeviceSession(sessionId);\n await this.reloadSessions();\n } catch {\n this.toastService.show({\n color: 'danger',\n content: await this.translationService.translateAsync(\n '@auth:session-limit.terminate-failed',\n ),\n timeOut: 5000,\n });\n } finally {\n this.isBusy.set(false);\n this.terminatingId.set(null);\n }\n }\n\n protected async handleContinue(): Promise<void> {\n const tenant = this.pendingTenant();\n if (!tenant || this.isBusy()) {\n return;\n }\n\n this.isBusy.set(true);\n try {\n await this.sessionService.updateToken({\n user: this.sessionService.user,\n tenant,\n });\n clearSessionLimitPendingTenant();\n await this.router.navigate(['/auth/account/app-chooser']);\n } catch {\n this.toastService.show({\n color: 'warning',\n content: await this.translationService.translateAsync(\n '@auth:session-limit.still-at-limit',\n ),\n timeOut: 5000,\n });\n await this.reloadSessions();\n } finally {\n this.isBusy.set(false);\n }\n }\n\n protected async handleBackToTenants(): Promise<void> {\n clearSessionLimitPendingTenant();\n await this.router.navigate(['/auth/account/tenant-chooser']);\n }\n\n protected async handleSignout(): Promise<void> {\n clearSessionLimitPendingTenant();\n await this.sessionService.signout();\n await this.router.navigate(['/auth/login']);\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async bootstrap(): Promise<void> {\n const navTenant = (\n this.router.getCurrentNavigation()?.extras?.state as\n | { tenant?: AXPSessionLimitPendingTenant }\n | undefined\n )?.tenant;\n const historyTenant = (history.state as { tenant?: AXPSessionLimitPendingTenant } | null)?.tenant;\n const stored = readSessionLimitPendingTenant();\n const tenant = navTenant ?? historyTenant ?? stored;\n\n if (!tenant?.id) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (!this.sessionService.user?.id || !this.sessionService.hasSessionCredentials()) {\n await this.router.navigate(['/auth/login']);\n return;\n }\n\n storeSessionLimitPendingTenant(tenant);\n this.pendingTenant.set(tenant);\n await this.reloadSessions();\n }\n\n private async reloadSessions(): Promise<void> {\n const tenant = this.pendingTenant();\n if (!tenant?.id) {\n this.isLoading.set(false);\n return;\n }\n\n this.isLoading.set(true);\n try {\n const items = await this.authRuntime.listOwnDeviceSessions(tenant.id);\n this.sessions.set(items);\n this.sessionViews.set(await Promise.all(items.map((item) => this.toRowView(item))));\n } catch {\n this.sessions.set([]);\n this.sessionViews.set([]);\n this.toastService.show({\n color: 'danger',\n content: await this.translationService.translateAsync('@auth:session-limit.load-failed'),\n timeOut: 5000,\n });\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private async toRowView(item: PlatformAuthOwnDeviceSessionDto): Promise<SessionLimitRowView> {\n const title = [item.deviceName, item.browser].filter(Boolean).join(' · ') || item.id;\n const subtitle = [item.operatingSystem, item.ipAddress].filter(Boolean).join(' · ');\n let metaLabel = '';\n if (item.lastLoginAt) {\n try {\n const dateFormat = await this.settingsService.get(AXPRegionalSetting.ShortDate);\n const timeFormat = await this.settingsService.get(AXPRegionalSetting.ShortTime);\n const format = `${dateFormat} ${timeFormat}`.trim();\n metaLabel = String(this.formatService.format(new Date(item.lastLoginAt), 'datetime', { format }));\n } catch {\n metaLabel = item.lastLoginAt;\n }\n }\n\n return { id: item.id, title, subtitle, metaLabel };\n }\n\n //#endregion\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\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 <!-- ----- Session limit card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while sessions load ----- -->\n @if (isLoading()) {\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 <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:session-limit.title' | translate | async }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:session-limit.description' | translate | async }}\n </p>\n }\n\n <div class=\"mt-3 w-full flex flex-col gap-3\">\n <!-- ----- Active sessions to terminate ----- -->\n @if (isLoading()) {\n @for (n of [1, 2]; track n) {\n <ax-skeleton [animated]=\"true\" class=\"h-16 w-full rounded-md\"></ax-skeleton>\n }\n } @else if (sessionViews().length === 0) {\n <p class=\"text-sm text-neutral-500 m-0\">\n {{ '@auth:session-limit.empty' | translate | async }}\n </p>\n } @else {\n @for (item of sessionViews(); track item.id) {\n <div\n class=\"axp-session-limit__row flex gap-3 items-center text-start p-3 rounded-md border border-neutral-100 dark:border-neutral-800\"\n [class.opacity-50]=\"isBusy() && terminatingId() !== item.id\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"font-medium text-sm md:text-base truncate\">{{ item.title }}</div>\n @if (item.subtitle) {\n <div class=\"font-normal text-xs md:text-sm text-neutral-500 truncate\">\n {{ item.subtitle }}\n </div>\n }\n @if (item.metaLabel) {\n <p class=\"m-0 font-normal text-xs text-neutral-400\">{{ item.metaLabel }}</p>\n }\n </div>\n <ax-button\n look=\"outline\"\n color=\"danger\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.terminate' | translate | async) ?? ''\"\n (onClick)=\"handleTerminate(item.id)\"\n >\n @if (terminatingId() === item.id) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n }\n }\n\n <ax-button\n class=\"w-full\"\n color=\"primary\"\n [disabled]=\"isBusy() || isLoading()\"\n [text]=\"('@auth:session-limit.continue' | translate | async) ?? ''\"\n (onClick)=\"handleContinue()\"\n >\n @if (isBusy() && !terminatingId()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button\n class=\"w-full\"\n look=\"blank\"\n [disabled]=\"isBusy()\"\n [text]=\"('@auth:session-limit.back-tenants' | translate | async) ?? ''\"\n (onClick)=\"handleBackToTenants()\"\n ></ax-button>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n"],"names":["i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA;MAmBa,4BAA4B,CAAA;;;AA8BvC,IAAA,WAAA,GAAA;;AA3BiB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,6BAA6B,CAAC;AACnD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;;;QAMnD,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EAAE;0FAAC;QAC1B,IAAA,CAAA,aAAa,GAAG,MAAM,CAAsC,IAAI;0FAAC;QACjE,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,IAAI;sFAAC;QACxB,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,KAAK;mFAAC;QACtB,IAAA,CAAA,aAAa,GAAG,MAAM,CAAgB,IAAI;0FAAC;QAC3C,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAoC,EAAE;qFAAC;QACxD,IAAA,CAAA,YAAY,GAAG,MAAM,CAAwB,EAAE;yFAAC;AAEhD,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI;QAOhD,KAAK,IAAI,CAAC,gBAA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