@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,19 @@
|
|
|
1
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
2
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
3
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
4
|
+
import { MsgStrPipe } from "../../../login/pipes/msg-str.pipe";
|
|
5
|
+
import { LoginResourceInjectorService } from "../../../login/services";
|
|
6
|
+
export declare class WebauthnRegisterComponent extends ComponentReference {
|
|
7
|
+
kcContext: KcContext.WebauthnRegister;
|
|
8
|
+
loginResourceInjectorService: LoginResourceInjectorService;
|
|
9
|
+
msgStr: MsgStrPipe;
|
|
10
|
+
doUseDefaultCss: boolean;
|
|
11
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
12
|
+
displayRequiredFields: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
documentTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
14
|
+
bodyClassName: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
+
displayInfo: boolean;
|
|
16
|
+
displayMessage: boolean;
|
|
17
|
+
authButtonId: string;
|
|
18
|
+
constructor();
|
|
19
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@let url = kcContext.url;
|
|
2
|
+
@let isSetRetry = kcContext.isSetRetry;
|
|
3
|
+
@let isAppInitiatedAction = kcContext.isAppInitiatedAction;
|
|
4
|
+
|
|
5
|
+
<kc-login-template
|
|
6
|
+
[displayInfo]="displayInfo"
|
|
7
|
+
[bodyClassName]="bodyClassName()"
|
|
8
|
+
[displayMessage]="displayMessage"
|
|
9
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
10
|
+
[documentTitle]="documentTitle()"
|
|
11
|
+
>
|
|
12
|
+
<ng-container headerNode>
|
|
13
|
+
<span [kcClass]="'kcWebAuthnKeyIcon'"></span>
|
|
14
|
+
{{ 'webauthn-registration-title' | msgStr }}
|
|
15
|
+
</ng-container>
|
|
16
|
+
<ng-container content>
|
|
17
|
+
<form
|
|
18
|
+
id="register"
|
|
19
|
+
[kcClass]="'kcFormClass'"
|
|
20
|
+
[action]="url.loginAction"
|
|
21
|
+
method="post"
|
|
22
|
+
>
|
|
23
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
24
|
+
<input
|
|
25
|
+
type="hidden"
|
|
26
|
+
id="clientDataJSON"
|
|
27
|
+
name="clientDataJSON"
|
|
28
|
+
/>
|
|
29
|
+
<input
|
|
30
|
+
type="hidden"
|
|
31
|
+
id="attestationObject"
|
|
32
|
+
name="attestationObject"
|
|
33
|
+
/>
|
|
34
|
+
<input
|
|
35
|
+
type="hidden"
|
|
36
|
+
id="publicKeyCredentialId"
|
|
37
|
+
name="publicKeyCredentialId"
|
|
38
|
+
/>
|
|
39
|
+
<input
|
|
40
|
+
type="hidden"
|
|
41
|
+
id="authenticatorLabel"
|
|
42
|
+
name="authenticatorLabel"
|
|
43
|
+
/>
|
|
44
|
+
<input
|
|
45
|
+
type="hidden"
|
|
46
|
+
id="transports"
|
|
47
|
+
name="transports"
|
|
48
|
+
/>
|
|
49
|
+
<input
|
|
50
|
+
type="hidden"
|
|
51
|
+
id="error"
|
|
52
|
+
name="error"
|
|
53
|
+
/>
|
|
54
|
+
<kc-logout-other-sessions />
|
|
55
|
+
</div>
|
|
56
|
+
</form>
|
|
57
|
+
<input
|
|
58
|
+
type="submit"
|
|
59
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
60
|
+
[id]="authButtonId"
|
|
61
|
+
[value]="'doRegisterSecurityKey' | msgStr"
|
|
62
|
+
/>
|
|
63
|
+
@if (!isSetRetry && isAppInitiatedAction) {
|
|
64
|
+
<form
|
|
65
|
+
[action]="url.loginAction"
|
|
66
|
+
[kcClass]="'kcFormClass'"
|
|
67
|
+
id="kc-webauthn-settings-form"
|
|
68
|
+
method="post"
|
|
69
|
+
>
|
|
70
|
+
<button
|
|
71
|
+
type="submit"
|
|
72
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
73
|
+
id="cancelWebAuthnAIA"
|
|
74
|
+
name="cancel-aia"
|
|
75
|
+
value="true"
|
|
76
|
+
>
|
|
77
|
+
{{ 'doCancel' | msgStr }}
|
|
78
|
+
</button>
|
|
79
|
+
</form>
|
|
80
|
+
}
|
|
81
|
+
</ng-container>
|
|
82
|
+
</kc-login-template>
|
|
@@ -0,0 +1,86 @@
|
|
|
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 WebauthnRegisterComponent_1;
|
|
8
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from "@angular/core";
|
|
9
|
+
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
10
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
11
|
+
import { LogoutOtherSessionsComponent } from "../../../login/components/logout-other-sessions/logout-other-sessions.component";
|
|
12
|
+
import { TemplateComponent } from "../../../login/containers/template.component";
|
|
13
|
+
import { KcClassDirective } from "../../../login/directives";
|
|
14
|
+
import { MsgStrPipe } from "../../../login/pipes/msg-str.pipe";
|
|
15
|
+
import { LoginResourceInjectorService } from "../../../login/services";
|
|
16
|
+
let WebauthnRegisterComponent = WebauthnRegisterComponent_1 = class WebauthnRegisterComponent extends ComponentReference {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.kcContext = inject(KC_CONTEXT);
|
|
20
|
+
this.loginResourceInjectorService = inject(LoginResourceInjectorService);
|
|
21
|
+
this.msgStr = inject(MsgStrPipe);
|
|
22
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
23
|
+
this.classes = inject(CLASSES);
|
|
24
|
+
this.displayRequiredFields = input(false);
|
|
25
|
+
this.documentTitle = input();
|
|
26
|
+
this.bodyClassName = input();
|
|
27
|
+
this.displayInfo = false;
|
|
28
|
+
this.displayMessage = true;
|
|
29
|
+
this.authButtonId = "authenticateWebAuthnButton";
|
|
30
|
+
const { url, challenge, userid, username, signatureAlgorithms, rpEntityName, rpId, attestationConveyancePreference, authenticatorAttachment, requireResidentKey, userVerificationRequirement, createTimeout, excludeCredentialIds } = this.kcContext;
|
|
31
|
+
const scripts = [
|
|
32
|
+
{
|
|
33
|
+
type: "module",
|
|
34
|
+
id: "WebAuthnRegisterScript",
|
|
35
|
+
textContent: `
|
|
36
|
+
import { registerByWebAuthn } from "${url.resourcesPath}/js/webauthnRegister.js";
|
|
37
|
+
const registerButton = document.getElementById('${this.authButtonId}');
|
|
38
|
+
registerButton.addEventListener("click", function() {
|
|
39
|
+
const input = {
|
|
40
|
+
challenge : '${challenge}',
|
|
41
|
+
userid : '${userid}',
|
|
42
|
+
username : '${username}',
|
|
43
|
+
signatureAlgorithms : ${JSON.stringify(signatureAlgorithms)},
|
|
44
|
+
rpEntityName : ${JSON.stringify(rpEntityName)},
|
|
45
|
+
rpId : ${JSON.stringify(rpId)},
|
|
46
|
+
attestationConveyancePreference : ${JSON.stringify(attestationConveyancePreference)},
|
|
47
|
+
authenticatorAttachment : ${JSON.stringify(authenticatorAttachment)},
|
|
48
|
+
requireResidentKey : ${JSON.stringify(requireResidentKey)},
|
|
49
|
+
userVerificationRequirement : ${JSON.stringify(userVerificationRequirement)},
|
|
50
|
+
createTimeout : ${createTimeout},
|
|
51
|
+
excludeCredentialIds : ${JSON.stringify(excludeCredentialIds)},
|
|
52
|
+
initLabel : ${JSON.stringify(this.msgStr.transform("webauthn-registration-init-label"))},
|
|
53
|
+
initLabelPrompt : ${JSON.stringify(this.msgStr.transform("webauthn-registration-init-label-prompt"))},
|
|
54
|
+
errmsg : ${JSON.stringify(this.msgStr.transform("webauthn-unsupported-browser-text"))}
|
|
55
|
+
};
|
|
56
|
+
registerByWebAuthn(input);
|
|
57
|
+
});
|
|
58
|
+
`
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
this.loginResourceInjectorService.insertAdditionalScripts(scripts);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
WebauthnRegisterComponent = WebauthnRegisterComponent_1 = __decorate([
|
|
65
|
+
Component({
|
|
66
|
+
standalone: true,
|
|
67
|
+
imports: [
|
|
68
|
+
TemplateComponent,
|
|
69
|
+
MsgStrPipe,
|
|
70
|
+
KcClassDirective,
|
|
71
|
+
LogoutOtherSessionsComponent
|
|
72
|
+
],
|
|
73
|
+
selector: "kc-root",
|
|
74
|
+
templateUrl: "webauthn-register.component.html",
|
|
75
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
76
|
+
providers: [
|
|
77
|
+
MsgStrPipe,
|
|
78
|
+
{
|
|
79
|
+
provide: ComponentReference,
|
|
80
|
+
useExisting: forwardRef(() => WebauthnRegisterComponent_1)
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
})
|
|
84
|
+
], WebauthnRegisterComponent);
|
|
85
|
+
export { WebauthnRegisterComponent };
|
|
86
|
+
//# sourceMappingURL=webauthn-register.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webauthn-register.component.js","sourceRoot":"","sources":["../../../src/login/pages/webauthn-register/webauthn-register.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACR,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,OAAO,EACP,UAAU,EACV,eAAe,EAClB,MAAM,qCAAqC,CAAC;AAI7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,4BAA4B,EAAE,MAAM,6FAA6F,CAAC;AAC3I,OAAO,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAqB5E,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,kBAAkB;IAe7D;QACI,KAAK,EAAE,CAAC;QAfZ,cAAS,GACL,MAAM,CAA0D,UAAU,CAAC,CAAC;QAChF,iCAA4B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;QACpE,WAAM,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;QACnB,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;QACtE,0BAAqB,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QACrC,kBAAa,GAAG,KAAK,EAAU,CAAC;QAChC,kBAAa,GAAG,KAAK,EAAU,CAAC;QAChC,gBAAW,GAAY,KAAK,CAAC;QAC7B,mBAAc,GAAY,IAAI,CAAC;QAE/B,iBAAY,GAAG,4BAA4B,CAAC;QAIxC,MAAM,EACF,GAAG,EACH,SAAS,EACT,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,IAAI,EACJ,+BAA+B,EAC/B,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,aAAa,EACb,oBAAoB,EACvB,GAAG,IAAI,CAAC,SAAS,CAAC;QACnB,MAAM,OAAO,GAAa;YACtB;gBACI,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,wBAAwB;gBAC5B,WAAW,EAAE;oDACuB,GAAG,CAAC,aAAa;gEACL,IAAI,CAAC,YAAY;;;qCAG5C,SAAS;kCACZ,MAAM;oCACJ,QAAQ;8CACE,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC;uCAC1C,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;+BACpC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;0DACO,IAAI,CAAC,SAAS,CAAC,+BAA+B,CAAC;kDACvD,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC;6CAC5C,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC;sDACzB,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC;wCACzD,aAAa;+CACN,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;oCAC/C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;0CACnE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,yCAAyC,CAAC,CAAC;iCACzF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,mCAAmC,CAAC,CAAC;;;;WAIhG;aACE;SACJ,CAAC;QACF,IAAI,CAAC,4BAA4B,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACvE,CAAC;CACJ,CAAA;AAhEY,yBAAyB;IAnBrC,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE;YACL,iBAAiB;YACjB,UAAU;YACV,gBAAgB;YAChB,4BAA4B;SAC/B;QACD,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,kCAAkC;QAC/C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP,UAAU;YACV;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,2BAAyB,CAAC;aAC3D;SACJ;KACJ,CAAC;GACW,yBAAyB,CAgErC;SAhEY,yBAAyB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 _AdvancedMsgStrPipe_i18n;
|
|
13
|
+
import { inject, Pipe } from "@angular/core";
|
|
14
|
+
import { I18N } from "../../lib/public-api";
|
|
15
|
+
let AdvancedMsgStrPipe = class AdvancedMsgStrPipe {
|
|
16
|
+
constructor() {
|
|
17
|
+
_AdvancedMsgStrPipe_i18n.set(this, inject(I18N));
|
|
18
|
+
}
|
|
19
|
+
transform(value, ...args) {
|
|
20
|
+
return __classPrivateFieldGet(this, _AdvancedMsgStrPipe_i18n, "f").advancedMsgStr(value, ...args);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
_AdvancedMsgStrPipe_i18n = new WeakMap();
|
|
24
|
+
AdvancedMsgStrPipe = __decorate([
|
|
25
|
+
Pipe({
|
|
26
|
+
name: "advancedMsgStr",
|
|
27
|
+
standalone: true
|
|
28
|
+
})
|
|
29
|
+
], AdvancedMsgStrPipe);
|
|
30
|
+
export { AdvancedMsgStrPipe };
|
|
31
|
+
//# sourceMappingURL=advanced-msg-str.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced-msg-str.pipe.js","sourceRoot":"","sources":["../../src/login/pipes/advanced-msg-str.pipe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAMpD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAAxB;QACH,mCAAiB,MAAM,CAAO,IAAI,CAAC,EAAC;IAIxC,CAAC;IAHG,SAAS,CAAC,KAAa,EAAE,GAAG,IAA4B;QACpD,OAAO,uBAAA,IAAI,gCAAM,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;IACrD,CAAC;CACJ,CAAA;;AALY,kBAAkB;IAJ9B,IAAI,CAAC;QACF,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE,IAAI;KACnB,CAAC;GACW,kBAAkB,CAK9B;SALY,kBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import { Pipe } from "@angular/core";
|
|
8
|
+
let InputTypePipe = class InputTypePipe {
|
|
9
|
+
transform(inputType) {
|
|
10
|
+
if (inputType === null || inputType === void 0 ? void 0 : inputType.startsWith("html5-")) {
|
|
11
|
+
return inputType.slice(6);
|
|
12
|
+
}
|
|
13
|
+
return inputType !== null && inputType !== void 0 ? inputType : "text";
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
InputTypePipe = __decorate([
|
|
17
|
+
Pipe({
|
|
18
|
+
name: "inputType",
|
|
19
|
+
standalone: true
|
|
20
|
+
})
|
|
21
|
+
], InputTypePipe);
|
|
22
|
+
export { InputTypePipe };
|
|
23
|
+
//# sourceMappingURL=input-type.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-type.pipe.js","sourceRoot":"","sources":["../../src/login/pipes/input-type.pipe.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAM7C,IAAM,aAAa,GAAnB,MAAM,aAAa;IACtB,SAAS,CAAC,SAAkB;QACxB,IAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,UAAU,CAAC,QAAQ,CAAC,EAAE;YACjC,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAC7B;QAED,OAAO,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,MAAM,CAAC;IAC/B,CAAC;CACJ,CAAA;AARY,aAAa;IAJzB,IAAI,CAAC;QACF,IAAI,EAAE,WAAW;QACjB,UAAU,EAAE,IAAI;KACnB,CAAC;GACW,aAAa,CAQzB;SARY,aAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { DomSanitizer, SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl } from "@angular/platform-browser";
|
|
3
|
+
export declare class KcSanitizePipe implements PipeTransform {
|
|
4
|
+
private sanitizer;
|
|
5
|
+
constructor(sanitizer: DomSanitizer);
|
|
6
|
+
transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
|
|
7
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
import { Pipe } from "@angular/core";
|
|
8
|
+
let KcSanitizePipe = class KcSanitizePipe {
|
|
9
|
+
constructor(sanitizer) {
|
|
10
|
+
this.sanitizer = sanitizer;
|
|
11
|
+
}
|
|
12
|
+
// TODO: Fix typing
|
|
13
|
+
transform(
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
value, type) {
|
|
16
|
+
switch (type) {
|
|
17
|
+
case "html":
|
|
18
|
+
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
19
|
+
case "style":
|
|
20
|
+
return this.sanitizer.bypassSecurityTrustStyle(value);
|
|
21
|
+
case "script":
|
|
22
|
+
return this.sanitizer.bypassSecurityTrustScript(value);
|
|
23
|
+
case "url":
|
|
24
|
+
return this.sanitizer.bypassSecurityTrustUrl(value);
|
|
25
|
+
case "resourceUrl":
|
|
26
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(value);
|
|
27
|
+
default:
|
|
28
|
+
throw new Error(`Invalid safe type specified: ${type}`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
KcSanitizePipe = __decorate([
|
|
33
|
+
Pipe({ name: "kcSanitize", standalone: true })
|
|
34
|
+
], KcSanitizePipe);
|
|
35
|
+
export { KcSanitizePipe };
|
|
36
|
+
//# sourceMappingURL=kc-sanitize.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kc-sanitize.pipe.js","sourceRoot":"","sources":["../../src/login/pipes/kc-sanitize.pipe.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAW7C,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YAAoB,SAAuB;QAAvB,cAAS,GAAT,SAAS,CAAc;IAAG,CAAC;IAC/C,mBAAmB;IAEnB,SAAS;IACL,8DAA8D;IAC9D,KAAU,EACV,IAAY;QAEZ,QAAQ,IAAI,EAAE;YACV,KAAK,MAAM;gBACP,OAAO,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;YACzD,KAAK,OAAO;gBACR,OAAO,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;YAC1D,KAAK,QAAQ;gBACT,OAAO,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;YAC3D,KAAK,KAAK;gBACN,OAAO,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;YACxD,KAAK,aAAa;gBACd,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;YAChE;gBACI,MAAM,IAAI,KAAK,CAAC,gCAAgC,IAAI,EAAE,CAAC,CAAC;SAC/D;IACL,CAAC;CACJ,CAAA;AAxBY,cAAc;IAD1B,IAAI,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAClC,cAAc,CAwB1B;SAxBY,cAAc"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { MessageKey } from "keycloakify/login/i18n/messages_defaultSet/types";
|
|
3
|
+
export declare class MsgStrPipe implements PipeTransform {
|
|
4
|
+
#private;
|
|
5
|
+
transform(value: MessageKey, ...args: (string | undefined)[]): string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 _MsgStrPipe_i18n;
|
|
13
|
+
import { inject, Pipe } from "@angular/core";
|
|
14
|
+
import { I18N } from "../../lib/public-api";
|
|
15
|
+
let MsgStrPipe = class MsgStrPipe {
|
|
16
|
+
constructor() {
|
|
17
|
+
_MsgStrPipe_i18n.set(this, inject(I18N));
|
|
18
|
+
}
|
|
19
|
+
transform(value, ...args) {
|
|
20
|
+
return __classPrivateFieldGet(this, _MsgStrPipe_i18n, "f").msgStr(value, ...args);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
_MsgStrPipe_i18n = new WeakMap();
|
|
24
|
+
MsgStrPipe = __decorate([
|
|
25
|
+
Pipe({
|
|
26
|
+
name: "msgStr",
|
|
27
|
+
standalone: true
|
|
28
|
+
})
|
|
29
|
+
], MsgStrPipe);
|
|
30
|
+
export { MsgStrPipe };
|
|
31
|
+
//# sourceMappingURL=msg-str.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"msg-str.pipe.js","sourceRoot":"","sources":["../../src/login/pipes/msg-str.pipe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAOpD,IAAM,UAAU,GAAhB,MAAM,UAAU;IAAhB;QACH,2BAAiB,MAAM,CAAO,IAAI,CAAC,EAAC;IAIxC,CAAC;IAHG,SAAS,CAAC,KAAiB,EAAE,GAAG,IAA4B;QACxD,OAAO,uBAAA,IAAI,wBAAM,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;IAC7C,CAAC;CACJ,CAAA;;AALY,UAAU;IAJtB,IAAI,CAAC;QACF,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,IAAI;KACnB,CAAC;GACW,UAAU,CAKtB;SALY,UAAU"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import { Pipe } from "@angular/core";
|
|
8
|
+
let ToArrayPipe = class ToArrayPipe {
|
|
9
|
+
transform(value, emptyWhenString = false) {
|
|
10
|
+
// if (!value) throw new Error('must pass a value');
|
|
11
|
+
if (value instanceof Array) {
|
|
12
|
+
return value;
|
|
13
|
+
}
|
|
14
|
+
return emptyWhenString ? [] : [value];
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
ToArrayPipe = __decorate([
|
|
18
|
+
Pipe({
|
|
19
|
+
name: "toArray",
|
|
20
|
+
standalone: true
|
|
21
|
+
})
|
|
22
|
+
], ToArrayPipe);
|
|
23
|
+
export { ToArrayPipe };
|
|
24
|
+
//# sourceMappingURL=to-array.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-array.pipe.js","sourceRoot":"","sources":["../../src/login/pipes/to-array.pipe.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAM7C,IAAM,WAAW,GAAjB,MAAM,WAAW;IACpB,SAAS,CAAC,KAAwB,EAAE,eAAe,GAAG,KAAK;QACvD,oDAAoD;QACpD,IAAI,KAAK,YAAY,KAAK,EAAE;YACxB,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AARY,WAAW;IAJvB,IAAI,CAAC;QACF,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,IAAI;KACnB,CAAC;GACW,WAAW,CAQvB;SARY,WAAW"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import { Pipe } from "@angular/core";
|
|
8
|
+
let ToNumberPipe = class ToNumberPipe {
|
|
9
|
+
transform(value) {
|
|
10
|
+
const number = parseInt(`${value}`);
|
|
11
|
+
if (isNaN(number))
|
|
12
|
+
throw new Error("number is NaN");
|
|
13
|
+
return number;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
ToNumberPipe = __decorate([
|
|
17
|
+
Pipe({
|
|
18
|
+
name: "toNumber",
|
|
19
|
+
standalone: true
|
|
20
|
+
})
|
|
21
|
+
], ToNumberPipe);
|
|
22
|
+
export { ToNumberPipe };
|
|
23
|
+
//# sourceMappingURL=to-number.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-number.pipe.js","sourceRoot":"","sources":["../../src/login/pipes/to-number.pipe.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAM7C,IAAM,YAAY,GAAlB,MAAM,YAAY;IACrB,SAAS,CAAC,KAAsB;QAC5B,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;QACpC,IAAI,KAAK,CAAC,MAAM,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACpD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAA;AANY,YAAY;IAJxB,IAAI,CAAC;QACF,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,IAAI;KACnB,CAAC;GACW,YAAY,CAMxB;SANY,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Script } from "../../lib/public-api";
|
|
2
|
+
export declare class LoginResourceInjectorService {
|
|
3
|
+
private kcContext;
|
|
4
|
+
private resourceInjectorService;
|
|
5
|
+
injectResource(doUseDefaultCss?: boolean): import("rxjs").Observable<boolean>;
|
|
6
|
+
insertAdditionalScripts(scripts: Script[]): void;
|
|
7
|
+
private injectScripts;
|
|
8
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
import { inject, Injectable } from "@angular/core";
|
|
8
|
+
import { KC_CONTEXT } from "../../lib/public-api";
|
|
9
|
+
import { ResourceInjectorService } from "../../lib/public-api";
|
|
10
|
+
import { catchError, forkJoin, of, switchMap } from "rxjs";
|
|
11
|
+
let LoginResourceInjectorService = class LoginResourceInjectorService {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.kcContext = inject(KC_CONTEXT);
|
|
14
|
+
this.resourceInjectorService = inject(ResourceInjectorService);
|
|
15
|
+
}
|
|
16
|
+
injectResource(doUseDefaultCss = true) {
|
|
17
|
+
if (!doUseDefaultCss) {
|
|
18
|
+
this.injectScripts();
|
|
19
|
+
return of(true);
|
|
20
|
+
}
|
|
21
|
+
const stylesheets = [
|
|
22
|
+
`${this.kcContext.url.resourcesCommonPath}/node_modules/@patternfly/patternfly/patternfly.min.css`,
|
|
23
|
+
`${this.kcContext.url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly.min.css`,
|
|
24
|
+
`${this.kcContext.url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly-additions.min.css`,
|
|
25
|
+
`${this.kcContext.url.resourcesCommonPath}/lib/pficon/pficon.css`,
|
|
26
|
+
`${this.kcContext.url.resourcesPath}/css/login.css`
|
|
27
|
+
];
|
|
28
|
+
return forkJoin(stylesheets.map(url => this.resourceInjectorService.createLink(url))).pipe(switchMap(() => {
|
|
29
|
+
this.injectScripts();
|
|
30
|
+
return of(true);
|
|
31
|
+
}), catchError(error => {
|
|
32
|
+
console.error("Error loading styles:", error);
|
|
33
|
+
return of(false);
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
insertAdditionalScripts(scripts) {
|
|
37
|
+
scripts.map(script => this.resourceInjectorService.createScript(script));
|
|
38
|
+
}
|
|
39
|
+
injectScripts() {
|
|
40
|
+
const scripts = [
|
|
41
|
+
{
|
|
42
|
+
type: "module",
|
|
43
|
+
id: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`,
|
|
44
|
+
src: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`
|
|
45
|
+
},
|
|
46
|
+
...this.kcContext.scripts.map(script => ({
|
|
47
|
+
type: "text/javascript",
|
|
48
|
+
src: script,
|
|
49
|
+
id: script
|
|
50
|
+
})),
|
|
51
|
+
{
|
|
52
|
+
type: "module",
|
|
53
|
+
id: "authenticationSession",
|
|
54
|
+
textContent: `
|
|
55
|
+
import { checkCookiesAndSetTimer } from "${this.kcContext.url.resourcesPath}/js/authChecker.js";
|
|
56
|
+
|
|
57
|
+
checkCookiesAndSetTimer(
|
|
58
|
+
"${this.kcContext.url.ssoLoginInOtherTabsUrl}"
|
|
59
|
+
);`
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
this.insertAdditionalScripts(scripts);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
LoginResourceInjectorService = __decorate([
|
|
66
|
+
Injectable({
|
|
67
|
+
providedIn: "root"
|
|
68
|
+
})
|
|
69
|
+
], LoginResourceInjectorService);
|
|
70
|
+
export { LoginResourceInjectorService };
|
|
71
|
+
//# sourceMappingURL=login-resource-injector.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-resource-injector.service.js","sourceRoot":"","sources":["../../src/login/services/login-resource-injector.service.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAU,MAAM,qCAAqC,CAAC;AAEtF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAKpD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAAlC;QACK,cAAS,GAAc,MAAM,CAAY,UAAU,CAAC,CAAC;QACrD,4BAAuB,GAA4B,MAAM,CAC7D,uBAAuB,CAC1B,CAAC;IA0DN,CAAC;IAxDG,cAAc,CAAC,eAAe,GAAG,IAAI;QACjC,IAAI,CAAC,eAAe,EAAE;YAClB,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;SACnB;QACD,MAAM,WAAW,GAAG;YAChB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,yDAAyD;YAClG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,sDAAsD;YAC/F,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,gEAAgE;YACzG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,wBAAwB;YACjE,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,gBAAgB;SACtD,CAAC;QAEF,OAAO,QAAQ,CACX,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CACvE,CAAC,IAAI,CACF,SAAS,CAAC,GAAG,EAAE;YACX,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC,EACF,UAAU,CAAC,KAAK,CAAC,EAAE;YACf,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;YAC9C,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC,CAAC,CACL,CAAC;IACN,CAAC;IAED,uBAAuB,CAAC,OAAiB;QACrC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,uBAAuB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7E,CAAC;IAEO,aAAa;QACjB,MAAM,OAAO,GAAa;YACtB;gBACI,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,0BAA0B;gBACjE,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,0BAA0B;aACrE;YACD,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBACrC,IAAI,EAAE,iBAAiB;gBACvB,GAAG,EAAE,MAAM;gBACX,EAAE,EAAE,MAAM;aACb,CAAC,CAAC;YACH;gBACI,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,uBAAuB;gBAC3B,WAAW,EAAE;mDACsB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa;;;eAGpE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,sBAAsB;WAC7C;aACE;SACJ,CAAC;QACF,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AA9DY,4BAA4B;IAHxC,UAAU,CAAC;QACR,UAAU,EAAE,MAAM;KACrB,CAAC;GACW,4BAA4B,CA8DxC;SA9DY,4BAA4B"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Signal } from "@angular/core";
|
|
2
|
+
import { SafeHtml } from "@angular/platform-browser";
|
|
3
|
+
import { Attribute, KcContext, PasswordPolicies, Validators } from "keycloakify/login/KcContext";
|
|
4
|
+
import type { KcContextLike as KcContextLike_i18n } from "keycloakify/login/i18n/noJsx";
|
|
5
|
+
type KcContextLike_useGetErrors = KcContextLike_i18n & {
|
|
6
|
+
messagesPerField: Pick<KcContext["messagesPerField"], "existsError" | "get">;
|
|
7
|
+
passwordPolicies?: PasswordPolicies;
|
|
8
|
+
};
|
|
9
|
+
export declare namespace FormFieldError {
|
|
10
|
+
type Source = Source.Validator | Source.PasswordPolicy | Source.Server | Source.Other;
|
|
11
|
+
namespace Source {
|
|
12
|
+
type Validator = {
|
|
13
|
+
type: "validator";
|
|
14
|
+
name: keyof Validators;
|
|
15
|
+
};
|
|
16
|
+
type PasswordPolicy = {
|
|
17
|
+
type: "passwordPolicy";
|
|
18
|
+
name: keyof PasswordPolicies;
|
|
19
|
+
};
|
|
20
|
+
type Server = {
|
|
21
|
+
type: "server";
|
|
22
|
+
};
|
|
23
|
+
type Other = {
|
|
24
|
+
type: "other";
|
|
25
|
+
rule: "passwordConfirmMatchesPassword" | "requiredField";
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export type KcContextLike = KcContextLike_i18n & KcContextLike_useGetErrors & {
|
|
30
|
+
profile: {
|
|
31
|
+
attributesByName: Record<string, Attribute>;
|
|
32
|
+
html5DataAnnotations?: Record<string, string>;
|
|
33
|
+
};
|
|
34
|
+
passwordRequired?: boolean;
|
|
35
|
+
realm: {
|
|
36
|
+
registrationEmailAsUsername: boolean;
|
|
37
|
+
};
|
|
38
|
+
url: {
|
|
39
|
+
resourcesPath: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type FormFieldError = {
|
|
43
|
+
errorMessage: SafeHtml;
|
|
44
|
+
errorMessageStr: string;
|
|
45
|
+
source: FormFieldError.Source;
|
|
46
|
+
fieldIndex: number | undefined;
|
|
47
|
+
};
|
|
48
|
+
type FormFieldState = {
|
|
49
|
+
attribute: Attribute;
|
|
50
|
+
displayableErrors: FormFieldError[];
|
|
51
|
+
valueOrValues: string | string[];
|
|
52
|
+
};
|
|
53
|
+
type FormState = {
|
|
54
|
+
isFormSubmittable: boolean;
|
|
55
|
+
formFieldStates: FormFieldState[];
|
|
56
|
+
};
|
|
57
|
+
export type FormAction = {
|
|
58
|
+
action: "update";
|
|
59
|
+
name: string;
|
|
60
|
+
valueOrValues: string | string[];
|
|
61
|
+
/** Default false */
|
|
62
|
+
displayErrorsImmediately?: boolean;
|
|
63
|
+
} | {
|
|
64
|
+
action: "focus lost";
|
|
65
|
+
name: string;
|
|
66
|
+
fieldIndex: number | undefined;
|
|
67
|
+
};
|
|
68
|
+
export declare class UserProfileFormService {
|
|
69
|
+
private kcContext;
|
|
70
|
+
private i18n;
|
|
71
|
+
private doMakeUserConfirmPassword;
|
|
72
|
+
private loginResourceInjectorService;
|
|
73
|
+
private sanitizer;
|
|
74
|
+
private initialState;
|
|
75
|
+
private state;
|
|
76
|
+
formState: Signal<FormState>;
|
|
77
|
+
constructor();
|
|
78
|
+
dispatchFormAction(formAction: FormAction): void;
|
|
79
|
+
private getIsMultivaluedSingleField;
|
|
80
|
+
private getErrors;
|
|
81
|
+
}
|
|
82
|
+
export {};
|