@keycloakify/angular 0.0.1-rc.3 → 0.0.1-rc.5
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, 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
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
8
|
-
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';
|
|
9
12
|
|
|
10
13
|
@Component({
|
|
11
14
|
standalone: true,
|
|
12
|
-
imports: [TemplateComponent,
|
|
15
|
+
imports: [TemplateComponent, KcClassDirective],
|
|
13
16
|
selector: 'kc-root',
|
|
14
17
|
templateUrl: 'login-idp-link-confirm.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 LoginIdpLinkConfirmComponent extends ComponentReference {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-confirm.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-confirm.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
|
documentTitle = input<string>();
|
|
29
33
|
bodyClassName = input<string>();
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[documentTitle]="documentTitle()"
|
|
10
10
|
>
|
|
11
11
|
<ng-container headerNode>
|
|
12
|
-
{{ 'confirmOverrideIdpTitle'
|
|
12
|
+
{{ i18n.msgStr('confirmOverrideIdpTitle') }}
|
|
13
13
|
</ng-container>
|
|
14
14
|
<ng-container content>
|
|
15
15
|
<form
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
[action]="url.loginAction"
|
|
18
18
|
method="post"
|
|
19
19
|
>
|
|
20
|
-
{{ 'pageExpiredMsg1'
|
|
20
|
+
{{ i18n.msgStr('pageExpiredMsg1') }}
|
|
21
21
|
<a
|
|
22
22
|
id="loginRestartLink"
|
|
23
23
|
[href]="url.loginRestartFlowUrl"
|
|
24
24
|
>
|
|
25
|
-
{{ 'doClickHere'
|
|
25
|
+
{{ i18n.msgStr('doClickHere') }}
|
|
26
26
|
</a>
|
|
27
27
|
<br />
|
|
28
28
|
<br />
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
id="confirmOverride"
|
|
34
34
|
value="confirmOverride"
|
|
35
35
|
>
|
|
36
|
-
{{ 'confirmOverrideIdpContinue'
|
|
36
|
+
{{ i18n.msgStr('confirmOverrideIdpContinue', idpDisplayName) }}
|
|
37
37
|
</button>
|
|
38
38
|
</form>
|
|
39
39
|
</ng-container>
|
package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
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
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
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: [KcClassDirective, TemplateComponent
|
|
15
|
+
imports: [KcClassDirective, TemplateComponent],
|
|
13
16
|
selector: 'kc-root',
|
|
14
17
|
templateUrl: 'login-idp-link-confirm-override.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 LoginIdpLinkConfirmOverrideComponent extends ComponentReference {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-confirm-override.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-confirm-override.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
|
documentTitle = input<string>();
|
|
29
33
|
bodyClassName = input<string>();
|
|
@@ -10,30 +10,30 @@
|
|
|
10
10
|
[documentTitle]="documentTitle()"
|
|
11
11
|
>
|
|
12
12
|
<ng-container headerNode>
|
|
13
|
-
{{ 'emailLinkIdpTitle'
|
|
13
|
+
{{ i18n.msgStr('emailLinkIdpTitle', idpAlias) }}
|
|
14
14
|
</ng-container>
|
|
15
15
|
<ng-container content>
|
|
16
16
|
<p
|
|
17
17
|
id="instruction1"
|
|
18
18
|
class="instruction"
|
|
19
19
|
>
|
|
20
|
-
{{ 'emailLinkIdp1'
|
|
20
|
+
{{ i18n.msgStr('emailLinkIdp1', idpAlias, brokerContext.username, realm.displayName) }}
|
|
21
21
|
</p>
|
|
22
22
|
<p
|
|
23
23
|
id="instruction2"
|
|
24
24
|
class="instruction"
|
|
25
25
|
>
|
|
26
|
-
{{ 'emailLinkIdp2'
|
|
27
|
-
<a [href]="url.loginAction">{{ 'doClickHere'
|
|
28
|
-
{{ 'emailLinkIdp3'
|
|
26
|
+
{{ i18n.msgStr('emailLinkIdp2') }}
|
|
27
|
+
<a [href]="url.loginAction">{{ i18n.msgStr('doClickHere') }}</a>
|
|
28
|
+
{{ i18n.msgStr('emailLinkIdp3') }}
|
|
29
29
|
</p>
|
|
30
30
|
<p
|
|
31
31
|
id="instruction3"
|
|
32
32
|
class="instruction"
|
|
33
33
|
>
|
|
34
|
-
{{ 'emailLinkIdp4'
|
|
35
|
-
<a [href]="url.loginAction">{{ 'doClickHere'
|
|
36
|
-
{{ 'emailLinkIdp5'
|
|
34
|
+
{{ i18n.msgStr('emailLinkIdp4') }}
|
|
35
|
+
<a [href]="url.loginAction">{{ i18n.msgStr('doClickHere') }}</a>
|
|
36
|
+
{{ i18n.msgStr('emailLinkIdp5') }}
|
|
37
37
|
</p>
|
|
38
38
|
</ng-container>
|
|
39
39
|
</kc-login-template>
|
|
@@ -1,15 +1,18 @@
|
|
|
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
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
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, KcClassDirective],
|
|
13
16
|
selector: 'kc-root',
|
|
14
17
|
templateUrl: 'login-idp-link-email.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 LoginIdpLinkEmailComponent extends ComponentReference {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-email.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-email.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
|
documentTitle = input<string>();
|
|
29
33
|
bodyClassName = input<string>();
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/>
|
|
17
17
|
}
|
|
18
18
|
<p>
|
|
19
|
-
{{ 'oauthGrantTitle'
|
|
19
|
+
{{ i18n.msgStr('oauthGrantTitle', client.name ? i18n.advancedMsgStr(client.name) : client.clientId) }}
|
|
20
20
|
</p>
|
|
21
21
|
</ng-container>
|
|
22
22
|
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
id="kc-oauth"
|
|
26
26
|
class="content-area"
|
|
27
27
|
>
|
|
28
|
-
<h3>{{ 'oauthGrantRequest'
|
|
28
|
+
<h3>{{ i18n.msgStr('oauthGrantRequest') }}</h3>
|
|
29
29
|
<ul>
|
|
30
30
|
@for (clientScope of oauth.clientScopesRequested; track clientScope) {
|
|
31
31
|
<li>
|
|
32
32
|
<span>
|
|
33
|
-
{{ clientScope.consentScreenText
|
|
33
|
+
{{ i18n.advancedMsgStr(clientScope.consentScreenText) }}
|
|
34
34
|
@if (clientScope.dynamicScopeParameter) {
|
|
35
35
|
: <b>{{ clientScope.dynamicScopeParameter }}</b>
|
|
36
36
|
}
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
@if (client.attributes['policyUri'] || client.attributes['tosUri']) {
|
|
43
43
|
<h3>
|
|
44
44
|
@if (client.name) {
|
|
45
|
-
{{ 'oauthGrantInformation'
|
|
45
|
+
{{ i18n.msgStr('oauthGrantInformation', i18n.advancedMsgStr(client.name)) }}
|
|
46
46
|
} @else {
|
|
47
|
-
{{ 'oauthGrantInformation'
|
|
47
|
+
{{ i18n.msgStr('oauthGrantInformation', client.clientId) }}
|
|
48
48
|
}
|
|
49
49
|
@if (client.attributes['policyUri']) {
|
|
50
|
-
{{ 'oauthGrantReview'
|
|
50
|
+
{{ i18n.msgStr('oauthGrantReview') }}
|
|
51
51
|
<a
|
|
52
52
|
[href]="client.attributes['policyUri']"
|
|
53
53
|
target="_blank"
|
|
54
54
|
>
|
|
55
|
-
{{ 'oauthGrantPolicy'
|
|
55
|
+
{{ i18n.msgStr('oauthGrantPolicy') }}
|
|
56
56
|
</a>
|
|
57
57
|
}
|
|
58
58
|
</h3>
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
<input
|
|
78
78
|
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
79
79
|
type="submit"
|
|
80
|
-
[value]="'doYes'
|
|
80
|
+
[value]="i18n.msgStr('doYes')"
|
|
81
81
|
/>
|
|
82
82
|
<input
|
|
83
83
|
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
84
84
|
type="submit"
|
|
85
|
-
[value]="'doNo'
|
|
85
|
+
[value]="i18n.msgStr('doNo')"
|
|
86
86
|
/>
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
@@ -1,16 +1,18 @@
|
|
|
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
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
8
|
-
import {
|
|
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: [KcClassDirective, TemplateComponent
|
|
15
|
+
imports: [KcClassDirective, TemplateComponent],
|
|
14
16
|
selector: 'kc-root',
|
|
15
17
|
templateUrl: 'login-oauth-grant.component.html',
|
|
16
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -22,9 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
22
24
|
]
|
|
23
25
|
})
|
|
24
26
|
export class LoginOauthGrantComponent extends ComponentReference {
|
|
25
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-oauth-grant.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-oauth-grant.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
26
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
27
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
28
31
|
displayRequiredFields = input(false);
|
|
29
32
|
documentTitle = input<string>();
|
|
30
33
|
bodyClassName = input<string>('oauth');
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[documentTitle]="documentTitle()"
|
|
8
8
|
>
|
|
9
9
|
<ng-container headerNode>
|
|
10
|
-
{{ 'oauth2DeviceVerificationTitle'
|
|
10
|
+
{{ i18n.msgStr('oauth2DeviceVerificationTitle') }}
|
|
11
11
|
</ng-container>
|
|
12
12
|
<ng-container content>
|
|
13
13
|
<form
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
for="device-user-code"
|
|
23
23
|
[kcClass]="'kcLabelClass'"
|
|
24
24
|
>
|
|
25
|
-
{{ 'verifyOAuth2DeviceUserCode'
|
|
25
|
+
{{ i18n.msgStr('verifyOAuth2DeviceUserCode') }}
|
|
26
26
|
</label>
|
|
27
27
|
</div>
|
|
28
28
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<input
|
|
54
54
|
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
55
55
|
type="submit"
|
|
56
|
-
value="
|
|
56
|
+
[value]="i18n.msgStr('doSubmit')"
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
@@ -1,15 +1,18 @@
|
|
|
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
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
8
|
-
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';
|
|
9
12
|
|
|
10
13
|
@Component({
|
|
11
14
|
standalone: true,
|
|
12
|
-
imports: [TemplateComponent,
|
|
15
|
+
imports: [TemplateComponent, KcClassDirective],
|
|
13
16
|
selector: 'kc-root',
|
|
14
17
|
templateUrl: 'login-oauth2-device-verify-user-code.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 LoginOauth2DeviceVerifyUserCodeComponent extends ComponentReference {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-oauth2-device-verify-user-code.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-oauth2-device-verify-user-code.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
|
documentTitle = input<string>();
|
|
29
33
|
bodyClassName = input<string>();
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[documentTitle]="documentTitle()"
|
|
10
10
|
>
|
|
11
11
|
<ng-container headerNode>
|
|
12
|
-
{{ 'doLogIn'
|
|
12
|
+
{{ i18n.msgStr('doLogIn') }}
|
|
13
13
|
</ng-container>
|
|
14
14
|
<ng-container content>
|
|
15
15
|
<form
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
for="otp"
|
|
58
58
|
[kcClass]="'kcLabelClass'"
|
|
59
59
|
>
|
|
60
|
-
{{ 'loginOtpOneTime'
|
|
60
|
+
{{ i18n.msgStr('loginOtpOneTime') }}
|
|
61
61
|
</label>
|
|
62
62
|
</div>
|
|
63
63
|
<div [kcClass]="'kcInputWrapperClass'">
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
name="login"
|
|
95
95
|
id="kc-login"
|
|
96
96
|
type="submit"
|
|
97
|
-
value="
|
|
97
|
+
[value]="i18n.msgStr('doLogIn')"
|
|
98
98
|
/>
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
@@ -1,16 +1,19 @@
|
|
|
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
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
8
6
|
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
|
|
9
|
-
import {
|
|
7
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
8
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
9
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
10
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
11
|
+
import { I18n } from '../../i18n';
|
|
12
|
+
import { KcContext } from '../../KcContext';
|
|
10
13
|
|
|
11
14
|
@Component({
|
|
12
15
|
standalone: true,
|
|
13
|
-
imports: [TemplateComponent, KcClassDirective,
|
|
16
|
+
imports: [TemplateComponent, KcClassDirective, KcSanitizePipe],
|
|
14
17
|
selector: 'kc-root',
|
|
15
18
|
templateUrl: 'login-otp.component.html',
|
|
16
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -22,9 +25,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
22
25
|
]
|
|
23
26
|
})
|
|
24
27
|
export class LoginOtpComponent extends ComponentReference {
|
|
25
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-otp.ftl' }>>(
|
|
28
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-otp.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
29
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
26
30
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
27
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
31
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
28
32
|
displayRequiredFields = input(false);
|
|
29
33
|
documentTitle = input<string>();
|
|
30
34
|
bodyClassName = input<string>();
|
|
@@ -7,27 +7,27 @@
|
|
|
7
7
|
[documentTitle]="documentTitle()"
|
|
8
8
|
>
|
|
9
9
|
<ng-container headerNode>
|
|
10
|
-
{{ 'pageExpiredTitle'
|
|
10
|
+
{{ i18n.msgStr('pageExpiredTitle') }}
|
|
11
11
|
</ng-container>
|
|
12
12
|
<ng-container content>
|
|
13
13
|
<p
|
|
14
14
|
id="instruction1"
|
|
15
15
|
class="instruction"
|
|
16
16
|
>
|
|
17
|
-
{{ 'pageExpiredMsg1'
|
|
17
|
+
{{ i18n.msgStr('pageExpiredMsg1') }}
|
|
18
18
|
<a
|
|
19
19
|
id="loginRestartLink"
|
|
20
20
|
[href]="url.loginRestartFlowUrl"
|
|
21
21
|
>
|
|
22
|
-
{{ 'doClickHere'
|
|
22
|
+
{{ i18n.msgStr('doClickHere') }}
|
|
23
23
|
</a>
|
|
24
24
|
.<br />
|
|
25
|
-
{{ 'pageExpiredMsg2'
|
|
25
|
+
{{ i18n.msgStr('pageExpiredMsg2') }}
|
|
26
26
|
<a
|
|
27
27
|
id="loginContinueLink"
|
|
28
28
|
[href]="url.loginAction"
|
|
29
29
|
>
|
|
30
|
-
{{ 'doClickHere'
|
|
30
|
+
{{ i18n.msgStr('doClickHere') }}
|
|
31
31
|
</a>
|
|
32
32
|
.
|
|
33
33
|
</p>
|
|
@@ -1,14 +1,17 @@
|
|
|
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 {
|
|
5
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
6
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
7
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
8
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
9
|
+
import { I18n } from '../../i18n';
|
|
10
|
+
import { KcContext } from '../../KcContext';
|
|
8
11
|
|
|
9
12
|
@Component({
|
|
10
13
|
standalone: true,
|
|
11
|
-
imports: [TemplateComponent
|
|
14
|
+
imports: [TemplateComponent],
|
|
12
15
|
selector: 'kc-root',
|
|
13
16
|
templateUrl: 'login-page-expired.component.html',
|
|
14
17
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -20,9 +23,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
20
23
|
]
|
|
21
24
|
})
|
|
22
25
|
export class LoginPageExpiredComponent extends ComponentReference {
|
|
23
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-page-expired.ftl' }>>(
|
|
26
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-page-expired.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
27
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
24
28
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
25
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
29
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
26
30
|
displayRequiredFields = input(false);
|
|
27
31
|
documentTitle = input<string>();
|
|
28
32
|
bodyClassName = input<string>();
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
@let registrationDisabled = kcContext.registrationDisabled;
|
|
9
9
|
<kc-login-template [displayInfo]="displayInfo">
|
|
10
10
|
<ng-container headerNode>
|
|
11
|
-
{{ 'passkey-login-title'
|
|
11
|
+
{{ i18n.msgStr('passkey-login-title') }}
|
|
12
12
|
</ng-container>
|
|
13
13
|
<ng-container infoNode>
|
|
14
14
|
@if (realm.registrationAllowed && !registrationDisabled) {
|
|
15
15
|
<div id="kc-registration">
|
|
16
16
|
<span>
|
|
17
|
-
{{ 'noAccount'
|
|
17
|
+
{{ i18n.msgStr('noAccount') }}
|
|
18
18
|
<a
|
|
19
19
|
tabIndex="6"
|
|
20
20
|
[href]="url.registrationUrl"
|
|
21
21
|
>
|
|
22
|
-
{{ 'doRegister'
|
|
22
|
+
{{ i18n.msgStr('doRegister') }}
|
|
23
23
|
</a>
|
|
24
24
|
</span>
|
|
25
25
|
</div>
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
@if (shouldDisplayAuthenticators) {
|
|
87
87
|
@if (authenticators.authenticators.length > 1) {
|
|
88
88
|
<p [kcClass]="'kcSelectAuthListItemTitle'">
|
|
89
|
-
{{ 'passkey-available-authenticators'
|
|
89
|
+
{{ i18n.msgStr('passkey-available-authenticators') }}
|
|
90
90
|
</p>
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
[id]="'kc-webauthn-authenticator-label-' + i"
|
|
107
107
|
[kcClass]="'kcSelectAuthListItemHeadingClass'"
|
|
108
108
|
>
|
|
109
|
-
{{ authenticator.label
|
|
109
|
+
{{ i18n.advancedMsgStr(authenticator.label) }}
|
|
110
110
|
</div>
|
|
111
111
|
@if (
|
|
112
112
|
authenticator.transports !== undefined &&
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
let i = $index
|
|
124
124
|
) {
|
|
125
125
|
<span>
|
|
126
|
-
{{ nameProperty
|
|
126
|
+
{{ i18n.advancedMsgStr(nameProperty) }}
|
|
127
127
|
</span>
|
|
128
128
|
@if (i !== authenticator.transports.displayNameProperties.length - 1) {
|
|
129
129
|
<span>, </span>
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
</div>
|
|
133
133
|
<div [kcClass]="'kcSelectAuthListItemDescriptionClass'">
|
|
134
134
|
<span [id]="'kc-webauthn-authenticator-createdlabel-' + i">
|
|
135
|
-
{{ 'passkey-createdAt-label'
|
|
135
|
+
{{ i18n.msgStr('passkey-createdAt-label') }}
|
|
136
136
|
</span>
|
|
137
137
|
<span [id]="'kc-webauthn-authenticator-created-' + i">
|
|
138
138
|
{{ authenticator.createdAt }}
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
for="username"
|
|
161
161
|
[kcClass]="'kcLabelClass'"
|
|
162
162
|
>
|
|
163
|
-
{{ 'passkey-autofill-select'
|
|
163
|
+
{{ i18n.msgStr('passkey-autofill-select') }}
|
|
164
164
|
</label>
|
|
165
165
|
<input
|
|
166
166
|
tabIndex="1"
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
id="authButtonId"
|
|
195
195
|
type="button"
|
|
196
196
|
autoFocus
|
|
197
|
-
value="
|
|
197
|
+
[value]="i18n.msgStr('passkey-doAuthenticate')"
|
|
198
198
|
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
199
199
|
/>
|
|
200
200
|
</div>
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
5
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
6
|
-
import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
2
|
+
import { Script } from '@keycloakify/angular/lib/models/script.model';
|
|
3
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
7
4
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
8
5
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
9
6
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
7
|
+
import { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector.service';
|
|
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, getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
12
|
+
import { I18n } from '../../i18n';
|
|
13
|
+
import { KcContext } from '../../KcContext';
|
|
13
14
|
|
|
14
15
|
@Component({
|
|
15
16
|
standalone: true,
|
|
16
|
-
imports: [TemplateComponent,
|
|
17
|
+
imports: [TemplateComponent, KcClassDirective],
|
|
17
18
|
selector: 'kc-root',
|
|
18
19
|
templateUrl: 'login-passkeys-conditional-authenticate.component.html',
|
|
19
20
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
21
|
providers: [
|
|
21
|
-
MsgStrPipe,
|
|
22
22
|
{
|
|
23
23
|
provide: ComponentReference,
|
|
24
24
|
useExisting: forwardRef(() => LoginPasskeysConditionalAuthenticateComponent)
|
|
@@ -26,11 +26,11 @@ import { LoginResourceInjectorService } from '@keycloakify/angular/login/service
|
|
|
26
26
|
]
|
|
27
27
|
})
|
|
28
28
|
export class LoginPasskeysConditionalAuthenticateComponent extends ComponentReference {
|
|
29
|
-
kcContext = inject<Extract<KcContext, { pageId: 'login-passkeys-conditional-authenticate.ftl' }>>(
|
|
29
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-passkeys-conditional-authenticate.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
30
30
|
loginResourceInjectorService = inject(LoginResourceInjectorService);
|
|
31
|
-
|
|
31
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
32
32
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
33
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
33
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
34
34
|
displayInfo: boolean = true;
|
|
35
35
|
|
|
36
36
|
authButtonId = 'authenticateWebAuthnButton';
|
|
@@ -65,13 +65,13 @@ export class LoginPasskeysConditionalAuthenticateComponent extends ComponentRefe
|
|
|
65
65
|
authButton.addEventListener("click", () => {
|
|
66
66
|
authenticateByWebAuthn({
|
|
67
67
|
...input,
|
|
68
|
-
errmsg : ${JSON.stringify(this.msgStr
|
|
68
|
+
errmsg : ${JSON.stringify(this.i18n.msgStr('webauthn-unsupported-browser-text'))}
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
initAuthenticate({
|
|
73
73
|
...input,
|
|
74
|
-
errmsg : ${JSON.stringify(this.msgStr
|
|
74
|
+
errmsg : ${JSON.stringify(this.i18n.msgStr('passkey-unsupported-browser-text'))}
|
|
75
75
|
});
|
|
76
76
|
`
|
|
77
77
|
}
|