@keycloakify/angular 0.0.1-rc.18 → 0.0.1-rc.19
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/account/containers/template/template.component.d.ts +18 -5
- package/account/pages/account/account.component.d.ts +3 -2
- package/account/pages/applications/applications.component.d.ts +3 -2
- package/account/pages/federatedIdentity/federatedIdentity.component.d.ts +3 -2
- package/account/pages/log/log.component.d.ts +3 -2
- package/account/pages/password/password.component.d.ts +3 -2
- package/account/pages/sessions/sessions.component.d.ts +3 -2
- package/account/pages/totp/totp.component.d.ts +3 -2
- package/esm2022/account/containers/template/template.component.mjs +40 -7
- package/esm2022/account/pages/account/account.component.mjs +6 -5
- package/esm2022/account/pages/applications/applications.component.mjs +6 -5
- package/esm2022/account/pages/federatedIdentity/federatedIdentity.component.mjs +6 -5
- package/esm2022/account/pages/log/log.component.mjs +6 -5
- package/esm2022/account/pages/password/password.component.mjs +6 -5
- package/esm2022/account/pages/sessions/sessions.component.mjs +6 -5
- package/esm2022/account/pages/totp/totp.component.mjs +6 -5
- package/esm2022/login/containers/template/template.component.mjs +81 -13
- package/esm2022/login/pages/code/code.component.mjs +14 -8
- package/esm2022/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +12 -6
- package/esm2022/login/pages/delete-credential/delete-credential.component.mjs +10 -9
- package/esm2022/login/pages/error/error.component.mjs +14 -8
- package/esm2022/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +12 -10
- package/esm2022/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +12 -11
- package/esm2022/login/pages/info/info.component.mjs +11 -10
- package/esm2022/login/pages/login/login.component.mjs +13 -12
- package/esm2022/login/pages/login-config-totp/login-config-totp.component.mjs +12 -11
- package/esm2022/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +11 -14
- package/esm2022/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +11 -14
- package/esm2022/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +10 -13
- package/esm2022/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +11 -13
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +10 -9
- package/esm2022/login/pages/login-otp/login-otp.component.mjs +11 -10
- package/esm2022/login/pages/login-page-expired/login-page-expired.component.mjs +10 -9
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +11 -6
- package/esm2022/login/pages/login-password/login-password.component.mjs +13 -11
- package/esm2022/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +12 -11
- package/esm2022/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +12 -11
- package/esm2022/login/pages/login-reset-otp/login-reset-otp.component.mjs +11 -10
- package/esm2022/login/pages/login-reset-password/login-reset-password.component.mjs +11 -10
- package/esm2022/login/pages/login-update-password/login-update-password.component.mjs +11 -10
- package/esm2022/login/pages/login-update-profile/login-update-profile.component.mjs +11 -10
- package/esm2022/login/pages/login-username/login-username.component.mjs +12 -11
- package/esm2022/login/pages/login-verify-email/login-verify-email.component.mjs +10 -9
- package/esm2022/login/pages/login-x509-info/login-x509-info.component.mjs +10 -9
- package/esm2022/login/pages/logout-confirm/logout-confirm.component.mjs +10 -13
- package/esm2022/login/pages/register/register.component.mjs +14 -13
- package/esm2022/login/pages/saml-post-form/saml-post-form.component.mjs +14 -15
- package/esm2022/login/pages/select-authenticator/select-authenticator.component.mjs +11 -10
- package/esm2022/login/pages/terms/terms.component.mjs +10 -9
- package/esm2022/login/pages/update-email/update-email.component.mjs +12 -15
- package/esm2022/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +10 -9
- package/esm2022/login/pages/webauthn-error/webauthn-error.component.mjs +11 -10
- package/esm2022/login/pages/webauthn-register/webauthn-register.component.mjs +10 -9
- package/fesm2022/keycloakify-angular-account-containers-template.mjs +40 -7
- package/fesm2022/keycloakify-angular-account-containers-template.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-account.mjs +5 -4
- package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs +5 -4
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +5 -4
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-log.mjs +5 -4
- package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-password.mjs +5 -4
- package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +5 -4
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs +5 -4
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-containers-template.mjs +81 -13
- package/fesm2022/keycloakify-angular-login-containers-template.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-code.mjs +13 -7
- package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +11 -5
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +9 -8
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-error.mjs +13 -7
- package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +11 -9
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-info.mjs +10 -9
- package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +10 -13
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +10 -13
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +9 -12
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +10 -12
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +9 -8
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +10 -9
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +9 -8
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +10 -5
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +12 -10
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +10 -9
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +10 -9
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +10 -9
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +10 -9
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +9 -8
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +9 -8
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +9 -12
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-register.mjs +13 -12
- package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +13 -14
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +10 -9
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs +9 -8
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +11 -14
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +9 -8
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +10 -9
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +9 -8
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
- package/login/containers/template/template.component.d.ts +25 -9
- package/login/pages/code/code.component.d.ts +12 -3
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +11 -2
- package/login/pages/delete-credential/delete-credential.component.d.ts +9 -5
- package/login/pages/error/error.component.d.ts +11 -2
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +9 -5
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +10 -7
- package/login/pages/info/info.component.d.ts +9 -5
- package/login/pages/login/login.component.d.ts +10 -6
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +9 -5
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +8 -7
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +8 -7
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +8 -7
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +8 -7
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +9 -5
- package/login/pages/login-otp/login-otp.component.d.ts +9 -5
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +9 -5
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +11 -3
- package/login/pages/login-password/login-password.component.d.ts +10 -5
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +9 -5
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +9 -5
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +9 -5
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +9 -5
- package/login/pages/login-update-password/login-update-password.component.d.ts +9 -5
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +9 -6
- package/login/pages/login-username/login-username.component.d.ts +10 -6
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +9 -5
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +9 -5
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +8 -7
- package/login/pages/register/register.component.d.ts +11 -8
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +10 -7
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +9 -5
- package/login/pages/terms/terms.component.d.ts +9 -5
- package/login/pages/update-email/update-email.component.d.ts +9 -9
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +10 -6
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +9 -5
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +10 -6
- package/package.json +8 -8
- package/src/account/containers/template/template.component.html +15 -10
- package/src/account/containers/template/template.component.ts +54 -7
- package/src/account/pages/account/account.component.html +139 -143
- package/src/account/pages/account/account.component.ts +4 -3
- package/src/account/pages/applications/applications.component.html +128 -136
- package/src/account/pages/applications/applications.component.ts +4 -3
- package/src/account/pages/federatedIdentity/federatedIdentity.component.html +84 -88
- package/src/account/pages/federatedIdentity/federatedIdentity.component.ts +4 -3
- package/src/account/pages/log/log.component.html +35 -39
- package/src/account/pages/log/log.component.ts +4 -3
- package/src/account/pages/password/password.component.html +109 -113
- package/src/account/pages/password/password.component.ts +5 -3
- package/src/account/pages/sessions/sessions.component.html +52 -56
- package/src/account/pages/sessions/sessions.component.ts +4 -3
- package/src/account/pages/totp/totp.component.html +234 -238
- package/src/account/pages/totp/totp.component.ts +4 -3
- package/src/login/containers/template/template.component.html +22 -8
- package/src/login/containers/template/template.component.ts +100 -12
- package/src/login/pages/code/code.component.html +19 -23
- package/src/login/pages/code/code.component.ts +18 -6
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +41 -45
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +16 -4
- package/src/login/pages/delete-credential/delete-credential.component.html +29 -31
- package/src/login/pages/delete-credential/delete-credential.component.ts +16 -9
- package/src/login/pages/error/error.component.html +20 -22
- package/src/login/pages/error/error.component.ts +17 -5
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +25 -34
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +17 -9
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +29 -38
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +18 -12
- package/src/login/pages/info/info.component.html +39 -48
- package/src/login/pages/info/info.component.ts +17 -10
- package/src/login/pages/login/login.component.html +184 -194
- package/src/login/pages/login/login.component.ts +20 -12
- package/src/login/pages/login-config-totp/login-config-totp.component.html +181 -190
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -10
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +27 -37
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +15 -14
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +26 -36
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +15 -14
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +24 -34
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +15 -14
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +75 -84
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +15 -14
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +49 -58
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +15 -9
- package/src/login/pages/login-otp/login-otp.component.html +89 -98
- package/src/login/pages/login-otp/login-otp.component.ts +16 -9
- package/src/login/pages/login-page-expired/login-page-expired.component.html +26 -33
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +15 -9
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +181 -188
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +15 -5
- package/src/login/pages/login-password/login-password.component.html +73 -80
- package/src/login/pages/login-password/login-password.component.ts +17 -9
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +136 -145
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +17 -9
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +60 -68
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +16 -9
- package/src/login/pages/login-reset-otp/login-reset-otp.component.html +53 -60
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +15 -8
- package/src/login/pages/login-reset-password/login-reset-password.component.html +77 -86
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +16 -9
- package/src/login/pages/login-update-password/login-update-password.component.html +98 -108
- package/src/login/pages/login-update-password/login-update-password.component.ts +15 -8
- package/src/login/pages/login-update-profile/login-update-profile.component.html +44 -53
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +17 -10
- package/src/login/pages/login-username/login-username.component.html +138 -148
- package/src/login/pages/login-username/login-username.component.ts +16 -9
- package/src/login/pages/login-verify-email/login-verify-email.component.html +17 -25
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +15 -9
- package/src/login/pages/login-x509-info/login-x509-info.component.html +85 -94
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +15 -9
- package/src/login/pages/logout-confirm/logout-confirm.component.html +39 -49
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +15 -14
- package/src/login/pages/register/register.component.html +100 -110
- package/src/login/pages/register/register.component.ts +19 -12
- package/src/login/pages/saml-post-form/saml-post-form.component.html +39 -48
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +19 -13
- package/src/login/pages/select-authenticator/select-authenticator.component.html +36 -44
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +16 -9
- package/src/login/pages/terms/terms.component.html +25 -34
- package/src/login/pages/terms/terms.component.ts +16 -9
- package/src/login/pages/update-email/update-email.component.html +44 -53
- package/src/login/pages/update-email/update-email.component.ts +16 -15
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +134 -144
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +16 -9
- package/src/login/pages/webauthn-error/webauthn-error.component.html +45 -55
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +16 -9
- package/src/login/pages/webauthn-register/webauthn-register.component.html +65 -75
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +16 -9
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, TemplateRef, viewChild } from '@angular/core';
|
|
2
2
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
3
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
4
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
5
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
6
|
+
import type { I18n } from '../../i18n';
|
|
7
|
+
import type { KcContext } from '../../KcContext';
|
|
6
8
|
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
7
9
|
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
8
10
|
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
9
11
|
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
10
|
-
import type { I18n } from '../../i18n';
|
|
11
|
-
import type { KcContext } from '../../KcContext';
|
|
12
12
|
|
|
13
13
|
@Component({
|
|
14
14
|
standalone: true,
|
|
15
15
|
imports: [KcClassDirective, TemplateComponent],
|
|
16
|
-
selector: 'kc-
|
|
16
|
+
selector: 'kc-login-verify-email',
|
|
17
17
|
templateUrl: 'login-verify-email.component.html',
|
|
18
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
19
|
providers: [
|
|
@@ -28,9 +28,15 @@ export class LoginVerifyEmailComponent extends ComponentReference {
|
|
|
28
28
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
29
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
30
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
31
|
-
|
|
32
|
-
documentTitle
|
|
33
|
-
bodyClassName
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
|
|
32
|
+
documentTitle: string | undefined;
|
|
33
|
+
bodyClassName: string | undefined;
|
|
34
|
+
|
|
35
|
+
displayRequiredFields = false;
|
|
36
|
+
displayInfo = true;
|
|
37
|
+
displayMessage = true;
|
|
38
|
+
|
|
39
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
40
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
41
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
36
42
|
}
|
|
@@ -1,102 +1,93 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
2
|
@let x509 = kcContext.x509;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
|
|
4
|
+
<ng-template #headerNode>
|
|
5
|
+
{{ i18n.msgStr('doLogIn') }}
|
|
6
|
+
</ng-template>
|
|
7
|
+
<form
|
|
8
|
+
id="kc-x509-login-info"
|
|
9
|
+
method="post"
|
|
10
|
+
[kcClass]="'kcFormClass'"
|
|
11
|
+
[action]="url.loginAction"
|
|
9
12
|
>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<div [kcClass]="'
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</label>
|
|
28
|
-
</div>
|
|
29
|
-
@if (x509.formData.subjectDN) {
|
|
30
|
-
<div [kcClass]="'kcLabelWrapperClass'">
|
|
31
|
-
<label
|
|
32
|
-
id="certificate_subjectDN"
|
|
33
|
-
[kcClass]="'kcLabelClass'"
|
|
34
|
-
>
|
|
35
|
-
{{ x509.formData.subjectDN }}
|
|
36
|
-
</label>
|
|
37
|
-
</div>
|
|
38
|
-
} @else {
|
|
39
|
-
<div [kcClass]="'kcLabelWrapperClass'">
|
|
40
|
-
<label
|
|
41
|
-
id="certificate_subjectDN"
|
|
42
|
-
[kcClass]="'kcLabelClass'"
|
|
43
|
-
>
|
|
44
|
-
{{ i18n.msgStr('noCertificate') }}
|
|
45
|
-
</label>
|
|
46
|
-
</div>
|
|
47
|
-
}
|
|
13
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
14
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
15
|
+
<label
|
|
16
|
+
for="certificate_subjectDN"
|
|
17
|
+
[kcClass]="'kcLabelClass'"
|
|
18
|
+
>
|
|
19
|
+
{{ i18n.msgStr('clientCertificate') }}
|
|
20
|
+
</label>
|
|
21
|
+
</div>
|
|
22
|
+
@if (x509.formData.subjectDN) {
|
|
23
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
24
|
+
<label
|
|
25
|
+
id="certificate_subjectDN"
|
|
26
|
+
[kcClass]="'kcLabelClass'"
|
|
27
|
+
>
|
|
28
|
+
{{ x509.formData.subjectDN }}
|
|
29
|
+
</label>
|
|
48
30
|
</div>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</label>
|
|
58
|
-
</div>
|
|
59
|
-
<div [kcClass]="'kcLabelWrapperClass'">
|
|
60
|
-
<label
|
|
61
|
-
id="username"
|
|
62
|
-
[kcClass]="'kcLabelClass'"
|
|
63
|
-
>
|
|
64
|
-
{{ x509.formData.username }}
|
|
65
|
-
</label>
|
|
66
|
-
</div>
|
|
67
|
-
}
|
|
31
|
+
} @else {
|
|
32
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
33
|
+
<label
|
|
34
|
+
id="certificate_subjectDN"
|
|
35
|
+
[kcClass]="'kcLabelClass'"
|
|
36
|
+
>
|
|
37
|
+
{{ i18n.msgStr('noCertificate') }}
|
|
38
|
+
</label>
|
|
68
39
|
</div>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
40
|
+
}
|
|
41
|
+
</div>
|
|
42
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
43
|
+
@if (x509.formData.isUserEnabled) {
|
|
44
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
45
|
+
<label
|
|
46
|
+
for="username"
|
|
47
|
+
[kcClass]="'kcLabelClass'"
|
|
73
48
|
>
|
|
74
|
-
|
|
75
|
-
</
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
49
|
+
{{ i18n.msgStr('doX509Login') }}
|
|
50
|
+
</label>
|
|
51
|
+
</div>
|
|
52
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
53
|
+
<label
|
|
54
|
+
id="username"
|
|
55
|
+
[kcClass]="'kcLabelClass'"
|
|
79
56
|
>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
57
|
+
{{ x509.formData.username }}
|
|
58
|
+
</label>
|
|
59
|
+
</div>
|
|
60
|
+
}
|
|
61
|
+
</div>
|
|
62
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
63
|
+
<div
|
|
64
|
+
id="kc-form-options"
|
|
65
|
+
[kcClass]="'kcFormOptionsClass'"
|
|
66
|
+
>
|
|
67
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
68
|
+
</div>
|
|
69
|
+
<div
|
|
70
|
+
id="kc-form-buttons"
|
|
71
|
+
[kcClass]="'kcFormButtonsClass'"
|
|
72
|
+
>
|
|
73
|
+
<div [kcClass]="'kcFormButtonsWrapperClass'">
|
|
74
|
+
<input
|
|
75
|
+
name="login"
|
|
76
|
+
id="kc-login"
|
|
77
|
+
type="submit"
|
|
78
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
79
|
+
[value]="i18n.msgStr('doContinue')"
|
|
80
|
+
/>
|
|
81
|
+
@if (x509.formData.isUserEnabled) {
|
|
82
|
+
<input
|
|
83
|
+
name="cancel"
|
|
84
|
+
id="kc-cancel"
|
|
85
|
+
type="submit"
|
|
86
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
87
|
+
[value]="i18n.msgStr('doIgnore')"
|
|
88
|
+
/>
|
|
89
|
+
}
|
|
99
90
|
</div>
|
|
100
|
-
</
|
|
101
|
-
</
|
|
102
|
-
</
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</form>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, TemplateRef, viewChild } from '@angular/core';
|
|
2
2
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
3
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
4
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
5
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
6
|
+
import type { I18n } from '../../i18n';
|
|
7
|
+
import type { KcContext } from '../../KcContext';
|
|
6
8
|
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
7
9
|
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
8
10
|
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
9
11
|
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
10
|
-
import type { I18n } from '../../i18n';
|
|
11
|
-
import type { KcContext } from '../../KcContext';
|
|
12
12
|
|
|
13
13
|
@Component({
|
|
14
14
|
standalone: true,
|
|
15
15
|
imports: [TemplateComponent, KcClassDirective],
|
|
16
|
-
selector: 'kc-
|
|
16
|
+
selector: 'kc-login-x509-info',
|
|
17
17
|
templateUrl: 'login-x509-info.component.html',
|
|
18
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
19
|
providers: [
|
|
@@ -28,9 +28,15 @@ export class LoginX509InfoComponent extends ComponentReference {
|
|
|
28
28
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
29
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
30
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
31
|
-
|
|
32
|
-
documentTitle
|
|
33
|
-
bodyClassName
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
|
|
32
|
+
documentTitle: string | undefined;
|
|
33
|
+
bodyClassName: string | undefined;
|
|
34
|
+
|
|
35
|
+
displayRequiredFields = false;
|
|
36
|
+
displayInfo = false;
|
|
37
|
+
displayMessage = false;
|
|
38
|
+
|
|
39
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
40
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
41
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
36
42
|
}
|
|
@@ -2,58 +2,48 @@
|
|
|
2
2
|
@let logoutConfirm = kcContext.logoutConfirm;
|
|
3
3
|
@let client = kcContext.client;
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
<ng-template #headerNode>
|
|
6
|
+
{{ i18n.msgStr('logoutConfirmTitle') }}
|
|
7
|
+
</ng-template>
|
|
8
|
+
<div
|
|
9
|
+
id="kc-logout-confirm"
|
|
10
|
+
class="content-area"
|
|
11
11
|
>
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
<p class="instruction">{{ i18n.msgStr('logoutConfirmHeader') }}</p>
|
|
13
|
+
<form
|
|
14
|
+
class="form-actions"
|
|
15
|
+
method="POST"
|
|
16
|
+
[action]="url.logoutConfirmAction"
|
|
17
|
+
>
|
|
18
|
+
<input
|
|
19
|
+
type="hidden"
|
|
20
|
+
name="session_code"
|
|
21
|
+
[value]="logoutConfirm.code"
|
|
22
|
+
/>
|
|
23
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
24
|
+
<div id="kc-form-options">
|
|
25
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
26
|
+
</div>
|
|
27
|
+
<div
|
|
28
|
+
id="kc-form-buttons"
|
|
29
|
+
class="kcFormGroupClass"
|
|
25
30
|
>
|
|
26
31
|
<input
|
|
27
|
-
|
|
28
|
-
name="
|
|
29
|
-
|
|
32
|
+
tabIndex="4"
|
|
33
|
+
name="confirmLogout"
|
|
34
|
+
id="kc-logout"
|
|
35
|
+
type="submit"
|
|
36
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
37
|
+
[value]="i18n.msgStr('doLogout')"
|
|
30
38
|
/>
|
|
31
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
32
|
-
<div id="kc-form-options">
|
|
33
|
-
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
34
|
-
</div>
|
|
35
|
-
<div
|
|
36
|
-
id="kc-form-buttons"
|
|
37
|
-
class="kcFormGroupClass"
|
|
38
|
-
>
|
|
39
|
-
<input
|
|
40
|
-
tabIndex="4"
|
|
41
|
-
name="confirmLogout"
|
|
42
|
-
id="kc-logout"
|
|
43
|
-
type="submit"
|
|
44
|
-
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
45
|
-
[value]="i18n.msgStr('doLogout')"
|
|
46
|
-
/>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</form>
|
|
50
|
-
<div id="kc-info-message">
|
|
51
|
-
@if (!logoutConfirm.skipLink && client.baseUrl) {
|
|
52
|
-
<p>
|
|
53
|
-
<a [href]="client.baseUrl">{{ i18n.msgStr('backToApplication') }}</a>
|
|
54
|
-
</p>
|
|
55
|
-
}
|
|
56
39
|
</div>
|
|
57
40
|
</div>
|
|
58
|
-
</
|
|
59
|
-
|
|
41
|
+
</form>
|
|
42
|
+
<div id="kc-info-message">
|
|
43
|
+
@if (!logoutConfirm.skipLink && client.baseUrl) {
|
|
44
|
+
<p>
|
|
45
|
+
<a [href]="client.baseUrl">{{ i18n.msgStr('backToApplication') }}</a>
|
|
46
|
+
</p>
|
|
47
|
+
}
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject,
|
|
2
|
-
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, TemplateRef, viewChild } from '@angular/core';
|
|
3
2
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
4
3
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
5
4
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
6
|
-
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
7
|
-
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
8
|
-
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
9
|
-
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
10
5
|
import type { I18n } from '../../i18n';
|
|
11
6
|
import type { KcContext } from '../../KcContext';
|
|
7
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
8
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
12
9
|
|
|
13
10
|
@Component({
|
|
14
11
|
standalone: true,
|
|
15
12
|
imports: [TemplateComponent, KcClassDirective],
|
|
16
|
-
selector: 'kc-
|
|
13
|
+
selector: 'kc-logout-confirm',
|
|
17
14
|
templateUrl: 'logout-confirm.component.html',
|
|
18
15
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
16
|
providers: [
|
|
@@ -26,11 +23,15 @@ import type { KcContext } from '../../KcContext';
|
|
|
26
23
|
export class LogoutConfirmComponent extends ComponentReference {
|
|
27
24
|
kcContext = inject<Extract<KcContext, { pageId: 'logout-confirm.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
25
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
displayInfo
|
|
35
|
-
displayMessage
|
|
26
|
+
|
|
27
|
+
documentTitle: string | undefined;
|
|
28
|
+
bodyClassName: string | undefined;
|
|
29
|
+
|
|
30
|
+
displayRequiredFields = false;
|
|
31
|
+
displayInfo = false;
|
|
32
|
+
displayMessage = true;
|
|
33
|
+
|
|
34
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
35
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
36
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
36
37
|
}
|
|
@@ -7,120 +7,110 @@
|
|
|
7
7
|
@let recaptchaAction = kcContext.recaptchaAction;
|
|
8
8
|
@let termsAcceptanceRequired = kcContext.termsAcceptanceRequired;
|
|
9
9
|
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
<ng-template #headerNode>
|
|
11
|
+
{{ messageHeader ?? i18n.advancedMsgStr('registerTitle') }}
|
|
12
|
+
</ng-template>
|
|
13
|
+
<form
|
|
14
|
+
id="kc-register-form"
|
|
15
|
+
method="post"
|
|
16
|
+
[kcClass]="'kcFormClass'"
|
|
17
|
+
[action]="url.registrationAction"
|
|
16
18
|
>
|
|
17
|
-
<ng-container
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[kcClass]="'kcFormClass'"
|
|
25
|
-
[action]="url.registrationAction"
|
|
26
|
-
>
|
|
27
|
-
<ng-container [ngComponentOutlet]="userProfileFormFields() ?? null" />
|
|
28
|
-
@if (termsAcceptanceRequired) {
|
|
29
|
-
<div className="form-group">
|
|
30
|
-
<div [kcClass]="'kcInputWrapperClass'">
|
|
31
|
-
{{ i18n.msgStr('termsTitle') }}
|
|
32
|
-
<div id="kc-registration-terms-text">
|
|
33
|
-
{{ i18n.msgStr('termsText') }}
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div className="form-group">
|
|
38
|
-
<div [kcClass]="'kcLabelWrapperClass'">
|
|
39
|
-
<input
|
|
40
|
-
type="checkbox"
|
|
41
|
-
id="termsAccepted"
|
|
42
|
-
name="termsAccepted"
|
|
43
|
-
[kcClass]="'kcCheckboxInputClass'"
|
|
44
|
-
[checked]="areTermsAccepted()"
|
|
45
|
-
[attr.aria-invalid]="messagesPerField.existsError('termsAccepted')"
|
|
46
|
-
(change)="areTermsAccepted.set($any($event.target).checked)"
|
|
47
|
-
/>
|
|
48
|
-
<label
|
|
49
|
-
for="termsAccepted"
|
|
50
|
-
[kcClass]="'kcLabelClass'"
|
|
51
|
-
>
|
|
52
|
-
{{ i18n.msgStr('acceptTerms') }}
|
|
53
|
-
</label>
|
|
54
|
-
</div>
|
|
55
|
-
@if (messagesPerField.existsError('termsAccepted')) {
|
|
56
|
-
<div [kcClass]="'kcLabelWrapperClass'">
|
|
57
|
-
<span
|
|
58
|
-
id="input-error-terms-accepted"
|
|
59
|
-
aria-live="polite"
|
|
60
|
-
[kcClass]="'kcInputErrorMessageClass'"
|
|
61
|
-
[innerHtml]="messagesPerField.get('termsAccepted') | kcSanitize: 'html'"
|
|
62
|
-
></span>
|
|
63
|
-
</div>
|
|
64
|
-
}
|
|
19
|
+
<ng-container [ngComponentOutlet]="userProfileFormFields() ?? null" />
|
|
20
|
+
@if (termsAcceptanceRequired) {
|
|
21
|
+
<div className="form-group">
|
|
22
|
+
<div [kcClass]="'kcInputWrapperClass'">
|
|
23
|
+
{{ i18n.msgStr('termsTitle') }}
|
|
24
|
+
<div id="kc-registration-terms-text">
|
|
25
|
+
{{ i18n.msgStr('termsText') }}
|
|
65
26
|
</div>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div className="form-group">
|
|
30
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
31
|
+
<input
|
|
32
|
+
type="checkbox"
|
|
33
|
+
id="termsAccepted"
|
|
34
|
+
name="termsAccepted"
|
|
35
|
+
[kcClass]="'kcCheckboxInputClass'"
|
|
36
|
+
[checked]="areTermsAccepted()"
|
|
37
|
+
[attr.aria-invalid]="messagesPerField.existsError('termsAccepted')"
|
|
38
|
+
(change)="areTermsAccepted.set($any($event.target).checked)"
|
|
39
|
+
/>
|
|
40
|
+
<label
|
|
41
|
+
for="termsAccepted"
|
|
42
|
+
[kcClass]="'kcLabelClass'"
|
|
43
|
+
>
|
|
44
|
+
{{ i18n.msgStr('acceptTerms') }}
|
|
45
|
+
</label>
|
|
46
|
+
</div>
|
|
47
|
+
@if (messagesPerField.existsError('termsAccepted')) {
|
|
48
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
49
|
+
<span
|
|
50
|
+
id="input-error-terms-accepted"
|
|
51
|
+
aria-live="polite"
|
|
52
|
+
[kcClass]="'kcInputErrorMessageClass'"
|
|
53
|
+
[innerHtml]="messagesPerField.get('termsAccepted') | kcSanitize: 'html'"
|
|
54
|
+
></span>
|
|
77
55
|
</div>
|
|
78
56
|
}
|
|
79
|
-
|
|
80
|
-
|
|
57
|
+
</div>
|
|
58
|
+
}
|
|
59
|
+
@if (recaptchaRequired && (recaptchaVisible || recaptchaAction === undefined)) {
|
|
60
|
+
<div className="form-group">
|
|
61
|
+
<div [kcClass]="'kcInputWrapperClass'">
|
|
81
62
|
<div
|
|
82
|
-
|
|
83
|
-
|
|
63
|
+
class="g-recaptcha"
|
|
64
|
+
data-size="compact"
|
|
65
|
+
[attr.data-sitekey]="recaptchaSiteKey"
|
|
66
|
+
[attr.data-action]="recaptchaAction"
|
|
67
|
+
></div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
73
|
+
<div
|
|
74
|
+
id="kc-form-options"
|
|
75
|
+
[kcClass]="'kcFormOptionsClass'"
|
|
76
|
+
>
|
|
77
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'">
|
|
78
|
+
<span>
|
|
79
|
+
<a
|
|
80
|
+
[href]="url.loginUrl"
|
|
81
|
+
[innerHTML]="i18n.msgStr('backToLogin') | kcSanitize: 'html'"
|
|
82
|
+
></a>
|
|
83
|
+
</span>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
@if (recaptchaRequired && !recaptchaVisible && recaptchaAction !== undefined) {
|
|
87
|
+
<div
|
|
88
|
+
id="kc-form-buttons"
|
|
89
|
+
[kcClass]="'kcFormButtonsClass'"
|
|
90
|
+
>
|
|
91
|
+
<button
|
|
92
|
+
class="g-recaptcha"
|
|
93
|
+
type="submit"
|
|
94
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
95
|
+
[attr.data-sitekey]="recaptchaSiteKey"
|
|
96
|
+
[attr.data-callback]="onCallback"
|
|
97
|
+
[attr.data-action]="recaptchaAction"
|
|
84
98
|
>
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<button
|
|
100
|
-
class="g-recaptcha"
|
|
101
|
-
type="submit"
|
|
102
|
-
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
103
|
-
[attr.data-sitekey]="recaptchaSiteKey"
|
|
104
|
-
[attr.data-callback]="onCallback"
|
|
105
|
-
[attr.data-action]="recaptchaAction"
|
|
106
|
-
>
|
|
107
|
-
{{ i18n.msgStr('doRegister') }}
|
|
108
|
-
</button>
|
|
109
|
-
</div>
|
|
110
|
-
} @else {
|
|
111
|
-
<div
|
|
112
|
-
id="kc-form-buttons"
|
|
113
|
-
[kcClass]="'kcFormButtonsClass'"
|
|
114
|
-
>
|
|
115
|
-
<input
|
|
116
|
-
type="submit"
|
|
117
|
-
[disabled]="!isFormSubmittable() || (termsAcceptanceRequired && !areTermsAccepted())"
|
|
118
|
-
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
119
|
-
[value]="i18n.msgStr('doRegister')"
|
|
120
|
-
/>
|
|
121
|
-
</div>
|
|
122
|
-
}
|
|
99
|
+
{{ i18n.msgStr('doRegister') }}
|
|
100
|
+
</button>
|
|
101
|
+
</div>
|
|
102
|
+
} @else {
|
|
103
|
+
<div
|
|
104
|
+
id="kc-form-buttons"
|
|
105
|
+
[kcClass]="'kcFormButtonsClass'"
|
|
106
|
+
>
|
|
107
|
+
<input
|
|
108
|
+
type="submit"
|
|
109
|
+
[disabled]="!isFormSubmittable() || (termsAcceptanceRequired && !areTermsAccepted())"
|
|
110
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
111
|
+
[value]="i18n.msgStr('doRegister')"
|
|
112
|
+
/>
|
|
123
113
|
</div>
|
|
124
|
-
|
|
125
|
-
</
|
|
126
|
-
</
|
|
114
|
+
}
|
|
115
|
+
</div>
|
|
116
|
+
</form>
|