@acorex-platform/module-auth-client 0.0.38 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs +179 -0
- package/fesm2022/acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-C1oSPf12.mjs} +1154 -107
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-C1oSPf12.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-CjWofUGR.mjs → acorex-platform-module-auth-client-app-chooser.component-CLKLwWW8.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-CjWofUGR.mjs.map → acorex-platform-module-auth-client-app-chooser.component-CLKLwWW8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs → acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs} +3 -3
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-xSXPWxyw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-BqU3jYV9.mjs → acorex-platform-module-auth-client-change-password.command-CknYaMZD.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-BqU3jYV9.mjs.map → acorex-platform-module-auth-client-change-password.command-CknYaMZD.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs → acorex-platform-module-auth-client-change-photo.command-CML784Lg.mjs} +71 -21
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CML784Lg.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs +69 -0
- package/fesm2022/acorex-platform-module-auth-client-command-return-url.util-mBmtJ7T2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +12 -7
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs → acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs} +25 -4
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-DulLUfWs.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-B1bKcSVQ.mjs → acorex-platform-module-auth-client-get-user-activity.query-CV9mdOBi.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-B1bKcSVQ.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-CV9mdOBi.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-DKtlBzS7.mjs → acorex-platform-module-auth-client-lock-screen.command-BH3Q6lJE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-DKtlBzS7.mjs.map → acorex-platform-module-auth-client-lock-screen.command-BH3Q6lJE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-login.module-CXl61yOu.mjs → acorex-platform-module-auth-client-login.module-DtvnPpBH.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-login.module-CXl61yOu.mjs.map → acorex-platform-module-auth-client-login.module-DtvnPpBH.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-manage-two-factor.command-BAg2W20W.mjs +445 -0
- package/fesm2022/acorex-platform-module-auth-client-manage-two-factor.command-BAg2W20W.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-master.layout-D7zUm7aL.mjs → acorex-platform-module-auth-client-master.layout-B3krDskY.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-master.layout-D7zUm7aL.mjs.map → acorex-platform-module-auth-client-master.layout-B3krDskY.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-fdWC08nA.mjs → acorex-platform-module-auth-client-oauth-callback.component-DWnljN18.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-fdWC08nA.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-DWnljN18.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-DKvyMkhl.mjs → acorex-platform-module-auth-client-open-sessions.command-CEpu6c7D.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-DKvyMkhl.mjs.map → acorex-platform-module-auth-client-open-sessions.command-CEpu6c7D.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs +28 -0
- package/fesm2022/acorex-platform-module-auth-client-open-waiting-room.command-CR-_ppYd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs → acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BE2JkYm_.mjs.map → acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-BoWDVby5.mjs → acorex-platform-module-auth-client-password.component-ddh-_0k3.mjs} +39 -9
- package/fesm2022/acorex-platform-module-auth-client-password.component-ddh-_0k3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-CFaRGMKu.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-D4bqeKCd.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-CFaRGMKu.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-D4bqeKCd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DWNbDzDd.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DWNbDzDd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-1Spuexhb.mjs → acorex-platform-module-auth-client-profile-page-component.provider-DLTbTEe6.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-1Spuexhb.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-DLTbTEe6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs → acorex-platform-module-auth-client-profile-page.component-BhmMsO3g.mjs} +9 -7
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-BhmMsO3g.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-pwa-install.component-BJOvT0hW.mjs +84 -0
- package/fesm2022/acorex-platform-module-auth-client-pwa-install.component-BJOvT0hW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs → acorex-platform-module-auth-client-register-password.component-M-ayP7oO.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs.map → acorex-platform-module-auth-client-register-password.component-M-ayP7oO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs → acorex-platform-module-auth-client-register.module-Qa3ovje0.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register.module-CpoYf5uG.mjs.map → acorex-platform-module-auth-client-register.module-Qa3ovje0.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs → acorex-platform-module-auth-client-remove-pin-code.command-BenNCyt6.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-Da7ryul6.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-BenNCyt6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs → acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-D0nxlhJm.mjs.map → acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs → acorex-platform-module-auth-client-result.component-PhPaEAgh.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-result.component-Bo1QkwMu.mjs.map → acorex-platform-module-auth-client-result.component-PhPaEAgh.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs +17 -0
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs → acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map → acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-cDCrwNRV.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-ChigSAI-.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-cDCrwNRV.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-ChigSAI-.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-FjM1kzUj.mjs → acorex-platform-module-auth-client-set-pin-code.command-CefSbJz8.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-FjM1kzUj.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-CefSbJz8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BgEgdFxQ.mjs → acorex-platform-module-auth-client-set-pin-code.component-DqFW_4rM.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BgEgdFxQ.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-DqFW_4rM.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs → acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs} +18 -13
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-DsKsZrOC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs → acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs} +7 -1
- package/fesm2022/acorex-platform-module-auth-client-signout-command-D4Qgv7q2.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-B8CNqHx5.mjs → acorex-platform-module-auth-client-tenant-chooser.component-DCdRCf1m.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-B8CNqHx5.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-DCdRCf1m.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs +48 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CtSv3MQu.mjs +200 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CtSv3MQu.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs → acorex-platform-module-auth-client-two-factor.module-B7tETPbq.mjs} +10 -5
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-B7tETPbq.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Cqb27L-l.mjs → acorex-platform-module-auth-client-view-login-history.command-CKPbyVWd.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Cqb27L-l.mjs.map → acorex-platform-module-auth-client-view-login-history.command-CKPbyVWd.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs +165 -0
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding-page.component-C2WYgv4l.mjs +813 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding-page.component-C2WYgv4l.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding.command-Ck1A26BI.mjs +59 -0
- package/fesm2022/acorex-platform-module-auth-client-welcome-onboarding.command-Ck1A26BI.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-auth-client-contracts.d.ts +13 -3
- package/types/acorex-platform-module-auth-client.d.ts +60 -2
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CRl74b8g.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CzO3A7OG.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-password.component-BoWDVby5.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CGs24n0j.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-B6iJHJ60.mjs +0 -13
- package/fesm2022/acorex-platform-module-auth-client-routes-B6iJHJ60.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-DGiK-MmW.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs +0 -40
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-BrqfaY8i.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-CI8KC5M_.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-profile-page.component-BhmMsO3g.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 (\n commandName === AXMAuthCommandKeys.Session.OpenSessions ||\n commandName === AXMAuthCommandKeys.Profile.EditAccountInfo ||\n commandName === AXMAuthCommandKeys.Security.ManageTwoFactor\n );\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","i5","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;AAEA;;AAEG;MAEU,iCAAiC,CAAA;AAD9C,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAkF5D,IAAA;;;AA5EC,IAAA,MAAM,UAAU,GAAA;AACd,QAAA,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAA8B,wBAAwB,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AAChH,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACvD;IAEA,MAAM,YAAY,CAAC,OAAgB,EAAA;QACjC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAgC,0BAA0B,EAAE;AACnG,YAAA,QAAQ,EAAE,EAAE;YACZ,OAAO;AACR,SAAA,CAAC;AACF,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,uBAAuB,C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,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAgCH,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBArCvC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,EAAA,OAAA,EACxB;wBACP,YAAY;wBACZ,SAAS;wBACT,YAAY;wBACZ,YAAY;wBACZ,iBAAiB;wBACjB,cAAc;wBACd,gBAAgB;wBAChB,gBAAgB;wBAChB,YAAY;wBACZ,kBAAkB;wBAClB,mBAAmB;wBACnB,eAAe;wBACf,sBAAsB;wBACtB,4BAA4B;wBAC5B,2BAA2B;wBAC3B,+BAA+B;wBAC/B,sBAAsB;wBACtB,iCAAiC;AAClC,qBAAA,EAAA,eAAA,EAGgB,uBAAuB,CAAC,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;;;"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as i1 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import * as i5 from '@acorex/core/translation';
|
|
4
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
5
|
+
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
6
|
+
import { AXPHomePageService } from '@acorex-platform/framework-client/common';
|
|
7
|
+
import { AsyncPipe } from '@angular/common';
|
|
8
|
+
import * as i0 from '@angular/core';
|
|
9
|
+
import { inject, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
10
|
+
import { Router } from '@angular/router';
|
|
11
|
+
import { firstValueFrom, filter } from 'rxjs';
|
|
12
|
+
import { x as AXPPwaInstallService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-C1oSPf12.mjs';
|
|
13
|
+
|
|
14
|
+
//#region ----- Imports -----
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ----- Component -----
|
|
17
|
+
class AXMPwaInstallComponent {
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ----- Lifecycle -----
|
|
20
|
+
constructor() {
|
|
21
|
+
//#region ----- Services & Dependencies -----
|
|
22
|
+
this.router = inject(Router);
|
|
23
|
+
this.sessionService = inject(AXPSessionService);
|
|
24
|
+
this.homePageService = inject(AXPHomePageService);
|
|
25
|
+
this.pwaInstall = inject(AXPPwaInstallService);
|
|
26
|
+
this.leavingInstalledSession = false;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ----- Computed Properties -----
|
|
29
|
+
this.isAuthorized = this.sessionService.isAuthorized;
|
|
30
|
+
effect(() => {
|
|
31
|
+
if (this.pwaInstall.installed()) {
|
|
32
|
+
void this.leaveInstalledSession();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ----- Event Handlers -----
|
|
38
|
+
async handleInstallClick() {
|
|
39
|
+
try {
|
|
40
|
+
await this.pwaInstall.promptInstall();
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
// Prompt can reject if the browser dismisses it; the page stays usable.
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
handleOpenAppClick() {
|
|
47
|
+
void this.leaveInstalledSession();
|
|
48
|
+
}
|
|
49
|
+
handleContinueInBrowserClick() {
|
|
50
|
+
this.pwaInstall.dismissPrompt();
|
|
51
|
+
void this.router.navigateByUrl('/auth/login');
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region ----- Navigation -----
|
|
55
|
+
async leaveInstalledSession() {
|
|
56
|
+
if (this.leavingInstalledSession) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
this.leavingInstalledSession = true;
|
|
60
|
+
try {
|
|
61
|
+
await firstValueFrom(this.sessionService.isLoading$.pipe(filter((loading) => !loading)));
|
|
62
|
+
if (this.sessionService.isAuthorized && this.sessionService.application?.name) {
|
|
63
|
+
await this.homePageService.navigateTo();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
await this.router.navigateByUrl('/auth/login');
|
|
67
|
+
}
|
|
68
|
+
catch {
|
|
69
|
+
await this.router.navigateByUrl('/auth/login');
|
|
70
|
+
}
|
|
71
|
+
finally {
|
|
72
|
+
this.leavingInstalledSession = false;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMPwaInstallComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMPwaInstallComponent, isStandalone: true, selector: "axm-pwa-install", ngImport: i0, template: "<div class=\"axp-auth-form axp-pwa-install\">\n <div class=\"axp-pwa-install__hero\" aria-hidden=\"true\">\n <img src=\"/assets/images/ui/pwa-install.svg\" alt=\"\" width=\"200\" height=\"132\" />\n </div>\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:pwa-install.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:pwa-install.hint' | translate | async }}\n </p>\n </div>\n\n @if (pwaInstall.installed()) {\n <!-- ----- Already running as an installed app ----- -->\n <p class=\"text-sm text-neutral-600 text-center mb-4\">\n {{ '@auth:pwa-install.installed-hint' | translate | async }}\n </p>\n <ax-button\n color=\"primary\"\n class=\"w-full\"\n [text]=\"'@auth:pwa-install.open-app' | translate | async\"\n (onClick)=\"handleOpenAppClick()\"\n ></ax-button>\n }\n <!-- ----- Offer native install or platform-specific steps ----- -->\n @else {\n <ul class=\"axp-pwa-install__benefits\" [attr.aria-label]=\"'@auth:pwa-install.benefits-label' | translate | async\">\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-house text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.home-screen.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.home-screen.description' | translate | async }}\n </p>\n </div>\n </li>\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-download text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.no-store.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.no-store.description' | translate | async }}\n </p>\n </div>\n </li>\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-cloud-arrow-down text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.offline-shell.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.offline-shell.description' | translate | async }}\n </p>\n </div>\n </li>\n </ul>\n\n <!--------------------------------------------------------------->\n <!-- ----- Chromium native install prompt ----- -->\n @if (pwaInstall.canPrompt()) {\n <ax-button\n color=\"primary\"\n class=\"w-full mt-4 lg:mt-6\"\n [text]=\"'@auth:pwa-install.install' | translate | async\"\n (onClick)=\"handleInstallClick()\"\n ></ax-button>\n }\n <!-- ----- Safari iOS cannot use beforeinstallprompt ----- -->\n @else if (pwaInstall.ios()) {\n <div class=\"axp-pwa-install__steps mt-4 lg:mt-6\">\n <p class=\"font-semibold mb-2\">{{ '@auth:pwa-install.ios.title' | translate | async }}</p>\n <ol class=\"axp-pwa-install__ol\">\n <li>{{ '@auth:pwa-install.ios.step-share' | translate | async }}</li>\n <li>{{ '@auth:pwa-install.ios.step-add' | translate | async }}</li>\n <li>{{ '@auth:pwa-install.ios.step-confirm' | translate | async }}</li>\n </ol>\n </div>\n }\n <!-- ----- Browser has no deferred prompt (dev HMR or unsupported) ----- -->\n @else {\n <div class=\"axp-pwa-install__steps mt-4 lg:mt-6\">\n <p class=\"font-semibold mb-2\">{{ '@auth:pwa-install.manual.title' | translate | async }}</p>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.manual.description' | translate | async }}\n </p>\n </div>\n }\n\n <!--------------------------------------------------------------->\n <!-- ----- Guest-only leave path; signed-in users already have the app chrome ----- -->\n @if (!isAuthorized) {\n <ax-button\n class=\"w-full mt-2\"\n color=\"default\"\n [text]=\"'@auth:pwa-install.continue-browser' | translate | async\"\n (onClick)=\"handleContinueInBrowserClick()\"\n ></ax-button>\n }\n }\n</div>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-pwa-install__hero{margin-bottom:calc(var(--spacing, .25rem) * 4);display:flex;justify-content:center}@media(width>=64rem){.axp-pwa-install__hero{margin-bottom:calc(var(--spacing, .25rem) * 5)}}.axp-pwa-install__hero img{width:200px;height:auto;display:block}.axp-pwa-install__benefits{display:flex;flex-direction:column;gap:calc(var(--spacing, .25rem) * 4);text-align:start}.axp-pwa-install__benefit{display:flex;align-items:flex-start;gap:calc(var(--spacing, .25rem) * 3)}.axp-pwa-install__benefit>i{margin-top:calc(var(--spacing, .25rem) * .5);flex-shrink:0;font-size:var(--text-lg, 1.125rem);line-height:var(--tw-leading, var(--text-lg--line-height, calc(1.75 / 1.125)))}.axp-pwa-install__ol{display:flex;list-style-type:decimal;flex-direction:column;gap:var(--spacing, .25rem);padding-inline-start:calc(var(--spacing, .25rem) * 5);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:var(--color-neutral-600, oklch(43.9% 0 none))}.axp-pwa-install__steps{text-align:start}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMPwaInstallComponent, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{ selector: 'axm-pwa-install', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXButtonModule, AXTranslationModule, AsyncPipe], template: "<div class=\"axp-auth-form axp-pwa-install\">\n <div class=\"axp-pwa-install__hero\" aria-hidden=\"true\">\n <img src=\"/assets/images/ui/pwa-install.svg\" alt=\"\" width=\"200\" height=\"132\" />\n </div>\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:pwa-install.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:pwa-install.hint' | translate | async }}\n </p>\n </div>\n\n @if (pwaInstall.installed()) {\n <!-- ----- Already running as an installed app ----- -->\n <p class=\"text-sm text-neutral-600 text-center mb-4\">\n {{ '@auth:pwa-install.installed-hint' | translate | async }}\n </p>\n <ax-button\n color=\"primary\"\n class=\"w-full\"\n [text]=\"'@auth:pwa-install.open-app' | translate | async\"\n (onClick)=\"handleOpenAppClick()\"\n ></ax-button>\n }\n <!-- ----- Offer native install or platform-specific steps ----- -->\n @else {\n <ul class=\"axp-pwa-install__benefits\" [attr.aria-label]=\"'@auth:pwa-install.benefits-label' | translate | async\">\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-house text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.home-screen.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.home-screen.description' | translate | async }}\n </p>\n </div>\n </li>\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-download text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.no-store.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.no-store.description' | translate | async }}\n </p>\n </div>\n </li>\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-cloud-arrow-down text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.offline-shell.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.offline-shell.description' | translate | async }}\n </p>\n </div>\n </li>\n </ul>\n\n <!--------------------------------------------------------------->\n <!-- ----- Chromium native install prompt ----- -->\n @if (pwaInstall.canPrompt()) {\n <ax-button\n color=\"primary\"\n class=\"w-full mt-4 lg:mt-6\"\n [text]=\"'@auth:pwa-install.install' | translate | async\"\n (onClick)=\"handleInstallClick()\"\n ></ax-button>\n }\n <!-- ----- Safari iOS cannot use beforeinstallprompt ----- -->\n @else if (pwaInstall.ios()) {\n <div class=\"axp-pwa-install__steps mt-4 lg:mt-6\">\n <p class=\"font-semibold mb-2\">{{ '@auth:pwa-install.ios.title' | translate | async }}</p>\n <ol class=\"axp-pwa-install__ol\">\n <li>{{ '@auth:pwa-install.ios.step-share' | translate | async }}</li>\n <li>{{ '@auth:pwa-install.ios.step-add' | translate | async }}</li>\n <li>{{ '@auth:pwa-install.ios.step-confirm' | translate | async }}</li>\n </ol>\n </div>\n }\n <!-- ----- Browser has no deferred prompt (dev HMR or unsupported) ----- -->\n @else {\n <div class=\"axp-pwa-install__steps mt-4 lg:mt-6\">\n <p class=\"font-semibold mb-2\">{{ '@auth:pwa-install.manual.title' | translate | async }}</p>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.manual.description' | translate | async }}\n </p>\n </div>\n }\n\n <!--------------------------------------------------------------->\n <!-- ----- Guest-only leave path; signed-in users already have the app chrome ----- -->\n @if (!isAuthorized) {\n <ax-button\n class=\"w-full mt-2\"\n color=\"default\"\n [text]=\"'@auth:pwa-install.continue-browser' | translate | async\"\n (onClick)=\"handleContinueInBrowserClick()\"\n ></ax-button>\n }\n }\n</div>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-auth-form{width:24rem;max-width:100%}}.axp-pwa-install__hero{margin-bottom:calc(var(--spacing, .25rem) * 4);display:flex;justify-content:center}@media(width>=64rem){.axp-pwa-install__hero{margin-bottom:calc(var(--spacing, .25rem) * 5)}}.axp-pwa-install__hero img{width:200px;height:auto;display:block}.axp-pwa-install__benefits{display:flex;flex-direction:column;gap:calc(var(--spacing, .25rem) * 4);text-align:start}.axp-pwa-install__benefit{display:flex;align-items:flex-start;gap:calc(var(--spacing, .25rem) * 3)}.axp-pwa-install__benefit>i{margin-top:calc(var(--spacing, .25rem) * .5);flex-shrink:0;font-size:var(--text-lg, 1.125rem);line-height:var(--tw-leading, var(--text-lg--line-height, calc(1.75 / 1.125)))}.axp-pwa-install__ol{display:flex;list-style-type:decimal;flex-direction:column;gap:var(--spacing, .25rem);padding-inline-start:calc(var(--spacing, .25rem) * 5);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:var(--color-neutral-600, oklch(43.9% 0 none))}.axp-pwa-install__steps{text-align:start}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
81
|
+
}], ctorParameters: () => [] });
|
|
82
|
+
|
|
83
|
+
export { AXMPwaInstallComponent };
|
|
84
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-pwa-install.component-BJOvT0hW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-pwa-install.component-BJOvT0hW.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/install/pwa-install.component.ts","../../../../libs/modules/auth/client/src/lib/pages/install/pwa-install.component.html"],"sourcesContent":["//#region ----- Imports -----\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPHomePageService } from '@acorex-platform/framework-client/common';\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { filter, firstValueFrom } from 'rxjs';\nimport { AXPPwaInstallService } from './pwa-install.service';\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n selector: 'axm-pwa-install',\n templateUrl: './pwa-install.component.html',\n styleUrls: ['./pwa-install.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXButtonModule, AXTranslationModule, AsyncPipe],\n})\nexport class AXMPwaInstallComponent {\n //#region ----- Services & Dependencies -----\n\n private readonly router = inject(Router);\n private readonly sessionService = inject(AXPSessionService);\n private readonly homePageService = inject(AXPHomePageService);\n protected readonly pwaInstall = inject(AXPPwaInstallService);\n private leavingInstalledSession = false;\n\n //#endregion\n\n //#region ----- Computed Properties -----\n\n protected readonly isAuthorized = this.sessionService.isAuthorized;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n constructor() {\n effect(() => {\n if (this.pwaInstall.installed()) {\n void this.leaveInstalledSession();\n }\n });\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected async handleInstallClick(): Promise<void> {\n try {\n await this.pwaInstall.promptInstall();\n } catch {\n // Prompt can reject if the browser dismisses it; the page stays usable.\n }\n }\n\n protected handleOpenAppClick(): void {\n void this.leaveInstalledSession();\n }\n\n protected handleContinueInBrowserClick(): void {\n this.pwaInstall.dismissPrompt();\n void this.router.navigateByUrl('/auth/login');\n }\n\n //#endregion\n\n //#region ----- Navigation -----\n\n private async leaveInstalledSession(): Promise<void> {\n if (this.leavingInstalledSession) {\n return;\n }\n this.leavingInstalledSession = true;\n try {\n await firstValueFrom(this.sessionService.isLoading$.pipe(filter((loading) => !loading)));\n if (this.sessionService.isAuthorized && this.sessionService.application?.name) {\n await this.homePageService.navigateTo();\n return;\n }\n await this.router.navigateByUrl('/auth/login');\n } catch {\n await this.router.navigateByUrl('/auth/login');\n } finally {\n this.leavingInstalledSession = false;\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","<div class=\"axp-auth-form axp-pwa-install\">\n <div class=\"axp-pwa-install__hero\" aria-hidden=\"true\">\n <img src=\"/assets/images/ui/pwa-install.svg\" alt=\"\" width=\"200\" height=\"132\" />\n </div>\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:pwa-install.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:pwa-install.hint' | translate | async }}\n </p>\n </div>\n\n @if (pwaInstall.installed()) {\n <!-- ----- Already running as an installed app ----- -->\n <p class=\"text-sm text-neutral-600 text-center mb-4\">\n {{ '@auth:pwa-install.installed-hint' | translate | async }}\n </p>\n <ax-button\n color=\"primary\"\n class=\"w-full\"\n [text]=\"'@auth:pwa-install.open-app' | translate | async\"\n (onClick)=\"handleOpenAppClick()\"\n ></ax-button>\n }\n <!-- ----- Offer native install or platform-specific steps ----- -->\n @else {\n <ul class=\"axp-pwa-install__benefits\" [attr.aria-label]=\"'@auth:pwa-install.benefits-label' | translate | async\">\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-house text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.home-screen.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.home-screen.description' | translate | async }}\n </p>\n </div>\n </li>\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-download text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.no-store.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.no-store.description' | translate | async }}\n </p>\n </div>\n </li>\n <li class=\"axp-pwa-install__benefit\">\n <i class=\"fa-light fa-cloud-arrow-down text-primary-500\" aria-hidden=\"true\"></i>\n <div>\n <div class=\"font-semibold\">{{ '@auth:pwa-install.benefits.offline-shell.title' | translate | async }}</div>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.benefits.offline-shell.description' | translate | async }}\n </p>\n </div>\n </li>\n </ul>\n\n <!--------------------------------------------------------------->\n <!-- ----- Chromium native install prompt ----- -->\n @if (pwaInstall.canPrompt()) {\n <ax-button\n color=\"primary\"\n class=\"w-full mt-4 lg:mt-6\"\n [text]=\"'@auth:pwa-install.install' | translate | async\"\n (onClick)=\"handleInstallClick()\"\n ></ax-button>\n }\n <!-- ----- Safari iOS cannot use beforeinstallprompt ----- -->\n @else if (pwaInstall.ios()) {\n <div class=\"axp-pwa-install__steps mt-4 lg:mt-6\">\n <p class=\"font-semibold mb-2\">{{ '@auth:pwa-install.ios.title' | translate | async }}</p>\n <ol class=\"axp-pwa-install__ol\">\n <li>{{ '@auth:pwa-install.ios.step-share' | translate | async }}</li>\n <li>{{ '@auth:pwa-install.ios.step-add' | translate | async }}</li>\n <li>{{ '@auth:pwa-install.ios.step-confirm' | translate | async }}</li>\n </ol>\n </div>\n }\n <!-- ----- Browser has no deferred prompt (dev HMR or unsupported) ----- -->\n @else {\n <div class=\"axp-pwa-install__steps mt-4 lg:mt-6\">\n <p class=\"font-semibold mb-2\">{{ '@auth:pwa-install.manual.title' | translate | async }}</p>\n <p class=\"text-sm text-neutral-600\">\n {{ '@auth:pwa-install.manual.description' | translate | async }}\n </p>\n </div>\n }\n\n <!--------------------------------------------------------------->\n <!-- ----- Guest-only leave path; signed-in users already have the app chrome ----- -->\n @if (!isAuthorized) {\n <ax-button\n class=\"w-full mt-2\"\n color=\"default\"\n [text]=\"'@auth:pwa-install.continue-browser' | translate | async\"\n (onClick)=\"handleContinueInBrowserClick()\"\n ></ax-button>\n }\n }\n</div>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;AAYA;AAEA;MASa,sBAAsB,CAAA;;;AAmBjC,IAAA,WAAA,GAAA;;AAhBiB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC1C,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,oBAAoB,CAAC;QACpD,IAAA,CAAA,uBAAuB,GAAG,KAAK;;;AAMpB,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY;QAOhE,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,EAAE;AAC/B,gBAAA,KAAK,IAAI,CAAC,qBAAqB,EAAE;YACnC;AACF,QAAA,CAAC,CAAC;IACJ;;;AAMU,IAAA,MAAM,kBAAkB,GAAA;AAChC,QA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AoGA,EAAA,MAAA,EAAA,CAAA,2uCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED/EY,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,YAAA,EAAA,UAAA,EAAA,UAAA,EAAA,MAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,0FAAE,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAE7C,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAPlC,SAAS;+BACE,iBAAiB,EAAA,eAAA,EAGV,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,cAAc,EAAE,mBAAmB,EAAE,SAAS,CAAC,EAAA,QAAA,EAAA,owIAAA,EAAA,MAAA,EAAA,CAAA,2uCAAA,CAAA,EAAA;;;"}
|
|
@@ -3,11 +3,11 @@ import { AXButtonModule } from '@acorex/components/button';
|
|
|
3
3
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
4
4
|
import * as i1 from '@acorex/components/form';
|
|
5
5
|
import { AXFormModule, AXFormComponent } from '@acorex/components/form';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i4 from '@acorex/components/label';
|
|
7
7
|
import { AXLabelModule } from '@acorex/components/label';
|
|
8
|
-
import * as i2$
|
|
8
|
+
import * as i2$2 from '@acorex/components/loading';
|
|
9
9
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
10
|
-
import * as
|
|
10
|
+
import * as i2$1 from '@acorex/components/password-box';
|
|
11
11
|
import { AXPasswordBoxModule } from '@acorex/components/password-box';
|
|
12
12
|
import * as i2 from '@acorex/components/text-box';
|
|
13
13
|
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
@@ -17,13 +17,13 @@ import { AXTranslationModule } from '@acorex/core/translation';
|
|
|
17
17
|
import { AXValidationModule } from '@acorex/core/validation';
|
|
18
18
|
import { AXPHomePageService } from '@acorex-platform/framework-client/common';
|
|
19
19
|
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
20
|
-
import * as
|
|
20
|
+
import * as i3 from '@angular/common';
|
|
21
21
|
import { CommonModule } from '@angular/common';
|
|
22
22
|
import * as i0 from '@angular/core';
|
|
23
23
|
import { inject, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
24
24
|
import { RouterModule, Router } from '@angular/router';
|
|
25
25
|
import { BehaviorSubject, firstValueFrom } from 'rxjs';
|
|
26
|
-
import {
|
|
26
|
+
import { w as AXMAuthPlatformSettingsService, H as AXMAuthenticationTypes } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-C1oSPf12.mjs';
|
|
27
27
|
|
|
28
28
|
const MODULES = [
|
|
29
29
|
CommonModule,
|
|
@@ -132,7 +132,7 @@ class AXPRegisterPasswordComponent {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPRegisterPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
135
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPRegisterPasswordComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"text-center mb-4\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:signup.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signup.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-80 lg:w-96\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:' + usernameLabel | translate | async\n }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"username\"\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:display-name' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'displayName'\"\n id=\"displayName\"\n [autoComplete]=\"'name'\"\n [(value)]=\"displayName\"\n >\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]=\"'new-password'\"\n [(value)]=\"password\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"regex\"\n message=\"Password must contain at least 8 characters\"\n [options]=\"{ pattern: '^.{8,}$' }\"\n >\n </ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n [name]=\"'confirmPassword'\"\n id=\"confirmPassword\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"confirmPassword\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"callback\"\n [options]=\"{ validate: comparePasswordFn }\"\n ></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-6 w-full\"\n id=\"submit-register\"\n [text]=\"'@auth:signup.submit' | translate | async\"\n (onClick)=\"handleRegisterClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </ax-form>\n <ax-button\n class=\"w-full mt-2\"\n id=\"back-to-login\"\n (onClick)=\"handleLoginOnClick()\"\n text=\"{{ '@auth:signin.title' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\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: "directive", type: i1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type:
|
|
135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPRegisterPasswordComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"text-center mb-4\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:signup.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signup.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-80 lg:w-96\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:' + usernameLabel | translate | async\n }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"username\"\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:display-name' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'displayName'\"\n id=\"displayName\"\n [autoComplete]=\"'name'\"\n [(value)]=\"displayName\"\n >\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]=\"'new-password'\"\n [(value)]=\"password\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"regex\"\n message=\"Password must contain at least 8 characters\"\n [options]=\"{ pattern: '^.{8,}$' }\"\n >\n </ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n [name]=\"'confirmPassword'\"\n id=\"confirmPassword\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"confirmPassword\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"callback\"\n [options]=\"{ validate: comparePasswordFn }\"\n ></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-6 w-full\"\n id=\"submit-register\"\n [text]=\"'@auth:signup.submit' | translate | async\"\n (onClick)=\"handleRegisterClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </ax-form>\n <ax-button\n class=\"w-full mt-2\"\n id=\"back-to-login\"\n (onClick)=\"handleLoginOnClick()\"\n text=\"{{ '@auth:signin.title' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\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: "directive", type: i1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "maskPattern", "customTokens", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onMaskChanged"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i2$1.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i2$2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
136
136
|
}
|
|
137
137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPRegisterPasswordComponent, decorators: [{
|
|
138
138
|
type: Component,
|
|
@@ -143,4 +143,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
143
143
|
}] } });
|
|
144
144
|
|
|
145
145
|
export { AXPRegisterPasswordComponent };
|
|
146
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-register-password.component-
|
|
146
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-register-password.component-M-ayP7oO.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-register-password.component-BlOn9609.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/password/register-password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/register/password/register-password.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\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 { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPHomePageService } from '@acorex-platform/framework-client/common';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { CommonModule } from '@angular/common';\nimport { Component, OnInit, ViewChild, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { Router, RouterModule } from '@angular/router';\nimport { BehaviorSubject, firstValueFrom } from 'rxjs';\nimport { AXMAuthenticationTypes } from '../../../auth.config';\nimport { AXMAuthPlatformSettingsService } from '../../../auth-platform-settings.service';\n\nconst MODULES = [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXLoadingModule,\n RouterModule,\n AXValidationModule,\n];\n\n@Component({\n templateUrl: './register-password.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [...MODULES],\n})\nexport class AXPRegisterPasswordComponent implements OnInit {\n private readonly authPlatformSettings = inject(AXMAuthPlatformSettingsService);\n private sessionService = inject(AXPSessionService);\n private homePageService = inject(AXPHomePageService);\n private toastService = inject(AXToastService);\n private router = inject(Router);\n\n @ViewChild(AXFormComponent)\n private form!: AXFormComponent;\n\n protected usernameLabel = 'username';\n protected username = '';\n protected displayName = '';\n protected password: string | null = '';\n protected confirmPassword: string | null = '';\n protected isLoading$ = new BehaviorSubject(false);\n\n protected comparePasswordFn = (): boolean => {\n return this.password === this.confirmPassword;\n };\n\n ngOnInit(): void {\n switch (this.authPlatformSettings.credentialType()) {\n case AXMAuthenticationTypes.EmailPassword:\n this.usernameLabel = 'email';\n break;\n case AXMAuthenticationTypes.MobilePassword:\n this.usernameLabel = 'mobile';\n break;\n case AXMAuthenticationTypes.UsernameEmailPassword:\n this.usernameLabel = 'username-email';\n break;\n default:\n this.usernameLabel = 'username';\n }\n }\n\n protected handleLoginOnClick(): void {\n this.router.navigate(['/auth/login']);\n }\n\n protected handleRegisterClick(): void {\n const strategyName = this.authPlatformSettings.defaultStrategyName();\n this.sessionService.setStrategy(strategyName);\n\n this.form.validate().then(async (form) => {\n if (!form.result) {\n return;\n }\n\n this.isLoading$.next(true);\n\n try {\n await this.sessionService.register({\n strategy: strategyName,\n username: this.username.trim(),\n password: this.password!,\n ...(this.displayName.trim() ? { displayName: this.displayName.trim() } : {}),\n });\n\n const isAuthenticated = await firstValueFrom(this.sessionService.isAuthenticated$);\n if (!isAuthenticated) {\n throw new Error('Registration succeeded but session was not established');\n }\n\n await this.navigateAfterAuth();\n } catch (error: unknown) {\n this.showRegisterError(error);\n } finally {\n this.isLoading$.next(false);\n }\n });\n }\n\n private async navigateAfterAuth(): 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 await this.homePageService.navigateTo();\n }\n\n private showRegisterError(error: unknown): void {\n let errorMsg = 'An error occurred during registration.';\n\n if (error && typeof error === 'object') {\n const err = error as Record<string, unknown>;\n const apiError = err['apiError'] as Record<string, unknown> | undefined;\n\n if (apiError?.['message'] && typeof apiError['message'] === 'string') {\n errorMsg = apiError['message'];\n } else if (typeof err['message'] === 'string') {\n errorMsg = err['message'];\n }\n }\n\n this.toastService.show({\n color: 'danger',\n content: errorMsg,\n timeOut: 5000,\n });\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"text-center mb-4\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:signup.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signup.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-80 lg:w-96\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:' + usernameLabel | translate | async\n }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"username\"\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:display-name' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'displayName'\"\n id=\"displayName\"\n [autoComplete]=\"'name'\"\n [(value)]=\"displayName\"\n >\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]=\"'new-password'\"\n [(value)]=\"password\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"regex\"\n message=\"Password must contain at least 8 characters\"\n [options]=\"{ pattern: '^.{8,}$' }\"\n >\n </ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n [name]=\"'confirmPassword'\"\n id=\"confirmPassword\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"confirmPassword\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"callback\"\n [options]=\"{ validate: comparePasswordFn }\"\n ></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-6 w-full\"\n id=\"submit-register\"\n [text]=\"'@auth:signup.submit' | translate | async\"\n (onClick)=\"handleRegisterClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </ax-form>\n <ax-button\n class=\"w-full mt-2\"\n id=\"back-to-login\"\n (onClick)=\"handleLoginOnClick()\"\n text=\"{{ '@auth:signin.title' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n </div>\n</ng-container>\n"],"names":["i4","i5","i6","i7","i8"],"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,aAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACf,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,kBAAkB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAF,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAQP,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,SAAS;AAES,YAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC,CAAC,GAAG,OAAO,CAAC,EAAA,QAAA,EAAA,ykGAAA,EAAA;;sBASpB,SAAS;uBAAC,eAAe;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-register-password.component-M-ayP7oO.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/password/register-password.component.ts","../../../../libs/modules/auth/client/src/lib/pages/register/password/register-password.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\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 { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPHomePageService } from '@acorex-platform/framework-client/common';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { CommonModule } from '@angular/common';\nimport { Component, OnInit, ViewChild, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { Router, RouterModule } from '@angular/router';\nimport { BehaviorSubject, firstValueFrom } from 'rxjs';\nimport { AXMAuthenticationTypes } from '../../../auth.config';\nimport { AXMAuthPlatformSettingsService } from '../../../auth-platform-settings.service';\n\nconst MODULES = [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXLoadingModule,\n RouterModule,\n AXValidationModule,\n];\n\n@Component({\n templateUrl: './register-password.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [...MODULES],\n})\nexport class AXPRegisterPasswordComponent implements OnInit {\n private readonly authPlatformSettings = inject(AXMAuthPlatformSettingsService);\n private sessionService = inject(AXPSessionService);\n private homePageService = inject(AXPHomePageService);\n private toastService = inject(AXToastService);\n private router = inject(Router);\n\n @ViewChild(AXFormComponent)\n private form!: AXFormComponent;\n\n protected usernameLabel = 'username';\n protected username = '';\n protected displayName = '';\n protected password: string | null = '';\n protected confirmPassword: string | null = '';\n protected isLoading$ = new BehaviorSubject(false);\n\n protected comparePasswordFn = (): boolean => {\n return this.password === this.confirmPassword;\n };\n\n ngOnInit(): void {\n switch (this.authPlatformSettings.credentialType()) {\n case AXMAuthenticationTypes.EmailPassword:\n this.usernameLabel = 'email';\n break;\n case AXMAuthenticationTypes.MobilePassword:\n this.usernameLabel = 'mobile';\n break;\n case AXMAuthenticationTypes.UsernameEmailPassword:\n this.usernameLabel = 'username-email';\n break;\n default:\n this.usernameLabel = 'username';\n }\n }\n\n protected handleLoginOnClick(): void {\n this.router.navigate(['/auth/login']);\n }\n\n protected handleRegisterClick(): void {\n const strategyName = this.authPlatformSettings.defaultStrategyName();\n this.sessionService.setStrategy(strategyName);\n\n this.form.validate().then(async (form) => {\n if (!form.result) {\n return;\n }\n\n this.isLoading$.next(true);\n\n try {\n await this.sessionService.register({\n strategy: strategyName,\n username: this.username.trim(),\n password: this.password!,\n ...(this.displayName.trim() ? { displayName: this.displayName.trim() } : {}),\n });\n\n const isAuthenticated = await firstValueFrom(this.sessionService.isAuthenticated$);\n if (!isAuthenticated) {\n throw new Error('Registration succeeded but session was not established');\n }\n\n await this.navigateAfterAuth();\n } catch (error: unknown) {\n this.showRegisterError(error);\n } finally {\n this.isLoading$.next(false);\n }\n });\n }\n\n private async navigateAfterAuth(): 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 await this.homePageService.navigateTo();\n }\n\n private showRegisterError(error: unknown): void {\n let errorMsg = 'An error occurred during registration.';\n\n if (error && typeof error === 'object') {\n const err = error as Record<string, unknown>;\n const apiError = err['apiError'] as Record<string, unknown> | undefined;\n\n if (apiError?.['message'] && typeof apiError['message'] === 'string') {\n errorMsg = apiError['message'];\n } else if (typeof err['message'] === 'string') {\n errorMsg = err['message'];\n }\n }\n\n this.toastService.show({\n color: 'danger',\n content: errorMsg,\n timeOut: 5000,\n });\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"text-center mb-4\">\n <h1 class=\"font-bold text-xl mb-2\">\n {{ '@auth:signup.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:signup.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-80 lg:w-96\">\n <ax-form>\n <div class=\"flex flex-col gap-6\">\n <ax-form-field>\n <ax-label>{{\n '@auth:' + usernameLabel | translate | async\n }}</ax-label>\n <ax-text-box\n [name]=\"'username'\"\n id=\"username\"\n [autoComplete]=\"'username'\"\n [(value)]=\"username\"\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:display-name' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'displayName'\"\n id=\"displayName\"\n [autoComplete]=\"'name'\"\n [(value)]=\"displayName\"\n >\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]=\"'new-password'\"\n [(value)]=\"password\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"regex\"\n message=\"Password must contain at least 8 characters\"\n [options]=\"{ pattern: '^.{8,}$' }\"\n >\n </ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{\n '@auth:confirm-password' | translate | async\n }}</ax-label>\n <ax-password-box\n [name]=\"'confirmPassword'\"\n id=\"confirmPassword\"\n [autoComplete]=\"'new-password'\"\n [(value)]=\"confirmPassword\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule\n rule=\"callback\"\n [options]=\"{ validate: comparePasswordFn }\"\n ></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-6 w-full\"\n id=\"submit-register\"\n [text]=\"'@auth:signup.submit' | translate | async\"\n (onClick)=\"handleRegisterClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </ax-form>\n <ax-button\n class=\"w-full mt-2\"\n id=\"back-to-login\"\n (onClick)=\"handleLoginOnClick()\"\n text=\"{{ '@auth:signin.title' | translate | async }}\"\n [color]=\"'default'\"\n >\n </ax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AAA,EAAAC,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACf,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,kBAAkB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAF,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAQP,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,SAAS;AAES,YAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC,CAAC,GAAG,OAAO,CAAC,EAAA,QAAA,EAAA,ykGAAA,EAAA;;sBASpB,SAAS;uBAAC,eAAe;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, NgModule } from '@angular/core';
|
|
3
3
|
import { Router, ROUTES } from '@angular/router';
|
|
4
|
-
import {
|
|
4
|
+
import { w as AXMAuthPlatformSettingsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-C1oSPf12.mjs';
|
|
5
5
|
|
|
6
6
|
//#region ----- Register page guard -----
|
|
7
7
|
/** Blocks register when platform Sign-Up setting is disabled. */
|
|
@@ -20,12 +20,12 @@ function routesFacory() {
|
|
|
20
20
|
{
|
|
21
21
|
path: 'register',
|
|
22
22
|
canActivate: [canActivateRegister],
|
|
23
|
-
loadComponent: () => import('./acorex-platform-module-auth-client-register-password.component-
|
|
23
|
+
loadComponent: () => import('./acorex-platform-module-auth-client-register-password.component-M-ayP7oO.mjs').then((c) => c.AXPRegisterPasswordComponent),
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
path: 'result',
|
|
27
27
|
loadComponent: () => {
|
|
28
|
-
return import('./acorex-platform-module-auth-client-result.component-
|
|
28
|
+
return import('./acorex-platform-module-auth-client-result.component-PhPaEAgh.mjs').then((c) => c.AXPRegisterResultComponent);
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
31
|
];
|
|
@@ -59,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
59
59
|
}] });
|
|
60
60
|
|
|
61
61
|
export { AXPRegisterModule };
|
|
62
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-register.module-
|
|
62
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-register.module-Qa3ovje0.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-register.module-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-register.module-Qa3ovje0.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/register/register.guard.ts","../../../../libs/modules/auth/client/src/lib/pages/register/register.module.ts"],"sourcesContent":["import { inject } from '@angular/core';\nimport { CanActivateFn, Router } from '@angular/router';\nimport { AXMAuthPlatformSettingsService } from '../../auth-platform-settings.service';\n\n//#region ----- Register page guard -----\n\n/** Blocks register when platform Sign-Up setting is disabled. */\nexport const canActivateRegister: CanActivateFn = () => {\n const authPlatformSettings = inject(AXMAuthPlatformSettingsService);\n const router = inject(Router);\n\n if (!authPlatformSettings.signupEnabled()) {\n return router.createUrlTree(['/auth/login']);\n }\n\n return true;\n};\n\n//#endregion\n","import { NgModule } from '@angular/core';\nimport { ROUTES, Routes } from '@angular/router';\nimport { canActivateRegister } from './register.guard';\n\nfunction routesFacory() {\n const routes: Routes = [\n {\n path: 'register',\n canActivate: [canActivateRegister],\n loadComponent: () =>\n import('./password/register-password.component').then((c) => c.AXPRegisterPasswordComponent),\n },\n {\n path: 'result',\n loadComponent: () => {\n return import('./result/result.component').then((c) => c.AXPRegisterResultComponent);\n },\n },\n ];\n return routes;\n}\n\n@NgModule({\n imports: [],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPRegisterModule {}\n"],"names":[],"mappings":";;;;;AAIA;AAEA;AACO,MAAM,mBAAmB,GAAkB,MAAK;AACrD,IAAA,MAAM,oBAAoB,GAAG,MAAM,CAAC,8BAA8B,CAAC;AACnE,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAE7B,IAAA,IAAI,CAAC,oBAAoB,CAAC,aAAa,EAAE,EAAE;QACzC,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,CAAC;IAC9C;AAEA,IAAA,OAAO,IAAI;AACb,CAAC;AAED;;ACdA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,MAAM,GAAW;AACrB,QAAA;AACE,YAAA,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,CAAC,mBAAmB,CAAC;AAClC,YAAA,aAAa,EAAE,MACb,OAAO,+EAAwC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,CAAC;AAC/F,SAAA;AACD,QAAA;AACE,YAAA,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,MAAK;AAClB,gBAAA,OAAO,OAAO,oEAA2B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,CAAC;YACtF,CAAC;AACF,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAca,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAjB,iBAAiB,EAAA,CAAA,CAAA;AAAjB,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,iBAAiB,EAAA,SAAA,EARjB;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,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAZ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AAChB,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;;;"}
|
|
@@ -7,7 +7,7 @@ import { AXPEntityService } from '@acorex-platform/framework-client/layout/entit
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { inject, Injectable } from '@angular/core';
|
|
9
9
|
import { isNil, isEmpty, defaultTo, get } from 'lodash';
|
|
10
|
-
import { j as AXPIdleLockService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-
|
|
10
|
+
import { j as AXPIdleLockService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-C1oSPf12.mjs';
|
|
11
11
|
|
|
12
12
|
//#region ---- Remove PIN code command ----
|
|
13
13
|
/** Removes the current user's security PIN after confirmation. */
|
|
@@ -88,4 +88,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
88
88
|
}] });
|
|
89
89
|
|
|
90
90
|
export { AXPRemovePinCodeCommand };
|
|
91
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-remove-pin-code.command-
|
|
91
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-remove-pin-code.command-BenNCyt6.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-remove-pin-code.command-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-remove-pin-code.command-BenNCyt6.mjs","sources":["../../../../libs/modules/auth/client/src/lib/commands/remove-pin-code.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {AXMSecurityManagementUsersEntityModel} from '@acorex-platform/module-security-management-client/contracts'\nimport {RootConfig as SecurityManagementRootConfig} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject, Injectable } from '@angular/core';\nimport { defaultTo, get, isEmpty, isNil } from 'lodash';\n\nimport { AXPIdleLockService } from '../shared/services/idle-lock.service';\n\n//#region ---- Remove PIN code command ----\n\n/** Removes the current user's security PIN after confirmation. */\n@Injectable({ providedIn: 'root' })\nexport class AXPRemovePinCodeCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly dialogService = inject(AXDialogService);\n private readonly translateService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly entityService = inject(AXPEntityService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly idleLockService = inject(AXPIdleLockService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n if (!(await this.userHasPinCode())) {\n await this.showError('@auth:profile-page.commands.remove-pin-code.messages.no-pin');\n return { success: false };\n }\n\n const dialogResult = await this.dialogService.confirm(\n await this.translateService.translateAsync('@auth:profile-page.commands.remove-pin-code.dialog.title'),\n await this.translateService.translateAsync('@auth:profile-page.commands.remove-pin-code.dialog.description'),\n 'warning',\n 'horizontal',\n false,\n 'cancel',\n );\n\n if (!dialogResult.result) {\n return { success: false };\n }\n\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n await this.showError('@auth:profile-page.commands.remove-pin-code.messages.not-signed-in');\n return { success: false };\n }\n\n try {\n await this.entityService\n .withEntity(SecurityManagementRootConfig.module.name, SecurityManagementRootConfig.entities.users.name)\n .data<string, AXMSecurityManagementUsersEntityModel>()\n .update(userId, { pinCode: '', pinChangedAt: null });\n\n if (this.idleLockService.canLock()) {\n await this.idleLockService.notifyPinChanged();\n }\n\n const successTitle = await this.translateService.translateAsync(\n '@auth:profile-page.commands.remove-pin-code.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n\n return { success: true, kind: 'object', data: undefined };\n } catch (error) {\n console.error('Failed to remove security PIN', error);\n await this.showError('@auth:profile-page.commands.remove-pin-code.messages.remove-failed');\n return { success: false };\n }\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private async userHasPinCode(): Promise<boolean> {\n const userId = this.sessionService.user?.id;\n if (isNil(userId)) {\n return false;\n }\n\n try {\n const user = await this.entityService\n .withEntity(SecurityManagementRootConfig.module.name, SecurityManagementRootConfig.entities.users.name)\n .data<string, AXMSecurityManagementUsersEntityModel>()\n .byKey(userId);\n\n return !isEmpty(defaultTo(get(user, 'pinCode'), ''));\n } catch (error) {\n console.error('Failed to load security PIN for remove command', error);\n return false;\n }\n }\n\n private async showError(messageKey: string): Promise<void> {\n const content = await this.translateService.translateAsync(messageKey);\n const title = await this.translateService.translateAsync('@general:messages.generic.error.title');\n this.toastService.show({ color: 'danger', title, content, closeButton: true });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig"],"mappings":";;;;;;;;;;;AAeA;AAEA;MAEa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAC/C,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAoF9D,IAAA;;;AA9EC,IAAA,MAAM,OAAO,GAAA;QACX,IAAI,EAAE,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE;AAClC,YAAA,MAAM,IAAI,CAAC,SAAS,CAAC,6DAA6D,CAAC;AACnF,YAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B;AAEA,QAAA,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CACnD,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,0DAA0D,CAAC,EACtG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,gEAAgE,CAAC,EAC5G,SAAS,EACT,YAAY,EACZ,KAAK,EACL,QAAQ,CACT;AAED,QAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;AACxB,YAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B;QAEA,MAAM,MAAM,GAAG,IAAI,CAA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