@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,22 +1,22 @@
|
|
|
1
1
|
import { AsyncPipe, NgClass, NgComponentOutlet } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal, Type } from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal, TemplateRef, Type, viewChild } from '@angular/core';
|
|
3
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
|
+
import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
|
|
4
5
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
5
6
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
6
7
|
import { UserProfileFormFieldsComponent } from '@keycloakify/angular/login/components/user-profile-form-fields';
|
|
7
8
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
8
9
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
9
|
-
import {
|
|
10
|
+
import type { I18n } from '../../i18n';
|
|
11
|
+
import type { KcContext } from '../../KcContext';
|
|
12
|
+
import { SubmitService } from '@keycloakify/angular/login/services/submit';
|
|
10
13
|
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
11
14
|
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
12
15
|
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
13
16
|
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
-
import type { I18n } from '../../i18n';
|
|
15
|
-
import type { KcContext } from '../../KcContext';
|
|
16
|
-
import { SubmitService } from '@keycloakify/angular/login/services/submit';
|
|
17
17
|
|
|
18
18
|
@Component({
|
|
19
|
-
selector: 'kc-
|
|
19
|
+
selector: 'kc-register',
|
|
20
20
|
templateUrl: './register.component.html',
|
|
21
21
|
standalone: true,
|
|
22
22
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -31,17 +31,24 @@ import { SubmitService } from '@keycloakify/angular/login/services/submit';
|
|
|
31
31
|
export class RegisterComponent extends ComponentReference {
|
|
32
32
|
#submitService = inject(SubmitService);
|
|
33
33
|
kcContext = inject<Extract<KcContext, { pageId: 'register.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
34
|
-
displayRequiredFields = input(false);
|
|
35
|
-
documentTitle = input<string>();
|
|
36
|
-
bodyClassName = input<string>();
|
|
37
34
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
35
|
+
|
|
38
36
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
39
37
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
|
|
39
|
+
documentTitle: string | undefined;
|
|
40
|
+
bodyClassName: string | undefined;
|
|
41
|
+
|
|
42
|
+
displayRequiredFields = false;
|
|
43
|
+
displayInfo = false;
|
|
43
44
|
displayMessage: boolean = !this.kcContext?.messagesPerField?.existsError('global');
|
|
44
45
|
|
|
46
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
47
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
48
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
49
|
+
|
|
50
|
+
isFormSubmittable = signal(false);
|
|
51
|
+
areTermsAccepted = signal(false);
|
|
45
52
|
userProfileFormFields = input<Type<UserProfileFormFieldsComponent>>();
|
|
46
53
|
|
|
47
54
|
constructor() {
|
|
@@ -1,50 +1,41 @@
|
|
|
1
1
|
@let samlPost = kcContext.samlPost;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
|
|
3
|
+
<ng-template #headerNode>
|
|
4
|
+
{{ i18n.msgStr('saml.post-form.title') }}
|
|
5
|
+
</ng-template>
|
|
6
|
+
<p>{{ i18n.msgStr('saml.post-form.message') }}</p>
|
|
7
|
+
<form
|
|
8
|
+
#setHtmlFormElement
|
|
9
|
+
name="saml-post-binding"
|
|
10
|
+
method="post"
|
|
11
|
+
[action]="samlPost.url"
|
|
8
12
|
>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[value]="samlPost.relayState"
|
|
39
|
-
/>
|
|
40
|
-
}
|
|
41
|
-
<noscript>
|
|
42
|
-
<p>{{ i18n.msgStr('saml.post-form.js-disabled') }}</p>
|
|
43
|
-
<input
|
|
44
|
-
type="submit"
|
|
45
|
-
[value]="i18n.msgStr('doContinue')"
|
|
46
|
-
/>
|
|
47
|
-
</noscript>
|
|
48
|
-
</form>
|
|
49
|
-
</ng-container>
|
|
50
|
-
</kc-login-template>
|
|
13
|
+
@if (!!samlPost.SAMLRequest) {
|
|
14
|
+
<input
|
|
15
|
+
type="hidden"
|
|
16
|
+
name="SAMLRequest"
|
|
17
|
+
[value]="samlPost.SAMLRequest"
|
|
18
|
+
/>
|
|
19
|
+
}
|
|
20
|
+
@if (!!samlPost.SAMLResponse) {
|
|
21
|
+
<input
|
|
22
|
+
type="hidden"
|
|
23
|
+
name="SAMLResponse"
|
|
24
|
+
[value]="samlPost.SAMLResponse"
|
|
25
|
+
/>
|
|
26
|
+
}
|
|
27
|
+
@if (!!samlPost.relayState) {
|
|
28
|
+
<input
|
|
29
|
+
type="hidden"
|
|
30
|
+
name="RelayState"
|
|
31
|
+
[value]="samlPost.relayState"
|
|
32
|
+
/>
|
|
33
|
+
}
|
|
34
|
+
<noscript>
|
|
35
|
+
<p>{{ i18n.msgStr('saml.post-form.js-disabled') }}</p>
|
|
36
|
+
<input
|
|
37
|
+
type="submit"
|
|
38
|
+
[value]="i18n.msgStr('doContinue')"
|
|
39
|
+
/>
|
|
40
|
+
</noscript>
|
|
41
|
+
</form>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectionStrategy, Component, forwardRef, inject,
|
|
1
|
+
import { AfterViewInit, 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
|
+
import type { I18n } from '../../i18n';
|
|
6
|
+
import type { KcContext } from '../../KcContext';
|
|
5
7
|
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
6
8
|
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
7
9
|
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
8
10
|
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
9
|
-
import type { I18n } from '../../i18n';
|
|
10
|
-
import type { KcContext } from '../../KcContext';
|
|
11
11
|
|
|
12
12
|
@Component({
|
|
13
13
|
standalone: true,
|
|
14
14
|
imports: [TemplateComponent],
|
|
15
|
-
selector: 'kc-
|
|
15
|
+
selector: 'kc-saml-post-form',
|
|
16
16
|
templateUrl: 'saml-post-form.component.html',
|
|
17
17
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
18
|
providers: [
|
|
@@ -25,18 +25,24 @@ import type { KcContext } from '../../KcContext';
|
|
|
25
25
|
export class SamlPostFormComponent extends ComponentReference implements AfterViewInit {
|
|
26
26
|
kcContext = inject<Extract<KcContext, { pageId: 'saml-post-form.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
27
27
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
28
|
+
|
|
28
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
29
30
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
30
|
-
|
|
31
|
-
documentTitle
|
|
32
|
-
bodyClassName
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
|
|
32
|
+
documentTitle: string | undefined;
|
|
33
|
+
bodyClassName: string | undefined;
|
|
34
|
+
|
|
35
|
+
displayRequiredFields = false;
|
|
36
|
+
displayInfo = false;
|
|
37
|
+
displayMessage = true;
|
|
38
|
+
|
|
39
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
40
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
41
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
42
|
+
htmlFormElement = viewChild<HTMLFormElement>('setHtmlFormElement');
|
|
37
43
|
|
|
38
44
|
ngAfterViewInit(): void {
|
|
39
|
-
if (this.htmlFormElement === null) {
|
|
45
|
+
if (this.htmlFormElement() === null || this.htmlFormElement() === undefined) {
|
|
40
46
|
return;
|
|
41
47
|
}
|
|
42
48
|
|
|
@@ -45,6 +51,6 @@ export class SamlPostFormComponent extends ComponentReference implements AfterVi
|
|
|
45
51
|
return;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
|
-
this.htmlFormElement
|
|
54
|
+
this.htmlFormElement()!.submit();
|
|
49
55
|
}
|
|
50
56
|
}
|
|
@@ -1,48 +1,40 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
2
|
@let auth = kcContext.auth;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
[
|
|
27
|
-
|
|
28
|
-
<div [kcClass]="'kcSelectAuthListItemIconClass'">
|
|
29
|
-
<i [kcClass]="['kcSelectAuthListItemIconPropertyClass', $any(authenticationSelection.iconCssClass)]"></i>
|
|
3
|
+
|
|
4
|
+
<ng-template #headerNode>
|
|
5
|
+
{{ i18n.msgStr('loginChooseAuthenticator') }}
|
|
6
|
+
</ng-template>
|
|
7
|
+
<ng-container content>
|
|
8
|
+
<form
|
|
9
|
+
id="kc-select-credential-form"
|
|
10
|
+
method="post"
|
|
11
|
+
[kcClass]="'kcFormClass'"
|
|
12
|
+
[action]="url.loginAction"
|
|
13
|
+
>
|
|
14
|
+
<div [kcClass]="'kcSelectAuthListClass'">
|
|
15
|
+
@for (authenticationSelection of auth.authenticationSelections; track authenticationSelection; let i = $index) {
|
|
16
|
+
<button
|
|
17
|
+
type="submit"
|
|
18
|
+
name="authenticationExecution"
|
|
19
|
+
[kcClass]="'kcSelectAuthListItemClass'"
|
|
20
|
+
[value]="authenticationSelection.authExecId"
|
|
21
|
+
>
|
|
22
|
+
<div [kcClass]="'kcSelectAuthListItemIconClass'">
|
|
23
|
+
<i [kcClass]="['kcSelectAuthListItemIconPropertyClass', $any(authenticationSelection.iconCssClass)]"></i>
|
|
24
|
+
</div>
|
|
25
|
+
<div [kcClass]="'kcSelectAuthListItemBodyClass'">
|
|
26
|
+
<div [kcClass]="'kcSelectAuthListItemHeadingClass'">
|
|
27
|
+
{{ i18n.advancedMsgStr(authenticationSelection.displayName) }}
|
|
30
28
|
</div>
|
|
31
|
-
<div [kcClass]="'
|
|
32
|
-
|
|
33
|
-
{{ i18n.advancedMsgStr(authenticationSelection.displayName) }}
|
|
34
|
-
</div>
|
|
35
|
-
<div [kcClass]="'kcSelectAuthListItemDescriptionClass'">
|
|
36
|
-
{{ i18n.advancedMsgStr(authenticationSelection.helpText) }}
|
|
37
|
-
</div>
|
|
29
|
+
<div [kcClass]="'kcSelectAuthListItemDescriptionClass'">
|
|
30
|
+
{{ i18n.advancedMsgStr(authenticationSelection.helpText) }}
|
|
38
31
|
</div>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</form
|
|
47
|
-
|
|
48
|
-
</kc-login-template>
|
|
32
|
+
</div>
|
|
33
|
+
<div [kcClass]="'kcSelectAuthListItemFillClass'"></div>
|
|
34
|
+
<div [kcClass]="'kcSelectAuthListItemArrowClass'">
|
|
35
|
+
<i [kcClass]="'kcSelectAuthListItemArrowIconClass'"></i>
|
|
36
|
+
</div>
|
|
37
|
+
</button>
|
|
38
|
+
}
|
|
39
|
+
</div></form
|
|
40
|
+
></ng-container>
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NgClass } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject,
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, TemplateRef, viewChild } from '@angular/core';
|
|
3
3
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
4
4
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
5
5
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
6
6
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
7
|
+
import type { I18n } from '../../i18n';
|
|
8
|
+
import type { KcContext } from '../../KcContext';
|
|
7
9
|
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
8
10
|
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
9
11
|
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
10
12
|
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
11
|
-
import type { I18n } from '../../i18n';
|
|
12
|
-
import type { KcContext } from '../../KcContext';
|
|
13
13
|
|
|
14
14
|
@Component({
|
|
15
15
|
standalone: true,
|
|
16
16
|
imports: [TemplateComponent, KcClassDirective, NgClass],
|
|
17
|
-
selector: 'kc-
|
|
17
|
+
selector: 'kc-select-authenticator',
|
|
18
18
|
templateUrl: 'select-authenticator.component.html',
|
|
19
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
20
|
providers: [
|
|
@@ -27,11 +27,18 @@ import type { KcContext } from '../../KcContext';
|
|
|
27
27
|
export class SelectAuthenticatorComponent extends ComponentReference {
|
|
28
28
|
kcContext = inject<Extract<KcContext, { pageId: 'select-authenticator.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
29
29
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
30
|
+
|
|
30
31
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
31
32
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
32
|
-
|
|
33
|
-
documentTitle
|
|
34
|
-
bodyClassName
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
|
|
34
|
+
documentTitle: string | undefined;
|
|
35
|
+
bodyClassName: string | undefined;
|
|
36
|
+
|
|
37
|
+
displayRequiredFields = false;
|
|
38
|
+
displayInfo = false;
|
|
39
|
+
displayMessage = true;
|
|
40
|
+
|
|
41
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
42
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
43
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
37
44
|
}
|
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
|
|
3
|
+
<ng-template #headerNode>
|
|
4
|
+
{{ i18n.msgStr('termsTitle') }}
|
|
5
|
+
</ng-template>
|
|
6
|
+
<div id="kc-terms-text">{{ i18n.msgStr('termsText') }}</div>
|
|
7
|
+
<form
|
|
8
|
+
class="form-actions"
|
|
9
|
+
method="POST"
|
|
10
|
+
[action]="url.loginAction"
|
|
8
11
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/>
|
|
26
|
-
<input
|
|
27
|
-
name="cancel"
|
|
28
|
-
id="kc-decline"
|
|
29
|
-
type="submit"
|
|
30
|
-
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
31
|
-
[value]="i18n.msgStr('doDecline')"
|
|
32
|
-
/>
|
|
33
|
-
</form>
|
|
34
|
-
<div className="clearfix"></div>
|
|
35
|
-
</ng-container>
|
|
36
|
-
</kc-login-template>
|
|
12
|
+
<input
|
|
13
|
+
name="accept"
|
|
14
|
+
id="kc-accept"
|
|
15
|
+
type="submit"
|
|
16
|
+
[kcClass]="['kcButtonClass', 'kcButtonClass', 'kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
17
|
+
[value]="i18n.msgStr('doAccept')"
|
|
18
|
+
/>
|
|
19
|
+
<input
|
|
20
|
+
name="cancel"
|
|
21
|
+
id="kc-decline"
|
|
22
|
+
type="submit"
|
|
23
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
24
|
+
[value]="i18n.msgStr('doDecline')"
|
|
25
|
+
/>
|
|
26
|
+
</form>
|
|
27
|
+
<div className="clearfix"></div>
|
|
@@ -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-terms',
|
|
17
17
|
templateUrl: 'terms.component.html',
|
|
18
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
19
|
providers: [
|
|
@@ -26,11 +26,18 @@ import type { KcContext } from '../../KcContext';
|
|
|
26
26
|
export class TermsComponent extends ComponentReference {
|
|
27
27
|
kcContext = inject<Extract<KcContext, { pageId: 'terms.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
28
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
29
|
+
|
|
29
30
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
31
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
31
|
-
|
|
32
|
-
documentTitle
|
|
33
|
-
bodyClassName
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
|
|
33
|
+
documentTitle: string | undefined;
|
|
34
|
+
bodyClassName: string | undefined;
|
|
35
|
+
|
|
36
|
+
displayRequiredFields = false;
|
|
37
|
+
displayInfo = false;
|
|
38
|
+
displayMessage = false;
|
|
39
|
+
|
|
40
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
41
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
42
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
36
43
|
}
|
|
@@ -1,58 +1,49 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
2
|
@let isAppInitiatedAction = kcContext.isAppInitiatedAction;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
|
|
4
|
+
<ng-template #headerNode>
|
|
5
|
+
{{ i18n.msgStr('updateEmailTitle') }}
|
|
6
|
+
</ng-template>
|
|
7
|
+
<form
|
|
8
|
+
id="kc-update-email-form"
|
|
9
|
+
method="post"
|
|
10
|
+
[kcClass]="'kcFormClass'"
|
|
11
|
+
[action]="url.loginAction"
|
|
9
12
|
>
|
|
10
|
-
<ng-container
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
id="kc-update-email-form"
|
|
16
|
-
method="post"
|
|
17
|
-
[kcClass]="'kcFormClass'"
|
|
18
|
-
[action]="url.loginAction"
|
|
13
|
+
<ng-container [ngComponentOutlet]="userProfileFormFields() ?? null" />
|
|
14
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
15
|
+
<div
|
|
16
|
+
id="kc-form-options"
|
|
17
|
+
[kcClass]="'kcFormOptionsClass'"
|
|
19
18
|
>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
20
|
+
</div>
|
|
21
|
+
<kc-logout-other-sessions />
|
|
22
|
+
<div
|
|
23
|
+
id="kc-form-buttons"
|
|
24
|
+
[kcClass]="'kcFormButtonsClass'"
|
|
25
|
+
>
|
|
26
|
+
<input
|
|
27
|
+
type="submit"
|
|
28
|
+
[disabled]="!isFormSubmittable()"
|
|
29
|
+
[kcClass]="{
|
|
30
|
+
kcButtonClass: true,
|
|
31
|
+
kcButtonPrimaryClass: true,
|
|
32
|
+
kcButtonBlockClass: isAppInitiatedAction,
|
|
33
|
+
kcButtonLargeClass: true
|
|
34
|
+
}"
|
|
35
|
+
[value]="i18n.msgStr('doSubmit')"
|
|
36
|
+
/>
|
|
37
|
+
@if (isAppInitiatedAction) {
|
|
38
|
+
<button
|
|
39
|
+
type="submit"
|
|
40
|
+
name="cancel-aia"
|
|
41
|
+
value="true"
|
|
42
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
32
43
|
>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
kcButtonBlockClass: isAppInitiatedAction,
|
|
40
|
-
kcButtonLargeClass: true
|
|
41
|
-
}"
|
|
42
|
-
[value]="i18n.msgStr('doSubmit')"
|
|
43
|
-
/>
|
|
44
|
-
@if (isAppInitiatedAction) {
|
|
45
|
-
<button
|
|
46
|
-
type="submit"
|
|
47
|
-
name="cancel-aia"
|
|
48
|
-
value="true"
|
|
49
|
-
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
50
|
-
>
|
|
51
|
-
{{ i18n.msgStr('doCancel') }}
|
|
52
|
-
</button>
|
|
53
|
-
}
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</form>
|
|
57
|
-
</ng-container>
|
|
58
|
-
</kc-login-template>
|
|
44
|
+
{{ i18n.msgStr('doCancel') }}
|
|
45
|
+
</button>
|
|
46
|
+
}
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</form>
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import { NgComponentOutlet } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal, Type } from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal, TemplateRef, Type, viewChild } from '@angular/core';
|
|
3
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
|
-
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
5
4
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
6
5
|
import { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';
|
|
7
6
|
import { UserProfileFormFieldsComponent } from '@keycloakify/angular/login/components/user-profile-form-fields';
|
|
8
7
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
9
8
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
10
|
-
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
11
|
-
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
12
|
-
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
13
|
-
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
9
|
import type { I18n } from '../../i18n';
|
|
15
10
|
import type { KcContext } from '../../KcContext';
|
|
16
11
|
import { SubmitService } from '@keycloakify/angular/login/services/submit';
|
|
12
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
13
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
17
14
|
|
|
18
15
|
@Component({
|
|
19
16
|
standalone: true,
|
|
20
17
|
imports: [TemplateComponent, KcClassDirective, NgComponentOutlet, LogoutOtherSessionsComponent],
|
|
21
|
-
selector: 'kc-
|
|
18
|
+
selector: 'kc-update-email',
|
|
22
19
|
templateUrl: 'update-email.component.html',
|
|
23
20
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
21
|
providers: [
|
|
@@ -32,16 +29,20 @@ export class UpdateEmailComponent extends ComponentReference {
|
|
|
32
29
|
#submitService = inject(SubmitService);
|
|
33
30
|
kcContext = inject<Extract<KcContext, { pageId: 'update-email.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
34
31
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
displayInfo
|
|
41
|
-
displayMessage
|
|
42
|
-
|
|
32
|
+
|
|
33
|
+
documentTitle: string | undefined;
|
|
34
|
+
bodyClassName: string | undefined;
|
|
35
|
+
|
|
36
|
+
displayRequiredFields = true;
|
|
37
|
+
displayInfo = false;
|
|
38
|
+
displayMessage = this.kcContext.messagesPerField.exists('global');
|
|
39
|
+
|
|
40
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
41
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
42
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
43
43
|
|
|
44
44
|
userProfileFormFields = input<Type<UserProfileFormFieldsComponent>>();
|
|
45
|
+
isFormSubmittable = signal(false);
|
|
45
46
|
|
|
46
47
|
constructor() {
|
|
47
48
|
super();
|