@acorex-platform/module-auth-client 0.0.37 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs +179 -0
- package/fesm2022/acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-DXunSlPC.mjs} +1150 -107
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-DXunSlPC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-CjWofUGR.mjs → acorex-platform-module-auth-client-app-chooser.component-CxYe1hmk.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-CjWofUGR.mjs.map → acorex-platform-module-auth-client-app-chooser.component-CxYe1hmk.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs → acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs} +3 -3
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-BqU3jYV9.mjs → acorex-platform-module-auth-client-change-password.command-ci4weP0r.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-BqU3jYV9.mjs.map → acorex-platform-module-auth-client-change-password.command-ci4weP0r.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs → acorex-platform-module-auth-client-change-photo.command-CuieLa-Q.mjs} +71 -21
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CuieLa-Q.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs +69 -0
- package/fesm2022/acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +12 -7
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs → acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs} +25 -4
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-B1bKcSVQ.mjs → acorex-platform-module-auth-client-get-user-activity.query-B6se2sJt.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-B1bKcSVQ.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-B6se2sJt.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-DKtlBzS7.mjs → acorex-platform-module-auth-client-lock-screen.command-BRGUe-5j.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-DKtlBzS7.mjs.map → acorex-platform-module-auth-client-lock-screen.command-BRGUe-5j.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-login.module-CXl61yOu.mjs → acorex-platform-module-auth-client-login.module-DasQfX02.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-login.module-CXl61yOu.mjs.map → acorex-platform-module-auth-client-login.module-DasQfX02.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-manage-two-factor.command-t4UEDms3.mjs +445 -0
- package/fesm2022/acorex-platform-module-auth-client-manage-two-factor.command-t4UEDms3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-master.layout-D7zUm7aL.mjs → acorex-platform-module-auth-client-master.layout-hYj9JwHA.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-master.layout-D7zUm7aL.mjs.map → acorex-platform-module-auth-client-master.layout-hYj9JwHA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-fdWC08nA.mjs → acorex-platform-module-auth-client-oauth-callback.component-DWnljN18.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-fdWC08nA.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-DWnljN18.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-DKvyMkhl.mjs → acorex-platform-module-auth-client-open-sessions.command-C9ue1SMV.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-DKvyMkhl.mjs.map → acorex-platform-module-auth-client-open-sessions.command-C9ue1SMV.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs +28 -0
- package/fesm2022/acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs → acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs.map → acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BoWDVby5.mjs → acorex-platform-module-auth-client-password.component-CkUMxpZm.mjs} +39 -9
- package/fesm2022/acorex-platform-module-auth-client-password.component-CkUMxpZm.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-CFaRGMKu.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-DTfyVXWu.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-CFaRGMKu.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-DTfyVXWu.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DWNbDzDd.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DWNbDzDd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-1Spuexhb.mjs → acorex-platform-module-auth-client-profile-page-component.provider-i1SGrccV.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-1Spuexhb.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-i1SGrccV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs → acorex-platform-module-auth-client-profile-page.component-DNtpDf8J.mjs} +9 -7
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-DNtpDf8J.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-pwa-install.component-DnDHvNsF.mjs +84 -0
- package/fesm2022/acorex-platform-module-auth-client-pwa-install.component-DnDHvNsF.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs → acorex-platform-module-auth-client-register-password.component-C_Vu3KS-.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs.map → acorex-platform-module-auth-client-register-password.component-C_Vu3KS-.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs → acorex-platform-module-auth-client-register.module-KlxTQevf.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs.map → acorex-platform-module-auth-client-register.module-KlxTQevf.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs → acorex-platform-module-auth-client-remove-pin-code.command-0kRQprWO.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-0kRQprWO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs → acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs.map → acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs → acorex-platform-module-auth-client-result.component-PhPaEAgh.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs.map → acorex-platform-module-auth-client-result.component-PhPaEAgh.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs +17 -0
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs → acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map → acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-cDCrwNRV.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-CJJmgXqu.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-cDCrwNRV.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-CJJmgXqu.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-FjM1kzUj.mjs → acorex-platform-module-auth-client-set-pin-code.command-CzUeATL1.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-FjM1kzUj.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-CzUeATL1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BgEgdFxQ.mjs → acorex-platform-module-auth-client-set-pin-code.component-DFzKiM1U.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BgEgdFxQ.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-DFzKiM1U.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs → acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs} +18 -13
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs → acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs} +7 -1
- package/fesm2022/acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-B8CNqHx5.mjs → acorex-platform-module-auth-client-tenant-chooser.component-HqU75mfO.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-B8CNqHx5.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-HqU75mfO.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs +48 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CfZo5Jl0.mjs +200 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CfZo5Jl0.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs → acorex-platform-module-auth-client-two-factor.module-DoghMqeQ.mjs} +10 -5
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-DoghMqeQ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Cqb27L-l.mjs → acorex-platform-module-auth-client-view-login-history.command-B35cTU-Z.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Cqb27L-l.mjs.map → acorex-platform-module-auth-client-view-login-history.command-B35cTU-Z.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs +165 -0
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding-page.component-5NtRLNn3.mjs +813 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding-page.component-5NtRLNn3.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding.command-Cms-SKKf.mjs +59 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding.command-Cms-SKKf.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-auth-client-contracts.d.ts +13 -3
- package/types/acorex-platform-module-auth-client.d.ts +60 -2
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-password.component-BoWDVby5.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-B6iJHJ60.mjs +0 -13
- package/fesm2022/acorex-platform-module-auth-client-routes-B6iJHJ60.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs +0 -40
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs","sources":["../../../../libs/modules/auth/client/src/lib/shared/layouts/blank/blank.layout.ts","../../../../libs/modules/auth/client/src/lib/shared/layouts/blank/blank.layout.html"],"sourcesContent":["import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\n@Component({\n templateUrl: 'blank.layout.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [RouterModule]\n})\nexport class AXPAuthBlankLayoutComponent implements OnInit {\n constructor() { }\n\n ngOnInit() { }\n}\n","<router-outlet></router-outlet>"],"names":[],"mappings":";;;;;MAQa,2BAA2B,CAAA;AACtC,IAAA,WAAA,GAAA,EAAgB;AAEhB,IAAA,QAAQ,KAAK;8GAHF,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECRxC,iCAA+B,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDMjB,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAEb,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,SAAS;AAEW,YAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,iCAAA,EAAA;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/change-photo.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPRuntimeCommandResult,\n type AXPRuntimeMessage,\n} from '@acorex-platform/framework-shared/core';\nimport { extractRequestErrorInfo, platformErrorI18nKey } from '@acorex-platform/framework-client/common';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPImageEditorService } from '@acorex-platform/framework-client/layout/components';\nimport { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';\nimport { AXFileService } from '@acorex/core/file';\n\nimport { inject, Injectable } from '@angular/core';\nimport { isNil } from 'lodash';\n\nimport { AXPUserAvatarSyncService } from '../shared/services/user-avatar-sync.service';\n\n//#region ---- Change photo command ----\n\nexport type AXPChangePhotoCommandMode = 'upload' | 'manage';\n\nexport type AXPChangePhotoCommandInput = {\n mode?: AXPChangePhotoCommandMode;\n};\n\nconst PROFILE_PHOTO_DIALOG_PREVIEW_SIZE = {\n small: { width: '100%', height: 'auto' },\n large: { width: '100%', height: 'auto' },\n} as const;\n\n/** Self-service profile photo upload, replace, and removal backed by file storage. */\n@Injectable({ providedIn: 'root' })\nexport class AXPChangePhotoCommand implements AXPCommand<AXPChangePhotoCommandInput, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly fileService = inject(AXFileService);\n private readonly imageEditor = inject(AXPImageEditorService);\n private readonly avatarSync = inject(AXPUserAvatarSyncService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(input: AXPChangePhotoCommandInput = {}): AXPCommandExecuteResultPromise<void> {\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n return {\n success: false,\n message: {\n text: '@auth:profile-page.commands.change-photo.messages.not-signed-in',\n },\n };\n }\n\n const mode = input.mode;\n if (mode === 'upload') {\n return this.executeUploadFlow(userId);\n }\n\n return this.executeManageFlow(userId);\n }\n\n private async executeUploadFlow(userId: string): AXPCommandExecuteResultPromise<void> {\n const editedFile = await this.pickAndEditPhoto();\n if (!editedFile) {\n return { success: false };\n }\n\n return this.uploadAvatarAndNotify(userId, editedFile);\n }\n\n private async executeManageFlow(userId: string): AXPCommandExecuteResultPromise<void> {\n const previewUrl = await this.resolveDialogPreviewUrl(userId);\n if (!previewUrl) {\n return this.executeUploadFlow(userId);\n }\n\n try {\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void>>((dialog) => {\n dialog\n .setTitle('@auth:profile-page.commands.change-photo.dialog.title')\n .setSize('sm')\n .setCloseButton(true)\n .setContext({ previewUrl })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .setAlignItems('center')\n .setJustifyContent('center')\n .setOptions({ width: '100%', maxWidth: '100%', overflowX: 'hidden' });\n flex.customWidget('image', {\n path: 'previewUrl',\n type: 'profile-photo',\n readonly: true,\n enablePreviewClick: false,\n responsiveSize: PROFILE_PHOTO_DIALOG_PREVIEW_SIZE,\n });\n });\n })\n .setActions((actions) => {\n actions.custom({\n title: '@auth:profile-page.commands.change-photo.actions.remove',\n color: 'danger',\n position: 'prefix',\n command: { name: 'remove' },\n });\n actions.custom({\n title: '@auth:profile-page.commands.change-photo.actions.change',\n color: 'primary',\n command: { name: 'change' },\n });\n })\n .onAction(async (dialogRef) => {\n const action = dialogRef.action();\n\n if (action === 'remove') {\n dialogRef.setLoading(true);\n try {\n await this.avatarSync.removeAvatar(userId);\n return {\n success: true,\n kind: 'object',\n data: undefined,\n message: {\n type: 'success',\n text: '@auth:profile-page.commands.change-photo.messages.removed',\n },\n };\n } catch (error) {\n const info = extractRequestErrorInfo(error);\n return {\n success: false,\n keepDialogOpen: true,\n message: {\n type: 'error',\n code: info?.code,\n text:\n platformErrorI18nKey(info?.code) ??\n '@auth:profile-page.commands.change-photo.messages.failed',\n details: info?.details,\n },\n };\n } finally {\n dialogRef.setLoading(false);\n }\n }\n\n if (action === 'change') {\n const editedFile = await this.pickAndEditPhoto();\n if (!editedFile) {\n return { success: false, keepDialogOpen: true };\n }\n\n dialogRef.setLoading(true);\n try {\n const uploadResult = await this.uploadAvatarAndNotify(userId, editedFile);\n if (!uploadResult.success) {\n // Dialog stays open — toast middleware has not finished execute yet.\n await this.toastCommandMessage(uploadResult.message);\n return { ...uploadResult, keepDialogOpen: true };\n }\n return uploadResult;\n } finally {\n dialogRef.setLoading(false);\n }\n }\n\n return { success: false, keepDialogOpen: true };\n });\n })\n .show();\n\n return result ?? { success: false };\n } finally {\n if (previewUrl?.startsWith('blob:')) {\n URL.revokeObjectURL(previewUrl);\n }\n }\n }\n\n private async resolveDialogPreviewUrl(userId: string): Promise<string | null> {\n try {\n const blob = await this.avatarSync.getCurrentAvatarBlob(userId);\n if (!blob) {\n return null;\n }\n return URL.createObjectURL(blob);\n } catch {\n return null;\n }\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private async uploadAvatarAndNotify(\n userId: string,\n file: File,\n ): AXPCommandExecuteResultPromise<void> {\n try {\n await this.avatarSync.uploadAndSetAvatar(userId, file);\n return { success: true, kind: 'object', data: undefined, message: {\n type: 'success',\n text: '@auth:profile-page.commands.change-photo.messages.success',\n },\n };\n } catch (error) {\n const info = extractRequestErrorInfo(error);\n return {\n success: false,\n message: {\n type: 'error',\n code: info?.code,\n text:\n platformErrorI18nKey(info?.code) ??\n '@auth:profile-page.commands.change-photo.messages.failed',\n details: info?.details,\n },\n };\n }\n }\n\n private async toastCommandMessage(message: AXPRuntimeMessage | undefined): Promise<void> {\n const text = message?.text;\n let content: string | null = null;\n if (typeof text === 'string' && text.trim()) {\n content = text.startsWith('@')\n ? await this.translateService.translateAsync(text)\n : text;\n } else if (text && typeof text === 'object') {\n content = this.translateService.resolve(text);\n } else {\n const codeKey = platformErrorI18nKey(message?.code);\n if (codeKey) {\n content = await this.translateService.translateAsync(codeKey);\n }\n }\n if (!content) {\n return;\n }\n const title = await this.translateService.translateAsync(\n message?.type === 'success'\n ? '@general:messages.generic.success.title'\n : '@general:messages.generic.error.title',\n );\n this.toastService.show({\n color: message?.type === 'success' ? 'success' : 'danger',\n title,\n content,\n });\n }\n\n private async pickAndEditPhoto(): Promise<File | null> {\n const files = await this.fileService.choose({ accept: 'image/png, image/jpeg, image/webp' });\n const picked = files[0];\n if (!picked) {\n return null;\n }\n\n const editedBlob = await this.imageEditor.open({\n image: picked,\n title: '@auth:profile-page.commands.change-photo.dialog.editor-title',\n look: 'blank',\n aspectRatio: '1',\n });\n\n if (!editedBlob) {\n return null;\n }\n\n return new File([editedBlob], picked.name || 'profile-photo.png', {\n type: editedBlob.type || 'image/png',\n });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;;AA0BA,MAAM,iCAAiC,GAAG;IACxC,KAAK,EAAE,EAAE,KAAK,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C,EAAE,MAAM,CAAC,IAAI,IAAI,mBAAmB,EAAE;AAChE,YAAA,IAAI,EAAE,UAAU,CAAC,IAAI,IAAI,WAAW;AACrC,SAAA,CAAC;IACJ;8GA1PW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cADR,MAAM,EAAA,CAAA,CAAA;;2FACnB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
|
package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/edit-account-info.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {RootConfig as SecurityManagementRootConfig} from '@acorex-platform/module-security-management-client/contracts'\nimport {AXMSecurityManagementUsersEntityModel} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPSessionService, AXPUserProfileIdentityService } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject, Injectable } from '@angular/core';\nimport { defaultTo, isEmpty, isNil, trim } from 'lodash';\n\n//#region ---- Edit account info command ----\n\n/** Opens a self-service dialog for users without an employee record (display name editable; username read-only). */\n@Injectable({ providedIn: 'root' })\nexport class AXPEditAccountInfoCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly entityService = inject(AXPEntityService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly identityService = inject(AXPUserProfileIdentityService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.not-signed-in',\n ),\n },\n };\n }\n\n const userData = this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.users.name,\n )\n .data<string, AXMSecurityManagementUsersEntityModel>();\n\n const user = await userData.byKey(userId);\n if (isNil(user)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.user-not-found',\n ),\n },\n };\n }\n\n const dialogTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.dialog.title',\n );\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void>>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize('md')\n .setCloseButton(true)\n .setContext({\n username: defaultTo(user.username, ''),\n displayName: defaultTo(user.displayName, ''),\n })\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .formField('@general:terms.contact.username', (field) => {\n field.path('username');\n field.disabled(true);\n field.textBox({\n placeholder: '@general:terms.contact.username',\n });\n })\n .formField('@general:terms.common.display-name', (field) => {\n field.path('displayName');\n field.textBox({\n placeholder: '@general:terms.common.display-name',\n validations: [{ rule: 'required' }],\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@general:actions.save.title');\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n\n const form = dialogRef.context() as { username?: string; displayName?: string };\n const displayName = trim(defaultTo(form.displayName, ''));\n\n if (isEmpty(displayName)) {\n await this.showError('@auth:profile-page.commands.edit-account-info.messages.required-fields');\n throw new Error('Display name is required');\n }\n\n dialogRef.setLoading(true);\n try {\n await userData.update(userId, { displayName });\n\n await this.identityService.applySessionPatch({\n title: displayName,\n });\n\n const successTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.edit-account-info.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n dialogRef.close();\n return { success: true, kind: 'object', data: undefined };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n return result ?? { success: false };\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\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":";;;;;;;;;;AAaA;AAEA;MAEa,yBAAyB,CAAA;AADtC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAC/C,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,6BAA6B,CAAC;AACvD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AA8HjE,IAAA;;;AAxHC,IAAA,MAAM,OA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CAAC;IAChF;8GAnIW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-password.component-BoWDVby5.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/login/password/default-challenge.component.ts","../../../../libs/modules/auth/client/src/lib/pages/login/password/password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/login/password/password.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 { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPLoginChallengeComponentBase } from '@acorex-platform/framework-client/auth';\nimport { CommonModule } from '@angular/common';\nimport { Component, signal, ChangeDetectionStrategy } from '@angular/core';\n\n//#region ---- Default Challenge Component ----\n\n/**\n * Default built-in challenge component for login\n * Shows challenge image/content with an input field and refresh button\n */\n@Component({\n selector: 'axp-default-challenge',\n standalone: true,\n imports: [\n AXButtonModule,\n AXTextBoxModule,\n AXLabelModule,\n AXFormModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXTranslationModule,\n AXValidationModule,\n CommonModule,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n template: `\n <div class=\"flex flex-col gap-3 p-4 border rounded-md border-warning-300 bg-warning-50\">\n <!-- Challenge Image -->\n <div class=\"flex items-center justify-center gap-2\">\n @if (challengeData(); as challenge) {\n @if (challenge.contentType === 'image-base64') {\n <img\n [src]=\"'data:image/png;base64,' + challenge.content\"\n alt=\"Security Challenge\"\n class=\"h-12 border rounded\"\n />\n } @else if (challenge.contentType === 'image-url') {\n <img [src]=\"challenge.content\" alt=\"Security Challenge\" class=\"h-12 border rounded\" />\n } @else {\n <span class=\"font-mono text-lg p-2 border rounded bg-white\">\n {{ challenge.content }}\n </span>\n }\n }\n <!-- Refresh Challenge Button -->\n <ax-button\n look=\"blank\"\n color=\"primary\"\n class=\"ax-sm\"\n id=\"refresh-challenge\"\n (onClick)=\"onRefreshClick()\"\n [disabled]=\"isLoading()\"\n >\n @if (isLoading()) {\n <ax-loading></ax-loading>\n } @else {\n <ax-icon><i class=\"fa-solid fa-rotate\"></i></ax-icon>\n }\n </ax-button>\n </div>\n\n <!-- Challenge Response Input -->\n <ax-form-field>\n <ax-label>{{ '@auth:challenge.enter-code' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'challengeResponse'\"\n id=\"challenge-response\"\n [placeholder]=\"'@auth:challenge.placeholder' | translate | async\"\n [value]=\"response()\"\n (valueChange)=\"onResponseChange($event)\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n </div>\n `,\n})\nexport class AXPDefaultChallengeComponent extends AXPLoginChallengeComponentBase {\n //#region ---- Local State ----\n\n /** Local state for the response input */\n protected response = signal<string>('');\n\n //#endregion\n\n //#region ---- Event Handlers ----\n\n /**\n * Handles response input change\n */\n protected onResponseChange(value: string): void {\n this.response.set(value);\n this.responseChange.emit(value);\n }\n\n /**\n * Handles refresh button click\n */\n protected onRefreshClick(): void {\n this.refreshRequest.emit();\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormComponent, 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 {\n Component,\n ComponentRef,\n Injector,\n OnInit,\n Type,\n ViewChild,\n ViewContainerRef,\n effect,\n inject,\n signal,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXFormatService } from '@acorex/core/format';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport {\n AXPLoginChallengeComponentBase,\n AXPLoginChallengeData,\n AXPSessionService,\n AXP_LOGIN_CHALLENGE_PROVIDER,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPHomePageService, AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPRegionalSetting } from '@acorex-platform/framework-shared/core';\nimport { FormsModule } from '@angular/forms';\nimport { BehaviorSubject, firstValueFrom } from 'rxjs';\nimport { AXMAuthenticationTypes } from '../../../auth.config';\nimport { AXMAuthPlatformSettingsService } from '../../../auth-platform-settings.service';\nimport { AXPLoginExternalProvidersComponent } from '../login-external-providers.component';\nimport { AXPDefaultChallengeComponent } from './default-challenge.component';\n\n//#region ---- Module Imports ----\n\nconst MODULES = [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXCheckBoxModule,\n AXTranslationModule,\n AXLoadingModule,\n RouterModule,\n AXValidationModule,\n AXPLoginExternalProvidersComponent,\n];\n\n//#endregion\n\n@Component({\n templateUrl: './password.component.html',\n styleUrls: ['./password.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [...MODULES],\n})\nexport class AXPLoginPasswordComponent implements OnInit {\n //#region ---- Services & Dependencies ----\n\n private readonly authPlatformSettings = inject(AXMAuthPlatformSettingsService);\n private sessionService = inject(AXPSessionService);\n private activateRoute = inject(ActivatedRoute);\n private homePageService = inject(AXPHomePageService);\n private toastService = inject(AXToastService);\n private formatService = inject(AXFormatService);\n private settingsService = inject(AXPSettingsService);\n private translateService = inject(AXTranslationService);\n private router = inject(Router);\n protected injector = inject(Injector);\n\n protected readonly signupEnabled = this.authPlatformSettings.signupEnabled();\n\n /** Optional challenge provider - injected only if configured */\n private challengeProvider = inject(AXP_LOGIN_CHALLENGE_PROVIDER, { optional: true });\n\n //#endregion\n\n //#region ---- Form References ----\n\n @ViewChild(AXFormComponent)\n private form!: AXFormComponent;\n\n //#endregion\n\n //#region ---- Form Fields ----\n\n /** Label key for the first input field (username/email/mobile) */\n protected l1!: string;\n\n /** Label key for the second input field (password) */\n protected l2!: string;\n\n /** Value of the first input field (username/email) */\n protected v1 = '';\n\n /** Value of the second input field (password) */\n protected v2: string | null = '';\n\n /** Whether to keep the user logged in */\n protected isKeepLogin = false;\n\n //#endregion\n\n //#region ---- Challenge State ----\n\n /** ViewContainerRef for rendering the challenge component */\n @ViewChild('challengeContainer', { read: ViewContainerRef })\n private challengeContainerRef?: ViewContainerRef;\n\n /** Reference to the currently rendered challenge component */\n private challengeComponentRef?: ComponentRef<AXPLoginChallengeComponentBase>;\n\n /** Current challenge data from the server */\n protected challengeData = signal<AXPLoginChallengeData | null>(null);\n\n /** User's response to the challenge (e.g., CAPTCHA text) */\n protected challengeResponse = signal<string>('');\n\n /** Loading state for challenge refresh */\n protected isChallengeLoading = signal<boolean>(false);\n\n /**\n * Effect to render the challenge component when challenge data changes\n */\n private challengeRenderEffect = effect(() => {\n const data = this.challengeData();\n const isLoading = this.isChallengeLoading();\n\n // Wait for next tick to ensure ViewContainerRef is available\n setTimeout(() => {\n if (data && this.challengeContainerRef) {\n this.renderChallengeComponent(data, isLoading);\n } else {\n this.destroyChallengeComponent();\n }\n });\n });\n\n //#endregion\n\n //#region ---- Loading & Status State ----\n\n protected isLoading$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n protected submitText = 'signin.submit';\n\n //#endregion\n\n //#region ---- Computed Properties ----\n\n /** Check if a challenge is currently active and should be displayed */\n protected get hasChallengeActive(): boolean {\n return this.challengeData() !== null;\n }\n\n //#endregion\n\n //#region ---- Lifecycle Methods ----\n\n ngOnInit(): void {\n this.l2 = 'password';\n switch (this.authPlatformSettings.credentialType()) {\n case AXMAuthenticationTypes.EmailPassword:\n this.l1 = 'email';\n break;\n case AXMAuthenticationTypes.MobilePassword:\n this.l1 = 'mobile';\n break;\n case AXMAuthenticationTypes.UsernameEmailPassword:\n this.l1 = 'username-email';\n break;\n case AXMAuthenticationTypes.UsernamePassword:\n default:\n this.l1 = 'username';\n }\n }\n\n //#endregion\n\n //#region ---- Navigation Handlers ----\n\n protected handleForgotOnClick(): void {\n this.router.navigate(['/auth/forgot']);\n }\n\n protected handleRegisterOnClick(): void {\n this.router.navigate([this.authPlatformSettings.signupUrl()]);\n }\n\n //#endregion\n\n //#region ---- Login Handlers ----\n\n protected handleLoginClick(): void {\n const strategyName = this.authPlatformSettings.defaultStrategyName();\n this.sessionService.setStrategy(strategyName);\n const redirectUrl = this.activateRoute.snapshot.queryParams['redirectUrl'];\n\n this.form.validate().then(async (form) => {\n if (form.result) {\n this.isLoading$.next(true);\n this.submitText = 'processing';\n\n try {\n // Build credentials object with challenge data if active\n const currentChallenge = this.challengeData();\n const credentials = {\n strategy: strategyName,\n username: this.v1,\n password: this.v2!,\n rememberMe: this.isKeepLogin,\n ...(currentChallenge && {\n challengeId: currentChallenge.id,\n challengeResponse: this.challengeResponse(),\n }),\n };\n\n await this.sessionService.signin(credentials);\n\n // Check authentication status before navigation\n const isAuthenticated = await firstValueFrom(this.sessionService.isAuthenticated$);\n\n if (!isAuthenticated) {\n throw new Error('Authentication failed after signin');\n }\n\n // Clear challenge state on successful login\n this.clearChallengeState();\n\n await this.navigateAfterAuth(redirectUrl);\n } catch (error: unknown) {\n await this.handleLoginError(error);\n } finally {\n // Always unlock the button — success navigates away; failure must not stay \"processing\".\n this.submitText = 'signin.submit';\n this.isLoading$.next(false);\n }\n }\n });\n }\n\n private async navigateAfterAuth(redirectUrl?: string): Promise<void> {\n if (this.sessionService.tenant?.id == null) {\n await this.router.navigate(['/auth/account/tenant-chooser']);\n return;\n }\n\n if (this.sessionService.application?.id == null) {\n await this.router.navigate(['/auth/account/app-chooser']);\n return;\n }\n\n if (redirectUrl) {\n await this.router.navigate([redirectUrl]);\n return;\n }\n\n await this.homePageService.navigateTo();\n }\n\n /**\n * Handles login errors and checks if a challenge is required\n */\n private async handleLoginError(error: unknown): Promise<void> {\n const apiError = this.extractApiError(error);\n\n // Check if challenge provider wants to handle this error\n if (this.challengeProvider) {\n const checkResult = this.challengeProvider.checkResponse(error);\n\n if (checkResult?.required) {\n try {\n // Fetch challenge from server\n const challenge = await this.challengeProvider.getChallenge(checkResult.serverData);\n this.challengeData.set(challenge);\n this.challengeResponse.set('');\n\n // Show challenge message if provided\n if (checkResult.message) {\n this.toastService.show({\n color: 'warning',\n content: checkResult.message,\n timeOut: 5000,\n });\n }\n\n this.submitText = 'signin.submit';\n this.isLoading$.next(false);\n return;\n } catch (challengeError) {\n console.error('Failed to fetch challenge:', challengeError);\n }\n }\n }\n\n // Default error handling (do not add a second toast for requiresCaptcha —\n // that flag is for challenge UI; without a provider it duplicated the error toast)\n await this.showLoginError(error, apiError);\n }\n\n /**\n * Displays the login error message to the user\n */\n private async showLoginError(error: unknown, apiError?: Record<string, unknown> | null): Promise<void> {\n let errorMsg = 'An error occurred during sign in.';\n const resolvedApiError = apiError ?? this.extractApiError(error);\n const errorCode =\n (typeof resolvedApiError?.['error'] === 'string' && resolvedApiError['error']) ||\n (typeof resolvedApiError?.['code'] === 'string' && resolvedApiError['code']) ||\n '';\n\n if (errorCode === 'AccountLocked') {\n errorMsg = await this.formatAccountLockedMessage(resolvedApiError);\n } else if (\n errorCode === 'MAX_ACTIVE_DEVICE_SESSIONS' ||\n resolvedApiError?.['message'] === 'MAX_ACTIVE_DEVICE_SESSIONS'\n ) {\n errorMsg = await this.translateService.translateAsync(\n '@auth:signin.errors.max-active-device-sessions',\n );\n } else if (resolvedApiError?.['message'] && typeof resolvedApiError['message'] === 'string') {\n errorMsg = resolvedApiError['message'];\n } else if (error && typeof error === 'object') {\n const err = error as Record<string, unknown>;\n const errObj = err['error'] as Record<string, unknown> | undefined;\n\n errorMsg =\n (errObj?.['error_description'] as string) ||\n (errObj?.['error'] as string) ||\n (err['message'] as string) ||\n errorMsg;\n\n if (typeof errorMsg === 'object') {\n const msgObj = errorMsg as unknown as Record<string, unknown>;\n errorMsg = (msgObj['message'] as string) || (msgObj['error_description'] as string) || JSON.stringify(errorMsg);\n }\n }\n\n const remainingAttempts = resolvedApiError?.['remainingAttempts'];\n if (typeof remainingAttempts === 'number' && remainingAttempts >= 0 && errorCode !== 'AccountLocked') {\n errorMsg = `${errorMsg} (${remainingAttempts} attempt${remainingAttempts === 1 ? '' : 's'} remaining)`;\n }\n\n this.toastService.show({\n color: 'danger',\n content: errorMsg,\n timeOut: 5000,\n });\n\n console.error('Login error:', error);\n this.submitText = 'signin.submit';\n this.v2 = null;\n this.isLoading$.next(false);\n }\n\n private extractApiError(error: unknown): Record<string, unknown> | null {\n if (!error || typeof error !== 'object') {\n return null;\n }\n\n const err = error as Record<string, unknown>;\n if (err['apiError'] && typeof err['apiError'] === 'object') {\n return err['apiError'] as Record<string, unknown>;\n }\n\n // AuthApiError exposes captcha/lockout fields on `.apiError`.\n if ('apiError' in err && err['apiError'] == null && typeof err['message'] === 'string') {\n return { message: err['message'] };\n }\n\n if (err['error'] && typeof err['error'] === 'object') {\n return err['error'] as Record<string, unknown>;\n }\n\n return null;\n }\n\n private async formatAccountLockedMessage(apiError: Record<string, unknown> | null): Promise<string> {\n const details =\n apiError?.['details'] && typeof apiError['details'] === 'object'\n ? (apiError['details'] as Record<string, unknown>)\n : null;\n const lockedUntil =\n (typeof apiError?.['lockedUntil'] === 'string' && apiError['lockedUntil']) ||\n (typeof details?.['lockedUntil'] === 'string' && details['lockedUntil']) ||\n '';\n const formatted = lockedUntil ? await this.formatLockedUntil(lockedUntil) : '';\n\n if (formatted) {\n return this.translateService.translateAsync('@auth:signin.errors.account-locked-until', {\n params: { datetime: formatted },\n });\n }\n\n return this.translateService.translateAsync('@auth:signin.errors.account-locked');\n }\n\n private async formatLockedUntil(iso: string): Promise<string> {\n const parsed = Date.parse(iso);\n if (!Number.isFinite(parsed)) {\n return '';\n }\n\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 return this.formatService.format(new Date(parsed), 'datetime', { format });\n }\n\n //#endregion\n\n //#region ---- Challenge Handlers ----\n\n /**\n * Gets the challenge component type from provider or uses default\n */\n private getChallengeComponentType(): Type<AXPLoginChallengeComponentBase> {\n return this.challengeProvider?.getChallengeComponent() ?? AXPDefaultChallengeComponent;\n }\n\n /**\n * Renders the challenge component dynamically\n */\n private renderChallengeComponent(data: AXPLoginChallengeData, isLoading: boolean): void {\n if (!this.challengeContainerRef) return;\n\n // If component already exists, just update inputs\n if (this.challengeComponentRef) {\n this.updateChallengeComponentInputs(data, isLoading);\n return;\n }\n\n // Clear container and create new component\n this.challengeContainerRef.clear();\n const componentType = this.getChallengeComponentType();\n this.challengeComponentRef = this.challengeContainerRef.createComponent(componentType);\n\n // Set inputs\n this.updateChallengeComponentInputs(data, isLoading);\n\n // Subscribe to outputs\n const instance = this.challengeComponentRef.instance;\n instance.responseChange.subscribe((response: string) => {\n this.challengeResponse.set(response);\n });\n instance.refreshRequest.subscribe(() => {\n this.handleRefreshChallenge();\n });\n }\n\n /**\n * Updates the inputs of the challenge component\n */\n private updateChallengeComponentInputs(data: AXPLoginChallengeData, isLoading: boolean): void {\n if (!this.challengeComponentRef) return;\n\n this.challengeComponentRef.setInput('challengeData', data);\n this.challengeComponentRef.setInput('isLoading', isLoading);\n }\n\n /**\n * Destroys the challenge component\n */\n private destroyChallengeComponent(): void {\n if (this.challengeComponentRef) {\n this.challengeComponentRef.destroy();\n this.challengeComponentRef = undefined;\n }\n if (this.challengeContainerRef) {\n this.challengeContainerRef.clear();\n }\n }\n\n /**\n * Refreshes the challenge (e.g., user clicks \"new image\" button)\n */\n protected async handleRefreshChallenge(): Promise<void> {\n if (!this.challengeProvider) return;\n\n this.isChallengeLoading.set(true);\n try {\n const newChallenge = await this.challengeProvider.refreshChallenge();\n this.challengeData.set(newChallenge);\n this.challengeResponse.set('');\n } catch (error) {\n console.error('Failed to refresh challenge:', error);\n this.toastService.show({\n color: 'danger',\n content: 'Failed to load new challenge. Please try again.',\n timeOut: 3000,\n });\n } finally {\n this.isChallengeLoading.set(false);\n }\n }\n\n /**\n * Clears the challenge state (after successful login or manual clear)\n */\n private clearChallengeState(): void {\n this.challengeData.set(null);\n this.challengeResponse.set('');\n this.destroyChallengeComponent();\n }\n\n //#endregion\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:signin.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signin.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>{{ ('@auth:' + l1) | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"v1\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ '@auth:password' | translate | async }}</ax-label>\n <ax-password-box\n [name]=\"'password'\"\n id=\"password\"\n [autoComplete]=\"'current-password'\"\n [(value)]=\"v2\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n\n <!-- Challenge Section (CAPTCHA) - rendered via ViewContainerRef -->\n @if (hasChallengeActive) {\n <ng-container #challengeContainer></ng-container>\n }\n\n <div class=\"flex justify-between items-center\">\n <ax-check-box [(ngModel)]=\"isKeepLogin\">\n <ax-label class=\"mb-0\">{{\n '@auth:signin.remember' | translate | async\n }}</ax-label>\n </ax-check-box>\n <ax-button\n color=\"primary\"\n class=\"ax-sm\"\n id=\"forgot-password\"\n [text]=\"'@auth:forgot.password' | translate | async\"\n look=\"blank\"\n (onClick)=\"handleForgotOnClick()\"\n >\n </ax-button>\n </div>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n id=\"submit-login\"\n [text]=\"'@auth:signin.submit' | translate | async\"\n (onClick)=\"handleLoginClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n @if (externalProviders.hasContent() || signupEnabled) {\n <div class=\"my-5 lg:my-8 flex w-full items-center\">\n <div class=\"h-px flex-1 bg-border-lighter\"></div>\n <span class=\"px-3 text-xs font-medium tracking-wide text-neutral-400\">\n {{ '@auth:signin.or' | translate | async }}\n </span>\n <div class=\"h-px flex-1 bg-border-lighter\"></div>\n </div>\n }\n <axm-login-external-providers\n #externalProviders\n ></axm-login-external-providers>\n </ax-form>\n @if (signupEnabled) {\n <ax-button\n class=\"w-full mt-2\"\n id=\"register\"\n (onClick)=\"handleRegisterOnClick()\"\n text=\"{{ '@auth:register' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n }\n </div>\n</ng-container>\n"],"names":["i4","i5","i6","i7","i8","i1","i2","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j.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-registry.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-user.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page-header.service.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/profile-page/profile-page.component.html"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPHookService } from '@acorex-platform/framework-client/core';\nimport { defaultTo, first, orderBy, uniqBy } from 'lodash';\nimport {\n AXPUserProfileGroup,\n AXPUserProfileGroupsPayload,\n AXPUserProfileHeaderMetaItem,\n AXPUserProfileHeaderMetaPayload,\n AXPUserProfileSection,\n AXPUserProfileSectionsPayload,\n PROFILE_PAGE_GROUPS_HOOK,\n PROFILE_PAGE_HEADER_META_HOOK,\n PROFILE_PAGE_SECTIONS_HOOK,\n} from './profile-page.types';\n\n//#region ---- Profile page registry ----\n\n/**\n * Aggregates profile page groups, sections, and header meta from distributed hooks.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfilePageRegistryService {\n //#region ---- Services & Dependencies ----\n\n private readonly hooks = inject(AXPHookService);\n private readonly sessionService = inject(AXPSessionService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async loadGroups(): Promise<AXPUserProfileGroup[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileGroupsPayload>(PROFILE_PAGE_GROUPS_HOOK, { groups: [] });\n return this.sortGroups(defaultTo(payload.groups, []));\n }\n\n async loadSections(groupId?: string): Promise<AXPUserProfileSection[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileSectionsPayload>(PROFILE_PAGE_SECTIONS_HOOK, {\n sections: [],\n groupId,\n });\n return this.sortSections(this.filterSectionsByFeature(defaultTo(payload.sections, [])));\n }\n\n replaceGroupSections(\n existing: AXPUserProfileSection[],\n groupSections: AXPUserProfileSection[],\n groupId: string,\n ): AXPUserProfileSection[] {\n return this.sortSections([\n ...existing.filter((section) => section.groupId !== groupId),\n ...groupSections.filter((section) => section.groupId === groupId),\n ]);\n }\n\n async loadHeaderMeta(): Promise<AXPUserProfileHeaderMetaItem[]> {\n const payload = await this.hooks.runAsync<AXPUserProfileHeaderMetaPayload>(PROFILE_PAGE_HEADER_META_HOOK, {\n items: [],\n });\n return orderBy(\n uniqBy(defaultTo(payload.items, []), 'id'),\n [(item) => defaultTo(item.priority, 100), 'id'],\n ['asc', 'asc'],\n );\n }\n\n filterSectionsByGroup(sections: AXPUserProfileSection[], groupId: string | null): AXPUserProfileSection[] {\n if (!groupId) {\n return sections;\n }\n return sections.filter((section) => section.groupId === groupId);\n }\n\n resolveDefaultGroup(groups: AXPUserProfileGroup[]): AXPUserProfileGroup | undefined {\n return first(this.sortGroups(groups));\n }\n\n resolveGroupByRoute(groups: AXPUserProfileGroup[], routeSegment: string): AXPUserProfileGroup | undefined {\n const normalized = routeSegment.trim().toLowerCase();\n const resolvedRoute = normalized === 'privacy' ? 'account' : normalized;\n\n return this.sortGroups(groups).find(\n (group) => group.id.toLowerCase() === resolvedRoute || group.route?.toLowerCase() === resolvedRoute,\n );\n }\n\n resolveGroupRoute(group: AXPUserProfileGroup): string {\n return group.route ?? group.id;\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private filterSectionsByFeature(sections: AXPUserProfileSection[]): AXPUserProfileSection[] {\n return sections.filter((section) => !section.feature || this.sessionService.isFeatureEnabled(section.feature));\n }\n\n private sortGroups(groups: AXPUserProfileGroup[]): AXPUserProfileGroup[] {\n return orderBy(uniqBy(groups, 'id'), [(g) => defaultTo(g.priority, 100), 'id'], ['asc', 'asc']);\n }\n\n private sortSections(sections: AXPUserProfileSection[]): AXPUserProfileSection[] {\n return orderBy(uniqBy(sections, 'id'), [(s) => defaultTo(s.priority, 100), 'id'], ['asc', 'asc']);\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPQueryService } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryPayloadData } from '@acorex-platform/framework-shared/core';\nimport { ENTITY_GET_BY_ID_DEFAULT } from '@acorex-platform/framework-shared/runtime';\nimport { Injectable, inject } from '@angular/core';\nimport { get, isNil } from 'lodash';\n\n//#region ----- Constants -----\n\nconst SECURITY_MANAGEMENT_USER_ENTITY = 'SecurityManagement.User';\n\n//#endregion\n\n//#region ----- Current user record -----\n\nexport interface AXPUserProfileCurrentUserRecord {\n id: string;\n username?: string;\n displayName?: string;\n auditInfo?: {\n created?: { at?: Date | string };\n updated?: { at?: Date | string };\n };\n}\n\n//#endregion\n\n//#region ----- Profile page user service -----\n\n/**\n * Loads the persisted user row for the logged-in session (audit info, display fields).\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfileUserService {\n //#region ----- Services & Dependencies -----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly queryService = inject(AXPQueryService);\n\n //#endregion\n\n //#region ----- Public API -----\n\n async loadCurrentUser(): Promise<AXPUserProfileCurrentUserRecord | null> {\n const userId = this.sessionService.user?.id;\n if (!userId || !this.sessionService.isReadyForAppScopedApi) {\n return null;\n }\n\n try {\n const result = await this.queryService.fetch<\n { entity: string; id: string },\n AXPUserProfileCurrentUserRecord\n >(ENTITY_GET_BY_ID_DEFAULT, {\n entity: SECURITY_MANAGEMENT_USER_ENTITY,\n id: userId,\n });\n return runtimeQueryPayloadData(result) ?? null;\n } catch {\n return null;\n }\n }\n\n resolveJoinedAt(record: AXPUserProfileCurrentUserRecord | null): Date | string | undefined {\n if (isNil(record)) {\n return undefined;\n }\n return get(record, 'auditInfo.created.at');\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { Injectable, inject } from '@angular/core';\nimport { defaultTo } from 'lodash';\nimport { AXPUserProfilePageRegistryService } from './profile-page-registry.service';\nimport { AXPUserProfileHeaderMetaItem } from './profile-page.types';\nimport { AXPUserProfileUserService } from './profile-page-user.service';\n\n//#region ---- Header view model ----\n\nexport interface AXPUserProfileHeaderView {\n userId: string;\n displayName: string;\n username?: string;\n joinedAt?: Date | string;\n avatarUserId: string;\n /** Extra header rows contributed via hooks (username/joined are on the view root). */\n meta: AXPUserProfileHeaderMetaItem[];\n}\n\n//#endregion\n\n//#region ---- Profile page header service ----\n\n/**\n * Builds profile page header data from session and optional extended profile sources.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPUserProfileHeaderService {\n //#region ---- Services & Dependencies ----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly registry = inject(AXPUserProfilePageRegistryService);\n private readonly userService = inject(AXPUserProfileUserService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async load(): Promise<AXPUserProfileHeaderView | null> {\n const sessionUser = this.sessionService.user;\n if (!sessionUser?.id) {\n return null;\n }\n\n const userRecord = await this.userService.loadCurrentUser();\n const hookMeta = await this.registry.loadHeaderMeta();\n\n const displayName = defaultTo(\n sessionUser.title,\n defaultTo(userRecord?.displayName, sessionUser.name),\n );\n const username = defaultTo(userRecord?.username, sessionUser.name);\n\n return {\n userId: sessionUser.id,\n displayName,\n username,\n joinedAt: this.userService.resolveJoinedAt(userRecord),\n avatarUserId: sessionUser.id,\n meta: hookMeta.sort((a, b) => defaultTo(a.priority, 100) - defaultTo(b.priority, 100)),\n };\n }\n\n //#endregion\n}\n\n//#endregion\n","\nimport {\n AXPActionMenuItem,\n AXPBackButton,\n AXPExecuteCommand,\n AXPMultiLanguageString,\n AXPRuntimeCommandResult,\n} from '@acorex-platform/framework-shared/core';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTabsModule, AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXFormatPipe } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPStickyDirective } from '@acorex-platform/framework-client/common';\n\nimport { AXPDeviceService } from '@acorex-platform/framework-client/core';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPUserAvatarComponent,\n} from '@acorex-platform/framework-client/layout/components';\nimport {\n AXPPageComponentRendererDirective,\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n AXPPageLayoutComponent,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AsyncPipe, CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n signal,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, RouterModule } from '@angular/router';\nimport { distinctUntilChanged, filter } from 'rxjs';\nimport { AXMAuthCommandKeys } from '@acorex-platform/module-auth-client/contracts';\nimport { AXPUserProfileHeaderService, AXPUserProfileHeaderView } from './profile-page-header.service';\nimport { AXPUserProfilePageRegistryService } from './profile-page-registry.service';\nimport {\n PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY,\n type AXPUserProfileSectionInsightsPatch,\n} from './profile-password-insight.util';\nimport {\n AXPUserProfileGroup,\n AXPUserProfileGroupComponentContent,\n AXPUserProfileSection,\n AXPUserProfileSectionInsight,\n AXPUserProfileSectionLayout,\n resolveDefaultUserProfileSectionAction,\n resolveUserProfileSectionContent,\n visibleUserProfileSectionActions,\n} from './profile-page.types';\n\n@Component({\n selector: 'axm-user-profile-page',\n imports: [\n CommonModule,\n AsyncPipe,\n AXFormatPipe,\n RouterModule,\n AXDecoratorModule,\n AXButtonModule,\n AXDropdownModule,\n AXSkeletonModule,\n AXTabsModule,\n AXPStickyDirective,\n AXTranslationModule,\n AXTooltipModule,\n AXPPageLayoutComponent,\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPUserAvatarComponent,\n AXPPageComponentRendererDirective,\n ],\n templateUrl: './profile-page.component.html',\n styleUrl: './profile-page.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMUserProfilePageComponent,\n },\n ],\n host: {\n class: 'axm-user-profile-page',\n '[class.--mobile-group]': 'isMobileGroupView()',\n },\n})\nexport class AXMUserProfilePageComponent extends AXPPageLayoutBaseComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly registry = inject(AXPUserProfilePageRegistryService);\n private readonly headerService = inject(AXPUserProfileHeaderService);\n private readonly commandService = inject(AXPCommandService);\n private readonly activatedRoute = inject(ActivatedRoute);\n private readonly destroyRef = inject(DestroyRef);\n protected readonly deviceService = inject(AXPDeviceService);\n\n //#endregion\n\n //#region ----- Constants -----\n\n protected readonly pageTabSkeletonPlaceholders = [1, 2, 3, 4];\n protected readonly pageListSkeletonPlaceholders = [1, 2, 3, 4];\n protected readonly sectionSkeletonPlaceholders = [1, 2, 3, 4];\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly groups = signal<AXPUserProfileGroup[]>([]);\n protected readonly sections = signal<AXPUserProfileSection[]>([]);\n protected readonly header = signal<AXPUserProfileHeaderView | null>(null);\n protected readonly activeGroupId = signal<string | null>(null);\n protected readonly visitedGroupIds = signal<ReadonlySet<string>>(new Set());\n protected readonly loadedSectionGroupIds = signal<ReadonlySet<string>>(new Set());\n protected readonly isLoading = signal(true);\n\n private readonly sectionLoadInflight = new Map<string, Promise<void>>();\n\n protected readonly isCompactNav = computed(() => !this.deviceService.isLarge());\n protected readonly isMobileGroupView = computed(() => this.isCompactNav() && !!this.activeGroupId());\n protected readonly showHero = computed(() => !this.isMobileGroupView());\n protected readonly showTabs = computed(() => !this.isCompactNav() && this.groups().length > 0);\n protected readonly showGroupList = computed(() => this.isCompactNav() && !this.activeGroupId());\n protected readonly showGroupContent = computed(() => !this.isCompactNav() || !!this.activeGroupId());\n\n readonly #loadVisitedGroup = effect(() => {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return;\n }\n\n untracked(() => {\n void this.ensureGroupContent(groupId);\n });\n });\n\n readonly #navChromeEffect = effect(() => {\n this.activeGroupId();\n this.deviceService.isLarge();\n untracked(() => this.recompute());\n });\n\n readonly #desktopDefaultGroupEffect = effect(() => {\n const isLarge = this.deviceService.isLarge();\n const groups = this.groups();\n const active = this.activeGroupId();\n const loading = this.isLoading();\n if (!isLarge || active || !groups.length || loading) {\n return;\n }\n\n untracked(() => {\n void this.navigateToDefaultGroup(groups, { replaceUrl: true });\n });\n });\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n override async ngOnInit(): Promise<void> {\n await super.ngOnInit();\n await this.loadPage();\n this.bindProfileIdentityUpdates();\n\n this.activatedRoute.paramMap.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n void this.syncGroupFromRoute();\n });\n }\n\n //#endregion\n\n //#region ----- Page Metadata -----\n\n protected override getPageTitle(): AXPMultiLanguageString {\n if (!this.isMobileGroupView()) {\n return '';\n }\n\n return this.activeGroup()?.title ?? '';\n }\n\n protected override getPageDescription(): null {\n return null;\n }\n\n protected override getPageIcon(): string | null {\n if (!this.isMobileGroupView()) {\n return null;\n }\n\n return this.activeGroup()?.icon ?? null;\n }\n\n protected override getBackButton(): AXPBackButton | null {\n if (!this.isMobileGroupView()) {\n return null;\n }\n\n return { title: '@auth:profile-page.page.title' };\n }\n\n override async onBackButtonClick(): Promise<void> {\n const appName = this.sessionService.application?.name;\n if (!appName) {\n return;\n }\n\n await this.router.navigate([appName, 'profile']);\n }\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n protected handleSelectGroup(group: AXPUserProfileGroup): void {\n this.activeGroupId.set(group.id);\n\n const appName = this.sessionService.application?.name;\n if (!appName) {\n return;\n }\n\n void this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(group)]);\n }\n\n protected handleGroupTabChanged(event: AXTabStripChangedEvent): void {\n const group =\n this.groups().find((item) => item.id === event.tab?.key) ?? this.groups()[event.index];\n if (!group || group.id === this.activeGroupId()) {\n return;\n }\n\n this.handleSelectGroup(group);\n }\n\n protected handleEditAvatar(): void {\n void this.executeCommand({\n name: AXMAuthCommandKeys.Profile.ChangePhoto,\n });\n }\n\n protected async handleActionClick(action: AXPActionMenuItem): Promise<void> {\n if (action.disabled || action.visible === false || !action.command) {\n return;\n }\n\n const result = await this.executeCommand(action.command);\n\n if (result?.success && this.isPinRelatedAction(action)) {\n await this.reloadSections();\n }\n\n if (result?.success && this.applyProfileSectionInsightsPatch(result)) {\n // Password card updated from save payload — skip User/sessions reload.\n } else if (result?.success && this.shouldReloadSecuritySections(action.command.name)) {\n await this.reloadSections();\n }\n\n if (result?.success && this.applyHealthProfileSectionPatch(result)) {\n // Medical Summary updated from save payload — skip full section reload (User/sessions/Employee).\n } else if (result?.success && this.shouldReloadHealthSections(action.command.name)) {\n await this.reloadSections();\n }\n\n if (\n result?.success &&\n action.command?.name.startsWith('HumanCapitalManagement.Profile:')\n ) {\n await this.reloadProfileHeader();\n }\n }\n\n protected visibleSectionActions(actions: AXPActionMenuItem[]) {\n return visibleUserProfileSectionActions(actions);\n }\n\n protected defaultSectionAction(actions: AXPActionMenuItem[]) {\n return resolveDefaultUserProfileSectionAction(actions);\n }\n\n protected resolveSectionContent(section: AXPUserProfileSection) {\n return resolveUserProfileSectionContent(section);\n }\n\n protected isGroupVisited(groupId: string): boolean {\n return this.visitedGroupIds().has(groupId);\n }\n\n protected isGroupPanelActive(groupId: string): boolean {\n return this.activeGroupId() === groupId;\n }\n\n protected activeGroup(): AXPUserProfileGroup | undefined {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return undefined;\n }\n\n return this.groups().find((group) => group.id === groupId);\n }\n\n protected isGroupSectionsPending(group: AXPUserProfileGroup): boolean {\n return !this.groupComponentContent(group) && !this.loadedSectionGroupIds().has(group.id);\n }\n\n protected sectionsForGroup(groupId: string): AXPUserProfileSection[] {\n return this.registry.filterSectionsByGroup(this.sections(), groupId);\n }\n\n protected groupComponentContent(group: AXPUserProfileGroup): AXPUserProfileGroupComponentContent | undefined {\n if (group.content?.mode === 'component') {\n return group.content;\n }\n return undefined;\n }\n\n protected sectionLayoutVars(layout?: AXPUserProfileSectionLayout): Record<string, string | number> {\n return {\n '--section-col-span': layout?.colSpan ?? 6,\n '--section-row-span': layout?.rowSpan ?? 1,\n '--section-col-start': layout?.col ?? 'auto',\n };\n }\n\n protected hasSectionColStart(layout?: AXPUserProfileSectionLayout): boolean {\n return layout?.col != null;\n }\n\n protected hasDisplayableInsights(section: AXPUserProfileSection): boolean {\n return this.displayableInsights(section).length > 0;\n }\n\n protected displayableInsights(section: AXPUserProfileSection): AXPUserProfileSectionInsight[] {\n return (section.insights ?? []).filter((insight) => this.isDisplayableInsight(insight));\n }\n\n protected resolveInsightDate(insight: AXPUserProfileSectionInsight): Date | null {\n if (!insight.date) {\n return null;\n }\n\n return Number.isNaN(insight.date.getTime()) ? null : insight.date;\n }\n\n //#endregion\n\n //#region ---- Private Methods ----\n\n private isDisplayableInsight(insight: AXPUserProfileSectionInsight): boolean {\n if (insight.text?.trim()) {\n return true;\n }\n\n return this.resolveInsightDate(insight) !== null;\n }\n\n private async loadPage(): Promise<void> {\n this.isLoading.set(true);\n try {\n const [groups, header] = await Promise.all([\n this.registry.loadGroups(),\n this.headerService.load(),\n ]);\n\n this.groups.set(groups);\n this.header.set(header);\n await this.syncGroupFromRoute();\n const groupId = this.activeGroupId();\n if (groupId) {\n await this.ensureGroupContent(groupId);\n }\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private async syncGroupFromRoute(): Promise<void> {\n const groups = this.groups();\n if (!groups.length) {\n this.activeGroupId.set(null);\n return;\n }\n\n const routeSegment = this.activatedRoute.snapshot.paramMap.get('groupId');\n const appName = this.sessionService.application?.name;\n\n if (!routeSegment) {\n if (this.deviceService.isLarge()) {\n await this.navigateToDefaultGroup(groups, { replaceUrl: true });\n } else {\n this.activeGroupId.set(null);\n }\n return;\n }\n\n const matchedGroup = this.registry.resolveGroupByRoute(groups, routeSegment);\n if (!matchedGroup) {\n if (this.deviceService.isLarge()) {\n await this.navigateToDefaultGroup(groups, { replaceUrl: true });\n } else if (appName) {\n await this.router.navigate([appName, 'profile'], { replaceUrl: true });\n } else {\n this.activeGroupId.set(null);\n }\n return;\n }\n\n const canonicalRoute = this.registry.resolveGroupRoute(matchedGroup);\n if (appName && routeSegment.toLowerCase() !== canonicalRoute.toLowerCase()) {\n await this.router.navigate([appName, 'profile', canonicalRoute], { replaceUrl: true });\n return;\n }\n\n this.activeGroupId.set(matchedGroup.id);\n }\n\n private async navigateToDefaultGroup(\n groups: AXPUserProfileGroup[],\n extras?: { replaceUrl?: boolean },\n ): Promise<void> {\n const defaultGroup = this.registry.resolveDefaultGroup(groups);\n if (!defaultGroup) {\n this.activeGroupId.set(null);\n return;\n }\n\n const appName = this.sessionService.application?.name;\n if (appName) {\n await this.router.navigate([appName, 'profile', this.registry.resolveGroupRoute(defaultGroup)], extras);\n return;\n }\n\n this.activeGroupId.set(defaultGroup.id);\n }\n\n private async reloadSections(): Promise<void> {\n const groupId = this.activeGroupId();\n if (!groupId) {\n return;\n }\n\n const loaded = await this.registry.loadSections(groupId);\n this.sections.set(this.registry.replaceGroupSections(this.sections(), loaded, groupId));\n }\n\n private async ensureGroupContent(groupId: string): Promise<void> {\n this.markGroupVisited(groupId);\n\n const inflight = this.sectionLoadInflight.get(groupId);\n if (inflight) {\n await inflight;\n return;\n }\n\n if (this.loadedSectionGroupIds().has(groupId)) {\n return;\n }\n\n const load = this.loadGroupSections(groupId).finally(() => {\n this.sectionLoadInflight.delete(groupId);\n });\n this.sectionLoadInflight.set(groupId, load);\n await load;\n }\n\n private async loadGroupSections(groupId: string): Promise<void> {\n const loaded = await this.registry.loadSections(groupId);\n this.sections.set(this.registry.replaceGroupSections(this.sections(), loaded, groupId));\n\n const next = new Set(this.loadedSectionGroupIds());\n next.add(groupId);\n this.loadedSectionGroupIds.set(next);\n }\n\n private markGroupVisited(groupId: string): void {\n const visited = this.visitedGroupIds();\n if (visited.has(groupId)) {\n return;\n }\n\n const next = new Set(visited);\n next.add(groupId);\n this.visitedGroupIds.set(next);\n }\n\n private bindProfileIdentityUpdates(): void {\n this.sessionService.user$\n .pipe(\n filter((user) => !!user?.id),\n distinctUntilChanged(\n (previous, current) =>\n previous?.title === current?.title &&\n previous?.name === current?.name,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => {\n void this.reloadProfileHeader();\n });\n }\n\n private async reloadProfileHeader(): Promise<void> {\n const header = await this.headerService.load();\n this.header.set(header);\n }\n\n private shouldReloadSecuritySections(commandName: string): boolean {\n return commandName === AXMAuthCommandKeys.Session.OpenSessions;\n }\n\n private shouldReloadHealthSections(commandName: string): boolean {\n // Only the health-profile editor changes Medical Summary insights; list popups must not reload on close.\n return commandName === 'HealthCore.Profile:EditMyHealthProfile';\n }\n\n private applyProfileSectionInsightsPatch(result: AXPRuntimeCommandResult): boolean {\n const patch = result.metadata?.[PROFILE_SECTION_INSIGHTS_PATCH_METADATA_KEY] as\n | AXPUserProfileSectionInsightsPatch\n | undefined;\n\n if (!patch?.sectionId) {\n return false;\n }\n\n const sections = this.sections();\n const index = sections.findIndex((section) => section.id === patch.sectionId);\n if (index < 0) {\n return false;\n }\n\n const insights = patch.insights ?? [];\n const nextSections = [...sections];\n nextSections[index] = {\n ...sections[index],\n insights: insights.length ? insights : undefined,\n };\n this.sections.set(nextSections);\n return true;\n }\n\n private applyHealthProfileSectionPatch(result: AXPRuntimeCommandResult): boolean {\n const patch = result.metadata?.['healthProfileSectionPatch'] as\n | {\n sectionId?: string;\n insights?: AXPUserProfileSectionInsight[];\n existingProfileId?: string | null;\n }\n | undefined;\n\n if (!patch?.sectionId) {\n return false;\n }\n\n const sections = this.sections();\n const index = sections.findIndex((section) => section.id === patch.sectionId);\n if (index < 0) {\n return false;\n }\n\n const section = sections[index];\n const insights = patch.insights ?? [];\n const nextSection: AXPUserProfileSection = {\n ...section,\n insights: insights.length ? insights : undefined,\n actions: (section.actions ?? []).map((sectionAction) => {\n if (sectionAction.command?.name !== 'HealthCore.Profile:EditMyHealthProfile') {\n return sectionAction;\n }\n\n return {\n ...sectionAction,\n command: {\n ...sectionAction.command,\n options: {\n ...(sectionAction.command.options ?? {}),\n existingProfileId: patch.existingProfileId ?? null,\n },\n },\n };\n }),\n };\n\n const nextSections = [...sections];\n nextSections[index] = nextSection;\n this.sections.set(nextSections);\n return true;\n }\n\n private isPinRelatedAction(action: AXPActionMenuItem): boolean {\n const commandName = action.command?.name;\n\n return (\n commandName === AXMAuthCommandKeys.Security.SetPinCode ||\n commandName === AXMAuthCommandKeys.Security.RemovePinCode\n );\n }\n\n private async executeCommand(\n command: AXPExecuteCommand,\n ): Promise<AXPRuntimeCommandResult | void> {\n if (this.commandService.exists(command.name)) {\n const result = await this.commandService.execute(command.name, command.options ?? {});\n return result ?? undefined;\n }\n }\n\n //#endregion\n}\n","<axp-page-layout *translate=\"let t\">\n <axp-page-content>\n @if (isLoading()) {\n <!-- ----- Profile page skeleton ----- -->\n <div class=\"__shell\" aria-hidden=\"true\">\n <section class=\"__hero-card\">\n <div class=\"__hero-header\">\n <div class=\"__hero-cover\">\n <span class=\"__hero-wave __hero-wave--primary\"></span>\n <span class=\"__hero-wave __hero-wave--soft\"></span>\n <span class=\"__hero-wave __hero-wave--light\"></span>\n </div>\n <div class=\"__hero-content\">\n <div class=\"__hero-avatar\">\n <ax-skeleton class=\"size-24 rounded-full\" [animated]=\"true\"></ax-skeleton>\n </div>\n <div class=\"__hero-details\">\n <ax-skeleton class=\"h-7 w-48 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"mt-2 h-4 w-32 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n </div>\n </div>\n <!--------------------------------------------------------------->\n @if (!isCompactNav()) {\n <!-- ----- Desktop tab skeletons ----- -->\n <div class=\"__tabs __tabs-skeleton\">\n @for (item of pageTabSkeletonPlaceholders; track item) {\n <ax-skeleton class=\"h-4 w-20 rounded-md\" [animated]=\"true\"></ax-skeleton>\n }\n </div>\n }\n </section>\n <!--------------------------------------------------------------->\n @if (isCompactNav()) {\n <!-- ----- Compact group-list skeletons ----- -->\n <div class=\"__group-nav\">\n @for (item of pageListSkeletonPlaceholders; track item) {\n <div class=\"__group-nav-skeleton-row\">\n <ax-skeleton class=\"size-5 shrink-0 rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"h-4 min-w-0 flex-1 rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"size-4 shrink-0 rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n }\n </div>\n }\n <!-- ----- Desktop section-card skeletons ----- -->\n @else {\n <ng-container *ngTemplateOutlet=\"sectionCardsSkeleton\"></ng-container>\n }\n </div>\n } @else if (header(); as profileHeader) {\n <div class=\"__shell\">\n <!--->\n <!-- ----- Profile hero and desktop group tabs ----- -->\n @if (showHero()) {\n <section\n class=\"__hero-card\"\n [axpSticky]=\"'--stuck'\"\n stickyParent=\"#axp-page-layout\"\n [stickyOffset]=\"0\"\n >\n <div class=\"__hero-header\">\n <div class=\"__hero-cover\" aria-hidden=\"true\">\n <span class=\"__hero-wave __hero-wave--primary\" aria-hidden=\"true\"></span>\n <span class=\"__hero-wave __hero-wave--soft\" aria-hidden=\"true\"></span>\n <span class=\"__hero-wave __hero-wave--light\" aria-hidden=\"true\"></span>\n </div>\n\n <div class=\"__hero-content\">\n <div class=\"__hero-avatar\">\n <axp-user-avatar [size]=\"96\" [userId]=\"profileHeader.avatarUserId\"></axp-user-avatar>\n <button type=\"button\" class=\"__avatar-edit\"\n [attr.aria-label]=\"('@auth:profile-page.avatar.edit' | translate | async) ?? ''\"\n (click)=\"handleEditAvatar()\">\n <ax-icon icon=\"fa-light fa-camera\"></ax-icon>\n </button>\n </div>\n\n <div class=\"__hero-details\">\n <h2 class=\"__hero-name\">{{ profileHeader.displayName }}</h2>\n\n @if (profileHeader.username || profileHeader.joinedAt) {\n <p class=\"__hero-subtitle\">\n @if (profileHeader.username) {\n <span class=\"__hero-subtitle-item\">\n <ax-icon icon=\"fa-light fa-user\"></ax-icon>\n <span>{{ profileHeader.username }}</span>\n </span>\n }\n @if (profileHeader.username && profileHeader.joinedAt) {\n <span class=\"__hero-subtitle-separator\" aria-hidden=\"true\">·</span>\n }\n @if (profileHeader.joinedAt) {\n <span class=\"__hero-subtitle-item\">\n <ax-icon icon=\"fa-light fa-calendar\"></ax-icon>\n <span>\n {{ '@auth:profile-page.header.meta.member-since' | translate | async }}\n {{ profileHeader.joinedAt | format: 'date' : { format: 'long' } | async }}\n </span>\n </span>\n }\n </p>\n }\n\n @if (profileHeader.meta.length) {\n <ul class=\"__hero-meta\">\n @for (item of profileHeader.meta; track item.id) {\n <li class=\"__hero-meta-item\">\n @if (item.icon) {\n <ax-icon [icon]=\"item.icon\"></ax-icon>\n }\n <span class=\"__hero-meta-label\">{{ item.label | translate | async }}</span>\n <span class=\"__hero-meta-value\">{{ item.value }}</span>\n </li>\n }\n </ul>\n }\n </div>\n </div>\n </div>\n\n <!--->\n <!-- ----- Desktop group tabs ----- -->\n @if (showTabs()) {\n <ax-tabs class=\"__tabs\" [look]=\"'with-line'\" [location]=\"'bottom'\" [fitParent]=\"false\"\n (onActiveTabChanged)=\"handleGroupTabChanged($event)\">\n @for (group of groups(); track group.id) {\n <ax-tab-item [key]=\"group.id\" [text]=\"(group.title | translate | async)!\"\n [active]=\"activeGroupId() === group.id\">\n @if (group.icon) {\n <ax-prefix>\n <ax-icon [icon]=\"group.icon\"></ax-icon>\n </ax-prefix>\n }\n </ax-tab-item>\n }\n </ax-tabs>\n }\n </section>\n }\n\n <!--->\n <!-- ----- Profile area list on compact screens ----- -->\n @if (showGroupList()) {\n <axp-layout-list class=\"__group-nav\">\n @for (group of groups(); track group.id) {\n <axp-layout-list-item (click)=\"handleSelectGroup(group)\">\n <!--->\n <!-- ----- Group icon ----- -->\n @if (group.icon) {\n <axp-layout-prefix>\n <ax-icon [icon]=\"group.icon\" class=\"text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n }\n <axp-layout-content>\n <a class=\"font-semibold\">{{ group.title | translate | async }}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\"far fa-chevron-right rtl:rotate-180\" class=\"text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n\n <ng-template #sectionCopyBody let-section=\"section\">\n @if (section.title) {\n <h3 class=\"__section-title\">{{ section.title | translate | async }}</h3>\n }\n\n @if (hasDisplayableInsights(section)) {\n <ul class=\"__section-insights\">\n @for (insight of displayableInsights(section); track insight.id) {\n <li\n class=\"__section-insight\"\n [axTooltip]=\"insight.title ? ((insight.title | translate | async) ?? '') : ''\"\n [axTooltipDisabled]=\"!insight.title\"\n axTooltipPlacement=\"top\"\n >\n <span class=\"__section-insight-icon-wrap\" aria-hidden=\"true\">\n @if (insight.icon) {\n <ax-icon [icon]=\"insight.icon\"></ax-icon>\n }\n </span>\n <span class=\"__section-insight-text\">\n @if (resolveInsightDate(insight); as insightDate) {\n @if (insight.datePrefix) {\n <span>{{ insight.datePrefix | translate | async }} · </span>\n }\n <span>{{ insightDate | format: 'timeleft' | async }}</span>\n } @else if (insight.text) {\n {{ insight.text | translate | async }}\n }\n </span>\n </li>\n }\n </ul>\n } @else if (section.description) {\n <p class=\"__section-description\">{{ section.description | translate | async }}</p>\n }\n </ng-template>\n\n <!--->\n <!-- ----- Lazy group panels: created on first visit, then shown or hidden ----- -->\n @if (showGroupContent()) {\n @for (group of groups(); track group.id) {\n @if (isGroupVisited(group.id)) {\n <div\n class=\"__group-panel\"\n [class.--inactive]=\"!isGroupPanelActive(group.id)\"\n [attr.aria-hidden]=\"!isGroupPanelActive(group.id)\"\n [attr.inert]=\"isGroupPanelActive(group.id) ? null : ''\"\n >\n @if (isGroupSectionsPending(group)) {\n <!-- ----- Section cards skeleton while group content loads ----- -->\n <ng-container *ngTemplateOutlet=\"sectionCardsSkeleton\"></ng-container>\n } @else if (groupComponentContent(group); as componentContent) {\n <!-- ----- Full-tab page component ----- -->\n <div class=\"__group-content\">\n <div axp-page-component-renderer [componentKey]=\"componentContent.componentKey\"\n [pageConfig]=\"componentContent.pageConfig ?? {}\"></div>\n </div>\n } @else {\n <!-- ----- Section cards for groups that do not replace the tab body ----- -->\n <div class=\"__sections\">\n @for (section of sectionsForGroup(group.id); track section.id) {\n @let sectionContent = resolveSectionContent(section);\n <div class=\"__section-slot\" [class.--has-col-start]=\"hasSectionColStart(section.layout)\"\n [style]=\"sectionLayoutVars(section.layout)\">\n @if (sectionContent.mode === 'component') {\n <div axp-page-component-renderer [componentKey]=\"sectionContent.componentKey\"\n [pageConfig]=\"sectionContent.pageConfig ?? {}\"></div>\n } @else {\n @let visibleActions = visibleSectionActions(sectionContent.actions);\n @let defaultAction = defaultSectionAction(sectionContent.actions);\n <article class=\"__section-card\">\n @if (defaultAction) {\n <div\n class=\"__section-card-action\"\n [class.__section-card-action--with-menu]=\"visibleActions.length > 1\"\n >\n <button\n type=\"button\"\n class=\"__section-card-hit\"\n [disabled]=\"defaultAction.disabled === true\"\n (click)=\"handleActionClick(defaultAction)\"\n >\n @if (section.icon) {\n <div class=\"__section-icon\">\n <ax-icon [icon]=\"section.icon\"></ax-icon>\n </div>\n }\n <div class=\"__section-copy\">\n <ng-container *ngTemplateOutlet=\"sectionCopyBody; context: { section: section }\"></ng-container>\n </div>\n </button>\n\n @if (visibleActions.length > 1) {\n <div class=\"__section-more-actions-wrap\" (click)=\"$event.stopPropagation()\">\n <ax-button\n class=\"__section-more-actions\"\n look=\"blank\"\n color=\"default\"\n [attr.aria-label]=\"('@auth:profile-page.page.sections.actions' | translate | async) ?? ''\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of visibleActions; track action.name ?? action.title) {\n <ax-button-item\n [text]=\"(action.title | translate | async)!\"\n [color]=\"action.color\"\n [disabled]=\"action.disabled === true\"\n (onClick)=\"handleActionClick(action)\"\n >\n @if (action.icon) {\n <ax-prefix>\n <ax-icon [icon]=\"action.icon\"></ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n </div>\n }\n </div>\n } @else {\n <div class=\"__section-card-action __section-card-action--static\">\n @if (section.icon) {\n <div class=\"__section-icon\">\n <ax-icon [icon]=\"section.icon\"></ax-icon>\n </div>\n }\n <div class=\"__section-copy\">\n <ng-container *ngTemplateOutlet=\"sectionCopyBody; context: { section: section }\"></ng-container>\n </div>\n </div>\n }\n </article>\n }\n </div>\n } @empty {\n <p class=\"__sections-empty\">{{ '@auth:profile-page.page.sections.empty' | translate | async }}</p>\n }\n </div>\n }\n </div>\n }\n }\n }\n </div>\n }\n <ng-template #sectionCardsSkeleton>\n <div class=\"__sections\">\n @for (item of sectionSkeletonPlaceholders; track item) {\n <div class=\"__section-slot\">\n <article class=\"__section-card\">\n <div class=\"__section-card-action __section-card-action--static\">\n <ax-skeleton class=\"size-14 shrink-0 rounded-xl\" [animated]=\"true\"></ax-skeleton>\n <div class=\"__section-copy flex flex-col gap-2\">\n <ax-skeleton class=\"h-4 w-40 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n <ax-skeleton class=\"h-3 w-56 max-w-full rounded-md\" [animated]=\"true\"></ax-skeleton>\n </div>\n </div>\n </article>\n </div>\n }\n </div>\n </ng-template>\n </axp-page-content>\n</axp-page-layout>"],"names":["i1","i2","i5","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,EAAA,SAAA,EAC1B;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,2BAA6B;AACzC,yBAAA;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,KAAK,EAAE,uBAAuB;AAC9B,wBAAA,wBAAwB,EAAE,qBAAqB;AAChD,qBAAA,EAAA,QAAA,EAAA,0/eAAA,EAAA,MAAA,EAAA,CAAA,0lqBAAA,CAAA,EAAA;;;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var routes = [
|
|
2
|
-
{
|
|
3
|
-
path: 'forgot',
|
|
4
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs').then((c) => c.AXPForgetPasswordComponent),
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
path: 'reset-password',
|
|
8
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs').then((c) => c.AXPResetPasswordComponent),
|
|
9
|
-
},
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
export { routes as default };
|
|
13
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-routes-B6iJHJ60.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-routes-B6iJHJ60.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] 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;CACS;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs","sources":["../../../../libs/modules/auth/client/src/lib/settings.provider.ts"],"sourcesContent":["import {\n AXPSettingDefinitionProvider,\n AXPSettingDefinitionProviderContext,\n} from '@acorex-platform/framework-client/common';\nimport { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPAuthCredentialTypeOptions,\n AXPAuthSettings,\n AXP_AUTH_INACTIVE_SESSION_TERMINATION_OPTION_DEFINITIONS,\n AXP_AUTH_INACTIVE_SESSION_TERMINATION_SETTING_DEFAULTS,\n AXP_AUTH_LOCKOUT_SETTING_DEFAULTS,\n AXP_AUTH_MAX_ACTIVE_DEVICE_SESSIONS_SETTING_DEFAULTS,\n AXP_AUTH_SIGN_IN_PAGE_DESCRIPTION_DEFAULT,\n AXP_AUTH_SIGN_IN_PAGE_SLOGAN_DEFAULT,\n} from '@acorex-platform/module-auth-client/contracts';\n\nconst I18N = '@auth:settings';\n\nexport class AXMSettingProvider implements AXPSettingDefinitionProvider {\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n context\n .addGroup(\n 'security-settings',\n `${I18N}.nav-title`,\n `${I18N}.description`,\n 'fa-light fa-lock',\n `${I18N}.title`,\n 95,\n )\n\n //#region ----- Sign-in page (P) -----\n .addSection('sign-in-page', `${I18N}.sign-in-page.title`, `${I18N}.sign-in-page.description`)\n .addSetting({\n key: AXPAuthSettings.SignInPageSlogan,\n title: `${I18N}.sign-in-page.slogan.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXP_AUTH_SIGN_IN_PAGE_SLOGAN_DEFAULT,\n widget: {\n type: AXPWidgetsCatalog.text,\n options: { multiLanguage: true },\n },\n description: `${I18N}.sign-in-page.slogan.description`,\n })\n .addSetting({\n key: AXPAuthSettings.SignInPageDescription,\n title: `${I18N}.sign-in-page.body.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXP_AUTH_SIGN_IN_PAGE_DESCRIPTION_DEFAULT,\n widget: {\n type: AXPWidgetsCatalog.largeText,\n options: { multiLanguage: true },\n },\n description: `${I18N}.sign-in-page.body.description`,\n })\n .endSection()\n //#endregion\n\n //#region ----- Sign-up (P) -----\n .addSection('sign-up', `${I18N}.sign-up.title`, `${I18N}.sign-up.description`)\n .addSetting({\n key: AXPAuthSettings.SignUpEnabled,\n title: `${I18N}.sign-up.enabled.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n },\n description: `${I18N}.sign-up.enabled.description`,\n })\n .addSetting({\n key: AXPAuthSettings.SignUpUrl,\n title: `${I18N}.sign-up.url.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: '/auth/register',\n widget: {\n type: AXPWidgetsCatalog.text,\n options: {\n visibility: `{{ context.eval('${AXPAuthSettings.SignUpEnabled}') }}`,\n },\n },\n description: `${I18N}.sign-up.url.description`,\n })\n .endSection()\n //#endregion\n\n //#region ----- Sign-in (P) -----\n .addSection('sign-in', `${I18N}.sign-in.title`, `${I18N}.sign-in.description`)\n .addSetting({\n key: AXPAuthSettings.SignInCredentialType,\n title: `${I18N}.sign-in.credential-type.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXPAuthCredentialTypeOptions.UsernameEmailPassword,\n widget: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n text: `${I18N}.sign-in.credential-type.options.username-password`,\n value: AXPAuthCredentialTypeOptions.UsernamePassword,\n },\n {\n text: `${I18N}.sign-in.credential-type.options.username-email-password`,\n value: AXPAuthCredentialTypeOptions.UsernameEmailPassword,\n },\n {\n text: `${I18N}.sign-in.credential-type.options.email-password`,\n value: AXPAuthCredentialTypeOptions.EmailPassword,\n },\n {\n text: `${I18N}.sign-in.credential-type.options.mobile-password`,\n value: AXPAuthCredentialTypeOptions.MobilePassword,\n },\n ],\n },\n },\n description: `${I18N}.sign-in.credential-type.description`,\n })\n .addSetting({\n key: AXPAuthSettings.SignInDefaultStrategy,\n title: `${I18N}.sign-in.default-strategy.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: 'user-pass',\n widget: {\n type: AXPWidgetsCatalog.text,\n },\n description: `${I18N}.sign-in.default-strategy.description`,\n })\n .endSection()\n //#endregion\n\n // Authentication — tenant password policy; platform lockout thresholds\n .addSection('authentication', `${I18N}.authentication.title`, `${I18N}.authentication.description`)\n .addSetting({\n key: AXPAuthSettings.TwoFactorAuth,\n title: `${I18N}.authentication.two-factor.title`,\n scope: 'T',\n overridableAt: [],\n isInherited: true,\n defaultValue: false,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n },\n description: `${I18N}.authentication.two-factor.description`,\n })\n .addSetting({\n key: AXPAuthSettings.PasswordComplexity,\n title: `${I18N}.authentication.password.title`,\n scope: 'T',\n overridableAt: [],\n isInherited: true,\n defaultValue: 'Medium',\n widget: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n text: `${I18N}.authentication.password.options.low`,\n value: 'Low',\n },\n {\n text: `${I18N}.authentication.password.options.medium`,\n value: 'Medium',\n },\n {\n text: `${I18N}.authentication.password.options.high`,\n value: 'High',\n },\n ],\n },\n },\n description: `${I18N}.authentication.password.description`,\n })\n .addSetting({\n key: AXPAuthSettings.PasswordExpiryDays,\n title: `${I18N}.authentication.password-expiry.title`,\n scope: 'T',\n overridableAt: [],\n isInherited: true,\n defaultValue: 90,\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 30,\n maxValue: 365,\n step: 1,\n },\n },\n description: `${I18N}.authentication.password-expiry.description`,\n })\n .addSetting({\n key: AXPAuthSettings.MaxLoginAttempts,\n title: `${I18N}.authentication.max-attempts.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXP_AUTH_LOCKOUT_SETTING_DEFAULTS[AXPAuthSettings.MaxLoginAttempts],\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 3,\n maxValue: 10,\n step: 1,\n },\n },\n description: `${I18N}.authentication.max-attempts.description`,\n })\n .addSetting({\n key: AXPAuthSettings.LockoutDuration,\n title: `${I18N}.authentication.lockout.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXP_AUTH_LOCKOUT_SETTING_DEFAULTS[AXPAuthSettings.LockoutDuration],\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 1,\n maxValue: 60,\n step: 1,\n },\n },\n description: `${I18N}.authentication.lockout.description`,\n })\n .addSetting({\n key: AXPAuthSettings.CaptchaAttemptThreshold,\n title: `${I18N}.authentication.captcha-threshold.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXP_AUTH_LOCKOUT_SETTING_DEFAULTS[AXPAuthSettings.CaptchaAttemptThreshold],\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 1,\n maxValue: 10,\n step: 1,\n },\n },\n description: `${I18N}.authentication.captcha-threshold.description`,\n })\n .endSection()\n\n // Session — idle lock screen + terminate old sessions\n .addSection('session-management', `${I18N}.session.title`, `${I18N}.session.description`)\n .addSetting({\n key: AXPAuthSettings.LockWhenIdleEnabled,\n title: `${I18N}.session.lock-when-idle.title`,\n scope: 'U',\n overridableAt: [],\n isInherited: true,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n },\n description: `${I18N}.session.lock-when-idle.description`,\n })\n .addSetting({\n key: AXPAuthSettings.LockWhenIdleMinutes,\n title: `${I18N}.session.lock-when-idle-minutes.title`,\n scope: 'U',\n overridableAt: [],\n isInherited: true,\n defaultValue: 15,\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 1,\n maxValue: 60,\n step: 1,\n visibility: `{{ context.eval('${AXPAuthSettings.LockWhenIdleEnabled}') }}`,\n },\n },\n description: `${I18N}.session.lock-when-idle-minutes.description`,\n })\n .addSetting({\n key: AXPAuthSettings.InactiveSessionTermination,\n title: `${I18N}.session.terminate-old-sessions.title`,\n description: `${I18N}.session.terminate-old-sessions.description`,\n scope: 'T',\n overridableAt: ['U'],\n isInherited: true,\n defaultValue:\n AXP_AUTH_INACTIVE_SESSION_TERMINATION_SETTING_DEFAULTS[AXPAuthSettings.InactiveSessionTermination],\n widget: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'id',\n textField: 'title',\n dataSource: AXP_AUTH_INACTIVE_SESSION_TERMINATION_OPTION_DEFINITIONS.map((option) => ({\n id: option.id,\n title: option.titleKey,\n })),\n },\n },\n })\n .addSetting({\n key: AXPAuthSettings.MaxActiveDeviceSessions,\n title: `${I18N}.session.concurrent.title`,\n description: `${I18N}.session.concurrent.description`,\n scope: 'T',\n overridableAt: [],\n isInherited: false,\n defaultValue:\n AXP_AUTH_MAX_ACTIVE_DEVICE_SESSIONS_SETTING_DEFAULTS[AXPAuthSettings.MaxActiveDeviceSessions],\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 0,\n step: 1,\n },\n },\n })\n .endSection()\n .endGroup();\n }\n}\n"],"names":[],"mappings":";;;AAgBA,MAAM,IAAI,GAAG,gBAAgB;MAEhB,kBAAkB,CAAA;IAC7B,MAAM,OAAO,CAAC,OAA4C,EAAA;QACxD;AACG,aAAA,QAAQ,CACP,mBAAmB,EACnB,GAAG,IAAI,CAAA,UAAA,CAAY,EACnB,CAAA,EAAG,IAAI,CAAA,YAAA,CAAc,EACrB,kBAAkB,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F,EAAE,EAAE,MAAM,CAAC,EAAE;wBACb,KAAK,EAAE,MAAM,CAAC,QAAQ;AACvB,qBAAA,CAAC,CAAC;AACJ,iBAAA;AACF,aAAA;SACF;AACA,aAAA,UAAU,CAAC;YACV,GAAG,EAAE,eAAe,CAAC,uBAAuB;YAC5C,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,yBAAA,CAA2B;YACzC,WAAW,EAAE,CAAA,EAAG,IAAI,CAAA,+BAAA,CAAiC;AACrD,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,aAAa,EAAE,EAAE;AACjB,YAAA,WAAW,EAAE,KAAK;AAClB,YAAA,YAAY,EACV,oDAAoD,CAAC,eAAe,CAAC,uBAAuB,CAAC;AAC/F,YAAA,MAAM,EAAE;gBACN,IAAI,EAAE,iBAAiB,CAAC,MAAM;AAC9B,gBAAA,OAAO,EAAE;AACP,oBAAA,QAAQ,EAAE,CAAC;AACX,oBAAA,IAAI,EAAE,CAAC;AACR,iBAAA;AACF,aAAA;SACF;AACA,aAAA,UAAU;AACV,aAAA,QAAQ,EAAE;IACf;AACD;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/signout-command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\n\nimport { inject, Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPSignoutCommand implements AXPCommand {\n private readonly sessionService = inject(AXPSessionService);\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n await this.sessionService.signout();\n return { success: true, kind: 'object', data: undefined };\n }\n}\n"],"names":[],"mappings":";;;;MASa,iBAAiB,CAAA;AAH9B,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAM5D,IAAA;AAJC,IAAA,MAAM,OAAO,GAAA;AACX,QAAA,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;AACnC,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;IAC3D;8GANW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,cAFhB,MAAM,EAAA,CAAA,CAAA;;2FAEP,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAH7B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import * as i1$1 from '@acorex/components/button';
|
|
4
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
5
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
6
|
-
import * as i1 from '@acorex/components/form';
|
|
7
|
-
import { AXFormModule } from '@acorex/components/form';
|
|
8
|
-
import * as i3 from '@acorex/components/label';
|
|
9
|
-
import { AXLabelModule } from '@acorex/components/label';
|
|
10
|
-
import * as i4 from '@acorex/components/password-box';
|
|
11
|
-
import { AXPasswordBoxModule } from '@acorex/components/password-box';
|
|
12
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
13
|
-
import * as i5 from '@acorex/core/translation';
|
|
14
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
15
|
-
import * as i5$1 from '@angular/common';
|
|
16
|
-
import { CommonModule } from '@angular/common';
|
|
17
|
-
|
|
18
|
-
class AXPAuthTwoFactorCodeComponent {
|
|
19
|
-
ngOnInit() { }
|
|
20
|
-
ngOnDestroy() { }
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthTwoFactorCodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: AXPAuthTwoFactorCodeComponent, isStandalone: true, selector: "axp-auth-two-factor-code", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"text-center mb-8\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:twofactor.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600 mb-4\">\n {{ '@auth:twofactor.hint' | translate | async }}\n </p>\n <p class=\"text-base font-medium\">**** *** 3320</p>\n </div>\n <div class=\"w-full lg:w-96 mx-auto\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label class=\"text-start\">{{ '@auth:twofactor.textBoxHint' | translate | async }}</ax-label>\n <ax-password-box></ax-password-box>\n </ax-form-field>\n <ax-button class=\"w-full\" [text]=\"'@general:actions.submit.title' | translate | async\" color=\"primary\">\n </ax-button>\n </div>\n </ax-form>\n </div>\n</ng-container>\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: 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: AXDecoratorModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i3.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i4.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: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None }); }
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthTwoFactorCodeComponent, decorators: [{
|
|
25
|
-
type: Component,
|
|
26
|
-
args: [{ selector: 'axp-auth-two-factor-code', imports: [
|
|
27
|
-
CommonModule,
|
|
28
|
-
AXFormModule,
|
|
29
|
-
AXButtonModule,
|
|
30
|
-
AXDecoratorModule,
|
|
31
|
-
AXFormModule,
|
|
32
|
-
AXTextBoxModule,
|
|
33
|
-
AXLabelModule,
|
|
34
|
-
AXPasswordBoxModule,
|
|
35
|
-
AXTranslationModule,
|
|
36
|
-
], changeDetection: ChangeDetectionStrategy.Eager, encapsulation: ViewEncapsulation.None, template: "<ng-container *translate=\"let t\">\n <div class=\"text-center mb-8\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:twofactor.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600 mb-4\">\n {{ '@auth:twofactor.hint' | translate | async }}\n </p>\n <p class=\"text-base font-medium\">**** *** 3320</p>\n </div>\n <div class=\"w-full lg:w-96 mx-auto\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label class=\"text-start\">{{ '@auth:twofactor.textBoxHint' | translate | async }}</ax-label>\n <ax-password-box></ax-password-box>\n </ax-form-field>\n <ax-button class=\"w-full\" [text]=\"'@general:actions.submit.title' | translate | async\" color=\"primary\">\n </ax-button>\n </div>\n </ax-form>\n </div>\n</ng-container>\n" }]
|
|
37
|
-
}] });
|
|
38
|
-
|
|
39
|
-
export { AXPAuthTwoFactorCodeComponent };
|
|
40
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs.map
|
package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/two-factor/two-factor-code/two-factor-code.component.ts","../../../../libs/modules/auth/client/src/lib/pages/two-factor/two-factor-code/two-factor-code.component.html"],"sourcesContent":["import { Component, OnDestroy, OnInit, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\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';\n\n\n@Component({\n selector: 'axp-auth-two-factor-code',\n templateUrl: './two-factor-code.component.html',\n imports: [\n CommonModule,\n AXFormModule,\n AXButtonModule,\n AXDecoratorModule,\n AXFormModule,\n AXTextBoxModule,\n AXLabelModule,\n AXPasswordBoxModule,\n AXTranslationModule,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n encapsulation: ViewEncapsulation.None\n})\nexport class AXPAuthTwoFactorCodeComponent implements OnInit, OnDestroy {\n ngOnInit(): void { }\n\n ngOnDestroy(): void { }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"text-center mb-8\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:twofactor.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600 mb-4\">\n {{ '@auth:twofactor.hint' | translate | async }}\n </p>\n <p class=\"text-base font-medium\">**** *** 3320</p>\n </div>\n <div class=\"w-full lg:w-96 mx-auto\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label class=\"text-start\">{{ '@auth:twofactor.textBoxHint' | translate | async }}</ax-label>\n <ax-password-box></ax-password-box>\n </ax-form-field>\n <ax-button class=\"w-full\" [text]=\"'@general:actions.submit.title' | translate | async\" color=\"primary\">\n </ax-button>\n </div>\n </ax-form>\n </div>\n</ng-container>\n"],"names":["i2","i6"],"mappings":";;;;;;;;;;;;;;;;;MA6Ba,6BAA6B,CAAA;AACxC,IAAA,QAAQ,KAAW;AAEnB,IAAA,WAAW,KAAW;8GAHX,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,6BAA6B,oFC7B1C,42BAuBA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,I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AAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACb,mBAAmB,+ZACnB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,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,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAKd,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAjBzC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,EAAA,OAAA,EAE3B;wBACL,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;wBACf,aAAa;wBACb,mBAAmB;wBACnB,mBAAmB;AACtB,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,KAAK,EAAA,aAAA,EAC/B,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,42BAAA,EAAA;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/two-factor/two-factor.module.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { ROUTES, Routes } from '@angular/router';\n\nfunction routesFacory() {\n const routes: Routes = [\n {\n path: 'two-step',\n loadComponent: () =>\n import('./two-factor-code/two-factor-code.component').then((c) => c.AXPAuthTwoFactorCodeComponent),\n },\n ];\n return routes;\n}\n\n@NgModule({\n declarations: [],\n imports: [],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPTwoFactorModule {}\n"],"names":[],"mappings":";;;;AAGA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,MAAM,GAAW;AACrB,QAAA;AACE,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,aAAa,EAAE,MACb,OAAO,6EAA6C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,CAAC;AACrG,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAca,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAlB,kBAAkB,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAAA,SAAA,EARlB;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,UAAU,EAAE,YAAY;AACzB,aAAA;AACF,SAAA,EAAA,CAAA,CAAA;;2FAEU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,MAAM;AACf,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACF,qBAAA;AACF,iBAAA;;;"}
|