@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,11 +1,13 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output, Signal } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { Attribute } from 'keycloakify/login/KcContext';
|
|
4
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
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 { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
7
|
-
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
8
5
|
import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
6
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
7
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
8
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
9
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
10
|
+
import { I18n } from '../../i18n';
|
|
9
11
|
|
|
10
12
|
@Component({
|
|
11
13
|
standalone: true,
|
|
@@ -16,7 +18,7 @@ import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/
|
|
|
16
18
|
}
|
|
17
19
|
`
|
|
18
20
|
],
|
|
19
|
-
imports: [KcClassDirective
|
|
21
|
+
imports: [KcClassDirective],
|
|
20
22
|
selector: 'kc-input-tag-selects',
|
|
21
23
|
templateUrl: 'input-tag-selects.component.html',
|
|
22
24
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -28,12 +30,13 @@ import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/
|
|
|
28
30
|
]
|
|
29
31
|
})
|
|
30
32
|
export class InputTagSelectsComponent extends ComponentReference {
|
|
33
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
31
34
|
attribute = input<Attribute>();
|
|
32
35
|
valueOrValues = input<string | string[]>();
|
|
33
36
|
dispatchFormAction = output<FormAction>();
|
|
34
37
|
displayableErrors = input<FormFieldError[]>();
|
|
35
38
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
36
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
39
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
37
40
|
|
|
38
41
|
context: Signal<{
|
|
39
42
|
inputType: 'radio' | 'checkbox';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
4
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
5
4
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
6
|
-
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 { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
8
|
+
import { I18n } from '../../i18n';
|
|
7
9
|
|
|
8
10
|
@Component({
|
|
9
11
|
selector: 'kc-logout-other-sessions',
|
|
@@ -15,7 +17,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
15
17
|
`
|
|
16
18
|
],
|
|
17
19
|
standalone: true,
|
|
18
|
-
imports: [KcClassDirective
|
|
20
|
+
imports: [KcClassDirective],
|
|
19
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
22
|
templateUrl: './logout-other-sessions.component.html',
|
|
21
23
|
providers: [
|
|
@@ -26,6 +28,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
26
28
|
]
|
|
27
29
|
})
|
|
28
30
|
export class LogoutOtherSessionsComponent extends ComponentReference {
|
|
31
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
29
32
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
33
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
31
34
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
[kcClass]="'kcFormPasswordVisibilityButtonClass'"
|
|
6
|
-
[attr.aria-label]="(isPasswordRevealed() ? 'hidePassword' : 'showPassword')
|
|
6
|
+
[attr.aria-label]="i18n.msgStr(isPasswordRevealed() ? 'hidePassword' : 'showPassword')"
|
|
7
7
|
[attr.aria-controls]="passwordInputId()"
|
|
8
8
|
(click)="togglePasswordVisibility()"
|
|
9
9
|
>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AsyncPipe } from '@angular/common';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, Renderer2, signal, WritableSignal } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
3
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
5
4
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
6
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
7
|
-
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 { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
9
|
+
import { I18n } from '../../i18n';
|
|
8
10
|
|
|
9
11
|
@Component({
|
|
10
12
|
selector: 'kc-password-wrapper',
|
|
@@ -17,7 +19,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
17
19
|
],
|
|
18
20
|
standalone: true,
|
|
19
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
-
imports: [KcClassDirective, AsyncPipe
|
|
22
|
+
imports: [KcClassDirective, AsyncPipe],
|
|
21
23
|
templateUrl: './password-wrapper.component.html',
|
|
22
24
|
providers: [
|
|
23
25
|
{
|
|
@@ -27,10 +29,11 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
27
29
|
]
|
|
28
30
|
})
|
|
29
31
|
export class PasswordWrapperComponent extends ComponentReference {
|
|
32
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
30
33
|
private renderer = inject(Renderer2);
|
|
31
34
|
passwordInputId = input.required<string>();
|
|
32
35
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
33
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
36
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
34
37
|
|
|
35
38
|
isPasswordRevealed: WritableSignal<boolean> = signal(false);
|
|
36
39
|
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
@for (option of options(); track option) {
|
|
20
20
|
<option [value]="option">
|
|
21
21
|
@if (!!attr.annotations.inputOptionLabels) {
|
|
22
|
-
{{ attr.annotations.inputOptionLabels[option] ?? option
|
|
22
|
+
{{ i18n.advancedMsgStr(attr.annotations.inputOptionLabels[option] ?? option) }}
|
|
23
23
|
} @else if (!!attr.annotations.inputOptionLabelsI18nPrefix) {
|
|
24
|
-
{{ attr.annotations.inputOptionLabelsI18nPrefix + '.' + option
|
|
24
|
+
{{ i18n.advancedMsgStr(attr.annotations.inputOptionLabelsI18nPrefix + '.' + option) }}
|
|
25
25
|
} @else {
|
|
26
26
|
{{ option }}
|
|
27
27
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { Attribute } from 'keycloakify/login/KcContext';
|
|
4
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
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 { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
7
|
-
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
8
5
|
import { ToNumberPipe } from '@keycloakify/angular/login/pipes/to-number.pipe';
|
|
9
6
|
import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
7
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
8
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
9
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
10
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
11
|
+
import { I18n } from '../../i18n';
|
|
10
12
|
|
|
11
13
|
@Component({
|
|
12
14
|
standalone: true,
|
|
@@ -17,7 +19,7 @@ import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/
|
|
|
17
19
|
}
|
|
18
20
|
`
|
|
19
21
|
],
|
|
20
|
-
imports: [KcClassDirective, ToNumberPipe
|
|
22
|
+
imports: [KcClassDirective, ToNumberPipe],
|
|
21
23
|
selector: 'kc-select-tag',
|
|
22
24
|
templateUrl: 'select-tag.component.html',
|
|
23
25
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -29,12 +31,13 @@ import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/
|
|
|
29
31
|
]
|
|
30
32
|
})
|
|
31
33
|
export class SelectTagComponent extends ComponentReference {
|
|
34
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
32
35
|
attribute = input<Attribute>();
|
|
33
36
|
valueOrValues = input<string | string[]>();
|
|
34
37
|
displayableErrors = input<FormFieldError[]>();
|
|
35
38
|
dispatchFormAction = output<FormAction>();
|
|
36
39
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
37
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
40
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
38
41
|
|
|
39
42
|
isMultiple = computed(() => {
|
|
40
43
|
return this.attribute()?.annotations?.inputType === 'multiselect';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, output } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
3
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
3
4
|
import { Attribute } from 'keycloakify/login/KcContext';
|
|
4
5
|
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
5
6
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
@@ -33,7 +34,7 @@ export class TextareaTagComponent extends ComponentReference {
|
|
|
33
34
|
displayableErrors = input<FormFieldError[]>();
|
|
34
35
|
dispatchFormAction = output<FormAction>();
|
|
35
36
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
36
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
37
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
37
38
|
|
|
38
39
|
onChange(event: Event) {
|
|
39
40
|
this.dispatchFormAction.emit({
|
package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
[for]="fieldState.attribute.name"
|
|
28
28
|
[kcClass]="'kcLabelClass'"
|
|
29
29
|
>
|
|
30
|
-
{{ fieldState.attribute.displayName ?? ''
|
|
30
|
+
{{ i18n.advancedMsgStr(fieldState.attribute.displayName ?? '') }}
|
|
31
31
|
@if (fieldState.attribute.required) {
|
|
32
32
|
*
|
|
33
33
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
[id]="'form-help-text-before-' + fieldState.attribute.name"
|
|
42
42
|
aria-live="polite"
|
|
43
43
|
>
|
|
44
|
-
{{ fieldState.attribute.annotations.inputHelperTextBefore
|
|
44
|
+
{{ i18n.advancedMsgStr(fieldState.attribute.annotations.inputHelperTextBefore) }}
|
|
45
45
|
</div>
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
[id]="'form-help-text-after-' + fieldState.attribute.name"
|
|
65
65
|
aria-live="polite"
|
|
66
66
|
>
|
|
67
|
-
{{ fieldState.attribute.annotations.inputHelperTextAfter
|
|
67
|
+
{{ i18n.advancedMsgStr(fieldState.attribute.annotations.inputHelperTextAfter) }}
|
|
68
68
|
</div>
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, ContentChild, effect, forwardRef, inject, output, TemplateRef } 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
|
-
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
8
|
-
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
9
|
-
import { FormAction, UserProfileFormService } from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
10
5
|
import { FieldErrorsComponent } from '@keycloakify/angular/login/components/field-errors/field-errors.component';
|
|
11
6
|
import { GroupLabelComponent } from '@keycloakify/angular/login/components/group-label/group-label.component';
|
|
12
7
|
import { InputFieldByTypeComponent } from '@keycloakify/angular/login/components/input-field-by-type/input-field-by-type.component';
|
|
8
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
9
|
+
import { FormAction, UserProfileFormService } from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
10
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
11
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
12
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
13
|
+
import { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password.token';
|
|
14
|
+
import { KcContext } from 'keycloakify/login/KcContext';
|
|
15
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
16
|
+
import { I18n } from '../../i18n';
|
|
13
17
|
|
|
14
18
|
@Component({
|
|
15
19
|
standalone: true,
|
|
@@ -20,7 +24,7 @@ import { InputFieldByTypeComponent } from '@keycloakify/angular/login/components
|
|
|
20
24
|
}
|
|
21
25
|
`
|
|
22
26
|
],
|
|
23
|
-
imports: [KcClassDirective, FieldErrorsComponent, InputFieldByTypeComponent, GroupLabelComponent, NgTemplateOutlet
|
|
27
|
+
imports: [KcClassDirective, FieldErrorsComponent, InputFieldByTypeComponent, GroupLabelComponent, NgTemplateOutlet],
|
|
24
28
|
selector: 'kc-user-profile-form-fields',
|
|
25
29
|
templateUrl: 'user-profile-form-fields.component.html',
|
|
26
30
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -33,11 +37,12 @@ import { InputFieldByTypeComponent } from '@keycloakify/angular/login/components
|
|
|
33
37
|
]
|
|
34
38
|
})
|
|
35
39
|
export class UserProfileFormFieldsComponent extends ComponentReference {
|
|
36
|
-
|
|
40
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
41
|
+
kcContext = inject<KcContext>(KC_LOGIN_CONTEXT);
|
|
37
42
|
userProfileFormService = inject(UserProfileFormService);
|
|
38
43
|
doMakeUserConfirmPassword = inject(DO_MAKE_USER_CONFIRM_PASSWORD);
|
|
39
44
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
40
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
45
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
41
46
|
|
|
42
47
|
onIsFormSubmittable = output<boolean>();
|
|
43
48
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
id="kc-header-wrapper"
|
|
16
16
|
[kcClass]="'kcHeaderWrapperClass'"
|
|
17
17
|
>
|
|
18
|
-
<div [innerHTML]="realm?.displayNameHtml | kcSanitize: 'html'"></div>
|
|
18
|
+
<div [innerHTML]="realm?.displayNameHtml ?? '' | kcSanitize: 'html'"></div>
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<button
|
|
40
40
|
tabindex="1"
|
|
41
41
|
id="kc-current-locale-link"
|
|
42
|
-
[attr.aria-label]="'languages'
|
|
42
|
+
[attr.aria-label]="i18n.msgStr('languages')"
|
|
43
43
|
aria-haspopup="true"
|
|
44
44
|
aria-expanded="false"
|
|
45
45
|
aria-controls="language-switch1"
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
<a
|
|
92
92
|
id="reset-login"
|
|
93
93
|
[href]="url?.loginRestartFlowUrl"
|
|
94
|
-
[attr.aria-label]="'restartLoginTooltip'
|
|
94
|
+
[attr.aria-label]="i18n.msgStr('restartLoginTooltip')"
|
|
95
95
|
>
|
|
96
96
|
<div class="kc-login-tooltip">
|
|
97
97
|
<i [kcClass]="'kcResetFlowIcon'"></i>
|
|
98
98
|
<span class="kc-tooltip-text">
|
|
99
|
-
{{ 'restartLoginTooltip'
|
|
99
|
+
{{ i18n.msgStr('restartLoginTooltip') }}
|
|
100
100
|
</span>
|
|
101
101
|
</div>
|
|
102
102
|
</a>
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
>
|
|
113
113
|
<span class="subtitle">
|
|
114
114
|
<span class="required">*</span>
|
|
115
|
-
{{ 'requiredFields'
|
|
115
|
+
{{ i18n.msgStr('requiredFields') }}
|
|
116
116
|
</span>
|
|
117
117
|
</div>
|
|
118
118
|
<div class="col-md-10">
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
id="try-another-way"
|
|
175
175
|
(click)="tryAnotherWay()"
|
|
176
176
|
>
|
|
177
|
-
{{ 'doTryAnotherWay'
|
|
177
|
+
{{ i18n.msgStr('doTryAnotherWay') }}
|
|
178
178
|
</a>
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { AsyncPipe, NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, OnInit, Renderer2 } from '@angular/core';
|
|
3
3
|
import { Meta, Title } from '@angular/platform-browser';
|
|
4
|
-
import { CLASSES, I18N, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
5
4
|
import type { I18n } from '@keycloakify/angular/login/i18n';
|
|
6
5
|
import { KcContext } from 'keycloakify/login/KcContext/KcContext';
|
|
7
6
|
import { ClassKey, getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
8
7
|
import { Observable } from 'rxjs';
|
|
9
8
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
10
9
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
11
|
-
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes';
|
|
12
|
-
import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
10
|
+
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
|
|
13
11
|
import { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector.service';
|
|
12
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
13
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
14
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
15
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
14
16
|
|
|
15
17
|
@Component({
|
|
16
18
|
selector: 'kc-login-template',
|
|
17
19
|
templateUrl: './template.component.html',
|
|
18
20
|
standalone: true,
|
|
19
|
-
imports: [AsyncPipe, KcSanitizePipe, NgTemplateOutlet, KcClassDirective
|
|
21
|
+
imports: [AsyncPipe, KcSanitizePipe, NgTemplateOutlet, KcClassDirective],
|
|
20
22
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
23
|
providers: [
|
|
22
24
|
{
|
|
@@ -26,13 +28,13 @@ import { LoginResourceInjectorService } from '@keycloakify/angular/login/service
|
|
|
26
28
|
]
|
|
27
29
|
})
|
|
28
30
|
export class TemplateComponent extends ComponentReference implements OnInit {
|
|
29
|
-
i18n = inject<I18n>(
|
|
31
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
30
32
|
renderer = inject(Renderer2);
|
|
31
33
|
meta = inject(Meta);
|
|
32
34
|
title = inject(Title);
|
|
33
|
-
kcContext = inject<KcContext>(
|
|
35
|
+
kcContext = inject<KcContext>(KC_LOGIN_CONTEXT);
|
|
34
36
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
35
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
37
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
36
38
|
loginResourceInjectorService = inject(LoginResourceInjectorService);
|
|
37
39
|
|
|
38
40
|
displayInfo = input(false);
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
<kc-login-template>
|
|
4
4
|
<ng-container headerNode>
|
|
5
5
|
@if (code.success) {
|
|
6
|
-
{{ 'codeSuccessTitle'
|
|
6
|
+
{{ i18n.msgStr('codeSuccessTitle') }}
|
|
7
7
|
} @else {
|
|
8
|
-
{{ 'codeErrorTitle'
|
|
8
|
+
{{ i18n.msgStr('codeErrorTitle', code.error) }}
|
|
9
9
|
}
|
|
10
10
|
</ng-container>
|
|
11
11
|
|
|
12
12
|
<ng-container content>
|
|
13
13
|
<div id="kc-code">
|
|
14
14
|
@if (code.success) {
|
|
15
|
-
<p>{{ 'copyCodeInstruction'
|
|
15
|
+
<p>{{ i18n.msgStr('copyCodeInstruction') }}</p>
|
|
16
16
|
<input
|
|
17
17
|
id="code"
|
|
18
18
|
[kcClass]="'kcTextareaClass'"
|
|
19
|
-
defaultValue="
|
|
19
|
+
[defaultValue]="code.code"
|
|
20
20
|
/>
|
|
21
21
|
} @else {
|
|
22
22
|
<p id="error">{{ code.error }}</p>
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
3
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
4
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
5
5
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
6
6
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
7
7
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
8
|
-
import {
|
|
8
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
9
|
+
import { KcContext } from '../../KcContext';
|
|
10
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
11
|
+
import { I18n } from '../../i18n';
|
|
9
12
|
|
|
10
13
|
@Component({
|
|
11
14
|
standalone: true,
|
|
12
|
-
imports: [
|
|
15
|
+
imports: [TemplateComponent, KcClassDirective],
|
|
13
16
|
selector: 'kc-root',
|
|
14
17
|
templateUrl: 'code.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 CodeComponent extends ComponentReference {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'code.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: '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
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@let triggered_from_aia = kcContext.triggered_from_aia;
|
|
3
3
|
<kc-login-template>
|
|
4
4
|
<ng-container headerNode>
|
|
5
|
-
{{ 'deleteAccountConfirm'
|
|
5
|
+
{{ i18n.msgStr('deleteAccountConfirm') }}
|
|
6
6
|
</ng-container>
|
|
7
7
|
<ng-container content>
|
|
8
8
|
<form
|
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
style="margin-top: 0; margin-bottom: 30px"
|
|
16
16
|
>
|
|
17
17
|
<span class="pficon pficon-warning-triangle-o"></span>
|
|
18
|
-
{{ 'irreversibleAction'
|
|
18
|
+
{{ i18n.msgStr('irreversibleAction') }}
|
|
19
19
|
</div>
|
|
20
|
-
<p>{{ 'deletingImplies'
|
|
20
|
+
<p>{{ i18n.msgStr('deletingImplies') }}</p>
|
|
21
21
|
<ul style="color: #72767b; list-style: disc; list-style-position: inside">
|
|
22
|
-
<li>{{ 'loggingOutImmediately'
|
|
23
|
-
<li>{{ 'errasingData'
|
|
22
|
+
<li>{{ i18n.msgStr('loggingOutImmediately') }}</li>
|
|
23
|
+
<li>{{ i18n.msgStr('errasingData') }}</li>
|
|
24
24
|
</ul>
|
|
25
25
|
<p class="delete-account-text">
|
|
26
|
-
{{ 'finalDeletionConfirmation'
|
|
26
|
+
{{ i18n.msgStr('finalDeletionConfirmation') }}
|
|
27
27
|
</p>
|
|
28
28
|
<div id="kc-form-buttons">
|
|
29
29
|
<input
|
|
30
30
|
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
31
31
|
type="submit"
|
|
32
|
-
value="
|
|
32
|
+
[value]="i18n.msgStr('doConfirmDelete')"
|
|
33
33
|
/>
|
|
34
34
|
@if (triggered_from_aia) {
|
|
35
35
|
<button
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
name="cancel-aia"
|
|
40
40
|
value="true"
|
|
41
41
|
>
|
|
42
|
-
{{ 'doCancel'
|
|
42
|
+
{{ i18n.msgStr('doCancel') }}
|
|
43
43
|
</button>
|
|
44
44
|
}
|
|
45
45
|
</div>
|
|
@@ -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
|
-
import { KcClassDirective } from '@keycloakify/angular/login/directives';
|
|
8
|
-
import {
|
|
5
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
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: 'delete-account-confirm.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 DeleteAccountConfirmComponent extends ComponentReference {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'delete-account-confirm.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'delete-account-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
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
@let credentialLabel = kcContext.credentialLabel;
|
|
3
3
|
<kc-login-template [displayMessage]="displayMessage">
|
|
4
4
|
<ng-container headerNode>
|
|
5
|
-
{{ 'deleteCredentialTitle'
|
|
5
|
+
{{ i18n.msgStr('deleteCredentialTitle', credentialLabel) }}
|
|
6
6
|
</ng-container>
|
|
7
7
|
<ng-container content>
|
|
8
8
|
<div id="kc-delete-text">
|
|
9
|
-
{{ 'deleteCredentialMessage'
|
|
9
|
+
{{ i18n.msgStr('deleteCredentialMessage', credentialLabel) }}
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<form
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
name="accept"
|
|
20
20
|
id="kc-accept"
|
|
21
21
|
type="submit"
|
|
22
|
-
[value]="'doConfirmDelete'
|
|
22
|
+
[value]="i18n.msgStr('doConfirmDelete')"
|
|
23
23
|
/>
|
|
24
24
|
|
|
25
25
|
<input
|
|
26
26
|
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
27
27
|
name="cancel-aia"
|
|
28
|
-
[value]="'doCancel'
|
|
28
|
+
[value]="i18n.msgStr('doCancel')"
|
|
29
29
|
id="kc-decline"
|
|
30
30
|
type="submit"
|
|
31
31
|
/>
|
|
@@ -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: [
|
|
15
|
+
imports: [TemplateComponent, KcClassDirective],
|
|
13
16
|
selector: 'kc-root',
|
|
14
17
|
templateUrl: 'delete-credential.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 DeleteCredentialComponent extends ComponentReference {
|
|
24
|
-
kcContext = inject<Extract<KcContext, { pageId: 'delete-credential.ftl' }>>(
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'delete-credential.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>();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@let client = kcContext.client;
|
|
4
4
|
<kc-login-template [displayMessage]="false">
|
|
5
5
|
<ng-container headerNode>
|
|
6
|
-
{{ 'errorTitle'
|
|
6
|
+
{{ i18n.msgStr('errorTitle') }}
|
|
7
7
|
</ng-container>
|
|
8
8
|
<ng-container content>
|
|
9
9
|
<div id="kc-error-message">
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<a
|
|
17
17
|
id="backToApplication"
|
|
18
18
|
[href]="client.baseUrl"
|
|
19
|
-
[innerHTML]="'backToApplication' |
|
|
19
|
+
[innerHTML]="i18n.msgStr('backToApplication') | kcSanitize: 'html'"
|
|
20
20
|
></a>
|
|
21
21
|
</p>
|
|
22
22
|
}
|