@keycloakify/angular 0.0.1-rc.0 → 0.0.1-rc.2
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/i18n.d.ts +2 -2
- package/lib/i18n.mjs +6 -0
- package/lib/models/index.d.ts +1 -1
- package/lib/models/index.mjs +2 -0
- package/lib/models/script.model.mjs +2 -0
- package/lib/providers/keycloakify-angular.providers.d.ts +5 -5
- package/lib/providers/keycloakify-angular.providers.mjs +54 -0
- package/lib/public-api.d.ts +5 -5
- package/lib/public-api.mjs +4 -0
- package/lib/services/i18n.service.d.ts +3 -0
- package/lib/services/i18n.service.mjs +11 -0
- package/lib/services/index.d.ts +2 -2
- package/lib/services/index.mjs +3 -0
- package/lib/services/resource-injector.service.d.ts +5 -2
- package/lib/services/resource-injector.service.mjs +54 -0
- package/login/DefaultPage.d.ts +4 -4
- package/login/DefaultPage.mjs +121 -0
- package/login/KcContext.d.ts +1 -1
- package/login/KcContext.mjs +2 -0
- package/login/classes/component-reference.class.d.ts +1 -1
- package/login/classes/component-reference.class.mjs +3 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +5 -2
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +105 -0
- package/login/components/field-errors/field-errors.component.d.ts +7 -4
- package/login/components/field-errors/field-errors.component.mjs +32 -0
- package/login/components/group-label/group-label.component.d.ts +6 -3
- package/login/components/group-label/group-label.component.mjs +41 -0
- package/login/components/hello-world/hello-world.component.d.ts +5 -0
- package/login/components/hello-world/hello-world.component.mjs +11 -0
- package/login/components/index.d.ts +11 -11
- package/login/components/index.mjs +12 -0
- package/login/components/input-field-by-type/input-field-by-type.component.d.ts +7 -4
- package/login/components/input-field-by-type/input-field-by-type.component.mjs +52 -0
- package/login/components/input-tag/input-tag.component.d.ts +7 -4
- package/login/components/input-tag/input-tag.component.mjs +89 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +9 -6
- package/login/components/input-tag-selects/input-tag-selects.component.mjs +115 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +5 -2
- package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +30 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +6 -3
- package/login/components/password-wrapper/password-wrapper.component.mjs +44 -0
- package/login/components/select-tag/select-tag.component.d.ts +7 -4
- package/login/components/select-tag/select-tag.component.mjs +80 -0
- package/login/components/textarea-tag/textarea-tag.component.d.ts +7 -4
- package/login/components/textarea-tag/textarea-tag.component.mjs +48 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +8 -5
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +62 -0
- package/login/containers/template.component.d.ts +11 -8
- package/login/containers/template.component.mjs +71 -0
- package/login/directives/attributes.directive.d.ts +3 -0
- package/login/directives/attributes.directive.mjs +26 -0
- package/login/directives/index.d.ts +2 -2
- package/login/directives/index.mjs +3 -0
- package/login/directives/kc-class.directive.d.ts +5 -2
- package/login/directives/kc-class.directive.mjs +138 -0
- package/login/i18n.d.ts +2 -2
- package/login/i18n.mjs +2 -0
- package/login/pages/code/code.component.d.ts +6 -3
- package/login/pages/code/code.component.mjs +32 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +6 -3
- package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +32 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +6 -3
- package/login/pages/delete-credential/delete-credential.component.mjs +37 -0
- package/login/pages/error/error.component.d.ts +6 -3
- package/login/pages/error/error.component.mjs +32 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +7 -4
- package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +41 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +6 -3
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +47 -0
- package/login/pages/info/info.component.d.ts +9 -6
- package/login/pages/info/info.component.mjs +58 -0
- package/login/pages/login/login.component.d.ts +6 -3
- package/login/pages/login/login.component.mjs +51 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +6 -3
- package/login/pages/login-config-totp/login-config-totp.component.mjs +47 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +6 -3
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +37 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +6 -3
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +37 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +6 -3
- package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +37 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +6 -3
- package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +38 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +6 -3
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +37 -0
- package/login/pages/login-otp/login-otp.component.d.ts +6 -3
- package/login/pages/login-otp/login-otp.component.mjs +38 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +6 -3
- package/login/pages/login-page-expired/login-page-expired.component.mjs +36 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +8 -5
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +85 -0
- package/login/pages/login-password/login-password.component.d.ts +6 -3
- package/login/pages/login-password/login-password.component.mjs +46 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +6 -3
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +45 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +6 -3
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +38 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +6 -3
- package/login/pages/login-reset-otp/login-reset-otp.component.mjs +37 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +6 -3
- package/login/pages/login-reset-password/login-reset-password.component.mjs +38 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +6 -3
- package/login/pages/login-update-password/login-update-password.component.mjs +47 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +6 -3
- package/login/pages/login-update-profile/login-update-profile.component.mjs +44 -0
- package/login/pages/login-username/login-username.component.d.ts +6 -3
- package/login/pages/login-username/login-username.component.mjs +49 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +6 -3
- package/login/pages/login-verify-email/login-verify-email.component.mjs +37 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +6 -3
- package/login/pages/login-x509-info/login-x509-info.component.mjs +37 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +6 -3
- package/login/pages/logout-confirm/logout-confirm.component.mjs +37 -0
- package/login/pages/register/register.component.d.ts +6 -3
- package/login/pages/register/register.component.mjs +55 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +7 -4
- package/login/pages/saml-post-form/saml-post-form.component.mjs +49 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +6 -3
- package/login/pages/select-authenticator/select-authenticator.component.mjs +45 -0
- package/login/pages/terms/terms.component.d.ts +6 -3
- package/login/pages/terms/terms.component.mjs +37 -0
- package/login/pages/update-email/update-email.component.d.ts +6 -3
- package/login/pages/update-email/update-email.component.mjs +46 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +8 -5
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +87 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +6 -3
- package/login/pages/webauthn-error/webauthn-error.component.mjs +51 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +8 -5
- package/login/pages/webauthn-register/webauthn-register.component.mjs +81 -0
- package/login/pipes/advanced-msg-str.pipe.d.ts +4 -1
- package/login/pipes/advanced-msg-str.pipe.mjs +19 -0
- package/login/pipes/index.d.ts +6 -6
- package/login/pipes/index.mjs +7 -0
- package/login/pipes/input-type.pipe.d.ts +4 -1
- package/login/pipes/input-type.pipe.mjs +20 -0
- package/login/pipes/kc-sanitize.pipe.d.ts +5 -2
- package/login/pipes/kc-sanitize.pipe.mjs +34 -0
- package/login/pipes/msg-str.pipe.d.ts +5 -2
- package/login/pipes/msg-str.pipe.mjs +19 -0
- package/login/pipes/to-array.pipe.d.ts +4 -1
- package/login/pipes/to-array.pipe.mjs +21 -0
- package/login/pipes/to-number.pipe.d.ts +4 -1
- package/login/pipes/to-number.pipe.mjs +20 -0
- package/login/services/index.d.ts +2 -2
- package/login/services/index.mjs +3 -0
- package/login/services/login-resource-injector.service.d.ts +4 -1
- package/login/services/login-resource-injector.service.mjs +68 -0
- package/login/services/user-profile-form.service.d.ts +15 -12
- package/login/services/user-profile-form.service.mjs +1017 -0
- package/package.json +90 -200
- package/src/lib/i18n.ts +2 -2
- package/src/lib/models/index.ts +1 -1
- package/src/lib/providers/keycloakify-angular.providers.ts +18 -18
- package/src/lib/public-api.ts +5 -5
- package/src/lib/services/i18n.service.ts +2 -2
- package/src/lib/services/index.ts +2 -2
- package/src/lib/services/resource-injector.service.ts +7 -7
- package/src/login/DefaultPage.ts +76 -76
- package/src/login/KcContext.ts +1 -1
- package/src/login/classes/component-reference.class.ts +1 -1
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +11 -11
- package/src/login/components/field-errors/field-errors.component.ts +9 -9
- package/src/login/components/group-label/group-label.component.ts +12 -12
- package/src/login/components/hello-world/hello-world.component.css +0 -0
- package/src/login/components/hello-world/hello-world.component.html +1 -0
- package/src/login/components/hello-world/hello-world.component.ts +10 -0
- package/src/login/components/index.ts +11 -11
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +15 -15
- package/src/login/components/input-tag/input-tag.component.ts +20 -20
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +26 -26
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +8 -8
- package/src/login/components/password-wrapper/password-wrapper.component.ts +11 -11
- package/src/login/components/select-tag/select-tag.component.ts +16 -16
- package/src/login/components/textarea-tag/textarea-tag.component.ts +14 -14
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +16 -16
- package/src/login/containers/template.component.ts +19 -19
- package/src/login/directives/attributes.directive.ts +2 -2
- package/src/login/directives/index.ts +2 -2
- package/src/login/directives/kc-class.directive.ts +11 -11
- package/src/login/i18n.ts +2 -2
- package/src/login/pages/code/code.component.ts +11 -11
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +11 -11
- package/src/login/pages/delete-credential/delete-credential.component.ts +11 -11
- package/src/login/pages/error/error.component.ts +11 -11
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +11 -11
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +14 -14
- package/src/login/pages/info/info.component.ts +15 -15
- package/src/login/pages/login/login.component.ts +16 -16
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -16
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +11 -11
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +11 -11
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +11 -11
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +13 -13
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +11 -11
- package/src/login/pages/login-otp/login-otp.component.ts +13 -13
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +10 -10
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +21 -21
- package/src/login/pages/login-password/login-password.component.ts +14 -14
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +13 -13
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +13 -13
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +12 -12
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +13 -13
- package/src/login/pages/login-update-password/login-update-password.component.ts +16 -16
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +13 -13
- package/src/login/pages/login-username/login-username.component.ts +14 -14
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +11 -11
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +11 -11
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +11 -11
- package/src/login/pages/register/register.component.ts +17 -17
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +13 -13
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +13 -13
- package/src/login/pages/terms/terms.component.ts +11 -11
- package/src/login/pages/update-email/update-email.component.ts +14 -14
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +21 -21
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +15 -15
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +20 -20
- package/src/login/pipes/advanced-msg-str.pipe.ts +4 -4
- package/src/login/pipes/index.ts +6 -6
- package/src/login/pipes/input-type.pipe.ts +4 -4
- package/src/login/pipes/kc-sanitize.pipe.ts +8 -8
- package/src/login/pipes/msg-str.pipe.ts +5 -5
- package/src/login/pipes/to-array.pipe.ts +2 -2
- package/src/login/pipes/to-number.pipe.ts +3 -3
- package/src/login/services/index.ts +2 -2
- package/src/login/services/login-resource-injector.service.ts +11 -11
- package/src/login/services/user-profile-form.service.ts +178 -178
- package/stories/login/pages/login/login.stories.ts +146 -0
- package/lib/i18n.js +0 -6
- package/lib/i18n.js.map +0 -1
- package/lib/models/index.js +0 -2
- package/lib/models/index.js.map +0 -1
- package/lib/models/script.model.js +0 -2
- package/lib/models/script.model.js.map +0 -1
- package/lib/providers/keycloakify-angular.providers.js +0 -58
- package/lib/providers/keycloakify-angular.providers.js.map +0 -1
- package/lib/public-api.js +0 -4
- package/lib/public-api.js.map +0 -1
- package/lib/services/i18n.service.js +0 -14
- package/lib/services/i18n.service.js.map +0 -1
- package/lib/services/index.js +0 -3
- package/lib/services/index.js.map +0 -1
- package/lib/services/resource-injector.service.js +0 -57
- package/lib/services/resource-injector.service.js.map +0 -1
- package/login/DefaultPage.js +0 -121
- package/login/DefaultPage.js.map +0 -1
- package/login/KcContext.js +0 -2
- package/login/KcContext.js.map +0 -1
- package/login/classes/component-reference.class.js +0 -3
- package/login/classes/component-reference.class.js.map +0 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +0 -24
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +0 -123
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +0 -1
- package/login/components/field-errors/field-errors.component.html +0 -15
- package/login/components/field-errors/field-errors.component.js +0 -45
- package/login/components/field-errors/field-errors.component.js.map +0 -1
- package/login/components/group-label/group-label.component.html +0 -30
- package/login/components/group-label/group-label.component.js +0 -55
- package/login/components/group-label/group-label.component.js.map +0 -1
- package/login/components/index.js +0 -12
- package/login/components/index.js.map +0 -1
- package/login/components/input-field-by-type/input-field-by-type.component.html +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js.map +0 -1
- package/login/components/input-tag/input-tag.component.html +0 -49
- package/login/components/input-tag/input-tag.component.js +0 -107
- package/login/components/input-tag/input-tag.component.js.map +0 -1
- package/login/components/input-tag-selects/input-tag-selects.component.html +0 -29
- package/login/components/input-tag-selects/input-tag-selects.component.js +0 -132
- package/login/components/input-tag-selects/input-tag-selects.component.js.map +0 -1
- package/login/components/logout-other-sessions/logout-other-sessions.component.html +0 -19
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +0 -43
- package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +0 -1
- package/login/components/password-wrapper/password-wrapper.component.html +0 -15
- package/login/components/password-wrapper/password-wrapper.component.js +0 -57
- package/login/components/password-wrapper/password-wrapper.component.js.map +0 -1
- package/login/components/select-tag/select-tag.component.html +0 -31
- package/login/components/select-tag/select-tag.component.js +0 -97
- package/login/components/select-tag/select-tag.component.js.map +0 -1
- package/login/components/textarea-tag/textarea-tag.component.html +0 -18
- package/login/components/textarea-tag/textarea-tag.component.js +0 -63
- package/login/components/textarea-tag/textarea-tag.component.js.map +0 -1
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +0 -85
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +0 -74
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +0 -1
- package/login/containers/template.component.html +0 -203
- package/login/containers/template.component.js +0 -78
- package/login/containers/template.component.js.map +0 -1
- package/login/directives/attributes.directive.js +0 -34
- package/login/directives/attributes.directive.js.map +0 -1
- package/login/directives/index.js +0 -3
- package/login/directives/index.js.map +0 -1
- package/login/directives/kc-class.directive.js +0 -146
- package/login/directives/kc-class.directive.js.map +0 -1
- package/login/i18n.js +0 -2
- package/login/i18n.js.map +0 -1
- package/login/pages/code/code.component.html +0 -26
- package/login/pages/code/code.component.js +0 -38
- package/login/pages/code/code.component.js.map +0 -1
- package/login/pages/delete-account-confirm/delete-account-confirm.component.html +0 -46
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +0 -38
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +0 -1
- package/login/pages/delete-credential/delete-credential.component.html +0 -35
- package/login/pages/delete-credential/delete-credential.component.js +0 -43
- package/login/pages/delete-credential/delete-credential.component.js.map +0 -1
- package/login/pages/error/error.component.html +0 -25
- package/login/pages/error/error.component.js +0 -38
- package/login/pages/error/error.component.js.map +0 -1
- package/login/pages/frontchannel-logout/frontchannel-logout.component.html +0 -35
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +0 -47
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +0 -1
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +0 -41
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +0 -54
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +0 -1
- package/login/pages/info/info.component.html +0 -54
- package/login/pages/info/info.component.js +0 -61
- package/login/pages/info/info.component.js.map +0 -1
- package/login/pages/login/login.component.html +0 -212
- package/login/pages/login/login.component.js +0 -58
- package/login/pages/login/login.component.js.map +0 -1
- package/login/pages/login-config-totp/login-config-totp.component.html +0 -190
- package/login/pages/login-config-totp/login-config-totp.component.js +0 -53
- package/login/pages/login-config-totp/login-config-totp.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +0 -41
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +0 -43
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +0 -40
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +0 -43
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +0 -1
- package/login/pages/login-idp-link-email/login-idp-link-email.component.html +0 -37
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +0 -43
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +0 -1
- package/login/pages/login-oauth-grant/login-oauth-grant.component.html +0 -92
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +0 -44
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +0 -1
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +0 -63
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +0 -43
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +0 -1
- package/login/pages/login-otp/login-otp.component.html +0 -103
- package/login/pages/login-otp/login-otp.component.js +0 -44
- package/login/pages/login-otp/login-otp.component.js.map +0 -1
- package/login/pages/login-page-expired/login-page-expired.component.html +0 -35
- package/login/pages/login-page-expired/login-page-expired.component.js +0 -42
- package/login/pages/login-page-expired/login-page-expired.component.js.map +0 -1
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +0 -203
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +0 -91
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +0 -1
- package/login/pages/login-password/login-password.component.html +0 -90
- package/login/pages/login-password/login-password.component.js +0 -52
- package/login/pages/login-password/login-password.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +0 -155
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +0 -51
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +0 -76
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +0 -44
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +0 -1
- package/login/pages/login-reset-otp/login-reset-otp.component.html +0 -65
- package/login/pages/login-reset-otp/login-reset-otp.component.js +0 -43
- package/login/pages/login-reset-otp/login-reset-otp.component.js.map +0 -1
- package/login/pages/login-reset-password/login-reset-password.component.html +0 -95
- package/login/pages/login-reset-password/login-reset-password.component.js +0 -44
- package/login/pages/login-reset-password/login-reset-password.component.js.map +0 -1
- package/login/pages/login-update-password/login-update-password.component.html +0 -116
- package/login/pages/login-update-password/login-update-password.component.js +0 -53
- package/login/pages/login-update-password/login-update-password.component.js.map +0 -1
- package/login/pages/login-update-profile/login-update-profile.component.html +0 -59
- package/login/pages/login-update-profile/login-update-profile.component.js +0 -50
- package/login/pages/login-update-profile/login-update-profile.component.js.map +0 -1
- package/login/pages/login-username/login-username.component.html +0 -161
- package/login/pages/login-username/login-username.component.js +0 -56
- package/login/pages/login-username/login-username.component.js.map +0 -1
- package/login/pages/login-verify-email/login-verify-email.component.html +0 -27
- package/login/pages/login-verify-email/login-verify-email.component.js +0 -43
- package/login/pages/login-verify-email/login-verify-email.component.js.map +0 -1
- package/login/pages/login-x509-info/login-x509-info.component.html +0 -102
- package/login/pages/login-x509-info/login-x509-info.component.js +0 -43
- package/login/pages/login-x509-info/login-x509-info.component.js.map +0 -1
- package/login/pages/logout-confirm/logout-confirm.component.html +0 -59
- package/login/pages/logout-confirm/logout-confirm.component.js +0 -43
- package/login/pages/logout-confirm/logout-confirm.component.js.map +0 -1
- package/login/pages/register/register.component.html +0 -126
- package/login/pages/register/register.component.js +0 -62
- package/login/pages/register/register.component.js.map +0 -1
- package/login/pages/saml-post-form/saml-post-form.component.html +0 -51
- package/login/pages/saml-post-form/saml-post-form.component.js +0 -55
- package/login/pages/saml-post-form/saml-post-form.component.js.map +0 -1
- package/login/pages/select-authenticator/select-authenticator.component.html +0 -49
- package/login/pages/select-authenticator/select-authenticator.component.js +0 -51
- package/login/pages/select-authenticator/select-authenticator.component.js.map +0 -1
- package/login/pages/terms/terms.component.html +0 -36
- package/login/pages/terms/terms.component.js +0 -43
- package/login/pages/terms/terms.component.js.map +0 -1
- package/login/pages/update-email/update-email.component.html +0 -58
- package/login/pages/update-email/update-email.component.js +0 -52
- package/login/pages/update-email/update-email.component.js.map +0 -1
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +0 -162
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +0 -93
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +0 -1
- package/login/pages/webauthn-error/webauthn-error.component.html +0 -60
- package/login/pages/webauthn-error/webauthn-error.component.js +0 -57
- package/login/pages/webauthn-error/webauthn-error.component.js.map +0 -1
- package/login/pages/webauthn-register/webauthn-register.component.html +0 -82
- package/login/pages/webauthn-register/webauthn-register.component.js +0 -86
- package/login/pages/webauthn-register/webauthn-register.component.js.map +0 -1
- package/login/pipes/advanced-msg-str.pipe.js +0 -31
- package/login/pipes/advanced-msg-str.pipe.js.map +0 -1
- package/login/pipes/index.js +0 -7
- package/login/pipes/index.js.map +0 -1
- package/login/pipes/input-type.pipe.js +0 -23
- package/login/pipes/input-type.pipe.js.map +0 -1
- package/login/pipes/kc-sanitize.pipe.js +0 -36
- package/login/pipes/kc-sanitize.pipe.js.map +0 -1
- package/login/pipes/msg-str.pipe.js +0 -31
- package/login/pipes/msg-str.pipe.js.map +0 -1
- package/login/pipes/to-array.pipe.js +0 -24
- package/login/pipes/to-array.pipe.js.map +0 -1
- package/login/pipes/to-number.pipe.js +0 -23
- package/login/pipes/to-number.pipe.js.map +0 -1
- package/login/services/index.js +0 -3
- package/login/services/index.js.map +0 -1
- package/login/services/login-resource-injector.service.js +0 -71
- package/login/services/login-resource-injector.service.js.map +0 -1
- package/login/services/user-profile-form.service.js +0 -1031
- package/login/services/user-profile-form.service.js.map +0 -1
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
input,
|
|
8
8
|
output,
|
|
9
9
|
Signal
|
|
10
|
-
} from
|
|
11
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
12
|
-
import { Attribute } from
|
|
13
|
-
import { ClassKey } from
|
|
14
|
-
import { ComponentReference } from
|
|
15
|
-
import { KcClassDirective } from
|
|
16
|
-
import { AdvancedMsgStrPipe } from
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
12
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
13
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
15
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
16
|
+
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
17
17
|
import {
|
|
18
18
|
FormAction,
|
|
19
19
|
FormFieldError
|
|
20
|
-
} from
|
|
20
|
+
} from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
21
21
|
|
|
22
22
|
@Component({
|
|
23
23
|
standalone: true,
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
`
|
|
30
30
|
],
|
|
31
31
|
imports: [KcClassDirective, AdvancedMsgStrPipe],
|
|
32
|
-
selector:
|
|
33
|
-
templateUrl:
|
|
32
|
+
selector: 'kc-input-tag-selects',
|
|
33
|
+
templateUrl: 'input-tag-selects.component.html',
|
|
34
34
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35
35
|
providers: [
|
|
36
36
|
{
|
|
@@ -48,7 +48,7 @@ export class InputTagSelectsComponent extends ComponentReference {
|
|
|
48
48
|
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
49
49
|
|
|
50
50
|
context: Signal<{
|
|
51
|
-
inputType:
|
|
51
|
+
inputType: 'radio' | 'checkbox';
|
|
52
52
|
classDiv: ClassKey;
|
|
53
53
|
classInput: ClassKey;
|
|
54
54
|
classLabel: ClassKey;
|
|
@@ -57,19 +57,19 @@ export class InputTagSelectsComponent extends ComponentReference {
|
|
|
57
57
|
if (attribute) {
|
|
58
58
|
const { inputType } = attribute.annotations;
|
|
59
59
|
switch (inputType) {
|
|
60
|
-
case
|
|
60
|
+
case 'select-radiobuttons':
|
|
61
61
|
return {
|
|
62
|
-
inputType:
|
|
63
|
-
classDiv:
|
|
64
|
-
classInput:
|
|
65
|
-
classLabel:
|
|
62
|
+
inputType: 'radio',
|
|
63
|
+
classDiv: 'kcInputClassRadio',
|
|
64
|
+
classInput: 'kcInputClassRadioInput',
|
|
65
|
+
classLabel: 'kcInputClassRadioLabel'
|
|
66
66
|
};
|
|
67
|
-
case
|
|
67
|
+
case 'multiselect-checkboxes':
|
|
68
68
|
return {
|
|
69
|
-
inputType:
|
|
70
|
-
classDiv:
|
|
71
|
-
classInput:
|
|
72
|
-
classLabel:
|
|
69
|
+
inputType: 'checkbox',
|
|
70
|
+
classDiv: 'kcInputClassCheckbox',
|
|
71
|
+
classInput: 'kcInputClassCheckboxInput',
|
|
72
|
+
classLabel: 'kcInputClassCheckboxLabel'
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -120,8 +120,8 @@ export class InputTagSelectsComponent extends ComponentReference {
|
|
|
120
120
|
const valueOrValues = this.valueOrValues();
|
|
121
121
|
const isChecked = (event.target as HTMLInputElement).checked;
|
|
122
122
|
this.dispatchFormAction.emit({
|
|
123
|
-
action:
|
|
124
|
-
name: this.attribute()?.name ??
|
|
123
|
+
action: 'update',
|
|
124
|
+
name: this.attribute()?.name ?? '',
|
|
125
125
|
valueOrValues: (() => {
|
|
126
126
|
if (valueOrValues instanceof Array) {
|
|
127
127
|
const newValues = [...valueOrValues];
|
|
@@ -135,15 +135,15 @@ export class InputTagSelectsComponent extends ComponentReference {
|
|
|
135
135
|
return newValues;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
return (event.target as HTMLInputElement)?.checked ? option :
|
|
138
|
+
return (event.target as HTMLInputElement)?.checked ? option : '';
|
|
139
139
|
})()
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
onBlur() {
|
|
144
144
|
this.dispatchFormAction.emit({
|
|
145
|
-
action:
|
|
146
|
-
name: this.attribute()?.name ??
|
|
145
|
+
action: 'focus lost',
|
|
146
|
+
name: this.attribute()?.name ?? '',
|
|
147
147
|
fieldIndex: undefined
|
|
148
148
|
});
|
|
149
149
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject } from
|
|
2
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
3
|
-
import { ClassKey } from
|
|
4
|
-
import { ComponentReference } from
|
|
5
|
-
import { KcClassDirective } from
|
|
6
|
-
import { MsgStrPipe } from
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
3
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
4
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
5
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
6
|
+
import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
9
|
-
selector:
|
|
9
|
+
selector: 'kc-logout-other-sessions',
|
|
10
10
|
styles: [
|
|
11
11
|
`
|
|
12
12
|
:host {
|
|
@@ -17,7 +17,7 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
|
17
17
|
standalone: true,
|
|
18
18
|
imports: [KcClassDirective, MsgStrPipe],
|
|
19
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
-
templateUrl:
|
|
20
|
+
templateUrl: './logout-other-sessions.component.html',
|
|
21
21
|
providers: [
|
|
22
22
|
{
|
|
23
23
|
provide: ComponentReference,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncPipe } from
|
|
1
|
+
import { AsyncPipe } from '@angular/common';
|
|
2
2
|
import {
|
|
3
3
|
ChangeDetectionStrategy,
|
|
4
4
|
Component,
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
Renderer2,
|
|
9
9
|
signal,
|
|
10
10
|
WritableSignal
|
|
11
|
-
} from
|
|
12
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
13
|
-
import { ClassKey } from
|
|
14
|
-
import { ComponentReference } from
|
|
15
|
-
import { KcClassDirective } from
|
|
16
|
-
import { MsgStrPipe } from
|
|
11
|
+
} from '@angular/core';
|
|
12
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
13
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
15
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
16
|
+
import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
17
17
|
|
|
18
18
|
@Component({
|
|
19
|
-
selector:
|
|
19
|
+
selector: 'kc-password-wrapper',
|
|
20
20
|
styles: [
|
|
21
21
|
`
|
|
22
22
|
:host {
|
|
@@ -27,7 +27,7 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
|
27
27
|
standalone: true,
|
|
28
28
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
29
|
imports: [KcClassDirective, AsyncPipe, MsgStrPipe],
|
|
30
|
-
templateUrl:
|
|
30
|
+
templateUrl: './password-wrapper.component.html',
|
|
31
31
|
providers: [
|
|
32
32
|
{
|
|
33
33
|
provide: ComponentReference,
|
|
@@ -53,8 +53,8 @@ export class PasswordWrapperComponent extends ComponentReference {
|
|
|
53
53
|
if (input) {
|
|
54
54
|
this.renderer.setProperty(
|
|
55
55
|
input,
|
|
56
|
-
|
|
57
|
-
this.isPasswordRevealed() ?
|
|
56
|
+
'type',
|
|
57
|
+
this.isPasswordRevealed() ? 'text' : 'password'
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
inject,
|
|
7
7
|
input,
|
|
8
8
|
output
|
|
9
|
-
} from
|
|
10
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
11
|
-
import { Attribute } from
|
|
12
|
-
import { ClassKey } from
|
|
13
|
-
import { ComponentReference } from
|
|
14
|
-
import { KcClassDirective } from
|
|
15
|
-
import { AdvancedMsgStrPipe } from
|
|
16
|
-
import { ToNumberPipe } from
|
|
9
|
+
} from '@angular/core';
|
|
10
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
11
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
12
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
13
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
14
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
15
|
+
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
16
|
+
import { ToNumberPipe } from '@keycloakify/angular/login/pipes/to-number.pipe';
|
|
17
17
|
import {
|
|
18
18
|
FormAction,
|
|
19
19
|
FormFieldError
|
|
20
|
-
} from
|
|
20
|
+
} from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
21
21
|
|
|
22
22
|
@Component({
|
|
23
23
|
standalone: true,
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
`
|
|
30
30
|
],
|
|
31
31
|
imports: [KcClassDirective, ToNumberPipe, AdvancedMsgStrPipe],
|
|
32
|
-
selector:
|
|
33
|
-
templateUrl:
|
|
32
|
+
selector: 'kc-select-tag',
|
|
33
|
+
templateUrl: 'select-tag.component.html',
|
|
34
34
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35
35
|
providers: [
|
|
36
36
|
{
|
|
@@ -48,7 +48,7 @@ export class SelectTagComponent extends ComponentReference {
|
|
|
48
48
|
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
49
49
|
|
|
50
50
|
isMultiple = computed(() => {
|
|
51
|
-
return this.attribute()?.annotations?.inputType ===
|
|
51
|
+
return this.attribute()?.annotations?.inputType === 'multiselect';
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
options = computed(() => {
|
|
@@ -85,8 +85,8 @@ export class SelectTagComponent extends ComponentReference {
|
|
|
85
85
|
|
|
86
86
|
onChange(event: Event) {
|
|
87
87
|
this.dispatchFormAction.emit({
|
|
88
|
-
action:
|
|
89
|
-
name: this.attribute()?.name ??
|
|
88
|
+
action: 'update',
|
|
89
|
+
name: this.attribute()?.name ?? '',
|
|
90
90
|
valueOrValues: (() => {
|
|
91
91
|
if (this.isMultiple()) {
|
|
92
92
|
return Array.from(
|
|
@@ -101,8 +101,8 @@ export class SelectTagComponent extends ComponentReference {
|
|
|
101
101
|
|
|
102
102
|
onBlur() {
|
|
103
103
|
this.dispatchFormAction.emit({
|
|
104
|
-
action:
|
|
105
|
-
name: this.attribute()?.name ??
|
|
104
|
+
action: 'focus lost',
|
|
105
|
+
name: this.attribute()?.name ?? '',
|
|
106
106
|
fieldIndex: undefined
|
|
107
107
|
});
|
|
108
108
|
}
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
inject,
|
|
6
6
|
input,
|
|
7
7
|
output
|
|
8
|
-
} from
|
|
9
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
10
|
-
import { Attribute } from
|
|
11
|
-
import { ClassKey } from
|
|
12
|
-
import { ComponentReference } from
|
|
13
|
-
import { KcClassDirective } from
|
|
14
|
-
import { ToNumberPipe } from
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
10
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
11
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
12
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
13
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
14
|
+
import { ToNumberPipe } from '@keycloakify/angular/login/pipes/to-number.pipe';
|
|
15
15
|
import {
|
|
16
16
|
FormAction,
|
|
17
17
|
FormFieldError
|
|
18
|
-
} from
|
|
18
|
+
} from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
19
19
|
|
|
20
20
|
@Component({
|
|
21
21
|
standalone: true,
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
`
|
|
28
28
|
],
|
|
29
29
|
imports: [KcClassDirective, ToNumberPipe],
|
|
30
|
-
selector:
|
|
31
|
-
templateUrl:
|
|
30
|
+
selector: 'kc-textarea-tag',
|
|
31
|
+
templateUrl: 'textarea-tag.component.html',
|
|
32
32
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
33
|
providers: [
|
|
34
34
|
{
|
|
@@ -47,16 +47,16 @@ export class TextareaTagComponent extends ComponentReference {
|
|
|
47
47
|
|
|
48
48
|
onChange(event: Event) {
|
|
49
49
|
this.dispatchFormAction.emit({
|
|
50
|
-
action:
|
|
51
|
-
name: this.attribute()?.name ??
|
|
50
|
+
action: 'update',
|
|
51
|
+
name: this.attribute()?.name ?? '',
|
|
52
52
|
valueOrValues: (event.target as HTMLTextAreaElement).value
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
onBlur() {
|
|
57
57
|
this.dispatchFormAction.emit({
|
|
58
|
-
action:
|
|
59
|
-
name: this.attribute()?.name ??
|
|
58
|
+
action: 'focus lost',
|
|
59
|
+
name: this.attribute()?.name ?? '',
|
|
60
60
|
fieldIndex: undefined
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import {
|
|
3
3
|
ChangeDetectionStrategy,
|
|
4
4
|
Component,
|
|
@@ -8,25 +8,25 @@ import {
|
|
|
8
8
|
inject,
|
|
9
9
|
output,
|
|
10
10
|
TemplateRef
|
|
11
|
-
} from
|
|
11
|
+
} from '@angular/core';
|
|
12
12
|
import {
|
|
13
13
|
DO_MAKE_USER_CONFIRM_PASSWORD,
|
|
14
14
|
KC_CONTEXT,
|
|
15
15
|
CLASSES,
|
|
16
16
|
USE_DEFAULT_CSS
|
|
17
|
-
} from
|
|
18
|
-
import { ClassKey } from
|
|
19
|
-
import { KcContext } from
|
|
20
|
-
import { ComponentReference } from
|
|
21
|
-
import { KcClassDirective } from
|
|
22
|
-
import { AdvancedMsgStrPipe } from
|
|
17
|
+
} from '@keycloakify/angular/lib/public-api';
|
|
18
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
19
|
+
import { KcContext } from 'keycloakify/login/KcContext';
|
|
20
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
21
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
22
|
+
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
23
23
|
import {
|
|
24
24
|
FormAction,
|
|
25
25
|
UserProfileFormService
|
|
26
|
-
} from
|
|
27
|
-
import { FieldErrorsComponent } from
|
|
28
|
-
import { GroupLabelComponent } from
|
|
29
|
-
import { InputFieldByTypeComponent } from
|
|
26
|
+
} from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
27
|
+
import { FieldErrorsComponent } from '@keycloakify/angular/login/components/field-errors/field-errors.component';
|
|
28
|
+
import { GroupLabelComponent } from '@keycloakify/angular/login/components/group-label/group-label.component';
|
|
29
|
+
import { InputFieldByTypeComponent } from '@keycloakify/angular/login/components/input-field-by-type/input-field-by-type.component';
|
|
30
30
|
|
|
31
31
|
@Component({
|
|
32
32
|
standalone: true,
|
|
@@ -45,8 +45,8 @@ import { InputFieldByTypeComponent } from "@keycloakify/angular/login/components
|
|
|
45
45
|
NgTemplateOutlet,
|
|
46
46
|
AdvancedMsgStrPipe
|
|
47
47
|
],
|
|
48
|
-
selector:
|
|
49
|
-
templateUrl:
|
|
48
|
+
selector: 'kc-user-profile-form-fields',
|
|
49
|
+
templateUrl: 'user-profile-form-fields.component.html',
|
|
50
50
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
51
51
|
providers: [
|
|
52
52
|
UserProfileFormService,
|
|
@@ -67,8 +67,8 @@ export class UserProfileFormFieldsComponent extends ComponentReference {
|
|
|
67
67
|
|
|
68
68
|
formState = this.userProfileFormService.formState;
|
|
69
69
|
|
|
70
|
-
@ContentChild(
|
|
71
|
-
@ContentChild(
|
|
70
|
+
@ContentChild('beforField') beforeField: TemplateRef<unknown> | undefined;
|
|
71
|
+
@ContentChild('afterField') afterField: TemplateRef<unknown> | undefined;
|
|
72
72
|
|
|
73
73
|
constructor() {
|
|
74
74
|
super();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncPipe, NgTemplateOutlet } from
|
|
1
|
+
import { AsyncPipe, NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import {
|
|
3
3
|
ChangeDetectionStrategy,
|
|
4
4
|
Component,
|
|
@@ -7,27 +7,27 @@ import {
|
|
|
7
7
|
input,
|
|
8
8
|
OnInit,
|
|
9
9
|
Renderer2
|
|
10
|
-
} from
|
|
11
|
-
import { Meta, Title } from
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { Meta, Title } from '@angular/platform-browser';
|
|
12
12
|
import {
|
|
13
13
|
CLASSES,
|
|
14
14
|
I18N,
|
|
15
15
|
KC_CONTEXT,
|
|
16
16
|
USE_DEFAULT_CSS
|
|
17
|
-
} from
|
|
18
|
-
import type { I18n } from
|
|
19
|
-
import { KcContext } from
|
|
20
|
-
import { ClassKey, getKcClsx } from
|
|
21
|
-
import { Observable } from
|
|
22
|
-
import { ComponentReference } from
|
|
23
|
-
import { KcClassDirective } from
|
|
24
|
-
import { KcSanitizePipe } from
|
|
25
|
-
import { MsgStrPipe } from
|
|
26
|
-
import { LoginResourceInjectorService } from
|
|
17
|
+
} from '@keycloakify/angular/lib/public-api';
|
|
18
|
+
import type { I18n } from '@keycloakify/angular/login/i18n';
|
|
19
|
+
import { KcContext } from 'keycloakify/login/KcContext/KcContext';
|
|
20
|
+
import { ClassKey, getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
21
|
+
import { Observable } from 'rxjs';
|
|
22
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
23
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
24
|
+
import { KcSanitizePipe } from '@keycloakify/angular/login/pipes';
|
|
25
|
+
import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
26
|
+
import { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector.service';
|
|
27
27
|
|
|
28
28
|
@Component({
|
|
29
|
-
selector:
|
|
30
|
-
templateUrl:
|
|
29
|
+
selector: 'kc-login-template',
|
|
30
|
+
templateUrl: './template.component.html',
|
|
31
31
|
standalone: true,
|
|
32
32
|
imports: [AsyncPipe, KcSanitizePipe, NgTemplateOutlet, KcClassDirective, MsgStrPipe],
|
|
33
33
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -60,7 +60,7 @@ export class TemplateComponent extends ComponentReference implements OnInit {
|
|
|
60
60
|
super();
|
|
61
61
|
this.title.setTitle(
|
|
62
62
|
this.documentTitle() ??
|
|
63
|
-
this.i18n.msgStr(
|
|
63
|
+
this.i18n.msgStr('loginTitle', this.kcContext.realm.displayName)
|
|
64
64
|
);
|
|
65
65
|
this.isReadyToRender$ = this.loginResourceInjectorService.injectResource(
|
|
66
66
|
this.doUseDefaultCss
|
|
@@ -76,8 +76,8 @@ export class TemplateComponent extends ComponentReference implements OnInit {
|
|
|
76
76
|
doUseDefaultCss: this.doUseDefaultCss,
|
|
77
77
|
classes: this.classes
|
|
78
78
|
}).kcClsx;
|
|
79
|
-
const kcBodyClass = this.bodyClassName() ?? kcClsx(
|
|
80
|
-
const kcHtmlClass = kcClsx(
|
|
79
|
+
const kcBodyClass = this.bodyClassName() ?? kcClsx('kcBodyClass');
|
|
80
|
+
const kcHtmlClass = kcClsx('kcHtmlClass');
|
|
81
81
|
const kcBodyClasses = kcBodyClass.split(/\s+/);
|
|
82
82
|
const kcHtmlClasses = kcHtmlClass.split(/\s+/);
|
|
83
83
|
kcBodyClasses.forEach(klass => {
|
|
@@ -89,6 +89,6 @@ export class TemplateComponent extends ComponentReference implements OnInit {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
tryAnotherWay() {
|
|
92
|
-
document.forms[
|
|
92
|
+
document.forms['kc-select-try-another-way-form' as never].submit();
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Directive, effect, ElementRef, inject, input, Renderer2 } from
|
|
1
|
+
import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';
|
|
2
2
|
|
|
3
|
-
@Directive({ selector:
|
|
3
|
+
@Directive({ selector: '[kcAttributes]', standalone: true })
|
|
4
4
|
export class AttributesDirective {
|
|
5
5
|
kcAttributes = input<Record<string, string>>();
|
|
6
6
|
readonly #el = inject<ElementRef<HTMLElement>>(ElementRef);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './attributes.directive';
|
|
2
|
+
export * from './kc-class.directive';
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
isDevMode,
|
|
10
10
|
Renderer2,
|
|
11
11
|
ɵstringify as stringify
|
|
12
|
-
} from
|
|
13
|
-
import { ClassKey } from
|
|
14
|
-
import { getKcClsx } from
|
|
15
|
-
import { ComponentReference } from
|
|
12
|
+
} from '@angular/core';
|
|
13
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
+
import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
15
|
+
import { ComponentReference } from '../classes/component-reference.class';
|
|
16
16
|
|
|
17
17
|
interface CssClassState {
|
|
18
18
|
// PERF: could use a bit mask to represent state as all fields are boolean flags
|
|
@@ -35,7 +35,7 @@ type NgClassSupportedTypes =
|
|
|
35
35
|
| null
|
|
36
36
|
| undefined;
|
|
37
37
|
|
|
38
|
-
@Directive({ selector:
|
|
38
|
+
@Directive({ selector: '[kcClass]', standalone: true })
|
|
39
39
|
export class KcClassDirective implements DoCheck {
|
|
40
40
|
private initialClasses: string[] = [];
|
|
41
41
|
private rawClass: NgClassSupportedTypes;
|
|
@@ -46,22 +46,22 @@ export class KcClassDirective implements DoCheck {
|
|
|
46
46
|
readonly #el = inject(ElementRef);
|
|
47
47
|
readonly #host = inject(ComponentReference);
|
|
48
48
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
49
|
-
@Input(
|
|
49
|
+
@Input('class')
|
|
50
50
|
set klass(value: string) {
|
|
51
51
|
this.initialClasses = value != null ? value.trim().split(/\s+/) : [];
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
55
|
-
@Input(
|
|
55
|
+
@Input('ngClass')
|
|
56
56
|
set ngClass(value: string | NgClassSupportedTypes) {
|
|
57
|
-
this.rawClass = typeof value ===
|
|
57
|
+
this.rawClass = typeof value === 'string' ? value.trim().split(/\s+/) : value;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
61
|
-
@Input(
|
|
61
|
+
@Input('kcClass')
|
|
62
62
|
set kcClass(value: ClassKey | KcClassSupportedTypes) {
|
|
63
63
|
this.rawKcClass =
|
|
64
|
-
typeof value ===
|
|
64
|
+
typeof value === 'string' ? (value.trim().split(/\s+/) as ClassKey[]) : value;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
ngDoCheck(): void {
|
|
@@ -146,7 +146,7 @@ export class KcClassDirective implements DoCheck {
|
|
|
146
146
|
|
|
147
147
|
private _toggleClass(klass: string, enabled: boolean): void {
|
|
148
148
|
if (isDevMode()) {
|
|
149
|
-
if (typeof klass !==
|
|
149
|
+
if (typeof klass !== 'string') {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`NgClass can only toggle CSS classes expressed as strings, got ${stringify(klass)}`
|
|
152
152
|
);
|
package/src/login/i18n.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenericI18n_noJsx } from
|
|
2
|
-
import { MessageKey as MessageKey_defaultSet } from
|
|
1
|
+
import type { GenericI18n_noJsx } from 'keycloakify/login/i18n/noJsx/GenericI18n_noJsx';
|
|
2
|
+
import { MessageKey as MessageKey_defaultSet } from 'keycloakify/login/i18n/messages_defaultSet/types';
|
|
3
3
|
/** INTERNAL: DO NOT IMPORT THIS */
|
|
4
4
|
export type I18n = GenericI18n_noJsx<MessageKey_defaultSet, string>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject } from
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
2
|
import {
|
|
3
3
|
CLASSES,
|
|
4
4
|
KC_CONTEXT,
|
|
5
5
|
USE_DEFAULT_CSS
|
|
6
|
-
} from
|
|
7
|
-
import { ClassKey } from
|
|
8
|
-
import { KcContext } from
|
|
9
|
-
import { ComponentReference } from
|
|
10
|
-
import { TemplateComponent } from
|
|
11
|
-
import { KcClassDirective } from
|
|
12
|
-
import { MsgStrPipe } from
|
|
6
|
+
} from '@keycloakify/angular/lib/public-api';
|
|
7
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
8
|
+
import { KcContext } from 'keycloakify/login/KcContext';
|
|
9
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
10
|
+
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
11
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
12
|
+
import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
13
13
|
|
|
14
14
|
@Component({
|
|
15
15
|
standalone: true,
|
|
16
16
|
imports: [MsgStrPipe, TemplateComponent, KcClassDirective],
|
|
17
|
-
selector:
|
|
18
|
-
templateUrl:
|
|
17
|
+
selector: 'kc-root',
|
|
18
|
+
templateUrl: 'code.component.html',
|
|
19
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
20
|
providers: [
|
|
21
21
|
{
|
|
@@ -25,7 +25,7 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
|
25
25
|
]
|
|
26
26
|
})
|
|
27
27
|
export class CodeComponent extends ComponentReference {
|
|
28
|
-
kcContext = inject<Extract<KcContext, { pageId:
|
|
28
|
+
kcContext = inject<Extract<KcContext, { pageId: 'code.ftl' }>>(KC_CONTEXT);
|
|
29
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
30
|
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
31
31
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject } from
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
|
|
2
2
|
import {
|
|
3
3
|
CLASSES,
|
|
4
4
|
KC_CONTEXT,
|
|
5
5
|
USE_DEFAULT_CSS
|
|
6
|
-
} from
|
|
7
|
-
import { ClassKey } from
|
|
8
|
-
import { KcContext } from
|
|
9
|
-
import { ComponentReference } from
|
|
10
|
-
import { TemplateComponent } from
|
|
11
|
-
import { KcClassDirective } from
|
|
12
|
-
import { MsgStrPipe } from
|
|
6
|
+
} from '@keycloakify/angular/lib/public-api';
|
|
7
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
8
|
+
import { KcContext } from 'keycloakify/login/KcContext';
|
|
9
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
10
|
+
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
11
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives';
|
|
12
|
+
import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
13
13
|
|
|
14
14
|
@Component({
|
|
15
15
|
standalone: true,
|
|
16
16
|
imports: [TemplateComponent, MsgStrPipe, KcClassDirective],
|
|
17
|
-
selector:
|
|
18
|
-
templateUrl:
|
|
17
|
+
selector: 'kc-root',
|
|
18
|
+
templateUrl: 'delete-account-confirm.component.html',
|
|
19
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
20
|
providers: [
|
|
21
21
|
{
|
|
@@ -26,7 +26,7 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
|
26
26
|
})
|
|
27
27
|
export class DeleteAccountConfirmComponent extends ComponentReference {
|
|
28
28
|
kcContext =
|
|
29
|
-
inject<Extract<KcContext, { pageId:
|
|
29
|
+
inject<Extract<KcContext, { pageId: 'delete-account-confirm.ftl' }>>(KC_CONTEXT);
|
|
30
30
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
31
31
|
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
32
32
|
}
|