@acorex-platform/module-auth-client 0.0.58 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs → acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-accept-invitation.component-Ct28GG3a.mjs.map → acorex-platform-module-auth-client-accept-invitation.component-Bq49K_8F.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-CQEt9bXJ.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-DINrCCAx.mjs} +75 -51
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-DINrCCAx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-SUwPTueG.mjs → acorex-platform-module-auth-client-app-chooser.component-C1fUi_Mp.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-app-chooser.component-SUwPTueG.mjs.map → acorex-platform-module-auth-client-app-chooser.component-C1fUi_Mp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-DRwzhNlO.mjs → acorex-platform-module-auth-client-change-password.command-UvBqwF9V.mjs} +48 -23
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-UvBqwF9V.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-C1Fm_MdA.mjs → acorex-platform-module-auth-client-change-photo.command-2e7ZjiEf.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-change-photo.command-C1Fm_MdA.mjs.map → acorex-platform-module-auth-client-change-photo.command-2e7ZjiEf.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-CLdmidQb.mjs → acorex-platform-module-auth-client-get-user-activity.query-BGOYJ4FC.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-get-user-activity.query-CLdmidQb.mjs.map → acorex-platform-module-auth-client-get-user-activity.query-BGOYJ4FC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-CHbe_N-Z.mjs → acorex-platform-module-auth-client-lock-screen.command-BOKKr6WW.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-CHbe_N-Z.mjs.map → acorex-platform-module-auth-client-lock-screen.command-BOKKr6WW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-login.module-BM3L_d8i.mjs → acorex-platform-module-auth-client-login.module-gi6wea8m.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-login.module-BM3L_d8i.mjs.map → acorex-platform-module-auth-client-login.module-gi6wea8m.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-BOM6_896.mjs → acorex-platform-module-auth-client-manage-two-factor.command-DRsNZWZF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-manage-two-factor.command-BOM6_896.mjs.map → acorex-platform-module-auth-client-manage-two-factor.command-DRsNZWZF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-BgUSFibH.mjs → acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-BgUSFibH.mjs.map → acorex-platform-module-auth-client-oauth-callback.component-DLrIDQXn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-Dq9eJ-bY.mjs → acorex-platform-module-auth-client-open-sessions.command-CwWtPiTG.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-open-sessions.command-Dq9eJ-bY.mjs.map → acorex-platform-module-auth-client-open-sessions.command-CwWtPiTG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-SpEVRPaE.mjs → acorex-platform-module-auth-client-password.component-CAZ3tVPG.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-password.component-SpEVRPaE.mjs.map → acorex-platform-module-auth-client-password.component-CAZ3tVPG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs → acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-password.component-Ci5Wy3rO.mjs.map → acorex-platform-module-auth-client-password.component-CE2nXYCz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs → acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-platform-settings-unavailable.component-LwuokJiZ.mjs.map → acorex-platform-module-auth-client-platform-settings-unavailable.component-BJMtsa99.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DcMdz44P.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-BcbVLmZo.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DcMdz44P.mjs.map → acorex-platform-module-auth-client-profile-activity-chart.component-BcbVLmZo.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DTujROAP.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-DTujROAP.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-Dx2-o9XL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CelasDrw.mjs → acorex-platform-module-auth-client-profile-page-component.provider-DEVBmVKd.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-CelasDrw.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-DEVBmVKd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-iGdfjv6g.mjs → acorex-platform-module-auth-client-profile-page.component-BNYoh2IL.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-profile-page.component-iGdfjv6g.mjs.map → acorex-platform-module-auth-client-profile-page.component-BNYoh2IL.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-CaztyyPx.mjs → acorex-platform-module-auth-client-register-password.component-DArLfswX.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-CaztyyPx.mjs.map → acorex-platform-module-auth-client-register-password.component-DArLfswX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-register.module-R-yxS0EI.mjs → acorex-platform-module-auth-client-register.module-BXMV9tp3.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-register.module-R-yxS0EI.mjs.map → acorex-platform-module-auth-client-register.module-BXMV9tp3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DHY46WWD.mjs → acorex-platform-module-auth-client-remove-pin-code.command-D9uLV6je.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-DHY46WWD.mjs.map → acorex-platform-module-auth-client-remove-pin-code.command-D9uLV6je.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs → acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-reset-password.component-BQfKSqpW.mjs.map → acorex-platform-module-auth-client-reset-password.component-Cz4UePgF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-result.component-DuMch6Ge.mjs → acorex-platform-module-auth-client-result.component-BS5uizi6.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-result.component-DuMch6Ge.mjs.map → acorex-platform-module-auth-client-result.component-BS5uizi6.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-Dw8YhBrw.mjs +21 -0
- package/fesm2022/acorex-platform-module-auth-client-routes-Dw8YhBrw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs → acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-session-limit.component-Dc6TIn-2.mjs.map → acorex-platform-module-auth-client-session-limit.component-DH58dRba.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-DBJjSIOq.mjs → acorex-platform-module-auth-client-session-lock-overlay.component-D_IKdJl8.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-session-lock-overlay.component-DBJjSIOq.mjs.map → acorex-platform-module-auth-client-session-lock-overlay.component-D_IKdJl8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CheMeghC.mjs → acorex-platform-module-auth-client-set-pin-code.command-DRLTGXEF.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.command-CheMeghC.mjs.map → acorex-platform-module-auth-client-set-pin-code.command-DRLTGXEF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BWl3vLOO.mjs → acorex-platform-module-auth-client-set-pin-code.component-m7SwyaZH.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BWl3vLOO.mjs.map → acorex-platform-module-auth-client-set-pin-code.component-m7SwyaZH.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-BEtlhGUb.mjs → acorex-platform-module-auth-client-tenant-chooser.component-CdqBeKVw.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-tenant-chooser.component-BEtlhGUb.mjs.map → acorex-platform-module-auth-client-tenant-chooser.component-CdqBeKVw.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs +256 -0
- package/fesm2022/acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-4XVRgh6H.mjs → acorex-platform-module-auth-client-two-factor-code.component-B1334bPg.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-auth-client-two-factor-code.component-4XVRgh6H.mjs.map → acorex-platform-module-auth-client-two-factor-code.component-B1334bPg.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CrLPxje1.mjs → acorex-platform-module-auth-client-two-factor.module-C0mkbR4X.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-CrLPxje1.mjs.map → acorex-platform-module-auth-client-two-factor.module-C0mkbR4X.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-qrd0bNM9.mjs → acorex-platform-module-auth-client-view-login-history.command-CerhsvHF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-qrd0bNM9.mjs.map → acorex-platform-module-auth-client-view-login-history.command-CerhsvHF.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-Wu8iPiTm.mjs +327 -0
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-Wu8iPiTm.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-3yva-FyV.mjs → acorex-platform-module-auth-client-welcome-onboarding-page.component-BKqHYkv2.mjs} +5 -5
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding-page.component-3yva-FyV.mjs.map → acorex-platform-module-auth-client-welcome-onboarding-page.component-BKqHYkv2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-CFpMZAwC.mjs → acorex-platform-module-auth-client-welcome-onboarding.command--Rr0duJS.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-auth-client-welcome-onboarding.command-CFpMZAwC.mjs.map → acorex-platform-module-auth-client-welcome-onboarding.command--Rr0duJS.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/i18n/en-AU/auth.json +70 -5
- package/i18n/en-US/auth.json +70 -5
- package/i18n/fa-IR/auth.json +70 -5
- package/package.json +3 -2
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CQEt9bXJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-DRwzhNlO.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs +0 -17
- package/fesm2022/acorex-platform-module-auth-client-routes-90eFjxx8.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs +0 -165
- package/fesm2022/acorex-platform-module-auth-client-waiting-room.component-IAVIt1fY.mjs.map +0 -1
|
@@ -16,10 +16,10 @@ import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
|
16
16
|
import { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';
|
|
17
17
|
import { AXPLogoComponent } from '@acorex-platform/framework-client/core';
|
|
18
18
|
import { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';
|
|
19
|
-
import * as
|
|
19
|
+
import * as i5$1 from '@angular/common';
|
|
20
20
|
import { CommonModule } from '@angular/common';
|
|
21
21
|
import { Router } from '@angular/router';
|
|
22
|
-
import { y as AXPTenantChooserListComponent } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-
|
|
22
|
+
import { y as AXPTenantChooserListComponent } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DINrCCAx.mjs';
|
|
23
23
|
|
|
24
24
|
class AXPAuthTenantChooserComponent {
|
|
25
25
|
constructor() {
|
|
@@ -41,7 +41,7 @@ class AXPAuthTenantChooserComponent {
|
|
|
41
41
|
this.router.navigate(['/auth/login']);
|
|
42
42
|
}
|
|
43
43
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthTenantChooserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthTenantChooserComponent, isStandalone: true, selector: "axp-auth-tenant-chooser", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n", ":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXImageModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "component", type: AXPTenantChooserListComponent, selector: "axp-tenant-chooser-list", inputs: ["simple"], outputs: ["tenantChosen", "loadingChange"] }, { kind: "pipe", type:
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthTenantChooserComponent, isStandalone: true, selector: "axp-auth-tenant-chooser", ngImport: i0, template: "<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n", styles: ["@layer properties;.axp-auth-chooser{display:flex;width:100%;flex-direction:column;align-items:center;overflow-y:auto;background-color:rgba(var(--ax-sys-color-lightest-surface));height:100vh;height:100dvh;-webkit-overflow-scrolling:touch}.axp-auth-chooser__inner{display:flex;width:100%;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 6);padding-inline:calc(var(--spacing, .25rem) * 4);min-height:100%;box-sizing:border-box;padding-top:max(2.75rem,calc(env(safe-area-inset-top,0px) + 1.75rem));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px))}.axp-auth-chooser__brand{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,85vw);max-width:100%}.axp-auth-chooser__card-wrap{display:flex;width:100%;flex-shrink:0;justify-content:center}.axp-auth-chooser__card{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--spacing, .25rem) * 4);border-radius:var(--radius-lg, .5rem);border-style:var(--tw-border-style);border-width:0px;padding:calc(var(--spacing, .25rem) * 5);text-align:center;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);max-width:28rem}.axp-auth-chooser__footer{flex-shrink:0;padding-inline:var(--spacing, .25rem);text-align:center}@media(min-width:640px){.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 8);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:max(3rem,calc(env(safe-area-inset-top,0px) + 2rem))}.axp-auth-chooser__brand axp-logo{width:min(16.25rem,90vw)}}@media(min-width:768px){.axp-auth-chooser{background-color:var(--color-bg-default)}.axp-auth-chooser__inner{gap:calc(var(--spacing, .25rem) * 10);padding-inline:calc(var(--spacing, .25rem) * 6);padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{gap:calc(var(--spacing, .25rem) * 2);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing, .25rem) * 6);--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);width:min(90vw,28rem);max-width:28rem}}@media(min-width:1024px){.axp-auth-chooser__inner{padding-inline:0px;padding-top:3.5rem;padding-bottom:2.5rem}.axp-auth-chooser__card{width:min(90vw,28rem)}}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n", ":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXImageModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId", "showPresence", "displayName", "displayAvatar"] }, { kind: "component", type: AXPTenantChooserListComponent, selector: "axp-tenant-chooser-list", inputs: ["simple"], outputs: ["tenantChosen", "loadingChange"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None }); }
|
|
45
45
|
}
|
|
46
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthTenantChooserComponent, decorators: [{
|
|
47
47
|
type: Component,
|
|
@@ -64,4 +64,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
64
64
|
}], ctorParameters: () => [] });
|
|
65
65
|
|
|
66
66
|
export { AXPAuthTenantChooserComponent };
|
|
67
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-tenant-chooser.component-
|
|
67
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-tenant-chooser.component-CdqBeKVw.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-auth-client-tenant-chooser.component-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-tenant-chooser.component-CdqBeKVw.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/account/tenant-chooser/tenant-chooser.component.ts","../../../../libs/modules/auth/client/src/lib/pages/account/tenant-chooser/tenant-chooser.component.html"],"sourcesContent":["import { Component, ViewEncapsulation, inject, ChangeDetectionStrategy, signal } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPPlatformBrandingService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPUserAvatarComponent } from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport { Router } from '@angular/router';\nimport { AXPTenantChooserListComponent } from './tenant-chooser-list.component';\n\n@Component({\n selector: 'axp-auth-tenant-chooser',\n templateUrl: './tenant-chooser.component.html',\n styleUrls: ['../shared/auth-chooser.layout.css', './tenant-chooser.component.css'],\n imports: [\n CommonModule,\n AXFormModule,\n AXTextBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXCheckBoxModule,\n AXImageModule,\n AXDecoratorModule,\n AXPLogoComponent,\n AXLoadingModule,\n AXSkeletonModule,\n AXTranslationModule,\n AXPUserAvatarComponent,\n AXPTenantChooserListComponent,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthTenantChooserComponent {\n private router = inject(Router);\n private readonly platformBranding = inject(AXPPlatformBrandingService);\n protected readonly platformTitle = signal('');\n private sessionService = inject(AXPSessionService);\n\n constructor() {\n void this.platformBranding.resolvePlatformTitle().then((title) => this.platformTitle.set(title));\n }\n\n protected user = this.sessionService.user;\n protected catalogLoading = signal(true);\n\n handleCatalogLoading(loading: boolean): void {\n this.catalogLoading.set(loading);\n }\n\n async handleSignout() {\n await this.sessionService.signout();\n this.router.navigate(['/auth/login']);\n }\n}\n","<main *translate=\"let t\" class=\"axp-auth-chooser\">\n <div class=\"axp-auth-chooser__inner\">\n <!-- ----- Platform branding ----- -->\n <section class=\"axp-auth-chooser__brand\">\n <axp-logo\n logoKey=\"platform\"\n appearance=\"colored\"\n format=\"full\"\n [size]=\"260\"\n [attr.alt]=\"platformTitle()\"\n ></axp-logo>\n </section>\n <!-- ----- Tenant selection card ----- -->\n <section class=\"axp-auth-chooser__card-wrap\">\n <div class=\"axp-auth-chooser__card\">\n <!-- ----- Profile header while catalog loads ----- -->\n @if (catalogLoading()) {\n <ax-skeleton [animated]=\"true\" class=\"size-[72px] rounded-full shrink-0\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-6 w-56 max-w-full\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"h-4 w-64 max-w-full\"></ax-skeleton>\n } @else {\n <axp-user-avatar\n [size]=\"72\"\n [userId]=\"$safeNavigationMigration(user?.id)!\"\n [showPresence]=\"false\"\n ></axp-user-avatar>\n <h2 class=\"md:text-lg font-medium\">\n {{ '@auth:welcome.message' | translate | async }}, {{ user?.title }}\n </h2>\n <p class=\"text-neutral-500 text-sm md:text-base font-medium\">\n {{ '@auth:tenant-chooser.description' | translate | async }}\n </p>\n }\n <div class=\"mt-3 w-full\">\n <axp-tenant-chooser-list (loadingChange)=\"handleCatalogLoading($event)\"></axp-tenant-chooser-list>\n </div>\n </div>\n </section>\n <!-- ----- Sign-out footer ----- -->\n <section class=\"axp-auth-chooser__footer\">\n <p class=\"text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a (click)=\"handleSignout()\" class=\"text-primary cursor-pointer hover:underline font-medium\">\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </section>\n </div>\n</main>\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MA2Ca,6BAA6B,CAAA;AAMxC,IAAA,WAAA,GAAA;AALQ,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACd,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;QACnD,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,EAAE;0FAAC;AACrC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAMxC,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI;QAC/B,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,IAAI;2FAAC;QAJrC,KAAK,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClG;AAKA,IAAA,oBAAoB,CAAC,OAAgB,EAAA;AACnC,QAAA,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC;IAClC;AAEA,IAAA,MAAM,aAAa,GAAA;A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AA,EACgB,uBAAuB,CAAC,KAAK,EAAA,aAAA,EAC/B,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,2hEAAA,EAAA,MAAA,EAAA,CAAA,4yIAAA,EAAA,4QAAA,CAAA,EAAA;;;"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { AXPCommandService } from '@acorex-platform/framework-client/runtime';
|
|
2
|
+
import { AXMTenantManagementServerCommands } from '@acorex-platform/module-tenant-management-client/contracts';
|
|
3
|
+
import * as i1$2 from '@acorex/components/button';
|
|
4
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
5
|
+
import * as i7 from '@acorex/components/check-box';
|
|
6
|
+
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
|
7
|
+
import * as i1$1 from '@acorex/components/form';
|
|
8
|
+
import { AXFormModule } from '@acorex/components/form';
|
|
9
|
+
import * as i4$1 from '@acorex/components/label';
|
|
10
|
+
import { AXLabelModule } from '@acorex/components/label';
|
|
11
|
+
import * as i4 from '@acorex/components/select-box';
|
|
12
|
+
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
13
|
+
import * as i2 from '@acorex/components/text-box';
|
|
14
|
+
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
15
|
+
import { AXToastService } from '@acorex/components/toast';
|
|
16
|
+
import * as i5 from '@acorex/core/translation';
|
|
17
|
+
import { AXTranslationService, resolveMultiLanguageString, AXTranslationModule } from '@acorex/core/translation';
|
|
18
|
+
import * as i5$1 from '@angular/common';
|
|
19
|
+
import { CommonModule } from '@angular/common';
|
|
20
|
+
import * as i0 from '@angular/core';
|
|
21
|
+
import { inject, signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
22
|
+
import * as i1 from '@angular/forms';
|
|
23
|
+
import { FormsModule } from '@angular/forms';
|
|
24
|
+
import * as i6 from '@angular/router';
|
|
25
|
+
import { Router, RouterModule } from '@angular/router';
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ----- Helpers -----
|
|
29
|
+
/** Slug for Tenant.name from company title (letters/digits/hyphens only). */
|
|
30
|
+
function slugifyTenantName(companyName) {
|
|
31
|
+
return companyName
|
|
32
|
+
.trim()
|
|
33
|
+
.toLowerCase()
|
|
34
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
35
|
+
.replace(/^-+|-+$/g, '')
|
|
36
|
+
.slice(0, 64);
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ----- Component -----
|
|
40
|
+
class AXPTenantRequestComponent {
|
|
41
|
+
constructor() {
|
|
42
|
+
//#region ----- Services & Dependencies -----
|
|
43
|
+
this.commandService = inject(AXPCommandService);
|
|
44
|
+
this.toast = inject(AXToastService);
|
|
45
|
+
this.translation = inject(AXTranslationService);
|
|
46
|
+
this.router = inject(Router);
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region ----- State Signals -----
|
|
49
|
+
this.submitting = signal(false, /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "submitting" }] : /* istanbul ignore next */ []));
|
|
51
|
+
this.submitted = signal(false, /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "submitted" }] : /* istanbul ignore next */ []));
|
|
53
|
+
this.checkingName = signal(false, /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "checkingName" }] : /* istanbul ignore next */ []));
|
|
55
|
+
this.nameAvailable = signal(null, /* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [{ debugName: "nameAvailable" }] : /* istanbul ignore next */ []));
|
|
57
|
+
this.planOptions = signal([], /* @ts-ignore */
|
|
58
|
+
...(ngDevMode ? [{ debugName: "planOptions" }] : /* istanbul ignore next */ []));
|
|
59
|
+
this.countryOptions = signal([], /* @ts-ignore */
|
|
60
|
+
...(ngDevMode ? [{ debugName: "countryOptions" }] : /* istanbul ignore next */ []));
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ----- Form model (Tenant static + Extra) -----
|
|
63
|
+
/** Company Name → Tenant.title; also drives Tenant.name slug. */
|
|
64
|
+
this.title = '';
|
|
65
|
+
this.planId = '';
|
|
66
|
+
this.email = '';
|
|
67
|
+
this.confirmEmail = '';
|
|
68
|
+
this.phone = '';
|
|
69
|
+
this.street1 = '';
|
|
70
|
+
this.postalCode = '';
|
|
71
|
+
/** Extra bag fields (Safetyminder). */
|
|
72
|
+
this.firstName = '';
|
|
73
|
+
this.lastName = '';
|
|
74
|
+
this.mobilePhone = '';
|
|
75
|
+
this.suburb = '';
|
|
76
|
+
this.state = '';
|
|
77
|
+
this.country = 'Australia';
|
|
78
|
+
this.referralCode = '';
|
|
79
|
+
this.termsAccepted = false;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region ----- Lifecycle -----
|
|
83
|
+
async ngOnInit() {
|
|
84
|
+
await Promise.all([this.loadPlans(), this.loadCountryOptions()]);
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region ----- Event Handlers -----
|
|
88
|
+
goToLogin() {
|
|
89
|
+
void this.router.navigate(['/auth/login']);
|
|
90
|
+
}
|
|
91
|
+
async onCompanyNameBlur() {
|
|
92
|
+
const name = slugifyTenantName(this.title);
|
|
93
|
+
if (!name) {
|
|
94
|
+
this.nameAvailable.set(null);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
this.checkingName.set(true);
|
|
98
|
+
try {
|
|
99
|
+
const result = await this.commandService.execute(AXMTenantManagementServerCommands.CheckTenantNameAvailable, { name });
|
|
100
|
+
if (!result?.success) {
|
|
101
|
+
this.nameAvailable.set(null);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const data = result.data;
|
|
105
|
+
this.nameAvailable.set(data?.available === true);
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
this.nameAvailable.set(null);
|
|
109
|
+
}
|
|
110
|
+
finally {
|
|
111
|
+
this.checkingName.set(false);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async submit() {
|
|
115
|
+
const title = this.title.trim();
|
|
116
|
+
const name = slugifyTenantName(title);
|
|
117
|
+
const planId = this.planId.trim();
|
|
118
|
+
const email = this.email.trim().toLowerCase();
|
|
119
|
+
const confirmEmail = this.confirmEmail.trim().toLowerCase();
|
|
120
|
+
const phone = this.phone.trim();
|
|
121
|
+
const street1 = this.street1.trim();
|
|
122
|
+
const postalCode = this.postalCode.trim();
|
|
123
|
+
if (!name || !title || !planId || !email || this.submitting() || this.submitted()) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (email !== confirmEmail) {
|
|
127
|
+
await this.showToast('@auth:tenant-request.error.title', '@auth:tenant-request.error.email-mismatch', 'Request Failed', 'Email and confirm email do not match.');
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
if (!this.termsAccepted) {
|
|
131
|
+
await this.showToast('@auth:tenant-request.error.title', '@auth:tenant-request.error.terms-required', 'Request Failed', 'Please accept the terms to continue.');
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (this.nameAvailable() === false) {
|
|
135
|
+
await this.showNameTakenToast();
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const extra = {
|
|
139
|
+
firstName: this.firstName.trim(),
|
|
140
|
+
lastName: this.lastName.trim(),
|
|
141
|
+
mobilePhone: this.mobilePhone.trim(),
|
|
142
|
+
suburb: this.suburb.trim(),
|
|
143
|
+
state: this.state.trim(),
|
|
144
|
+
country: String(this.country ?? '').trim(),
|
|
145
|
+
referralCode: this.referralCode.trim(),
|
|
146
|
+
termsAccepted: this.termsAccepted === true,
|
|
147
|
+
};
|
|
148
|
+
this.submitting.set(true);
|
|
149
|
+
try {
|
|
150
|
+
const result = await this.commandService.execute(AXMTenantManagementServerCommands.RequestTenantCreation, {
|
|
151
|
+
name,
|
|
152
|
+
title,
|
|
153
|
+
planId,
|
|
154
|
+
email,
|
|
155
|
+
...(phone ? { phone } : {}),
|
|
156
|
+
...(street1 ? { street1 } : {}),
|
|
157
|
+
...(postalCode ? { postalCode } : {}),
|
|
158
|
+
extra,
|
|
159
|
+
webOrigin: typeof window !== 'undefined' ? window.location.origin : undefined,
|
|
160
|
+
});
|
|
161
|
+
if (!result?.success) {
|
|
162
|
+
const code = typeof result?.message?.code === 'string' ? result.message.code : '';
|
|
163
|
+
if (code === 'TENANT_REQUEST_NAME_TAKEN') {
|
|
164
|
+
this.nameAvailable.set(false);
|
|
165
|
+
await this.showNameTakenToast();
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
throw new Error('request failed');
|
|
169
|
+
}
|
|
170
|
+
this.submitted.set(true);
|
|
171
|
+
await this.showToast('@auth:tenant-request.success.title', '@auth:tenant-request.success.description', 'Request Submitted', 'We received your request. You will get an email when it is reviewed.', 'success', 5000);
|
|
172
|
+
}
|
|
173
|
+
catch {
|
|
174
|
+
await this.showToast('@auth:tenant-request.error.title', '@auth:tenant-request.error.description', 'Request Failed', 'Unable to submit your request. Please try again later.');
|
|
175
|
+
}
|
|
176
|
+
finally {
|
|
177
|
+
this.submitting.set(false);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region ----- Data Loading -----
|
|
182
|
+
async loadPlans() {
|
|
183
|
+
try {
|
|
184
|
+
const result = await this.commandService.execute(AXMTenantManagementServerCommands.ListPublicSubscriptionPlans, {});
|
|
185
|
+
if (!result?.success) {
|
|
186
|
+
this.planOptions.set([]);
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
const payload = result.data;
|
|
190
|
+
const items = Array.isArray(payload?.items) ? payload.items : [];
|
|
191
|
+
const locale = this.translation.getActiveLang?.() ?? 'en-US';
|
|
192
|
+
this.planOptions.set(items
|
|
193
|
+
.map((item) => {
|
|
194
|
+
const id = String(item?.id ?? '').trim();
|
|
195
|
+
if (!id) {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
const planTitle = resolveMultiLanguageString(item.title, locale).trim() ||
|
|
199
|
+
String(item.code ?? id);
|
|
200
|
+
return { id, title: planTitle };
|
|
201
|
+
})
|
|
202
|
+
.filter((row) => row != null));
|
|
203
|
+
}
|
|
204
|
+
catch {
|
|
205
|
+
this.planOptions.set([]);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
async loadCountryOptions() {
|
|
209
|
+
const [australia, newZealand, other] = await Promise.all([
|
|
210
|
+
this.translation
|
|
211
|
+
.translateAsync('@auth:tenant-request.extra.country-options.australia')
|
|
212
|
+
.catch(() => 'Australia'),
|
|
213
|
+
this.translation
|
|
214
|
+
.translateAsync('@auth:tenant-request.extra.country-options.new-zealand')
|
|
215
|
+
.catch(() => 'New Zealand'),
|
|
216
|
+
this.translation
|
|
217
|
+
.translateAsync('@auth:tenant-request.extra.country-options.other')
|
|
218
|
+
.catch(() => 'Other'),
|
|
219
|
+
]);
|
|
220
|
+
this.countryOptions.set([
|
|
221
|
+
{ id: 'Australia', title: australia },
|
|
222
|
+
{ id: 'New Zealand', title: newZealand },
|
|
223
|
+
{ id: 'Other', title: other },
|
|
224
|
+
]);
|
|
225
|
+
}
|
|
226
|
+
async showNameTakenToast() {
|
|
227
|
+
await this.showToast('@auth:tenant-request.error.title', '@auth:tenant-request.error.name-taken', 'Request Failed', 'This organization name is already taken. Please choose another.');
|
|
228
|
+
}
|
|
229
|
+
async showToast(titleKey, contentKey, titleFallback, contentFallback, color = 'danger', timeOut = 4000) {
|
|
230
|
+
const [toastTitle, content] = await Promise.all([
|
|
231
|
+
this.translation.translateAsync(titleKey).catch(() => titleFallback),
|
|
232
|
+
this.translation.translateAsync(contentKey).catch(() => contentFallback),
|
|
233
|
+
]);
|
|
234
|
+
this.toast.show({ color, title: toastTitle, content, timeOut });
|
|
235
|
+
}
|
|
236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPTenantRequestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
237
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPTenantRequestComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-tenant-request-form{width:min(48rem,100%);max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-text-box,.axp-auth-form ax-select-box{display:block;width:100%}.axp-tenant-request-grid{display:grid;grid-template-columns:1fr;gap:1rem}@media(min-width:768px){.axp-tenant-request-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.25rem}.axp-span-full{grid-column:1 / -1}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1$1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1$1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i1$1.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: AXSelectBoxModule }, { kind: "component", type: i4.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "itemHeight", "maxVisibleItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i7.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$2.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$1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
238
|
+
}
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPTenantRequestComponent, decorators: [{
|
|
240
|
+
type: Component,
|
|
241
|
+
args: [{ changeDetection: ChangeDetectionStrategy.Eager, imports: [
|
|
242
|
+
CommonModule,
|
|
243
|
+
FormsModule,
|
|
244
|
+
AXFormModule,
|
|
245
|
+
AXTextBoxModule,
|
|
246
|
+
AXSelectBoxModule,
|
|
247
|
+
AXCheckBoxModule,
|
|
248
|
+
AXButtonModule,
|
|
249
|
+
AXLabelModule,
|
|
250
|
+
AXTranslationModule,
|
|
251
|
+
RouterModule,
|
|
252
|
+
], template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n", styles: [":host{display:block;width:100%}.axp-auth-form{width:100%;margin-inline:auto}@media(min-width:768px){.axp-tenant-request-form{width:min(48rem,100%);max-width:100%}}.axp-auth-form ax-form,.axp-auth-form ax-form-field,.axp-auth-form ax-text-box,.axp-auth-form ax-select-box{display:block;width:100%}.axp-tenant-request-grid{display:grid;grid-template-columns:1fr;gap:1rem}@media(min-width:768px){.axp-tenant-request-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.25rem}.axp-span-full{grid-column:1 / -1}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
253
|
+
}] });
|
|
254
|
+
|
|
255
|
+
export { AXPTenantRequestComponent };
|
|
256
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-auth-client-tenant-request.component-B-qx-HIi.mjs","sources":["../../../../libs/modules/auth/client/src/lib/pages/tenant-request/tenant-request.component.ts","../../../../libs/modules/auth/client/src/lib/pages/tenant-request/tenant-request.component.html"],"sourcesContent":["import { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXMTenantManagementServerCommands,\n type AXMCheckTenantNameAvailableResult,\n type AXMListPublicSubscriptionPlansResult,\n type AXMPublicSubscriptionPlanItem,\n} from '@acorex-platform/module-tenant-management-client/contracts';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXToastService } from '@acorex/components/toast';\nimport {\n AXTranslationModule,\n AXTranslationService,\n resolveMultiLanguageString,\n} from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, OnInit, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Router, RouterModule } from '@angular/router';\n\n//#region ----- Types -----\n\ninterface PlanOption {\n id: string;\n title: string;\n}\n\ninterface CountryOption {\n id: string;\n title: string;\n}\n\n//#endregion\n\n//#region ----- Helpers -----\n\n/** Slug for Tenant.name from company title (letters/digits/hyphens only). */\nfunction slugifyTenantName(companyName: string): string {\n return companyName\n .trim()\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, 64);\n}\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n templateUrl: './tenant-request.component.html',\n styleUrls: ['./tenant-request.component.css'],\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXTextBoxModule,\n AXSelectBoxModule,\n AXCheckBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXTranslationModule,\n RouterModule,\n ],\n})\nexport class AXPTenantRequestComponent implements OnInit {\n //#region ----- Services & Dependencies -----\n\n private readonly commandService = inject(AXPCommandService);\n private readonly toast = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n private readonly router = inject(Router);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly submitting = signal(false);\n protected readonly submitted = signal(false);\n protected readonly checkingName = signal(false);\n protected readonly nameAvailable = signal<boolean | null>(null);\n protected readonly planOptions = signal<PlanOption[]>([]);\n protected readonly countryOptions = signal<CountryOption[]>([]);\n\n //#endregion\n\n //#region ----- Form model (Tenant static + Extra) -----\n\n /** Company Name → Tenant.title; also drives Tenant.name slug. */\n protected title = '';\n protected planId = '';\n protected email = '';\n protected confirmEmail = '';\n protected phone = '';\n protected street1 = '';\n protected postalCode = '';\n\n /** Extra bag fields (Safetyminder). */\n protected firstName = '';\n protected lastName = '';\n protected mobilePhone = '';\n protected suburb = '';\n protected state = '';\n protected country = 'Australia';\n protected referralCode = '';\n protected termsAccepted = false;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n async ngOnInit(): Promise<void> {\n await Promise.all([this.loadPlans(), this.loadCountryOptions()]);\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected goToLogin(): void {\n void this.router.navigate(['/auth/login']);\n }\n\n protected async onCompanyNameBlur(): Promise<void> {\n const name = slugifyTenantName(this.title);\n if (!name) {\n this.nameAvailable.set(null);\n return;\n }\n this.checkingName.set(true);\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.CheckTenantNameAvailable,\n { name },\n );\n if (!result?.success) {\n this.nameAvailable.set(null);\n return;\n }\n const data = (result as { data?: AXMCheckTenantNameAvailableResult }).data;\n this.nameAvailable.set(data?.available === true);\n } catch {\n this.nameAvailable.set(null);\n } finally {\n this.checkingName.set(false);\n }\n }\n\n protected async submit(): Promise<void> {\n const title = this.title.trim();\n const name = slugifyTenantName(title);\n const planId = this.planId.trim();\n const email = this.email.trim().toLowerCase();\n const confirmEmail = this.confirmEmail.trim().toLowerCase();\n const phone = this.phone.trim();\n const street1 = this.street1.trim();\n const postalCode = this.postalCode.trim();\n\n if (!name || !title || !planId || !email || this.submitting() || this.submitted()) {\n return;\n }\n if (email !== confirmEmail) {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.email-mismatch',\n 'Request Failed',\n 'Email and confirm email do not match.',\n );\n return;\n }\n if (!this.termsAccepted) {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.terms-required',\n 'Request Failed',\n 'Please accept the terms to continue.',\n );\n return;\n }\n if (this.nameAvailable() === false) {\n await this.showNameTakenToast();\n return;\n }\n\n const extra: Record<string, unknown> = {\n firstName: this.firstName.trim(),\n lastName: this.lastName.trim(),\n mobilePhone: this.mobilePhone.trim(),\n suburb: this.suburb.trim(),\n state: this.state.trim(),\n country: String(this.country ?? '').trim(),\n referralCode: this.referralCode.trim(),\n termsAccepted: this.termsAccepted === true,\n };\n\n this.submitting.set(true);\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.RequestTenantCreation,\n {\n name,\n title,\n planId,\n email,\n ...(phone ? { phone } : {}),\n ...(street1 ? { street1 } : {}),\n ...(postalCode ? { postalCode } : {}),\n extra,\n webOrigin: typeof window !== 'undefined' ? window.location.origin : undefined,\n },\n );\n if (!result?.success) {\n const code = typeof result?.message?.code === 'string' ? result.message.code : '';\n if (code === 'TENANT_REQUEST_NAME_TAKEN') {\n this.nameAvailable.set(false);\n await this.showNameTakenToast();\n return;\n }\n throw new Error('request failed');\n }\n this.submitted.set(true);\n await this.showToast(\n '@auth:tenant-request.success.title',\n '@auth:tenant-request.success.description',\n 'Request Submitted',\n 'We received your request. You will get an email when it is reviewed.',\n 'success',\n 5000,\n );\n } catch {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.description',\n 'Request Failed',\n 'Unable to submit your request. Please try again later.',\n );\n } finally {\n this.submitting.set(false);\n }\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async loadPlans(): Promise<void> {\n try {\n const result = await this.commandService.execute(\n AXMTenantManagementServerCommands.ListPublicSubscriptionPlans,\n {},\n );\n if (!result?.success) {\n this.planOptions.set([]);\n return;\n }\n const payload = (result as { data?: AXMListPublicSubscriptionPlansResult }).data;\n const items = Array.isArray(payload?.items) ? payload.items : [];\n const locale = this.translation.getActiveLang?.() ?? 'en-US';\n this.planOptions.set(\n items\n .map((item: AXMPublicSubscriptionPlanItem) => {\n const id = String(item?.id ?? '').trim();\n if (!id) {\n return null;\n }\n const planTitle =\n resolveMultiLanguageString(item.title as never, locale).trim() ||\n String(item.code ?? id);\n return { id, title: planTitle };\n })\n .filter((row): row is PlanOption => row != null),\n );\n } catch {\n this.planOptions.set([]);\n }\n }\n\n private async loadCountryOptions(): Promise<void> {\n const [australia, newZealand, other] = await Promise.all([\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.australia')\n .catch(() => 'Australia'),\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.new-zealand')\n .catch(() => 'New Zealand'),\n this.translation\n .translateAsync('@auth:tenant-request.extra.country-options.other')\n .catch(() => 'Other'),\n ]);\n this.countryOptions.set([\n { id: 'Australia', title: australia },\n { id: 'New Zealand', title: newZealand },\n { id: 'Other', title: other },\n ]);\n }\n\n private async showNameTakenToast(): Promise<void> {\n await this.showToast(\n '@auth:tenant-request.error.title',\n '@auth:tenant-request.error.name-taken',\n 'Request Failed',\n 'This organization name is already taken. Please choose another.',\n );\n }\n\n private async showToast(\n titleKey: string,\n contentKey: string,\n titleFallback: string,\n contentFallback: string,\n color: 'success' | 'danger' = 'danger',\n timeOut = 4000,\n ): Promise<void> {\n const [toastTitle, content] = await Promise.all([\n this.translation.translateAsync(titleKey).catch(() => titleFallback),\n this.translation.translateAsync(contentKey).catch(() => contentFallback),\n ]);\n this.toast.show({ color, title: toastTitle, content, timeOut });\n }\n\n //#endregion\n}\n\n//#endregion\n","<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form axp-tenant-request-form\">\n <!-- ----- Success state after request is submitted ----- -->\n @if (submitted()) {\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.success.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.success.description' | translate | async }}\n </p>\n </div>\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:backLogin' | translate | async\"\n (onClick)=\"goToLogin()\"\n ></ax-button>\n }\n <!-- ----- Request form ----- -->\n @else {\n <div class=\"mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:tenant-request.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:tenant-request.hint' | translate | async }}\n </p>\n </div>\n <ax-form>\n <div class=\"axp-tenant-request-grid\">\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Company Name (title + name slug) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.company-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"organization\"\n id=\"tenant-request-organization\"\n [autoComplete]=\"'organization'\"\n [(value)]=\"title\"\n [disabled]=\"submitting()\"\n (onBlur)=\"onCompanyNameBlur()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.fields.company-name-hint' | translate | async }}\n </p>\n <!-- ----- Inline hint when the unique name is already taken ----- -->\n @if (nameAvailable() === false) {\n <p class=\"mt-1 text-xs text-danger-600\">\n {{ '@auth:tenant-request.error.name-taken' | translate | async }}\n </p>\n }\n <!-- ----- Inline hint while availability is being checked ----- -->\n @if (checkingName()) {\n <p class=\"mt-1 text-xs text-neutral-400\">\n {{ '@auth:tenant-request.checking-name' | translate | async }}\n </p>\n }\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Email ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"email\"\n id=\"tenant-request-email\"\n [autoComplete]=\"'email'\"\n [(value)]=\"email\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Confirm Email (form-only, not stored) ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.confirm-email' | translate | async }}</ax-label>\n <ax-text-box\n name=\"confirmEmail\"\n id=\"tenant-request-confirm-email\"\n [autoComplete]=\"'off'\"\n [(value)]=\"confirmEmail\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n <ax-validation-rule rule=\"email\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Business Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"tel\"\n id=\"tenant-request-phone\"\n [autoComplete]=\"'tel'\"\n [(value)]=\"phone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: First Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.first-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"given-name\"\n id=\"tenant-request-first-name\"\n [autoComplete]=\"'given-name'\"\n [(value)]=\"firstName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Last Name ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.last-name' | translate | async }}</ax-label>\n <ax-text-box\n name=\"family-name\"\n id=\"tenant-request-last-name\"\n [autoComplete]=\"'family-name'\"\n [(value)]=\"lastName\"\n [disabled]=\"submitting()\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Mobile Phone ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.mobile-phone' | translate | async }}</ax-label>\n <ax-text-box\n name=\"mobile\"\n id=\"tenant-request-mobile\"\n [autoComplete]=\"'tel-national'\"\n [(value)]=\"mobilePhone\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Street Address ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.street1' | translate | async }}</ax-label>\n <ax-text-box\n name=\"street-address\"\n id=\"tenant-request-street\"\n [autoComplete]=\"'street-address'\"\n [(value)]=\"street1\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Suburb ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.suburb' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level2\"\n id=\"tenant-request-suburb\"\n [autoComplete]=\"'address-level2'\"\n [(value)]=\"suburb\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: State ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.state' | translate | async }}</ax-label>\n <ax-text-box\n name=\"address-level1\"\n id=\"tenant-request-state\"\n [autoComplete]=\"'address-level1'\"\n [(value)]=\"state\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Post Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.fields.postal-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"postal-code\"\n id=\"tenant-request-postal-code\"\n [autoComplete]=\"'postal-code'\"\n [(value)]=\"postalCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Country ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.country' | translate | async }}</ax-label>\n <ax-select-box\n name=\"country\"\n [(value)]=\"country\"\n [dataSource]=\"countryOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n ></ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Referral Code ----- -->\n <ax-form-field>\n <ax-label>{{ '@auth:tenant-request.extra.referral-code' | translate | async }}</ax-label>\n <ax-text-box\n name=\"referral-code\"\n id=\"tenant-request-referral\"\n [autoComplete]=\"'off'\"\n [(value)]=\"referralCode\"\n [disabled]=\"submitting()\"\n ></ax-text-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Tenant: Subscription Plan (required by request flow) ----- -->\n <ax-form-field class=\"axp-span-full\">\n <ax-label>{{ '@auth:tenant-request.fields.plan' | translate | async }}</ax-label>\n <ax-select-box\n name=\"planId\"\n [(value)]=\"planId\"\n [dataSource]=\"planOptions()\"\n textField=\"title\"\n valueField=\"id\"\n [disabled]=\"submitting()\"\n [placeholder]=\"('@auth:tenant-request.fields.plan-placeholder' | translate | async) ?? ''\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!--------------------------------------------------------------->\n <!-- ----- Extra: Terms ----- -->\n <div class=\"axp-span-full flex items-start gap-2 mt-1\">\n <ax-check-box [(ngModel)]=\"termsAccepted\" [disabled]=\"submitting()\"></ax-check-box>\n <ax-label class=\"mb-0 text-sm leading-snug\">\n {{ '@auth:tenant-request.extra.terms-label' | translate | async }}\n </ax-label>\n </div>\n </div>\n\n <ax-button\n color=\"primary\"\n class=\"mt-4 lg:mt-6 w-full\"\n [text]=\"'@auth:tenant-request.submit' | translate | async\"\n [disabled]=\"\n submitting() ||\n !title.trim() ||\n !planId.trim() ||\n !email.trim() ||\n !confirmEmail.trim() ||\n !firstName.trim() ||\n !lastName.trim() ||\n !termsAccepted ||\n nameAvailable() === false\n \"\n (onClick)=\"submit()\"\n ></ax-button>\n\n <p class=\"text-center mt-6 text-neutral-400 text-sm\">\n {{ '@auth:tenant-chooser.footer' | translate | async }}\n <a\n [routerLink]=\"['/auth/login']\"\n class=\"text-primary font-medium cursor-pointer hover:underline\"\n >\n {{ '@auth:backLogin' | translate | async }}\n </a>\n </p>\n </ax-form>\n }\n </div>\n</ng-container>\n"],"names":["i2","i5","i7","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;AAEA;AAEA;AACA,SAAS,iBAAiB,CAAC,WAAmB,EAAA;AAC5C,IAAA,OAAO;AACJ,SAAA,IAAI;AACJ,SAAA,WAAW;AACX,SAAA,OAAO,CAAC,aAAa,EAAE,GAAG;AAC1B,SAAA,OAAO,CAAC,UAAU,EAAE,EAAE;AACtB,SAAA,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;AACjB;AAEA;AAEA;MAmBa,yBAAyB,CAAA;AAjBtC,IAAA,WAAA,GAAA;;AAoBmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAC1C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;;;QAMrB,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,KAAK;uFAAC;QAC1B,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,KAAK;sFAAC;QACzB,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,KAAK;yFAAC;QAC5B,IAAA,CAAA,aAAa,GAAG,MAAM,CAAiB,IAAI;0FAAC;QAC5C,IAAA,CAAA,WAAW,GAAG,MAAM,CAAe,EAAE;wFAAC;QACtC,IAAA,CAAA,cAAc,GAAG,MAAM,CAAkB,EAAE;2FAAC;;;;QAOrD,IAAA,CAAA,KAAK,GAAG,EAAE;QACV,IAAA,CAAA,MAAM,GAAG,EAAE;QACX,IAAA,CAAA,KAAK,GAAG,EAAE;QACV,IAAA,CAAA,YAAY,GAAG,EAAE;QACjB,IAAA,CA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AA,EAAA,QAAA,EAAA,aAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAF,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAGH,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAjBrC,SAAS;sCAGS,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,eAAe;wBACf,iBAAiB;wBACjB,gBAAgB;wBAChB,cAAc;wBACd,aAAa;wBACb,mBAAmB;wBACnB,YAAY;AACb,qBAAA,EAAA,QAAA,EAAA,w0XAAA,EAAA,MAAA,EAAA,CAAA,2kBAAA,CAAA,EAAA;;;"}
|
|
@@ -16,14 +16,14 @@ import { AXValidationModule } from '@acorex/core/validation';
|
|
|
16
16
|
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
17
17
|
import { AXPHomePageService } from '@acorex-platform/framework-client/common';
|
|
18
18
|
import { AXM_TWO_FACTOR_ERROR_CODES } from '@acorex-platform/module-security-management-client/contracts';
|
|
19
|
-
import * as
|
|
19
|
+
import * as i5$1 from '@angular/common';
|
|
20
20
|
import { CommonModule } from '@angular/common';
|
|
21
21
|
import * as i0 from '@angular/core';
|
|
22
22
|
import { inject, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
23
23
|
import { FormsModule } from '@angular/forms';
|
|
24
24
|
import { RouterModule, Router, ActivatedRoute } from '@angular/router';
|
|
25
25
|
import { BehaviorSubject, firstValueFrom } from 'rxjs';
|
|
26
|
-
import { x as AXMAuthPlatformSettingsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-
|
|
26
|
+
import { x as AXMAuthPlatformSettingsService } from './acorex-platform-module-auth-client-acorex-platform-module-auth-client-DINrCCAx.mjs';
|
|
27
27
|
import { r as readTwoFactorChallenge, c as clearTwoFactorChallenge } from './acorex-platform-module-auth-client-two-factor-challenge.storage-mi0UD7Sc.mjs';
|
|
28
28
|
|
|
29
29
|
//#region ----- Constants -----
|
|
@@ -186,7 +186,7 @@ class AXPAuthTwoFactorCodeComponent {
|
|
|
186
186
|
return null;
|
|
187
187
|
}
|
|
188
188
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthTwoFactorCodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
189
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthTwoFactorCodeComponent, isStandalone: true, selector: "axp-auth-two-factor-code", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:twofactor.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:twofactor.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-full lg:w-96 mx-auto\">\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label class=\"text-start\">{{ '@auth:twofactor.textBoxHint' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'twoFactorCode'\"\n id=\"twoFactorCode\"\n [autoComplete]=\"'one-time-code'\"\n [(value)]=\"code\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-button\n class=\"w-full\"\n [text]=\"('@auth:' + submitText) | translate | async\"\n color=\"primary\"\n [disabled]=\"isLoading$ | async\"\n (onClick)=\"handleVerifyClick()\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n <ax-button\n class=\"w-full\"\n look=\"outline\"\n [text]=\"'@auth:twofactor.back-to-login' | translate | async\"\n [disabled]=\"isLoading$ | async\"\n (onClick)=\"handleBackToLogin()\"\n >\n </ax-button>\n </div>\n </ax-form>\n </div>\n </div>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { 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: 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$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "pipe", type:
|
|
189
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPAuthTwoFactorCodeComponent, isStandalone: true, selector: "axp-auth-two-factor-code", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"axp-auth-form\">\n <div class=\"text-center mb-3 lg:mb-5\">\n <h1 class=\"font-bold text-xl mb-1 lg:mb-2\">\n {{ '@auth:twofactor.title' | translate | async }}\n </h1>\n <p class=\"text-base text-neutral-600\">\n {{ '@auth:twofactor.hint' | translate | async }}\n </p>\n </div>\n <div class=\"w-full lg:w-96 mx-auto\">\n <ax-form>\n <div class=\"flex flex-col gap-4 lg:gap-6\">\n <ax-form-field>\n <ax-label class=\"text-start\">{{ '@auth:twofactor.textBoxHint' | translate | async }}</ax-label>\n <ax-text-box\n [name]=\"'twoFactorCode'\"\n id=\"twoFactorCode\"\n [autoComplete]=\"'one-time-code'\"\n [(value)]=\"code\"\n >\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-button\n class=\"w-full\"\n [text]=\"('@auth:' + submitText) | translate | async\"\n color=\"primary\"\n [disabled]=\"isLoading$ | async\"\n (onClick)=\"handleVerifyClick()\"\n >\n @if (isLoading$ | async) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n <ax-button\n class=\"w-full\"\n look=\"outline\"\n [text]=\"'@auth:twofactor.back-to-login' | translate | async\"\n [disabled]=\"isLoading$ | async\"\n (onClick)=\"handleBackToLogin()\"\n >\n </ax-button>\n </div>\n </ax-form>\n </div>\n </div>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { 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: 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$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None }); }
|
|
190
190
|
}
|
|
191
191
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPAuthTwoFactorCodeComponent, decorators: [{
|
|
192
192
|
type: Component,
|
|
@@ -197,4 +197,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
197
197
|
}] } });
|
|
198
198
|
|
|
199
199
|
export { AXPAuthTwoFactorCodeComponent };
|
|
200
|
-
//# sourceMappingURL=acorex-platform-module-auth-client-two-factor-code.component-
|
|
200
|
+
//# sourceMappingURL=acorex-platform-module-auth-client-two-factor-code.component-B1334bPg.mjs.map
|