@keycloakify/angular 0.0.1-rc.3 → 0.0.1-rc.4
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/lib/tokens/use-default-css.token.d.ts +2 -0
- package/lib/tokens/use-default-css.token.js +3 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +3 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +106 -0
- package/login/components/field-errors/field-errors.component.d.ts +2 -2
- package/login/components/field-errors/{field-errors.component.mjs → field-errors.component.js} +4 -3
- package/login/components/group-label/group-label.component.d.ts +3 -1
- package/login/components/group-label/group-label.component.js +43 -0
- package/login/components/input-field-by-type/{input-field-by-type.component.mjs → input-field-by-type.component.js} +4 -3
- package/login/components/input-tag/input-tag.component.d.ts +4 -2
- package/login/components/input-tag/input-tag.component.js +90 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +4 -2
- package/login/components/input-tag-selects/input-tag-selects.component.js +117 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +3 -1
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +32 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +3 -1
- package/login/components/password-wrapper/password-wrapper.component.js +46 -0
- package/login/components/select-tag/select-tag.component.d.ts +4 -2
- package/login/components/select-tag/select-tag.component.js +82 -0
- package/login/components/textarea-tag/textarea-tag.component.js +49 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +4 -2
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +59 -0
- package/login/containers/template.component.js +72 -0
- package/login/pages/code/code.component.d.ts +4 -2
- package/login/pages/code/code.component.js +35 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +4 -2
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +35 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +4 -2
- package/login/pages/delete-credential/delete-credential.component.js +40 -0
- package/login/pages/error/error.component.d.ts +4 -2
- package/login/pages/error/error.component.js +35 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +4 -2
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +44 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +4 -2
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +45 -0
- package/login/pages/info/info.component.d.ts +4 -8
- package/login/pages/info/info.component.js +49 -0
- package/login/pages/login/login.component.d.ts +4 -2
- package/login/pages/login/login.component.js +44 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +4 -2
- package/login/pages/login-config-totp/login-config-totp.component.js +42 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +4 -2
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +40 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +4 -2
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +40 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +4 -2
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +40 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +4 -2
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +40 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +4 -2
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +40 -0
- package/login/pages/login-otp/login-otp.component.d.ts +4 -2
- package/login/pages/login-otp/login-otp.component.js +41 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +4 -2
- package/login/pages/login-page-expired/login-page-expired.component.js +39 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +5 -5
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +84 -0
- package/login/pages/login-password/login-password.component.d.ts +4 -2
- package/login/pages/login-password/login-password.component.js +43 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +4 -2
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +43 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +4 -2
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +41 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +4 -2
- package/login/pages/login-reset-otp/login-reset-otp.component.js +40 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +4 -2
- package/login/pages/login-reset-password/login-reset-password.component.js +41 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +4 -2
- package/login/pages/login-update-password/login-update-password.component.js +43 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +4 -2
- package/login/pages/login-update-profile/login-update-profile.component.js +42 -0
- package/login/pages/login-username/login-username.component.d.ts +4 -2
- package/login/pages/login-username/login-username.component.js +43 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +4 -2
- package/login/pages/login-verify-email/login-verify-email.component.js +40 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +4 -2
- package/login/pages/login-x509-info/login-x509-info.component.js +40 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +4 -2
- package/login/pages/logout-confirm/logout-confirm.component.js +40 -0
- package/login/pages/register/register.component.d.ts +4 -2
- package/login/pages/register/register.component.js +48 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +4 -2
- package/login/pages/saml-post-form/saml-post-form.component.js +52 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +4 -2
- package/login/pages/select-authenticator/select-authenticator.component.js +41 -0
- package/login/pages/terms/terms.component.d.ts +4 -2
- package/login/pages/terms/terms.component.js +40 -0
- package/login/pages/update-email/update-email.component.d.ts +4 -2
- package/login/pages/update-email/update-email.component.js +43 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +5 -5
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +80 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +4 -2
- package/login/pages/webauthn-error/webauthn-error.component.js +49 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +5 -5
- package/login/pages/webauthn-register/webauthn-register.component.js +76 -0
- package/login/pipes/kc-sanitize.pipe.d.ts +3 -4
- package/login/pipes/kc-sanitize.pipe.js +29 -0
- package/login/pipes/{to-array.pipe.mjs → to-array.pipe.js} +1 -2
- package/login/providers/keycloakify-angular.providers.d.ts +16 -0
- package/login/providers/keycloakify-angular.providers.js +53 -0
- package/login/services/i18n.service.d.ts +6 -0
- package/{lib/services/i18n.service.mjs → login/services/i18n.service.js} +1 -1
- package/login/services/login-resource-injector.service.d.ts +1 -1
- package/login/services/login-resource-injector.service.js +68 -0
- package/login/services/user-profile-form.service.js +1019 -0
- package/{lib/providers/keycloakify-angular.providers.d.ts → login/tokens/classes.token.d.ts} +1 -24
- package/login/tokens/classes.token.js +3 -0
- package/login/tokens/i18n.token.d.ts +2 -0
- package/login/tokens/i18n.token.js +3 -0
- package/login/tokens/kc-context.token.d.ts +3 -0
- package/login/tokens/kc-context.token.js +3 -0
- package/login/tokens/make-user-confirm-password.token.d.ts +2 -0
- package/login/tokens/make-user-confirm-password.token.js +3 -0
- package/package.json +85 -104
- package/src/lib/tokens/use-default-css.token.ts +3 -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/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +6 -4
- package/src/login/components/field-errors/field-errors.component.ts +5 -4
- package/src/login/components/group-label/group-label.component.html +2 -2
- package/src/login/components/group-label/group-label.component.ts +9 -6
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +3 -2
- package/src/login/components/input-tag/input-tag.component.html +1 -1
- package/src/login/components/input-tag/input-tag.component.ts +11 -9
- package/src/login/components/input-tag-selects/input-tag-selects.component.html +1 -1
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +9 -6
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +1 -1
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +8 -5
- package/src/login/components/password-wrapper/password-wrapper.component.html +1 -1
- package/src/login/components/password-wrapper/password-wrapper.component.ts +8 -5
- package/src/login/components/select-tag/select-tag.component.html +2 -2
- package/src/login/components/select-tag/select-tag.component.ts +9 -6
- package/src/login/components/textarea-tag/textarea-tag.component.ts +3 -2
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +3 -3
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +14 -9
- package/src/login/containers/template.component.html +6 -6
- package/src/login/containers/template.component.ts +9 -7
- package/src/login/pages/code/code.component.html +4 -4
- package/src/login/pages/code/code.component.ts +11 -7
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +8 -8
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +12 -8
- package/src/login/pages/delete-credential/delete-credential.component.html +4 -4
- package/src/login/pages/delete-credential/delete-credential.component.ts +11 -7
- package/src/login/pages/error/error.component.html +2 -2
- package/src/login/pages/error/error.component.ts +11 -7
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +4 -4
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +11 -7
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +2 -2
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +11 -7
- package/src/login/pages/info/info.component.html +4 -4
- package/src/login/pages/info/info.component.ts +12 -17
- package/src/login/pages/login/login.component.html +13 -13
- package/src/login/pages/login/login.component.ts +11 -7
- package/src/login/pages/login-config-totp/login-config-totp.component.html +24 -24
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +11 -9
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +3 -3
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +11 -7
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +4 -4
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +11 -7
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +8 -8
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +11 -7
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +9 -9
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +11 -8
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +3 -3
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +11 -7
- package/src/login/pages/login-otp/login-otp.component.html +3 -3
- package/src/login/pages/login-otp/login-otp.component.ts +11 -7
- package/src/login/pages/login-page-expired/login-page-expired.component.html +5 -5
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +11 -7
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +9 -9
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +15 -15
- package/src/login/pages/login-password/login-password.component.html +5 -5
- package/src/login/pages/login-password/login-password.component.ts +11 -7
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +11 -11
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +12 -8
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +3 -3
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +12 -8
- package/src/login/pages/login-reset-otp/login-reset-otp.component.html +3 -3
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +12 -8
- package/src/login/pages/login-reset-password/login-reset-password.component.html +8 -8
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +12 -8
- package/src/login/pages/login-update-password/login-update-password.component.html +5 -5
- package/src/login/pages/login-update-password/login-update-password.component.ts +12 -8
- package/src/login/pages/login-update-profile/login-update-profile.component.html +3 -3
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +12 -8
- package/src/login/pages/login-username/login-username.component.html +10 -10
- package/src/login/pages/login-username/login-username.component.ts +11 -7
- package/src/login/pages/login-verify-email/login-verify-email.component.html +5 -5
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +12 -8
- package/src/login/pages/login-x509-info/login-x509-info.component.html +6 -6
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +12 -8
- package/src/login/pages/logout-confirm/logout-confirm.component.html +4 -4
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +12 -8
- package/src/login/pages/register/register.component.html +7 -7
- package/src/login/pages/register/register.component.ts +11 -17
- package/src/login/pages/saml-post-form/saml-post-form.component.html +4 -4
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +11 -7
- package/src/login/pages/select-authenticator/select-authenticator.component.html +3 -3
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +12 -9
- package/src/login/pages/terms/terms.component.html +4 -4
- package/src/login/pages/terms/terms.component.ts +12 -8
- package/src/login/pages/update-email/update-email.component.html +3 -3
- package/src/login/pages/update-email/update-email.component.ts +12 -8
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +8 -8
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +15 -15
- package/src/login/pages/webauthn-error/webauthn-error.component.html +3 -3
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +12 -8
- package/src/login/pages/webauthn-register/webauthn-register.component.html +3 -3
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +17 -15
- package/src/login/pipes/kc-sanitize.pipe.ts +9 -11
- package/src/login/pipes/to-array.pipe.ts +0 -1
- package/src/login/providers/keycloakify-angular.providers.ts +68 -0
- package/src/{lib → login}/services/i18n.service.ts +3 -2
- package/src/login/services/login-resource-injector.service.ts +4 -3
- package/src/login/services/user-profile-form.service.ts +5 -7
- package/src/login/tokens/classes.token.ts +6 -0
- package/src/login/tokens/i18n.token.ts +3 -0
- package/src/login/tokens/kc-context.token.ts +4 -0
- package/src/login/tokens/make-user-confirm-password.token.ts +5 -0
- package/src/tsconfig.json +6 -0
- package/lib/i18n.d.ts +0 -4
- package/lib/i18n.mjs +0 -6
- package/lib/models/index.d.ts +0 -1
- package/lib/models/index.mjs +0 -2
- package/lib/providers/keycloakify-angular.providers.mjs +0 -54
- package/lib/public-api.d.ts +0 -10
- package/lib/public-api.mjs +0 -4
- package/lib/services/i18n.service.d.ts +0 -6
- package/lib/services/index.d.ts +0 -2
- package/lib/services/index.mjs +0 -3
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +0 -105
- package/login/components/group-label/group-label.component.mjs +0 -41
- package/login/components/hello-world/hello-world.component.d.ts +0 -5
- package/login/components/hello-world/hello-world.component.mjs +0 -11
- package/login/components/index.d.ts +0 -11
- package/login/components/index.mjs +0 -12
- package/login/components/input-tag/input-tag.component.mjs +0 -89
- package/login/components/input-tag-selects/input-tag-selects.component.mjs +0 -115
- package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +0 -30
- package/login/components/password-wrapper/password-wrapper.component.mjs +0 -44
- package/login/components/select-tag/select-tag.component.mjs +0 -80
- package/login/components/textarea-tag/textarea-tag.component.mjs +0 -48
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +0 -55
- package/login/containers/template.component.mjs +0 -70
- package/login/directives/index.d.ts +0 -2
- package/login/directives/index.mjs +0 -3
- package/login/pages/code/code.component.mjs +0 -32
- package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +0 -32
- package/login/pages/delete-credential/delete-credential.component.mjs +0 -37
- package/login/pages/error/error.component.mjs +0 -32
- package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +0 -41
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +0 -42
- package/login/pages/info/info.component.mjs +0 -58
- package/login/pages/login/login.component.mjs +0 -41
- package/login/pages/login-config-totp/login-config-totp.component.mjs +0 -40
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +0 -37
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +0 -37
- package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +0 -37
- package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +0 -38
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +0 -37
- package/login/pages/login-otp/login-otp.component.mjs +0 -38
- package/login/pages/login-page-expired/login-page-expired.component.mjs +0 -36
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +0 -85
- package/login/pages/login-password/login-password.component.mjs +0 -40
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +0 -40
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +0 -38
- package/login/pages/login-reset-otp/login-reset-otp.component.mjs +0 -37
- package/login/pages/login-reset-password/login-reset-password.component.mjs +0 -38
- package/login/pages/login-update-password/login-update-password.component.mjs +0 -40
- package/login/pages/login-update-profile/login-update-profile.component.mjs +0 -39
- package/login/pages/login-username/login-username.component.mjs +0 -40
- package/login/pages/login-verify-email/login-verify-email.component.mjs +0 -37
- package/login/pages/login-x509-info/login-x509-info.component.mjs +0 -37
- package/login/pages/logout-confirm/logout-confirm.component.mjs +0 -37
- package/login/pages/register/register.component.mjs +0 -55
- package/login/pages/saml-post-form/saml-post-form.component.mjs +0 -49
- package/login/pages/select-authenticator/select-authenticator.component.mjs +0 -39
- package/login/pages/terms/terms.component.mjs +0 -37
- package/login/pages/update-email/update-email.component.mjs +0 -40
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +0 -81
- package/login/pages/webauthn-error/webauthn-error.component.mjs +0 -46
- package/login/pages/webauthn-register/webauthn-register.component.mjs +0 -76
- package/login/pipes/advanced-msg-str.pipe.d.ts +0 -8
- package/login/pipes/advanced-msg-str.pipe.mjs +0 -19
- package/login/pipes/index.d.ts +0 -6
- package/login/pipes/index.mjs +0 -7
- package/login/pipes/kc-sanitize.pipe.mjs +0 -34
- package/login/pipes/msg-str.pipe.d.ts +0 -9
- package/login/pipes/msg-str.pipe.mjs +0 -19
- package/login/services/index.d.ts +0 -2
- package/login/services/index.mjs +0 -3
- package/login/services/login-resource-injector.service.mjs +0 -68
- package/login/services/user-profile-form.service.mjs +0 -1017
- package/src/lib/i18n.ts +0 -9
- package/src/lib/models/index.ts +0 -1
- package/src/lib/providers/keycloakify-angular.providers.ts +0 -92
- package/src/lib/public-api.ts +0 -12
- package/src/lib/services/index.ts +0 -2
- package/src/login/components/hello-world/hello-world.component.css +0 -0
- package/src/login/components/hello-world/hello-world.component.html +0 -1
- package/src/login/components/hello-world/hello-world.component.ts +0 -10
- package/src/login/components/index.ts +0 -11
- package/src/login/directives/index.ts +0 -2
- package/src/login/pipes/advanced-msg-str.pipe.ts +0 -13
- package/src/login/pipes/index.ts +0 -6
- package/src/login/pipes/msg-str.pipe.ts +0 -14
- package/src/login/services/index.ts +0 -2
- /package/lib/models/{script.model.mjs → script.model.js} +0 -0
- /package/lib/services/{resource-injector.service.mjs → resource-injector.service.js} +0 -0
- /package/login/{DefaultPage.mjs → DefaultPage.js} +0 -0
- /package/login/{KcContext.mjs → KcContext.js} +0 -0
- /package/login/classes/{component-reference.class.mjs → component-reference.class.js} +0 -0
- /package/login/directives/{attributes.directive.mjs → attributes.directive.js} +0 -0
- /package/login/directives/{kc-class.directive.mjs → kc-class.directive.js} +0 -0
- /package/login/{i18n.mjs → i18n.js} +0 -0
- /package/login/pipes/{input-type.pipe.mjs → input-type.pipe.js} +0 -0
- /package/login/pipes/{to-number.pipe.mjs → to-number.pipe.js} +0 -0
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
4
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
5
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
6
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
7
5
|
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
|
|
8
|
-
import {
|
|
6
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
7
|
+
import { I18n } from '../../i18n';
|
|
8
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
9
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
10
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
11
|
+
import { KcContext } from '../../KcContext';
|
|
9
12
|
|
|
10
13
|
@Component({
|
|
11
14
|
standalone: true,
|
|
12
|
-
imports: [TemplateComponent,
|
|
15
|
+
imports: [TemplateComponent, KcSanitizePipe],
|
|
13
16
|
selector: 'kc-root',
|
|
14
17
|
templateUrl: 'error.component.html',
|
|
15
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -21,7 +24,8 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
21
24
|
]
|
|
22
25
|
})
|
|
23
26
|
export class ErrorComponent extends ComponentReference {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'error.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'error.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
25
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
26
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
27
31
|
}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
[bodyClassName]="bodyClassName()"
|
|
5
5
|
[displayMessage]="displayMessage"
|
|
6
6
|
[displayRequiredFields]="displayRequiredFields()"
|
|
7
|
-
[documentTitle]="'frontchannel-logout.title'
|
|
7
|
+
[documentTitle]="i18n.msgStr('frontchannel-logout.title')"
|
|
8
8
|
>
|
|
9
9
|
<ng-container headerNode>
|
|
10
|
-
{{ 'frontchannel-logout.title'
|
|
10
|
+
{{ i18n.msgStr('frontchannel-logout.title') }}
|
|
11
11
|
</ng-container>
|
|
12
12
|
<ng-container content>
|
|
13
|
-
<p>{{ 'frontchannel-logout.message'
|
|
13
|
+
<p>{{ i18n.msgStr('frontchannel-logout.message') }}</p>
|
|
14
14
|
<ul>
|
|
15
15
|
@for (client of logout.clients; track client.name; let idx = $index) {
|
|
16
16
|
<li>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
class="btn btn-primary"
|
|
29
29
|
[href]="logout.logoutRedirectUri"
|
|
30
30
|
>
|
|
31
|
-
{{ 'doContinue'
|
|
31
|
+
{{ i18n.msgStr('doContinue') }}
|
|
32
32
|
</a>
|
|
33
33
|
}
|
|
34
34
|
</ng-container>
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
4
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
5
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
6
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
7
5
|
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
|
|
8
|
-
import {
|
|
6
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
7
|
+
import { I18n } from '../../i18n';
|
|
8
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
9
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
10
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
11
|
+
import { KcContext } from '../../KcContext';
|
|
9
12
|
|
|
10
13
|
@Component({
|
|
11
14
|
standalone: true,
|
|
12
|
-
imports: [TemplateComponent,
|
|
15
|
+
imports: [TemplateComponent, KcSanitizePipe],
|
|
13
16
|
selector: 'kc-root',
|
|
14
17
|
templateUrl: 'frontchannel-logout.component.html',
|
|
15
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -21,9 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
21
24
|
]
|
|
22
25
|
})
|
|
23
26
|
export class FrontchannelLogoutComponent extends ComponentReference implements OnInit {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'frontchannel-logout.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'frontchannel-logout.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
25
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
26
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
27
31
|
displayRequiredFields = input(false);
|
|
28
32
|
bodyClassName = input<string>();
|
|
29
33
|
displayInfo: boolean = false;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[documentTitle]="documentTitle()"
|
|
8
8
|
>
|
|
9
9
|
<ng-container headerNode>
|
|
10
|
-
{{ 'loginIdpReviewProfileTitle'
|
|
10
|
+
{{ i18n.msgStr('loginIdpReviewProfileTitle') }}
|
|
11
11
|
</ng-container>
|
|
12
12
|
<ng-container content>
|
|
13
13
|
<form
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<input
|
|
32
32
|
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
33
33
|
type="submit"
|
|
34
|
-
value="
|
|
34
|
+
[value]="i18n.msgStr('doSubmit')"
|
|
35
35
|
[disabled]="!isFormSubmittable"
|
|
36
36
|
/>
|
|
37
37
|
</div>
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
4
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
5
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
6
4
|
import { UserProfileFormFieldsComponent } from '@keycloakify/angular/login/components/user-profile-form-fields/user-profile-form-fields.component';
|
|
7
5
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
8
6
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
9
|
-
import {
|
|
7
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
8
|
+
import { I18n } from '../../i18n';
|
|
9
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
10
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
11
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
12
|
+
import { KcContext } from '../../KcContext';
|
|
10
13
|
|
|
11
14
|
@Component({
|
|
12
15
|
standalone: true,
|
|
13
|
-
imports: [TemplateComponent,
|
|
16
|
+
imports: [TemplateComponent, UserProfileFormFieldsComponent, KcClassDirective],
|
|
14
17
|
selector: 'kc-root',
|
|
15
18
|
templateUrl: 'idp-review-user-profile.component.html',
|
|
16
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -22,12 +25,13 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
22
25
|
]
|
|
23
26
|
})
|
|
24
27
|
export class IdpReviewUserProfileComponent extends ComponentReference {
|
|
25
|
-
kcContext = inject<Extract<KcContext, { pageId: 'idp-review-user-profile.ftl' }>>(
|
|
28
|
+
kcContext = inject<Extract<KcContext, { pageId: 'idp-review-user-profile.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
26
29
|
displayRequiredFields = input(true);
|
|
27
30
|
documentTitle = input<string>();
|
|
28
31
|
bodyClassName = input<string>();
|
|
32
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
29
33
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
34
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
31
35
|
isFormSubmittable = signal(false);
|
|
32
36
|
displayInfo: boolean = false;
|
|
33
37
|
displayMessage: boolean = !this.kcContext?.messagesPerField?.existsError('global');
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[documentTitle]="documentTitle()"
|
|
13
13
|
>
|
|
14
14
|
<ng-container headerNode>
|
|
15
|
-
<span [innerHTML]="messageHeader ?? message.summary |
|
|
15
|
+
<span [innerHTML]="messageHeader ?? i18n.advancedMsgStr(message.summary) | kcSanitize: 'html'"> </span>
|
|
16
16
|
</ng-container>
|
|
17
17
|
<ng-container content>
|
|
18
18
|
<div id="kc-info-message">
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<p>
|
|
26
26
|
<a
|
|
27
27
|
[href]="pageRedirectUri"
|
|
28
|
-
[innerHTML]="'backToApplication' |
|
|
28
|
+
[innerHTML]="i18n.msgStr('backToApplication') | kcSanitize: 'html'"
|
|
29
29
|
>
|
|
30
30
|
</a>
|
|
31
31
|
</p>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<p>
|
|
35
35
|
<a
|
|
36
36
|
[href]="actionUri"
|
|
37
|
-
[innerHTML]="'proceedWithAction' |
|
|
37
|
+
[innerHTML]="i18n.msgStr('proceedWithAction') | kcSanitize: 'html'"
|
|
38
38
|
>
|
|
39
39
|
</a>
|
|
40
40
|
</p>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<p>
|
|
44
44
|
<a
|
|
45
45
|
[href]="client.baseUrl"
|
|
46
|
-
[innerHTML]="'backToApplication' |
|
|
46
|
+
[innerHTML]="i18n.msgStr('backToApplication') | kcSanitize: 'html'"
|
|
47
47
|
>
|
|
48
48
|
</a>
|
|
49
49
|
</p>
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
4
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
5
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
6
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
7
|
-
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
8
5
|
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
|
|
9
|
-
import {
|
|
6
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
7
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
8
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
9
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
10
|
+
import { I18n } from '../../i18n';
|
|
11
|
+
import { KcContext } from '../../KcContext';
|
|
10
12
|
|
|
11
13
|
@Component({
|
|
12
14
|
standalone: true,
|
|
13
|
-
imports: [TemplateComponent,
|
|
15
|
+
imports: [TemplateComponent, KcSanitizePipe],
|
|
14
16
|
selector: 'kc-root',
|
|
15
17
|
templateUrl: 'info.component.html',
|
|
16
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
19
|
providers: [
|
|
18
|
-
AdvancedMsgStrPipe,
|
|
19
|
-
MsgStrPipe,
|
|
20
|
-
KcSanitizePipe,
|
|
21
20
|
{
|
|
22
21
|
provide: ComponentReference,
|
|
23
22
|
useExisting: forwardRef(() => InfoComponent)
|
|
@@ -25,12 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
25
24
|
]
|
|
26
25
|
})
|
|
27
26
|
export class InfoComponent extends ComponentReference {
|
|
28
|
-
kcContext = inject<Extract<KcContext, { pageId: 'info.ftl' }>>(
|
|
29
|
-
|
|
30
|
-
kcSanitize = inject(KcSanitizePipe);
|
|
31
|
-
msgStr = inject(MsgStrPipe);
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'info.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
32
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
33
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
34
31
|
displayRequiredFields = input(false);
|
|
35
32
|
documentTitle = input<string>();
|
|
36
33
|
bodyClassName = input<string>();
|
|
@@ -42,9 +39,7 @@ export class InfoComponent extends ComponentReference {
|
|
|
42
39
|
if (this.kcContext.requiredActions) {
|
|
43
40
|
html += '<b>';
|
|
44
41
|
|
|
45
|
-
html += this.kcContext.requiredActions
|
|
46
|
-
.map(requiredAction => this.advancedMsgStr.transform(`requiredAction.${requiredAction}`))
|
|
47
|
-
.join(', ');
|
|
42
|
+
html += this.kcContext.requiredActions.map(requiredAction => this.i18n.advancedMsgStr(`requiredAction.${requiredAction}`)).join(', ');
|
|
48
43
|
|
|
49
44
|
html += '</b>';
|
|
50
45
|
}
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
[documentTitle]="documentTitle()"
|
|
15
15
|
>
|
|
16
16
|
<ng-container headerNode>
|
|
17
|
-
{{ 'loginAccountTitle'
|
|
17
|
+
{{ i18n.msgStr('loginAccountTitle') }}
|
|
18
18
|
</ng-container>
|
|
19
19
|
<ng-container infoNode>
|
|
20
20
|
<div id="kc-registration-container">
|
|
21
21
|
<div id="kc-registration">
|
|
22
22
|
<span>
|
|
23
|
-
{{ 'noAccount'
|
|
23
|
+
{{ i18n.msgStr('noAccount') }}
|
|
24
24
|
<a
|
|
25
25
|
tabindex="8"
|
|
26
26
|
[href]="url?.registrationUrl"
|
|
27
27
|
>
|
|
28
|
-
{{ 'doRegister'
|
|
28
|
+
{{ i18n.msgStr('doRegister') }}
|
|
29
29
|
</a>
|
|
30
30
|
</span>
|
|
31
31
|
</div>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
[kcClass]="'kcFormSocialAccountSectionClass'"
|
|
39
39
|
>
|
|
40
40
|
<hr />
|
|
41
|
-
<h2>{{ 'identity-provider-login-label'
|
|
41
|
+
<h2>{{ i18n.msgStr('identity-provider-login-label') }}</h2>
|
|
42
42
|
<ul
|
|
43
43
|
[kcClass]="{
|
|
44
44
|
kcFormSocialAccountListClass: true,
|
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
[kcClass]="'kcLabelClass'"
|
|
96
96
|
>
|
|
97
97
|
@if (!realm?.loginWithEmailAllowed) {
|
|
98
|
-
{{ 'username'
|
|
98
|
+
{{ i18n.msgStr('username') }}
|
|
99
99
|
} @else if (!realm?.registrationEmailAsUsername) {
|
|
100
|
-
{{ 'usernameOrEmail'
|
|
100
|
+
{{ i18n.msgStr('usernameOrEmail') }}
|
|
101
101
|
} @else {
|
|
102
|
-
{{ 'email'
|
|
102
|
+
{{ i18n.msgStr('email') }}
|
|
103
103
|
}
|
|
104
104
|
</label>
|
|
105
105
|
<input
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
id="input-error"
|
|
118
118
|
[kcClass]="'kcInputErrorMessageClass'"
|
|
119
119
|
aria-live="polite"
|
|
120
|
-
[innerHTML]="messagesPerField
|
|
120
|
+
[innerHTML]="messagesPerField.getFirstError('username', 'password') | kcSanitize: 'html'"
|
|
121
121
|
>
|
|
122
122
|
</span>
|
|
123
123
|
}
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
for="password"
|
|
130
130
|
[kcClass]="'kcLabelClass'"
|
|
131
131
|
>
|
|
132
|
-
{{ 'password'
|
|
132
|
+
{{ i18n.msgStr('password') }}
|
|
133
133
|
</label>
|
|
134
134
|
|
|
135
135
|
<kc-password-wrapper passwordInputId="password">
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
id="input-error"
|
|
149
149
|
[kcClass]="'kcInputErrorMessageClass'"
|
|
150
150
|
aria-live="polite"
|
|
151
|
-
[innerHTML]="messagesPerField
|
|
151
|
+
[innerHTML]="messagesPerField.getFirstError('username', 'password') | kcSanitize: 'html'"
|
|
152
152
|
>
|
|
153
153
|
</span>
|
|
154
154
|
}
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
type="checkbox"
|
|
167
167
|
[defaultChecked]="!!login?.rememberMe"
|
|
168
168
|
/>
|
|
169
|
-
{{ 'rememberMe'
|
|
169
|
+
{{ i18n.msgStr('rememberMe') }}
|
|
170
170
|
</label>
|
|
171
171
|
</div>
|
|
172
172
|
}
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
<a
|
|
179
179
|
tabindex="6"
|
|
180
180
|
[href]="url?.loginResetCredentialsUrl"
|
|
181
|
-
>{{ 'doForgotPassword'
|
|
181
|
+
>{{ i18n.msgStr('doForgotPassword') }}</a
|
|
182
182
|
>
|
|
183
183
|
</span>
|
|
184
184
|
}
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
name="login"
|
|
201
201
|
id="kc-login"
|
|
202
202
|
type="submit"
|
|
203
|
-
[value]="'doLogIn'
|
|
203
|
+
[value]="i18n.msgStr('doLogIn')"
|
|
204
204
|
[disabled]="isLoginButtonDisabled()"
|
|
205
205
|
/>
|
|
206
206
|
</div>
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { AsyncPipe, NgClass } from '@angular/common';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
5
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
3
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
6
4
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
7
5
|
import { PasswordWrapperComponent } from '@keycloakify/angular/login/components/password-wrapper/password-wrapper.component';
|
|
8
6
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
9
7
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
10
8
|
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
|
|
11
|
-
import {
|
|
9
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
10
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
11
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
12
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
13
|
+
import { I18n } from '../../i18n';
|
|
14
|
+
import { KcContext } from '../../KcContext';
|
|
12
15
|
|
|
13
16
|
@Component({
|
|
14
17
|
selector: 'kc-root',
|
|
15
18
|
templateUrl: './login.component.html',
|
|
16
19
|
standalone: true,
|
|
17
20
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
-
imports: [KcClassDirective, AsyncPipe, KcSanitizePipe, PasswordWrapperComponent, NgClass, TemplateComponent
|
|
21
|
+
imports: [KcClassDirective, AsyncPipe, KcSanitizePipe, PasswordWrapperComponent, NgClass, TemplateComponent],
|
|
19
22
|
providers: [
|
|
20
23
|
{
|
|
21
24
|
provide: ComponentReference,
|
|
@@ -24,12 +27,13 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
24
27
|
]
|
|
25
28
|
})
|
|
26
29
|
export class LoginComponent extends ComponentReference {
|
|
27
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login.ftl' }>>(
|
|
30
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
31
|
displayRequiredFields = input(false);
|
|
29
32
|
documentTitle = input<string>();
|
|
30
33
|
bodyClassName = input<string>();
|
|
34
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
31
35
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
32
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
36
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
33
37
|
isLoginButtonDisabled = signal(false);
|
|
34
38
|
displayInfo: boolean = !!this.kcContext?.realm?.password && !!this.kcContext?.realm?.registrationAllowed && !this.kcContext?.registrationDisabled;
|
|
35
39
|
displayMessage: boolean = !this.kcContext?.messagesPerField?.existsError('username', 'password');
|
|
@@ -11,54 +11,54 @@
|
|
|
11
11
|
[documentTitle]="documentTitle()"
|
|
12
12
|
>
|
|
13
13
|
<ng-container headerNode>
|
|
14
|
-
{{ 'loginTotpStep1'
|
|
14
|
+
{{ i18n.msgStr('loginTotpStep1') }}
|
|
15
15
|
</ng-container>
|
|
16
16
|
<ng-container content>
|
|
17
17
|
<ol id="kc-totp-settings">
|
|
18
18
|
<li>
|
|
19
|
-
<p>{{ 'loginTotpStep1'
|
|
19
|
+
<p>{{ i18n.msgStr('loginTotpStep1') }}</p>
|
|
20
20
|
<ul id="kc-totp-supported-apps">
|
|
21
21
|
@for (app of totp.supportedApplications; track app) {
|
|
22
|
-
<li>{{ app
|
|
22
|
+
<li>{{ i18n.advancedMsgStr(app) }}</li>
|
|
23
23
|
}
|
|
24
24
|
</ul>
|
|
25
25
|
</li>
|
|
26
26
|
@if (kcContext.mode === 'manual') {
|
|
27
27
|
<li>
|
|
28
|
-
<p>{{ 'loginTotpManualStep2'
|
|
28
|
+
<p>{{ i18n.msgStr('loginTotpManualStep2') }}</p>
|
|
29
29
|
<p>
|
|
30
30
|
<span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
|
|
31
31
|
</p>
|
|
32
32
|
<p>
|
|
33
33
|
<a
|
|
34
|
-
href="
|
|
34
|
+
[href]="totp.qrUrl"
|
|
35
35
|
id="mode-barcode"
|
|
36
36
|
>
|
|
37
|
-
{{ 'loginTotpScanBarcode'
|
|
37
|
+
{{ i18n.msgStr('loginTotpScanBarcode') }}
|
|
38
38
|
</a>
|
|
39
39
|
</p>
|
|
40
40
|
</li>
|
|
41
41
|
<li>
|
|
42
|
-
<p>{{ 'loginTotpManualStep3'
|
|
42
|
+
<p>{{ i18n.msgStr('loginTotpManualStep3') }}</p>
|
|
43
43
|
<p></p>
|
|
44
44
|
<ul>
|
|
45
45
|
<li id="kc-totp-type">
|
|
46
|
-
{{ 'loginTotpType'
|
|
47
|
-
{{ 'loginTotp.' + totp.policy.type
|
|
46
|
+
{{ i18n.msgStr('loginTotpType') }}:
|
|
47
|
+
{{ i18n.advancedMsgStr('loginTotp.' + totp.policy.type) }}
|
|
48
48
|
</li>
|
|
49
49
|
<li id="kc-totp-algorithm">
|
|
50
|
-
{{ 'loginTotpAlgorithm'
|
|
50
|
+
{{ i18n.msgStr('loginTotpAlgorithm') }}:
|
|
51
51
|
{{ totp.policy.getAlgorithmKey() }}
|
|
52
52
|
</li>
|
|
53
|
-
<li id="kc-totp-digits">{{ 'loginTotpDigits'
|
|
53
|
+
<li id="kc-totp-digits">{{ i18n.msgStr('loginTotpDigits') }}: {{ totp.policy.digits }}</li>
|
|
54
54
|
@if (totp.policy.type === 'totp') {
|
|
55
55
|
<li id="kc-totp-period">
|
|
56
|
-
{{ 'loginTotpInterval'
|
|
56
|
+
{{ i18n.msgStr('loginTotpInterval') }}:
|
|
57
57
|
{{ totp.policy.period }}
|
|
58
58
|
</li>
|
|
59
59
|
} @else {
|
|
60
60
|
<li id="kc-totp-counter">
|
|
61
|
-
{{ 'loginTotpCounter'
|
|
61
|
+
{{ i18n.msgStr('loginTotpCounter') }}:
|
|
62
62
|
{{ totp.policy.initialCounter }}
|
|
63
63
|
</li>
|
|
64
64
|
}
|
|
@@ -66,26 +66,26 @@
|
|
|
66
66
|
</li>
|
|
67
67
|
} @else {
|
|
68
68
|
<li>
|
|
69
|
-
<p>{{ 'loginTotpStep2'
|
|
69
|
+
<p>{{ i18n.msgStr('loginTotpStep2') }}</p>
|
|
70
70
|
<img
|
|
71
71
|
id="kc-totp-secret-qr-code"
|
|
72
|
-
src="
|
|
72
|
+
[src]="'data:image/png;base64, ' + totp.totpSecretQrCode"
|
|
73
73
|
alt="Figure: Barcode"
|
|
74
74
|
/>
|
|
75
75
|
<br />
|
|
76
76
|
<p>
|
|
77
77
|
<a
|
|
78
|
-
href="
|
|
78
|
+
[href]="totp.manualUrl"
|
|
79
79
|
id="mode-manual"
|
|
80
80
|
>
|
|
81
|
-
{{ 'loginTotpUnableToScan'
|
|
81
|
+
{{ i18n.msgStr('loginTotpUnableToScan') }}
|
|
82
82
|
</a>
|
|
83
83
|
</p>
|
|
84
84
|
</li>
|
|
85
85
|
}
|
|
86
86
|
<li>
|
|
87
|
-
<p>{{ 'loginTotpStep3'
|
|
88
|
-
<p>{{ 'loginTotpStep3DeviceName'
|
|
87
|
+
<p>{{ i18n.msgStr('loginTotpStep3') }}</p>
|
|
88
|
+
<p>{{ i18n.msgStr('loginTotpStep3DeviceName') }}</p>
|
|
89
89
|
</li>
|
|
90
90
|
</ol>
|
|
91
91
|
<form
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
for="totp"
|
|
101
101
|
[kcClass]="'kcLabelClass'"
|
|
102
102
|
>
|
|
103
|
-
{{ 'authenticatorCode'
|
|
103
|
+
{{ i18n.msgStr('authenticatorCode') }}
|
|
104
104
|
</label>
|
|
105
105
|
<span class="required">*</span>
|
|
106
106
|
</div>
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
for="userLabel"
|
|
143
143
|
[kcClass]="'kcLabelClass'"
|
|
144
144
|
>
|
|
145
|
-
{{ 'loginTotpDeviceName'
|
|
145
|
+
{{ i18n.msgStr('loginTotpDeviceName') }}
|
|
146
146
|
</label>
|
|
147
147
|
@if (totp.otpCredentials.length >= 1) {
|
|
148
148
|
<span class="required">*</span>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
type="submit"
|
|
177
177
|
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
178
178
|
id="saveTOTPBtn"
|
|
179
|
-
[value]="'doSubmit'
|
|
179
|
+
[value]="i18n.msgStr('doSubmit')"
|
|
180
180
|
/>
|
|
181
181
|
<button
|
|
182
182
|
type="submit"
|
|
@@ -185,14 +185,14 @@
|
|
|
185
185
|
name="cancel-aia"
|
|
186
186
|
[value]="true"
|
|
187
187
|
>
|
|
188
|
-
{{ 'doCancel'
|
|
188
|
+
{{ i18n.msgStr('doCancel') }}
|
|
189
189
|
</button>
|
|
190
190
|
} @else {
|
|
191
191
|
<input
|
|
192
192
|
type="submit"
|
|
193
193
|
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
194
194
|
id="saveTOTPBtn"
|
|
195
|
-
[value]="'doSubmit'
|
|
195
|
+
[value]="i18n.msgStr('doSubmit')"
|
|
196
196
|
/>
|
|
197
197
|
}
|
|
198
198
|
</form>
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
4
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
5
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
6
4
|
import { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions/logout-other-sessions.component';
|
|
7
5
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
8
6
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
9
|
-
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
10
7
|
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
|
|
11
|
-
import {
|
|
8
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
9
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
10
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
11
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
12
|
+
import { I18n } from '../../i18n';
|
|
13
|
+
import { KcContext } from '../../KcContext';
|
|
12
14
|
|
|
13
15
|
@Component({
|
|
14
16
|
standalone: true,
|
|
15
|
-
imports: [TemplateComponent,
|
|
17
|
+
imports: [TemplateComponent, KcClassDirective, KcSanitizePipe, LogoutOtherSessionsComponent],
|
|
16
18
|
selector: 'kc-root',
|
|
17
19
|
templateUrl: 'login-config-totp.component.html',
|
|
18
20
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -24,10 +26,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
24
26
|
]
|
|
25
27
|
})
|
|
26
28
|
export class LoginConfigTotpComponent extends ComponentReference {
|
|
27
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-config-totp.ftl' }>>(
|
|
28
|
-
|
|
29
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-config-totp.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
30
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
29
31
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
32
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
31
33
|
displayRequiredFields = input(false);
|
|
32
34
|
documentTitle = input<string>();
|
|
33
35
|
bodyClassName = input<string>();
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[documentTitle]="documentTitle()"
|
|
9
9
|
>
|
|
10
10
|
<ng-container headerNode>
|
|
11
|
-
{{ 'confirmLinkIdpTitle'
|
|
11
|
+
{{ i18n.msgStr('confirmLinkIdpTitle') }}
|
|
12
12
|
</ng-container>
|
|
13
13
|
<ng-container content>
|
|
14
14
|
<form
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
id="updateProfile"
|
|
25
25
|
value="updateProfile"
|
|
26
26
|
>
|
|
27
|
-
{{ 'confirmLinkIdpReviewProfile'
|
|
27
|
+
{{ i18n.msgStr('confirmLinkIdpReviewProfile') }}
|
|
28
28
|
</button>
|
|
29
29
|
<button
|
|
30
30
|
type="submit"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
id="linkAccount"
|
|
34
34
|
value="linkAccount"
|
|
35
35
|
>
|
|
36
|
-
{{ 'confirmLinkIdpContinue'
|
|
36
|
+
{{ i18n.msgStr('confirmLinkIdpContinue', idpAlias) }}
|
|
37
37
|
</button>
|
|
38
38
|
</div>
|
|
39
39
|
</form>
|