@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,45 @@
|
|
|
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 FieldErrorsComponent_1;
|
|
8
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } 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
|
+
let FieldErrorsComponent = FieldErrorsComponent_1 = class FieldErrorsComponent extends ComponentReference {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.attribute = input();
|
|
16
|
+
this.displayableErrors = input();
|
|
17
|
+
this.fieldIndex = input();
|
|
18
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
19
|
+
this.classes = inject(CLASSES);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
FieldErrorsComponent = FieldErrorsComponent_1 = __decorate([
|
|
23
|
+
Component({
|
|
24
|
+
standalone: true,
|
|
25
|
+
styles: [
|
|
26
|
+
`
|
|
27
|
+
:host {
|
|
28
|
+
display: contents;
|
|
29
|
+
}
|
|
30
|
+
`
|
|
31
|
+
],
|
|
32
|
+
imports: [KcClassDirective],
|
|
33
|
+
selector: "kc-field-errors",
|
|
34
|
+
templateUrl: "field-errors.component.html",
|
|
35
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
36
|
+
providers: [
|
|
37
|
+
{
|
|
38
|
+
provide: ComponentReference,
|
|
39
|
+
useExisting: forwardRef(() => FieldErrorsComponent_1)
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
})
|
|
43
|
+
], FieldErrorsComponent);
|
|
44
|
+
export { FieldErrorsComponent };
|
|
45
|
+
//# sourceMappingURL=field-errors.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-errors.component.js","sourceRoot":"","sources":["../../../src/login/components/field-errors/field-errors.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACR,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;AAuBrF,IAAM,oBAAoB,4BAA1B,MAAM,oBAAqB,SAAQ,kBAAkB;IAArD;;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,sBAAiB,GAAG,KAAK,EAAoB,CAAC;QAC9C,eAAU,GAAG,KAAK,EAAU,CAAC;QACpB,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA,CAAA;AANY,oBAAoB;IApBhC,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,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,CAMhC;SANY,oBAAoB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export declare class GroupLabelComponent extends ComponentReference {
|
|
5
|
+
attribute: import("@angular/core").InputSignal<Attribute | undefined>;
|
|
6
|
+
groupName: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
+
doUseDefaultCss: boolean;
|
|
8
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
9
|
+
groupNameRef: import("@angular/core").Signal<string>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@let attr = attribute();
|
|
2
|
+
@let groupName = groupNameRef();
|
|
3
|
+
@if (attr && groupName !== '') {
|
|
4
|
+
<div
|
|
5
|
+
[kcClass]="'kcFormGroupClass'"
|
|
6
|
+
[kcAttributes]="attr.group?.html5DataAnnotations"
|
|
7
|
+
>
|
|
8
|
+
@let groupDisplayHeader = attr.group?.displayHeader ?? '';
|
|
9
|
+
@let groupHeaderText = groupDisplayHeader !== '' ? groupDisplayHeader : (attr.group?.name ?? '');
|
|
10
|
+
<div [kcClass]="'kcContentWrapperClass'">
|
|
11
|
+
<label
|
|
12
|
+
[id]="'header-' + attr.group?.name"
|
|
13
|
+
[kcClass]="'kcFormGroupHeader'"
|
|
14
|
+
>
|
|
15
|
+
{{ groupHeaderText | advancedMsgStr }}
|
|
16
|
+
</label>
|
|
17
|
+
</div>
|
|
18
|
+
@let groupDisplayDescription = attr.group?.displayDescription ?? '';
|
|
19
|
+
@if (groupDisplayDescription !== '') {
|
|
20
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
21
|
+
<label
|
|
22
|
+
[id]="'description-' + attr.group?.name"
|
|
23
|
+
[kcClass]="'kcLabelClass'"
|
|
24
|
+
>
|
|
25
|
+
{{ groupDisplayDescription | advancedMsgStr }}
|
|
26
|
+
</label>
|
|
27
|
+
</div>
|
|
28
|
+
}
|
|
29
|
+
</div>
|
|
30
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 GroupLabelComponent_1;
|
|
8
|
+
import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input } from "@angular/core";
|
|
9
|
+
import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
10
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
11
|
+
import { AttributesDirective } from "../../../login/directives/attributes.directive";
|
|
12
|
+
import { KcClassDirective } from "../../../login/directives/kc-class.directive";
|
|
13
|
+
import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
|
|
14
|
+
let GroupLabelComponent = GroupLabelComponent_1 = class GroupLabelComponent extends ComponentReference {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.attribute = input();
|
|
18
|
+
this.groupName = input();
|
|
19
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
20
|
+
this.classes = inject(CLASSES);
|
|
21
|
+
this.groupNameRef = computed(() => {
|
|
22
|
+
var _a, _b, _c;
|
|
23
|
+
const attribute = this.attribute();
|
|
24
|
+
const groupName = this.groupName();
|
|
25
|
+
if (((_a = attribute === null || attribute === void 0 ? void 0 : attribute.group) === null || _a === void 0 ? void 0 : _a.name) !== groupName) {
|
|
26
|
+
return (_c = (_b = attribute === null || attribute === void 0 ? void 0 : attribute.group) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : "";
|
|
27
|
+
}
|
|
28
|
+
return "";
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
GroupLabelComponent = GroupLabelComponent_1 = __decorate([
|
|
33
|
+
Component({
|
|
34
|
+
standalone: true,
|
|
35
|
+
styles: [
|
|
36
|
+
`
|
|
37
|
+
:host {
|
|
38
|
+
display: contents;
|
|
39
|
+
}
|
|
40
|
+
`
|
|
41
|
+
],
|
|
42
|
+
imports: [KcClassDirective, AttributesDirective, AdvancedMsgStrPipe],
|
|
43
|
+
selector: "kc-group-label",
|
|
44
|
+
templateUrl: "group-label.component.html",
|
|
45
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
+
providers: [
|
|
47
|
+
{
|
|
48
|
+
provide: ComponentReference,
|
|
49
|
+
useExisting: forwardRef(() => GroupLabelComponent_1)
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
})
|
|
53
|
+
], GroupLabelComponent);
|
|
54
|
+
export { GroupLabelComponent };
|
|
55
|
+
//# sourceMappingURL=group-label.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-label.component.js","sourceRoot":"","sources":["../../../src/login/components/group-label/group-label.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACR,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,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAsBrF,IAAM,mBAAmB,2BAAzB,MAAM,mBAAoB,SAAQ,kBAAkB;IAApD;;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,cAAS,GAAG,KAAK,EAAU,CAAC;QACnB,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;QACtE,iBAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;;YACzB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YACnC,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YACnC,IAAI,CAAA,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,0CAAE,IAAI,MAAK,SAAS,EAAE;gBACtC,OAAO,MAAA,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,0CAAE,IAAI,mCAAI,EAAE,CAAC;aACvC;YACD,OAAO,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC;CAAA,CAAA;AAbY,mBAAmB;IApB/B,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,CAAC;QACpE,QAAQ,EAAE,gBAAgB;QAC1B,WAAW,EAAE,4BAA4B;QACzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,qBAAmB,CAAC;aACrD;SACJ;KACJ,CAAC;GACW,mBAAmB,CAa/B;SAbY,mBAAmB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component";
|
|
2
|
+
export * from "./field-errors/field-errors.component";
|
|
3
|
+
export * from "./group-label/group-label.component";
|
|
4
|
+
export * from "./input-field-by-type/input-field-by-type.component";
|
|
5
|
+
export * from "./input-tag/input-tag.component";
|
|
6
|
+
export * from "./input-tag-selects/input-tag-selects.component";
|
|
7
|
+
export * from "./logout-other-sessions/logout-other-sessions.component";
|
|
8
|
+
export * from "./password-wrapper/password-wrapper.component";
|
|
9
|
+
export * from "./select-tag/select-tag.component";
|
|
10
|
+
export * from "./textarea-tag/textarea-tag.component";
|
|
11
|
+
export * from "./user-profile-form-fields/user-profile-form-fields.component";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component";
|
|
2
|
+
export * from "./field-errors/field-errors.component";
|
|
3
|
+
export * from "./group-label/group-label.component";
|
|
4
|
+
export * from "./input-field-by-type/input-field-by-type.component";
|
|
5
|
+
export * from "./input-tag/input-tag.component";
|
|
6
|
+
export * from "./input-tag-selects/input-tag-selects.component";
|
|
7
|
+
export * from "./logout-other-sessions/logout-other-sessions.component";
|
|
8
|
+
export * from "./password-wrapper/password-wrapper.component";
|
|
9
|
+
export * from "./select-tag/select-tag.component";
|
|
10
|
+
export * from "./textarea-tag/textarea-tag.component";
|
|
11
|
+
export * from "./user-profile-form-fields/user-profile-form-fields.component";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iGAAiG,CAAC;AAChH,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,iCAAiC,CAAC;AAChD,cAAc,iDAAiD,CAAC;AAChE,cAAc,yDAAyD,CAAC;AACxE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+DAA+D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 InputFieldByTypeComponent 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
|
+
attributePassword: import("@angular/core").Signal<Attribute>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@let attr = attribute();
|
|
2
|
+
@if (attr) {
|
|
3
|
+
@let type = attr.annotations.inputType;
|
|
4
|
+
@switch (type) {
|
|
5
|
+
@case ('textarea') {
|
|
6
|
+
<kc-textarea-tag
|
|
7
|
+
[attribute]="attribute()"
|
|
8
|
+
[value]="$any(valueOrValues())"
|
|
9
|
+
[displayableErrors]="displayableErrors()"
|
|
10
|
+
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
11
|
+
></kc-textarea-tag>
|
|
12
|
+
}
|
|
13
|
+
@case (type === 'select' || type === 'multiselect' ? type : '') {
|
|
14
|
+
<kc-select-tag
|
|
15
|
+
[attribute]="attribute()"
|
|
16
|
+
[valueOrValues]="valueOrValues()"
|
|
17
|
+
[displayableErrors]="displayableErrors()"
|
|
18
|
+
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
19
|
+
></kc-select-tag>
|
|
20
|
+
}
|
|
21
|
+
@case (type === 'select-radiobuttons' || type === 'multiselect-checkboxes' ? type : '') {
|
|
22
|
+
<kc-input-tag-selects
|
|
23
|
+
[attribute]="attribute()"
|
|
24
|
+
[valueOrValues]="valueOrValues()"
|
|
25
|
+
[displayableErrors]="displayableErrors()"
|
|
26
|
+
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
27
|
+
></kc-input-tag-selects>
|
|
28
|
+
}
|
|
29
|
+
@default {
|
|
30
|
+
@let values = valueOrValues();
|
|
31
|
+
<!-- if valueOrValues is string skip -->
|
|
32
|
+
@if (values && (values | toArray: true).length) {
|
|
33
|
+
@for (value of values; track value; let i = $index) {
|
|
34
|
+
<kc-input-tag
|
|
35
|
+
[attribute]="attribute()"
|
|
36
|
+
[valueOrValues]="valueOrValues()"
|
|
37
|
+
[fieldIndex]="i"
|
|
38
|
+
[displayableErrors]="displayableErrors()"
|
|
39
|
+
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
40
|
+
></kc-input-tag>
|
|
41
|
+
}
|
|
42
|
+
} @else {
|
|
43
|
+
@if (attr.name === 'password' || attr.name === 'password-confirm') {
|
|
44
|
+
<kc-password-wrapper [passwordInputId]="attr.name">
|
|
45
|
+
<kc-input-tag
|
|
46
|
+
[attribute]="attributePassword()"
|
|
47
|
+
[valueOrValues]="valueOrValues()"
|
|
48
|
+
[displayableErrors]="displayableErrors()"
|
|
49
|
+
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
50
|
+
></kc-input-tag>
|
|
51
|
+
</kc-password-wrapper>
|
|
52
|
+
} @else {
|
|
53
|
+
<kc-input-tag
|
|
54
|
+
[attribute]="attribute()"
|
|
55
|
+
[valueOrValues]="valueOrValues()"
|
|
56
|
+
[displayableErrors]="displayableErrors()"
|
|
57
|
+
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
58
|
+
></kc-input-tag>
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -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 InputFieldByTypeComponent_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 { ToArrayPipe } from "../../../login/pipes/to-array.pipe";
|
|
12
|
+
import { InputTagSelectsComponent } from "../../../login/components/input-tag-selects/input-tag-selects.component";
|
|
13
|
+
import { InputTagComponent } from "../../../login/components/input-tag/input-tag.component";
|
|
14
|
+
import { PasswordWrapperComponent } from "../../../login/components/password-wrapper/password-wrapper.component";
|
|
15
|
+
import { SelectTagComponent } from "../../../login/components/select-tag/select-tag.component";
|
|
16
|
+
import { TextareaTagComponent } from "../../../login/components/textarea-tag/textarea-tag.component";
|
|
17
|
+
let InputFieldByTypeComponent = InputFieldByTypeComponent_1 = class InputFieldByTypeComponent extends ComponentReference {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.attribute = input();
|
|
21
|
+
this.valueOrValues = input();
|
|
22
|
+
this.displayableErrors = input();
|
|
23
|
+
this.dispatchFormAction = output();
|
|
24
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
25
|
+
this.classes = inject(CLASSES);
|
|
26
|
+
this.attributePassword = computed(() => {
|
|
27
|
+
var _a, _b;
|
|
28
|
+
const attribute = (_a = this.attribute()) !== null && _a !== void 0 ? _a : {};
|
|
29
|
+
return Object.assign(Object.assign({}, attribute), { annotations: Object.assign(Object.assign({}, ((_b = attribute.annotations) !== null && _b !== void 0 ? _b : {})), { inputType: "password" }) });
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
InputFieldByTypeComponent = InputFieldByTypeComponent_1 = __decorate([
|
|
34
|
+
Component({
|
|
35
|
+
standalone: true,
|
|
36
|
+
styles: [
|
|
37
|
+
`
|
|
38
|
+
:host {
|
|
39
|
+
display: contents;
|
|
40
|
+
}
|
|
41
|
+
`
|
|
42
|
+
],
|
|
43
|
+
imports: [
|
|
44
|
+
ToArrayPipe,
|
|
45
|
+
TextareaTagComponent,
|
|
46
|
+
SelectTagComponent,
|
|
47
|
+
InputTagSelectsComponent,
|
|
48
|
+
InputTagComponent,
|
|
49
|
+
PasswordWrapperComponent
|
|
50
|
+
],
|
|
51
|
+
selector: "kc-input-field-by-type",
|
|
52
|
+
templateUrl: "input-field-by-type.component.html",
|
|
53
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
54
|
+
providers: [
|
|
55
|
+
{
|
|
56
|
+
provide: ComponentReference,
|
|
57
|
+
useExisting: forwardRef(() => InputFieldByTypeComponent_1)
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
})
|
|
61
|
+
], InputFieldByTypeComponent);
|
|
62
|
+
export { InputFieldByTypeComponent };
|
|
63
|
+
//# sourceMappingURL=input-field-by-type.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-field-by-type.component.js","sourceRoot":"","sources":["../../../src/login/components/input-field-by-type/input-field-by-type.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,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAK7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qFAAqF,CAAC;AAC/H,OAAO,EAAE,iBAAiB,EAAE,MAAM,qEAAqE,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mFAAmF,CAAC;AAC7H,OAAO,EAAE,kBAAkB,EAAE,MAAM,uEAAuE,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AA6B1G,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,kBAAkB;IAA1D;;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,sBAAiB,GAAG,QAAQ,CAAY,GAAG,EAAE;;YACzC,MAAM,SAAS,GAAc,MAAA,IAAI,CAAC,SAAS,EAAE,mCAAK,EAAgB,CAAC;YACnE,uCACO,SAAS,KACZ,WAAW,kCAAO,CAAC,MAAA,SAAS,CAAC,WAAW,mCAAI,EAAE,CAAC,KAAE,SAAS,EAAE,UAAU,OACxE;QACN,CAAC,CAAC,CAAC;IACP,CAAC;CAAA,CAAA;AAfY,yBAAyB;IA3BrC,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE;YACL,WAAW;YACX,oBAAoB;YACpB,kBAAkB;YAClB,wBAAwB;YACxB,iBAAiB;YACjB,wBAAwB;SAC3B;QACD,QAAQ,EAAE,wBAAwB;QAClC,WAAW,EAAE,oCAAoC;QACjD,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,2BAAyB,CAAC;aAC3D;SACJ;KACJ,CAAC;GACW,yBAAyB,CAerC;SAfY,yBAAyB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 InputTagComponent extends ComponentReference {
|
|
6
|
+
attribute: import("@angular/core").InputSignal<Attribute | undefined>;
|
|
7
|
+
valueOrValues: import("@angular/core").InputSignal<string | string[] | undefined>;
|
|
8
|
+
fieldIndex: import("@angular/core").InputSignal<number | undefined>;
|
|
9
|
+
values: import("@angular/core").InputSignal<string[] | undefined>;
|
|
10
|
+
displayableErrors: import("@angular/core").InputSignal<FormFieldError[] | undefined>;
|
|
11
|
+
dispatchFormAction: import("@angular/core").OutputEmitterRef<FormAction>;
|
|
12
|
+
doUseDefaultCss: boolean;
|
|
13
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
14
|
+
value: import("@angular/core").Signal<string | null>;
|
|
15
|
+
onChange(event: Event): void;
|
|
16
|
+
onBlur(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@let attr = attribute();
|
|
2
|
+
@let index = fieldIndex();
|
|
3
|
+
@if (attr) {
|
|
4
|
+
<input
|
|
5
|
+
[type]="attr.annotations.inputType | inputType"
|
|
6
|
+
[id]="attr.name"
|
|
7
|
+
[name]="attr.name"
|
|
8
|
+
[value]="value()"
|
|
9
|
+
[kcClass]="'kcInputClass'"
|
|
10
|
+
[attr.aria-invalid]="index && displayableErrors()?.[index] !== undefined"
|
|
11
|
+
[disabled]="attr.readOnly"
|
|
12
|
+
[autocomplete]="attr.autocomplete"
|
|
13
|
+
[placeholder]="attr.annotations.inputTypePlaceholder ?? '' | advancedMsgStr"
|
|
14
|
+
[attr.pattern]="attr.annotations.inputTypePattern"
|
|
15
|
+
[attr.size]="
|
|
16
|
+
!attr.annotations.inputTypeSize
|
|
17
|
+
? undefined
|
|
18
|
+
: (attr.annotations.inputTypeSize | toNumber) === 0
|
|
19
|
+
? undefined
|
|
20
|
+
: (attr.annotations.inputTypeSize | toNumber)
|
|
21
|
+
"
|
|
22
|
+
[attr.maxlength]="
|
|
23
|
+
!attr.annotations.inputTypeMaxlength ? undefined : (attr.annotations.inputTypeMaxlength | toNumber)
|
|
24
|
+
"
|
|
25
|
+
[attr.minlength]="
|
|
26
|
+
!attr.annotations.inputTypeMinlength ? undefined : (attr.annotations.inputTypeMinlength | toNumber)
|
|
27
|
+
"
|
|
28
|
+
[attr.max]="attr.annotations.inputTypeMax"
|
|
29
|
+
[attr.min]="attr.annotations.inputTypeMin"
|
|
30
|
+
[attr.step]="attr.annotations.inputTypeStep"
|
|
31
|
+
[kcAttributes]="attr.html5DataAnnotations"
|
|
32
|
+
(change)="onChange($event)"
|
|
33
|
+
(blur)="onBlur()"
|
|
34
|
+
/>
|
|
35
|
+
@if (index !== undefined) {
|
|
36
|
+
@let values = valueOrValues() ?? [] | toArray;
|
|
37
|
+
<kc-field-errors
|
|
38
|
+
[attribute]="attr"
|
|
39
|
+
[displayableErrors]="displayableErrors()"
|
|
40
|
+
[fieldIndex]="index"
|
|
41
|
+
></kc-field-errors>
|
|
42
|
+
<kc-add-remove-buttons-multi-valued-attribute
|
|
43
|
+
[attribute]="attr"
|
|
44
|
+
[values]="values"
|
|
45
|
+
[fieldIndex]="index"
|
|
46
|
+
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
47
|
+
></kc-add-remove-buttons-multi-valued-attribute>
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 InputTagComponent_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 { AttributesDirective } from "../../../login/directives/attributes.directive";
|
|
12
|
+
import { KcClassDirective } from "../../../login/directives/kc-class.directive";
|
|
13
|
+
import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
|
|
14
|
+
import { InputTypePipe } from "../../../login/pipes/input-type.pipe";
|
|
15
|
+
import { ToArrayPipe } from "../../../login/pipes/to-array.pipe";
|
|
16
|
+
import { ToNumberPipe } from "../../../login/pipes/to-number.pipe";
|
|
17
|
+
import { AddRemoveButtonsMultiValuedAttributeComponent } from "../../../login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component";
|
|
18
|
+
import { FieldErrorsComponent } from "../../../login/components/field-errors/field-errors.component";
|
|
19
|
+
let InputTagComponent = InputTagComponent_1 = class InputTagComponent extends ComponentReference {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.attribute = input();
|
|
23
|
+
this.valueOrValues = input();
|
|
24
|
+
this.fieldIndex = input(undefined);
|
|
25
|
+
this.values = input();
|
|
26
|
+
this.displayableErrors = input();
|
|
27
|
+
this.dispatchFormAction = output();
|
|
28
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
29
|
+
this.classes = inject(CLASSES);
|
|
30
|
+
this.value = computed(() => {
|
|
31
|
+
var _a;
|
|
32
|
+
const valueOrValues = this.valueOrValues();
|
|
33
|
+
const index = this.fieldIndex();
|
|
34
|
+
if (valueOrValues instanceof Array) {
|
|
35
|
+
if (index) {
|
|
36
|
+
return (_a = valueOrValues[index]) !== null && _a !== void 0 ? _a : null;
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return valueOrValues !== null && valueOrValues !== void 0 ? valueOrValues : null;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
onChange(event) {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
const valueOrValues = this.valueOrValues();
|
|
46
|
+
this.dispatchFormAction.emit({
|
|
47
|
+
action: "update",
|
|
48
|
+
name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
|
|
49
|
+
valueOrValues: (() => {
|
|
50
|
+
var _a;
|
|
51
|
+
if (this.fieldIndex !== undefined) {
|
|
52
|
+
if (valueOrValues instanceof Array) {
|
|
53
|
+
return valueOrValues.map((value, i) => {
|
|
54
|
+
var _a;
|
|
55
|
+
if (i === this.fieldIndex()) {
|
|
56
|
+
return (_a = event.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
57
|
+
}
|
|
58
|
+
return value;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return (_a = event.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
63
|
+
})()
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
onBlur() {
|
|
67
|
+
var _a, _b;
|
|
68
|
+
this.dispatchFormAction.emit({
|
|
69
|
+
action: "focus lost",
|
|
70
|
+
name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
|
|
71
|
+
fieldIndex: this.fieldIndex()
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
InputTagComponent = InputTagComponent_1 = __decorate([
|
|
76
|
+
Component({
|
|
77
|
+
standalone: true,
|
|
78
|
+
styles: [
|
|
79
|
+
`
|
|
80
|
+
:host {
|
|
81
|
+
display: contents;
|
|
82
|
+
}
|
|
83
|
+
`
|
|
84
|
+
],
|
|
85
|
+
imports: [
|
|
86
|
+
InputTypePipe,
|
|
87
|
+
KcClassDirective,
|
|
88
|
+
ToNumberPipe,
|
|
89
|
+
AttributesDirective,
|
|
90
|
+
ToArrayPipe,
|
|
91
|
+
FieldErrorsComponent,
|
|
92
|
+
AddRemoveButtonsMultiValuedAttributeComponent,
|
|
93
|
+
AdvancedMsgStrPipe
|
|
94
|
+
],
|
|
95
|
+
selector: "kc-input-tag",
|
|
96
|
+
templateUrl: "input-tag.component.html",
|
|
97
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
98
|
+
providers: [
|
|
99
|
+
{
|
|
100
|
+
provide: ComponentReference,
|
|
101
|
+
useExisting: forwardRef(() => InputTagComponent_1)
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
})
|
|
105
|
+
], InputTagComponent);
|
|
106
|
+
export { InputTagComponent };
|
|
107
|
+
//# sourceMappingURL=input-tag.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-tag.component.js","sourceRoot":"","sources":["../../../src/login/components/input-tag/input-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,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAK/E,OAAO,EAAE,6CAA6C,EAAE,MAAM,qIAAqI,CAAC;AACpM,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AA+B1G,IAAM,iBAAiB,yBAAvB,MAAM,iBAAkB,SAAQ,kBAAkB;IAAlD;;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,kBAAa,GAAG,KAAK,EAAqB,CAAC;QAC3C,eAAU,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;QAClD,WAAM,GAAG,KAAK,EAAY,CAAC;QAC3B,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,UAAK,GAAG,QAAQ,CAAC,GAAG,EAAE;;YAClB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;YAC3C,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YAChC,IAAI,aAAa,YAAY,KAAK,EAAE;gBAChC,IAAI,KAAK,EAAE;oBACP,OAAO,MAAA,aAAa,CAAC,KAAK,CAAC,mCAAI,IAAI,CAAC;iBACvC;gBACD,OAAO,IAAI,CAAC;aACf;YACD,OAAO,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,IAAI,CAAC;QACjC,CAAC,CAAC,CAAC;IAgCP,CAAC;IA9BG,QAAQ,CAAC,KAAY;;QACjB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAC3C,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,EAAE,CAAC,GAAG,EAAE;;gBACjB,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE;oBAC/B,IAAI,aAAa,YAAY,KAAK,EAAE;wBAChC,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;;4BAClC,IAAI,CAAC,KAAK,IAAI,CAAC,UAAU,EAAE,EAAE;gCACzB,OAAO,MAAC,KAAK,CAAC,MAA2B,0CAAE,KAAK,CAAC;6BACpD;4BAED,OAAO,KAAK,CAAC;wBACjB,CAAC,CAAC,CAAC;qBACN;iBACJ;gBAED,OAAO,MAAC,KAAK,CAAC,MAA2B,0CAAE,KAAK,CAAC;YACrD,CAAC,CAAC,EAAE;SACP,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,IAAI,CAAC,UAAU,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AApDY,iBAAiB;IA7B7B,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE;YACL,aAAa;YACb,gBAAgB;YAChB,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,oBAAoB;YACpB,6CAA6C;YAC7C,kBAAkB;SACrB;QACD,QAAQ,EAAE,cAAc;QACxB,WAAW,EAAE,0BAA0B;QACvC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,mBAAiB,CAAC;aACnD;SACJ;KACJ,CAAC;GACW,iBAAiB,CAoD7B;SApDY,iBAAiB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Signal } from "@angular/core";
|
|
2
|
+
import { Attribute } from "keycloakify/login/KcContext";
|
|
3
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
4
|
+
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
5
|
+
import { FormAction, FormFieldError } from "../../../login/services/user-profile-form.service";
|
|
6
|
+
export declare class InputTagSelectsComponent extends ComponentReference {
|
|
7
|
+
attribute: import("@angular/core").InputSignal<Attribute | undefined>;
|
|
8
|
+
valueOrValues: import("@angular/core").InputSignal<string | string[] | undefined>;
|
|
9
|
+
dispatchFormAction: import("@angular/core").OutputEmitterRef<FormAction>;
|
|
10
|
+
displayableErrors: import("@angular/core").InputSignal<FormFieldError[] | undefined>;
|
|
11
|
+
doUseDefaultCss: boolean;
|
|
12
|
+
classes: Partial<Record<ClassKey, string>>;
|
|
13
|
+
context: Signal<{
|
|
14
|
+
inputType: "radio" | "checkbox";
|
|
15
|
+
classDiv: ClassKey;
|
|
16
|
+
classInput: ClassKey;
|
|
17
|
+
classLabel: ClassKey;
|
|
18
|
+
} | null>;
|
|
19
|
+
options: Signal<string[]>;
|
|
20
|
+
checked(option: string): boolean;
|
|
21
|
+
onChange(event: Event, option: string): void;
|
|
22
|
+
onBlur(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@let inputType = context()?.inputType;
|
|
2
|
+
@let classInput = context()?.classInput;
|
|
3
|
+
@let classLabel = context()?.classLabel;
|
|
4
|
+
@let classDiv = context()?.classDiv;
|
|
5
|
+
@let attr = attribute();
|
|
6
|
+
@if (attr) {
|
|
7
|
+
@for (option of options(); track option) {
|
|
8
|
+
<div [kcClass]="classDiv">
|
|
9
|
+
<input
|
|
10
|
+
[type]="inputType"
|
|
11
|
+
[id]="attr.name + '-' + option"
|
|
12
|
+
[name]="attr.name"
|
|
13
|
+
[value]="option"
|
|
14
|
+
[kcClass]="classInput"
|
|
15
|
+
[attr.aria-invalid]="!!displayableErrors()?.length"
|
|
16
|
+
[disabled]="attr.readOnly"
|
|
17
|
+
[checked]="checked(option)"
|
|
18
|
+
(change)="onChange($event, option)"
|
|
19
|
+
(blur)="onBlur()"
|
|
20
|
+
/>
|
|
21
|
+
<label
|
|
22
|
+
[for]="attr.name + '-' + option"
|
|
23
|
+
[kcClass]="[classLabel!, attr.readOnly ? 'kcInputClassRadioCheckboxLabelDisabled' : $any('')]"
|
|
24
|
+
>
|
|
25
|
+
{{ option | advancedMsgStr }}
|
|
26
|
+
</label>
|
|
27
|
+
</div>
|
|
28
|
+
}
|
|
29
|
+
}
|