@keycloakify/angular 0.0.1-rc.0
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/LICENSE +21 -0
- package/README.md +1 -0
- package/lib/i18n.d.ts +4 -0
- package/lib/i18n.js +6 -0
- package/lib/i18n.js.map +1 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.js +2 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/script.model.d.ts +6 -0
- package/lib/models/script.model.js +2 -0
- package/lib/models/script.model.js.map +1 -0
- package/lib/providers/keycloakify-angular.providers.d.ts +150 -0
- package/lib/providers/keycloakify-angular.providers.js +58 -0
- package/lib/providers/keycloakify-angular.providers.js.map +1 -0
- package/lib/public-api.d.ts +10 -0
- package/lib/public-api.js +4 -0
- package/lib/public-api.js.map +1 -0
- package/lib/services/i18n.service.d.ts +3 -0
- package/lib/services/i18n.service.js +14 -0
- package/lib/services/i18n.service.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/resource-injector.service.d.ts +7 -0
- package/lib/services/resource-injector.service.js +57 -0
- package/lib/services/resource-injector.service.js.map +1 -0
- package/login/DefaultPage.d.ts +260 -0
- package/login/DefaultPage.js +121 -0
- package/login/DefaultPage.js.map +1 -0
- package/login/KcContext.d.ts +1 -0
- package/login/KcContext.js +2 -0
- package/login/KcContext.js.map +1 -0
- package/login/classes/component-reference.class.d.ts +5 -0
- package/login/classes/component-reference.class.js +3 -0
- package/login/classes/component-reference.class.js.map +1 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +13 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +24 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +123 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +1 -0
- package/login/components/field-errors/field-errors.component.d.ts +11 -0
- package/login/components/field-errors/field-errors.component.html +15 -0
- package/login/components/field-errors/field-errors.component.js +45 -0
- package/login/components/field-errors/field-errors.component.js.map +1 -0
- package/login/components/group-label/group-label.component.d.ts +10 -0
- package/login/components/group-label/group-label.component.html +30 -0
- package/login/components/group-label/group-label.component.js +55 -0
- package/login/components/group-label/group-label.component.js.map +1 -0
- package/login/components/index.d.ts +11 -0
- package/login/components/index.js +12 -0
- package/login/components/index.js.map +1 -0
- package/login/components/input-field-by-type/input-field-by-type.component.d.ts +13 -0
- package/login/components/input-field-by-type/input-field-by-type.component.html +63 -0
- package/login/components/input-field-by-type/input-field-by-type.component.js +63 -0
- package/login/components/input-field-by-type/input-field-by-type.component.js.map +1 -0
- package/login/components/input-tag/input-tag.component.d.ts +17 -0
- package/login/components/input-tag/input-tag.component.html +49 -0
- package/login/components/input-tag/input-tag.component.js +107 -0
- package/login/components/input-tag/input-tag.component.js.map +1 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +23 -0
- package/login/components/input-tag-selects/input-tag-selects.component.html +29 -0
- package/login/components/input-tag-selects/input-tag-selects.component.js +132 -0
- package/login/components/input-tag-selects/input-tag-selects.component.js.map +1 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +6 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.html +19 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +43 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +1 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +12 -0
- package/login/components/password-wrapper/password-wrapper.component.html +15 -0
- package/login/components/password-wrapper/password-wrapper.component.js +57 -0
- package/login/components/password-wrapper/password-wrapper.component.js.map +1 -0
- package/login/components/select-tag/select-tag.component.d.ts +16 -0
- package/login/components/select-tag/select-tag.component.html +31 -0
- package/login/components/select-tag/select-tag.component.js +97 -0
- package/login/components/select-tag/select-tag.component.js.map +1 -0
- package/login/components/textarea-tag/textarea-tag.component.d.ts +14 -0
- package/login/components/textarea-tag/textarea-tag.component.html +18 -0
- package/login/components/textarea-tag/textarea-tag.component.js +63 -0
- package/login/components/textarea-tag/textarea-tag.component.js.map +1 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +25 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +85 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +74 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +1 -0
- package/login/containers/template.component.d.ts +28 -0
- package/login/containers/template.component.html +203 -0
- package/login/containers/template.component.js +78 -0
- package/login/containers/template.component.js.map +1 -0
- package/login/directives/attributes.directive.d.ts +5 -0
- package/login/directives/attributes.directive.js +34 -0
- package/login/directives/attributes.directive.js.map +1 -0
- package/login/directives/index.d.ts +2 -0
- package/login/directives/index.js +3 -0
- package/login/directives/index.js.map +1 -0
- package/login/directives/kc-class.directive.d.ts +23 -0
- package/login/directives/kc-class.directive.js +146 -0
- package/login/directives/kc-class.directive.js.map +1 -0
- package/login/i18n.d.ts +4 -0
- package/login/i18n.js +2 -0
- package/login/i18n.js.map +1 -0
- package/login/pages/code/code.component.d.ts +8 -0
- package/login/pages/code/code.component.html +26 -0
- package/login/pages/code/code.component.js +38 -0
- package/login/pages/code/code.component.js.map +1 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +8 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.html +46 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +38 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +1 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +13 -0
- package/login/pages/delete-credential/delete-credential.component.html +35 -0
- package/login/pages/delete-credential/delete-credential.component.js +43 -0
- package/login/pages/delete-credential/delete-credential.component.js.map +1 -0
- package/login/pages/error/error.component.d.ts +8 -0
- package/login/pages/error/error.component.html +25 -0
- package/login/pages/error/error.component.js +38 -0
- package/login/pages/error/error.component.js.map +1 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +14 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.html +35 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +47 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +1 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +15 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +41 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +54 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +1 -0
- package/login/pages/info/info.component.d.ts +20 -0
- package/login/pages/info/info.component.html +54 -0
- package/login/pages/info/info.component.js +61 -0
- package/login/pages/info/info.component.js.map +1 -0
- package/login/pages/login/login.component.d.ts +14 -0
- package/login/pages/login/login.component.html +212 -0
- package/login/pages/login/login.component.js +58 -0
- package/login/pages/login/login.component.js.map +1 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +13 -0
- package/login/pages/login-config-totp/login-config-totp.component.html +190 -0
- package/login/pages/login-config-totp/login-config-totp.component.js +53 -0
- package/login/pages/login-config-totp/login-config-totp.component.js.map +1 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +13 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +41 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +43 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +1 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +13 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +40 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +43 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +1 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +13 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.html +37 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +43 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +1 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +13 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.html +92 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +44 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +1 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +13 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +63 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +43 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +1 -0
- package/login/pages/login-otp/login-otp.component.d.ts +13 -0
- package/login/pages/login-otp/login-otp.component.html +103 -0
- package/login/pages/login-otp/login-otp.component.js +44 -0
- package/login/pages/login-otp/login-otp.component.js.map +1 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +13 -0
- package/login/pages/login-page-expired/login-page-expired.component.html +35 -0
- package/login/pages/login-page-expired/login-page-expired.component.js +42 -0
- package/login/pages/login-page-expired/login-page-expired.component.js.map +1 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +16 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +203 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +91 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +1 -0
- package/login/pages/login-password/login-password.component.d.ts +14 -0
- package/login/pages/login-password/login-password.component.html +90 -0
- package/login/pages/login-password/login-password.component.js +52 -0
- package/login/pages/login-password/login-password.component.js.map +1 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +15 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +155 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +51 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +1 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +13 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +76 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +44 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +1 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +13 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.html +65 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.js +43 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.js.map +1 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +13 -0
- package/login/pages/login-reset-password/login-reset-password.component.html +95 -0
- package/login/pages/login-reset-password/login-reset-password.component.js +44 -0
- package/login/pages/login-reset-password/login-reset-password.component.js.map +1 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +13 -0
- package/login/pages/login-update-password/login-update-password.component.html +116 -0
- package/login/pages/login-update-password/login-update-password.component.js +53 -0
- package/login/pages/login-update-password/login-update-password.component.js.map +1 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +14 -0
- package/login/pages/login-update-profile/login-update-profile.component.html +59 -0
- package/login/pages/login-update-profile/login-update-profile.component.js +50 -0
- package/login/pages/login-update-profile/login-update-profile.component.js.map +1 -0
- package/login/pages/login-username/login-username.component.d.ts +14 -0
- package/login/pages/login-username/login-username.component.html +161 -0
- package/login/pages/login-username/login-username.component.js +56 -0
- package/login/pages/login-username/login-username.component.js.map +1 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +13 -0
- package/login/pages/login-verify-email/login-verify-email.component.html +27 -0
- package/login/pages/login-verify-email/login-verify-email.component.js +43 -0
- package/login/pages/login-verify-email/login-verify-email.component.js.map +1 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +13 -0
- package/login/pages/login-x509-info/login-x509-info.component.html +102 -0
- package/login/pages/login-x509-info/login-x509-info.component.js +43 -0
- package/login/pages/login-x509-info/login-x509-info.component.js.map +1 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +13 -0
- package/login/pages/logout-confirm/logout-confirm.component.html +59 -0
- package/login/pages/logout-confirm/logout-confirm.component.js +43 -0
- package/login/pages/logout-confirm/logout-confirm.component.js.map +1 -0
- package/login/pages/register/register.component.d.ts +16 -0
- package/login/pages/register/register.component.html +126 -0
- package/login/pages/register/register.component.js +62 -0
- package/login/pages/register/register.component.js.map +1 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +16 -0
- package/login/pages/saml-post-form/saml-post-form.component.html +51 -0
- package/login/pages/saml-post-form/saml-post-form.component.js +55 -0
- package/login/pages/saml-post-form/saml-post-form.component.js.map +1 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +13 -0
- package/login/pages/select-authenticator/select-authenticator.component.html +49 -0
- package/login/pages/select-authenticator/select-authenticator.component.js +51 -0
- package/login/pages/select-authenticator/select-authenticator.component.js.map +1 -0
- package/login/pages/terms/terms.component.d.ts +13 -0
- package/login/pages/terms/terms.component.html +36 -0
- package/login/pages/terms/terms.component.js +43 -0
- package/login/pages/terms/terms.component.js.map +1 -0
- package/login/pages/update-email/update-email.component.d.ts +14 -0
- package/login/pages/update-email/update-email.component.html +58 -0
- package/login/pages/update-email/update-email.component.js +52 -0
- package/login/pages/update-email/update-email.component.js.map +1 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +20 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +162 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +93 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +1 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +14 -0
- package/login/pages/webauthn-error/webauthn-error.component.html +60 -0
- package/login/pages/webauthn-error/webauthn-error.component.js +57 -0
- package/login/pages/webauthn-error/webauthn-error.component.js.map +1 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +19 -0
- package/login/pages/webauthn-register/webauthn-register.component.html +82 -0
- package/login/pages/webauthn-register/webauthn-register.component.js +86 -0
- package/login/pages/webauthn-register/webauthn-register.component.js.map +1 -0
- package/login/pipes/advanced-msg-str.pipe.d.ts +5 -0
- package/login/pipes/advanced-msg-str.pipe.js +31 -0
- package/login/pipes/advanced-msg-str.pipe.js.map +1 -0
- package/login/pipes/index.d.ts +6 -0
- package/login/pipes/index.js +7 -0
- package/login/pipes/index.js.map +1 -0
- package/login/pipes/input-type.pipe.d.ts +4 -0
- package/login/pipes/input-type.pipe.js +23 -0
- package/login/pipes/input-type.pipe.js.map +1 -0
- package/login/pipes/kc-sanitize.pipe.d.ts +7 -0
- package/login/pipes/kc-sanitize.pipe.js +36 -0
- package/login/pipes/kc-sanitize.pipe.js.map +1 -0
- package/login/pipes/msg-str.pipe.d.ts +6 -0
- package/login/pipes/msg-str.pipe.js +31 -0
- package/login/pipes/msg-str.pipe.js.map +1 -0
- package/login/pipes/to-array.pipe.d.ts +4 -0
- package/login/pipes/to-array.pipe.js +24 -0
- package/login/pipes/to-array.pipe.js.map +1 -0
- package/login/pipes/to-number.pipe.d.ts +4 -0
- package/login/pipes/to-number.pipe.js +23 -0
- package/login/pipes/to-number.pipe.js.map +1 -0
- package/login/services/index.d.ts +2 -0
- package/login/services/index.js +3 -0
- package/login/services/index.js.map +1 -0
- package/login/services/login-resource-injector.service.d.ts +8 -0
- package/login/services/login-resource-injector.service.js +71 -0
- package/login/services/login-resource-injector.service.js.map +1 -0
- package/login/services/user-profile-form.service.d.ts +82 -0
- package/login/services/user-profile-form.service.js +1031 -0
- package/login/services/user-profile-form.service.js.map +1 -0
- package/package.json +450 -0
- package/src/lib/i18n.ts +9 -0
- package/src/lib/models/index.ts +1 -0
- package/src/lib/models/script.model.ts +6 -0
- package/src/lib/providers/keycloakify-angular.providers.ts +92 -0
- package/src/lib/public-api.ts +12 -0
- package/src/lib/services/i18n.service.ts +5 -0
- package/src/lib/services/index.ts +2 -0
- package/src/lib/services/resource-injector.service.ts +50 -0
- package/src/login/DefaultPage.ts +208 -0
- package/src/login/KcContext.ts +1 -0
- package/src/login/classes/component-reference.class.ts +5 -0
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +24 -0
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +144 -0
- package/src/login/components/field-errors/field-errors.component.html +15 -0
- package/src/login/components/field-errors/field-errors.component.ts +41 -0
- package/src/login/components/group-label/group-label.component.html +30 -0
- package/src/login/components/group-label/group-label.component.ts +50 -0
- package/src/login/components/index.ts +11 -0
- package/src/login/components/input-field-by-type/input-field-by-type.component.html +63 -0
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +67 -0
- package/src/login/components/input-tag/input-tag.component.html +49 -0
- package/src/login/components/input-tag/input-tag.component.ts +108 -0
- package/src/login/components/input-tag-selects/input-tag-selects.component.html +29 -0
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +150 -0
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +19 -0
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +31 -0
- package/src/login/components/password-wrapper/password-wrapper.component.html +15 -0
- package/src/login/components/password-wrapper/password-wrapper.component.ts +61 -0
- package/src/login/components/select-tag/select-tag.component.html +31 -0
- package/src/login/components/select-tag/select-tag.component.ts +109 -0
- package/src/login/components/textarea-tag/textarea-tag.component.html +18 -0
- package/src/login/components/textarea-tag/textarea-tag.component.ts +63 -0
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +85 -0
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +84 -0
- package/src/login/containers/template.component.html +203 -0
- package/src/login/containers/template.component.ts +94 -0
- package/src/login/directives/attributes.directive.ts +23 -0
- package/src/login/directives/index.ts +2 -0
- package/src/login/directives/kc-class.directive.ts +167 -0
- package/src/login/i18n.ts +4 -0
- package/src/login/pages/code/code.component.html +26 -0
- package/src/login/pages/code/code.component.ts +31 -0
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +46 -0
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +32 -0
- package/src/login/pages/delete-credential/delete-credential.component.html +35 -0
- package/src/login/pages/delete-credential/delete-credential.component.ts +43 -0
- package/src/login/pages/error/error.component.html +25 -0
- package/src/login/pages/error/error.component.ts +31 -0
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +35 -0
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +49 -0
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +41 -0
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +55 -0
- package/src/login/pages/info/info.component.html +54 -0
- package/src/login/pages/info/info.component.ts +65 -0
- package/src/login/pages/login/login.component.html +212 -0
- package/src/login/pages/login/login.component.ts +61 -0
- package/src/login/pages/login-config-totp/login-config-totp.component.html +190 -0
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +57 -0
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +41 -0
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +43 -0
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +40 -0
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +45 -0
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +37 -0
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +43 -0
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +92 -0
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +44 -0
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +63 -0
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +45 -0
- package/src/login/pages/login-otp/login-otp.component.html +103 -0
- package/src/login/pages/login-otp/login-otp.component.ts +43 -0
- package/src/login/pages/login-page-expired/login-page-expired.component.html +35 -0
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +42 -0
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +203 -0
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +101 -0
- package/src/login/pages/login-password/login-password.component.html +90 -0
- package/src/login/pages/login-password/login-password.component.ts +53 -0
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +155 -0
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +55 -0
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +76 -0
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +47 -0
- package/src/login/pages/login-reset-otp/login-reset-otp.component.html +65 -0
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +42 -0
- package/src/login/pages/login-reset-password/login-reset-password.component.html +95 -0
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +44 -0
- package/src/login/pages/login-update-password/login-update-password.component.html +116 -0
- package/src/login/pages/login-update-password/login-update-password.component.ts +56 -0
- package/src/login/pages/login-update-profile/login-update-profile.component.html +59 -0
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +52 -0
- package/src/login/pages/login-username/login-username.component.html +161 -0
- package/src/login/pages/login-username/login-username.component.ts +56 -0
- package/src/login/pages/login-verify-email/login-verify-email.component.html +27 -0
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +43 -0
- package/src/login/pages/login-x509-info/login-x509-info.component.html +102 -0
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +42 -0
- package/src/login/pages/logout-confirm/logout-confirm.component.html +59 -0
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +42 -0
- package/src/login/pages/register/register.component.html +126 -0
- package/src/login/pages/register/register.component.ts +62 -0
- package/src/login/pages/saml-post-form/saml-post-form.component.html +51 -0
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +58 -0
- package/src/login/pages/select-authenticator/select-authenticator.component.html +49 -0
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +51 -0
- package/src/login/pages/terms/terms.component.html +36 -0
- package/src/login/pages/terms/terms.component.ts +42 -0
- package/src/login/pages/update-email/update-email.component.html +58 -0
- package/src/login/pages/update-email/update-email.component.ts +52 -0
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +162 -0
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +106 -0
- package/src/login/pages/webauthn-error/webauthn-error.component.html +60 -0
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +57 -0
- package/src/login/pages/webauthn-register/webauthn-register.component.html +82 -0
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +106 -0
- package/src/login/pipes/advanced-msg-str.pipe.ts +13 -0
- package/src/login/pipes/index.ts +6 -0
- package/src/login/pipes/input-type.pipe.ts +15 -0
- package/src/login/pipes/kc-sanitize.pipe.ts +36 -0
- package/src/login/pipes/msg-str.pipe.ts +14 -0
- package/src/login/pipes/to-array.pipe.ts +15 -0
- package/src/login/pipes/to-number.pipe.ts +13 -0
- package/src/login/services/index.ts +2 -0
- package/src/login/services/login-resource-injector.service.ts +72 -0
- package/src/login/services/user-profile-form.service.ts +1504 -0
- package/src/tsconfig.json +18 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@let formFieldStates = formState().formFieldStates;
|
|
2
|
+
|
|
3
|
+
@for (fieldState of formFieldStates; track fieldState.attribute) {
|
|
4
|
+
<!-- [groupNameRef]="groupNameRef"
|
|
5
|
+
TODO: verify this logic
|
|
6
|
+
-->
|
|
7
|
+
<kc-group-label [attribute]="fieldState.attribute"> </kc-group-label>
|
|
8
|
+
|
|
9
|
+
@if (beforeField) {
|
|
10
|
+
<ng-container
|
|
11
|
+
[ngTemplateOutlet]="beforeField"
|
|
12
|
+
[ngTemplateOutletContext]="{
|
|
13
|
+
attribute: fieldState.attribute,
|
|
14
|
+
valueOrValues: fieldState.valueOrValues,
|
|
15
|
+
displayableErrors: fieldState.displayableErrors,
|
|
16
|
+
}"
|
|
17
|
+
>
|
|
18
|
+
</ng-container>
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
<div
|
|
22
|
+
[kcClass]="'kcFormGroupClass'"
|
|
23
|
+
[style.display]="fieldState.attribute.name === 'password-confirm' && !doMakeUserConfirmPassword ? 'none' : 'block'"
|
|
24
|
+
>
|
|
25
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
26
|
+
<label
|
|
27
|
+
[for]="fieldState.attribute.name"
|
|
28
|
+
[kcClass]="'kcLabelClass'"
|
|
29
|
+
>
|
|
30
|
+
{{ fieldState.attribute.displayName ?? '' | advancedMsgStr }}
|
|
31
|
+
@if (fieldState.attribute.required) {
|
|
32
|
+
*
|
|
33
|
+
}
|
|
34
|
+
</label>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div [kcClass]="'kcInputWrapperClass'">
|
|
38
|
+
@if (fieldState.attribute.annotations.inputHelperTextBefore) {
|
|
39
|
+
<div
|
|
40
|
+
[kcClass]="'kcInputHelperTextBeforeClass'"
|
|
41
|
+
[id]="'form-help-text-before-' + fieldState.attribute.name"
|
|
42
|
+
aria-live="polite"
|
|
43
|
+
>
|
|
44
|
+
{{ fieldState.attribute.annotations.inputHelperTextBefore | advancedMsgStr }}
|
|
45
|
+
</div>
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
<kc-input-field-by-type
|
|
49
|
+
[attribute]="fieldState.attribute"
|
|
50
|
+
[valueOrValues]="fieldState.valueOrValues"
|
|
51
|
+
[displayableErrors]="fieldState.displayableErrors"
|
|
52
|
+
(dispatchFormAction)="onDispatch($event)"
|
|
53
|
+
>
|
|
54
|
+
</kc-input-field-by-type>
|
|
55
|
+
|
|
56
|
+
<kc-field-errors
|
|
57
|
+
[attribute]="fieldState.attribute"
|
|
58
|
+
[displayableErrors]="fieldState.displayableErrors"
|
|
59
|
+
>
|
|
60
|
+
</kc-field-errors>
|
|
61
|
+
@if (fieldState.attribute.annotations.inputHelperTextAfter) {
|
|
62
|
+
<div
|
|
63
|
+
[kcClass]="'kcInputHelperTextAfterClass'"
|
|
64
|
+
[id]="'form-help-text-after-' + fieldState.attribute.name"
|
|
65
|
+
aria-live="polite"
|
|
66
|
+
>
|
|
67
|
+
{{ fieldState.attribute.annotations.inputHelperTextAfter | advancedMsgStr }}
|
|
68
|
+
</div>
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@if (afterField) {
|
|
72
|
+
<ng-container
|
|
73
|
+
[ngTemplateOutlet]="afterField"
|
|
74
|
+
[ngTemplateOutletContext]="{
|
|
75
|
+
attribute: fieldState.attribute,
|
|
76
|
+
valueOrValues: fieldState.valueOrValues,
|
|
77
|
+
displayableErrors: fieldState.displayableErrors,
|
|
78
|
+
}"
|
|
79
|
+
>
|
|
80
|
+
</ng-container>
|
|
81
|
+
}
|
|
82
|
+
<!-- NOTE: Downloading of html5DataAnnotations scripts is done in the useUserProfileForm hook -->
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var UserProfileFormFieldsComponent_1;
|
|
8
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
9
|
+
import { ChangeDetectionStrategy, Component, ContentChild, effect, forwardRef, inject, output } from "@angular/core";
|
|
10
|
+
import { DO_MAKE_USER_CONFIRM_PASSWORD, KC_CONTEXT, CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
11
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
12
|
+
import { KcClassDirective } from "../../../login/directives/kc-class.directive";
|
|
13
|
+
import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
|
|
14
|
+
import { UserProfileFormService } from "../../../login/services/user-profile-form.service";
|
|
15
|
+
import { FieldErrorsComponent } from "../../../login/components/field-errors/field-errors.component";
|
|
16
|
+
import { GroupLabelComponent } from "../../../login/components/group-label/group-label.component";
|
|
17
|
+
import { InputFieldByTypeComponent } from "../../../login/components/input-field-by-type/input-field-by-type.component";
|
|
18
|
+
let UserProfileFormFieldsComponent = UserProfileFormFieldsComponent_1 = class UserProfileFormFieldsComponent extends ComponentReference {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.kcContext = inject(KC_CONTEXT);
|
|
22
|
+
this.userProfileFormService = inject(UserProfileFormService);
|
|
23
|
+
this.doMakeUserConfirmPassword = inject(DO_MAKE_USER_CONFIRM_PASSWORD);
|
|
24
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
25
|
+
this.classes = inject(CLASSES);
|
|
26
|
+
this.onIsFormSubmittable = output();
|
|
27
|
+
this.formState = this.userProfileFormService.formState;
|
|
28
|
+
effect(() => {
|
|
29
|
+
const isFormSubmittable = this.formState().isFormSubmittable;
|
|
30
|
+
this.onIsFormSubmittable.emit(isFormSubmittable);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
onDispatch(formAction) {
|
|
34
|
+
this.userProfileFormService.dispatchFormAction(formAction);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
__decorate([
|
|
38
|
+
ContentChild("beforField")
|
|
39
|
+
], UserProfileFormFieldsComponent.prototype, "beforeField", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
ContentChild("afterField")
|
|
42
|
+
], UserProfileFormFieldsComponent.prototype, "afterField", void 0);
|
|
43
|
+
UserProfileFormFieldsComponent = UserProfileFormFieldsComponent_1 = __decorate([
|
|
44
|
+
Component({
|
|
45
|
+
standalone: true,
|
|
46
|
+
styles: [
|
|
47
|
+
`
|
|
48
|
+
:host {
|
|
49
|
+
display: contents;
|
|
50
|
+
}
|
|
51
|
+
`
|
|
52
|
+
],
|
|
53
|
+
imports: [
|
|
54
|
+
KcClassDirective,
|
|
55
|
+
FieldErrorsComponent,
|
|
56
|
+
InputFieldByTypeComponent,
|
|
57
|
+
GroupLabelComponent,
|
|
58
|
+
NgTemplateOutlet,
|
|
59
|
+
AdvancedMsgStrPipe
|
|
60
|
+
],
|
|
61
|
+
selector: "kc-user-profile-form-fields",
|
|
62
|
+
templateUrl: "user-profile-form-fields.component.html",
|
|
63
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
64
|
+
providers: [
|
|
65
|
+
UserProfileFormService,
|
|
66
|
+
{
|
|
67
|
+
provide: ComponentReference,
|
|
68
|
+
useExisting: forwardRef(() => UserProfileFormFieldsComponent_1)
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
})
|
|
72
|
+
], UserProfileFormFieldsComponent);
|
|
73
|
+
export { UserProfileFormFieldsComponent };
|
|
74
|
+
//# sourceMappingURL=user-profile-form-fields.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile-form-fields.component.js","sourceRoot":"","sources":["../../../src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,E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AC7B,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC/D,CAAC;CACJ,CAAA;AAd+B;IAA3B,YAAY,CAAC,YAAY,CAAC;mEAA+C;AAC9C;IAA3B,YAAY,CAAC,YAAY,CAAC;kEAA8C;AAZhE,8BAA8B;IA5B1C,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE;YACL,gBAAgB;YAChB,oBAAoB;YACpB,yBAAyB;YACzB,mBAAmB;YACnB,gBAAgB;YAChB,kBAAkB;SACrB;QACD,QAAQ,EAAE,6BAA6B;QACvC,WAAW,EAAE,yCAAyC;QACtD,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP,sBAAsB;YACtB;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,gCAA8B,CAAC;aAChE;SACJ;KACJ,CAAC;GACW,8BAA8B,CAyB1C;SAzBY,8BAA8B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit, Renderer2 } from "@angular/core";
|
|
2
|
+
import { Meta, Title } from "@angular/platform-browser";
|
|
3
|
+
import type { I18n } from "../../login/i18n";
|
|
4
|
+
import { KcContext } from "keycloakify/login/KcContext/KcContext";
|
|
5
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
6
|
+
import { Observable } from "rxjs";
|
|
7
|
+
import { ComponentReference } from "../../login/classes/component-reference.class";
|
|
8
|
+
import { LoginResourceInjectorService } from "../../login/services/login-resource-injector.service";
|
|
9
|
+
export declare class TemplateComponent extends ComponentReference implements OnInit {
|
|
10
|
+
i18n: I18n;
|
|
11
|
+
renderer: Renderer2;
|
|
12
|
+
meta: Meta;
|
|
13
|
+
title: Title;
|
|
14
|
+
kcContext: KcContext;
|
|
15
|
+
doUseDefaultCss: boolean;
|
|
16
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
17
|
+
loginResourceInjectorService: LoginResourceInjectorService;
|
|
18
|
+
displayInfo: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
displayMessage: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
displayRequiredFields: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
documentTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
22
|
+
bodyClassName: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
+
isReadyToRender$: Observable<boolean>;
|
|
24
|
+
constructor();
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
private applyKcIndexClasses;
|
|
27
|
+
tryAnotherWay(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
@let realm = kcContext.realm;
|
|
2
|
+
@let message = kcContext.message;
|
|
3
|
+
@let auth = kcContext.auth;
|
|
4
|
+
@let isAppInitiatedAction = kcContext.isAppInitiatedAction;
|
|
5
|
+
@let url = kcContext.url;
|
|
6
|
+
@let isReadyToRender = isReadyToRender$ | async;
|
|
7
|
+
|
|
8
|
+
@if (isReadyToRender) {
|
|
9
|
+
<div [kcClass]="'kcLoginClass'">
|
|
10
|
+
<div
|
|
11
|
+
id="kc-header"
|
|
12
|
+
[kcClass]="'kcHeaderClass'"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
id="kc-header-wrapper"
|
|
16
|
+
[kcClass]="'kcHeaderWrapperClass'"
|
|
17
|
+
>
|
|
18
|
+
<div [innerHTML]="realm?.displayNameHtml | kcSanitize: 'html'"></div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div [kcClass]="'kcFormCardClass'">
|
|
23
|
+
<header [kcClass]="'kcFormHeaderClass'">
|
|
24
|
+
<!-- Locale switcher -->
|
|
25
|
+
@if (i18n.enabledLanguages.length > 1) {
|
|
26
|
+
<div
|
|
27
|
+
id="kc-locale"
|
|
28
|
+
[kcClass]="'kcLocaleMainClass'"
|
|
29
|
+
>
|
|
30
|
+
<div
|
|
31
|
+
id="kc-locale-wrapper"
|
|
32
|
+
[kcClass]="'kcLocaleWrapperClass'"
|
|
33
|
+
>
|
|
34
|
+
<div
|
|
35
|
+
id="kc-locale-dropdown"
|
|
36
|
+
[kcClass]="'kcLocaleDropDownClass'"
|
|
37
|
+
class="menu-button-links"
|
|
38
|
+
>
|
|
39
|
+
<button
|
|
40
|
+
tabindex="1"
|
|
41
|
+
id="kc-current-locale-link"
|
|
42
|
+
[attr.aria-label]="'languages' | msgStr"
|
|
43
|
+
aria-haspopup="true"
|
|
44
|
+
aria-expanded="false"
|
|
45
|
+
aria-controls="language-switch1"
|
|
46
|
+
>
|
|
47
|
+
{{ i18n.currentLanguage.label }}
|
|
48
|
+
</button>
|
|
49
|
+
<ul
|
|
50
|
+
role="menu"
|
|
51
|
+
tabindex="-1"
|
|
52
|
+
aria-labelledby="kc-current-locale-link"
|
|
53
|
+
aria-activedescendant=""
|
|
54
|
+
id="language-switch1"
|
|
55
|
+
[kcClass]="'kcLocaleListClass'"
|
|
56
|
+
>
|
|
57
|
+
@for (entry of i18n.enabledLanguages; track entry; let idx = $index) {
|
|
58
|
+
<li
|
|
59
|
+
[kcClass]="'kcLocaleListItemClass'"
|
|
60
|
+
role="none"
|
|
61
|
+
>
|
|
62
|
+
<a
|
|
63
|
+
role="menuitem"
|
|
64
|
+
tabindex="-1"
|
|
65
|
+
[href]="entry.href"
|
|
66
|
+
[kcClass]="'kcLocaleItemClass'"
|
|
67
|
+
[id]="'language-' + idx"
|
|
68
|
+
>
|
|
69
|
+
{{ entry.label }}
|
|
70
|
+
</a>
|
|
71
|
+
</li>
|
|
72
|
+
}
|
|
73
|
+
</ul>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
<!-- Header content -->
|
|
80
|
+
<ng-template #node>
|
|
81
|
+
@if (auth && !auth.showUsername && !auth.showResetCredentials) {
|
|
82
|
+
<h1 id="kc-page-title">
|
|
83
|
+
<ng-content select="[headerNode]"></ng-content>
|
|
84
|
+
</h1>
|
|
85
|
+
} @else {
|
|
86
|
+
<div
|
|
87
|
+
id="kc-username"
|
|
88
|
+
[kcClass]="'kcFormGroupClass'"
|
|
89
|
+
>
|
|
90
|
+
<label id="kc-attempted-username">{{ auth?.attemptedUsername }}</label>
|
|
91
|
+
<a
|
|
92
|
+
id="reset-login"
|
|
93
|
+
[href]="url?.loginRestartFlowUrl"
|
|
94
|
+
[attr.aria-label]="'restartLoginTooltip' | msgStr"
|
|
95
|
+
>
|
|
96
|
+
<div class="kc-login-tooltip">
|
|
97
|
+
<i [kcClass]="'kcResetFlowIcon'"></i>
|
|
98
|
+
<span class="kc-tooltip-text">
|
|
99
|
+
{{ 'restartLoginTooltip' | msgStr }}
|
|
100
|
+
</span>
|
|
101
|
+
</div>
|
|
102
|
+
</a>
|
|
103
|
+
</div>
|
|
104
|
+
}
|
|
105
|
+
</ng-template>
|
|
106
|
+
|
|
107
|
+
@if (displayRequiredFields()) {
|
|
108
|
+
<div [kcClass]="'kcContentWrapperClass'">
|
|
109
|
+
<div
|
|
110
|
+
[kcClass]="'kcLabelWrapperClass'"
|
|
111
|
+
class="subtitle"
|
|
112
|
+
>
|
|
113
|
+
<span class="subtitle">
|
|
114
|
+
<span class="required">*</span>
|
|
115
|
+
{{ 'requiredFields' | msgStr }}
|
|
116
|
+
</span>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="col-md-10">
|
|
119
|
+
<ng-container [ngTemplateOutlet]="node"></ng-container>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
} @else {
|
|
123
|
+
<ng-container [ngTemplateOutlet]="node"></ng-container>
|
|
124
|
+
}
|
|
125
|
+
</header>
|
|
126
|
+
|
|
127
|
+
<div id="kc-content">
|
|
128
|
+
<div id="kc-content-wrapper">
|
|
129
|
+
<!-- Message display -->
|
|
130
|
+
@if (displayMessage() && message && (message.type !== 'warning' || !isAppInitiatedAction)) {
|
|
131
|
+
<div
|
|
132
|
+
[kcClass]="'kcAlertClass'"
|
|
133
|
+
[ngClass]="message.type === 'error' ? 'pf-m-danger' : 'pf-m-' + message.type"
|
|
134
|
+
[class]="'alert-' + message.type"
|
|
135
|
+
>
|
|
136
|
+
<div class="pf-c-alert__icon">
|
|
137
|
+
@switch (message.type) {
|
|
138
|
+
@case ('success') {
|
|
139
|
+
<span [kcClass]="'kcFeedbackSuccessIcon'"></span>
|
|
140
|
+
}
|
|
141
|
+
@case ('warning') {
|
|
142
|
+
<span [kcClass]="'kcFeedbackWarningIcon'"></span>
|
|
143
|
+
}
|
|
144
|
+
@case ('info') {
|
|
145
|
+
<span [kcClass]="'kcFeedbackInfoIcon'"></span>
|
|
146
|
+
}
|
|
147
|
+
@case ('error') {
|
|
148
|
+
<span [kcClass]="'kcFeedbackErrorIcon'"></span>
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
</div>
|
|
152
|
+
<span
|
|
153
|
+
[kcClass]="'kcAlertTitleClass'"
|
|
154
|
+
[innerHTML]="message.summary | kcSanitize: 'html'"
|
|
155
|
+
></span>
|
|
156
|
+
</div>
|
|
157
|
+
}
|
|
158
|
+
<!-- Content -->
|
|
159
|
+
<ng-content select="[content]"></ng-content>
|
|
160
|
+
@if (!!auth && auth?.showTryAnotherWayLink) {
|
|
161
|
+
<form
|
|
162
|
+
id="kc-select-try-another-way-form"
|
|
163
|
+
[action]="url?.loginAction"
|
|
164
|
+
method="post"
|
|
165
|
+
>
|
|
166
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
167
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
168
|
+
<input
|
|
169
|
+
type="hidden"
|
|
170
|
+
name="tryAnotherWay"
|
|
171
|
+
value="on"
|
|
172
|
+
/>
|
|
173
|
+
<a
|
|
174
|
+
id="try-another-way"
|
|
175
|
+
(click)="tryAnotherWay()"
|
|
176
|
+
>
|
|
177
|
+
{{ 'doTryAnotherWay' | msgStr }}
|
|
178
|
+
</a>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</form>
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
<ng-content select="[socialProvidersNode]"></ng-content>
|
|
185
|
+
<!-- Info display -->
|
|
186
|
+
@if (displayInfo()) {
|
|
187
|
+
<div
|
|
188
|
+
id="kc-info"
|
|
189
|
+
[kcClass]="'kcSignUpClass'"
|
|
190
|
+
>
|
|
191
|
+
<div
|
|
192
|
+
id="kc-info-wrapper"
|
|
193
|
+
[kcClass]="'kcInfoAreaWrapperClass'"
|
|
194
|
+
>
|
|
195
|
+
<ng-content select="[infoNode]"></ng-content>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
}
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var TemplateComponent_1;
|
|
8
|
+
import { AsyncPipe, NgTemplateOutlet } from "@angular/common";
|
|
9
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, Renderer2 } from "@angular/core";
|
|
10
|
+
import { Meta, Title } from "@angular/platform-browser";
|
|
11
|
+
import { CLASSES, I18N, KC_CONTEXT, USE_DEFAULT_CSS } from "../../lib/public-api";
|
|
12
|
+
import { getKcClsx } from "keycloakify/login/lib/kcClsx";
|
|
13
|
+
import { ComponentReference } from "../../login/classes/component-reference.class";
|
|
14
|
+
import { KcClassDirective } from "../../login/directives/kc-class.directive";
|
|
15
|
+
import { KcSanitizePipe } from "../../login/pipes";
|
|
16
|
+
import { MsgStrPipe } from "../../login/pipes/msg-str.pipe";
|
|
17
|
+
import { LoginResourceInjectorService } from "../../login/services/login-resource-injector.service";
|
|
18
|
+
let TemplateComponent = TemplateComponent_1 = class TemplateComponent extends ComponentReference {
|
|
19
|
+
constructor() {
|
|
20
|
+
var _a;
|
|
21
|
+
super();
|
|
22
|
+
this.i18n = inject(I18N);
|
|
23
|
+
this.renderer = inject(Renderer2);
|
|
24
|
+
this.meta = inject(Meta);
|
|
25
|
+
this.title = inject(Title);
|
|
26
|
+
this.kcContext = inject(KC_CONTEXT);
|
|
27
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
28
|
+
this.classes = inject(CLASSES);
|
|
29
|
+
this.loginResourceInjectorService = inject(LoginResourceInjectorService);
|
|
30
|
+
this.displayInfo = input(false);
|
|
31
|
+
this.displayMessage = input(true);
|
|
32
|
+
this.displayRequiredFields = input(false);
|
|
33
|
+
this.documentTitle = input();
|
|
34
|
+
this.bodyClassName = input();
|
|
35
|
+
this.title.setTitle((_a = this.documentTitle()) !== null && _a !== void 0 ? _a : this.i18n.msgStr("loginTitle", this.kcContext.realm.displayName));
|
|
36
|
+
this.isReadyToRender$ = this.loginResourceInjectorService.injectResource(this.doUseDefaultCss);
|
|
37
|
+
}
|
|
38
|
+
ngOnInit() {
|
|
39
|
+
this.applyKcIndexClasses();
|
|
40
|
+
}
|
|
41
|
+
applyKcIndexClasses() {
|
|
42
|
+
var _a;
|
|
43
|
+
const kcClsx = getKcClsx({
|
|
44
|
+
doUseDefaultCss: this.doUseDefaultCss,
|
|
45
|
+
classes: this.classes
|
|
46
|
+
}).kcClsx;
|
|
47
|
+
const kcBodyClass = (_a = this.bodyClassName()) !== null && _a !== void 0 ? _a : kcClsx("kcBodyClass");
|
|
48
|
+
const kcHtmlClass = kcClsx("kcHtmlClass");
|
|
49
|
+
const kcBodyClasses = kcBodyClass.split(/\s+/);
|
|
50
|
+
const kcHtmlClasses = kcHtmlClass.split(/\s+/);
|
|
51
|
+
kcBodyClasses.forEach(klass => {
|
|
52
|
+
this.renderer.addClass(document.body, klass);
|
|
53
|
+
});
|
|
54
|
+
kcHtmlClasses.forEach(klass => {
|
|
55
|
+
this.renderer.addClass(document.documentElement, klass);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
tryAnotherWay() {
|
|
59
|
+
document.forms["kc-select-try-another-way-form"].submit();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
TemplateComponent = TemplateComponent_1 = __decorate([
|
|
63
|
+
Component({
|
|
64
|
+
selector: "kc-login-template",
|
|
65
|
+
templateUrl: "./template.component.html",
|
|
66
|
+
standalone: true,
|
|
67
|
+
imports: [AsyncPipe, KcSanitizePipe, NgTemplateOutlet, KcClassDirective, MsgStrPipe],
|
|
68
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
|
+
providers: [
|
|
70
|
+
{
|
|
71
|
+
provide: ComponentReference,
|
|
72
|
+
useExisting: forwardRef(() => TemplateComponent_1)
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
})
|
|
76
|
+
], TemplateComponent);
|
|
77
|
+
export { TemplateComponent };
|
|
78
|
+
//# sourceMappingURL=template.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.component.js","sourceRoot":"","sources":["../../src/login/containers/template.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EAEL,SAAS,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,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AAE,2BAA2B;QACxC,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,CAAC;QACpF,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,mBAAiB,CAAC;aACnD;SACJ;KACJ,CAAC;GACW,iBAAiB,CAqD7B;SArDY,iBAAiB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _AttributesDirective_el, _AttributesDirective_renderer;
|
|
13
|
+
import { Directive, effect, ElementRef, inject, input, Renderer2 } from "@angular/core";
|
|
14
|
+
let AttributesDirective = class AttributesDirective {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.kcAttributes = input();
|
|
17
|
+
_AttributesDirective_el.set(this, inject(ElementRef));
|
|
18
|
+
_AttributesDirective_renderer.set(this, inject(Renderer2));
|
|
19
|
+
effect(() => {
|
|
20
|
+
const attributes = this.kcAttributes();
|
|
21
|
+
if (attributes) {
|
|
22
|
+
Object.entries(attributes).forEach(([key, value]) => {
|
|
23
|
+
__classPrivateFieldGet(this, _AttributesDirective_renderer, "f").setAttribute(__classPrivateFieldGet(this, _AttributesDirective_el, "f").nativeElement, `data-${key}`, value);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
_AttributesDirective_el = new WeakMap(), _AttributesDirective_renderer = new WeakMap();
|
|
30
|
+
AttributesDirective = __decorate([
|
|
31
|
+
Directive({ selector: "[kcAttributes]", standalone: true })
|
|
32
|
+
], AttributesDirective);
|
|
33
|
+
export { AttributesDirective };
|
|
34
|
+
//# sourceMappingURL=attributes.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes.directive.js","sourceRoot":"","sources":["../../src/login/directives/attributes.directive.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAGjF,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAK5B;QAJA,iBAAY,GAAG,KAAK,EAA0B,CAAC;QAC/C,kCAAe,MAAM,CAA0B,UAAU,CAAC,EAAC;QAC3D,wCAAqB,MAAM,CAAC,SAAS,CAAC,EAAC;QAGnC,MAAM,CAAC,GAAG,EAAE;YACR,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACvC,IAAI,UAAU,EAAE;gBACZ,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;oBAChD,uBAAA,IAAI,qCAAU,CAAC,YAAY,CACvB,uBAAA,IAAI,+BAAI,CAAC,aAAa,EACtB,QAAQ,GAAG,EAAE,EACb,KAAK,CACR,CAAC;gBACN,CAAC,CAAC,CAAC;aACN;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;;AAnBY,mBAAmB;IAD/B,SAAS,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAC/C,mBAAmB,CAmB/B;SAnBY,mBAAmB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DoCheck } from "@angular/core";
|
|
2
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
3
|
+
type KcClassSupportedTypes = ClassKey[] | Set<ClassKey> | Partial<{
|
|
4
|
+
[key in ClassKey]: any;
|
|
5
|
+
}> | null | undefined;
|
|
6
|
+
type NgClassSupportedTypes = string[] | Set<string> | {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
} | null | undefined;
|
|
9
|
+
export declare class KcClassDirective implements DoCheck {
|
|
10
|
+
#private;
|
|
11
|
+
private initialClasses;
|
|
12
|
+
private rawClass;
|
|
13
|
+
private rawKcClass;
|
|
14
|
+
private stateMap;
|
|
15
|
+
set klass(value: string);
|
|
16
|
+
set ngClass(value: string | NgClassSupportedTypes);
|
|
17
|
+
set kcClass(value: ClassKey | KcClassSupportedTypes);
|
|
18
|
+
ngDoCheck(): void;
|
|
19
|
+
private _updateState;
|
|
20
|
+
private _applyStateDiff;
|
|
21
|
+
private _toggleClass;
|
|
22
|
+
}
|
|
23
|
+
export {};
|