@keycloakify/angular 0.0.1-rc.17 → 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 +42 -9
- package/esm2022/account/directives/kc-class/kc-class.directive.mjs +3 -3
- package/esm2022/account/pages/account/account.component.mjs +8 -7
- package/esm2022/account/pages/applications/applications.component.mjs +8 -7
- package/esm2022/account/pages/federatedIdentity/federatedIdentity.component.mjs +8 -7
- package/esm2022/account/pages/log/log.component.mjs +8 -7
- package/esm2022/account/pages/password/password.component.mjs +9 -7
- package/esm2022/account/pages/sessions/sessions.component.mjs +8 -7
- package/esm2022/account/pages/totp/totp.component.mjs +8 -7
- package/esm2022/account/providers/keycloakify-angular/keycloakify-angular.providers.mjs +2 -1
- package/esm2022/account/services/account-resource-injector/account-resource-injector.service.mjs +3 -3
- package/esm2022/account/services/i18n/i18n.service.mjs +3 -3
- package/esm2022/lib/directives/attributes/attributes.directive.mjs +3 -3
- package/esm2022/lib/pipes/input-type/input-type.pipe.mjs +3 -3
- package/esm2022/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.mjs +3 -3
- package/esm2022/lib/pipes/kc-sanitize/kc-sanitize.pipe.mjs +3 -3
- package/esm2022/lib/pipes/to-array/to-array.pipe.mjs +3 -3
- package/esm2022/lib/pipes/to-number/to-number.pipe.mjs +3 -3
- package/esm2022/lib/services/resource-injector/resource-injector.service.mjs +3 -3
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +5 -5
- package/esm2022/login/components/field-errors/field-errors.component.mjs +6 -6
- package/esm2022/login/components/group-label/group-label.component.mjs +3 -3
- package/esm2022/login/components/input-field-by-type/input-field-by-type.component.mjs +6 -6
- package/esm2022/login/components/input-tag/input-tag.component.mjs +6 -6
- package/esm2022/login/components/input-tag-selects/input-tag-selects.component.mjs +3 -3
- package/esm2022/login/components/logout-other-sessions/logout-other-sessions.component.mjs +3 -3
- package/esm2022/login/components/password-wrapper/password-wrapper.component.mjs +6 -6
- package/esm2022/login/components/select-tag/select-tag.component.mjs +3 -3
- package/esm2022/login/components/textarea-tag/textarea-tag.component.mjs +3 -3
- package/esm2022/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +6 -6
- package/esm2022/login/containers/template/template.component.mjs +83 -15
- package/esm2022/login/directives/kc-class/kc-class.directive.mjs +5 -5
- package/esm2022/login/pages/code/code.component.mjs +16 -10
- package/esm2022/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +14 -8
- package/esm2022/login/pages/delete-credential/delete-credential.component.mjs +12 -11
- package/esm2022/login/pages/error/error.component.mjs +16 -10
- package/esm2022/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +14 -12
- package/esm2022/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +14 -13
- package/esm2022/login/pages/info/info.component.mjs +13 -12
- package/esm2022/login/pages/login/login.component.mjs +15 -14
- package/esm2022/login/pages/login-config-totp/login-config-totp.component.mjs +14 -13
- package/esm2022/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +13 -16
- package/esm2022/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +13 -16
- package/esm2022/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +12 -15
- package/esm2022/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +13 -15
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +12 -11
- package/esm2022/login/pages/login-otp/login-otp.component.mjs +13 -12
- package/esm2022/login/pages/login-page-expired/login-page-expired.component.mjs +12 -11
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +13 -8
- package/esm2022/login/pages/login-password/login-password.component.mjs +15 -13
- package/esm2022/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +14 -13
- package/esm2022/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +14 -13
- package/esm2022/login/pages/login-reset-otp/login-reset-otp.component.mjs +13 -12
- package/esm2022/login/pages/login-reset-password/login-reset-password.component.mjs +13 -12
- package/esm2022/login/pages/login-update-password/login-update-password.component.mjs +13 -12
- package/esm2022/login/pages/login-update-profile/login-update-profile.component.mjs +13 -12
- package/esm2022/login/pages/login-username/login-username.component.mjs +14 -13
- package/esm2022/login/pages/login-verify-email/login-verify-email.component.mjs +12 -11
- package/esm2022/login/pages/login-x509-info/login-x509-info.component.mjs +12 -11
- package/esm2022/login/pages/logout-confirm/logout-confirm.component.mjs +12 -15
- package/esm2022/login/pages/register/register.component.mjs +16 -15
- package/esm2022/login/pages/saml-post-form/saml-post-form.component.mjs +16 -17
- package/esm2022/login/pages/select-authenticator/select-authenticator.component.mjs +13 -12
- package/esm2022/login/pages/terms/terms.component.mjs +12 -11
- package/esm2022/login/pages/update-email/update-email.component.mjs +14 -17
- package/esm2022/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +12 -11
- package/esm2022/login/pages/webauthn-error/webauthn-error.component.mjs +13 -12
- package/esm2022/login/pages/webauthn-register/webauthn-register.component.mjs +12 -11
- package/esm2022/login/providers/keycloakify-angular/keycloakify-angular.providers.mjs +2 -1
- package/esm2022/login/services/i18n/i18n.service.mjs +3 -3
- package/esm2022/login/services/login-resource-injector/login-resource-injector.service.mjs +3 -3
- package/esm2022/login/services/submit/submit.service.mjs +4 -4
- package/esm2022/login/services/user-profile-form/user-profile-form.service.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-containers-template.mjs +42 -9
- package/fesm2022/keycloakify-angular-account-containers-template.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-account.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-log.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-password.mjs +8 -6
- package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs +1 -0
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-containers-template.mjs +83 -15
- package/fesm2022/keycloakify-angular-login-containers-template.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-code.mjs +15 -9
- package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +13 -7
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-error.mjs +15 -9
- package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +13 -11
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +13 -12
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-info.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +13 -12
- 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 +12 -15
- 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 +12 -15
- 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 +11 -14
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +12 -14
- 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 +11 -10
- 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 +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +12 -7
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +14 -12
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +13 -12
- 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 +13 -12
- 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 +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +13 -12
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login.mjs +14 -13
- package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +11 -14
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-register.mjs +15 -14
- package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +15 -16
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +13 -16
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs +1 -0
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-submit.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-submit.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +3 -3
- package/login/containers/template/template.component.d.ts +25 -9
- package/login/directives/kc-class/kc-class.directive.d.ts +1 -1
- 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 +16 -11
- 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 +6 -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/account/providers/keycloakify-angular/keycloakify-angular.providers.ts +1 -0
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +2 -2
- package/src/login/components/field-errors/field-errors.component.html +1 -1
- package/src/login/components/input-field-by-type/input-field-by-type.component.html +6 -6
- package/src/login/components/input-tag/input-tag.component.html +2 -2
- package/src/login/components/password-wrapper/password-wrapper.component.html +2 -2
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +7 -11
- package/src/login/containers/template/template.component.html +29 -15
- package/src/login/containers/template/template.component.ts +100 -12
- package/src/login/directives/kc-class/kc-class.directive.ts +1 -2
- 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 -145
- 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
- package/src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts +1 -0
- package/src/login/services/submit/submit.service.ts +1 -1
- package/src/tsconfig.lib.json +0 -12
- package/src/tsconfig.lib.prod.json +0 -10
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, TemplateRef, viewChild } from '@angular/core';
|
|
2
|
+
import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
|
|
2
3
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
3
4
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
4
5
|
import { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';
|
|
5
6
|
import { PasswordWrapperComponent } from '@keycloakify/angular/login/components/password-wrapper';
|
|
6
7
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
7
8
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
8
|
-
import {
|
|
9
|
+
import type { I18n } from '../../i18n';
|
|
10
|
+
import type { KcContext } from '../../KcContext';
|
|
9
11
|
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
10
12
|
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
11
13
|
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
12
14
|
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
13
|
-
import type { I18n } from '../../i18n';
|
|
14
|
-
import type { KcContext } from '../../KcContext';
|
|
15
15
|
|
|
16
16
|
@Component({
|
|
17
17
|
standalone: true,
|
|
18
18
|
imports: [TemplateComponent, KcClassDirective, PasswordWrapperComponent, KcSanitizePipe, LogoutOtherSessionsComponent],
|
|
19
|
-
selector: 'kc-
|
|
19
|
+
selector: 'kc-login-update-password',
|
|
20
20
|
templateUrl: 'login-update-password.component.html',
|
|
21
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
22
|
providers: [
|
|
@@ -29,11 +29,18 @@ import type { KcContext } from '../../KcContext';
|
|
|
29
29
|
export class LoginUpdatePasswordComponent extends ComponentReference {
|
|
30
30
|
kcContext = inject<Extract<KcContext, { pageId: 'login-update-password.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
31
31
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
32
|
+
|
|
32
33
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
33
34
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
34
|
-
|
|
35
|
-
documentTitle
|
|
36
|
-
bodyClassName
|
|
35
|
+
|
|
36
|
+
documentTitle: string | undefined;
|
|
37
|
+
bodyClassName: string | undefined;
|
|
38
|
+
|
|
39
|
+
displayRequiredFields = false;
|
|
37
40
|
displayInfo = false;
|
|
38
41
|
displayMessage = !this.kcContext.messagesPerField.existsError('password', 'password-confirm');
|
|
42
|
+
|
|
43
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
44
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
45
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
39
46
|
}
|
|
@@ -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('loginProfileTitle') }}
|
|
6
|
+
</ng-template>
|
|
7
|
+
<form
|
|
8
|
+
id="kc-update-profile-form"
|
|
9
|
+
method="post"
|
|
10
|
+
[kcClass]="'kcFormClass'"
|
|
11
|
+
[action]="url.loginAction"
|
|
9
12
|
>
|
|
10
|
-
<ng-container
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
id="kc-update-profile-form"
|
|
16
|
-
[kcClass]="'kcFormClass'"
|
|
17
|
-
[action]="url.loginAction"
|
|
18
|
-
method="post"
|
|
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
|
-
|
|
19
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
20
|
+
</div>
|
|
21
|
+
<div
|
|
22
|
+
id="kc-form-buttons"
|
|
23
|
+
[kcClass]="'kcFormButtonsClass'"
|
|
24
|
+
>
|
|
25
|
+
<input
|
|
26
|
+
type="submit"
|
|
27
|
+
[disabled]="!isFormSubmittable()"
|
|
28
|
+
[kcClass]="{
|
|
29
|
+
kcButtonClass: true,
|
|
30
|
+
kcButtonPrimaryClass: true,
|
|
31
|
+
kcButtonBlockClass: !isAppInitiatedAction,
|
|
32
|
+
kcButtonLargeClass: true
|
|
33
|
+
}"
|
|
34
|
+
[value]="i18n.msgStr('doSubmit')"
|
|
35
|
+
/>
|
|
36
|
+
@if (isAppInitiatedAction) {
|
|
37
|
+
<button
|
|
38
|
+
type="submit"
|
|
39
|
+
name="cancel-aia"
|
|
40
|
+
value="true"
|
|
41
|
+
formNoValidate
|
|
42
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
31
43
|
>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
kcButtonLargeClass: true
|
|
39
|
-
}"
|
|
40
|
-
type="submit"
|
|
41
|
-
[value]="i18n.msgStr('doSubmit')"
|
|
42
|
-
/>
|
|
43
|
-
@if (isAppInitiatedAction) {
|
|
44
|
-
<button
|
|
45
|
-
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
46
|
-
type="submit"
|
|
47
|
-
name="cancel-aia"
|
|
48
|
-
value="true"
|
|
49
|
-
formNoValidate
|
|
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,23 +1,23 @@
|
|
|
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
4
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
5
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
6
6
|
import { UserProfileFormFieldsComponent } from '@keycloakify/angular/login/components/user-profile-form-fields';
|
|
7
7
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
8
8
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
9
|
+
import type { I18n } from '../../i18n';
|
|
10
|
+
import type { KcContext } from '../../KcContext';
|
|
11
|
+
import { SubmitService } from '@keycloakify/angular/login/services/submit';
|
|
9
12
|
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
10
13
|
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
11
14
|
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
12
15
|
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
13
|
-
import type { I18n } from '../../i18n';
|
|
14
|
-
import type { KcContext } from '../../KcContext';
|
|
15
|
-
import { SubmitService } from '@keycloakify/angular/login/services/submit';
|
|
16
16
|
|
|
17
17
|
@Component({
|
|
18
18
|
standalone: true,
|
|
19
19
|
imports: [TemplateComponent, KcClassDirective, NgComponentOutlet],
|
|
20
|
-
selector: 'kc-
|
|
20
|
+
selector: 'kc-login-update-profile',
|
|
21
21
|
templateUrl: 'login-update-profile.component.html',
|
|
22
22
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
23
|
providers: [
|
|
@@ -31,17 +31,24 @@ export class LoginUpdateProfileComponent extends ComponentReference {
|
|
|
31
31
|
#submitService = inject(SubmitService);
|
|
32
32
|
kcContext = inject<Extract<KcContext, { pageId: 'login-update-profile.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
33
33
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
34
|
+
|
|
34
35
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
35
36
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
36
|
-
|
|
37
|
-
documentTitle
|
|
38
|
-
bodyClassName
|
|
39
|
-
|
|
37
|
+
|
|
38
|
+
documentTitle: string | undefined;
|
|
39
|
+
bodyClassName: string | undefined;
|
|
40
|
+
|
|
41
|
+
displayRequiredFields = true;
|
|
42
|
+
displayInfo = false;
|
|
40
43
|
displayMessage: boolean = this.kcContext.messagesPerField.exists('global');
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
46
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
47
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
43
48
|
|
|
49
|
+
isFormSubmittable = signal(false);
|
|
44
50
|
userProfileFormFields = input<Type<UserProfileFormFieldsComponent>>();
|
|
51
|
+
|
|
45
52
|
constructor() {
|
|
46
53
|
super();
|
|
47
54
|
this.#submitService.isSubmittable.pipe(takeUntilDestroyed()).subscribe(submittable => {
|
|
@@ -5,157 +5,147 @@
|
|
|
5
5
|
@let url = kcContext.url;
|
|
6
6
|
@let login = kcContext.login;
|
|
7
7
|
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<ng-container infoNode>
|
|
19
|
-
<div id="kc-registration">
|
|
20
|
-
<span>
|
|
21
|
-
{{ i18n.msgStr('noAccount') }}
|
|
22
|
-
<a
|
|
23
|
-
tabindex="6"
|
|
24
|
-
[href]="url?.registrationUrl"
|
|
25
|
-
>
|
|
26
|
-
{{ i18n.msgStr('doRegister') }}
|
|
27
|
-
</a>
|
|
28
|
-
</span>
|
|
29
|
-
</div>
|
|
30
|
-
</ng-container>
|
|
31
|
-
<ng-container socialProvidersNode>
|
|
32
|
-
@if (!!realm?.password && !!social?.providers?.length) {
|
|
33
|
-
<div
|
|
34
|
-
id="kc-social-providers"
|
|
35
|
-
[kcClass]="'kcFormSocialAccountSectionClass'"
|
|
8
|
+
<ng-template #headerNode>
|
|
9
|
+
{{ i18n.msgStr('doLogIn') }}
|
|
10
|
+
</ng-template>
|
|
11
|
+
<ng-container infoNode>
|
|
12
|
+
<div id="kc-registration">
|
|
13
|
+
<span>
|
|
14
|
+
{{ i18n.msgStr('noAccount') }}
|
|
15
|
+
<a
|
|
16
|
+
tabindex="6"
|
|
17
|
+
[href]="url?.registrationUrl"
|
|
36
18
|
>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
19
|
+
{{ i18n.msgStr('doRegister') }}
|
|
20
|
+
</a>
|
|
21
|
+
</span>
|
|
22
|
+
</div>
|
|
23
|
+
</ng-container>
|
|
24
|
+
<ng-template #socialProvidersNode>
|
|
25
|
+
@if (!!realm?.password && !!social?.providers?.length) {
|
|
26
|
+
<div
|
|
27
|
+
id="kc-social-providers"
|
|
28
|
+
[kcClass]="'kcFormSocialAccountSectionClass'"
|
|
29
|
+
>
|
|
30
|
+
<hr />
|
|
31
|
+
<h2>{{ i18n.msgStr('identity-provider-login-label') }}</h2>
|
|
32
|
+
<ul
|
|
33
|
+
[kcClass]="{
|
|
34
|
+
kcFormSocialAccountListClass: true,
|
|
35
|
+
kcFormSocialAccountListGridClass: (social?.providers?.length ?? 0) > 3
|
|
36
|
+
}"
|
|
37
|
+
>
|
|
38
|
+
@for (provider of social?.providers; track provider.alias; let idx = $index) {
|
|
39
|
+
<li>
|
|
40
|
+
<a
|
|
41
|
+
type="button"
|
|
42
|
+
[id]="provider.alias"
|
|
43
|
+
[kcClass]="{
|
|
44
|
+
kcFormSocialAccountListButtonClass: true,
|
|
45
|
+
kcFormSocialAccountGridItem: (social?.providers?.length ?? 0) > 3
|
|
46
|
+
}"
|
|
47
|
+
[href]="provider.loginUrl"
|
|
48
|
+
>
|
|
49
|
+
@if (provider.iconClasses) {
|
|
50
|
+
<i
|
|
51
|
+
aria-hidden="true"
|
|
52
|
+
[ngClass]="provider.iconClasses"
|
|
53
|
+
[kcClass]="'kcCommonLogoIdP'"
|
|
54
|
+
></i>
|
|
55
|
+
}
|
|
56
|
+
<span
|
|
57
|
+
[ngClass]="{
|
|
58
|
+
'kc-social-icon-text': provider.iconClasses
|
|
52
59
|
}"
|
|
53
|
-
|
|
54
|
-
[
|
|
60
|
+
[kcClass]="'kcFormSocialAccountNameClass'"
|
|
61
|
+
[innerHTML]="provider.displayName | kcSanitize: 'html'"
|
|
62
|
+
></span>
|
|
63
|
+
</a>
|
|
64
|
+
</li>
|
|
65
|
+
}
|
|
66
|
+
</ul>
|
|
67
|
+
</div>
|
|
68
|
+
}
|
|
69
|
+
</ng-template>
|
|
70
|
+
<div id="kc-form">
|
|
71
|
+
<div id="kc-form-wrapper">
|
|
72
|
+
@if (realm.password) {
|
|
73
|
+
<form
|
|
74
|
+
id="kc-form-login"
|
|
75
|
+
method="post"
|
|
76
|
+
[action]="url?.loginAction"
|
|
77
|
+
(onSubmit)="isLoginButtonDisabled.set(true)"
|
|
78
|
+
>
|
|
79
|
+
@if (!usernameHidden) {
|
|
80
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
81
|
+
<label
|
|
82
|
+
for="username"
|
|
83
|
+
[kcClass]="'kcLabelClass'"
|
|
84
|
+
>
|
|
85
|
+
@if (!realm?.loginWithEmailAllowed) {
|
|
86
|
+
{{ i18n.msgStr('username') }}
|
|
87
|
+
} @else if (!realm?.registrationEmailAsUsername) {
|
|
88
|
+
{{ i18n.msgStr('usernameOrEmail') }}
|
|
89
|
+
} @else {
|
|
90
|
+
{{ i18n.msgStr('email') }}
|
|
91
|
+
}
|
|
92
|
+
</label>
|
|
93
|
+
<input
|
|
94
|
+
tabindex="2"
|
|
95
|
+
id="username"
|
|
96
|
+
name="username"
|
|
97
|
+
type="text"
|
|
98
|
+
autofocus
|
|
99
|
+
autoComplete="off"
|
|
100
|
+
[kcClass]="'kcInputClass'"
|
|
101
|
+
[defaultValue]="login?.username || ''"
|
|
102
|
+
[attr.aria-invalid]="messagesPerField?.existsError('username')"
|
|
103
|
+
/>
|
|
104
|
+
@if (messagesPerField?.existsError('username')) {
|
|
105
|
+
<span
|
|
106
|
+
id="input-error"
|
|
107
|
+
aria-live="polite"
|
|
108
|
+
[kcClass]="'kcInputErrorMessageClass'"
|
|
109
|
+
[innerHTML]="messagesPerField.getFirstError('username') | kcSanitize: 'html'"
|
|
55
110
|
>
|
|
56
|
-
|
|
57
|
-
<i
|
|
58
|
-
[ngClass]="provider.iconClasses"
|
|
59
|
-
[kcClass]="'kcCommonLogoIdP'"
|
|
60
|
-
aria-hidden="true"
|
|
61
|
-
></i>
|
|
62
|
-
}
|
|
63
|
-
<span
|
|
64
|
-
[ngClass]="{
|
|
65
|
-
'kc-social-icon-text': provider.iconClasses
|
|
66
|
-
}"
|
|
67
|
-
[kcClass]="'kcFormSocialAccountNameClass'"
|
|
68
|
-
[innerHTML]="provider.displayName | kcSanitize: 'html'"
|
|
69
|
-
></span>
|
|
70
|
-
</a>
|
|
71
|
-
</li>
|
|
72
|
-
}
|
|
73
|
-
</ul>
|
|
74
|
-
</div>
|
|
75
|
-
}
|
|
76
|
-
</ng-container>
|
|
77
|
-
<ng-container content>
|
|
78
|
-
<div id="kc-form">
|
|
79
|
-
<div id="kc-form-wrapper">
|
|
80
|
-
@if (realm.password) {
|
|
81
|
-
<form
|
|
82
|
-
id="kc-form-login"
|
|
83
|
-
(onSubmit)="isLoginButtonDisabled.set(true)"
|
|
84
|
-
[action]="url?.loginAction"
|
|
85
|
-
method="post"
|
|
86
|
-
>
|
|
87
|
-
@if (!usernameHidden) {
|
|
88
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
89
|
-
<label
|
|
90
|
-
for="username"
|
|
91
|
-
[kcClass]="'kcLabelClass'"
|
|
92
|
-
>
|
|
93
|
-
@if (!realm?.loginWithEmailAllowed) {
|
|
94
|
-
{{ i18n.msgStr('username') }}
|
|
95
|
-
} @else if (!realm?.registrationEmailAsUsername) {
|
|
96
|
-
{{ i18n.msgStr('usernameOrEmail') }}
|
|
97
|
-
} @else {
|
|
98
|
-
{{ i18n.msgStr('email') }}
|
|
99
|
-
}
|
|
100
|
-
</label>
|
|
101
|
-
<input
|
|
102
|
-
tabindex="2"
|
|
103
|
-
id="username"
|
|
104
|
-
[kcClass]="'kcInputClass'"
|
|
105
|
-
name="username"
|
|
106
|
-
type="text"
|
|
107
|
-
autofocus
|
|
108
|
-
autoComplete="off"
|
|
109
|
-
[defaultValue]="login?.username || ''"
|
|
110
|
-
[attr.aria-invalid]="messagesPerField?.existsError('username')"
|
|
111
|
-
/>
|
|
112
|
-
@if (messagesPerField?.existsError('username')) {
|
|
113
|
-
<span
|
|
114
|
-
id="input-error"
|
|
115
|
-
[kcClass]="'kcInputErrorMessageClass'"
|
|
116
|
-
aria-live="polite"
|
|
117
|
-
[innerHTML]="messagesPerField.getFirstError('username') | kcSanitize: 'html'"
|
|
118
|
-
>
|
|
119
|
-
</span>
|
|
120
|
-
}
|
|
121
|
-
<!---->
|
|
122
|
-
</div>
|
|
111
|
+
</span>
|
|
123
112
|
}
|
|
113
|
+
<!---->
|
|
114
|
+
</div>
|
|
115
|
+
}
|
|
124
116
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
</div>
|
|
140
|
-
}
|
|
117
|
+
<div [kcClass]="['kcFormGroupClass', 'kcFormSettingClass']">
|
|
118
|
+
<div id="kc-form-options">
|
|
119
|
+
@if (realm.rememberMe && !usernameHidden) {
|
|
120
|
+
<div class="checkbox">
|
|
121
|
+
<label>
|
|
122
|
+
<input
|
|
123
|
+
tabindex="5"
|
|
124
|
+
id="rememberMe"
|
|
125
|
+
name="rememberMe"
|
|
126
|
+
type="checkbox"
|
|
127
|
+
[defaultChecked]="!!login?.rememberMe"
|
|
128
|
+
/>
|
|
129
|
+
{{ i18n.msgStr('rememberMe') }}
|
|
130
|
+
</label>
|
|
141
131
|
</div>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
</
|
|
159
|
-
|
|
160
|
-
</
|
|
161
|
-
</
|
|
132
|
+
}
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
<div
|
|
136
|
+
id="kc-form-buttons"
|
|
137
|
+
[kcClass]="'kcFormGroupClass'"
|
|
138
|
+
>
|
|
139
|
+
<input
|
|
140
|
+
tabindex="4"
|
|
141
|
+
name="login"
|
|
142
|
+
id="kc-login"
|
|
143
|
+
type="submit"
|
|
144
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
145
|
+
[value]="i18n.msgStr('doLogIn')"
|
|
146
|
+
/>
|
|
147
|
+
</div>
|
|
148
|
+
</form>
|
|
149
|
+
}
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { AsyncPipe, NgClass } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject,
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, signal, TemplateRef, viewChild } from '@angular/core';
|
|
3
|
+
import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
|
|
3
4
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
4
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
5
6
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
|
|
6
7
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
7
|
-
import {
|
|
8
|
+
import type { I18n } from '../../i18n';
|
|
9
|
+
import type { KcContext } from '../../KcContext';
|
|
8
10
|
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
9
11
|
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
10
12
|
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
11
13
|
import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
12
|
-
import type { I18n } from '../../i18n';
|
|
13
|
-
import type { KcContext } from '../../KcContext';
|
|
14
14
|
|
|
15
15
|
@Component({
|
|
16
|
-
selector: 'kc-
|
|
16
|
+
selector: 'kc-login-username',
|
|
17
17
|
templateUrl: './login-username.component.html',
|
|
18
18
|
standalone: true,
|
|
19
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -27,13 +27,20 @@ import type { KcContext } from '../../KcContext';
|
|
|
27
27
|
})
|
|
28
28
|
export class LoginUsernameComponent extends ComponentReference {
|
|
29
29
|
kcContext = inject<Extract<KcContext, { pageId: 'login-username.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
30
|
-
displayRequiredFields = input(false);
|
|
31
|
-
documentTitle = input<string>();
|
|
32
|
-
bodyClassName = input<string>();
|
|
33
30
|
i18n = inject<I18n>(LOGIN_I18N);
|
|
34
31
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
35
32
|
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
36
|
-
|
|
33
|
+
|
|
34
|
+
documentTitle: string | undefined;
|
|
35
|
+
bodyClassName: string | undefined;
|
|
36
|
+
|
|
37
|
+
displayRequiredFields = false;
|
|
37
38
|
displayInfo: boolean = !!this.kcContext?.realm?.password && !!this.kcContext?.realm?.registrationAllowed && !this.kcContext?.registrationDisabled;
|
|
38
39
|
displayMessage: boolean = !this.kcContext?.messagesPerField?.existsError('username');
|
|
40
|
+
|
|
41
|
+
headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
|
|
42
|
+
infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
|
|
43
|
+
socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
|
|
44
|
+
|
|
45
|
+
isLoginButtonDisabled = signal(false);
|
|
39
46
|
}
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
2
|
@let user = kcContext.user;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{{ i18n.msgStr('
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</p>
|
|
21
|
-
</ng-container>
|
|
22
|
-
<ng-container content>
|
|
23
|
-
<p class="instruction">
|
|
24
|
-
{{ i18n.msgStr('emailVerifyInstruction1', user?.email ?? '') }}
|
|
25
|
-
</p></ng-container
|
|
26
|
-
>
|
|
27
|
-
</kc-login-template>
|
|
3
|
+
|
|
4
|
+
<ng-template #headerNode>
|
|
5
|
+
{{ i18n.msgStr('emailVerifyTitle') }}
|
|
6
|
+
</ng-template>
|
|
7
|
+
<ng-template #infoNode>
|
|
8
|
+
<p class="instruction">
|
|
9
|
+
{{ i18n.msgStr('emailVerifyInstruction2') }}
|
|
10
|
+
<br />
|
|
11
|
+
<a [href]="url.loginAction">{{ i18n.msgStr('doClickHere') }}</a>
|
|
12
|
+
|
|
13
|
+
{{ i18n.msgStr('emailVerifyInstruction3') }}
|
|
14
|
+
</p>
|
|
15
|
+
</ng-template>
|
|
16
|
+
|
|
17
|
+
<p class="instruction">
|
|
18
|
+
{{ i18n.msgStr('emailVerifyInstruction1', user?.email ?? '') }}
|
|
19
|
+
</p>
|