@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,132 @@
|
|
|
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 InputTagSelectsComponent_1;
|
|
8
|
+
import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } from "@angular/core";
|
|
9
|
+
import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
10
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
11
|
+
import { KcClassDirective } from "../../../login/directives/kc-class.directive";
|
|
12
|
+
import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
|
|
13
|
+
let InputTagSelectsComponent = InputTagSelectsComponent_1 = class InputTagSelectsComponent extends ComponentReference {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.attribute = input();
|
|
17
|
+
this.valueOrValues = input();
|
|
18
|
+
this.dispatchFormAction = output();
|
|
19
|
+
this.displayableErrors = input();
|
|
20
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
21
|
+
this.classes = inject(CLASSES);
|
|
22
|
+
this.context = computed(() => {
|
|
23
|
+
const attribute = this.attribute();
|
|
24
|
+
if (attribute) {
|
|
25
|
+
const { inputType } = attribute.annotations;
|
|
26
|
+
switch (inputType) {
|
|
27
|
+
case "select-radiobuttons":
|
|
28
|
+
return {
|
|
29
|
+
inputType: "radio",
|
|
30
|
+
classDiv: "kcInputClassRadio",
|
|
31
|
+
classInput: "kcInputClassRadioInput",
|
|
32
|
+
classLabel: "kcInputClassRadioLabel"
|
|
33
|
+
};
|
|
34
|
+
case "multiselect-checkboxes":
|
|
35
|
+
return {
|
|
36
|
+
inputType: "checkbox",
|
|
37
|
+
classDiv: "kcInputClassCheckbox",
|
|
38
|
+
classInput: "kcInputClassCheckboxInput",
|
|
39
|
+
classLabel: "kcInputClassCheckboxLabel"
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
});
|
|
45
|
+
this.options = computed(() => {
|
|
46
|
+
const attribute = this.attribute();
|
|
47
|
+
if (attribute) {
|
|
48
|
+
return (() => {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
walk: {
|
|
51
|
+
const { inputOptionsFromValidation } = attribute.annotations;
|
|
52
|
+
if (inputOptionsFromValidation === undefined) {
|
|
53
|
+
break walk;
|
|
54
|
+
}
|
|
55
|
+
const validator = attribute.validators[inputOptionsFromValidation];
|
|
56
|
+
if (validator === undefined) {
|
|
57
|
+
break walk;
|
|
58
|
+
}
|
|
59
|
+
if (validator.options === undefined) {
|
|
60
|
+
break walk;
|
|
61
|
+
}
|
|
62
|
+
return validator.options;
|
|
63
|
+
}
|
|
64
|
+
return (_b = (_a = attribute.validators.options) === null || _a === void 0 ? void 0 : _a.options) !== null && _b !== void 0 ? _b : [];
|
|
65
|
+
})();
|
|
66
|
+
}
|
|
67
|
+
return [];
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
checked(option) {
|
|
71
|
+
const valueOrValues = this.valueOrValues();
|
|
72
|
+
if (valueOrValues instanceof Array) {
|
|
73
|
+
return valueOrValues.includes(option);
|
|
74
|
+
}
|
|
75
|
+
return valueOrValues === option;
|
|
76
|
+
}
|
|
77
|
+
onChange(event, option) {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
const valueOrValues = this.valueOrValues();
|
|
80
|
+
const isChecked = event.target.checked;
|
|
81
|
+
this.dispatchFormAction.emit({
|
|
82
|
+
action: "update",
|
|
83
|
+
name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
|
|
84
|
+
valueOrValues: (() => {
|
|
85
|
+
var _a;
|
|
86
|
+
if (valueOrValues instanceof Array) {
|
|
87
|
+
const newValues = [...valueOrValues];
|
|
88
|
+
if (isChecked) {
|
|
89
|
+
newValues.push(option);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
newValues.splice(newValues.indexOf(option), 1);
|
|
93
|
+
}
|
|
94
|
+
return newValues;
|
|
95
|
+
}
|
|
96
|
+
return ((_a = event.target) === null || _a === void 0 ? void 0 : _a.checked) ? option : "";
|
|
97
|
+
})()
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
onBlur() {
|
|
101
|
+
var _a, _b;
|
|
102
|
+
this.dispatchFormAction.emit({
|
|
103
|
+
action: "focus lost",
|
|
104
|
+
name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
|
|
105
|
+
fieldIndex: undefined
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
InputTagSelectsComponent = InputTagSelectsComponent_1 = __decorate([
|
|
110
|
+
Component({
|
|
111
|
+
standalone: true,
|
|
112
|
+
styles: [
|
|
113
|
+
`
|
|
114
|
+
:host {
|
|
115
|
+
display: contents;
|
|
116
|
+
}
|
|
117
|
+
`
|
|
118
|
+
],
|
|
119
|
+
imports: [KcClassDirective, AdvancedMsgStrPipe],
|
|
120
|
+
selector: "kc-input-tag-selects",
|
|
121
|
+
templateUrl: "input-tag-selects.component.html",
|
|
122
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
123
|
+
providers: [
|
|
124
|
+
{
|
|
125
|
+
provide: ComponentReference,
|
|
126
|
+
useExisting: forwardRef(() => InputTagSelectsComponent_1)
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
})
|
|
130
|
+
], InputTagSelectsComponent);
|
|
131
|
+
export { InputTagSelectsComponent };
|
|
132
|
+
//# sourceMappingURL=input-tag-selects.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-tag-selects.component.js","sourceRoot":"","sources":["../../../src/login/components/input-tag-selects/input-tag-selects.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uB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1
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
2
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
3
|
+
export declare class LogoutOtherSessionsComponent extends ComponentReference {
|
|
4
|
+
doUseDefaultCss: boolean;
|
|
5
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<div
|
|
2
|
+
id="kc-form-options"
|
|
3
|
+
[kcClass]="'kcFormOptionsClass'"
|
|
4
|
+
>
|
|
5
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'">
|
|
6
|
+
<div class="checkbox">
|
|
7
|
+
<label for="logout-sessions">
|
|
8
|
+
<input
|
|
9
|
+
type="checkbox"
|
|
10
|
+
id="logout-sessions"
|
|
11
|
+
name="logout-sessions"
|
|
12
|
+
value="on"
|
|
13
|
+
defaultChecked="true"
|
|
14
|
+
/>
|
|
15
|
+
{{ 'logoutOtherSessions' | msgStr }}
|
|
16
|
+
</label>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
@@ -0,0 +1,43 @@
|
|
|
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 LogoutOtherSessionsComponent_1;
|
|
8
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
|
|
9
|
+
import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
10
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
11
|
+
import { KcClassDirective } from "../../../login/directives/kc-class.directive";
|
|
12
|
+
import { MsgStrPipe } from "../../../login/pipes/msg-str.pipe";
|
|
13
|
+
let LogoutOtherSessionsComponent = LogoutOtherSessionsComponent_1 = class LogoutOtherSessionsComponent extends ComponentReference {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
17
|
+
this.classes = inject(CLASSES);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
LogoutOtherSessionsComponent = LogoutOtherSessionsComponent_1 = __decorate([
|
|
21
|
+
Component({
|
|
22
|
+
selector: "kc-logout-other-sessions",
|
|
23
|
+
styles: [
|
|
24
|
+
`
|
|
25
|
+
:host {
|
|
26
|
+
display: contents;
|
|
27
|
+
}
|
|
28
|
+
`
|
|
29
|
+
],
|
|
30
|
+
standalone: true,
|
|
31
|
+
imports: [KcClassDirective, MsgStrPipe],
|
|
32
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
|
+
templateUrl: "./logout-other-sessions.component.html",
|
|
34
|
+
providers: [
|
|
35
|
+
{
|
|
36
|
+
provide: ComponentReference,
|
|
37
|
+
useExisting: forwardRef(() => LogoutOtherSessionsComponent_1)
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
})
|
|
41
|
+
], LogoutOtherSessionsComponent);
|
|
42
|
+
export { LogoutOtherSessionsComponent };
|
|
43
|
+
//# sourceMappingURL=logout-other-sessions.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout-other-sessions.component.js","sourceRoot":"","sources":["../../../src/login/components/logout-other-sessions/logout-other-sessions.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAsBpE,IAAM,4BAA4B,oCAAlC,MAAM,4BAA6B,SAAQ,kBAAkB;IAA7D;;QACM,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA,CAAA;AAHY,4BAA4B;IApBxC,SAAS,CAAC;QACP,QAAQ,EAAE,0BAA0B;QACpC,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,gBAAgB,EAAE,UAAU,CAAC;QACvC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,WAAW,EAAE,wCAAwC;QACrD,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,8BAA4B,CAAC;aAC9D;SACJ;KACJ,CAAC;GACW,4BAA4B,CAGxC;SAHY,4BAA4B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WritableSignal } from "@angular/core";
|
|
2
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
3
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
4
|
+
export declare class PasswordWrapperComponent extends ComponentReference {
|
|
5
|
+
private renderer;
|
|
6
|
+
passwordInputId: import("@angular/core").InputSignal<string>;
|
|
7
|
+
doUseDefaultCss: boolean;
|
|
8
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
9
|
+
isPasswordRevealed: WritableSignal<boolean>;
|
|
10
|
+
togglePasswordVisibility(): void;
|
|
11
|
+
private setPasswordInputType;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div [kcClass]="'kcInputGroup'">
|
|
2
|
+
<ng-content></ng-content>
|
|
3
|
+
<button
|
|
4
|
+
type="button"
|
|
5
|
+
[kcClass]="'kcFormPasswordVisibilityButtonClass'"
|
|
6
|
+
[attr.aria-label]="(isPasswordRevealed() ? 'hidePassword' : 'showPassword') | msgStr"
|
|
7
|
+
[attr.aria-controls]="passwordInputId()"
|
|
8
|
+
(click)="togglePasswordVisibility()"
|
|
9
|
+
>
|
|
10
|
+
<i
|
|
11
|
+
[kcClass]="isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'"
|
|
12
|
+
aria-hidden="true"
|
|
13
|
+
></i>
|
|
14
|
+
</button>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,57 @@
|
|
|
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 PasswordWrapperComponent_1;
|
|
8
|
+
import { AsyncPipe } from "@angular/common";
|
|
9
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, Renderer2, signal } from "@angular/core";
|
|
10
|
+
import { 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 { MsgStrPipe } from "../../../login/pipes/msg-str.pipe";
|
|
14
|
+
let PasswordWrapperComponent = PasswordWrapperComponent_1 = class PasswordWrapperComponent extends ComponentReference {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.renderer = inject(Renderer2);
|
|
18
|
+
this.passwordInputId = input.required();
|
|
19
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
20
|
+
this.classes = inject(CLASSES);
|
|
21
|
+
this.isPasswordRevealed = signal(false);
|
|
22
|
+
}
|
|
23
|
+
togglePasswordVisibility() {
|
|
24
|
+
this.isPasswordRevealed.update(revealed => !revealed);
|
|
25
|
+
this.setPasswordInputType();
|
|
26
|
+
}
|
|
27
|
+
setPasswordInputType() {
|
|
28
|
+
const input = document.getElementById(this.passwordInputId());
|
|
29
|
+
if (input) {
|
|
30
|
+
this.renderer.setProperty(input, "type", this.isPasswordRevealed() ? "text" : "password");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
PasswordWrapperComponent = PasswordWrapperComponent_1 = __decorate([
|
|
35
|
+
Component({
|
|
36
|
+
selector: "kc-password-wrapper",
|
|
37
|
+
styles: [
|
|
38
|
+
`
|
|
39
|
+
:host {
|
|
40
|
+
display: contents;
|
|
41
|
+
}
|
|
42
|
+
`
|
|
43
|
+
],
|
|
44
|
+
standalone: true,
|
|
45
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
+
imports: [KcClassDirective, AsyncPipe, MsgStrPipe],
|
|
47
|
+
templateUrl: "./password-wrapper.component.html",
|
|
48
|
+
providers: [
|
|
49
|
+
{
|
|
50
|
+
provide: ComponentReference,
|
|
51
|
+
useExisting: forwardRef(() => PasswordWrapperComponent_1)
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
], PasswordWrapperComponent);
|
|
56
|
+
export { PasswordWrapperComponent };
|
|
57
|
+
//# sourceMappingURL=password-wrapper.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-wrapper.component.js","sourceRoot":"","sources":["../../../src/login/components/password-wrapper/password-wrapper.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,SAAS,EACT,MAAM,EAET,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAsBpE,IAAM,wBAAwB,gCAA9B,MAAM,wBAAyB,SAAQ,kBAAkB;IAAzD;;QACK,aAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QACrC,oBAAe,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;QAClC,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;QAEtE,uBAAkB,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;IAiBhE,CAAC;IAfG,wBAAwB;QACpB,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAEO,oBAAoB;QACxB,MAAM,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;QAC9D,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,QAAQ,CAAC,WAAW,CACrB,KAAK,EACL,MAAM,EACN,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAClD,CAAC;SACL;IACL,CAAC;CACJ,CAAA;AAvBY,wBAAwB;IApBpC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;QAC/B,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,OAAO,EAAE,CAAC,gBAAgB,EAAE,SAAS,EAAE,UAAU,CAAC;QAClD,WAAW,EAAE,mCAAmC;QAChD,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,0BAAwB,CAAC;aAC1D;SACJ;KACJ,CAAC;GACW,wBAAwB,CAuBpC;SAvBY,wBAAwB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Attribute } from "keycloakify/login/KcContext";
|
|
2
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
3
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
4
|
+
import { FormAction, FormFieldError } from "../../../login/services/user-profile-form.service";
|
|
5
|
+
export declare class SelectTagComponent extends ComponentReference {
|
|
6
|
+
attribute: import("@angular/core").InputSignal<Attribute | undefined>;
|
|
7
|
+
valueOrValues: import("@angular/core").InputSignal<string | string[] | undefined>;
|
|
8
|
+
displayableErrors: import("@angular/core").InputSignal<FormFieldError[] | undefined>;
|
|
9
|
+
dispatchFormAction: import("@angular/core").OutputEmitterRef<FormAction>;
|
|
10
|
+
doUseDefaultCss: boolean;
|
|
11
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
12
|
+
isMultiple: import("@angular/core").Signal<boolean>;
|
|
13
|
+
options: import("@angular/core").Signal<string[]>;
|
|
14
|
+
onChange(event: Event): void;
|
|
15
|
+
onBlur(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@let attr = attribute();
|
|
2
|
+
@let multiple = isMultiple();
|
|
3
|
+
@if (attr) {
|
|
4
|
+
<select
|
|
5
|
+
[id]="attr.name"
|
|
6
|
+
[name]="attr.name"
|
|
7
|
+
[value]="valueOrValues()"
|
|
8
|
+
[kcClass]="'kcInputClass'"
|
|
9
|
+
[attr.aria-invalid]="!!displayableErrors()?.length"
|
|
10
|
+
[disabled]="attr.readOnly"
|
|
11
|
+
[multiple]="multiple"
|
|
12
|
+
[size]="!attr.annotations.inputTypeSize ? undefined : (attr.annotations.inputTypeSize | toNumber)"
|
|
13
|
+
(change)="onChange($event)"
|
|
14
|
+
(blur)="onBlur()"
|
|
15
|
+
>
|
|
16
|
+
@if (!multiple) {
|
|
17
|
+
<option value=""></option>
|
|
18
|
+
}
|
|
19
|
+
@for (option of options(); track option) {
|
|
20
|
+
<option [value]="option">
|
|
21
|
+
@if (!!attr.annotations.inputOptionLabels) {
|
|
22
|
+
{{ attr.annotations.inputOptionLabels[option] ?? option | advancedMsgStr }}
|
|
23
|
+
} @else if (!!attr.annotations.inputOptionLabelsI18nPrefix) {
|
|
24
|
+
{{ attr.annotations.inputOptionLabelsI18nPrefix + '.' + option | advancedMsgStr }}
|
|
25
|
+
} @else {
|
|
26
|
+
{{ option }}
|
|
27
|
+
}
|
|
28
|
+
</option>
|
|
29
|
+
}
|
|
30
|
+
</select>
|
|
31
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 SelectTagComponent_1;
|
|
8
|
+
import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } from "@angular/core";
|
|
9
|
+
import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
10
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
11
|
+
import { KcClassDirective } from "../../../login/directives/kc-class.directive";
|
|
12
|
+
import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
|
|
13
|
+
import { ToNumberPipe } from "../../../login/pipes/to-number.pipe";
|
|
14
|
+
let SelectTagComponent = SelectTagComponent_1 = class SelectTagComponent extends ComponentReference {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.attribute = input();
|
|
18
|
+
this.valueOrValues = input();
|
|
19
|
+
this.displayableErrors = input();
|
|
20
|
+
this.dispatchFormAction = output();
|
|
21
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
22
|
+
this.classes = inject(CLASSES);
|
|
23
|
+
this.isMultiple = computed(() => {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
return ((_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.annotations) === null || _b === void 0 ? void 0 : _b.inputType) === "multiselect";
|
|
26
|
+
});
|
|
27
|
+
this.options = computed(() => {
|
|
28
|
+
const attribute = this.attribute();
|
|
29
|
+
if (attribute) {
|
|
30
|
+
return (() => {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
walk: {
|
|
33
|
+
const { inputOptionsFromValidation } = attribute.annotations;
|
|
34
|
+
if (inputOptionsFromValidation === undefined) {
|
|
35
|
+
break walk;
|
|
36
|
+
}
|
|
37
|
+
const validator = attribute.validators[inputOptionsFromValidation];
|
|
38
|
+
if (validator === undefined) {
|
|
39
|
+
break walk;
|
|
40
|
+
}
|
|
41
|
+
if (validator.options === undefined) {
|
|
42
|
+
break walk;
|
|
43
|
+
}
|
|
44
|
+
return validator.options;
|
|
45
|
+
}
|
|
46
|
+
return (_b = (_a = attribute.validators.options) === null || _a === void 0 ? void 0 : _a.options) !== null && _b !== void 0 ? _b : [];
|
|
47
|
+
})();
|
|
48
|
+
}
|
|
49
|
+
return [];
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
onChange(event) {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
this.dispatchFormAction.emit({
|
|
55
|
+
action: "update",
|
|
56
|
+
name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
|
|
57
|
+
valueOrValues: (() => {
|
|
58
|
+
if (this.isMultiple()) {
|
|
59
|
+
return Array.from(event.target.selectedOptions).map(option => option.value);
|
|
60
|
+
}
|
|
61
|
+
return event.target.value;
|
|
62
|
+
})()
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
onBlur() {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
this.dispatchFormAction.emit({
|
|
68
|
+
action: "focus lost",
|
|
69
|
+
name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
|
|
70
|
+
fieldIndex: undefined
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
SelectTagComponent = SelectTagComponent_1 = __decorate([
|
|
75
|
+
Component({
|
|
76
|
+
standalone: true,
|
|
77
|
+
styles: [
|
|
78
|
+
`
|
|
79
|
+
:host {
|
|
80
|
+
display: contents;
|
|
81
|
+
}
|
|
82
|
+
`
|
|
83
|
+
],
|
|
84
|
+
imports: [KcClassDirective, ToNumberPipe, AdvancedMsgStrPipe],
|
|
85
|
+
selector: "kc-select-tag",
|
|
86
|
+
templateUrl: "select-tag.component.html",
|
|
87
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
88
|
+
providers: [
|
|
89
|
+
{
|
|
90
|
+
provide: ComponentReference,
|
|
91
|
+
useExisting: forwardRef(() => SelectTagComponent_1)
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
})
|
|
95
|
+
], SelectTagComponent);
|
|
96
|
+
export { SelectTagComponent };
|
|
97
|
+
//# sourceMappingURL=select-tag.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-tag.component.js","sourceRoot":"","sources":["../../../src/login/components/select-tag/select-tag.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAG/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AA0BxE,IAAM,kBAAkB,0BAAxB,MAAM,kBAAmB,SAAQ,kBAAkB;IAAnD;;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,kBAAa,GAAG,KAAK,EAAqB,CAAC;QAC3C,sBAAiB,GAAG,KAAK,EAAoB,CAAC;QAC9C,uBAAkB,GAAG,MAAM,EAAc,CAAC;QACjC,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;QAEtE,eAAU,GAAG,QAAQ,CAAC,GAAG,EAAE;;YACvB,OAAO,CAAA,MAAA,MAAA,IAAI,CAAC,SAAS,EAAE,0CAAE,WAAW,0CAAE,SAAS,MAAK,aAAa,CAAC;QACtE,CAAC,CAAC,CAAC;QAEH,YAAO,GAAG,QAAQ,CAAC,GAAG,EAAE;YACpB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YACnC,IAAI,SAAS,EAAE;gBACX,OAAO,CAAC,GA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AI,CAAC,SAAS,EAAE,0CAAE,IAAI,mCAAI,EAAE;YAClC,UAAU,EAAE,SAAS;SACxB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAnEY,kBAAkB;IApB9B,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAE,kBAAkB,CAAC;QAC7D,QAAQ,EAAE,eAAe;QACzB,WAAW,EAAE,2BAA2B;QACxC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,oBAAkB,CAAC;aACpD;SACJ;KACJ,CAAC;GACW,kBAAkB,CAmE9B;SAnEY,kBAAkB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Attribute } from "keycloakify/login/KcContext";
|
|
2
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
3
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
4
|
+
import { FormAction, FormFieldError } from "../../../login/services/user-profile-form.service";
|
|
5
|
+
export declare class TextareaTagComponent extends ComponentReference {
|
|
6
|
+
attribute: import("@angular/core").InputSignal<Attribute | undefined>;
|
|
7
|
+
value: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
+
displayableErrors: import("@angular/core").InputSignal<FormFieldError[] | undefined>;
|
|
9
|
+
dispatchFormAction: import("@angular/core").OutputEmitterRef<FormAction>;
|
|
10
|
+
doUseDefaultCss: boolean;
|
|
11
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
12
|
+
onChange(event: Event): void;
|
|
13
|
+
onBlur(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@let attr = attribute();
|
|
2
|
+
@if (attr) {
|
|
3
|
+
<textarea
|
|
4
|
+
[id]="attr.name"
|
|
5
|
+
[name]="attr.name"
|
|
6
|
+
[kcClass]="'kcInputClass'"
|
|
7
|
+
[attr.aria-invalid]="!!displayableErrors()?.length"
|
|
8
|
+
[disabled]="attr.readOnly"
|
|
9
|
+
[cols]="attr.annotations.inputTypeCols === undefined ? undefined : (attr.annotations.inputTypeCols | toNumber)"
|
|
10
|
+
[rows]="attr.annotations.inputTypeRows === undefined ? undefined : (attr.annotations.inputTypeRows | toNumber)"
|
|
11
|
+
[maxLength]="
|
|
12
|
+
attr.annotations.inputTypeMaxlength === undefined ? undefined : (attr.annotations.inputTypeMaxlength | toNumber)
|
|
13
|
+
"
|
|
14
|
+
[value]="value()"
|
|
15
|
+
(change)="onChange($event)"
|
|
16
|
+
(blur)="onBlur()"
|
|
17
|
+
></textarea>
|
|
18
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 TextareaTagComponent_1;
|
|
8
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, output } from "@angular/core";
|
|
9
|
+
import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
10
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
11
|
+
import { KcClassDirective } from "../../../login/directives/kc-class.directive";
|
|
12
|
+
import { ToNumberPipe } from "../../../login/pipes/to-number.pipe";
|
|
13
|
+
let TextareaTagComponent = TextareaTagComponent_1 = class TextareaTagComponent extends ComponentReference {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.attribute = input();
|
|
17
|
+
this.value = input();
|
|
18
|
+
this.displayableErrors = input();
|
|
19
|
+
this.dispatchFormAction = output();
|
|
20
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
21
|
+
this.classes = inject(CLASSES);
|
|
22
|
+
}
|
|
23
|
+
onChange(event) {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
this.dispatchFormAction.emit({
|
|
26
|
+
action: "update",
|
|
27
|
+
name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
|
|
28
|
+
valueOrValues: event.target.value
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
onBlur() {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
this.dispatchFormAction.emit({
|
|
34
|
+
action: "focus lost",
|
|
35
|
+
name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
|
|
36
|
+
fieldIndex: undefined
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
TextareaTagComponent = TextareaTagComponent_1 = __decorate([
|
|
41
|
+
Component({
|
|
42
|
+
standalone: true,
|
|
43
|
+
styles: [
|
|
44
|
+
`
|
|
45
|
+
:host {
|
|
46
|
+
display: contents;
|
|
47
|
+
}
|
|
48
|
+
`
|
|
49
|
+
],
|
|
50
|
+
imports: [KcClassDirective, ToNumberPipe],
|
|
51
|
+
selector: "kc-textarea-tag",
|
|
52
|
+
templateUrl: "textarea-tag.component.html",
|
|
53
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
54
|
+
providers: [
|
|
55
|
+
{
|
|
56
|
+
provide: ComponentReference,
|
|
57
|
+
useExisting: forwardRef(() => TextareaTagComponent_1)
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
})
|
|
61
|
+
], TextareaTagComponent);
|
|
62
|
+
export { TextareaTagComponent };
|
|
63
|
+
//# sourceMappingURL=textarea-tag.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea-tag.component.js","sourceRoot":"","sources":["../../../src/login/components/textarea-tag/textarea-tag.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAG/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AA0BxE,IAAM,oBAAoB,4BAA1B,MAAM,oBAAqB,SAAQ,kBAAkB;IAArD;;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,UAAK,GAAG,KAAK,EAAU,CAAC;QACxB,sBAAiB,GAAG,KAAK,EAAoB,CAAC;QAC9C,uBAAkB,GAAG,MAAM,EAAc,CAAC;QACjC,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;IAiB1E,CAAC;IAfG,QAAQ,CAAC,KAAY;;QACjB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;YACzB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAA,MAAA,IAAI,CAAC,SAAS,EAAE,0CAAE,IAAI,mCAAI,EAAE;YAClC,aAAa,EAAG,KAAK,CAAC,MAA8B,CAAC,KAAK;SAC7D,CAAC,CAAC;IACP,CAAC;IAED,MAAM;;QACF,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;YACzB,MAAM,EAAE,YAAY;YACpB,IAAI,EAAE,MAAA,MAAA,IAAI,CAAC,SAAS,EAAE,0CAAE,IAAI,mCAAI,EAAE;YAClC,UAAU,EAAE,SAAS;SACxB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAvBY,oBAAoB;IApBhC,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;QACzC,QAAQ,EAAE,iBAAiB;QAC3B,WAAW,EAAE,6BAA6B;QAC1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,sBAAoB,CAAC;aACtD;SACJ;KACJ,CAAC;GACW,oBAAoB,CAuBhC;SAvBY,oBAAoB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
3
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
4
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
5
|
+
import { FormAction, UserProfileFormService } from "../../../login/services/user-profile-form.service";
|
|
6
|
+
export declare class UserProfileFormFieldsComponent extends ComponentReference {
|
|
7
|
+
kcContext: KcContext;
|
|
8
|
+
userProfileFormService: UserProfileFormService;
|
|
9
|
+
doMakeUserConfirmPassword: boolean;
|
|
10
|
+
doUseDefaultCss: boolean;
|
|
11
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
12
|
+
onIsFormSubmittable: import("@angular/core").OutputEmitterRef<boolean>;
|
|
13
|
+
formState: import("@angular/core").Signal<{
|
|
14
|
+
isFormSubmittable: boolean;
|
|
15
|
+
formFieldStates: {
|
|
16
|
+
attribute: import("keycloakify/login/KcContext").Attribute;
|
|
17
|
+
displayableErrors: import("../../../login/services/user-profile-form.service").FormFieldError[];
|
|
18
|
+
valueOrValues: string | string[];
|
|
19
|
+
}[];
|
|
20
|
+
}>;
|
|
21
|
+
beforeField: TemplateRef<unknown> | undefined;
|
|
22
|
+
afterField: TemplateRef<unknown> | undefined;
|
|
23
|
+
constructor();
|
|
24
|
+
onDispatch(formAction: FormAction): void;
|
|
25
|
+
}
|